diff --git a/src/vmware/CHANGELOG.md b/src/vmware/CHANGELOG.md index 05f07479a8d..afacacd5707 100644 --- a/src/vmware/CHANGELOG.md +++ b/src/vmware/CHANGELOG.md @@ -1,8 +1,16 @@ # Release History -## 2.1.0 (TBD) -- add az vmware private-cloud rotate-vcenter-password -- add az vmware private-cloud rotate-nsxt-password +## 3.0.0 (2021-06) +- [BREAKING CHANGE] `az vmware datastore create` has been removed. Please use `az vmware datastore netapp-volume create` or `az vmware datastore disk-pool-volume create` instead. + +Other changes: +- Update to AVS 2021-06-01 API +- Add `az vmware private-cloud rotate-vcenter-password` +- Add `az vmware private-cloud rotate-nsxt-password` +- Add `az vmware addon` command group +- Add `az vmware addon hcx` command group to manage a HCX addon +- Add `az vmware addon srm` command group to manage a Site Recovery Manager (SRM) addon +- Add `az vmware addon vr` command group to manage a vSphere Replication (VR) addon ## 2.0.1 (2021-02) - Update the minimum az cli version to 2.11.0 [#3045](https://github.com/Azure/azure-cli-extensions/issues/3045) @@ -74,4 +82,4 @@ Add command for managing HCX Enterprise Sites for a private cloud: ## 0.2.0 (2019-07-16) - initial preview release -- see archived [az-vmware-cli releases](https://github.com/Azure/az-vmware-cli/releases) \ No newline at end of file +- see archived [az-vmware-cli releases](https://github.com/Azure/az-vmware-cli/releases) diff --git a/src/vmware/DEVELOPMENT.md b/src/vmware/DEVELOPMENT.md index 6340c88c2c2..2866426b5ba 100644 --- a/src/vmware/DEVELOPMENT.md +++ b/src/vmware/DEVELOPMENT.md @@ -3,6 +3,6 @@ ``` 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.6.1 --tag=package-2021-01-01-preview --azure-arm=true --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.8.0 --tag=package-2021-06-01 --azure-arm=true --namespace=avs_client --override-client-name=AVSClient specification\vmware\resource-manager\readme.md ``` It was run from a git clone of [azure-rest-api-specs](https://github.com/Azure/azure-rest-api-specs). diff --git a/src/vmware/azext_vmware/_help.py b/src/vmware/azext_vmware/_help.py index f72f8d12e33..ecda202e798 100644 --- a/src/vmware/azext_vmware/_help.py +++ b/src/vmware/azext_vmware/_help.py @@ -12,6 +12,26 @@ short-summary: Commands to manage Azure VMware Solution. """ +helps['vmware addon'] = """ + type: group + short-summary: Commands to manage addons for a private cloud. +""" + +helps['vmware addon hcx'] = """ + type: group + short-summary: Commands to manage a HCX addon. +""" + +helps['vmware addon srm'] = """ + type: group + short-summary: Commands to manage a Site Recovery Manager (SRM) addon. +""" + +helps['vmware addon vr'] = """ + type: group + short-summary: Commands to manage a vSphere Replication (VR) addon. +""" + helps['vmware private-cloud'] = """ type: group short-summary: Commands to manage private clouds. @@ -175,14 +195,33 @@ helps['vmware datastore create'] = """ type: command - short-summary: Create a datastore in a private cloud cluster. + short-summary: Please use "netapp-volume create" or "disk-pool-volume create" instead. +""" + +helps['vmware datastore netapp-volume'] = """ + type: group + short-summary: Create a new Microsoft.NetApp provided NetApp volume in a private cloud cluster. +""" + +helps['vmware datastore netapp-volume create'] = """ + type: command + short-summary: Create a new Microsoft.NetApp provided NetApp volume in a private cloud cluster. examples: - - name: Create a new Microsoft.StoragePool provided disk pool based iSCSI datastore. - text: az vmware datastore create --name iSCSIDatastore1 --resource-group MyResourceGroup --cluster Cluster-1 --private-cloud MyPrivateCloud --endpoints 10.10.0.1:3260 --lun-name lun0 - - name: Create a new Microsoft.StoragePool provided disk pool based iSCSI datastore with multiple endpoints. - text: az vmware datastore create --name iSCSIDatastore1 --resource-group MyResourceGroup --cluster Cluster-1 --private-cloud MyPrivateCloud --endpoints 10.10.0.1:3260 10.10.0.2:3260 --lun-name lun0 - name: Create a new Microsoft.NetApp provided NetApp volume based NFSv3 datastore. - text: az vmware datastore create --name ANFDatastore1 --resource-group MyResourceGroup --cluster Cluster-1 --private-cloud MyPrivateCloud --nfs-file-path ANFVol1FilePath --nfs-provider-ip 10.10.0.1 + text: az vmware datastore netapp-volume create --name ANFDatastore1 --resource-group MyResourceGroup --cluster Cluster-1 --private-cloud MyPrivateCloud --volume-id /subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/ResourceGroup1/providers/Microsoft.NetApp/netAppAccounts/NetAppAccount1/capacityPools/CapacityPool1/volumes/NFSVol1 +""" + +helps['vmware datastore disk-pool-volume'] = """ + type: group + short-summary: Create a VMFS datastore in a private cloud cluster using Microsoft.StoragePool provided iSCSI target. +""" + +helps['vmware datastore disk-pool-volume create'] = """ + type: command + short-summary: Create a VMFS datastore in a private cloud cluster using Microsoft.StoragePool provided iSCSI target. + examples: + - name: Create a new Microsoft.StoragePool provided disk pool based iSCSI datastore. + text: az vmware datastore disk-pool-volume create --name iSCSIDatastore1 --resource-group MyResourceGroup --cluster Cluster-1 --private-cloud MyPrivateCloud --target-id /subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/ResourceGroup1/providers/Microsoft.StoragePool/diskPools/mpio-diskpool/iscsiTargets/mpio-iscsi-target --lun-name lun0 """ helps['vmware datastore show'] = """ @@ -208,3 +247,107 @@ - name: Delete an iSCSI or NFS based datastore. text: az vmware datastore delete --name MyCloudSANDatastore1 --resource-group MyResourceGroup --cluster Cluster-1 --private-cloud MyPrivateCloud """ + +helps['vmware addon list'] = """ + type: command + short-summary: List addons in a private cloud. + examples: + - name: List addons in a private cloud. + text: az vmware addon list --resource-group MyResourceGroup --private-cloud MyPrivateCloud +""" + +helps['vmware addon vr create'] = """ + type: command + short-summary: Create a vSphere Replication (VR) addon for a private cloud. + examples: + - name: Create a vSphere Replication (VR) addon. + text: az vmware addon vr create --resource-group MyResourceGroup --private-cloud MyPrivateCloud --vrs-count 1 +""" + +helps['vmware addon hcx create'] = """ + type: command + short-summary: Create a HCX addon for a private cloud. + examples: + - name: Create a HCX addon. + text: az vmware addon hcx create --resource-group MyResourceGroup --private-cloud MyPrivateCloud --offer "VMware MaaS Cloud Provider (Enterprise)" +""" + +helps['vmware addon srm create'] = """ + type: command + short-summary: Create a Site Recovery Manager (SRM) addon for a private cloud. + examples: + - name: Create a Site Recovery Manager (SRM) addon. + text: az vmware addon srm create --resource-group MyResourceGroup --private-cloud MyPrivateCloud --license-key "41915178-A8FF-4A4D-B683-6D735AF5E3F5" +""" + +helps['vmware addon vr show'] = """ + type: command + short-summary: Show details of a vSphere Replication (VR) addon for a private cloud. + examples: + - name: Show details of a vSphere Replication (VR) addon. + text: az vmware addon vr show --resource-group MyResourceGroup --private-cloud MyPrivateCloud +""" + +helps['vmware addon hcx show'] = """ + type: command + short-summary: Show details of a HCX addon for a private cloud. + examples: + - name: Show details of a HCX addon. + text: az vmware addon hcx show --resource-group MyResourceGroup --private-cloud MyPrivateCloud +""" + +helps['vmware addon srm show'] = """ + type: command + short-summary: Show details of a Site Recovery Manager (SRM) addon for a private cloud. + examples: + - name: Show details of a Site Recovery Manager (SRM) addon. + text: az vmware addon srm show --resource-group MyResourceGroup --private-cloud MyPrivateCloud +""" + +helps['vmware addon vr update'] = """ + type: command + short-summary: Update a vSphere Replication (VR) addon for a private cloud. + examples: + - name: Update a vSphere Replication (VR) addon. + text: az vmware addon vr update --resource-group MyResourceGroup --private-cloud MyPrivateCloud --vrs-count 1 +""" + +helps['vmware addon hcx update'] = """ + type: command + short-summary: Update a HCX addon for a private cloud. + examples: + - name: Update a HCX addon. + text: az vmware addon hcx update --resource-group MyResourceGroup --private-cloud MyPrivateCloud --offer "VMware MaaS Cloud Provider (Enterprise)" +""" + +helps['vmware addon srm update'] = """ + type: command + short-summary: Update a Site Recovery Manager (SRM) addon for a private cloud. + examples: + - name: Update a Site Recovery Manager (SRM) addon. + text: az vmware addon srm update --resource-group MyResourceGroup --private-cloud MyPrivateCloud --license-key "41915178-A8FF-4A4D-B683-6D735AF5E3F5" +""" + +helps['vmware addon vr delete'] = """ + type: command + short-summary: Delete a vSphere Replication (VR) addon for a private cloud. + examples: + - name: Delete a vSphere Replication (VR) addon. + text: az vmware addon vr delete --resource-group MyResourceGroup --private-cloud MyPrivateCloud +""" + +helps['vmware addon hcx delete'] = """ + type: command + short-summary: Delete a HCX addon for a private cloud. + examples: + - name: Delete a HCX addon. + text: az vmware addon hcx delete --resource-group MyResourceGroup --private-cloud MyPrivateCloud +""" + +helps['vmware addon srm delete'] = """ + type: command + short-summary: Delete a Site Recovery Manager (SRM) addon for a private cloud. + examples: + - name: Delete a Site Recovery Manager (SRM) addon. + text: az vmware addon srm delete --resource-group MyResourceGroup --private-cloud MyPrivateCloud +""" diff --git a/src/vmware/azext_vmware/_params.py b/src/vmware/azext_vmware/_params.py index 5b49ffb1b28..c0119f22bef 100644 --- a/src/vmware/azext_vmware/_params.py +++ b/src/vmware/azext_vmware/_params.py @@ -74,9 +74,29 @@ def load_arguments(self, _): with self.argument_context('vmware datastore') as c: c.argument('name', options_list=['--name', '-n'], help='The name of the datastore.') c.argument('cluster', help='The name of the cluster.') + c.argument('lun_name', help='Name of the LUN to be used.') with self.argument_context('vmware datastore create') as c: c.argument('nfs_provider_ip', help='IP address of the NFS provider.') c.argument('nfs_file_path', help='File path through which the NFS volume is exposed by the provider.') c.argument('endpoints', nargs='*', help='iSCSI provider target IP address list.') - c.argument('lun_name', help='Name of the LUN to be used.') + + with self.argument_context('vmware datastore netapp-volume create') as c: + c.argument('volume_id', help='Azure resource ID of the NetApp volume.') + + with self.argument_context('vmware datastore disk-pool-volume create') as c: + c.argument('target_id', help='Azure resource ID of the iSCSI target.') + c.argument('mount_option', nargs='*', help='Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN.') + c.argument('path', help='Device path.') + + with self.argument_context('vmware addon') as c: + c.argument('name', options_list=['--name', '-n'], help='Name of the addon.') + + with self.argument_context('vmware addon vr') as c: + c.argument('vrs_count', help='The vSphere Replication Server (VRS) count.') + + with self.argument_context('vmware addon hcx') as c: + c.argument('offer', help='The HCX offer, example "VMware MaaS Cloud Provider (Enterprise)".') + + with self.argument_context('vmware addon srm') as c: + c.argument('license_key', help='The Site Recovery Manager (SRM) license.') diff --git a/src/vmware/azext_vmware/commands.py b/src/vmware/azext_vmware/commands.py index c68fdea62e9..e47c3516b27 100644 --- a/src/vmware/azext_vmware/commands.py +++ b/src/vmware/azext_vmware/commands.py @@ -49,7 +49,34 @@ def load_command_table(self, _): g.custom_command('checktrialavailability', 'check_trial_availability') with self.command_group('vmware datastore', vmware_sdk, client_factory=cf_vmware) as g: - g.custom_command('create', 'datastore_create') + g.custom_command('create', 'datastore_create', deprecate_info=g.deprecate(redirect='"az vmware datastore netapp-volume create" or "az vmware datastore disk-pool-volume create"', hide=True)) g.custom_command('list', 'datastore_list') g.custom_show_command('show', 'datastore_show') g.custom_command('delete', 'datastore_delete') + + with self.command_group('vmware datastore netapp-volume', vmware_sdk, client_factory=cf_vmware) as g: + g.custom_command('create', 'datastore_netappvolume_create') + + with self.command_group('vmware datastore disk-pool-volume', vmware_sdk, client_factory=cf_vmware) as g: + g.custom_command('create', 'datastore_diskpoolvolume_create') + + with self.command_group('vmware addon', vmware_sdk, client_factory=cf_vmware) as g: + g.custom_command('list', 'addon_list') + + with self.command_group('vmware addon vr', vmware_sdk, client_factory=cf_vmware) as g: + g.custom_command('create', 'addon_vr_create') + g.custom_show_command('show', 'addon_vr_show') + g.custom_command('update', 'addon_vr_update') + g.custom_command('delete', 'addon_vr_delete') + + with self.command_group('vmware addon hcx', vmware_sdk, client_factory=cf_vmware) as g: + g.custom_command('create', 'addon_hcx_create') + g.custom_show_command('show', 'addon_hcx_show') + g.custom_command('update', 'addon_hcx_update') + g.custom_command('delete', 'addon_hcx_delete') + + with self.command_group('vmware addon srm', vmware_sdk, client_factory=cf_vmware) as g: + g.custom_command('create', 'addon_srm_create') + g.custom_show_command('show', 'addon_srm_show') + g.custom_command('update', 'addon_srm_update') + g.custom_command('delete', 'addon_srm_delete') diff --git a/src/vmware/azext_vmware/custom.py b/src/vmware/azext_vmware/custom.py index e776ddda036..6b9e61100ea 100644 --- a/src/vmware/azext_vmware/custom.py +++ b/src/vmware/azext_vmware/custom.py @@ -109,15 +109,12 @@ def privatecloud_rotate_nsxt_password(cmd, client: AVSClient, resource_group_nam def cluster_create(cmd, client: AVSClient, resource_group_name, name, sku, private_cloud, size, tags=[]): - from azext_vmware.vendored_sdks.avs_client.models import Cluster, Sku - cluster = Cluster(sku=Sku(name=sku), cluster_size=size) - return client.clusters.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=name, cluster=cluster) + from azext_vmware.vendored_sdks.avs_client.models import Sku + return client.clusters.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=name, sku=Sku(name=sku), cluster_size=size) def cluster_update(cmd, client: AVSClient, resource_group_name, name, private_cloud, size, tags=[]): - from azext_vmware.vendored_sdks.avs_client.models import ClusterUpdate - cluster_update = ClusterUpdate(cluster_size=size) - return client.clusters.begin_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=name, cluster_update=cluster_update) + return client.clusters.begin_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=name, cluster_size=size) def cluster_list(cmd, client: AVSClient, resource_group_name, private_cloud): @@ -141,9 +138,7 @@ def check_trial_availability(cmd, client: AVSClient, location): def authorization_create(cmd, client: AVSClient, resource_group_name, private_cloud, name): - from azext_vmware.vendored_sdks.avs_client.models import ExpressRouteAuthorization - authorization = ExpressRouteAuthorization() - return client.authorizations.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, authorization_name=name, authorization=authorization) + return client.authorizations.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, authorization_name=name) def authorization_list(cmd, client: AVSClient, resource_group_name, private_cloud): @@ -159,9 +154,7 @@ def authorization_delete(cmd, client: AVSClient, resource_group_name, private_cl def hcxenterprisesite_create(cmd, client: AVSClient, resource_group_name, private_cloud, name): - from azext_vmware.vendored_sdks.avs_client.models import HcxEnterpriseSite - hcx_enterprise_site = HcxEnterpriseSite() - return client.hcx_enterprise_sites.create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, hcx_enterprise_site_name=name, hcx_enterprise_site=hcx_enterprise_site) + return client.hcx_enterprise_sites.create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, hcx_enterprise_site_name=name) def hcxenterprisesite_list(cmd, client: AVSClient, resource_group_name, private_cloud): @@ -177,13 +170,19 @@ def hcxenterprisesite_delete(cmd, client: AVSClient, resource_group_name, privat def datastore_create(cmd, client: AVSClient, resource_group_name, private_cloud, cluster, name, nfs_provider_ip=None, nfs_file_path=None, endpoints=[], lun_name=None): - from azext_vmware.vendored_sdks.avs_client.models import Datastore, NetAppVolume, DiskPoolVolume - datastore = Datastore() - if nfs_provider_ip is not None or nfs_file_path is not None: - datastore.net_app_volume = NetAppVolume(nfs_provider_ip=nfs_provider_ip, nfs_file_path=nfs_file_path) - if len(endpoints) > 0 or lun_name is not None: - datastore.disk_pool_volume = DiskPoolVolume(endpoints=endpoints, lun_name=lun_name) - return client.datastores.begin_create(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=cluster, datastore_name=name, datastore=datastore) + print('Please use "az vmware datastore netapp-volume create" or "az vmware datastore disk-pool-volume create" instead.') + + +def datastore_netappvolume_create(cmd, client: AVSClient, resource_group_name, private_cloud, cluster, name, volume_id): + from azext_vmware.vendored_sdks.avs_client.models import NetAppVolume + net_app_volume = NetAppVolume(id=volume_id) + return client.datastores.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=cluster, datastore_name=name, net_app_volume=net_app_volume, disk_pool_volume=None) + + +def datastore_diskpoolvolume_create(cmd, client: AVSClient, resource_group_name, private_cloud, cluster, name, target_id, lun_name, mount_option="MOUNT", path=None): + from azext_vmware.vendored_sdks.avs_client.models import DiskPoolVolume + disk_pool_volume = DiskPoolVolume(target_id=target_id, lun_name=lun_name, mount_option=mount_option, path=path) + return client.datastores.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=cluster, datastore_name=name, net_app_volume=None, disk_pool_volume=disk_pool_volume) def datastore_list(cmd, client: AVSClient, resource_group_name, private_cloud, cluster): @@ -196,3 +195,67 @@ def datastore_show(cmd, client: AVSClient, resource_group_name, private_cloud, c def datastore_delete(cmd, client: AVSClient, resource_group_name, private_cloud, cluster, name): return client.datastores.begin_delete(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=cluster, datastore_name=name) + + +def addon_list(cmd, client: AVSClient, resource_group_name, private_cloud): + return client.addons.list(resource_group_name=resource_group_name, private_cloud_name=private_cloud) + + +def addon_vr_create(cmd, client: AVSClient, resource_group_name, private_cloud, vrs_count: int): + from azext_vmware.vendored_sdks.avs_client.models import Addon, AddonVrProperties + properties = AddonVrProperties(vrs_count=vrs_count) + return client.addons.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="vr", properties=properties) + + +def addon_hcx_create(cmd, client: AVSClient, resource_group_name, private_cloud, offer: str): + from azext_vmware.vendored_sdks.avs_client.models import Addon, AddonHcxProperties + properties = AddonHcxProperties(offer=offer) + return client.addons.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="hcx", properties=properties) + + +def addon_srm_create(cmd, client: AVSClient, resource_group_name, private_cloud, license_key: str): + from azext_vmware.vendored_sdks.avs_client.models import Addon, AddonSrmProperties + properties = AddonSrmProperties(license_key=license_key) + return client.addons.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="srm", properties=properties) + + +def addon_vr_show(cmd, client: AVSClient, resource_group_name, private_cloud): + return client.addons.get(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="vr") + + +def addon_hcx_show(cmd, client: AVSClient, resource_group_name, private_cloud): + return client.addons.get(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="hcx") + + +def addon_srm_show(cmd, client: AVSClient, resource_group_name, private_cloud): + return client.addons.get(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="srm") + + +def addon_vr_update(cmd, client: AVSClient, resource_group_name, private_cloud, vrs_count: int): + from azext_vmware.vendored_sdks.avs_client.models import Addon, AddonVrProperties + properties = AddonVrProperties(vrs_count=vrs_count) + return client.addons.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="vr", properties=properties) + + +def addon_hcx_update(cmd, client: AVSClient, resource_group_name, private_cloud, offer: str): + from azext_vmware.vendored_sdks.avs_client.models import Addon, AddonHcxProperties + properties = AddonHcxProperties(offer=offer) + return client.addons.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="hcx", properties=properties) + + +def addon_srm_update(cmd, client: AVSClient, resource_group_name, private_cloud, license_key: str): + from azext_vmware.vendored_sdks.avs_client.models import Addon, AddonSrmProperties + properties = AddonSrmProperties(license_key=license_key) + return client.addons.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="srm", properties=properties) + + +def addon_vr_delete(cmd, client: AVSClient, resource_group_name, private_cloud): + return client.addons.begin_delete(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="vr") + + +def addon_hcx_delete(cmd, client: AVSClient, resource_group_name, private_cloud): + return client.addons.begin_delete(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="hcx") + + +def addon_srm_delete(cmd, 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") 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 3d948fa8cfd..45f7b190b4f 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware.yaml @@ -39,13 +39,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:46:32 GMT + - Thu, 03 Jun 2021 21:25:50 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=AtSrx_18wd1AuaFnsKJP3vY; expires=Thu, 29-Apr-2021 21:46:32 GMT; path=/; + - fpc=Ar6DUEZ-Y_REtKLn10PQL8Q; expires=Sat, 03-Jul-2021 21:25:51 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrBdXv4E8rOfcBz5YNFPg3qIGpoKLD0KbK5jPkzHSU6W3uFH09-eRTNl3oLBRzdhoAOy3ilqsVAK-a2tymxEFVixl5dyP-QEUMIIsKEAn5zK5HSfXfmXXTv8DE0xyFA5ZpbdTTVL7OPUFYjsjvzGKQhg4MKlkZm1eZ_JKIFzTYXrQgAA; + - 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 @@ -54,7 +54,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11562.10 - WUS2 ProdSlices + - 2.1.11722.21 - NCUS ProdSlices status: code: 200 message: OK @@ -74,12 +74,12 @@ interactions: ParameterSetName: - --location User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - 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/providers/Microsoft.AVS/locations/centralus/checkQuotaAvailability?api-version=2021-01-01-preview + 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":980,"he":980},"quotaEnabled":"Enabled"}' + string: '{"hostsRemaining":{"gp":976,"he":980},"quotaEnabled":"Enabled"}' headers: cache-control: - no-cache @@ -88,21 +88,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:46:34 GMT + - Thu, 03 Jun 2021 21:25:54 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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 @@ -146,13 +144,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:46:34 GMT + - Thu, 03 Jun 2021 21:25:55 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=Al-E3t-zA3JFt36QY21bSTs; expires=Thu, 29-Apr-2021 21:46:34 GMT; path=/; + - fpc=AnVw8SWsgd9FhNjfo4GBMYs; expires=Sat, 03-Jul-2021 21:25:55 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrQyHTFQlOBx9WTGX5HPuNKJtHu0h3V-v-XNoA-WsFXok8kfeuk0pLQ_vQi0jRm4foblr6V9NQeZEqhKvdA0Yt393bwr8asYs0NX3b93MF6RIruVtgtd6zkd5AvLlF2nxdfXftriFExiXOrHhcjfdYQIDkT3F_eKHhOQNn_lcX-tUgAA; + - 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 @@ -161,7 +159,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11562.10 - WUS2 ProdSlices + - 2.1.11722.21 - EUS ProdSlices status: code: 200 message: OK @@ -181,9 +179,9 @@ interactions: ParameterSetName: - --location User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - 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/providers/Microsoft.AVS/locations/centralus/checkTrialAvailability?api-version=2021-01-01-preview + 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"}' @@ -195,23 +193,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:46:36 GMT + - Thu, 03 Jun 2021 21:25:56 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' + x-msedge-ref: + - 'Ref A: 4B202D8AE34E4021941DF49D102DD462 Ref B: PDX31EDGE0112 Ref C: 2021-06-03T21:25:55Z' status: code: 200 message: OK @@ -255,13 +251,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:46:36 GMT + - Thu, 03 Jun 2021 21:25:56 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=Ag0HiEDwq9hBoJDsvM-wsB0; expires=Thu, 29-Apr-2021 21:46:36 GMT; path=/; + - fpc=AmU7i0S_j85GsQQHuA2RIFg; expires=Sat, 03-Jul-2021 21:25:56 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrSHBfS5uAG3pfyBDfEur6kEdlKH3sI6Hpp4faJ4Gw_6tpCuBxwor-Bn6eCAyfki7nxGAkbuBnLm-jxY_ii7WC3cMMwm7mbb_liFrV49e9ttibqqfe_b1xk2jUQ66dSRoitsuDDQxludKiY7z_Vi4XDTGBOFJjxIUcW9gZEna4HdIgAA; + - 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 @@ -270,7 +266,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11562.10 - NCUS ProdSlices + - 2.1.11722.21 - EUS ProdSlices status: code: 200 message: OK @@ -288,9 +284,9 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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-01-01-preview + 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":[]}' @@ -302,17 +298,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:46:37 GMT + - Thu, 03 Jun 2021 21:25:57 GMT expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding + 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 @@ -356,13 +354,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:46:37 GMT + - Thu, 03 Jun 2021 21:25:57 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=Ak3_0rMSf-RBnQ0x2umKEZ8; expires=Thu, 29-Apr-2021 21:46:38 GMT; path=/; + - fpc=AtAZno-QR05GuofpoPnHzug; expires=Sat, 03-Jul-2021 21:25:57 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr_FFcFrBVhK_GVO-ROxhpzCzR_3gDKjADhDUZfMkErm87a5ES_vuOwG2IJL1iLD8U8OdOqZCu8Yqw7gyOQUH19t7Y7nnKqwV03Pbz_oKSub5cc2dv7FDjHy43h0GNQRdyLLdfzE0LqYlRIB76M6Lsxc2znb1DQR8NpTT2vB-oYDEgAA; + - 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 @@ -371,13 +369,13 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11562.10 - NCUS ProdSlices + - 2.1.11722.26 - WUS2 ProdSlices status: code: 200 message: OK - request: body: '{"location": "centralus", "tags": {}, "sku": {"name": "av20"}, "properties": - {"managementCluster": {"clusterSize": 4}, "internet": "Disabled", "networkBlock": + {"managementCluster": {"clusterSize": 3}, "internet": "Disabled", "networkBlock": "192.168.48.0/22", "vcenterPassword": "UpfBXae9ZquZSDXk(", "nsxtPassword": "5rqdLj4GF3cePUe6("}}' headers: Accept: @@ -396,35 +394,37 @@ interactions: - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password --accept-eula User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - 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-01-01-preview + 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":{"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost16.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/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"}' 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/618db719-3b52-44f3-8664-3abac4bd7a33?api-version=2021-01-01-preview + - 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: - - '945' + - '922' content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:46:45 GMT + - Thu, 03 Jun 2021 21:26:03 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1199' + x-msedge-ref: + - 'Ref A: 7ED20D716DE44BEA94C3ABFF01E1B888 Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:25:58Z' status: code: 201 message: Created @@ -443,12 +443,12 @@ interactions: - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password --accept-eula User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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/618db719-3b52-44f3-8664-3abac4bd7a33?api-version=2021-01-01-preview + 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 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/618db719-3b52-44f3-8664-3abac4bd7a33","name":"618db719-3b52-44f3-8664-3abac4bd7a33","percentComplete":0,"startTime":"2021-03-30T21:46:42.1863195+00:00","status":"Building"}' + 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"}' headers: cache-control: - no-cache @@ -457,21 +457,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:46:56 GMT + - Thu, 03 Jun 2021 21:26:13 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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' status: code: 200 message: OK @@ -490,12 +488,12 @@ interactions: - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password --accept-eula User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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/618db719-3b52-44f3-8664-3abac4bd7a33?api-version=2021-01-01-preview + 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 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/618db719-3b52-44f3-8664-3abac4bd7a33","name":"618db719-3b52-44f3-8664-3abac4bd7a33","percentComplete":0,"startTime":"2021-03-30T21:46:42.1863195+00:00","status":"Building"}' + 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"}' headers: cache-control: - no-cache @@ -504,21 +502,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:47:07 GMT + - Thu, 03 Jun 2021 21:26:24 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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' status: code: 200 message: OK @@ -537,12 +533,12 @@ interactions: - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password --accept-eula User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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/618db719-3b52-44f3-8664-3abac4bd7a33?api-version=2021-01-01-preview + 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 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/618db719-3b52-44f3-8664-3abac4bd7a33","name":"618db719-3b52-44f3-8664-3abac4bd7a33","percentComplete":88.75,"startTime":"2021-03-30T21:46:42.1863195+00:00","status":"Building"}' + 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"}' headers: cache-control: - no-cache @@ -551,21 +547,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:47:17 GMT + - Thu, 03 Jun 2021 21:26:34 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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' status: code: 200 message: OK @@ -584,12 +578,12 @@ interactions: - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password --accept-eula User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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/618db719-3b52-44f3-8664-3abac4bd7a33?api-version=2021-01-01-preview + 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 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/618db719-3b52-44f3-8664-3abac4bd7a33","name":"618db719-3b52-44f3-8664-3abac4bd7a33","percentComplete":88.75,"startTime":"2021-03-30T21:46:42.1863195+00:00","status":"Building"}' + 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"}' headers: cache-control: - no-cache @@ -598,21 +592,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:47:27 GMT + - Thu, 03 Jun 2021 21:26:44 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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' status: code: 200 message: OK @@ -631,12 +623,12 @@ interactions: - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password --accept-eula User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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/618db719-3b52-44f3-8664-3abac4bd7a33?api-version=2021-01-01-preview + 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 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/618db719-3b52-44f3-8664-3abac4bd7a33","name":"618db719-3b52-44f3-8664-3abac4bd7a33","percentComplete":100,"startTime":"2021-03-30T21:46:42.1863195+00:00","status":"Building"}' + 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"}' headers: cache-control: - no-cache @@ -645,21 +637,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:47:38 GMT + - Thu, 03 Jun 2021 21:26:55 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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' status: code: 200 message: OK @@ -678,12 +668,12 @@ interactions: - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password --accept-eula User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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/618db719-3b52-44f3-8664-3abac4bd7a33?api-version=2021-01-01-preview + 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 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/618db719-3b52-44f3-8664-3abac4bd7a33","name":"618db719-3b52-44f3-8664-3abac4bd7a33","percentComplete":100,"startTime":"2021-03-30T21:46:42.1863195+00:00","status":"Building"}' + 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"}' headers: cache-control: - no-cache @@ -692,21 +682,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:47:49 GMT + - Thu, 03 Jun 2021 21:27:05 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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' status: code: 200 message: OK @@ -725,12 +713,12 @@ interactions: - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password --accept-eula User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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/618db719-3b52-44f3-8664-3abac4bd7a33?api-version=2021-01-01-preview + 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 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/618db719-3b52-44f3-8664-3abac4bd7a33","name":"618db719-3b52-44f3-8664-3abac4bd7a33","percentComplete":100,"startTime":"2021-03-30T21:46:42.1863195+00:00","status":"Building"}' + 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"}' headers: cache-control: - no-cache @@ -739,21 +727,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:47:59 GMT + - Thu, 03 Jun 2021 21:27:15 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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' status: code: 200 message: OK @@ -772,12 +758,12 @@ interactions: - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password --accept-eula User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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/618db719-3b52-44f3-8664-3abac4bd7a33?api-version=2021-01-01-preview + 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 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/618db719-3b52-44f3-8664-3abac4bd7a33","name":"618db719-3b52-44f3-8664-3abac4bd7a33","percentComplete":100,"startTime":"2021-03-30T21:46:42.1863195+00:00","status":"Building"}' + 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"}' headers: cache-control: - no-cache @@ -786,21 +772,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:48:09 GMT + - Thu, 03 Jun 2021 21:27:25 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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' status: code: 200 message: OK @@ -819,12 +803,12 @@ interactions: - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password --accept-eula User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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/618db719-3b52-44f3-8664-3abac4bd7a33?api-version=2021-01-01-preview + 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 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/618db719-3b52-44f3-8664-3abac4bd7a33","name":"618db719-3b52-44f3-8664-3abac4bd7a33","percentComplete":100,"startTime":"2021-03-30T21:46:42.1863195+00:00","status":"Building"}' + 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"}' headers: cache-control: - no-cache @@ -833,21 +817,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:48:20 GMT + - Thu, 03 Jun 2021 21:27:36 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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' status: code: 200 message: OK @@ -866,12 +848,12 @@ interactions: - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password --accept-eula User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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/618db719-3b52-44f3-8664-3abac4bd7a33?api-version=2021-01-01-preview + 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 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/618db719-3b52-44f3-8664-3abac4bd7a33","name":"618db719-3b52-44f3-8664-3abac4bd7a33","percentComplete":100,"startTime":"2021-03-30T21:46:42.1863195+00:00","status":"Building"}' + 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"}' headers: cache-control: - no-cache @@ -880,21 +862,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:48:29 GMT + - Thu, 03 Jun 2021 21:27:46 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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' status: code: 200 message: OK @@ -913,12 +893,12 @@ interactions: - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password --accept-eula User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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/618db719-3b52-44f3-8664-3abac4bd7a33?api-version=2021-01-01-preview + 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 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/618db719-3b52-44f3-8664-3abac4bd7a33","name":"618db719-3b52-44f3-8664-3abac4bd7a33","percentComplete":100,"startTime":"2021-03-30T21:46:42.1863195+00:00","status":"Building"}' + 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"}' headers: cache-control: - no-cache @@ -927,21 +907,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:48:41 GMT + - Thu, 03 Jun 2021 21:27:56 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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' status: code: 200 message: OK @@ -960,35 +938,33 @@ interactions: - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password --accept-eula User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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/618db719-3b52-44f3-8664-3abac4bd7a33?api-version=2021-01-01-preview + 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 response: body: - string: '{"endTime":"2021-03-30T21:48:39.8295481+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/618db719-3b52-44f3-8664-3abac4bd7a33","name":"618db719-3b52-44f3-8664-3abac4bd7a33","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/"},"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost16.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-03-30T21:46:42.1863195+00:00","status":"Succeeded"}' + 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"}' headers: cache-control: - no-cache content-length: - - '2034' + - '387' content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:48:50 GMT + - Thu, 03 Jun 2021 21:28:07 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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' status: code: 200 message: OK @@ -1007,35 +983,33 @@ interactions: - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password --accept-eula User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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-01-01-preview + 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 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/"},"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost16.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: '{"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"}' headers: cache-control: - no-cache content-length: - - '1586' + - '2011' content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:48:51 GMT + - Thu, 03 Jun 2021 21:28:17 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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' status: code: 200 message: OK @@ -1044,400 +1018,46 @@ interactions: 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: - - Tue, 30 Mar 2021 21:48:52 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=Av5RMHZ1o7NNjdIWkuMtXO8; expires=Thu, 29-Apr-2021 21:48:53 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrpoyKUX9sVOzqzdkyEqzJgpsfsR2JjMw2C3P4y0pX5j6NwfNsWSHGQXQh8fryERt6jClbGC-lUx1593qjiPumzfSdldOwnIbyhURHYEkUo_eC9ZrpOO0_yCX8DswxqcU67vjFM-fdxopD-7YbLrhRQ5expV3hmKfBw_Yu5oglwFQgAA; - 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.11562.10 - EUS ProdSlices - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json Accept-Encoding: - gzip, deflate CommandName: - - vmware private-cloud list + - vmware private-cloud create Connection: - keep-alive ParameterSetName: - - -g + - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password + --accept-eula User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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-01-01-preview + 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: '{"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/"},"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost16.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/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: - - '1598' + - '1563' content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:48:54 GMT + - Thu, 03 Jun 2021 21:28:17 GMT expires: - '-1' pragma: - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-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: - - Tue, 30 Mar 2021 21:48:54 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=Au0a8dKYP9lNiWWLhkanLjI; expires=Thu, 29-Apr-2021 21:48:54 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevryiShb-zQgjdBEnLfcJ-ciMa9zgL7mxRO2Fl41ly-E72bvvqEfUIr2FMfDrLPPk1-C6cOqp2V8fb9HitRP-zivGWM4waWbgKbnVxf6wpgiPJsnQjTGzNC6lHpkoYYJk8JPzGARZAnl4XO4LtDyibYnkV6KcjF_tc6THmS6MeriYYgAA; - 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.11562.10 - NCUS 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-avsclient/unknown 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-01-01-preview - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - content-type: - - text/html - date: - - Tue, 30 Mar 2021 21:48:56 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/508eb6f0-7313-4d75-aab8-d3c166ea1632?api-version=2021-01-01-preview - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - 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-avsclient/unknown 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/508eb6f0-7313-4d75-aab8-d3c166ea1632?api-version=2021-01-01-preview - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-type: - - text/html - date: - - Tue, 30 Mar 2021 21:49:26 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - 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: - - Tue, 30 Mar 2021 21:49:27 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AtzOruJLC4FKoCKKBUnbtrk; expires=Thu, 29-Apr-2021 21:49:27 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrc3YlVCajwVv5ygyBBm_B0WJynWoZynWX5f5XP4U4WXBk9415sEQLB-OkkAzL_om8LvCmnFDpkjc2CBnbExOGdLPcrcP5EmYL1bu56E0CUX8MGAG9YzPGvrTc8dx0gwDuGmWcQNIoG2RKbepZzJ3OZ_xO1U3heEfWDPmyNH942iAgAA; - 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-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff - x-ms-ests-server: - - 2.1.11562.10 - SCUS ProdSlices + x-msedge-ref: + - 'Ref A: 08C50C88440E4A739AA84C1DA8C37913 Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:28:17Z' 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-avsclient/unknown 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-01-01-preview - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - content-type: - - text/html - date: - - Tue, 30 Mar 2021 21:49:28 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/9e982cb4-8e56-4f41-8a37-1c7dc9ed54ca?api-version=2021-01-01-preview - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - 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-avsclient/unknown 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/9e982cb4-8e56-4f41-8a37-1c7dc9ed54ca?api-version=2021-01-01-preview - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-type: - - text/html - date: - - Tue, 30 Mar 2021 21:49:58 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - status: - code: 204 - message: No Content - request: body: null headers: @@ -1478,13 +1098,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:50:00 GMT + - Thu, 03 Jun 2021 21:28:17 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=Aqj8gnTf17pIqIyKpjg3eL4; expires=Thu, 29-Apr-2021 21:50:00 GMT; path=/; + - fpc=AjDdeGOhVX1EsePTm3E2YL0; expires=Sat, 03-Jul-2021 21:28:18 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevruhs2q7NIN-fIET7KirgUNV1-nTsMVjnmwntkY1ka6lFGlTBA2m8jpEsC6-FsjtBfVQWVBqKElx7Xf7i796uqLiHlBy_KZp-N4rElnCXARHZuyHyGWdQQ7TKxNod5sTpQOAHI3eDuLTa3b-ftboE7YfxfBWXV7JQwx858y2oJmLwgAA; + - 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 @@ -1493,7 +1113,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11562.10 - WUS2 ProdSlices + - 2.1.11722.21 - NCUS ProdSlices status: code: 200 message: OK @@ -1505,152 +1125,39 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - vmware hcx-enterprise-site list + - vmware private-cloud list Connection: - keep-alive ParameterSetName: - - -g -c - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown 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/hcxEnterpriseSites?api-version=2021-01-01-preview - response: - body: - string: '{"value":[]}' - headers: - cache-control: - - no-cache - content-length: - - '12' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:50:02 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive + - -g 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.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-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://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: '{"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, 30 Mar 2021 21:50:02 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AmwR9pn5RCVOha3xt3mW_zs; expires=Thu, 29-Apr-2021 21:50:02 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr_2VZMduAQrAGPw9r5jqadrnk8vusDr2HkkAZKAfdXLdvOUZIIE9kZdOI6QkY5NkmF8mEiemoADjEAmvD5IGDcDcvpXPgpdqLLVGtX4EL1VAhm_d0ZDHiYVZQEEOLA-QYbKfQxSgWKpJRD9xemjclrTwo5HPDyx7Pn3NhEB6Zv98gAA; - 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.11562.10 - EUS ProdSlices - status: - code: 200 - message: OK -- request: - body: '{}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware hcx-enterprise-site create - Connection: - - keep-alive - Content-Length: - - '2' - Content-Type: - - application/json - ParameterSetName: - - -g -c -n - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown 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/hcxEnterpriseSites/myhcx?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites/myhcx","name":"myhcx","properties":{"activationKey":"2494af8b56b246c59a5b218f73d70288","status":"Available"},"type":"Microsoft.AVS/privateClouds/hcxEnterpriseSites"}' + 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: - - '379' + - '1575' content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:50:03 GMT + - Thu, 03 Jun 2021 21:28:18 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' + x-msedge-ref: + - 'Ref A: 5939D40B70BD40A48A33F45875DF95F0 Ref B: PDX31EDGE0112 Ref C: 2021-06-03T21:28:18Z' status: code: 200 message: OK @@ -1694,13 +1201,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:50:04 GMT + - Thu, 03 Jun 2021 21:28:18 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=AoL8MYVmzjtIrqkQYEa-j2E; expires=Thu, 29-Apr-2021 21:50:04 GMT; path=/; + - fpc=ArOnZh7S9JtGr0f5XL6P1QU; expires=Sat, 03-Jul-2021 21:28:19 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrMSwBjgWkZFvjYb_LF7RSPnXNb_2yjsQ6BahyJypn2cuTu9F1_OtS8YWRux5JVESlOmy66HeWr6NCsxIWI2AEr8lfjrmruzk-EOwmV6rm0f7rvsPkhQv9Si9mxEadvwLR36kz0s_kiXAG0By6ZS3xgz6tzZTJKe-Fb3GUHCn6ilEgAA; + - 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 @@ -1709,7 +1216,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11562.10 - WUS2 ProdSlices + - 2.1.11722.21 - EUS ProdSlices status: code: 200 message: OK @@ -1721,149 +1228,90 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - vmware hcx-enterprise-site list + - vmware private-cloud rotate-vcenter-password Connection: - keep-alive + Content-Length: + - '0' ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown 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/hcxEnterpriseSites?api-version=2021-01-01-preview - response: - body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites/myhcx","name":"myhcx","properties":{"activationKey":"2494af8b56b246c59a5b218f73d70288","status":"Available"},"type":"Microsoft.AVS/privateClouds/hcxEnterpriseSites"}]}' - headers: - cache-control: - - no-cache - content-length: - - '391' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:50:05 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-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 + - 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: '{"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: - - '*' + body: + string: '' + headers: cache-control: - - max-age=86400, private + - no-cache content-length: - - '131' + - '0' content-type: - - application/json; charset=utf-8 + - text/html date: - - Tue, 30 Mar 2021 21:50:05 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AgkK82YtyGRFu6J6U2jVu8c; expires=Thu, 29-Apr-2021 21:50:05 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr0YLd8HaTaqY3xE4j8OGY5-iMxOJ8RrWVrikwoHvNhsZ5Jwo80qKZjN2P6MY0i8FswEEolik3JWkraf6YOTFeyiYx50EREqLjgBseF2v28UxqewBCJrzgDPtQb9j5ANr9KLkmeR1utbEqwXUsdqG9dDJunFgHhDNgnyOtxrL3a5kgAA; - 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 + - 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-ests-server: - - 2.1.11562.10 - NCUS ProdSlices + 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: 200 - message: OK + code: 202 + message: Accepted - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - vmware hcx-enterprise-site show + - vmware private-cloud rotate-vcenter-password Connection: - keep-alive ParameterSetName: - - -g -c -n + - -g -c User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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/hcxEnterpriseSites/myhcx?api-version=2021-01-01-preview + 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: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites/myhcx","name":"myhcx","properties":{"activationKey":"2494af8b56b246c59a5b218f73d70288","status":"Available"},"type":"Microsoft.AVS/privateClouds/hcxEnterpriseSites"}' + string: '' headers: cache-control: - no-cache - content-length: - - '379' content-type: - - application/json; charset=utf-8 + - text/html date: - - Tue, 30 Mar 2021 21:50:06 GMT + - Thu, 03 Jun 2021 21:28:50 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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: 200 - message: OK + code: 204 + message: No Content - request: body: null headers: @@ -1904,13 +1352,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:50:07 GMT + - Thu, 03 Jun 2021 21:28:52 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=AhcrgBoQkuZEvPO90Mi3Iys; expires=Thu, 29-Apr-2021 21:50:07 GMT; path=/; + - fpc=AhrGyKpw4xlAjgNgzgj_4Gs; expires=Sat, 03-Jul-2021 21:28:52 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrO4IK7-fCAmT6tigzS315HTLnYmo01Vxr7iW-gmfgSptpYI_YH5lPF-beZUcQT44OodZPWPgt3Nu8n6fFanZmCKkObRNWx9oPBoIXl35ePADk-apey9y3k5JcUZCQ5s5kGf4aJ03wgtxw8SyJe-ZzcgFWbbGznYSOi87FIuotwzEgAA; + - 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 @@ -1919,7 +1367,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11562.10 - SCUS ProdSlices + - 2.1.11722.26 - EUS ProdSlices status: code: 200 message: OK @@ -1931,17 +1379,17 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - vmware hcx-enterprise-site delete + - vmware private-cloud rotate-nsxt-password Connection: - keep-alive Content-Length: - '0' ParameterSetName: - - -g -c -n + - -g -c User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown 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/hcxEnterpriseSites/myhcx?api-version=2021-01-01-preview + - 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 response: body: string: '' @@ -1953,22 +1401,68 @@ interactions: content-type: - text/html date: - - Tue, 30 Mar 2021 21:50:08 GMT + - 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 - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' + 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: 200 - message: OK + 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: @@ -2009,13 +1503,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:50:08 GMT + - Thu, 03 Jun 2021 21:29:24 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=Aqnat8_7frRLijJFXv_hv5E; expires=Thu, 29-Apr-2021 21:50:08 GMT; path=/; + - fpc=AtCMGGYxth5MnNeuB2KRIXA; expires=Sat, 03-Jul-2021 21:29:25 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrlKn_Nvw4CoEujGCQ7QNvLTD3V4R3qTN_aCff5dVixWfwXjm1FHtiNhe-gmnWu5A0BcV0_oz1Q2zUjEjM6H7MFrOHQ5lV7cIlPm6rNuDZ30c60RfiuatTBqXgDz7ftuQ3kolOUfjlU1mztK67f3HPs7m7oDRt0cq_CjYiqerdiGUgAA; + - 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 @@ -2024,12 +1518,12 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11562.10 - WUS2 ProdSlices + - 2.1.11722.26 - EUS ProdSlices status: code: 200 message: OK - request: - body: '{"properties": {"managementCluster": {"clusterSize": 3}, "internet": "Disabled"}}' + body: '{"properties": {"managementCluster": {"clusterSize": 4}, "internet": "Disabled"}}' headers: Accept: - application/json @@ -2046,35 +1540,37 @@ interactions: ParameterSetName: - -g -n --cluster-size User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - 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-01-01-preview + 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/"},"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost16.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"}' + 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/a135a601-f99b-45a8-8810-010b90b3deae?api-version=2021-01-01-preview + - 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: - - '1584' + - '1608' content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:50:09 GMT + - Thu, 03 Jun 2021 21:29:27 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1198' + x-msedge-ref: + - 'Ref A: 6CA833803C834A7184E78364BEFE5188 Ref B: PDX31EDGE0114 Ref C: 2021-06-03T21:29:25Z' status: code: 201 message: Created @@ -2092,12 +1588,12 @@ interactions: ParameterSetName: - -g -n --cluster-size User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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/a135a601-f99b-45a8-8810-010b90b3deae?api-version=2021-01-01-preview + 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/a135a601-f99b-45a8-8810-010b90b3deae","name":"a135a601-f99b-45a8-8810-010b90b3deae","percentComplete":0,"startTime":"2021-03-30T21:50:06.2399435+00:00","status":"Building"}' + 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 @@ -2106,67 +1602,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:50:20 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud update - Connection: - - keep-alive - ParameterSetName: - - -g -n --cluster-size - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown 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/a135a601-f99b-45a8-8810-010b90b3deae?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a135a601-f99b-45a8-8810-010b90b3deae","name":"a135a601-f99b-45a8-8810-010b90b3deae","percentComplete":50,"startTime":"2021-03-30T21:50:06.2399435+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '386' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:50:30 GMT + - Thu, 03 Jun 2021 21:29:38 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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 @@ -2184,35 +1632,33 @@ interactions: ParameterSetName: - -g -n --cluster-size User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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/a135a601-f99b-45a8-8810-010b90b3deae?api-version=2021-01-01-preview + 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/a135a601-f99b-45a8-8810-010b90b3deae","name":"a135a601-f99b-45a8-8810-010b90b3deae","percentComplete":75,"startTime":"2021-03-30T21:50:06.2399435+00:00","status":"Building"}' + 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: - - '386' + - '385' content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:50:40 GMT + - Thu, 03 Jun 2021 21:29:48 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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 @@ -2230,35 +1676,33 @@ interactions: ParameterSetName: - -g -n --cluster-size User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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/a135a601-f99b-45a8-8810-010b90b3deae?api-version=2021-01-01-preview + 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/a135a601-f99b-45a8-8810-010b90b3deae","name":"a135a601-f99b-45a8-8810-010b90b3deae","percentComplete":75,"startTime":"2021-03-30T21:50:06.2399435+00:00","status":"Building"}' + 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: - - '386' + - '385' content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:50:50 GMT + - Thu, 03 Jun 2021 21:29:58 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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 @@ -2276,35 +1720,33 @@ interactions: ParameterSetName: - -g -n --cluster-size User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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/a135a601-f99b-45a8-8810-010b90b3deae?api-version=2021-01-01-preview + 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-03-30T21:50:54.7831923+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a135a601-f99b-45a8-8810-010b90b3deae","name":"a135a601-f99b-45a8-8810-010b90b3deae","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/"},"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":3,"hosts":["gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost17.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-03-30T21:50:06.2399435+00:00","status":"Succeeded"}' + 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: - - '1987' + - '2058' content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:51:01 GMT + - Thu, 03 Jun 2021 21:30:09 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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 @@ -2322,35 +1764,33 @@ interactions: ParameterSetName: - -g -n --cluster-size User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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-01-01-preview + 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/"},"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":3,"hosts":["gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost17.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/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: - - '1539' + - '1610' content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:51:01 GMT + - Thu, 03 Jun 2021 21:30:09 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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 @@ -2394,13 +1834,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:51:02 GMT + - Thu, 03 Jun 2021 21:30:09 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=AjDma5aqRxJKr5AgyMjmysM; expires=Thu, 29-Apr-2021 21:51:02 GMT; path=/; + - fpc=Agc3TmgzluRGq78QKoM3viM; expires=Sat, 03-Jul-2021 21:30:10 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr-epNX4orCmGJrC5N2AncikEq3WnjK5soQnWC6mCyfLgfgmPaFFXoWZaGkjy39BlisZK6VxZjtMwnmVtDw7HxQjIIBOhSmeDw1OJSdwD_kiU53EnAFP5KFp_CPJiB0h9r7LCbaAz9T7z46xUtB3dAhqgBsbBEYAaq6WZKKdQbnEUgAA; + - 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 @@ -2409,7 +1849,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11562.10 - SCUS ProdSlices + - 2.1.11722.26 - NCUS ProdSlices status: code: 200 message: OK @@ -2431,35 +1871,37 @@ interactions: ParameterSetName: - -g -n --internet User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - 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-01-01-preview + 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/"},"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":3,"hosts":["gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost17.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"}' + 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/e3964234-061a-4fdc-a912-b164c626d2e6?api-version=2021-01-01-preview + - 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: - - '1538' + - '1609' content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:51:04 GMT + - Thu, 03 Jun 2021 21:30:10 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1194' + - '1197' + x-msedge-ref: + - 'Ref A: 8ACAB2A728114282BF9D1CFBE967E70B Ref B: PDX31EDGE0120 Ref C: 2021-06-03T21:30:10Z' status: code: 201 message: Created @@ -2477,12 +1919,12 @@ interactions: ParameterSetName: - -g -n --internet User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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/e3964234-061a-4fdc-a912-b164c626d2e6?api-version=2021-01-01-preview + 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/e3964234-061a-4fdc-a912-b164c626d2e6","name":"e3964234-061a-4fdc-a912-b164c626d2e6","percentComplete":11,"startTime":"2021-03-30T21:51:00.7330909+00:00","status":"Building"}' + 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 @@ -2491,21 +1933,63 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:51:13 GMT + - 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 - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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 @@ -2523,35 +2007,33 @@ interactions: ParameterSetName: - -g -n --internet User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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/e3964234-061a-4fdc-a912-b164c626d2e6?api-version=2021-01-01-preview + 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-03-30T21:51:20.0840204+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/e3964234-061a-4fdc-a912-b164c626d2e6","name":"e3964234-061a-4fdc-a912-b164c626d2e6","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/"},"identitySources":[],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":3,"hosts":["gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost17.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-03-30T21:51:00.7330909+00:00","status":"Succeeded"}' + 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: - - '1986' + - '2057' content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:51:25 GMT + - Thu, 03 Jun 2021 21:30:41 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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 @@ -2569,35 +2051,33 @@ interactions: ParameterSetName: - -g -n --internet User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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-01-01-preview + 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/"},"identitySources":[],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":3,"hosts":["gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost17.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/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: - - '1538' + - '1609' content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:51:25 GMT + - Thu, 03 Jun 2021 21:30:41 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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 @@ -2641,13 +2121,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:51:25 GMT + - Thu, 03 Jun 2021 21:30:42 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=ArTlReUXxQ9InR-RnunU_5k; expires=Thu, 29-Apr-2021 21:51:26 GMT; path=/; + - fpc=AiT0zbd_kwpHiE-NG38-dQ0; expires=Sat, 03-Jul-2021 21:30:42 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrjIQZCGeB4D-Ma5JM5oA2Ox4XWpQXSrzL57-wPtWGeg33YSN8w78dhJolwAnJHgKLFJM2gNQB_Pv2_2Z3-nwpM4uuvthUY_8alxvxwPsul0hW0CDNKd1gGm2TR73-WlKiAi5dI-AVLEJqHHuTA5p7aAV8uS1gTUMGibYX_jip1nAgAA; + - 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 @@ -2656,7 +2136,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11562.10 - EUS ProdSlices + - 2.1.11722.26 - WUS2 ProdSlices status: code: 200 message: OK @@ -2678,12 +2158,12 @@ interactions: ParameterSetName: - -g -c -n User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - 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-01-01-preview + 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":"f667dab8-6414-471c-bff7-310c7678e33a","provisioningState":"Succeeded"},"type":"Microsoft.AVS/privateClouds/authorizations"}' + 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 @@ -2692,23 +2172,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:51:27 GMT + - Thu, 03 Jun 2021 21:30:43 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' + x-msedge-ref: + - 'Ref A: C07708B6D7F940D686B29965EA349AE9 Ref B: PDX31EDGE0122 Ref C: 2021-06-03T21:30:43Z' status: code: 200 message: OK @@ -2752,13 +2230,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:51:27 GMT + - Thu, 03 Jun 2021 21:30:43 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=Ar0o_wkcl_VKv95jV2LXwkQ; expires=Thu, 29-Apr-2021 21:51:28 GMT; path=/; + - fpc=AvaGWGy8T6xNkeQ4l4ucA_Y; expires=Sat, 03-Jul-2021 21:30:43 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr5wlzy7L-FqGC6OGqG9j6iQtK_XYp9zkIucaPjzOnD3vfG0dUbGvK-6HjRQX3pqMHMkJSwCk3TlxK2obWp4Brpu5xwd2Aii7hBQyiGUkfmzUwN0KwbEVplHWohgZSGjEcNuMChLlu8e1g0ZFuO-Cu4KSNEljeqj6KUvZ9qUTGnyQgAA; + - 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 @@ -2767,7 +2245,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11562.10 - SCUS ProdSlices + - 2.1.11722.26 - NCUS ProdSlices status: code: 200 message: OK @@ -2787,9 +2265,9 @@ interactions: ParameterSetName: - -g -c -n User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - 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-01-01-preview + 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: '' @@ -2801,19 +2279,21 @@ interactions: content-type: - text/html date: - - Tue, 30 Mar 2021 21:51:28 GMT + - Thu, 03 Jun 2021 21:30:45 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - - '14998' + - '14999' + x-msedge-ref: + - 'Ref A: BB5F05C550B14A019B3DEF127FF9BA2F Ref B: PDX31EDGE0109 Ref C: 2021-06-03T21:30:44Z' status: code: 200 message: OK @@ -2857,13 +2337,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:51:29 GMT + - Thu, 03 Jun 2021 21:30:44 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=ArT1Yt8h2XFFv16RTH3Jh_o; expires=Thu, 29-Apr-2021 21:51:29 GMT; path=/; + - fpc=Ar_NF3NUz-1BvIs1GZwM040; expires=Sat, 03-Jul-2021 21:30:45 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrELch0l4p4G1CU6pwCkVGlSRn-kcI9inZdIPkO7XQLIVdqAz3CrvCr_llnzhi7YR--aqwho8ZjDAiGoqsCu39GrASe9txorMjrzFwEzGwqc4YIoICkdzaY-ea4urjnh-HhoOUERnTKqDT5S8nynwrTXy_OnNdFdfS8nnsRRGx0lUgAA; + - 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 @@ -2872,7 +2352,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11562.10 - SCUS ProdSlices + - 2.1.11722.26 - SCUS ProdSlices status: code: 200 message: OK @@ -2891,41 +2371,39 @@ interactions: - -g -c -n --alias --domain --base-user-dn --base-group-dn --primary-server --username --password User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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-01-01-preview + 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/"},"identitySources":[],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":3,"hosts":["gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost17.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/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: - - '1538' + - '1609' content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:51:30 GMT + - Thu, 03 Jun 2021 21:30:45 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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": 3}, "internet": "Enabled", "identitySources": + {"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": @@ -2947,35 +2425,37 @@ interactions: - -g -c -n --alias --domain --base-user-dn --base-group-dn --primary-server --username --password User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - 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-01-01-preview + 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/"},"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":3,"hosts":["gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost17.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"}' + 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/509ace65-1e1e-41c8-aca9-42b04016f1f2?api-version=2021-01-01-preview + - 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: - - '1708' + - '1779' content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:51:31 GMT + - Thu, 03 Jun 2021 21:30:46 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' + x-msedge-ref: + - 'Ref A: DCF855CFE78541F8BB9649482448FEF0 Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:30:46Z' status: code: 201 message: Created @@ -2994,12 +2474,12 @@ interactions: - -g -c -n --alias --domain --base-user-dn --base-group-dn --primary-server --username --password User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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/509ace65-1e1e-41c8-aca9-42b04016f1f2?api-version=2021-01-01-preview + 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/509ace65-1e1e-41c8-aca9-42b04016f1f2","name":"509ace65-1e1e-41c8-aca9-42b04016f1f2","percentComplete":10,"startTime":"2021-03-30T21:51:27.9213166+00:00","status":"Building"}' + 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 @@ -3008,21 +2488,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:51:42 GMT + - Thu, 03 Jun 2021 21:30:56 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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 @@ -3041,12 +2519,12 @@ interactions: - -g -c -n --alias --domain --base-user-dn --base-group-dn --primary-server --username --password User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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/509ace65-1e1e-41c8-aca9-42b04016f1f2?api-version=2021-01-01-preview + 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/509ace65-1e1e-41c8-aca9-42b04016f1f2","name":"509ace65-1e1e-41c8-aca9-42b04016f1f2","percentComplete":50,"startTime":"2021-03-30T21:51:27.9213166+00:00","status":"Building"}' + 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 @@ -3055,21 +2533,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:51:52 GMT + - Thu, 03 Jun 2021 21:31:06 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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 @@ -3088,12 +2564,12 @@ interactions: - -g -c -n --alias --domain --base-user-dn --base-group-dn --primary-server --username --password User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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/509ace65-1e1e-41c8-aca9-42b04016f1f2?api-version=2021-01-01-preview + 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/509ace65-1e1e-41c8-aca9-42b04016f1f2","name":"509ace65-1e1e-41c8-aca9-42b04016f1f2","percentComplete":100,"startTime":"2021-03-30T21:51:27.9213166+00:00","status":"Building"}' + 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 @@ -3102,21 +2578,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:52:02 GMT + - Thu, 03 Jun 2021 21:31:16 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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 @@ -3135,35 +2609,33 @@ interactions: - -g -c -n --alias --domain --base-user-dn --base-group-dn --primary-server --username --password User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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/509ace65-1e1e-41c8-aca9-42b04016f1f2?api-version=2021-01-01-preview + 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-03-30T21:51:27.9213166+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/509ace65-1e1e-41c8-aca9-42b04016f1f2","name":"509ace65-1e1e-41c8-aca9-42b04016f1f2","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/"},"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":3,"hosts":["gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost17.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-03-30T21:51:27.9213166+00:00","status":"Succeeded"}' + 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: - - '2157' + - '2228' content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:52:13 GMT + - Thu, 03 Jun 2021 21:31:27 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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 @@ -3182,35 +2654,33 @@ interactions: - -g -c -n --alias --domain --base-user-dn --base-group-dn --primary-server --username --password User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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-01-01-preview + 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/"},"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":3,"hosts":["gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost17.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/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: - - '1709' + - '1780' content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:52:13 GMT + - Thu, 03 Jun 2021 21:31:27 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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 @@ -3254,13 +2724,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:52:15 GMT + - Thu, 03 Jun 2021 21:31:28 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=AgU2GnkPrpVAguFqgpK3MLA; expires=Thu, 29-Apr-2021 21:52:15 GMT; path=/; + - fpc=AjtOMWM1Vv1OkUPoeUBKmNQ; expires=Sat, 03-Jul-2021 21:31:28 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrBnlIOVH5WTOOMZ5bxcHP00H8B48fD3cgl6wOy-HhJGX2k8THn3sj0I3F5b5NQsmhPtG0SE0H-262arCt_mHJTtLd8AvE6Bwy5K6SV5vB77SMNocztNFTV8ZhiHVbgnQxZbi8C7vPwiuQLh57U2dJSvYBsAWxNbKtyUBwCdCfMRwgAA; + - 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 @@ -3269,7 +2739,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11562.10 - EUS ProdSlices + - 2.1.11787.14 - SCUS ProdSlices status: code: 200 message: OK @@ -3287,41 +2757,39 @@ interactions: ParameterSetName: - -g -c -n --alias --domain User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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-01-01-preview + 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/"},"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":3,"hosts":["gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost17.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/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: - - '1709' + - '1780' content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:52:16 GMT + - Thu, 03 Jun 2021 21:31:28 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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": 3}, "internet": "Enabled", "identitySources": + {"managementCluster": {"clusterSize": 4}, "internet": "Enabled", "identitySources": [], "circuit": {}, "networkBlock": "192.168.48.0/22"}}' headers: Accept: @@ -3339,35 +2807,37 @@ interactions: ParameterSetName: - -g -c -n --alias --domain User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - 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-01-01-preview + 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/"},"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":3,"hosts":["gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost17.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"}' + 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/1faf9e7b-aeaa-4e50-875f-853f28d311f4?api-version=2021-01-01-preview + - 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: - - '1708' + - '1779' content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:52:16 GMT + - Thu, 03 Jun 2021 21:31:28 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' + x-msedge-ref: + - 'Ref A: 1837C0679B4A4E1C91B8C7176B6C5815 Ref B: PDX31EDGE0116 Ref C: 2021-06-03T21:31:29Z' status: code: 201 message: Created @@ -3385,12 +2855,12 @@ interactions: ParameterSetName: - -g -c -n --alias --domain User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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/1faf9e7b-aeaa-4e50-875f-853f28d311f4?api-version=2021-01-01-preview + 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/1faf9e7b-aeaa-4e50-875f-853f28d311f4","name":"1faf9e7b-aeaa-4e50-875f-853f28d311f4","percentComplete":10,"startTime":"2021-03-30T21:52:13.4251577+00:00","status":"Building"}' + 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 @@ -3399,21 +2869,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:52:26 GMT + - Thu, 03 Jun 2021 21:31:39 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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 @@ -3431,12 +2899,12 @@ interactions: ParameterSetName: - -g -c -n --alias --domain User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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/1faf9e7b-aeaa-4e50-875f-853f28d311f4?api-version=2021-01-01-preview + 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/1faf9e7b-aeaa-4e50-875f-853f28d311f4","name":"1faf9e7b-aeaa-4e50-875f-853f28d311f4","percentComplete":100,"startTime":"2021-03-30T21:52:13.4251577+00:00","status":"Building"}' + 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 @@ -3445,21 +2913,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:52:38 GMT + - Thu, 03 Jun 2021 21:31:49 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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 @@ -3477,35 +2943,33 @@ interactions: ParameterSetName: - -g -c -n --alias --domain User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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/1faf9e7b-aeaa-4e50-875f-853f28d311f4?api-version=2021-01-01-preview + 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-03-30T21:52:13.4251577+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/1faf9e7b-aeaa-4e50-875f-853f28d311f4","name":"1faf9e7b-aeaa-4e50-875f-853f28d311f4","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/"},"identitySources":[],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":3,"hosts":["gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost17.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-03-30T21:52:13.4251577+00:00","status":"Succeeded"}' + 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: - - '1986' + - '2057' content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:52:48 GMT + - Thu, 03 Jun 2021 21:31:59 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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 @@ -3523,35 +2987,33 @@ interactions: ParameterSetName: - -g -c -n --alias --domain User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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-01-01-preview + 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/"},"identitySources":[],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":3,"hosts":["gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost17.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/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: - - '1538' + - '1609' content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:52:48 GMT + - Thu, 03 Jun 2021 21:31:59 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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 @@ -3595,13 +3057,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:52:49 GMT + - Thu, 03 Jun 2021 21:32:01 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=Ar-o7BxbACxCmTAJLB5LEJw; expires=Thu, 29-Apr-2021 21:52:50 GMT; path=/; + - fpc=Apetflg2vEhGjlBGK3ViI8s; expires=Sat, 03-Jul-2021 21:32:01 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrMJDm8QWGpL4cYF7TYVQ_p9z9Sr0Pdu_PAxU2Kg4nX70g3KEtRtAu1179O5H6Ac_9Z8ZvirAwBDs1WVI6Yy33xsaVj2hxrQB5tbvgeCoOEJ9hqKm2NFaGa0V_QMjMLzKRJNbeXNi_0eXq0fNb7fZPHd0pXi9yu1zzd0OEsClCFaEgAA; + - 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 @@ -3610,7 +3072,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11562.10 - EUS ProdSlices + - 2.1.11787.14 - EUS ProdSlices status: code: 200 message: OK @@ -3628,9 +3090,9 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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-01-01-preview + 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":[]}' @@ -3642,21 +3104,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:52:50 GMT + - Thu, 03 Jun 2021 21:32:01 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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 @@ -3700,13 +3160,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:52:51 GMT + - Thu, 03 Jun 2021 21:32:01 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=Aop1sODU-vpIuyjNc2E2HSY; expires=Thu, 29-Apr-2021 21:52:51 GMT; path=/; + - fpc=AlCus6Zp51FJoKcc9oqZu7Y; expires=Sat, 03-Jul-2021 21:32:02 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrvQ3fj_hkzjd3NqviFuCFkeT8J7F2t4gx_iNs-2xCojbUTchhsEUnewmVAWT_nbmpSiaHrlnJpUtRj42D-7xZl_VKjVRtaMCUl0_qEYLrWgHtETYLcXP81OGMBNMcVWUwqy3br6V-BhmmbSBVYfZvnfGfpnpTna7hMBZlREeGE9EgAA; + - 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 @@ -3715,7 +3175,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11562.10 - NCUS ProdSlices + - 2.1.11787.14 - SCUS ProdSlices status: code: 200 message: OK @@ -3737,15 +3197,15 @@ interactions: ParameterSetName: - -g -c -n --sku --size User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - 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-01-01-preview + 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-fakehost29.mp01.mock01.vmcp.vs.management","gp-fakehost30.mp01.mock01.vmcp.vs.management","gp-fakehost25.mp01.mock01.vmcp.vs.management"],"provisioningState":"Building"},"sku":{"name":"av20"},"type":"Microsoft.AVS/privateClouds/clusters"}' + 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/758e8275-14ad-41e0-a1fb-e5fd60879b2b?api-version=2021-01-01-preview + - 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: @@ -3753,19 +3213,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:52:56 GMT + - Thu, 03 Jun 2021 21:32:07 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1197' + x-msedge-ref: + - 'Ref A: 114EC2C99E0F4721B3F91F34322087FD Ref B: PDX31EDGE0121 Ref C: 2021-06-03T21:32:02Z' status: code: 201 message: Created @@ -3783,12 +3245,12 @@ interactions: ParameterSetName: - -g -c -n --sku --size User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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/758e8275-14ad-41e0-a1fb-e5fd60879b2b?api-version=2021-01-01-preview + 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/758e8275-14ad-41e0-a1fb-e5fd60879b2b","name":"758e8275-14ad-41e0-a1fb-e5fd60879b2b","percentComplete":0,"startTime":"2021-03-30T21:52:53.3162776+00:00","status":"Building"}' + 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 @@ -3797,21 +3259,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:53:07 GMT + - Thu, 03 Jun 2021 21:32:18 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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 @@ -3829,12 +3289,12 @@ interactions: ParameterSetName: - -g -c -n --sku --size User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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/758e8275-14ad-41e0-a1fb-e5fd60879b2b?api-version=2021-01-01-preview + 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/758e8275-14ad-41e0-a1fb-e5fd60879b2b","name":"758e8275-14ad-41e0-a1fb-e5fd60879b2b","percentComplete":50,"startTime":"2021-03-30T21:52:53.3162776+00:00","status":"Building"}' + 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 @@ -3843,67 +3303,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:53:17 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware cluster create - Connection: - - keep-alive - ParameterSetName: - - -g -c -n --sku --size - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown 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/758e8275-14ad-41e0-a1fb-e5fd60879b2b?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/758e8275-14ad-41e0-a1fb-e5fd60879b2b","name":"758e8275-14ad-41e0-a1fb-e5fd60879b2b","percentComplete":0,"startTime":"2021-03-30T21:52:53.3162776+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '405' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:53:28 GMT + - Thu, 03 Jun 2021 21:32:28 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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 @@ -3921,12 +3333,12 @@ interactions: ParameterSetName: - -g -c -n --sku --size User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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/758e8275-14ad-41e0-a1fb-e5fd60879b2b?api-version=2021-01-01-preview + 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/758e8275-14ad-41e0-a1fb-e5fd60879b2b","name":"758e8275-14ad-41e0-a1fb-e5fd60879b2b","percentComplete":75,"startTime":"2021-03-30T21:52:53.3162776+00:00","status":"Building"}' + 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 @@ -3935,21 +3347,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:53:38 GMT + - Thu, 03 Jun 2021 21:32:38 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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 @@ -3967,12 +3377,12 @@ interactions: ParameterSetName: - -g -c -n --sku --size User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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/758e8275-14ad-41e0-a1fb-e5fd60879b2b?api-version=2021-01-01-preview + 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/758e8275-14ad-41e0-a1fb-e5fd60879b2b","name":"758e8275-14ad-41e0-a1fb-e5fd60879b2b","percentComplete":75,"startTime":"2021-03-30T21:52:53.3162776+00:00","status":"Building"}' + 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 @@ -3981,21 +3391,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:53:48 GMT + - Thu, 03 Jun 2021 21:32:48 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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 @@ -4013,12 +3421,12 @@ interactions: ParameterSetName: - -g -c -n --sku --size User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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/758e8275-14ad-41e0-a1fb-e5fd60879b2b?api-version=2021-01-01-preview + 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-03-30T21:53:44.7518958+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/758e8275-14ad-41e0-a1fb-e5fd60879b2b","name":"758e8275-14ad-41e0-a1fb-e5fd60879b2b","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-fakehost29.mp01.mock01.vmcp.vs.management","gp-fakehost30.mp01.mock01.vmcp.vs.management","gp-fakehost25.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"sku":{"name":"av20"},"type":"Microsoft.AVS/privateClouds/clusters"},"startTime":"2021-03-30T21:52:53.3162776+00:00","status":"Succeeded"}' + 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 @@ -4027,21 +3435,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:53:59 GMT + - Thu, 03 Jun 2021 21:32:59 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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 @@ -4059,12 +3465,12 @@ interactions: ParameterSetName: - -g -c -n --sku --size User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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-01-01-preview + 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-fakehost29.mp01.mock01.vmcp.vs.management","gp-fakehost30.mp01.mock01.vmcp.vs.management","gp-fakehost25.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"sku":{"name":"av20"},"type":"Microsoft.AVS/privateClouds/clusters"}' + 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 @@ -4073,21 +3479,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:53:59 GMT + - Thu, 03 Jun 2021 21:32:59 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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 @@ -4131,13 +3535,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:54:00 GMT + - Thu, 03 Jun 2021 21:33:00 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=AimJqdLZJ45NkHxfy_LGF9c; expires=Thu, 29-Apr-2021 21:54:01 GMT; path=/; + - fpc=AkS7dHT645hJk4EevJF72bo; expires=Sat, 03-Jul-2021 21:33:00 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrCLldTU7IlhNDFN7RuiAvC6c9MQEHBkFm5tKbUCcTpV7PynsjFpxx-JmdpSt6qZo-M86_Mlgutyau9Bx1Ojswcg4S3HRlWi7WQMPr_K81e5wT8B277cthyuQJdFOIQJsv8cGC-Dgg4FrZZbiVVQyyLaYp1jH40tHGRn7ZcZjqvaYgAA; + - 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 @@ -4146,7 +3550,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11562.10 - WUS2 ProdSlices + - 2.1.11722.21 - NCUS ProdSlices status: code: 200 message: OK @@ -4164,12 +3568,12 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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-01-01-preview + 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-fakehost29.mp01.mock01.vmcp.vs.management","gp-fakehost30.mp01.mock01.vmcp.vs.management","gp-fakehost25.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"sku":{"name":"av20"},"type":"Microsoft.AVS/privateClouds/clusters"}]}' + 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 @@ -4178,21 +3582,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:54:02 GMT + - Thu, 03 Jun 2021 21:33:00 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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 @@ -4236,13 +3638,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:54:02 GMT + - Thu, 03 Jun 2021 21:33:01 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=AmWPcW7LzztLpudSBwoe_CI; expires=Thu, 29-Apr-2021 21:54:03 GMT; path=/; + - fpc=AiSADO4-FRlAsMAT1bUm2xc; expires=Sat, 03-Jul-2021 21:33:01 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr0PcgztyMXcFn5qiJsefTW4VtFSe4OR3Y68Y2IKg2I6RyB1Jisos-Kv8stcr96hXzZnCR2qHIKblkGs12P9xhBHaS6acvdgr7-MtCJ7udYNPVoWfmAP8zDcYDFPMudZxVgBmYD6XmOS4GO8lYyHz7xz-VQILwoTkQhWfQwdyL8xMgAA; + - 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 @@ -4251,7 +3653,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11562.10 - EUS ProdSlices + - 2.1.11722.21 - WUS2 ProdSlices status: code: 200 message: OK @@ -4273,15 +3675,15 @@ interactions: ParameterSetName: - -g -c -n --size User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - 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-01-01-preview + 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-fakehost29.mp01.mock01.vmcp.vs.management","gp-fakehost30.mp01.mock01.vmcp.vs.management","gp-fakehost25.mp01.mock01.vmcp.vs.management","gp-fakehost42.mp01.mock01.vmcp.vs.management"],"provisioningState":"Updating"},"sku":{"name":"av20"},"type":"Microsoft.AVS/privateClouds/clusters"}' + 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/cb3f24f2-df30-41b0-b9c7-138e926ad340?api-version=2021-01-01-preview + - 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: @@ -4289,19 +3691,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:54:06 GMT + - Thu, 03 Jun 2021 21:33:02 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1196' + x-msedge-ref: + - 'Ref A: D302D2B24C6F4276A87F739352EB130A Ref B: PDX31EDGE0117 Ref C: 2021-06-03T21:33:01Z' status: code: 201 message: Created @@ -4319,81 +3723,33 @@ interactions: ParameterSetName: - -g -c -n --size User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown 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/cb3f24f2-df30-41b0-b9c7-138e926ad340?api-version=2021-01-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/cb3f24f2-df30-41b0-b9c7-138e926ad340","name":"cb3f24f2-df30-41b0-b9c7-138e926ad340","percentComplete":0,"startTime":"2021-03-30T21:54:02.8733969+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '405' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 30 Mar 2021 21:54:17 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware cluster update - Connection: - - keep-alive - ParameterSetName: - - -g -c -n --size - User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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/cb3f24f2-df30-41b0-b9c7-138e926ad340?api-version=2021-01-01-preview + 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/cb3f24f2-df30-41b0-b9c7-138e926ad340","name":"cb3f24f2-df30-41b0-b9c7-138e926ad340","percentComplete":50,"startTime":"2021-03-30T21:54:02.8733969+00:00","status":"Building"}' + 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: - - '406' + - '404' content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:54:27 GMT + - Thu, 03 Jun 2021 21:33:12 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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 @@ -4411,35 +3767,33 @@ interactions: ParameterSetName: - -g -c -n --size User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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/cb3f24f2-df30-41b0-b9c7-138e926ad340?api-version=2021-01-01-preview + 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/cb3f24f2-df30-41b0-b9c7-138e926ad340","name":"cb3f24f2-df30-41b0-b9c7-138e926ad340","percentComplete":0,"startTime":"2021-03-30T21:54:02.8733969+00:00","status":"Building"}' + 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: - - '405' + - '404' content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:54:38 GMT + - Thu, 03 Jun 2021 21:33:23 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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 @@ -4457,35 +3811,33 @@ interactions: ParameterSetName: - -g -c -n --size User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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/cb3f24f2-df30-41b0-b9c7-138e926ad340?api-version=2021-01-01-preview + 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/cb3f24f2-df30-41b0-b9c7-138e926ad340","name":"cb3f24f2-df30-41b0-b9c7-138e926ad340","percentComplete":75,"startTime":"2021-03-30T21:54:02.8733969+00:00","status":"Building"}' + 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: - - '406' + - '404' content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:54:49 GMT + - Thu, 03 Jun 2021 21:33:33 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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 @@ -4503,35 +3855,33 @@ interactions: ParameterSetName: - -g -c -n --size User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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/cb3f24f2-df30-41b0-b9c7-138e926ad340?api-version=2021-01-01-preview + 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: '{"endTime":"2021-03-30T21:54:44.7561278+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/cb3f24f2-df30-41b0-b9c7-138e926ad340","name":"cb3f24f2-df30-41b0-b9c7-138e926ad340","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-fakehost29.mp01.mock01.vmcp.vs.management","gp-fakehost30.mp01.mock01.vmcp.vs.management","gp-fakehost25.mp01.mock01.vmcp.vs.management","gp-fakehost42.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"sku":{"name":"av20"},"type":"Microsoft.AVS/privateClouds/clusters"},"startTime":"2021-03-30T21:54:02.8733969+00:00","status":"Succeeded"}' + 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: - - '1047' + - '1001' content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:54:59 GMT + - Thu, 03 Jun 2021 21:33:43 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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 @@ -4549,12 +3899,12 @@ interactions: ParameterSetName: - -g -c -n --size User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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-01-01-preview + 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-fakehost29.mp01.mock01.vmcp.vs.management","gp-fakehost30.mp01.mock01.vmcp.vs.management","gp-fakehost25.mp01.mock01.vmcp.vs.management","gp-fakehost42.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"sku":{"name":"av20"},"type":"Microsoft.AVS/privateClouds/clusters"}' + 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 @@ -4563,21 +3913,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:54:59 GMT + - Thu, 03 Jun 2021 21:33:43 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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 @@ -4621,13 +3969,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:55:00 GMT + - Thu, 03 Jun 2021 21:33:45 GMT p3p: - CP="DSP CUR OTPi IND OTRi ONL FIN" set-cookie: - - fpc=AkprbcRtQwBCpYG7Eq4AsGU; expires=Thu, 29-Apr-2021 21:55:01 GMT; path=/; + - fpc=Aqd9KH0cr_1CnNlNnp4iMuE; expires=Sat, 03-Jul-2021 21:33:45 GMT; path=/; secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevre3m8rMKtjgZUALa6T-v7LN6le__ZhFlZaIqI-FdzDxhMZ1uV7P3m5tUfZM_k3wcXsAbbsOJqSbz0--Q6G400woRsvJEkvTaLU7iqzhg21dlGlDh8re5EEJJft70VuvQQ4qJTwrtxsOLkO5PMDNc7_HPCLMpM4jhB7EmOOUlR1CIgAA; + - 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 @@ -4636,7 +3984,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.11562.10 - WUS2 ProdSlices + - 2.1.11722.26 - WUS2 ProdSlices status: code: 200 message: OK @@ -4656,15 +4004,15 @@ interactions: ParameterSetName: - -g -c -n User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - 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-01-01-preview + 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-fakehost29.mp01.mock01.vmcp.vs.management","gp-fakehost30.mp01.mock01.vmcp.vs.management","gp-fakehost25.mp01.mock01.vmcp.vs.management","gp-fakehost42.mp01.mock01.vmcp.vs.management"],"provisioningState":"Deleting"},"sku":{"name":"av20"},"type":"Microsoft.AVS/privateClouds/clusters"}' + 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/a2da9257-39d6-4748-9ba4-6471b9aa996d?api-version=2021-01-01-preview + - 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: @@ -4672,21 +4020,23 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:55:02 GMT + - 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/a2da9257-39d6-4748-9ba4-6471b9aa996d?api-version=2021-01-01-preview + - 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 - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - - '14997' + - '14999' + x-msedge-ref: + - 'Ref A: F366BFA33B6B40D8AA9852126AA3A6E1 Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:33:45Z' status: code: 202 message: Accepted @@ -4704,12 +4054,12 @@ interactions: ParameterSetName: - -g -c -n User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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/a2da9257-39d6-4748-9ba4-6471b9aa996d?api-version=2021-01-01-preview + 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/a2da9257-39d6-4748-9ba4-6471b9aa996d","name":"a2da9257-39d6-4748-9ba4-6471b9aa996d","percentComplete":0,"startTime":"2021-03-30T21:54:59.0873589+00:00","status":"Building"}' + 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 @@ -4718,21 +4068,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:55:13 GMT + - Thu, 03 Jun 2021 21:33:56 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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 @@ -4750,12 +4098,12 @@ interactions: ParameterSetName: - -g -c -n User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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/a2da9257-39d6-4748-9ba4-6471b9aa996d?api-version=2021-01-01-preview + 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/a2da9257-39d6-4748-9ba4-6471b9aa996d","name":"a2da9257-39d6-4748-9ba4-6471b9aa996d","percentComplete":50,"startTime":"2021-03-30T21:54:59.0873589+00:00","status":"Building"}' + 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 @@ -4764,21 +4112,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:55:23 GMT + - Thu, 03 Jun 2021 21:34:06 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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 @@ -4796,12 +4142,12 @@ interactions: ParameterSetName: - -g -c -n User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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/a2da9257-39d6-4748-9ba4-6471b9aa996d?api-version=2021-01-01-preview + 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/a2da9257-39d6-4748-9ba4-6471b9aa996d","name":"a2da9257-39d6-4748-9ba4-6471b9aa996d","percentComplete":50,"startTime":"2021-03-30T21:54:59.0873589+00:00","status":"Building"}' + 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 @@ -4810,21 +4156,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:55:34 GMT + - Thu, 03 Jun 2021 21:34:16 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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 @@ -4842,12 +4186,12 @@ interactions: ParameterSetName: - -g -c -n User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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/a2da9257-39d6-4748-9ba4-6471b9aa996d?api-version=2021-01-01-preview + 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/a2da9257-39d6-4748-9ba4-6471b9aa996d","name":"a2da9257-39d6-4748-9ba4-6471b9aa996d","percentComplete":75,"startTime":"2021-03-30T21:54:59.0873589+00:00","status":"Building"}' + 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 @@ -4856,21 +4200,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:55:44 GMT + - Thu, 03 Jun 2021 21:34:26 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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 @@ -4888,12 +4230,12 @@ interactions: ParameterSetName: - -g -c -n User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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/a2da9257-39d6-4748-9ba4-6471b9aa996d?api-version=2021-01-01-preview + 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/a2da9257-39d6-4748-9ba4-6471b9aa996d","name":"a2da9257-39d6-4748-9ba4-6471b9aa996d","percentComplete":75,"startTime":"2021-03-30T21:54:59.0873589+00:00","status":"Building"}' + 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 @@ -4902,21 +4244,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:55:54 GMT + - Thu, 03 Jun 2021 21:34:37 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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 @@ -4934,12 +4274,12 @@ interactions: ParameterSetName: - -g -c -n User-Agent: - - AZURECLI/2.18.0 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/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/a2da9257-39d6-4748-9ba4-6471b9aa996d?api-version=2021-01-01-preview + 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-03-30T21:55:54.7814702+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/a2da9257-39d6-4748-9ba4-6471b9aa996d","name":"a2da9257-39d6-4748-9ba4-6471b9aa996d","percentComplete":100,"startTime":"2021-03-30T21:54:59.0873589+00:00","status":"Succeeded"}' + 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 @@ -4948,21 +4288,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 30 Mar 2021 21:56:05 GMT + - Thu, 03 Jun 2021 21:34:47 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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' 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 new file mode 100644 index 00000000000..03337806818 --- /dev/null +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_addon.yaml @@ -0,0 +1,1805 @@ +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: + - Fri, 04 Jun 2021 01:14:55 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AlgsTiJUP3FIrRG1JcPVEMw; expires=Sun, 04-Jul-2021 01:14:55 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevroOhDcX_mPGRtljDDj4Q1klOhQMVEbcBZ9y7OzKwXqUIF7_bFwRKIdtOazpn_-QnFYhG_ZQzU4lH1B2TWhj3Hj1VidKUhamjDcb3sMdb8AGa7po1-pVR0yK559ciAQ87U_9pKNiTberfEjvg-2zUYPjKgeD8aMZMoW3LZzWHFAdggAA; + 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": "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://api-dogfood.resources.windows-int.net/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-fakehost31.mp01.mock01.vmcp.vs.management","gp-fakehost30.mp01.mock01.vmcp.vs.management","gp-fakehost29.mp01.mock01.vmcp.vs.management","gp-fakehost28.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"}' + 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/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6?api-version=2021-06-01 + cache-control: + - no-cache + content-length: + - '978' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:15: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: + - '1199' + x-msedge-ref: + - 'Ref A: E68EC5C3FDB047D4851EDEE0B4C2C12F Ref B: PDX31EDGE0113 Ref C: 2021-06-04T01:14:55Z' + 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://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6?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/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6","name":"74262fa0-62b2-430b-a9b5-1fc7ea3e97e6","percentComplete":0,"startTime":"2021-06-04T01:15:01.9605806+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '387' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:15: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: 3C9C78087AB4450AB94EA2AF141D7E31 Ref B: PDX31EDGE0113 Ref C: 2021-06-04T01:15: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 --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://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6?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/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6","name":"74262fa0-62b2-430b-a9b5-1fc7ea3e97e6","percentComplete":0,"startTime":"2021-06-04T01:15:01.9605806+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '387' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:15: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: E8149F6885704EF1A6059802FA972DA3 Ref B: PDX31EDGE0113 Ref C: 2021-06-04T01:15: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 --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://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6?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/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6","name":"74262fa0-62b2-430b-a9b5-1fc7ea3e97e6","percentComplete":88.75,"startTime":"2021-06-04T01:15:01.9605806+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '391' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:15:32 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 1E35F494A033475ABBC44E4D06E27C96 Ref B: PDX31EDGE0113 Ref C: 2021-06-04T01:15:32Z' + 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://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6?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/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6","name":"74262fa0-62b2-430b-a9b5-1fc7ea3e97e6","percentComplete":88.75,"startTime":"2021-06-04T01:15:01.9605806+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '391' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:15:42 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 7CB1EF3BBB6242BD84744AD93F32F01F Ref B: PDX31EDGE0113 Ref C: 2021-06-04T01:15:43Z' + 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://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6?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/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6","name":"74262fa0-62b2-430b-a9b5-1fc7ea3e97e6","percentComplete":100,"startTime":"2021-06-04T01:15:01.9605806+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '389' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:15:52 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 8443BC2B28004A9B972D37F1056652D8 Ref B: PDX31EDGE0113 Ref C: 2021-06-04T01:15:53Z' + 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://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6?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/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6","name":"74262fa0-62b2-430b-a9b5-1fc7ea3e97e6","percentComplete":100,"startTime":"2021-06-04T01:15:01.9605806+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '389' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:16: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: 56563E9676834382A7C124F7A9E6C27C Ref B: PDX31EDGE0113 Ref C: 2021-06-04T01:16:03Z' + 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://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6?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/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6","name":"74262fa0-62b2-430b-a9b5-1fc7ea3e97e6","percentComplete":100,"startTime":"2021-06-04T01:15:01.9605806+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '389' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:16: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: CE377FAB2F8E475391A3ADAF1B2605B8 Ref B: PDX31EDGE0113 Ref C: 2021-06-04T01:16:13Z' + 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://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6?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/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6","name":"74262fa0-62b2-430b-a9b5-1fc7ea3e97e6","percentComplete":100,"startTime":"2021-06-04T01:15:01.9605806+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '389' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:16: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: D45A7CD0E487479E81BFDC4A868EAF3C Ref B: PDX31EDGE0113 Ref C: 2021-06-04T01:16:23Z' + 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://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6?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/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6","name":"74262fa0-62b2-430b-a9b5-1fc7ea3e97e6","percentComplete":100,"startTime":"2021-06-04T01:15:01.9605806+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '389' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:16: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: 39E7E3BD1F684223BDC2327C0B6BE7AB Ref B: PDX31EDGE0113 Ref C: 2021-06-04T01:16:34Z' + 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://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6?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/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6","name":"74262fa0-62b2-430b-a9b5-1fc7ea3e97e6","percentComplete":100,"startTime":"2021-06-04T01:15:01.9605806+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '389' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:16: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: 61BE8D450CC84B6D874D67E301B4602D Ref B: PDX31EDGE0113 Ref C: 2021-06-04T01:16:44Z' + 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://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6?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/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6","name":"74262fa0-62b2-430b-a9b5-1fc7ea3e97e6","percentComplete":100,"startTime":"2021-06-04T01:15:01.9605806+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '389' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:16: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: 8E7EE79974CD48D69F3F24C221E84547 Ref B: PDX31EDGE0113 Ref C: 2021-06-04T01:16:54Z' + 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://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6?api-version=2021-06-01 + response: + body: + string: '{"endTime":"2021-06-04T01:16:59.2258667+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/74262fa0-62b2-430b-a9b5-1fc7ea3e97e6","name":"74262fa0-62b2-430b-a9b5-1fc7ea3e97e6","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/tnt75-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt75-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt75-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt75-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-fakehost31.mp01.mock01.vmcp.vs.management","gp-fakehost30.mp01.mock01.vmcp.vs.management","gp-fakehost29.mp01.mock01.vmcp.vs.management","gp-fakehost28.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-04T01:15:01.9605806+00:00","status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '2069' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:17: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: 21BFA2A2E7A449458A670AA6AD99DFE9 Ref B: PDX31EDGE0113 Ref C: 2021-06-04T01:17:04Z' + 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://api-dogfood.resources.windows-int.net/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/tnt75-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt75-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt75-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt75-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-fakehost31.mp01.mock01.vmcp.vs.management","gp-fakehost30.mp01.mock01.vmcp.vs.management","gp-fakehost29.mp01.mock01.vmcp.vs.management","gp-fakehost28.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: + - '1619' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:17: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: 69D9634CE9004CDDB99625AC5789B76E Ref B: PDX31EDGE0113 Ref C: 2021-06-04T01:17: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 + 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: + - Fri, 04 Jun 2021 01:17:05 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AvJdidjTajVMpJI6tkbvCgo; expires=Sun, 04-Jul-2021 01:17:05 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr2HJdDjtvCUrc2CeixeTXUBlvXJa7xGTkRWj3QOC-vOovJC3V9rumQ0fEYRqDFnkm66LsbdmoSZ7AKI4NAjKSl2VBecA-FEcFIPF81X9KxnfKctgp-f1ofDu2TWqlxfQawS87iGb0-3BFgbEds96nGVgXWd6g5TEwcRiU5HBFW7EgAA; + 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 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://api-dogfood.resources.windows-int.net/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: + - Fri, 04 Jun 2021 01:17: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: D13ED1D68C0540809F10B1649E335D27 Ref B: PDX31EDGE0119 Ref C: 2021-06-04T01:17:05Z' + 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: + - Fri, 04 Jun 2021 01:17:06 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AvKvRMVhyU1CmxNvwH7muzo; expires=Sun, 04-Jul-2021 01:17:06 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrGimviEVQAG9CE5uWHnVUH1iSNMJyfPFGLD5aiR1SsWUJ2bwj12Yr0BXSuApQkfLRdhsHVerqBxK_ZWgerN5cO0xS4MfR6W49nL2fUliquL-4GcMNfgGFR5AXlDvfoP9Q1_GXzSC4Swl5VAdTANgVDVt3P8UGK71z28tsPNRJkkwgAA; + 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: '{"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://api-dogfood.resources.windows-int.net/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/a7c4a7bb-f176-4443-accf-52606e7b907b?api-version=2021-06-01 + cache-control: + - no-cache + content-length: + - '340' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:17: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: + - '1195' + x-msedge-ref: + - 'Ref A: 6AFFE1DDE1DD4B97918375009ABF1AC6 Ref B: PDX31EDGE0120 Ref C: 2021-06-04T01:17:06Z' + 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://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/a7c4a7bb-f176-4443-accf-52606e7b907b?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/a7c4a7bb-f176-4443-accf-52606e7b907b","name":"a7c4a7bb-f176-4443-accf-52606e7b907b","percentComplete":25,"startTime":"2021-06-04T01:17:07.6503196+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '398' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:17: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: B4DCFE37D3634558A7761EA03AD72052 Ref B: PDX31EDGE0120 Ref C: 2021-06-04T01:17:17Z' + 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://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/a7c4a7bb-f176-4443-accf-52606e7b907b?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/a7c4a7bb-f176-4443-accf-52606e7b907b","name":"a7c4a7bb-f176-4443-accf-52606e7b907b","percentComplete":0,"startTime":"2021-06-04T01:17:07.6503196+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '397' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:17: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: 78AC6270A30643A59315B7EE00F4ED32 Ref B: PDX31EDGE0120 Ref C: 2021-06-04T01:17:28Z' + 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://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/a7c4a7bb-f176-4443-accf-52606e7b907b?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/a7c4a7bb-f176-4443-accf-52606e7b907b","name":"a7c4a7bb-f176-4443-accf-52606e7b907b","percentComplete":50,"startTime":"2021-06-04T01:17:07.6503196+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '398' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:17: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: 3B88D8C9502445DD9C31DC7C8051A0DF Ref B: PDX31EDGE0120 Ref C: 2021-06-04T01:17:38Z' + 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://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/a7c4a7bb-f176-4443-accf-52606e7b907b?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/a7c4a7bb-f176-4443-accf-52606e7b907b","name":"a7c4a7bb-f176-4443-accf-52606e7b907b","percentComplete":0,"startTime":"2021-06-04T01:17:07.6503196+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '397' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:17: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: 76FF3B630FB742619DEF746EC05674C4 Ref B: PDX31EDGE0120 Ref C: 2021-06-04T01:17:48Z' + 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://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/a7c4a7bb-f176-4443-accf-52606e7b907b?api-version=2021-06-01 + response: + body: + string: '{"endTime":"2021-06-04T01:17:44.0502741+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr/operationstatuses/a7c4a7bb-f176-4443-accf-52606e7b907b","name":"a7c4a7bb-f176-4443-accf-52606e7b907b","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-04T01:17:07.6503196+00:00","status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '801' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:17: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: FCD295CCABB24CF5947DC0FE831A34FC Ref B: PDX31EDGE0120 Ref C: 2021-06-04T01:17:58Z' + 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://api-dogfood.resources.windows-int.net/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: + - Fri, 04 Jun 2021 01:17: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: 2BC0AAE5923846DA91FEB7F7C8B968D1 Ref B: PDX31EDGE0120 Ref C: 2021-06-04T01:17:58Z' + 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: + - Fri, 04 Jun 2021 01:17:58 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AoNokgBYlSVBtZKOL8n1xrY; expires=Sun, 04-Jul-2021 01:17:59 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrtO1NEQsZnsGnUjYGZw8kluGK-py-Y03C1b1-hgciN2AEVIvUgrDRcJnQB3mXiBlh1QkLBYH4IwsL84LQsknh-MjKLPceJC_JO0DBeHs0MjfoFOHzuP4zSzsSVDUFRoYcwE_8TMFZZMv8ZMqS_AGfG8l4oxZ-PZlNYC-7lMU01jIgAA; + 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 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://api-dogfood.resources.windows-int.net/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: + - Fri, 04 Jun 2021 01:17: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: 05BD151FA6764AA784FE3DCC8F8E1D3D Ref B: PDX31EDGE0111 Ref C: 2021-06-04T01:17: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: + - Fri, 04 Jun 2021 01:18:00 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AshtVrOo-1ZDjzlDEtDFg78; expires=Sun, 04-Jul-2021 01:18:00 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrXEESoVLh9tborC-5jO0qjlQmRHg0Id2nDz61j8LIfTsGbZ2bbWh2kUpX6qxyNVaeT5-tn3YFsdP1sIQVxWUwNE63mwkcZaUt1Cz5XMQWyT61uU9pvmeUVUlLl7QHcYNbjbrK5mF4VzJqgTwQbo8jbVXOtGNy5cf8AVGZfP2WOdUgAA; + 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: 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://api-dogfood.resources.windows-int.net/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: + - Fri, 04 Jun 2021 01:18: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: 262EFE2448474AFF86CF1CD2C54D6480 Ref B: PDX31EDGE0111 Ref C: 2021-06-04T01:18: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: + - Fri, 04 Jun 2021 01:18:00 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AhTm7fQbUAdEuhVbK8xP1qs; expires=Sun, 04-Jul-2021 01:18:00 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrOiiFQPf4_nciCCIipWyZSUZsjIm0atKnhF23cvHRrK_NEHzHFwvl8VcnvFlrV7ev4T0hWRQjiBhzGuR3a_7iB-yJY_Wucc2c-oEjaaX3uQu4EydAcOgj7VgN6ii5IanLi3QxsVLGqMjhob9Z5frRImc6g8hePviNGqTqfGx3InYgAA; + 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 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://api-dogfood.resources.windows-int.net/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/98235272-1944-43ca-b45c-bebd59b1bd92?api-version=2021-06-01 + cache-control: + - no-cache + content-length: + - '340' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:18:00 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/98235272-1944-43ca-b45c-bebd59b1bd92?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: + - '14997' + x-msedge-ref: + - 'Ref A: CD5B5BFA6D4D444DB2D34BC3C02F1B2F Ref B: PDX31EDGE0121 Ref C: 2021-06-04T01:18: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://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/98235272-1944-43ca-b45c-bebd59b1bd92?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/98235272-1944-43ca-b45c-bebd59b1bd92","name":"98235272-1944-43ca-b45c-bebd59b1bd92","percentComplete":0,"startTime":"2021-06-04T01:18:01.1326769+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '397' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:18: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: BC592D98F6C240B68C12F83D5DD1EEFB Ref B: PDX31EDGE0121 Ref C: 2021-06-04T01:18: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://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/98235272-1944-43ca-b45c-bebd59b1bd92?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/98235272-1944-43ca-b45c-bebd59b1bd92","name":"98235272-1944-43ca-b45c-bebd59b1bd92","percentComplete":0,"startTime":"2021-06-04T01:18:01.1326769+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '397' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:18: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: 32387C5DA5874D67A93A1560C208C400 Ref B: PDX31EDGE0121 Ref C: 2021-06-04T01:18: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://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/98235272-1944-43ca-b45c-bebd59b1bd92?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/98235272-1944-43ca-b45c-bebd59b1bd92","name":"98235272-1944-43ca-b45c-bebd59b1bd92","percentComplete":50,"startTime":"2021-06-04T01:18:01.1326769+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '398' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:18: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: A8F32D41E935423FB28F701155BED24E Ref B: PDX31EDGE0121 Ref C: 2021-06-04T01:18: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://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/98235272-1944-43ca-b45c-bebd59b1bd92?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/98235272-1944-43ca-b45c-bebd59b1bd92","name":"98235272-1944-43ca-b45c-bebd59b1bd92","percentComplete":0,"startTime":"2021-06-04T01:18:01.1326769+00:00","status":"Building"}' + headers: + cache-control: + - no-cache + content-length: + - '397' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:18: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: 96815CAAF5134036B032510D806728BD Ref B: PDX31EDGE0121 Ref C: 2021-06-04T01:18:41Z' + 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://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/98235272-1944-43ca-b45c-bebd59b1bd92?api-version=2021-06-01 + response: + body: + string: '{"endTime":"2021-06-04T01:18:39.0494200+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr/operationstatuses/98235272-1944-43ca-b45c-bebd59b1bd92","name":"98235272-1944-43ca-b45c-bebd59b1bd92","percentComplete":100,"startTime":"2021-06-04T01:18:01.1326769+00:00","status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '446' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 04 Jun 2021 01:18: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: D52AC86943324364834495C971CCCC37 Ref B: PDX31EDGE0121 Ref C: 2021-06-04T01:18:52Z' + 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: + - Fri, 04 Jun 2021 01:18:52 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Aonec9VPQYFMiOT1xefOtek; expires=Sun, 04-Jul-2021 01:18:52 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrJ5x1-VgS2KVYhm90pYVRX-JClvzgjcDE0RlN9_t5XwlrZIWYTXo9hE7fP5V3l4n6NkFkDky2K615sdL4QSlz18p5gOWkgRpB3UXmqOjC4DkuEWw8AVIkWPjKEq4klQWHKP862Fep7c17QQxxcm5awRSWsuFN9ee9jE1NiSnz6XogAA; + 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 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://api-dogfood.resources.windows-int.net/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: + - Fri, 04 Jun 2021 01:18:53 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: E42B1FCEA4FA4BDEB76E1571C3D351F0 Ref B: PDX31EDGE0111 Ref C: 2021-06-04T01:18:53Z' + status: + code: 200 + message: OK +version: 1 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 fd00341f8de..0a1068ab48d 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,190 +1,304 @@ 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"}}}' headers: Accept: - application/json Accept-Encoding: - gzip, deflate CommandName: - - vmware datastore show + - vmware datastore disk-pool-volume create Connection: - keep-alive + Content-Length: + - '271' + Content-Type: + - application/json ParameterSetName: - - --name --resource-group --cluster --private-cloud + - --name --resource-group --private-cloud --cluster --target-id --lun-name User-Agent: - - AZURECLI/2.19.1 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://eastus2euap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-cloudsan-rg/providers/Microsoft.AVS/privateClouds/rasivagu-sddc/clusters/Cluster-1/datastores/rasivagu-iscsi-datastore?api-version=2021-01-01-preview + - AZURECLI/2.19.1 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/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-cloudsan-rg/providers/Microsoft.AVS/privateClouds/rasivagu-sddc/clusters/Cluster-1/datastores/rasivagu-iscsi-datastore","name":"rasivagu-iscsi-datastore","properties":{"diskPoolVolume":{"endpoints":["10.45.0.4:3260"],"lunName":"lun0"},"provisioningState":"Succeeded"},"type":"Microsoft.AVS/privateClouds/clusters/datastores"}' + 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: - - '408' + - '570' content-type: - application/json; charset=utf-8 date: - - Mon, 15 Feb 2021 13:09:26 GMT + - Thu, 03 Jun 2021 20:37:16 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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: 200 - message: OK + code: 201 + message: Created - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - vmware datastore list + - vmware datastore disk-pool-volume create Connection: - keep-alive ParameterSetName: - - --resource-group --cluster --private-cloud + - --name --resource-group --private-cloud --cluster --target-id --lun-name User-Agent: - - AZURECLI/2.19.1 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.18362-SP0) + - 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://eastus2euap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-cloudsan-rg/providers/Microsoft.AVS/privateClouds/rasivagu-sddc/clusters/Cluster-1/datastores?api-version=2021-01-01-preview + 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: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-cloudsan-rg/providers/Microsoft.AVS/privateClouds/rasivagu-sddc/clusters/Cluster-1/datastores/ANFDatastore1","name":"ANFDatastore1","properties":{"netAppVolume":{"nfsFilePath":"ANFVol1FilePath","nfsProviderIp":"10.50.1.4"},"provisioningState":"Deleting"},"type":"Microsoft.AVS/privateClouds/clusters/datastores"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-cloudsan-rg/providers/Microsoft.AVS/privateClouds/rasivagu-sddc/clusters/Cluster-1/datastores/functional-test","name":"functional-test","properties":{"diskPoolVolume":{"endpoints":["10.45.0.4:3260"],"lunName":"lun1"},"provisioningState":"Deleting"},"type":"Microsoft.AVS/privateClouds/clusters/datastores"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-cloudsan-rg/providers/Microsoft.AVS/privateClouds/rasivagu-sddc/clusters/Cluster-1/datastores/rasivagu-iscsi-datastore","name":"rasivagu-iscsi-datastore","properties":{"diskPoolVolume":{"endpoints":["10.45.0.4:3260"],"lunName":"lun0"},"provisioningState":"Succeeded"},"type":"Microsoft.AVS/privateClouds/clusters/datastores"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-cloudsan-rg/providers/Microsoft.AVS/privateClouds/rasivagu-sddc/clusters/Cluster-1/datastores/rasivagu-iscsi-datastore-1","name":"rasivagu-iscsi-datastore-1","properties":{"diskPoolVolume":{"endpoints":["10.45.0.4"],"lunName":"lun1"},"provisioningState":"Building"},"type":"Microsoft.AVS/privateClouds/clusters/datastores"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-cloudsan-rg/providers/Microsoft.AVS/privateClouds/rasivagu-sddc/clusters/Cluster-1/datastores/rasivagu-iscsi-datastore-copy","name":"rasivagu-iscsi-datastore-copy","properties":{"diskPoolVolume":{"endpoints":["10.45.0.4:3260"],"lunName":"lun1"},"provisioningState":"Deleting"},"type":"Microsoft.AVS/privateClouds/clusters/datastores"}]}' + 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: - - '2031' + - '1019' content-type: - application/json; charset=utf-8 date: - - Mon, 15 Feb 2021 13:09:27 GMT + - Thu, 03 Jun 2021 20:37:26 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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: '{"properties": {"netAppVolume": {"nfsProviderIp": "10.50.1.4", "nfsFilePath": - "ANFVol1FilePath"}}}' + body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - vmware datastore create + - vmware datastore disk-pool-volume create Connection: - keep-alive - Content-Length: - - '98' - Content-Type: - - application/json ParameterSetName: - - --name --resource-group --cluster --private-cloud --nfs-file-path --nfs-provider-ip + - --name --resource-group --private-cloud --cluster --target-id --lun-name User-Agent: - - AZURECLI/2.19.1 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.18362-SP0) - method: PUT - uri: https://eastus2euap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-cloudsan-rg/providers/Microsoft.AVS/privateClouds/rasivagu-sddc/clusters/Cluster-1/datastores/ANFDatastore1?api-version=2021-01-01-preview + - 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-cloudsan-rg/providers/Microsoft.AVS/privateClouds/rasivagu-sddc/clusters/Cluster-1/datastores/ANFDatastore1","name":"ANFDatastore1","properties":{"netAppVolume":{"nfsFilePath":"ANFVol1FilePath","nfsProviderIp":"10.50.1.4"},"provisioningState":"Pending"},"type":"Microsoft.AVS/privateClouds/clusters/datastores"}' + 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: - azure-asyncoperation: - - https://eastus2euap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-cloudsan-rg/providers/Microsoft.AVS/privateClouds/rasivagu-sddc/clusters/Cluster-1/datastores/ANFDatastore1/operationstatuses/a54926ad-f0c2-4372-a7a1-6eb68ec90208?api-version=2021-01-01-preview cache-control: - no-cache content-length: - - '394' + - '572' content-type: - application/json; charset=utf-8 date: - - Mon, 15 Feb 2021 13:09:30 GMT + - Thu, 03 Jun 2021 20:37:26 GMT expires: - '-1' pragma: - no-cache - server: - - nginx 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: C8A051D94412485EADACEADAADD063FD Ref B: WSTEDGE1110 Ref C: 2021-06-03T20:37:26Z' status: - code: 201 - message: Created + 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 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 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json Accept-Encoding: - gzip, deflate CommandName: - - vmware datastore create + - vmware datastore show Connection: - keep-alive ParameterSetName: - - --name --resource-group --cluster --private-cloud --nfs-file-path --nfs-provider-ip + - --name --resource-group --private-cloud --cluster User-Agent: - - AZURECLI/2.19.1 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.18362-SP0) + - 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://eastus2euap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-cloudsan-rg/providers/Microsoft.AVS/privateClouds/rasivagu-sddc/clusters/Cluster-1/datastores/ANFDatastore1/operationstatuses/a54926ad-f0c2-4372-a7a1-6eb68ec90208?api-version=2021-01-01-preview + 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: '{"endTime":"2021-02-15T13:09:32.3362991+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-cloudsan-rg/providers/Microsoft.AVS/privateClouds/rasivagu-sddc/clusters/Cluster-1/datastores/ANFDatastore1/operationstatuses/a54926ad-f0c2-4372-a7a1-6eb68ec90208","name":"a54926ad-f0c2-4372-a7a1-6eb68ec90208","percentComplete":100,"startTime":"2021-02-15T13:09:29.6193991+00:00","status":"Succeeded"}' + 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: - - '430' + - '572' content-type: - application/json; charset=utf-8 date: - - Mon, 15 Feb 2021 13:09:40 GMT + - Thu, 03 Jun 2021 20:37:27 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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 @@ -193,44 +307,57 @@ interactions: headers: Accept: - '*/*' + Accept-Charset: + - utf-8 Accept-Encoding: - gzip, deflate - CommandName: - - vmware datastore create Connection: - keep-alive - ParameterSetName: - - --name --resource-group --cluster --private-cloud --nfs-file-path --nfs-provider-ip User-Agent: - - AZURECLI/2.19.1 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.18362-SP0) + - 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://eastus2euap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-cloudsan-rg/providers/Microsoft.AVS/privateClouds/rasivagu-sddc/clusters/Cluster-1/datastores/ANFDatastore1?api-version=2021-01-01-preview + 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: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-cloudsan-rg/providers/Microsoft.AVS/privateClouds/rasivagu-sddc/clusters/Cluster-1/datastores/ANFDatastore1","name":"ANFDatastore1","properties":{"netAppVolume":{"nfsFilePath":"ANFVol1FilePath","nfsProviderIp":"10.50.1.4"},"provisioningState":"Building"},"type":"Microsoft.AVS/privateClouds/clusters/datastores"}' + 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: - - no-cache + - max-age=86400, private content-length: - - '395' + - '131' content-type: - application/json; charset=utf-8 date: - - Mon, 15 Feb 2021 13:09:40 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx + - 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 - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-content-type-options: - nosniff + x-ms-ests-server: + - 2.1.11722.21 - SCUS ProdSlices status: code: 200 message: OK @@ -242,41 +369,98 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - vmware datastore show + - vmware datastore list Connection: - keep-alive ParameterSetName: - - --name --resource-group --cluster --private-cloud + - --resource-group --private-cloud --cluster User-Agent: - - AZURECLI/2.19.1 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.18362-SP0) + - 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://eastus2euap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-cloudsan-rg/providers/Microsoft.AVS/privateClouds/rasivagu-sddc/clusters/Cluster-1/datastores/ANFDatastore1?api-version=2021-01-01-preview + 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 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-cloudsan-rg/providers/Microsoft.AVS/privateClouds/rasivagu-sddc/clusters/Cluster-1/datastores/ANFDatastore1","name":"ANFDatastore1","properties":{"netAppVolume":{"nfsFilePath":"ANFVol1FilePath","nfsProviderIp":"10.50.1.4"},"provisioningState":"Building"},"type":"Microsoft.AVS/privateClouds/clusters/datastores"}' + 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"}]}' headers: cache-control: - no-cache content-length: - - '395' + - '2916' content-type: - application/json; charset=utf-8 date: - - Mon, 15 Feb 2021 13:09:42 GMT + - Thu, 03 Jun 2021 20:37:29 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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 + 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 status: code: 200 message: OK @@ -294,39 +478,41 @@ interactions: Content-Length: - '0' ParameterSetName: - - --name --resource-group --cluster --private-cloud + - --name --resource-group --private-cloud --cluster User-Agent: - - AZURECLI/2.19.1 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.19.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://eastus2euap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-cloudsan-rg/providers/Microsoft.AVS/privateClouds/rasivagu-sddc/clusters/Cluster-1/datastores/ANFDatastore1?api-version=2021-01-01-preview + 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-cloudsan-rg/providers/Microsoft.AVS/privateClouds/rasivagu-sddc/clusters/Cluster-1/datastores/ANFDatastore1","name":"ANFDatastore1","properties":{"netAppVolume":{"nfsFilePath":"ANFVol1FilePath","nfsProviderIp":"10.50.1.4"},"provisioningState":"Building"},"type":"Microsoft.AVS/privateClouds/clusters/datastores"}' + 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://eastus2euap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-cloudsan-rg/providers/Microsoft.AVS/privateClouds/rasivagu-sddc/clusters/Cluster-1/datastores/ANFDatastore1/operationstatuses/77db29fd-fe41-4188-8728-345b993ced83?api-version=2021-01-01-preview + - 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: - - '395' + - '570' content-type: - application/json; charset=utf-8 date: - - Mon, 15 Feb 2021 13:09:43 GMT + - Thu, 03 Jun 2021 20:37:31 GMT expires: - '-1' location: - - https://eastus2euap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-cloudsan-rg/providers/Microsoft.AVS/privateClouds/rasivagu-sddc/clusters/Cluster-1/datastores/ANFDatastore1/operationresults/77db29fd-fe41-4188-8728-345b993ced83?api-version=2021-01-01-preview + - 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 - server: - - nginx 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 @@ -342,37 +528,35 @@ interactions: Connection: - keep-alive ParameterSetName: - - --name --resource-group --cluster --private-cloud + - --name --resource-group --private-cloud --cluster User-Agent: - - AZURECLI/2.19.1 azsdk-python-avsclient/unknown Python/3.8.7 (Windows-10-10.0.18362-SP0) + - 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://eastus2euap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-cloudsan-rg/providers/Microsoft.AVS/privateClouds/rasivagu-sddc/clusters/Cluster-1/datastores/ANFDatastore1/operationstatuses/77db29fd-fe41-4188-8728-345b993ced83?api-version=2021-01-01-preview + 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 response: body: - string: '{"endTime":"2021-02-15T13:09:49.6616633+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-cloudsan-rg/providers/Microsoft.AVS/privateClouds/rasivagu-sddc/clusters/Cluster-1/datastores/ANFDatastore1/operationstatuses/77db29fd-fe41-4188-8728-345b993ced83","name":"77db29fd-fe41-4188-8728-345b993ced83","percentComplete":100,"startTime":"2021-02-15T13:09:43.4189481+00:00","status":"Succeeded"}' + 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"}' headers: cache-control: - no-cache content-length: - - '430' + - '433' content-type: - application/json; charset=utf-8 date: - - Mon, 15 Feb 2021 13:09:53 GMT + - Thu, 03 Jun 2021 20:37:41 GMT expires: - '-1' pragma: - no-cache - server: - - nginx strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + 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' 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 new file mode 100644 index 00000000000..92294a09967 --- /dev/null +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_hcx.yaml @@ -0,0 +1,1812 @@ +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"}}' + 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: 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 + 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"}' + headers: + cache-control: + - no-cache + content-length: + - '825' + 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: 047096156FCE4AA38C25E2647D994349 Ref B: PDX31EDGE0110 Ref C: 2021-06-04T20:50:38Z' + 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?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 + 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: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 + 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_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 + 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: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 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware hcx-enterprise-site list + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/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 + 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: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 + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware hcx-enterprise-site 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://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 + 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: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 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware hcx-enterprise-site list + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/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 + 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: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 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware hcx-enterprise-site show + Connection: + - keep-alive + ParameterSetName: + - -g -c -n + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/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 + 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: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 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware hcx-enterprise-site delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -c -n + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites/myhcx?api-version=2021-06-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 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware hcx-enterprise-site list + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/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: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' + status: + code: 200 + message: OK +version: 1 diff --git a/src/vmware/azext_vmware/tests/latest/test_addon_scenario.py b/src/vmware/azext_vmware/tests/latest/test_addon_scenario.py new file mode 100644 index 00000000000..3c98b5ce987 --- /dev/null +++ b/src/vmware/azext_vmware/tests/latest/test_addon_scenario.py @@ -0,0 +1,65 @@ +# -------------------------------------------------------------------------------------------- +# 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) +from msrestazure.azure_exceptions import CloudError + + +class VmwareAddonScenarioTest(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(VmwareAddonScenarioTest, self).setUp() + + @ResourceGroupPreparer(name_prefix='cli_test_vmware_addon') + def test_vmware_addon(self): + self.kwargs.update({ + 'loc': 'northcentralus', + 'privatecloud': 'mycloud1' + }) + + # create a private cloud + self.cmd('vmware private-cloud create -g {rg} -n {privatecloud} --location {loc} --sku av20 --cluster-size 4 --network-block 192.168.48.0/22 --accept-eula') + + # 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') + + # Create a VR addon + self.cmd('az vmware addon vr create -g {rg} -c {privatecloud} --vrs-count 1') + + # List all existing addon + 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') + + # Show a VR addon + self.cmd('az vmware addon vr show -g {rg} -c {privatecloud}') + + # Delete a VR addon + self.cmd('az vmware addon vr delete -g {rg} -c {privatecloud}') + + # 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') + + # # Create a SRM addon + # self.cmd('az vmware addon srm create -g {rg} -c {privatecloud} --license-key "41915178-A8FF-4A4D-B683-6D735AF5E3F5"') + + # # List all existing addon + # 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') + + # # Show a SRM addon + # self.cmd('az vmware addon srm show -g {rg} -c {privatecloud}') + + # # Delete a SRM addon + # self.cmd('az vmware addon srm delete -g {rg} -c {privatecloud}') + + # # 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') diff --git a/src/vmware/azext_vmware/tests/latest/test_datastores_scenario.py b/src/vmware/azext_vmware/tests/latest/test_datastores_scenario.py index 4e9cbdc4496..528bd1cd3f0 100644 --- a/src/vmware/azext_vmware/tests/latest/test_datastores_scenario.py +++ b/src/vmware/azext_vmware/tests/latest/test_datastores_scenario.py @@ -18,17 +18,33 @@ def setUp(self): @ResourceGroupPreparer(name_prefix='cli_test_vmware_datastores') def test_vmware_datastores(self): - # Get a pre-created iSCSI datastore - self.cmd('az vmware datastore show --name rasivagu-iscsi-datastore --resource-group rasivagu-cloudsan-rg --cluster Cluster-1 --private-cloud rasivagu-sddc') - - # List all existing datastores - self.cmd('az vmware datastore list --resource-group rasivagu-cloudsan-rg --cluster Cluster-1 --private-cloud rasivagu-sddc') + self.kwargs.update({ + # 'loc': 'centralus', + # 'privatecloud': 'cloud1', + # 'cluster': 'pycluster1', + 'rg': 'rasivagu-sddc-rg', + 'privatecloud': 'rasivagu-mock-sddc', + 'cluster': 'Cluster-1', + 'volume_id': '/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/ResourceGroup1/providers/Microsoft.NetApp/netAppAccounts/NetAppAccount1/capacityPools/CapacityPool1/volumes/NFSVol1', + 'target_id': '/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/rasivagu-df-rg/providers/Microsoft.StoragePool/diskPools/rasivagu-df-diskpool/iscsiTargets/rasivagu-df-target' + }) + + # Create a new iSCSI based datastore + self.cmd('az vmware datastore disk-pool-volume create --name iSCSIDatastore1 --resource-group {rg} --private-cloud {privatecloud} --cluster {cluster} --target-id {target_id} --lun-name lun0') + # "The subscription '11111111-1111-1111-1111-111111111111' could not be found. + + # Get a iSCSI datastore + self.cmd('az vmware datastore show --name iSCSIDatastore1 --resource-group {rg} --private-cloud {privatecloud} --cluster {cluster}') + + # # List all existing datastores + self.cmd('az vmware datastore list --resource-group {rg} --private-cloud {privatecloud} --cluster {cluster}') # Create a new ANF based datastore - self.cmd('az vmware datastore create --name ANFDatastore1 --resource-group rasivagu-cloudsan-rg --cluster Cluster-1 --private-cloud rasivagu-sddc --nfs-file-path ANFVol1FilePath --nfs-provider-ip 10.50.1.4') + # self.cmd('az vmware datastore netapp-volume create --name ANFDatastore1 --resource-group {rg} --private-cloud {privatecloud} --cluster {cluster} --volume-id {volume_id}') + # "ANF datastore is not enabled for the cloud SAN version 'v1' # Get the newly created ANF based datastore - self.cmd('az vmware datastore show --name ANFDatastore1 --resource-group rasivagu-cloudsan-rg --cluster Cluster-1 --private-cloud rasivagu-sddc') + # self.cmd('az vmware datastore show --name ANFDatastore1 --resource-group {rg} --private-cloud {privatecloud} --cluster {cluster}') # Delete the newly created ANF based datastore - self.cmd('az vmware datastore delete --name ANFDatastore1 --resource-group rasivagu-cloudsan-rg --cluster Cluster-1 --private-cloud rasivagu-sddc') + self.cmd('az vmware datastore delete --name iSCSIDatastore1 --resource-group {rg} --private-cloud {privatecloud} --cluster {cluster}') diff --git a/src/vmware/azext_vmware/tests/latest/test_hcx_scenario.py b/src/vmware/azext_vmware/tests/latest/test_hcx_scenario.py new file mode 100644 index 00000000000..576e33da42e --- /dev/null +++ b/src/vmware/azext_vmware/tests/latest/test_hcx_scenario.py @@ -0,0 +1,52 @@ +# -------------------------------------------------------------------------------------------- +# 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 VmwareHcxScenarioTest(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(VmwareHcxScenarioTest, self).setUp() + + @ResourceGroupPreparer(name_prefix='cli_test_vmware_hcx') + def test_vmware_hcx(self): + self.kwargs.update({ + 'loc': 'westcentralus', + 'privatecloud': 'cloud1', + }) + + # create a private cloud + self.cmd('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') + + # Create a HCX addon + self.cmd('az vmware addon hcx create -g {rg} -c {privatecloud} --offer "VMware MaaS Cloud Provider"') + + # List all existing addon + 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 + 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') + + # 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.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 + 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') 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 f5aab316486..cd004b6fff5 100644 --- a/src/vmware/azext_vmware/tests/latest/test_vmware_scenario.py +++ b/src/vmware/azext_vmware/tests/latest/test_vmware_scenario.py @@ -38,7 +38,7 @@ def test_vmware(self): self.assertEqual(count, 0, 'private cloud count expected to be 0') # create a private cloud - self.cmd('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('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') count = len(self.cmd('vmware private-cloud list -g {rg}').get_output_in_json()) self.assertEqual(count, 1, 'private cloud count expected to be 1') @@ -56,28 +56,8 @@ def test_vmware(self): self.cmd('vmware private-cloud rotate-vcenter-password -g {rg} -c {privatecloud}') self.cmd('vmware private-cloud rotate-nsxt-password -g {rg} -c {privatecloud}') - # hcx-enterprise-site list should report 0 - 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') - - # 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.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') - - # bug 7470537 - # hcx-enterprise-site list should report 0 - # 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') - # update private cloud to changed default cluster size - self.cmd('vmware private-cloud update -g {rg} -n {privatecloud} --cluster-size 3') + 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') diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/__init__.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/__init__.py index 941c0090219..45ca0700235 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/__init__.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/__init__.py @@ -1,10 +1,15 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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 ._avs_client import AVSClient +from ._version import VERSION + +__version__ = VERSION __all__ = ['AVSClient'] try: 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 03abbe8417d..8f5f84f3de4 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 @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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. # -------------------------------------------------------------------------- @@ -14,6 +16,7 @@ from typing import Any, Optional from azure.core.credentials import TokenCredential + from azure.core.pipeline.transport import HttpRequest, HttpResponse from ._configuration import AVSClientConfiguration from .operations import Operations @@ -25,7 +28,11 @@ from .operations import AuthorizationsOperations from .operations import GlobalReachConnectionsOperations from .operations import WorkloadNetworksOperations +from .operations import CloudLinksOperations from .operations import AddonsOperations +from .operations import ScriptPackagesOperations +from .operations import ScriptCmdletsOperations +from .operations import ScriptExecutionsOperations from . import models @@ -50,8 +57,16 @@ class AVSClient(object): :vartype global_reach_connections: avs_client.operations.GlobalReachConnectionsOperations :ivar workload_networks: WorkloadNetworksOperations operations :vartype workload_networks: avs_client.operations.WorkloadNetworksOperations + :ivar cloud_links: CloudLinksOperations operations + :vartype cloud_links: avs_client.operations.CloudLinksOperations :ivar addons: AddonsOperations operations :vartype addons: avs_client.operations.AddonsOperations + :ivar script_packages: ScriptPackagesOperations operations + :vartype script_packages: avs_client.operations.ScriptPackagesOperations + :ivar script_cmdlets: ScriptCmdletsOperations operations + :vartype script_cmdlets: avs_client.operations.ScriptCmdletsOperations + :ivar script_executions: ScriptExecutionsOperations operations + :vartype script_executions: avs_client.operations.ScriptExecutionsOperations :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: The ID of the target subscription. @@ -96,8 +111,34 @@ def __init__( self._client, self._config, self._serialize, self._deserialize) self.workload_networks = WorkloadNetworksOperations( self._client, self._config, self._serialize, self._deserialize) + self.cloud_links = CloudLinksOperations( + self._client, self._config, self._serialize, self._deserialize) self.addons = AddonsOperations( self._client, self._config, self._serialize, self._deserialize) + self.script_packages = ScriptPackagesOperations( + self._client, self._config, self._serialize, self._deserialize) + self.script_cmdlets = ScriptCmdletsOperations( + self._client, self._config, self._serialize, self._deserialize) + self.script_executions = ScriptExecutionsOperations( + self._client, self._config, self._serialize, self._deserialize) + + def _send_request(self, http_request, **kwargs): + # type: (HttpRequest, Any) -> HttpResponse + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.HttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response def close(self): # type: () -> None 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 f7727e7138a..345b679841e 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/_configuration.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/_configuration.py @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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. # -------------------------------------------------------------------------- @@ -10,13 +12,14 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from ._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from typing import Any from azure.core.credentials import TokenCredential -VERSION = "unknown" class AVSClientConfiguration(Configuration): """Configuration for AVSClient. @@ -45,9 +48,9 @@ def __init__( self.credential = credential self.subscription_id = subscription_id - self.api_version = "2021-01-01-preview" + self.api_version = "2021-06-01" self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) - kwargs.setdefault('sdk_moniker', 'avsclient/{}'.format(VERSION)) + kwargs.setdefault('sdk_moniker', 'mgmt-avs/{}'.format(VERSION)) self._configure(**kwargs) def _configure( diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/_version.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/_version.py new file mode 100644 index 00000000000..eae7c95b6fb --- /dev/null +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/_version.py @@ -0,0 +1,9 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +VERSION = "0.1.0" diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/__init__.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/__init__.py index e678a22d524..7cbca6ac278 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/__init__.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/__init__.py @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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. # -------------------------------------------------------------------------- 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 88ae3830005..b6a8d7e2bbb 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 @@ -1,11 +1,14 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from typing import Any, Optional, TYPE_CHECKING +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient from msrest import Deserializer, Serializer @@ -23,7 +26,11 @@ from .operations import AuthorizationsOperations from .operations import GlobalReachConnectionsOperations from .operations import WorkloadNetworksOperations +from .operations import CloudLinksOperations from .operations import AddonsOperations +from .operations import ScriptPackagesOperations +from .operations import ScriptCmdletsOperations +from .operations import ScriptExecutionsOperations from .. import models @@ -48,8 +55,16 @@ class AVSClient(object): :vartype global_reach_connections: avs_client.aio.operations.GlobalReachConnectionsOperations :ivar workload_networks: WorkloadNetworksOperations operations :vartype workload_networks: avs_client.aio.operations.WorkloadNetworksOperations + :ivar cloud_links: CloudLinksOperations operations + :vartype cloud_links: avs_client.aio.operations.CloudLinksOperations :ivar addons: AddonsOperations operations :vartype addons: avs_client.aio.operations.AddonsOperations + :ivar script_packages: ScriptPackagesOperations operations + :vartype script_packages: avs_client.aio.operations.ScriptPackagesOperations + :ivar script_cmdlets: ScriptCmdletsOperations operations + :vartype script_cmdlets: avs_client.aio.operations.ScriptCmdletsOperations + :ivar script_executions: ScriptExecutionsOperations operations + :vartype script_executions: avs_client.aio.operations.ScriptExecutionsOperations :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: The ID of the target subscription. @@ -93,8 +108,33 @@ def __init__( self._client, self._config, self._serialize, self._deserialize) self.workload_networks = WorkloadNetworksOperations( self._client, self._config, self._serialize, self._deserialize) + self.cloud_links = CloudLinksOperations( + self._client, self._config, self._serialize, self._deserialize) self.addons = AddonsOperations( self._client, self._config, self._serialize, self._deserialize) + self.script_packages = ScriptPackagesOperations( + self._client, self._config, self._serialize, self._deserialize) + self.script_cmdlets = ScriptCmdletsOperations( + self._client, self._config, self._serialize, self._deserialize) + self.script_executions = ScriptExecutionsOperations( + self._client, self._config, self._serialize, self._deserialize) + + async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.AsyncHttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response async def close(self) -> None: await self._client.close() 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 7357b103985..09d731cb67d 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 @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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. # -------------------------------------------------------------------------- @@ -10,11 +12,12 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from .._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from azure.core.credentials_async import AsyncTokenCredential -VERSION = "unknown" class AVSClientConfiguration(Configuration): """Configuration for AVSClient. @@ -42,9 +45,9 @@ def __init__( self.credential = credential self.subscription_id = subscription_id - self.api_version = "2021-01-01-preview" + self.api_version = "2021-06-01" self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) - kwargs.setdefault('sdk_moniker', 'avsclient/{}'.format(VERSION)) + kwargs.setdefault('sdk_moniker', 'mgmt-avs/{}'.format(VERSION)) self._configure(**kwargs) def _configure( 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 15958be9f5c..1e3c208eb0f 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 @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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. # -------------------------------------------------------------------------- @@ -13,7 +15,11 @@ from ._authorizations_operations import AuthorizationsOperations from ._global_reach_connections_operations import GlobalReachConnectionsOperations from ._workload_networks_operations import WorkloadNetworksOperations +from ._cloud_links_operations import CloudLinksOperations from ._addons_operations import AddonsOperations +from ._script_packages_operations import ScriptPackagesOperations +from ._script_cmdlets_operations import ScriptCmdletsOperations +from ._script_executions_operations import ScriptExecutionsOperations __all__ = [ 'Operations', @@ -25,5 +31,9 @@ 'AuthorizationsOperations', 'GlobalReachConnectionsOperations', 'WorkloadNetworksOperations', + 'CloudLinksOperations', 'AddonsOperations', + '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 db6d402eec1..9423e350061 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 @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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 @@ -45,7 +47,7 @@ def list( self, resource_group_name: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.AddonList"]: """List addons in a private cloud. @@ -65,7 +67,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -122,7 +124,7 @@ async def get( resource_group_name: str, private_cloud_name: str, addon_name: str, - **kwargs + **kwargs: Any ) -> "_models.Addon": """Get an addon by name in a private cloud. @@ -144,7 +146,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -186,15 +188,17 @@ async def _create_or_update_initial( resource_group_name: str, private_cloud_name: str, addon_name: str, - addon: "_models.Addon", - **kwargs + properties: Optional["_models.AddonProperties"] = None, + **kwargs: Any ) -> "_models.Addon": cls = kwargs.pop('cls', None) # type: ClsType["_models.Addon"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + + _addon = _models.Addon(properties=properties) + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -218,7 +222,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(addon, 'Addon') + body_content = self._serialize.body(_addon, 'Addon') 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) @@ -245,8 +249,8 @@ async def begin_create_or_update( resource_group_name: str, private_cloud_name: str, addon_name: str, - addon: "_models.Addon", - **kwargs + properties: Optional["_models.AddonProperties"] = None, + **kwargs: Any ) -> AsyncLROPoller["_models.Addon"]: """Create or update a addon in a private cloud. @@ -258,12 +262,12 @@ async def begin_create_or_update( :type private_cloud_name: str :param addon_name: Name of the addon for the private cloud. :type addon_name: str - :param addon: A addon in the private cloud. - :type addon: ~avs_client.models.Addon + :param properties: The properties of an addon resource. + :type properties: ~avs_client.models.AddonProperties :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Addon or the result of cls(response) @@ -282,7 +286,7 @@ async def begin_create_or_update( resource_group_name=resource_group_name, private_cloud_name=private_cloud_name, addon_name=addon_name, - addon=addon, + properties=properties, cls=lambda x,y,z: x, **kwargs ) @@ -323,14 +327,14 @@ async def _delete_initial( resource_group_name: str, private_cloud_name: str, addon_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -369,7 +373,7 @@ async def begin_delete( resource_group_name: str, private_cloud_name: str, addon_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a addon in a private cloud. @@ -383,8 +387,8 @@ async def begin_delete( :type addon_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) 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 c2e70890c25..33a79cc2af5 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 @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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 @@ -45,7 +47,7 @@ def list( self, resource_group_name: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ExpressRouteAuthorizationList"]: """List ExpressRoute Circuit Authorizations in a private cloud. @@ -65,7 +67,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -122,7 +124,7 @@ async def get( resource_group_name: str, private_cloud_name: str, authorization_name: str, - **kwargs + **kwargs: Any ) -> "_models.ExpressRouteAuthorization": """Get an ExpressRoute Circuit Authorization by name in a private cloud. @@ -144,7 +146,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -186,15 +188,16 @@ async def _create_or_update_initial( resource_group_name: str, private_cloud_name: str, authorization_name: str, - authorization: "_models.ExpressRouteAuthorization", - **kwargs + **kwargs: Any ) -> "_models.ExpressRouteAuthorization": cls = kwargs.pop('cls', None) # type: ClsType["_models.ExpressRouteAuthorization"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + + _authorization = _models.ExpressRouteAuthorization() + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -218,7 +221,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(authorization, 'ExpressRouteAuthorization') + body_content = self._serialize.body(_authorization, 'ExpressRouteAuthorization') 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) @@ -245,8 +248,7 @@ async def begin_create_or_update( resource_group_name: str, private_cloud_name: str, authorization_name: str, - authorization: "_models.ExpressRouteAuthorization", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.ExpressRouteAuthorization"]: """Create or update an ExpressRoute Circuit Authorization in a private cloud. @@ -258,12 +260,10 @@ 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 authorization: An ExpressRoute Circuit Authorization. - :type authorization: ~avs_client.models.ExpressRouteAuthorization :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either ExpressRouteAuthorization or the result of cls(response) @@ -282,7 +282,6 @@ async def begin_create_or_update( resource_group_name=resource_group_name, private_cloud_name=private_cloud_name, authorization_name=authorization_name, - authorization=authorization, cls=lambda x,y,z: x, **kwargs ) @@ -323,14 +322,14 @@ async def _delete_initial( resource_group_name: str, private_cloud_name: str, authorization_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -369,7 +368,7 @@ async def begin_delete( resource_group_name: str, private_cloud_name: str, authorization_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete an ExpressRoute Circuit Authorization in a private cloud. @@ -383,8 +382,8 @@ async def begin_delete( :type authorization_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) 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 new file mode 100644 index 00000000000..4f0eeed8211 --- /dev/null +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_cloud_links_operations.py @@ -0,0 +1,440 @@ +# 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 CloudLinksOperations: + """CloudLinksOperations 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, + **kwargs: Any + ) -> AsyncIterable["_models.CloudLinkList"]: + """List cloud link in a private cloud. + + List cloud link in a private cloud. + + :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 + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either CloudLinkList or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~avs_client.models.CloudLinkList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.CloudLinkList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-06-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, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_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('CloudLinkList', 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}/cloudLinks'} # type: ignore + + async def get( + self, + resource_group_name: str, + private_cloud_name: str, + cloud_link_name: str, + **kwargs: Any + ) -> "_models.CloudLink": + """Get an cloud link by name in a private cloud. + + Get an cloud link 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 + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :param cloud_link_name: Name of the cloud link resource. + :type cloud_link_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: CloudLink, or the result of cls(response) + :rtype: ~avs_client.models.CloudLink + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.CloudLink"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-06-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\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'cloudLinkName': self._serialize.url("cloud_link_name", cloud_link_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('CloudLink', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}'} # type: ignore + + async def _create_or_update_initial( + self, + resource_group_name: str, + private_cloud_name: str, + cloud_link_name: str, + linked_cloud: Optional[str] = None, + **kwargs: Any + ) -> "_models.CloudLink": + cls = kwargs.pop('cls', None) # type: ClsType["_models.CloudLink"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + + _cloud_link = _models.CloudLink(linked_cloud=linked_cloud) + api_version = "2021-06-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, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'cloudLinkName': self._serialize.url("cloud_link_name", cloud_link_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(_cloud_link, 'CloudLink') + 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('CloudLink', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('CloudLink', 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}/cloudLinks/{cloudLinkName}'} # type: ignore + + async def begin_create_or_update( + self, + resource_group_name: str, + private_cloud_name: str, + cloud_link_name: str, + linked_cloud: Optional[str] = None, + **kwargs: Any + ) -> AsyncLROPoller["_models.CloudLink"]: + """Create or update a cloud link in a private cloud. + + Create or update a cloud link in a private cloud. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: The name of the private cloud. + :type private_cloud_name: str + :param cloud_link_name: Name of the cloud link resource. + :type cloud_link_name: str + :param linked_cloud: Identifier of the other private cloud participating in the link. + :type linked_cloud: 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 CloudLink or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~avs_client.models.CloudLink] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.CloudLink"] + 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, + cloud_link_name=cloud_link_name, + linked_cloud=linked_cloud, + 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('CloudLink', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'cloudLinkName': self._serialize.url("cloud_link_name", cloud_link_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}/cloudLinks/{cloudLinkName}'} # type: ignore + + async def _delete_initial( + self, + resource_group_name: str, + private_cloud_name: str, + cloud_link_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-06-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\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'cloudLinkName': self._serialize.url("cloud_link_name", cloud_link_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}/cloudLinks/{cloudLinkName}'} # type: ignore + + async def begin_delete( + self, + resource_group_name: str, + private_cloud_name: str, + cloud_link_name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Delete a cloud link in a private cloud. + + Delete a cloud link in a private cloud. + + :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 cloud_link_name: Name of the cloud link resource. + :type cloud_link_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, + cloud_link_name=cloud_link_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, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'cloudLinkName': self._serialize.url("cloud_link_name", cloud_link_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}/cloudLinks/{cloudLinkName}'} # type: ignore 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 7dfb026ffc4..36eb63d8af1 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 @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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 @@ -45,7 +47,7 @@ def list( self, resource_group_name: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ClusterList"]: """List clusters in a private cloud. @@ -65,7 +67,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -122,7 +124,7 @@ async def get( resource_group_name: str, private_cloud_name: str, cluster_name: str, - **kwargs + **kwargs: Any ) -> "_models.Cluster": """Get a cluster by name in a private cloud. @@ -144,7 +146,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -186,15 +188,18 @@ async def _create_or_update_initial( resource_group_name: str, private_cloud_name: str, cluster_name: str, - cluster: "_models.Cluster", - **kwargs + sku: "_models.Sku", + cluster_size: Optional[int] = None, + **kwargs: Any ) -> "_models.Cluster": cls = kwargs.pop('cls', None) # type: ClsType["_models.Cluster"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + + _cluster = _models.Cluster(sku=sku, cluster_size=cluster_size) + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -218,7 +223,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) @@ -245,8 +250,9 @@ async def begin_create_or_update( resource_group_name: str, private_cloud_name: str, cluster_name: str, - cluster: "_models.Cluster", - **kwargs + sku: "_models.Sku", + cluster_size: Optional[int] = None, + **kwargs: Any ) -> AsyncLROPoller["_models.Cluster"]: """Create or update a cluster in a private cloud. @@ -258,12 +264,14 @@ 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 cluster: A cluster in the private cloud. - :type cluster: ~avs_client.models.Cluster + :param sku: The cluster SKU. + :type sku: ~avs_client.models.Sku + :param cluster_size: The cluster size. + :type cluster_size: int :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Cluster or the result of cls(response) @@ -282,7 +290,8 @@ async def begin_create_or_update( resource_group_name=resource_group_name, private_cloud_name=private_cloud_name, cluster_name=cluster_name, - cluster=cluster, + sku=sku, + cluster_size=cluster_size, cls=lambda x,y,z: x, **kwargs ) @@ -323,15 +332,17 @@ async def _update_initial( resource_group_name: str, private_cloud_name: str, cluster_name: str, - cluster_update: "_models.ClusterUpdate", - **kwargs + cluster_size: Optional[int] = None, + **kwargs: Any ) -> "_models.Cluster": cls = kwargs.pop('cls', None) # type: ClsType["_models.Cluster"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + + _cluster_update = _models.ClusterUpdate(cluster_size=cluster_size) + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -355,7 +366,7 @@ async def _update_initial( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(cluster_update, 'ClusterUpdate') + body_content = self._serialize.body(_cluster_update, 'ClusterUpdate') 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) @@ -382,8 +393,8 @@ async def begin_update( resource_group_name: str, private_cloud_name: str, cluster_name: str, - cluster_update: "_models.ClusterUpdate", - **kwargs + cluster_size: Optional[int] = None, + **kwargs: Any ) -> AsyncLROPoller["_models.Cluster"]: """Update a cluster in a private cloud. @@ -395,12 +406,12 @@ async def begin_update( :type private_cloud_name: str :param cluster_name: Name of the cluster in the private cloud. :type cluster_name: str - :param cluster_update: The cluster properties to be updated. - :type cluster_update: ~avs_client.models.ClusterUpdate + :param cluster_size: The cluster size. + :type cluster_size: int :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Cluster or the result of cls(response) @@ -419,7 +430,7 @@ async def begin_update( resource_group_name=resource_group_name, private_cloud_name=private_cloud_name, cluster_name=cluster_name, - cluster_update=cluster_update, + cluster_size=cluster_size, cls=lambda x,y,z: x, **kwargs ) @@ -460,14 +471,14 @@ async def _delete_initial( resource_group_name: str, private_cloud_name: str, cluster_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -506,7 +517,7 @@ async def begin_delete( resource_group_name: str, private_cloud_name: str, cluster_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a cluster in a private cloud. @@ -520,8 +531,8 @@ async def begin_delete( :type cluster_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) 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 f8ec3e90a78..1d82843d079 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 @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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 @@ -46,11 +48,11 @@ def list( resource_group_name: str, private_cloud_name: str, cluster_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DatastoreList"]: - """List cloud datastores in a private cloud. + """List datastores in a private cloud cluster. - List cloud datastores in a private cloud. + List datastores 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 @@ -68,7 +70,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -127,7 +129,7 @@ async def get( private_cloud_name: str, cluster_name: str, datastore_name: str, - **kwargs + **kwargs: Any ) -> "_models.Datastore": """Get a datastore in a private cloud cluster. @@ -151,7 +153,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -189,26 +191,29 @@ async def get( return deserialized get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}'} # type: ignore - async def _create_initial( + async def _create_or_update_initial( self, resource_group_name: str, private_cloud_name: str, cluster_name: str, datastore_name: str, - datastore: "_models.Datastore", - **kwargs + net_app_volume: Optional["_models.NetAppVolume"] = None, + disk_pool_volume: Optional["_models.DiskPoolVolume"] = None, + **kwargs: Any ) -> "_models.Datastore": cls = kwargs.pop('cls', None) # type: ClsType["_models.Datastore"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + + _datastore = _models.Datastore(net_app_volume=net_app_volume, disk_pool_volume=disk_pool_volume) + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" # Construct URL - url = self._create_initial.metadata['url'] # type: ignore + 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\._\(\)]+$'), @@ -228,7 +233,7 @@ async def _create_initial( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(datastore, 'Datastore') + body_content = self._serialize.body(_datastore, 'Datastore') 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) @@ -248,20 +253,21 @@ async def _create_initial( return cls(pipeline_response, deserialized, {}) return deserialized - _create_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}'} # type: ignore + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}'} # type: ignore - async def begin_create( + async def begin_create_or_update( self, resource_group_name: str, private_cloud_name: str, cluster_name: str, datastore_name: str, - datastore: "_models.Datastore", - **kwargs + net_app_volume: Optional["_models.NetAppVolume"] = None, + disk_pool_volume: Optional["_models.DiskPoolVolume"] = None, + **kwargs: Any ) -> AsyncLROPoller["_models.Datastore"]: - """Create a datastore in a private cloud cluster. + """Create or update a datastore in a private cloud cluster. - Create a datastore in a private cloud cluster. + Create or update a datastore 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 @@ -271,12 +277,14 @@ async def begin_create( :type cluster_name: str :param datastore_name: Name of the datastore in the private cloud cluster. :type datastore_name: str - :param datastore: A datastore in a private cloud cluster. - :type datastore: ~avs_client.models.Datastore + :param net_app_volume: An Azure NetApp Files volume. + :type net_app_volume: ~avs_client.models.NetAppVolume + :param disk_pool_volume: An iSCSI volume. + :type disk_pool_volume: ~avs_client.models.DiskPoolVolume :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Datastore or the result of cls(response) @@ -291,12 +299,13 @@ async def begin_create( ) cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] if cont_token is None: - raw_result = await self._create_initial( + raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, private_cloud_name=private_cloud_name, cluster_name=cluster_name, datastore_name=datastore_name, - datastore=datastore, + net_app_volume=net_app_volume, + disk_pool_volume=disk_pool_volume, cls=lambda x,y,z: x, **kwargs ) @@ -331,7 +340,7 @@ def get_long_running_output(pipeline_response): ) else: return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}'} # type: ignore + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}'} # type: ignore async def _delete_initial( self, @@ -339,14 +348,14 @@ async def _delete_initial( private_cloud_name: str, cluster_name: str, datastore_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -387,7 +396,7 @@ async def begin_delete( private_cloud_name: str, cluster_name: str, datastore_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a datastore in a private cloud cluster. @@ -403,8 +412,8 @@ async def begin_delete( :type datastore_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) 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 90276b4e3df..53bf3e1bad1 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 @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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 @@ -45,7 +47,7 @@ def list( self, resource_group_name: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.GlobalReachConnectionList"]: """List global reach connections in a private cloud. @@ -65,7 +67,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -122,7 +124,7 @@ async def get( resource_group_name: str, private_cloud_name: str, global_reach_connection_name: str, - **kwargs + **kwargs: Any ) -> "_models.GlobalReachConnection": """Get a global reach connection by name in a private cloud. @@ -144,7 +146,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -186,15 +188,18 @@ async def _create_or_update_initial( resource_group_name: str, private_cloud_name: str, global_reach_connection_name: str, - global_reach_connection: "_models.GlobalReachConnection", - **kwargs + authorization_key: Optional[str] = None, + peer_express_route_circuit: Optional[str] = None, + **kwargs: Any ) -> "_models.GlobalReachConnection": cls = kwargs.pop('cls', None) # type: ClsType["_models.GlobalReachConnection"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + + _global_reach_connection = _models.GlobalReachConnection(authorization_key=authorization_key, peer_express_route_circuit=peer_express_route_circuit) + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -218,7 +223,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) @@ -245,8 +250,9 @@ async def begin_create_or_update( resource_group_name: str, private_cloud_name: str, global_reach_connection_name: str, - global_reach_connection: "_models.GlobalReachConnection", - **kwargs + authorization_key: Optional[str] = None, + peer_express_route_circuit: Optional[str] = None, + **kwargs: Any ) -> AsyncLROPoller["_models.GlobalReachConnection"]: """Create or update a global reach connection in a private cloud. @@ -258,12 +264,16 @@ 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 global_reach_connection: A global reach connection in the private cloud. - :type global_reach_connection: ~avs_client.models.GlobalReachConnection + :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 :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either GlobalReachConnection or the result of cls(response) @@ -282,7 +292,8 @@ 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, - global_reach_connection=global_reach_connection, + authorization_key=authorization_key, + peer_express_route_circuit=peer_express_route_circuit, cls=lambda x,y,z: x, **kwargs ) @@ -323,14 +334,14 @@ async def _delete_initial( resource_group_name: str, private_cloud_name: str, global_reach_connection_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -369,7 +380,7 @@ async def begin_delete( resource_group_name: str, private_cloud_name: str, global_reach_connection_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a global reach connection in a private cloud. @@ -383,8 +394,8 @@ async def begin_delete( :type global_reach_connection_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) 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 a5871289cca..b7077fc376b 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 @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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 @@ -43,7 +45,7 @@ def list( self, resource_group_name: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.HcxEnterpriseSiteList"]: """List HCX Enterprise Sites in a private cloud. @@ -63,7 +65,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -120,7 +122,7 @@ async def get( resource_group_name: str, private_cloud_name: str, hcx_enterprise_site_name: str, - **kwargs + **kwargs: Any ) -> "_models.HcxEnterpriseSite": """Get an HCX Enterprise Site by name in a private cloud. @@ -142,7 +144,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -184,8 +186,7 @@ async def create_or_update( resource_group_name: str, private_cloud_name: str, hcx_enterprise_site_name: str, - hcx_enterprise_site: "_models.HcxEnterpriseSite", - **kwargs + **kwargs: Any ) -> "_models.HcxEnterpriseSite": """Create or update an HCX Enterprise Site in a private cloud. @@ -197,8 +198,6 @@ async def create_or_update( :type private_cloud_name: str :param hcx_enterprise_site_name: Name of the HCX Enterprise Site in the private cloud. :type hcx_enterprise_site_name: str - :param hcx_enterprise_site: The HCX Enterprise Site. - :type hcx_enterprise_site: ~avs_client.models.HcxEnterpriseSite :keyword callable cls: A custom type or function that will be passed the direct response :return: HcxEnterpriseSite, or the result of cls(response) :rtype: ~avs_client.models.HcxEnterpriseSite @@ -209,7 +208,9 @@ async def create_or_update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + + _hcx_enterprise_site = _models.HcxEnterpriseSite() + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -233,7 +234,7 @@ async def create_or_update( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(hcx_enterprise_site, 'HcxEnterpriseSite') + body_content = self._serialize.body(_hcx_enterprise_site, 'HcxEnterpriseSite') 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) @@ -260,7 +261,7 @@ async def delete( resource_group_name: str, private_cloud_name: str, hcx_enterprise_site_name: str, - **kwargs + **kwargs: Any ) -> None: """Delete an HCX Enterprise Site in a private cloud. @@ -282,7 +283,7 @@ async def delete( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL 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 44e9a643a95..0aa93c924ff 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 @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from typing import Any, Callable, Dict, Generic, Optional, TypeVar @@ -41,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def check_trial_availability( self, location: str, - **kwargs + **kwargs: Any ) -> "_models.Trial": """Return trial status for subscription by region. @@ -57,7 +59,7 @@ async def check_trial_availability( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -95,7 +97,7 @@ async def check_trial_availability( async def check_quota_availability( self, location: str, - **kwargs + **kwargs: Any ) -> "_models.Quota": """Return quota for subscription by region. @@ -111,7 +113,7 @@ async def check_quota_availability( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-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 a18e99775aa..507c63fc576 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 @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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 @@ -41,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.OperationList"]: """Lists all of the available operations. @@ -55,7 +57,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): 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 66cdf95c0f9..0608f5fb87f 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 @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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 @@ -44,7 +46,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PrivateCloudList"]: """List private clouds in a resource group. @@ -62,7 +64,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -115,7 +117,7 @@ async def get_next(next_link=None): def list_in_subscription( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PrivateCloudList"]: """List private clouds in a subscription. @@ -131,7 +133,7 @@ def list_in_subscription( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -185,7 +187,7 @@ async def get( self, resource_group_name: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> "_models.PrivateCloud": """Get a private cloud. @@ -205,7 +207,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -246,14 +248,14 @@ async def _create_or_update_initial( resource_group_name: str, private_cloud_name: str, private_cloud: "_models.PrivateCloud", - **kwargs + **kwargs: Any ) -> "_models.PrivateCloud": cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateCloud"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -303,7 +305,7 @@ async def begin_create_or_update( resource_group_name: str, private_cloud_name: str, private_cloud: "_models.PrivateCloud", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.PrivateCloud"]: """Create or update a private cloud. @@ -317,8 +319,8 @@ async def begin_create_or_update( :type private_cloud: ~avs_client.models.PrivateCloud :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either PrivateCloud or the result of cls(response) @@ -376,14 +378,14 @@ async def _update_initial( resource_group_name: str, private_cloud_name: str, private_cloud_update: "_models.PrivateCloudUpdate", - **kwargs + **kwargs: Any ) -> "_models.PrivateCloud": cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateCloud"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -433,7 +435,7 @@ async def begin_update( resource_group_name: str, private_cloud_name: str, private_cloud_update: "_models.PrivateCloudUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.PrivateCloud"]: """Update a private cloud. @@ -447,8 +449,8 @@ async def begin_update( :type private_cloud_update: ~avs_client.models.PrivateCloudUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either PrivateCloud or the result of cls(response) @@ -505,14 +507,14 @@ async def _delete_initial( self, resource_group_name: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -549,7 +551,7 @@ async def begin_delete( self, resource_group_name: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a private cloud. @@ -561,8 +563,8 @@ async def begin_delete( :type private_cloud_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -615,14 +617,14 @@ async def _rotate_vcenter_password_initial( self, resource_group_name: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -659,7 +661,7 @@ async def begin_rotate_vcenter_password( self, resource_group_name: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Rotate the vCenter password. @@ -671,8 +673,8 @@ async def begin_rotate_vcenter_password( :type private_cloud_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -725,14 +727,14 @@ async def _rotate_nsxt_password_initial( self, resource_group_name: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -769,7 +771,7 @@ async def begin_rotate_nsxt_password( self, resource_group_name: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Rotate the NSX-T Manager password. @@ -781,8 +783,8 @@ async def begin_rotate_nsxt_password( :type private_cloud_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -835,7 +837,7 @@ async def list_admin_credentials( self, resource_group_name: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> "_models.AdminCredentials": """List the admin credentials for the private cloud. @@ -855,7 +857,7 @@ async def list_admin_credentials( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL 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 new file mode 100644 index 00000000000..50f340fcd4e --- /dev/null +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_script_cmdlets_operations.py @@ -0,0 +1,188 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.mgmt.core.exceptions import ARMErrorFormat + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class ScriptCmdletsOperations: + """ScriptCmdletsOperations 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, + 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. + + :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 script_package_name: Name of the script package in the private cloud. + :type script_package_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ScriptCmdletsList or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~avs_client.models.ScriptCmdletsList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ScriptCmdletsList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-06-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, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'scriptPackageName': self._serialize.url("script_package_name", script_package_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('ScriptCmdletsList', 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}/scriptPackages/{scriptPackageName}/scriptCmdlets'} # type: ignore + + async def get( + self, + resource_group_name: str, + private_cloud_name: str, + script_package_name: str, + script_cmdlet_name: str, + **kwargs: Any + ) -> "_models.ScriptCmdlet": + """Return information about a script cmdlet resource in a specific package on a private cloud. + + :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 script_package_name: Name of the script package in the private cloud. + :type script_package_name: str + :param script_cmdlet_name: Name of the script cmdlet resource in the script package in the + private cloud. + :type script_cmdlet_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ScriptCmdlet, or the result of cls(response) + :rtype: ~avs_client.models.ScriptCmdlet + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ScriptCmdlet"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-06-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\._\(\)]+$'), + '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'), + } + 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('ScriptCmdlet', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages/{scriptPackageName}/scriptCmdlets/{scriptCmdletName}'} # type: ignore 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 new file mode 100644 index 00000000000..bf302ecd17f --- /dev/null +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_script_executions_operations.py @@ -0,0 +1,512 @@ +# 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, List, 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 ScriptExecutionsOperations: + """ScriptExecutionsOperations 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, + **kwargs: Any + ) -> AsyncIterable["_models.ScriptExecutionsList"]: + """Get an script execution resource by name in a private cloud. + + Get an script execution resource 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 + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ScriptExecutionsList or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~avs_client.models.ScriptExecutionsList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ScriptExecutionsList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-06-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, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_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('ScriptExecutionsList', 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}/scriptExecutions'} # type: ignore + + async def get( + self, + resource_group_name: str, + private_cloud_name: str, + script_execution_name: str, + **kwargs: Any + ) -> "_models.ScriptExecution": + """Get an script execution resource by name in a private cloud. + + Get an script execution resource 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 + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :param script_execution_name: Name of the user-invoked script execution resource. + :type script_execution_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ScriptExecution, or the result of cls(response) + :rtype: ~avs_client.models.ScriptExecution + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ScriptExecution"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-06-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\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'scriptExecutionName': self._serialize.url("script_execution_name", script_execution_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('ScriptExecution', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}'} # type: ignore + + async def _create_or_update_initial( + self, + resource_group_name: str, + private_cloud_name: str, + script_execution_name: str, + script_execution: "_models.ScriptExecution", + **kwargs: Any + ) -> "_models.ScriptExecution": + cls = kwargs.pop('cls', None) # type: ClsType["_models.ScriptExecution"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-06-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, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'scriptExecutionName': self._serialize.url("script_execution_name", script_execution_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(script_execution, 'ScriptExecution') + 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('ScriptExecution', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('ScriptExecution', 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}/scriptExecutions/{scriptExecutionName}'} # type: ignore + + async def begin_create_or_update( + self, + resource_group_name: str, + private_cloud_name: str, + script_execution_name: str, + 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 resource in a private cloud. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: The name of the private cloud. + :type private_cloud_name: str + :param script_execution_name: Name of the user-invoked script execution resource. + :type script_execution_name: str + :param script_execution: A script running in the private cloud. + :type script_execution: ~avs_client.models.ScriptExecution + :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 ScriptExecution or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~avs_client.models.ScriptExecution] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ScriptExecution"] + 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, + script_execution_name=script_execution_name, + script_execution=script_execution, + 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('ScriptExecution', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'scriptExecutionName': self._serialize.url("script_execution_name", script_execution_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}/scriptExecutions/{scriptExecutionName}'} # type: ignore + + async def _delete_initial( + self, + resource_group_name: str, + private_cloud_name: str, + script_execution_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-06-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\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'scriptExecutionName': self._serialize.url("script_execution_name", script_execution_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}/scriptExecutions/{scriptExecutionName}'} # type: ignore + + async def begin_delete( + self, + resource_group_name: str, + private_cloud_name: str, + script_execution_name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Cancel a ScriptExecution in a private cloud. + + Cancel a ScriptExecution in a private cloud. + + :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 script_execution_name: Name of the user-invoked script execution resource. + :type script_execution_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, + script_execution_name=script_execution_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, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'scriptExecutionName': self._serialize.url("script_execution_name", script_execution_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}/scriptExecutions/{scriptExecutionName}'} # type: ignore + + async def get_execution_logs( + self, + resource_group_name: str, + private_cloud_name: str, + script_execution_name: str, + script_output_stream_type: Optional[List[Union[str, "_models.ScriptOutputStreamType"]]] = None, + **kwargs: Any + ) -> "_models.ScriptExecution": + """Return the logs for a script execution resource. + + :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 script_execution_name: Name of the user-invoked script execution resource. + :type script_execution_name: str + :param script_output_stream_type: Name of the desired output stream to return. If not provided, + will return all. An empty array will return nothing. + :type script_output_stream_type: list[str or ~avs_client.models.ScriptOutputStreamType] + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ScriptExecution, or the result of cls(response) + :rtype: ~avs_client.models.ScriptExecution + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ScriptExecution"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-06-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + 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\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'scriptExecutionName': self._serialize.url("script_execution_name", script_execution_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + if script_output_stream_type is not None: + body_content = self._serialize.body(script_output_stream_type, '[str]') + else: + body_content = None + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = self._deserialize('ScriptExecution', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_execution_logs.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}/getExecutionLogs'} # type: ignore 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 new file mode 100644 index 00000000000..e7322288107 --- /dev/null +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_script_packages_operations.py @@ -0,0 +1,178 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.mgmt.core.exceptions import ARMErrorFormat + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class ScriptPackagesOperations: + """ScriptPackagesOperations 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, + **kwargs: Any + ) -> AsyncIterable["_models.ScriptPackagesList"]: + """Return script packages available for a private cloud to run on their Private Cloud. + + :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 + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ScriptPackagesList or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~avs_client.models.ScriptPackagesList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ScriptPackagesList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-06-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, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_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('ScriptPackagesList', 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}/scriptPackages'} # type: ignore + + async def get( + self, + resource_group_name: str, + private_cloud_name: str, + script_package_name: str, + **kwargs: Any + ) -> "_models.ScriptPackage": + """Return script package available to run on an Private Cloud. + + :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 script_package_name: Name of the script package in the private cloud. + :type script_package_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ScriptPackage, or the result of cls(response) + :rtype: ~avs_client.models.ScriptPackage + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ScriptPackage"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-06-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\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'scriptPackageName': self._serialize.url("script_package_name", script_package_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('ScriptPackage', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages/{scriptPackageName}'} # 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 d685eca7a41..62c7ed9ef8a 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 @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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 @@ -45,7 +47,7 @@ def list_segments( self, resource_group_name: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.WorkloadNetworkSegmentsList"]: """List of segments in a private cloud workload network. @@ -65,7 +67,7 @@ def list_segments( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -122,7 +124,7 @@ async def get_segment( resource_group_name: str, private_cloud_name: str, segment_id: str, - **kwargs + **kwargs: Any ) -> "_models.WorkloadNetworkSegment": """Get a segment by id in a private cloud workload network. @@ -144,7 +146,7 @@ async def get_segment( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -187,14 +189,14 @@ async def _create_segments_initial( private_cloud_name: str, segment_id: str, workload_network_segment: "_models.WorkloadNetworkSegment", - **kwargs + **kwargs: Any ) -> "_models.WorkloadNetworkSegment": cls = kwargs.pop('cls', None) # type: ClsType["_models.WorkloadNetworkSegment"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -246,7 +248,7 @@ async def begin_create_segments( private_cloud_name: str, segment_id: str, workload_network_segment: "_models.WorkloadNetworkSegment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.WorkloadNetworkSegment"]: """Create a segment by id in a private cloud workload network. @@ -262,8 +264,8 @@ async def begin_create_segments( :type workload_network_segment: ~avs_client.models.WorkloadNetworkSegment :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either WorkloadNetworkSegment or the result of cls(response) @@ -324,14 +326,14 @@ async def _update_segments_initial( private_cloud_name: str, segment_id: str, workload_network_segment: "_models.WorkloadNetworkSegment", - **kwargs + **kwargs: Any ) -> Optional["_models.WorkloadNetworkSegment"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.WorkloadNetworkSegment"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -381,7 +383,7 @@ async def begin_update_segments( private_cloud_name: str, segment_id: str, workload_network_segment: "_models.WorkloadNetworkSegment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.WorkloadNetworkSegment"]: """Create or update a segment by id in a private cloud workload network. @@ -397,8 +399,8 @@ async def begin_update_segments( :type workload_network_segment: ~avs_client.models.WorkloadNetworkSegment :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either WorkloadNetworkSegment or the result of cls(response) @@ -458,14 +460,14 @@ async def _delete_segment_initial( resource_group_name: str, private_cloud_name: str, segment_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -504,7 +506,7 @@ async def begin_delete_segment( resource_group_name: str, private_cloud_name: str, segment_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a segment by id in a private cloud workload network. @@ -518,8 +520,8 @@ async def begin_delete_segment( :type segment_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: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -574,7 +576,7 @@ def list_dhcp( self, resource_group_name: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.WorkloadNetworkDhcpList"]: """List dhcp in a private cloud workload network. @@ -594,7 +596,7 @@ def list_dhcp( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -651,7 +653,7 @@ async def get_dhcp( resource_group_name: str, dhcp_id: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> "_models.WorkloadNetworkDhcp": """Get dhcp by id in a private cloud workload network. @@ -673,7 +675,7 @@ async def get_dhcp( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -715,15 +717,17 @@ async def _create_dhcp_initial( resource_group_name: str, private_cloud_name: str, dhcp_id: str, - workload_network_dhcp: "_models.WorkloadNetworkDhcp", - **kwargs + properties: Optional["_models.WorkloadNetworkDhcpEntity"] = None, + **kwargs: Any ) -> "_models.WorkloadNetworkDhcp": cls = kwargs.pop('cls', None) # type: ClsType["_models.WorkloadNetworkDhcp"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + + _workload_network_dhcp = _models.WorkloadNetworkDhcp(properties=properties) + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -747,7 +751,7 @@ async def _create_dhcp_initial( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(workload_network_dhcp, 'WorkloadNetworkDhcp') + body_content = self._serialize.body(_workload_network_dhcp, 'WorkloadNetworkDhcp') 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) @@ -774,8 +778,8 @@ async def begin_create_dhcp( resource_group_name: str, private_cloud_name: str, dhcp_id: str, - workload_network_dhcp: "_models.WorkloadNetworkDhcp", - **kwargs + properties: Optional["_models.WorkloadNetworkDhcpEntity"] = None, + **kwargs: Any ) -> AsyncLROPoller["_models.WorkloadNetworkDhcp"]: """Create dhcp by id in a private cloud workload network. @@ -787,12 +791,12 @@ async def begin_create_dhcp( :type private_cloud_name: str :param dhcp_id: NSX DHCP identifier. Generally the same as the DHCP display name. :type dhcp_id: str - :param workload_network_dhcp: NSX DHCP. - :type workload_network_dhcp: ~avs_client.models.WorkloadNetworkDhcp + :param properties: DHCP properties. + :type properties: ~avs_client.models.WorkloadNetworkDhcpEntity :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either WorkloadNetworkDhcp or the result of cls(response) @@ -811,7 +815,7 @@ async def begin_create_dhcp( resource_group_name=resource_group_name, private_cloud_name=private_cloud_name, dhcp_id=dhcp_id, - workload_network_dhcp=workload_network_dhcp, + properties=properties, cls=lambda x,y,z: x, **kwargs ) @@ -852,15 +856,17 @@ async def _update_dhcp_initial( resource_group_name: str, private_cloud_name: str, dhcp_id: str, - workload_network_dhcp: "_models.WorkloadNetworkDhcp", - **kwargs + properties: Optional["_models.WorkloadNetworkDhcpEntity"] = None, + **kwargs: Any ) -> Optional["_models.WorkloadNetworkDhcp"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.WorkloadNetworkDhcp"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + + _workload_network_dhcp = _models.WorkloadNetworkDhcp(properties=properties) + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -884,7 +890,7 @@ async def _update_dhcp_initial( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(workload_network_dhcp, 'WorkloadNetworkDhcp') + body_content = self._serialize.body(_workload_network_dhcp, 'WorkloadNetworkDhcp') 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) @@ -909,8 +915,8 @@ async def begin_update_dhcp( resource_group_name: str, private_cloud_name: str, dhcp_id: str, - workload_network_dhcp: "_models.WorkloadNetworkDhcp", - **kwargs + properties: Optional["_models.WorkloadNetworkDhcpEntity"] = None, + **kwargs: Any ) -> AsyncLROPoller["_models.WorkloadNetworkDhcp"]: """Create or update dhcp by id in a private cloud workload network. @@ -922,12 +928,12 @@ async def begin_update_dhcp( :type private_cloud_name: str :param dhcp_id: NSX DHCP identifier. Generally the same as the DHCP display name. :type dhcp_id: str - :param workload_network_dhcp: NSX DHCP. - :type workload_network_dhcp: ~avs_client.models.WorkloadNetworkDhcp + :param properties: DHCP properties. + :type properties: ~avs_client.models.WorkloadNetworkDhcpEntity :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either WorkloadNetworkDhcp or the result of cls(response) @@ -946,7 +952,7 @@ async def begin_update_dhcp( resource_group_name=resource_group_name, private_cloud_name=private_cloud_name, dhcp_id=dhcp_id, - workload_network_dhcp=workload_network_dhcp, + properties=properties, cls=lambda x,y,z: x, **kwargs ) @@ -987,14 +993,14 @@ async def _delete_dhcp_initial( resource_group_name: str, private_cloud_name: str, dhcp_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -1033,7 +1039,7 @@ async def begin_delete_dhcp( resource_group_name: str, private_cloud_name: str, dhcp_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete dhcp by id in a private cloud workload network. @@ -1047,8 +1053,8 @@ async def begin_delete_dhcp( :type dhcp_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: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1103,7 +1109,7 @@ def list_gateways( self, resource_group_name: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.WorkloadNetworkGatewayList"]: """List of gateways in a private cloud workload network. @@ -1123,7 +1129,7 @@ def list_gateways( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -1180,7 +1186,7 @@ async def get_gateway( resource_group_name: str, private_cloud_name: str, gateway_id: str, - **kwargs + **kwargs: Any ) -> "_models.WorkloadNetworkGateway": """Get a gateway by id in a private cloud workload network. @@ -1202,7 +1208,7 @@ async def get_gateway( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -1243,7 +1249,7 @@ def list_port_mirroring( self, resource_group_name: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.WorkloadNetworkPortMirroringList"]: """List of port mirroring profiles in a private cloud workload network. @@ -1263,7 +1269,7 @@ def list_port_mirroring( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -1320,7 +1326,7 @@ async def get_port_mirroring( resource_group_name: str, private_cloud_name: str, port_mirroring_id: str, - **kwargs + **kwargs: Any ) -> "_models.WorkloadNetworkPortMirroring": """Get a port mirroring profile by id in a private cloud workload network. @@ -1343,7 +1349,7 @@ async def get_port_mirroring( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -1386,14 +1392,14 @@ async def _create_port_mirroring_initial( private_cloud_name: str, port_mirroring_id: str, workload_network_port_mirroring: "_models.WorkloadNetworkPortMirroring", - **kwargs + **kwargs: Any ) -> "_models.WorkloadNetworkPortMirroring": cls = kwargs.pop('cls', None) # type: ClsType["_models.WorkloadNetworkPortMirroring"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -1445,7 +1451,7 @@ async def begin_create_port_mirroring( private_cloud_name: str, port_mirroring_id: str, workload_network_port_mirroring: "_models.WorkloadNetworkPortMirroring", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.WorkloadNetworkPortMirroring"]: """Create a port mirroring profile by id in a private cloud workload network. @@ -1462,8 +1468,8 @@ async def begin_create_port_mirroring( :type workload_network_port_mirroring: ~avs_client.models.WorkloadNetworkPortMirroring :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either WorkloadNetworkPortMirroring or the result of cls(response) @@ -1524,14 +1530,14 @@ async def _update_port_mirroring_initial( private_cloud_name: str, port_mirroring_id: str, workload_network_port_mirroring: "_models.WorkloadNetworkPortMirroring", - **kwargs + **kwargs: Any ) -> Optional["_models.WorkloadNetworkPortMirroring"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.WorkloadNetworkPortMirroring"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -1581,7 +1587,7 @@ async def begin_update_port_mirroring( private_cloud_name: str, port_mirroring_id: str, workload_network_port_mirroring: "_models.WorkloadNetworkPortMirroring", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.WorkloadNetworkPortMirroring"]: """Create or update a port mirroring profile by id in a private cloud workload network. @@ -1598,8 +1604,8 @@ async def begin_update_port_mirroring( :type workload_network_port_mirroring: ~avs_client.models.WorkloadNetworkPortMirroring :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either WorkloadNetworkPortMirroring or the result of cls(response) @@ -1659,14 +1665,14 @@ async def _delete_port_mirroring_initial( resource_group_name: str, port_mirroring_id: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -1705,7 +1711,7 @@ async def begin_delete_port_mirroring( resource_group_name: str, port_mirroring_id: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a port mirroring profile by id in a private cloud workload network. @@ -1720,8 +1726,8 @@ async def begin_delete_port_mirroring( :type private_cloud_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1776,7 +1782,7 @@ def list_vm_groups( self, resource_group_name: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.WorkloadNetworkVMGroupsList"]: """List of vm groups in a private cloud workload network. @@ -1796,7 +1802,7 @@ def list_vm_groups( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -1853,7 +1859,7 @@ async def get_vm_group( resource_group_name: str, private_cloud_name: str, vm_group_id: str, - **kwargs + **kwargs: Any ) -> "_models.WorkloadNetworkVMGroup": """Get a vm group by id in a private cloud workload network. @@ -1875,7 +1881,7 @@ async def get_vm_group( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -1918,14 +1924,14 @@ async def _create_vm_group_initial( private_cloud_name: str, vm_group_id: str, workload_network_vm_group: "_models.WorkloadNetworkVMGroup", - **kwargs + **kwargs: Any ) -> "_models.WorkloadNetworkVMGroup": cls = kwargs.pop('cls', None) # type: ClsType["_models.WorkloadNetworkVMGroup"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -1977,7 +1983,7 @@ async def begin_create_vm_group( private_cloud_name: str, vm_group_id: str, workload_network_vm_group: "_models.WorkloadNetworkVMGroup", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.WorkloadNetworkVMGroup"]: """Create a vm group by id in a private cloud workload network. @@ -1993,8 +1999,8 @@ async def begin_create_vm_group( :type workload_network_vm_group: ~avs_client.models.WorkloadNetworkVMGroup :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either WorkloadNetworkVMGroup or the result of cls(response) @@ -2055,14 +2061,14 @@ async def _update_vm_group_initial( private_cloud_name: str, vm_group_id: str, workload_network_vm_group: "_models.WorkloadNetworkVMGroup", - **kwargs + **kwargs: Any ) -> Optional["_models.WorkloadNetworkVMGroup"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.WorkloadNetworkVMGroup"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -2112,7 +2118,7 @@ async def begin_update_vm_group( private_cloud_name: str, vm_group_id: str, workload_network_vm_group: "_models.WorkloadNetworkVMGroup", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.WorkloadNetworkVMGroup"]: """Create or update a vm group by id in a private cloud workload network. @@ -2128,8 +2134,8 @@ async def begin_update_vm_group( :type workload_network_vm_group: ~avs_client.models.WorkloadNetworkVMGroup :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either WorkloadNetworkVMGroup or the result of cls(response) @@ -2189,14 +2195,14 @@ async def _delete_vm_group_initial( resource_group_name: str, vm_group_id: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -2235,7 +2241,7 @@ async def begin_delete_vm_group( resource_group_name: str, vm_group_id: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a vm group by id in a private cloud workload network. @@ -2249,8 +2255,8 @@ async def begin_delete_vm_group( :type private_cloud_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -2305,7 +2311,7 @@ def list_virtual_machines( self, resource_group_name: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.WorkloadNetworkVirtualMachinesList"]: """List of virtual machines in a private cloud workload network. @@ -2325,7 +2331,7 @@ def list_virtual_machines( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -2382,7 +2388,7 @@ async def get_virtual_machine( resource_group_name: str, private_cloud_name: str, virtual_machine_id: str, - **kwargs + **kwargs: Any ) -> "_models.WorkloadNetworkVirtualMachine": """Get a virtual machine by id in a private cloud workload network. @@ -2392,7 +2398,7 @@ async def get_virtual_machine( :type resource_group_name: str :param private_cloud_name: Name of the private cloud. :type private_cloud_name: str - :param virtual_machine_id: NSX Virtual Machine identifier. + :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: WorkloadNetworkVirtualMachine, or the result of cls(response) @@ -2404,7 +2410,7 @@ async def get_virtual_machine( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -2445,7 +2451,7 @@ def list_dns_services( self, resource_group_name: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.WorkloadNetworkDnsServicesList"]: """List of DNS services in a private cloud workload network. @@ -2465,7 +2471,7 @@ def list_dns_services( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -2522,7 +2528,7 @@ async def get_dns_service( resource_group_name: str, private_cloud_name: str, dns_service_id: str, - **kwargs + **kwargs: Any ) -> "_models.WorkloadNetworkDnsService": """Get a DNS service by id in a private cloud workload network. @@ -2545,7 +2551,7 @@ async def get_dns_service( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -2588,14 +2594,14 @@ async def _create_dns_service_initial( private_cloud_name: str, dns_service_id: str, workload_network_dns_service: "_models.WorkloadNetworkDnsService", - **kwargs + **kwargs: Any ) -> "_models.WorkloadNetworkDnsService": cls = kwargs.pop('cls', None) # type: ClsType["_models.WorkloadNetworkDnsService"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -2647,7 +2653,7 @@ async def begin_create_dns_service( private_cloud_name: str, dns_service_id: str, workload_network_dns_service: "_models.WorkloadNetworkDnsService", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.WorkloadNetworkDnsService"]: """Create a DNS service by id in a private cloud workload network. @@ -2664,8 +2670,8 @@ async def begin_create_dns_service( :type workload_network_dns_service: ~avs_client.models.WorkloadNetworkDnsService :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either WorkloadNetworkDnsService or the result of cls(response) @@ -2726,14 +2732,14 @@ async def _update_dns_service_initial( private_cloud_name: str, dns_service_id: str, workload_network_dns_service: "_models.WorkloadNetworkDnsService", - **kwargs + **kwargs: Any ) -> Optional["_models.WorkloadNetworkDnsService"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.WorkloadNetworkDnsService"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -2783,7 +2789,7 @@ async def begin_update_dns_service( private_cloud_name: str, dns_service_id: str, workload_network_dns_service: "_models.WorkloadNetworkDnsService", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.WorkloadNetworkDnsService"]: """Create or update a DNS service by id in a private cloud workload network. @@ -2800,8 +2806,8 @@ async def begin_update_dns_service( :type workload_network_dns_service: ~avs_client.models.WorkloadNetworkDnsService :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either WorkloadNetworkDnsService or the result of cls(response) @@ -2861,14 +2867,14 @@ async def _delete_dns_service_initial( resource_group_name: str, dns_service_id: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -2907,7 +2913,7 @@ async def begin_delete_dns_service( resource_group_name: str, dns_service_id: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a DNS service by id in a private cloud workload network. @@ -2922,8 +2928,8 @@ async def begin_delete_dns_service( :type private_cloud_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -2978,7 +2984,7 @@ def list_dns_zones( self, resource_group_name: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.WorkloadNetworkDnsZonesList"]: """List of DNS zones in a private cloud workload network. @@ -2998,7 +3004,7 @@ def list_dns_zones( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -3055,7 +3061,7 @@ async def get_dns_zone( resource_group_name: str, private_cloud_name: str, dns_zone_id: str, - **kwargs + **kwargs: Any ) -> "_models.WorkloadNetworkDnsZone": """Get a DNS zone by id in a private cloud workload network. @@ -3077,7 +3083,7 @@ async def get_dns_zone( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -3120,14 +3126,14 @@ async def _create_dns_zone_initial( private_cloud_name: str, dns_zone_id: str, workload_network_dns_zone: "_models.WorkloadNetworkDnsZone", - **kwargs + **kwargs: Any ) -> "_models.WorkloadNetworkDnsZone": cls = kwargs.pop('cls', None) # type: ClsType["_models.WorkloadNetworkDnsZone"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -3179,7 +3185,7 @@ async def begin_create_dns_zone( private_cloud_name: str, dns_zone_id: str, workload_network_dns_zone: "_models.WorkloadNetworkDnsZone", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.WorkloadNetworkDnsZone"]: """Create a DNS zone by id in a private cloud workload network. @@ -3195,8 +3201,8 @@ async def begin_create_dns_zone( :type workload_network_dns_zone: ~avs_client.models.WorkloadNetworkDnsZone :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either WorkloadNetworkDnsZone or the result of cls(response) @@ -3257,14 +3263,14 @@ async def _update_dns_zone_initial( private_cloud_name: str, dns_zone_id: str, workload_network_dns_zone: "_models.WorkloadNetworkDnsZone", - **kwargs + **kwargs: Any ) -> Optional["_models.WorkloadNetworkDnsZone"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.WorkloadNetworkDnsZone"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -3314,7 +3320,7 @@ async def begin_update_dns_zone( private_cloud_name: str, dns_zone_id: str, workload_network_dns_zone: "_models.WorkloadNetworkDnsZone", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.WorkloadNetworkDnsZone"]: """Create or update a DNS zone by id in a private cloud workload network. @@ -3330,8 +3336,8 @@ async def begin_update_dns_zone( :type workload_network_dns_zone: ~avs_client.models.WorkloadNetworkDnsZone :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either WorkloadNetworkDnsZone or the result of cls(response) @@ -3391,14 +3397,14 @@ async def _delete_dns_zone_initial( resource_group_name: str, dns_zone_id: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -3437,7 +3443,7 @@ async def begin_delete_dns_zone( resource_group_name: str, dns_zone_id: str, private_cloud_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a DNS zone by id in a private cloud workload network. @@ -3451,8 +3457,8 @@ async def begin_delete_dns_zone( :type private_cloud_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -3502,3 +3508,407 @@ def get_long_running_output(pipeline_response): else: return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete_dns_zone.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}'} # type: ignore + + def list_public_i_ps( + self, + resource_group_name: str, + private_cloud_name: str, + **kwargs: Any + ) -> AsyncIterable["_models.WorkloadNetworkPublicIPsList"]: + """List of Public IP Blocks in a private cloud workload network. + + List of Public IP Blocks in a private cloud workload network. + + :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 + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either WorkloadNetworkPublicIPsList or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~avs_client.models.WorkloadNetworkPublicIPsList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.WorkloadNetworkPublicIPsList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-06-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_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\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_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('WorkloadNetworkPublicIPsList', 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_public_i_ps.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs'} # type: ignore + + async def get_public_ip( + self, + resource_group_name: str, + private_cloud_name: str, + public_ip_id: str, + **kwargs: Any + ) -> "_models.WorkloadNetworkPublicIP": + """Get a Public IP Block by id in a private cloud workload network. + + Get a Public IP Block by id in a private cloud workload network. + + :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 public_ip_id: NSX Public IP Block identifier. Generally the same as the Public IP + Block's display name. + :type public_ip_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkloadNetworkPublicIP, or the result of cls(response) + :rtype: ~avs_client.models.WorkloadNetworkPublicIP + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.WorkloadNetworkPublicIP"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-06-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\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'publicIPId': self._serialize.url("public_ip_id", public_ip_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('WorkloadNetworkPublicIP', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_public_ip.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}'} # type: ignore + + async def _create_public_ip_initial( + self, + resource_group_name: str, + private_cloud_name: str, + public_ip_id: str, + display_name: Optional[str] = None, + number_of_public_i_ps: Optional[int] = None, + **kwargs: Any + ) -> "_models.WorkloadNetworkPublicIP": + cls = kwargs.pop('cls', None) # type: ClsType["_models.WorkloadNetworkPublicIP"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + 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" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + 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\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'publicIPId': self._serialize.url("public_ip_id", public_ip_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(_workload_network_public_ip, 'WorkloadNetworkPublicIP') + 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('WorkloadNetworkPublicIP', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('WorkloadNetworkPublicIP', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_public_ip_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}'} # type: ignore + + async def begin_create_public_ip( + self, + resource_group_name: str, + private_cloud_name: str, + public_ip_id: str, + display_name: Optional[str] = None, + number_of_public_i_ps: Optional[int] = None, + **kwargs: Any + ) -> AsyncLROPoller["_models.WorkloadNetworkPublicIP"]: + """Create a Public IP Block by id in a private cloud workload network. + + Create a Public IP Block by id in a private cloud workload network. + + :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 public_ip_id: NSX Public IP Block identifier. Generally the same as the Public IP + Block's display name. + :type public_ip_id: str + :param display_name: Display name of the Public IP Block. + :type display_name: str + :param number_of_public_i_ps: Number of Public IPs requested. + :type number_of_public_i_ps: long + :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 WorkloadNetworkPublicIP or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~avs_client.models.WorkloadNetworkPublicIP] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.WorkloadNetworkPublicIP"] + 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_public_ip_initial( + resource_group_name=resource_group_name, + private_cloud_name=private_cloud_name, + public_ip_id=public_ip_id, + display_name=display_name, + number_of_public_i_ps=number_of_public_i_ps, + 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('WorkloadNetworkPublicIP', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'publicIPId': self._serialize.url("public_ip_id", public_ip_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_create_public_ip.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}'} # type: ignore + + async def _delete_public_ip_initial( + self, + resource_group_name: str, + public_ip_id: str, + private_cloud_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-06-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\._\(\)]+$'), + 'publicIPId': self._serialize.url("public_ip_id", public_ip_id, 'str'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_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_public_ip_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}'} # type: ignore + + async def begin_delete_public_ip( + self, + resource_group_name: str, + public_ip_id: str, + private_cloud_name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Delete a Public IP Block by id in a private cloud workload network. + + Delete a Public IP Block by id in a private cloud workload network. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param public_ip_id: NSX Public IP Block identifier. Generally the same as the Public IP + Block's display name. + :type public_ip_id: str + :param private_cloud_name: Name of the private cloud. + :type private_cloud_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_public_ip_initial( + resource_group_name=resource_group_name, + public_ip_id=public_ip_id, + private_cloud_name=private_cloud_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, pattern=r'^[-\w\._\(\)]+$'), + 'publicIPId': self._serialize.url("public_ip_id", public_ip_id, 'str'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_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_public_ip.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}'} # type: ignore 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 fd15cc64bf0..819b169fecf 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 @@ -1,17 +1,22 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- try: from ._models_py3 import Addon + from ._models_py3 import AddonHcxProperties from ._models_py3 import AddonList from ._models_py3 import AddonProperties from ._models_py3 import AddonSrmProperties - from ._models_py3 import AddonUpdate + from ._models_py3 import AddonVrProperties from ._models_py3 import AdminCredentials from ._models_py3 import Circuit + from ._models_py3 import CloudLink + from ._models_py3 import CloudLinkList from ._models_py3 import Cluster from ._models_py3 import ClusterList from ._models_py3 import ClusterProperties @@ -39,6 +44,7 @@ from ._models_py3 import OperationDisplay from ._models_py3 import OperationList from ._models_py3 import OperationProperties + from ._models_py3 import PSCredentialExecutionParameter from ._models_py3 import PrivateCloud from ._models_py3 import PrivateCloudList from ._models_py3 import PrivateCloudProperties @@ -47,6 +53,16 @@ from ._models_py3 import ProxyResource from ._models_py3 import Quota from ._models_py3 import Resource + from ._models_py3 import ScriptCmdlet + from ._models_py3 import ScriptCmdletsList + from ._models_py3 import ScriptExecution + from ._models_py3 import ScriptExecutionParameter + from ._models_py3 import ScriptExecutionsList + from ._models_py3 import ScriptPackage + from ._models_py3 import ScriptPackagesList + from ._models_py3 import ScriptParameter + from ._models_py3 import ScriptSecureStringExecutionParameter + from ._models_py3 import ScriptStringExecutionParameter from ._models_py3 import ServiceSpecification from ._models_py3 import Sku from ._models_py3 import TrackedResource @@ -64,6 +80,8 @@ from ._models_py3 import WorkloadNetworkGatewayList from ._models_py3 import WorkloadNetworkPortMirroring from ._models_py3 import WorkloadNetworkPortMirroringList + from ._models_py3 import WorkloadNetworkPublicIP + from ._models_py3 import WorkloadNetworkPublicIPsList from ._models_py3 import WorkloadNetworkSegment from ._models_py3 import WorkloadNetworkSegmentPortVif from ._models_py3 import WorkloadNetworkSegmentSubnet @@ -74,12 +92,15 @@ from ._models_py3 import WorkloadNetworkVirtualMachinesList except (SyntaxError, ImportError): from ._models import Addon # type: ignore + from ._models import AddonHcxProperties # type: ignore from ._models import AddonList # type: ignore from ._models import AddonProperties # type: ignore from ._models import AddonSrmProperties # type: ignore - from ._models import AddonUpdate # type: ignore + from ._models import AddonVrProperties # type: ignore from ._models import AdminCredentials # type: ignore from ._models import Circuit # type: ignore + from ._models import CloudLink # type: ignore + from ._models import CloudLinkList # type: ignore from ._models import Cluster # type: ignore from ._models import ClusterList # type: ignore from ._models import ClusterProperties # type: ignore @@ -107,6 +128,7 @@ from ._models import OperationDisplay # type: ignore from ._models import OperationList # type: ignore from ._models import OperationProperties # type: ignore + from ._models import PSCredentialExecutionParameter # type: ignore from ._models import PrivateCloud # type: ignore from ._models import PrivateCloudList # type: ignore from ._models import PrivateCloudProperties # type: ignore @@ -115,6 +137,16 @@ from ._models import ProxyResource # type: ignore from ._models import Quota # type: ignore from ._models import Resource # type: ignore + from ._models import ScriptCmdlet # type: ignore + from ._models import ScriptCmdletsList # type: ignore + from ._models import ScriptExecution # type: ignore + from ._models import ScriptExecutionParameter # type: ignore + from ._models import ScriptExecutionsList # type: ignore + from ._models import ScriptPackage # type: ignore + from ._models import ScriptPackagesList # type: ignore + from ._models import ScriptParameter # type: ignore + from ._models import ScriptSecureStringExecutionParameter # type: ignore + from ._models import ScriptStringExecutionParameter # type: ignore from ._models import ServiceSpecification # type: ignore from ._models import Sku # type: ignore from ._models import TrackedResource # type: ignore @@ -132,6 +164,8 @@ from ._models import WorkloadNetworkGatewayList # type: ignore from ._models import WorkloadNetworkPortMirroring # type: ignore from ._models import WorkloadNetworkPortMirroringList # type: ignore + from ._models import WorkloadNetworkPublicIP # type: ignore + from ._models import WorkloadNetworkPublicIPsList # type: ignore from ._models import WorkloadNetworkSegment # type: ignore from ._models import WorkloadNetworkSegmentPortVif # type: ignore from ._models import WorkloadNetworkSegmentSubnet # type: ignore @@ -144,6 +178,7 @@ from ._avs_client_enums import ( AddonProvisioningState, AddonType, + CloudLinkStatus, ClusterProvisioningState, DatastoreProvisioningState, DhcpTypeEnum, @@ -154,31 +189,42 @@ GlobalReachConnectionStatus, HcxEnterpriseSiteStatus, InternetEnum, + MountOptionEnum, + OptionalParamEnum, PortMirroringDirectionEnum, PortMirroringStatusEnum, PrivateCloudProvisioningState, QuotaEnabled, + ScriptExecutionParameterType, + ScriptExecutionProvisioningState, + ScriptOutputStreamType, + ScriptParameterTypes, SegmentStatusEnum, SslEnum, TrialStatus, VMGroupStatusEnum, VMTypeEnum, + VisibilityParameterEnum, WorkloadNetworkDhcpProvisioningState, WorkloadNetworkDnsServiceProvisioningState, WorkloadNetworkDnsZoneProvisioningState, WorkloadNetworkPortMirroringProvisioningState, + WorkloadNetworkPublicIPProvisioningState, WorkloadNetworkSegmentProvisioningState, WorkloadNetworkVMGroupProvisioningState, ) __all__ = [ 'Addon', + 'AddonHcxProperties', 'AddonList', 'AddonProperties', 'AddonSrmProperties', - 'AddonUpdate', + 'AddonVrProperties', 'AdminCredentials', 'Circuit', + 'CloudLink', + 'CloudLinkList', 'Cluster', 'ClusterList', 'ClusterProperties', @@ -206,6 +252,7 @@ 'OperationDisplay', 'OperationList', 'OperationProperties', + 'PSCredentialExecutionParameter', 'PrivateCloud', 'PrivateCloudList', 'PrivateCloudProperties', @@ -214,6 +261,16 @@ 'ProxyResource', 'Quota', 'Resource', + 'ScriptCmdlet', + 'ScriptCmdletsList', + 'ScriptExecution', + 'ScriptExecutionParameter', + 'ScriptExecutionsList', + 'ScriptPackage', + 'ScriptPackagesList', + 'ScriptParameter', + 'ScriptSecureStringExecutionParameter', + 'ScriptStringExecutionParameter', 'ServiceSpecification', 'Sku', 'TrackedResource', @@ -231,6 +288,8 @@ 'WorkloadNetworkGatewayList', 'WorkloadNetworkPortMirroring', 'WorkloadNetworkPortMirroringList', + 'WorkloadNetworkPublicIP', + 'WorkloadNetworkPublicIPsList', 'WorkloadNetworkSegment', 'WorkloadNetworkSegmentPortVif', 'WorkloadNetworkSegmentSubnet', @@ -241,6 +300,7 @@ 'WorkloadNetworkVirtualMachinesList', 'AddonProvisioningState', 'AddonType', + 'CloudLinkStatus', 'ClusterProvisioningState', 'DatastoreProvisioningState', 'DhcpTypeEnum', @@ -251,19 +311,27 @@ 'GlobalReachConnectionStatus', 'HcxEnterpriseSiteStatus', 'InternetEnum', + 'MountOptionEnum', + 'OptionalParamEnum', 'PortMirroringDirectionEnum', 'PortMirroringStatusEnum', 'PrivateCloudProvisioningState', 'QuotaEnabled', + 'ScriptExecutionParameterType', + 'ScriptExecutionProvisioningState', + 'ScriptOutputStreamType', + 'ScriptParameterTypes', 'SegmentStatusEnum', 'SslEnum', 'TrialStatus', 'VMGroupStatusEnum', 'VMTypeEnum', + 'VisibilityParameterEnum', 'WorkloadNetworkDhcpProvisioningState', 'WorkloadNetworkDnsServiceProvisioningState', 'WorkloadNetworkDnsZoneProvisioningState', 'WorkloadNetworkPortMirroringProvisioningState', + 'WorkloadNetworkPublicIPProvisioningState', 'WorkloadNetworkSegmentProvisioningState', 'WorkloadNetworkVMGroupProvisioningState', ] 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 c902b578e59..f0a7e9e57cd 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 @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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. # -------------------------------------------------------------------------- @@ -41,6 +43,17 @@ class AddonType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): SRM = "SRM" VR = "VR" + HCX = "HCX" + +class CloudLinkStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The state of the cloud link. + """ + + ACTIVE = "Active" + BUILDING = "Building" + DELETING = "Deleting" + FAILED = "Failed" + DISCONNECTED = "Disconnected" class ClusterProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The state of the cluster provisioning @@ -59,14 +72,17 @@ class DatastoreProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, E SUCCEEDED = "Succeeded" FAILED = "Failed" CANCELLED = "Cancelled" - DELETING = "Deleting" + PENDING = "Pending" + CREATING = "Creating" UPDATING = "Updating" + DELETING = "Deleting" class DhcpTypeEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Type of DHCP: SERVER or RELAY. """ - SERVER_RELAY = "SERVER, RELAY" + SERVER = "SERVER" + RELAY = "RELAY" class DnsServiceLogLevelEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """DNS Service log level. @@ -125,6 +141,20 @@ class InternetEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): ENABLED = "Enabled" DISABLED = "Disabled" +class MountOptionEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN + """ + + MOUNT = "MOUNT" + ATTACH = "ATTACH" + +class OptionalParamEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Is this parameter required or optional + """ + + OPTIONAL = "Optional" + REQUIRED = "Required" + class PortMirroringDirectionEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Direction of port mirroring profile. """ @@ -156,6 +186,44 @@ class QuotaEnabled(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): ENABLED = "Enabled" DISABLED = "Disabled" +class ScriptExecutionParameterType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The type of execution parameter + """ + + VALUE = "Value" + SECURE_VALUE = "SecureValue" + CREDENTIAL = "Credential" + +class ScriptExecutionProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The state of the script execution resource + """ + + PENDING = "Pending" + RUNNING = "Running" + SUCCEEDED = "Succeeded" + FAILED = "Failed" + CANCELLING = "Cancelling" + CANCELLED = "Cancelled" + DELETING = "Deleting" + +class ScriptOutputStreamType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + + INFORMATION = "Information" + WARNING = "Warning" + OUTPUT = "Output" + ERROR = "Error" + +class ScriptParameterTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The type of parameter the script is expecting. psCredential is a PSCredentialObject + """ + + STRING = "String" + SECURE_STRING = "SecureString" + CREDENTIAL = "Credential" + INT = "Int" + BOOL = "Bool" + FLOAT = "Float" + class SegmentStatusEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Segment status. """ @@ -177,6 +245,13 @@ class TrialStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): TRIAL_USED = "TrialUsed" TRIAL_DISABLED = "TrialDisabled" +class VisibilityParameterEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Should this parameter be visible to arm and passed in the parameters argument when executing + """ + + VISIBLE = "Visible" + HIDDEN = "Hidden" + class VMGroupStatusEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """VM Group status. """ @@ -229,6 +304,16 @@ class WorkloadNetworkPortMirroringProvisioningState(with_metaclass(_CaseInsensit DELETING = "Deleting" UPDATING = "Updating" +class WorkloadNetworkPublicIPProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The provisioning state + """ + + SUCCEEDED = "Succeeded" + FAILED = "Failed" + BUILDING = "Building" + DELETING = "Deleting" + UPDATING = "Updating" + class WorkloadNetworkSegmentProvisioningState(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 25b4e933fb8..ad4824ec05c 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 @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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. # -------------------------------------------------------------------------- @@ -53,29 +55,21 @@ class Addon(Resource): :vartype name: str :ivar type: Resource type. :vartype type: str - :param license_key: The SRM license. - :type license_key: str - :param addon_type: The type of private cloud addon. Possible values include: "SRM", "VR". - :type addon_type: str or ~avs_client.models.AddonType - :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 properties: The properties of an addon resource. + :type properties: ~avs_client.models.AddonProperties """ _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, - 'provisioning_state': {'readonly': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, - 'license_key': {'key': 'properties.licenseKey', 'type': 'str'}, - 'addon_type': {'key': 'properties.addonType', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'AddonProperties'}, } def __init__( @@ -83,11 +77,88 @@ def __init__( **kwargs ): super(Addon, self).__init__(**kwargs) - self.license_key = kwargs.get('license_key', None) - self.addon_type = kwargs.get('addon_type', None) + self.properties = kwargs.get('properties', None) + + +class AddonProperties(msrest.serialization.Model): + """The properties of an addon. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AddonHcxProperties, AddonSrmProperties, AddonVrProperties. + + 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 addon_type: Required. The type of private cloud addon.Constant filled by server. + Possible values include: "SRM", "VR", "HCX". + :type addon_type: str or ~avs_client.models.AddonType + :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 + """ + + _validation = { + 'addon_type': {'required': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'addon_type': {'key': 'addonType', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + _subtype_map = { + 'addon_type': {'HCX': 'AddonHcxProperties', 'SRM': 'AddonSrmProperties', 'VR': 'AddonVrProperties'} + } + + def __init__( + self, + **kwargs + ): + super(AddonProperties, self).__init__(**kwargs) + self.addon_type = None # type: Optional[str] self.provisioning_state = None +class AddonHcxProperties(AddonProperties): + """The properties of an HCX addon. + + 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 addon_type: Required. The type of private cloud addon.Constant filled by server. + Possible values include: "SRM", "VR", "HCX". + :type addon_type: str or ~avs_client.models.AddonType + :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 offer: Required. The HCX offer, example VMware MaaS Cloud Provider (Enterprise). + :type offer: str + """ + + _validation = { + 'addon_type': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'offer': {'required': True}, + } + + _attribute_map = { + 'addon_type': {'key': 'addonType', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'offer': {'key': 'offer', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(AddonHcxProperties, self).__init__(**kwargs) + self.addon_type = 'HCX' # type: str + self.offer = kwargs['offer'] + + class AddonList(msrest.serialization.Model): """A paged list of addons. @@ -118,90 +189,80 @@ def __init__( self.next_link = None -class AddonSrmProperties(msrest.serialization.Model): - """The properties of an SRM addon that may be updated. - - :param license_key: The SRM license. - :type license_key: str - """ - - _attribute_map = { - 'license_key': {'key': 'licenseKey', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(AddonSrmProperties, self).__init__(**kwargs) - self.license_key = kwargs.get('license_key', None) - - -class AddonProperties(AddonSrmProperties): - """The properties of an addon that may be updated. +class AddonSrmProperties(AddonProperties): + """The properties of a Site Recovery Manager (SRM) addon. Variables are only populated by the server, and will be ignored when sending a request. - :param license_key: The SRM license. - :type license_key: str - :param addon_type: The type of private cloud addon. Possible values include: "SRM", "VR". + All required parameters must be populated in order to send to Azure. + + :param addon_type: Required. The type of private cloud addon.Constant filled by server. + Possible values include: "SRM", "VR", "HCX". :type addon_type: str or ~avs_client.models.AddonType :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. + :type license_key: str """ _validation = { + 'addon_type': {'required': True}, 'provisioning_state': {'readonly': True}, + 'license_key': {'required': True}, } _attribute_map = { - 'license_key': {'key': 'licenseKey', 'type': 'str'}, 'addon_type': {'key': 'addonType', 'type': 'str'}, 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'license_key': {'key': 'licenseKey', 'type': 'str'}, } def __init__( self, **kwargs ): - super(AddonProperties, self).__init__(**kwargs) - self.addon_type = kwargs.get('addon_type', None) - self.provisioning_state = None + super(AddonSrmProperties, self).__init__(**kwargs) + self.addon_type = 'SRM' # type: str + self.license_key = kwargs['license_key'] -class AddonUpdate(msrest.serialization.Model): - """An update of an addon resource. +class AddonVrProperties(AddonProperties): + """The properties of a vSphere Replication (VR) addon. Variables are only populated by the server, and will be ignored when sending a request. - :param license_key: The SRM license. - :type license_key: str - :param addon_type: The type of private cloud addon. Possible values include: "SRM", "VR". + All required parameters must be populated in order to send to Azure. + + :param addon_type: Required. The type of private cloud addon.Constant filled by server. + Possible values include: "SRM", "VR", "HCX". :type addon_type: str or ~avs_client.models.AddonType :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 vrs_count: Required. The vSphere Replication Server (VRS) count. + :type vrs_count: int """ _validation = { + 'addon_type': {'required': True}, 'provisioning_state': {'readonly': True}, + 'vrs_count': {'required': True}, } _attribute_map = { - 'license_key': {'key': 'properties.properties.licenseKey', 'type': 'str'}, - 'addon_type': {'key': 'properties.properties.addonType', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.properties.provisioningState', 'type': 'str'}, + 'addon_type': {'key': 'addonType', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'vrs_count': {'key': 'vrsCount', 'type': 'int'}, } def __init__( self, **kwargs ): - super(AddonUpdate, self).__init__(**kwargs) - self.license_key = kwargs.get('license_key', None) - self.addon_type = kwargs.get('addon_type', None) - self.provisioning_state = None + super(AddonVrProperties, self).__init__(**kwargs) + self.addon_type = 'VR' # type: str + self.vrs_count = kwargs['vrs_count'] class AdminCredentials(msrest.serialization.Model): @@ -284,6 +345,78 @@ def __init__( self.express_route_private_peering_id = None +class CloudLink(Resource): + """A cloud link resource. + + 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 status: The state of the cloud link. Possible values include: "Active", "Building", + "Deleting", "Failed", "Disconnected". + :vartype status: str or ~avs_client.models.CloudLinkStatus + :param linked_cloud: Identifier of the other private cloud participating in the link. + :type linked_cloud: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'status': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'status': {'key': 'properties.status', 'type': 'str'}, + 'linked_cloud': {'key': 'properties.linkedCloud', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(CloudLink, self).__init__(**kwargs) + self.status = None + self.linked_cloud = kwargs.get('linked_cloud', None) + + +class CloudLinkList(msrest.serialization.Model): + """A paged list of cloud links. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: The items on a page. + :vartype value: list[~avs_client.models.CloudLink] + :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': '[CloudLink]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(CloudLinkList, self).__init__(**kwargs) + self.value = None + self.next_link = None + + class Cluster(Resource): """A cluster resource. @@ -480,7 +613,7 @@ class Datastore(Resource): :ivar type: Resource type. :vartype type: str :ivar provisioning_state: The state of the datastore provisioning. Possible values include: - "Succeeded", "Failed", "Cancelled", "Deleting", "Updating". + "Succeeded", "Failed", "Cancelled", "Pending", "Creating", "Updating", "Deleting". :vartype provisioning_state: str or ~avs_client.models.DatastoreProvisioningState :param net_app_volume: An Azure NetApp Files volume. :type net_app_volume: ~avs_client.models.NetAppVolume @@ -547,15 +680,32 @@ def __init__( class DiskPoolVolume(msrest.serialization.Model): """An iSCSI volume from Microsoft.StoragePool provider. - :param endpoints: iSCSI provider target IP address list. - :type endpoints: list[str] - :param lun_name: Name of the LUN to be used. + 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 target_id: Required. Azure resource ID of the iSCSI target. + :type target_id: str + :param lun_name: Required. Name of the LUN to be used for datastore. :type lun_name: str + :param mount_option: Mode that describes whether the LUN has to be mounted as a datastore or + attached as a LUN. Possible values include: "MOUNT", "ATTACH". Default value: "MOUNT". + :type mount_option: str or ~avs_client.models.MountOptionEnum + :ivar path: Device path. + :vartype path: str """ + _validation = { + 'target_id': {'required': True}, + 'lun_name': {'required': True}, + 'path': {'readonly': True}, + } + _attribute_map = { - 'endpoints': {'key': 'endpoints', 'type': '[str]'}, + 'target_id': {'key': 'targetId', 'type': 'str'}, 'lun_name': {'key': 'lunName', 'type': 'str'}, + 'mount_option': {'key': 'mountOption', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'}, } def __init__( @@ -563,8 +713,10 @@ def __init__( **kwargs ): super(DiskPoolVolume, self).__init__(**kwargs) - self.endpoints = kwargs.get('endpoints', None) - self.lun_name = kwargs.get('lun_name', None) + self.target_id = kwargs['target_id'] + self.lun_name = kwargs['lun_name'] + self.mount_option = kwargs.get('mount_option', "MOUNT") + self.path = None class Endpoints(msrest.serialization.Model): @@ -610,7 +762,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: object + :vartype info: any """ _validation = { @@ -1145,15 +1297,18 @@ def __init__( class NetAppVolume(msrest.serialization.Model): """An Azure NetApp Files volume from Microsoft.NetApp provider. - :param nfs_provider_ip: IP address of the NFS provider. - :type nfs_provider_ip: str - :param nfs_file_path: File path through which the NFS volume is exposed by the provider. - :type nfs_file_path: str + All required parameters must be populated in order to send to Azure. + + :param id: Required. Azure resource ID of the NetApp volume. + :type id: str """ + _validation = { + 'id': {'required': True}, + } + _attribute_map = { - 'nfs_provider_ip': {'key': 'nfsProviderIp', 'type': 'str'}, - 'nfs_file_path': {'key': 'nfsFilePath', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, } def __init__( @@ -1161,8 +1316,7 @@ def __init__( **kwargs ): super(NetAppVolume, self).__init__(**kwargs) - self.nfs_provider_ip = kwargs.get('nfs_provider_ip', None) - self.nfs_file_path = kwargs.get('nfs_file_path', None) + self.id = kwargs['id'] class Operation(msrest.serialization.Model): @@ -1357,7 +1511,7 @@ class PrivateCloud(TrackedResource): :param sku: Required. The private cloud SKU. :type sku: ~avs_client.models.Sku :param management_cluster: The default cluster used for management. - :type management_cluster: ~avs_client.models.CommonClusterProperties + :type management_cluster: ~avs_client.models.ManagementCluster :param internet: Connectivity to internet is enabled or disabled. Possible values include: "Enabled", "Disabled". Default value: "Disabled". :type internet: str or ~avs_client.models.InternetEnum @@ -1374,6 +1528,8 @@ 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 @@ -1400,6 +1556,7 @@ 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}, @@ -1414,13 +1571,14 @@ class PrivateCloud(TrackedResource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'sku': {'key': 'sku', 'type': 'Sku'}, - 'management_cluster': {'key': 'properties.managementCluster', 'type': 'CommonClusterProperties'}, + 'management_cluster': {'key': 'properties.managementCluster', 'type': 'ManagementCluster'}, 'internet': {'key': 'properties.internet', 'type': 'str'}, 'identity_sources': {'key': 'properties.identitySources', 'type': '[IdentitySource]'}, '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'}, @@ -1443,6 +1601,7 @@ def __init__( 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 @@ -1486,7 +1645,7 @@ class PrivateCloudUpdateProperties(msrest.serialization.Model): """The properties of a private cloud resource that may be updated. :param management_cluster: The default cluster used for management. - :type management_cluster: ~avs_client.models.CommonClusterProperties + :type management_cluster: ~avs_client.models.ManagementCluster :param internet: Connectivity to internet is enabled or disabled. Possible values include: "Enabled", "Disabled". Default value: "Disabled". :type internet: str or ~avs_client.models.InternetEnum @@ -1495,7 +1654,7 @@ class PrivateCloudUpdateProperties(msrest.serialization.Model): """ _attribute_map = { - 'management_cluster': {'key': 'managementCluster', 'type': 'CommonClusterProperties'}, + 'management_cluster': {'key': 'managementCluster', 'type': 'ManagementCluster'}, 'internet': {'key': 'internet', 'type': 'str'}, 'identity_sources': {'key': 'identitySources', 'type': '[IdentitySource]'}, } @@ -1518,7 +1677,7 @@ class PrivateCloudProperties(PrivateCloudUpdateProperties): All required parameters must be populated in order to send to Azure. :param management_cluster: The default cluster used for management. - :type management_cluster: ~avs_client.models.CommonClusterProperties + :type management_cluster: ~avs_client.models.ManagementCluster :param internet: Connectivity to internet is enabled or disabled. Possible values include: "Enabled", "Disabled". Default value: "Disabled". :type internet: str or ~avs_client.models.InternetEnum @@ -1535,6 +1694,8 @@ 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 @@ -1558,6 +1719,7 @@ class PrivateCloudProperties(PrivateCloudUpdateProperties): '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}, @@ -1566,13 +1728,14 @@ class PrivateCloudProperties(PrivateCloudUpdateProperties): } _attribute_map = { - 'management_cluster': {'key': 'managementCluster', 'type': 'CommonClusterProperties'}, + 'management_cluster': {'key': 'managementCluster', 'type': 'ManagementCluster'}, 'internet': {'key': 'internet', 'type': 'str'}, 'identity_sources': {'key': 'identitySources', 'type': '[IdentitySource]'}, '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'}, @@ -1591,6 +1754,7 @@ 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 @@ -1606,7 +1770,7 @@ class PrivateCloudUpdate(msrest.serialization.Model): :param tags: A set of tags. Resource tags. :type tags: dict[str, str] :param management_cluster: The default cluster used for management. - :type management_cluster: ~avs_client.models.CommonClusterProperties + :type management_cluster: ~avs_client.models.ManagementCluster :param internet: Connectivity to internet is enabled or disabled. Possible values include: "Enabled", "Disabled". Default value: "Disabled". :type internet: str or ~avs_client.models.InternetEnum @@ -1616,7 +1780,7 @@ class PrivateCloudUpdate(msrest.serialization.Model): _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, - 'management_cluster': {'key': 'properties.managementCluster', 'type': 'CommonClusterProperties'}, + 'management_cluster': {'key': 'properties.managementCluster', 'type': 'ManagementCluster'}, 'internet': {'key': 'properties.internet', 'type': 'str'}, 'identity_sources': {'key': 'properties.identitySources', 'type': '[IdentitySource]'}, } @@ -1664,118 +1828,115 @@ def __init__( super(ProxyResource, self).__init__(**kwargs) -class Quota(msrest.serialization.Model): - """Subscription quotas. +class ScriptExecutionParameter(msrest.serialization.Model): + """The arguments passed in to the execution. - Variables are only populated by the server, and will be ignored when sending a request. + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: PSCredentialExecutionParameter, ScriptSecureStringExecutionParameter, ScriptStringExecutionParameter. - :ivar hosts_remaining: Remaining hosts quota by sku type. - :vartype hosts_remaining: dict[str, int] - :ivar quota_enabled: Host quota is active for current subscription. Possible values include: - "Enabled", "Disabled". - :vartype quota_enabled: str or ~avs_client.models.QuotaEnabled + All required parameters must be populated in order to send to Azure. + + :param name: Required. The parameter name. + :type name: str + :param type: Required. The type of execution parameter.Constant filled by server. Possible + values include: "Value", "SecureValue", "Credential". + :type type: str or ~avs_client.models.ScriptExecutionParameterType """ _validation = { - 'hosts_remaining': {'readonly': True}, - 'quota_enabled': {'readonly': True}, + 'name': {'required': True}, + 'type': {'required': True}, } _attribute_map = { - 'hosts_remaining': {'key': 'hostsRemaining', 'type': '{int}'}, - 'quota_enabled': {'key': 'quotaEnabled', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, } - def __init__( - self, - **kwargs - ): - super(Quota, self).__init__(**kwargs) - self.hosts_remaining = None - self.quota_enabled = None - - -class ServiceSpecification(msrest.serialization.Model): - """Service specification payload. - - :param log_specifications: Specifications of the Log for Azure Monitoring. - :type log_specifications: list[~avs_client.models.LogSpecification] - :param metric_specifications: Specifications of the Metrics for Azure Monitoring. - :type metric_specifications: list[~avs_client.models.MetricSpecification] - """ - - _attribute_map = { - 'log_specifications': {'key': 'logSpecifications', 'type': '[LogSpecification]'}, - 'metric_specifications': {'key': 'metricSpecifications', 'type': '[MetricSpecification]'}, + _subtype_map = { + 'type': {'Credential': 'PSCredentialExecutionParameter', 'SecureValue': 'ScriptSecureStringExecutionParameter', 'Value': 'ScriptStringExecutionParameter'} } def __init__( self, **kwargs ): - super(ServiceSpecification, self).__init__(**kwargs) - self.log_specifications = kwargs.get('log_specifications', None) - self.metric_specifications = kwargs.get('metric_specifications', None) + super(ScriptExecutionParameter, self).__init__(**kwargs) + self.name = kwargs['name'] + self.type = None # type: Optional[str] -class Sku(msrest.serialization.Model): - """The resource model definition representing SKU. +class PSCredentialExecutionParameter(ScriptExecutionParameter): + """a powershell credential object. All required parameters must be populated in order to send to Azure. - :param name: Required. The name of the SKU. + :param name: Required. The parameter name. :type name: str + :param type: Required. The type of execution parameter.Constant filled by server. Possible + values include: "Value", "SecureValue", "Credential". + :type type: str or ~avs_client.models.ScriptExecutionParameterType + :param username: username for login. + :type username: str + :param password: password for login. + :type password: str """ _validation = { 'name': {'required': True}, + 'type': {'required': True}, } _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'username': {'key': 'username', 'type': 'str'}, + 'password': {'key': 'password', 'type': 'str'}, } def __init__( self, **kwargs ): - super(Sku, self).__init__(**kwargs) - self.name = kwargs['name'] + super(PSCredentialExecutionParameter, self).__init__(**kwargs) + self.type = 'Credential' # type: str + self.username = kwargs.get('username', None) + self.password = kwargs.get('password', None) -class Trial(msrest.serialization.Model): - """Subscription trial availability. +class Quota(msrest.serialization.Model): + """Subscription quotas. Variables are only populated by the server, and will be ignored when sending a request. - :ivar status: Trial status. Possible values include: "TrialAvailable", "TrialUsed", - "TrialDisabled". - :vartype status: str or ~avs_client.models.TrialStatus - :ivar available_hosts: Number of trial hosts available. - :vartype available_hosts: int + :ivar hosts_remaining: Remaining hosts quota by sku type. + :vartype hosts_remaining: dict[str, int] + :ivar quota_enabled: Host quota is active for current subscription. Possible values include: + "Enabled", "Disabled". + :vartype quota_enabled: str or ~avs_client.models.QuotaEnabled """ _validation = { - 'status': {'readonly': True}, - 'available_hosts': {'readonly': True}, + 'hosts_remaining': {'readonly': True}, + 'quota_enabled': {'readonly': True}, } _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'available_hosts': {'key': 'availableHosts', 'type': 'int'}, + 'hosts_remaining': {'key': 'hostsRemaining', 'type': '{int}'}, + 'quota_enabled': {'key': 'quotaEnabled', 'type': 'str'}, } def __init__( self, **kwargs ): - super(Trial, self).__init__(**kwargs) - self.status = None - self.available_hosts = None + super(Quota, self).__init__(**kwargs) + self.hosts_remaining = None + self.quota_enabled = None -class WorkloadNetworkDhcp(Resource): - """NSX DHCP. +class ScriptCmdlet(ProxyResource): + """A cmdlet available for script execution. Variables are only populated by the server, and will be ignored when sending a request. @@ -1785,49 +1946,507 @@ class WorkloadNetworkDhcp(Resource): :vartype name: str :ivar type: Resource type. :vartype type: str - :param dhcp_type: Type of DHCP: SERVER or RELAY.Constant filled by server. Possible values - include: "SERVER, RELAY". - :type dhcp_type: str or ~avs_client.models.DhcpTypeEnum - :param display_name: Display name of the DHCP entity. - :type display_name: str - :ivar segments: NSX Segments consuming DHCP. - :vartype segments: list[str] - :ivar provisioning_state: The provisioning state. Possible values include: "Succeeded", - "Failed", "Building", "Deleting", "Updating". - :vartype provisioning_state: str or ~avs_client.models.WorkloadNetworkDhcpProvisioningState - :param revision: NSX revision number. - :type revision: long + :ivar description: Description of the scripts functionality. + :vartype description: str + :ivar timeout: Recommended time limit for execution. + :vartype timeout: str + :ivar parameters: Parameters the script will accept. + :vartype parameters: list[~avs_client.models.ScriptParameter] """ _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, - 'segments': {'readonly': True}, + 'description': {'readonly': True}, + 'timeout': {'readonly': True}, + 'parameters': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'timeout': {'key': 'properties.timeout', 'type': 'str'}, + 'parameters': {'key': 'properties.parameters', 'type': '[ScriptParameter]'}, + } + + def __init__( + self, + **kwargs + ): + super(ScriptCmdlet, self).__init__(**kwargs) + self.description = None + self.timeout = None + self.parameters = None + + +class ScriptCmdletsList(msrest.serialization.Model): + """Pageable list of scripts/cmdlets. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of scripts. + :vartype value: list[~avs_client.models.ScriptCmdlet] + :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': '[ScriptCmdlet]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ScriptCmdletsList, self).__init__(**kwargs) + self.value = None + self.next_link = None + + +class ScriptExecution(ProxyResource): + """An instance of a script executed by a user - custom or AVS. + + 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 script_cmdlet_id: A reference to the script cmdlet resource if user is running a AVS + script. + :type script_cmdlet_id: str + :param parameters: Parameters the script will accept. + :type parameters: list[~avs_client.models.ScriptExecutionParameter] + :param hidden_parameters: Parameters that will be hidden/not visible to ARM, such as passwords + and credentials. + :type hidden_parameters: list[~avs_client.models.ScriptExecutionParameter] + :param failure_reason: Error message if the script was able to run, but if the script itself + had errors or powershell threw an exception. + :type failure_reason: str + :param timeout: Time limit for execution. + :type timeout: str + :param retention: Time to live for the resource. If not provided, will be available for 60 + days. + :type retention: str + :ivar submitted_at: Time the script execution was submitted. + :vartype submitted_at: ~datetime.datetime + :ivar started_at: Time the script execution was started. + :vartype started_at: ~datetime.datetime + :ivar finished_at: Time the script execution was finished. + :vartype finished_at: ~datetime.datetime + :ivar provisioning_state: The state of the script execution resource. Possible values include: + "Pending", "Running", "Succeeded", "Failed", "Cancelling", "Cancelled", "Deleting". + :vartype provisioning_state: str or ~avs_client.models.ScriptExecutionProvisioningState + :param output: Standard output stream from the powershell execution. + :type output: list[str] + :param named_outputs: User-defined dictionary. + :type named_outputs: dict[str, any] + :ivar information: Standard information out stream from the powershell execution. + :vartype information: list[str] + :ivar warnings: Standard warning out stream from the powershell execution. + :vartype warnings: list[str] + :ivar errors: Standard error output stream from the powershell execution. + :vartype errors: list[str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'submitted_at': {'readonly': True}, + 'started_at': {'readonly': True}, + 'finished_at': {'readonly': True}, 'provisioning_state': {'readonly': True}, + 'information': {'readonly': True}, + 'warnings': {'readonly': True}, + 'errors': {'readonly': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, - 'dhcp_type': {'key': 'properties.dhcpType', 'type': 'str'}, - 'display_name': {'key': 'properties.displayName', 'type': 'str'}, - 'segments': {'key': 'properties.segments', 'type': '[str]'}, + 'script_cmdlet_id': {'key': 'properties.scriptCmdletId', 'type': 'str'}, + 'parameters': {'key': 'properties.parameters', 'type': '[ScriptExecutionParameter]'}, + 'hidden_parameters': {'key': 'properties.hiddenParameters', 'type': '[ScriptExecutionParameter]'}, + 'failure_reason': {'key': 'properties.failureReason', 'type': 'str'}, + 'timeout': {'key': 'properties.timeout', 'type': 'str'}, + 'retention': {'key': 'properties.retention', 'type': 'str'}, + 'submitted_at': {'key': 'properties.submittedAt', 'type': 'iso-8601'}, + 'started_at': {'key': 'properties.startedAt', 'type': 'iso-8601'}, + 'finished_at': {'key': 'properties.finishedAt', 'type': 'iso-8601'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'revision': {'key': 'properties.revision', 'type': 'long'}, + 'output': {'key': 'properties.output', 'type': '[str]'}, + 'named_outputs': {'key': 'properties.namedOutputs', 'type': '{object}'}, + 'information': {'key': 'properties.information', 'type': '[str]'}, + 'warnings': {'key': 'properties.warnings', 'type': '[str]'}, + 'errors': {'key': 'properties.errors', 'type': '[str]'}, } def __init__( self, **kwargs ): - super(WorkloadNetworkDhcp, self).__init__(**kwargs) - self.dhcp_type = None # type: Optional[str] - self.display_name = kwargs.get('display_name', None) - self.segments = None + super(ScriptExecution, self).__init__(**kwargs) + self.script_cmdlet_id = kwargs.get('script_cmdlet_id', None) + self.parameters = kwargs.get('parameters', None) + self.hidden_parameters = kwargs.get('hidden_parameters', None) + self.failure_reason = kwargs.get('failure_reason', None) + self.timeout = kwargs.get('timeout', None) + self.retention = kwargs.get('retention', None) + self.submitted_at = None + self.started_at = None + self.finished_at = None self.provisioning_state = None - self.revision = kwargs.get('revision', None) + self.output = kwargs.get('output', None) + self.named_outputs = kwargs.get('named_outputs', None) + self.information = None + self.warnings = None + self.errors = None + + +class ScriptExecutionsList(msrest.serialization.Model): + """Pageable list of script executions. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of scripts. + :vartype value: list[~avs_client.models.ScriptExecution] + :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': '[ScriptExecution]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ScriptExecutionsList, self).__init__(**kwargs) + self.value = None + self.next_link = None + + +class ScriptPackage(ProxyResource): + """Script Package resources available for execution. + + 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 description: User friendly description of the package. + :vartype description: str + :ivar version: Module version. + :vartype version: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'description': {'readonly': True}, + 'version': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'version': {'key': 'properties.version', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ScriptPackage, self).__init__(**kwargs) + self.description = None + self.version = None + + +class ScriptPackagesList(msrest.serialization.Model): + """A list of the available script packages. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of script package resources. + :vartype value: list[~avs_client.models.ScriptPackage] + :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': '[ScriptPackage]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ScriptPackagesList, self).__init__(**kwargs) + self.value = None + self.next_link = None + + +class ScriptParameter(msrest.serialization.Model): + """An parameter that the script will accept. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar type: The type of parameter the script is expecting. psCredential is a + PSCredentialObject. Possible values include: "String", "SecureString", "Credential", "Int", + "Bool", "Float". + :vartype type: str or ~avs_client.models.ScriptParameterTypes + :param name: The parameter name that the script will expect a parameter value for. + :type name: str + :ivar description: User friendly description of the parameter. + :vartype description: str + :ivar visibility: Should this parameter be visible to arm and passed in the parameters argument + when executing. Possible values include: "Visible", "Hidden". + :vartype visibility: str or ~avs_client.models.VisibilityParameterEnum + :ivar optional: Is this parameter required or optional. Possible values include: "Optional", + "Required". + :vartype optional: str or ~avs_client.models.OptionalParamEnum + """ + + _validation = { + 'type': {'readonly': True}, + 'description': {'readonly': True}, + 'visibility': {'readonly': True}, + 'optional': {'readonly': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'visibility': {'key': 'visibility', 'type': 'str'}, + 'optional': {'key': 'optional', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ScriptParameter, self).__init__(**kwargs) + self.type = None + self.name = kwargs.get('name', None) + self.description = None + self.visibility = None + self.optional = None + + +class ScriptSecureStringExecutionParameter(ScriptExecutionParameter): + """a plain text value execution parameter. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The parameter name. + :type name: str + :param type: Required. The type of execution parameter.Constant filled by server. Possible + values include: "Value", "SecureValue", "Credential". + :type type: str or ~avs_client.models.ScriptExecutionParameterType + :param secure_value: A secure value for the passed parameter, not to be stored in logs. + :type secure_value: str + """ + + _validation = { + 'name': {'required': True}, + 'type': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'secure_value': {'key': 'secureValue', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ScriptSecureStringExecutionParameter, self).__init__(**kwargs) + self.type = 'SecureValue' # type: str + self.secure_value = kwargs.get('secure_value', None) + + +class ScriptStringExecutionParameter(ScriptExecutionParameter): + """a plain text value execution parameter. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The parameter name. + :type name: str + :param type: Required. The type of execution parameter.Constant filled by server. Possible + values include: "Value", "SecureValue", "Credential". + :type type: str or ~avs_client.models.ScriptExecutionParameterType + :param value: The value for the passed parameter. + :type value: str + """ + + _validation = { + 'name': {'required': True}, + 'type': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ScriptStringExecutionParameter, self).__init__(**kwargs) + self.type = 'Value' # type: str + self.value = kwargs.get('value', None) + + +class ServiceSpecification(msrest.serialization.Model): + """Service specification payload. + + :param log_specifications: Specifications of the Log for Azure Monitoring. + :type log_specifications: list[~avs_client.models.LogSpecification] + :param metric_specifications: Specifications of the Metrics for Azure Monitoring. + :type metric_specifications: list[~avs_client.models.MetricSpecification] + """ + + _attribute_map = { + 'log_specifications': {'key': 'logSpecifications', 'type': '[LogSpecification]'}, + 'metric_specifications': {'key': 'metricSpecifications', 'type': '[MetricSpecification]'}, + } + + def __init__( + self, + **kwargs + ): + super(ServiceSpecification, self).__init__(**kwargs) + self.log_specifications = kwargs.get('log_specifications', None) + self.metric_specifications = kwargs.get('metric_specifications', None) + + +class Sku(msrest.serialization.Model): + """The resource model definition representing SKU. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The name of the SKU. + :type name: str + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(Sku, self).__init__(**kwargs) + self.name = kwargs['name'] + + +class Trial(msrest.serialization.Model): + """Subscription trial availability. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar status: Trial status. Possible values include: "TrialAvailable", "TrialUsed", + "TrialDisabled". + :vartype status: str or ~avs_client.models.TrialStatus + :ivar available_hosts: Number of trial hosts available. + :vartype available_hosts: int + """ + + _validation = { + 'status': {'readonly': True}, + 'available_hosts': {'readonly': True}, + } + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'available_hosts': {'key': 'availableHosts', 'type': 'int'}, + } + + def __init__( + self, + **kwargs + ): + super(Trial, self).__init__(**kwargs) + self.status = None + self.available_hosts = None + + +class WorkloadNetworkDhcp(ProxyResource): + """NSX DHCP. + + 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: DHCP properties. + :type properties: ~avs_client.models.WorkloadNetworkDhcpEntity + """ + + _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': 'WorkloadNetworkDhcpEntity'}, + } + + def __init__( + self, + **kwargs + ): + super(WorkloadNetworkDhcp, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) class WorkloadNetworkDhcpEntity(msrest.serialization.Model): @@ -1841,7 +2460,7 @@ class WorkloadNetworkDhcpEntity(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. :param dhcp_type: Required. Type of DHCP: SERVER or RELAY.Constant filled by server. Possible - values include: "SERVER, RELAY". + values include: "SERVER", "RELAY". :type dhcp_type: str or ~avs_client.models.DhcpTypeEnum :param display_name: Display name of the DHCP entity. :type display_name: str @@ -1922,7 +2541,7 @@ class WorkloadNetworkDhcpRelay(WorkloadNetworkDhcpEntity): All required parameters must be populated in order to send to Azure. :param dhcp_type: Required. Type of DHCP: SERVER or RELAY.Constant filled by server. Possible - values include: "SERVER, RELAY". + values include: "SERVER", "RELAY". :type dhcp_type: str or ~avs_client.models.DhcpTypeEnum :param display_name: Display name of the DHCP entity. :type display_name: str @@ -1970,7 +2589,7 @@ class WorkloadNetworkDhcpServer(WorkloadNetworkDhcpEntity): All required parameters must be populated in order to send to Azure. :param dhcp_type: Required. Type of DHCP: SERVER or RELAY.Constant filled by server. Possible - values include: "SERVER, RELAY". + values include: "SERVER", "RELAY". :type dhcp_type: str or ~avs_client.models.DhcpTypeEnum :param display_name: Display name of the DHCP entity. :type display_name: str @@ -2013,7 +2632,7 @@ def __init__( self.lease_time = kwargs.get('lease_time', None) -class WorkloadNetworkDnsService(Resource): +class WorkloadNetworkDnsService(ProxyResource): """NSX DNS Service. Variables are only populated by the server, and will be ignored when sending a request. @@ -2112,7 +2731,7 @@ def __init__( self.next_link = None -class WorkloadNetworkDnsZone(Resource): +class WorkloadNetworkDnsZone(ProxyResource): """NSX DNS Zone. Variables are only populated by the server, and will be ignored when sending a request. @@ -2204,7 +2823,7 @@ def __init__( self.next_link = None -class WorkloadNetworkGateway(Resource): +class WorkloadNetworkGateway(ProxyResource): """NSX Gateway. Variables are only populated by the server, and will be ignored when sending a request. @@ -2275,7 +2894,7 @@ def __init__( self.next_link = None -class WorkloadNetworkPortMirroring(Resource): +class WorkloadNetworkPortMirroring(ProxyResource): """NSX Port Mirroring. Variables are only populated by the server, and will be ignored when sending a request. @@ -2370,7 +2989,88 @@ def __init__( self.next_link = None -class WorkloadNetworkSegment(Resource): +class WorkloadNetworkPublicIP(ProxyResource): + """NSX Public IP Block. + + 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 display_name: Display name of the Public IP Block. + :type display_name: str + :param number_of_public_i_ps: Number of Public IPs requested. + :type number_of_public_i_ps: long + :ivar public_ip_block: CIDR Block of the Public IP Block. + :vartype public_ip_block: str + :ivar provisioning_state: The provisioning state. Possible values include: "Succeeded", + "Failed", "Building", "Deleting", "Updating". + :vartype provisioning_state: str or ~avs_client.models.WorkloadNetworkPublicIPProvisioningState + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'public_ip_block': {'readonly': True}, + 'provisioning_state': {'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'}, + 'number_of_public_i_ps': {'key': 'properties.numberOfPublicIPs', 'type': 'long'}, + 'public_ip_block': {'key': 'properties.publicIPBlock', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(WorkloadNetworkPublicIP, self).__init__(**kwargs) + self.display_name = kwargs.get('display_name', None) + self.number_of_public_i_ps = kwargs.get('number_of_public_i_ps', None) + self.public_ip_block = None + self.provisioning_state = None + + +class WorkloadNetworkPublicIPsList(msrest.serialization.Model): + """A list of NSX Public IP Blocks. + + 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.WorkloadNetworkPublicIP] + :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': '[WorkloadNetworkPublicIP]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(WorkloadNetworkPublicIPsList, self).__init__(**kwargs) + self.value = None + self.next_link = None + + +class WorkloadNetworkSegment(ProxyResource): """NSX Segment. Variables are only populated by the server, and will be ignored when sending a request. @@ -2506,7 +3206,7 @@ def __init__( self.gateway_address = kwargs.get('gateway_address', None) -class WorkloadNetworkVirtualMachine(Resource): +class WorkloadNetworkVirtualMachine(ProxyResource): """NSX Virtual Machine. Variables are only populated by the server, and will be ignored when sending a request. @@ -2577,7 +3277,7 @@ def __init__( self.next_link = None -class WorkloadNetworkVMGroup(Resource): +class WorkloadNetworkVMGroup(ProxyResource): """NSX VM Group. Variables are only populated by the server, and will be ignored when sending a request. 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 84228a7340c..2cd7ab4c787 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 @@ -1,10 +1,12 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Dict, List, Optional, Union +from typing import Any, Dict, List, Optional, Union import msrest.serialization @@ -57,44 +59,114 @@ class Addon(Resource): :vartype name: str :ivar type: Resource type. :vartype type: str - :param license_key: The SRM license. - :type license_key: str - :param addon_type: The type of private cloud addon. Possible values include: "SRM", "VR". - :type addon_type: str or ~avs_client.models.AddonType - :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 properties: The properties of an addon resource. + :type properties: ~avs_client.models.AddonProperties """ _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, - 'provisioning_state': {'readonly': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, - 'license_key': {'key': 'properties.licenseKey', 'type': 'str'}, - 'addon_type': {'key': 'properties.addonType', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'AddonProperties'}, } def __init__( self, *, - license_key: Optional[str] = None, - addon_type: Optional[Union[str, "AddonType"]] = None, + properties: Optional["AddonProperties"] = None, **kwargs ): super(Addon, self).__init__(**kwargs) - self.license_key = license_key - self.addon_type = addon_type + self.properties = properties + + +class AddonProperties(msrest.serialization.Model): + """The properties of an addon. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AddonHcxProperties, AddonSrmProperties, AddonVrProperties. + + 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 addon_type: Required. The type of private cloud addon.Constant filled by server. + Possible values include: "SRM", "VR", "HCX". + :type addon_type: str or ~avs_client.models.AddonType + :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 + """ + + _validation = { + 'addon_type': {'required': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'addon_type': {'key': 'addonType', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + _subtype_map = { + 'addon_type': {'HCX': 'AddonHcxProperties', 'SRM': 'AddonSrmProperties', 'VR': 'AddonVrProperties'} + } + + def __init__( + self, + **kwargs + ): + super(AddonProperties, self).__init__(**kwargs) + self.addon_type = None # type: Optional[str] self.provisioning_state = None +class AddonHcxProperties(AddonProperties): + """The properties of an HCX addon. + + 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 addon_type: Required. The type of private cloud addon.Constant filled by server. + Possible values include: "SRM", "VR", "HCX". + :type addon_type: str or ~avs_client.models.AddonType + :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 offer: Required. The HCX offer, example VMware MaaS Cloud Provider (Enterprise). + :type offer: str + """ + + _validation = { + 'addon_type': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'offer': {'required': True}, + } + + _attribute_map = { + 'addon_type': {'key': 'addonType', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'offer': {'key': 'offer', 'type': 'str'}, + } + + def __init__( + self, + *, + offer: str, + **kwargs + ): + super(AddonHcxProperties, self).__init__(**kwargs) + self.addon_type = 'HCX' # type: str + self.offer = offer + + class AddonList(msrest.serialization.Model): """A paged list of addons. @@ -125,98 +197,84 @@ def __init__( self.next_link = None -class AddonSrmProperties(msrest.serialization.Model): - """The properties of an SRM addon that may be updated. - - :param license_key: The SRM license. - :type license_key: str - """ - - _attribute_map = { - 'license_key': {'key': 'licenseKey', 'type': 'str'}, - } - - def __init__( - self, - *, - license_key: Optional[str] = None, - **kwargs - ): - super(AddonSrmProperties, self).__init__(**kwargs) - self.license_key = license_key - - -class AddonProperties(AddonSrmProperties): - """The properties of an addon that may be updated. +class AddonSrmProperties(AddonProperties): + """The properties of a Site Recovery Manager (SRM) addon. Variables are only populated by the server, and will be ignored when sending a request. - :param license_key: The SRM license. - :type license_key: str - :param addon_type: The type of private cloud addon. Possible values include: "SRM", "VR". + All required parameters must be populated in order to send to Azure. + + :param addon_type: Required. The type of private cloud addon.Constant filled by server. + Possible values include: "SRM", "VR", "HCX". :type addon_type: str or ~avs_client.models.AddonType :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. + :type license_key: str """ _validation = { + 'addon_type': {'required': True}, 'provisioning_state': {'readonly': True}, + 'license_key': {'required': True}, } _attribute_map = { - 'license_key': {'key': 'licenseKey', 'type': 'str'}, 'addon_type': {'key': 'addonType', 'type': 'str'}, 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'license_key': {'key': 'licenseKey', 'type': 'str'}, } def __init__( self, *, - license_key: Optional[str] = None, - addon_type: Optional[Union[str, "AddonType"]] = None, + license_key: str, **kwargs ): - super(AddonProperties, self).__init__(license_key=license_key, **kwargs) - self.addon_type = addon_type - self.provisioning_state = None + super(AddonSrmProperties, self).__init__(**kwargs) + self.addon_type = 'SRM' # type: str + self.license_key = license_key -class AddonUpdate(msrest.serialization.Model): - """An update of an addon resource. +class AddonVrProperties(AddonProperties): + """The properties of a vSphere Replication (VR) addon. Variables are only populated by the server, and will be ignored when sending a request. - :param license_key: The SRM license. - :type license_key: str - :param addon_type: The type of private cloud addon. Possible values include: "SRM", "VR". + All required parameters must be populated in order to send to Azure. + + :param addon_type: Required. The type of private cloud addon.Constant filled by server. + Possible values include: "SRM", "VR", "HCX". :type addon_type: str or ~avs_client.models.AddonType :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 vrs_count: Required. The vSphere Replication Server (VRS) count. + :type vrs_count: int """ _validation = { + 'addon_type': {'required': True}, 'provisioning_state': {'readonly': True}, + 'vrs_count': {'required': True}, } _attribute_map = { - 'license_key': {'key': 'properties.properties.licenseKey', 'type': 'str'}, - 'addon_type': {'key': 'properties.properties.addonType', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.properties.provisioningState', 'type': 'str'}, + 'addon_type': {'key': 'addonType', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'vrs_count': {'key': 'vrsCount', 'type': 'int'}, } def __init__( self, *, - license_key: Optional[str] = None, - addon_type: Optional[Union[str, "AddonType"]] = None, + vrs_count: int, **kwargs ): - super(AddonUpdate, self).__init__(**kwargs) - self.license_key = license_key - self.addon_type = addon_type - self.provisioning_state = None + super(AddonVrProperties, self).__init__(**kwargs) + self.addon_type = 'VR' # type: str + self.vrs_count = vrs_count class AdminCredentials(msrest.serialization.Model): @@ -299,6 +357,80 @@ def __init__( self.express_route_private_peering_id = None +class CloudLink(Resource): + """A cloud link resource. + + 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 status: The state of the cloud link. Possible values include: "Active", "Building", + "Deleting", "Failed", "Disconnected". + :vartype status: str or ~avs_client.models.CloudLinkStatus + :param linked_cloud: Identifier of the other private cloud participating in the link. + :type linked_cloud: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'status': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'status': {'key': 'properties.status', 'type': 'str'}, + 'linked_cloud': {'key': 'properties.linkedCloud', 'type': 'str'}, + } + + def __init__( + self, + *, + linked_cloud: Optional[str] = None, + **kwargs + ): + super(CloudLink, self).__init__(**kwargs) + self.status = None + self.linked_cloud = linked_cloud + + +class CloudLinkList(msrest.serialization.Model): + """A paged list of cloud links. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: The items on a page. + :vartype value: list[~avs_client.models.CloudLink] + :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': '[CloudLink]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(CloudLinkList, self).__init__(**kwargs) + self.value = None + self.next_link = None + + class Cluster(Resource): """A cluster resource. @@ -504,7 +636,7 @@ class Datastore(Resource): :ivar type: Resource type. :vartype type: str :ivar provisioning_state: The state of the datastore provisioning. Possible values include: - "Succeeded", "Failed", "Cancelled", "Deleting", "Updating". + "Succeeded", "Failed", "Cancelled", "Pending", "Creating", "Updating", "Deleting". :vartype provisioning_state: str or ~avs_client.models.DatastoreProvisioningState :param net_app_volume: An Azure NetApp Files volume. :type net_app_volume: ~avs_client.models.NetAppVolume @@ -574,27 +706,47 @@ def __init__( class DiskPoolVolume(msrest.serialization.Model): """An iSCSI volume from Microsoft.StoragePool provider. - :param endpoints: iSCSI provider target IP address list. - :type endpoints: list[str] - :param lun_name: Name of the LUN to be used. + 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 target_id: Required. Azure resource ID of the iSCSI target. + :type target_id: str + :param lun_name: Required. Name of the LUN to be used for datastore. :type lun_name: str + :param mount_option: Mode that describes whether the LUN has to be mounted as a datastore or + attached as a LUN. Possible values include: "MOUNT", "ATTACH". Default value: "MOUNT". + :type mount_option: str or ~avs_client.models.MountOptionEnum + :ivar path: Device path. + :vartype path: str """ + _validation = { + 'target_id': {'required': True}, + 'lun_name': {'required': True}, + 'path': {'readonly': True}, + } + _attribute_map = { - 'endpoints': {'key': 'endpoints', 'type': '[str]'}, + 'target_id': {'key': 'targetId', 'type': 'str'}, 'lun_name': {'key': 'lunName', 'type': 'str'}, + 'mount_option': {'key': 'mountOption', 'type': 'str'}, + 'path': {'key': 'path', 'type': 'str'}, } def __init__( self, *, - endpoints: Optional[List[str]] = None, - lun_name: Optional[str] = None, + target_id: str, + lun_name: str, + mount_option: Optional[Union[str, "MountOptionEnum"]] = "MOUNT", **kwargs ): super(DiskPoolVolume, self).__init__(**kwargs) - self.endpoints = endpoints + self.target_id = target_id self.lun_name = lun_name + self.mount_option = mount_option + self.path = None class Endpoints(msrest.serialization.Model): @@ -640,7 +792,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: object + :vartype info: any """ _validation = { @@ -1214,27 +1366,28 @@ def __init__( class NetAppVolume(msrest.serialization.Model): """An Azure NetApp Files volume from Microsoft.NetApp provider. - :param nfs_provider_ip: IP address of the NFS provider. - :type nfs_provider_ip: str - :param nfs_file_path: File path through which the NFS volume is exposed by the provider. - :type nfs_file_path: str + All required parameters must be populated in order to send to Azure. + + :param id: Required. Azure resource ID of the NetApp volume. + :type id: str """ + _validation = { + 'id': {'required': True}, + } + _attribute_map = { - 'nfs_provider_ip': {'key': 'nfsProviderIp', 'type': 'str'}, - 'nfs_file_path': {'key': 'nfsFilePath', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, } def __init__( self, *, - nfs_provider_ip: Optional[str] = None, - nfs_file_path: Optional[str] = None, + id: str, **kwargs ): super(NetAppVolume, self).__init__(**kwargs) - self.nfs_provider_ip = nfs_provider_ip - self.nfs_file_path = nfs_file_path + self.id = id class Operation(msrest.serialization.Model): @@ -1438,7 +1591,7 @@ class PrivateCloud(TrackedResource): :param sku: Required. The private cloud SKU. :type sku: ~avs_client.models.Sku :param management_cluster: The default cluster used for management. - :type management_cluster: ~avs_client.models.CommonClusterProperties + :type management_cluster: ~avs_client.models.ManagementCluster :param internet: Connectivity to internet is enabled or disabled. Possible values include: "Enabled", "Disabled". Default value: "Disabled". :type internet: str or ~avs_client.models.InternetEnum @@ -1455,6 +1608,8 @@ 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 @@ -1481,6 +1636,7 @@ 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}, @@ -1495,13 +1651,14 @@ class PrivateCloud(TrackedResource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'sku': {'key': 'sku', 'type': 'Sku'}, - 'management_cluster': {'key': 'properties.managementCluster', 'type': 'CommonClusterProperties'}, + 'management_cluster': {'key': 'properties.managementCluster', 'type': 'ManagementCluster'}, 'internet': {'key': 'properties.internet', 'type': 'str'}, 'identity_sources': {'key': 'properties.identitySources', 'type': '[IdentitySource]'}, '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'}, @@ -1517,7 +1674,7 @@ def __init__( sku: "Sku", location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, - management_cluster: Optional["CommonClusterProperties"] = None, + management_cluster: Optional["ManagementCluster"] = None, internet: Optional[Union[str, "InternetEnum"]] = "Disabled", identity_sources: Optional[List["IdentitySource"]] = None, circuit: Optional["Circuit"] = None, @@ -1535,6 +1692,7 @@ def __init__( 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 @@ -1578,7 +1736,7 @@ class PrivateCloudUpdateProperties(msrest.serialization.Model): """The properties of a private cloud resource that may be updated. :param management_cluster: The default cluster used for management. - :type management_cluster: ~avs_client.models.CommonClusterProperties + :type management_cluster: ~avs_client.models.ManagementCluster :param internet: Connectivity to internet is enabled or disabled. Possible values include: "Enabled", "Disabled". Default value: "Disabled". :type internet: str or ~avs_client.models.InternetEnum @@ -1587,7 +1745,7 @@ class PrivateCloudUpdateProperties(msrest.serialization.Model): """ _attribute_map = { - 'management_cluster': {'key': 'managementCluster', 'type': 'CommonClusterProperties'}, + 'management_cluster': {'key': 'managementCluster', 'type': 'ManagementCluster'}, 'internet': {'key': 'internet', 'type': 'str'}, 'identity_sources': {'key': 'identitySources', 'type': '[IdentitySource]'}, } @@ -1595,7 +1753,7 @@ class PrivateCloudUpdateProperties(msrest.serialization.Model): def __init__( self, *, - management_cluster: Optional["CommonClusterProperties"] = None, + management_cluster: Optional["ManagementCluster"] = None, internet: Optional[Union[str, "InternetEnum"]] = "Disabled", identity_sources: Optional[List["IdentitySource"]] = None, **kwargs @@ -1614,7 +1772,7 @@ class PrivateCloudProperties(PrivateCloudUpdateProperties): All required parameters must be populated in order to send to Azure. :param management_cluster: The default cluster used for management. - :type management_cluster: ~avs_client.models.CommonClusterProperties + :type management_cluster: ~avs_client.models.ManagementCluster :param internet: Connectivity to internet is enabled or disabled. Possible values include: "Enabled", "Disabled". Default value: "Disabled". :type internet: str or ~avs_client.models.InternetEnum @@ -1631,6 +1789,8 @@ 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 @@ -1654,6 +1814,7 @@ class PrivateCloudProperties(PrivateCloudUpdateProperties): '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}, @@ -1662,13 +1823,14 @@ class PrivateCloudProperties(PrivateCloudUpdateProperties): } _attribute_map = { - 'management_cluster': {'key': 'managementCluster', 'type': 'CommonClusterProperties'}, + 'management_cluster': {'key': 'managementCluster', 'type': 'ManagementCluster'}, 'internet': {'key': 'internet', 'type': 'str'}, 'identity_sources': {'key': 'identitySources', 'type': '[IdentitySource]'}, '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'}, @@ -1682,7 +1844,7 @@ def __init__( self, *, network_block: str, - management_cluster: Optional["CommonClusterProperties"] = None, + management_cluster: Optional["ManagementCluster"] = None, internet: Optional[Union[str, "InternetEnum"]] = "Disabled", identity_sources: Optional[List["IdentitySource"]] = None, circuit: Optional["Circuit"] = None, @@ -1695,6 +1857,7 @@ def __init__( 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 @@ -1710,7 +1873,7 @@ class PrivateCloudUpdate(msrest.serialization.Model): :param tags: A set of tags. Resource tags. :type tags: dict[str, str] :param management_cluster: The default cluster used for management. - :type management_cluster: ~avs_client.models.CommonClusterProperties + :type management_cluster: ~avs_client.models.ManagementCluster :param internet: Connectivity to internet is enabled or disabled. Possible values include: "Enabled", "Disabled". Default value: "Disabled". :type internet: str or ~avs_client.models.InternetEnum @@ -1720,7 +1883,7 @@ class PrivateCloudUpdate(msrest.serialization.Model): _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, - 'management_cluster': {'key': 'properties.managementCluster', 'type': 'CommonClusterProperties'}, + 'management_cluster': {'key': 'properties.managementCluster', 'type': 'ManagementCluster'}, 'internet': {'key': 'properties.internet', 'type': 'str'}, 'identity_sources': {'key': 'properties.identitySources', 'type': '[IdentitySource]'}, } @@ -1729,7 +1892,7 @@ def __init__( self, *, tags: Optional[Dict[str, str]] = None, - management_cluster: Optional["CommonClusterProperties"] = None, + management_cluster: Optional["ManagementCluster"] = None, internet: Optional[Union[str, "InternetEnum"]] = "Disabled", identity_sources: Optional[List["IdentitySource"]] = None, **kwargs @@ -1773,109 +1936,607 @@ def __init__( super(ProxyResource, self).__init__(**kwargs) -class Quota(msrest.serialization.Model): - """Subscription quotas. +class ScriptExecutionParameter(msrest.serialization.Model): + """The arguments passed in to the execution. - Variables are only populated by the server, and will be ignored when sending a request. + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: PSCredentialExecutionParameter, ScriptSecureStringExecutionParameter, ScriptStringExecutionParameter. - :ivar hosts_remaining: Remaining hosts quota by sku type. - :vartype hosts_remaining: dict[str, int] - :ivar quota_enabled: Host quota is active for current subscription. Possible values include: - "Enabled", "Disabled". - :vartype quota_enabled: str or ~avs_client.models.QuotaEnabled + All required parameters must be populated in order to send to Azure. + + :param name: Required. The parameter name. + :type name: str + :param type: Required. The type of execution parameter.Constant filled by server. Possible + values include: "Value", "SecureValue", "Credential". + :type type: str or ~avs_client.models.ScriptExecutionParameterType """ _validation = { - 'hosts_remaining': {'readonly': True}, - 'quota_enabled': {'readonly': True}, + 'name': {'required': True}, + 'type': {'required': True}, } _attribute_map = { - 'hosts_remaining': {'key': 'hostsRemaining', 'type': '{int}'}, - 'quota_enabled': {'key': 'quotaEnabled', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, } - def __init__( - self, - **kwargs - ): - super(Quota, self).__init__(**kwargs) - self.hosts_remaining = None - self.quota_enabled = None - - -class ServiceSpecification(msrest.serialization.Model): - """Service specification payload. - - :param log_specifications: Specifications of the Log for Azure Monitoring. - :type log_specifications: list[~avs_client.models.LogSpecification] - :param metric_specifications: Specifications of the Metrics for Azure Monitoring. - :type metric_specifications: list[~avs_client.models.MetricSpecification] - """ - - _attribute_map = { - 'log_specifications': {'key': 'logSpecifications', 'type': '[LogSpecification]'}, - 'metric_specifications': {'key': 'metricSpecifications', 'type': '[MetricSpecification]'}, + _subtype_map = { + 'type': {'Credential': 'PSCredentialExecutionParameter', 'SecureValue': 'ScriptSecureStringExecutionParameter', 'Value': 'ScriptStringExecutionParameter'} } def __init__( self, *, - log_specifications: Optional[List["LogSpecification"]] = None, - metric_specifications: Optional[List["MetricSpecification"]] = None, + name: str, **kwargs ): - super(ServiceSpecification, self).__init__(**kwargs) - self.log_specifications = log_specifications - self.metric_specifications = metric_specifications + super(ScriptExecutionParameter, self).__init__(**kwargs) + self.name = name + self.type = None # type: Optional[str] -class Sku(msrest.serialization.Model): - """The resource model definition representing SKU. +class PSCredentialExecutionParameter(ScriptExecutionParameter): + """a powershell credential object. All required parameters must be populated in order to send to Azure. - :param name: Required. The name of the SKU. + :param name: Required. The parameter name. :type name: str + :param type: Required. The type of execution parameter.Constant filled by server. Possible + values include: "Value", "SecureValue", "Credential". + :type type: str or ~avs_client.models.ScriptExecutionParameterType + :param username: username for login. + :type username: str + :param password: password for login. + :type password: str """ _validation = { 'name': {'required': True}, + 'type': {'required': True}, } _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'username': {'key': 'username', 'type': 'str'}, + 'password': {'key': 'password', 'type': 'str'}, } def __init__( self, *, name: str, + username: Optional[str] = None, + password: Optional[str] = None, **kwargs ): - super(Sku, self).__init__(**kwargs) - self.name = name + super(PSCredentialExecutionParameter, self).__init__(name=name, **kwargs) + self.type = 'Credential' # type: str + self.username = username + self.password = password -class Trial(msrest.serialization.Model): - """Subscription trial availability. +class Quota(msrest.serialization.Model): + """Subscription quotas. Variables are only populated by the server, and will be ignored when sending a request. - :ivar status: Trial status. Possible values include: "TrialAvailable", "TrialUsed", - "TrialDisabled". - :vartype status: str or ~avs_client.models.TrialStatus - :ivar available_hosts: Number of trial hosts available. - :vartype available_hosts: int + :ivar hosts_remaining: Remaining hosts quota by sku type. + :vartype hosts_remaining: dict[str, int] + :ivar quota_enabled: Host quota is active for current subscription. Possible values include: + "Enabled", "Disabled". + :vartype quota_enabled: str or ~avs_client.models.QuotaEnabled """ _validation = { - 'status': {'readonly': True}, - 'available_hosts': {'readonly': True}, + 'hosts_remaining': {'readonly': True}, + 'quota_enabled': {'readonly': True}, } _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, + 'hosts_remaining': {'key': 'hostsRemaining', 'type': '{int}'}, + 'quota_enabled': {'key': 'quotaEnabled', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(Quota, self).__init__(**kwargs) + self.hosts_remaining = None + self.quota_enabled = None + + +class ScriptCmdlet(ProxyResource): + """A cmdlet available for script execution. + + 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 description: Description of the scripts functionality. + :vartype description: str + :ivar timeout: Recommended time limit for execution. + :vartype timeout: str + :ivar parameters: Parameters the script will accept. + :vartype parameters: list[~avs_client.models.ScriptParameter] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'description': {'readonly': True}, + 'timeout': {'readonly': True}, + 'parameters': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'timeout': {'key': 'properties.timeout', 'type': 'str'}, + 'parameters': {'key': 'properties.parameters', 'type': '[ScriptParameter]'}, + } + + def __init__( + self, + **kwargs + ): + super(ScriptCmdlet, self).__init__(**kwargs) + self.description = None + self.timeout = None + self.parameters = None + + +class ScriptCmdletsList(msrest.serialization.Model): + """Pageable list of scripts/cmdlets. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of scripts. + :vartype value: list[~avs_client.models.ScriptCmdlet] + :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': '[ScriptCmdlet]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ScriptCmdletsList, self).__init__(**kwargs) + self.value = None + self.next_link = None + + +class ScriptExecution(ProxyResource): + """An instance of a script executed by a user - custom or AVS. + + 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 script_cmdlet_id: A reference to the script cmdlet resource if user is running a AVS + script. + :type script_cmdlet_id: str + :param parameters: Parameters the script will accept. + :type parameters: list[~avs_client.models.ScriptExecutionParameter] + :param hidden_parameters: Parameters that will be hidden/not visible to ARM, such as passwords + and credentials. + :type hidden_parameters: list[~avs_client.models.ScriptExecutionParameter] + :param failure_reason: Error message if the script was able to run, but if the script itself + had errors or powershell threw an exception. + :type failure_reason: str + :param timeout: Time limit for execution. + :type timeout: str + :param retention: Time to live for the resource. If not provided, will be available for 60 + days. + :type retention: str + :ivar submitted_at: Time the script execution was submitted. + :vartype submitted_at: ~datetime.datetime + :ivar started_at: Time the script execution was started. + :vartype started_at: ~datetime.datetime + :ivar finished_at: Time the script execution was finished. + :vartype finished_at: ~datetime.datetime + :ivar provisioning_state: The state of the script execution resource. Possible values include: + "Pending", "Running", "Succeeded", "Failed", "Cancelling", "Cancelled", "Deleting". + :vartype provisioning_state: str or ~avs_client.models.ScriptExecutionProvisioningState + :param output: Standard output stream from the powershell execution. + :type output: list[str] + :param named_outputs: User-defined dictionary. + :type named_outputs: dict[str, any] + :ivar information: Standard information out stream from the powershell execution. + :vartype information: list[str] + :ivar warnings: Standard warning out stream from the powershell execution. + :vartype warnings: list[str] + :ivar errors: Standard error output stream from the powershell execution. + :vartype errors: list[str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'submitted_at': {'readonly': True}, + 'started_at': {'readonly': True}, + 'finished_at': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'information': {'readonly': True}, + 'warnings': {'readonly': True}, + 'errors': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'script_cmdlet_id': {'key': 'properties.scriptCmdletId', 'type': 'str'}, + 'parameters': {'key': 'properties.parameters', 'type': '[ScriptExecutionParameter]'}, + 'hidden_parameters': {'key': 'properties.hiddenParameters', 'type': '[ScriptExecutionParameter]'}, + 'failure_reason': {'key': 'properties.failureReason', 'type': 'str'}, + 'timeout': {'key': 'properties.timeout', 'type': 'str'}, + 'retention': {'key': 'properties.retention', 'type': 'str'}, + 'submitted_at': {'key': 'properties.submittedAt', 'type': 'iso-8601'}, + 'started_at': {'key': 'properties.startedAt', 'type': 'iso-8601'}, + 'finished_at': {'key': 'properties.finishedAt', 'type': 'iso-8601'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'output': {'key': 'properties.output', 'type': '[str]'}, + 'named_outputs': {'key': 'properties.namedOutputs', 'type': '{object}'}, + 'information': {'key': 'properties.information', 'type': '[str]'}, + 'warnings': {'key': 'properties.warnings', 'type': '[str]'}, + 'errors': {'key': 'properties.errors', 'type': '[str]'}, + } + + def __init__( + self, + *, + script_cmdlet_id: Optional[str] = None, + parameters: Optional[List["ScriptExecutionParameter"]] = None, + hidden_parameters: Optional[List["ScriptExecutionParameter"]] = None, + failure_reason: Optional[str] = None, + timeout: Optional[str] = None, + retention: Optional[str] = None, + output: Optional[List[str]] = None, + named_outputs: Optional[Dict[str, Any]] = None, + **kwargs + ): + super(ScriptExecution, self).__init__(**kwargs) + self.script_cmdlet_id = script_cmdlet_id + self.parameters = parameters + self.hidden_parameters = hidden_parameters + self.failure_reason = failure_reason + self.timeout = timeout + self.retention = retention + self.submitted_at = None + self.started_at = None + self.finished_at = None + self.provisioning_state = None + self.output = output + self.named_outputs = named_outputs + self.information = None + self.warnings = None + self.errors = None + + +class ScriptExecutionsList(msrest.serialization.Model): + """Pageable list of script executions. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of scripts. + :vartype value: list[~avs_client.models.ScriptExecution] + :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': '[ScriptExecution]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ScriptExecutionsList, self).__init__(**kwargs) + self.value = None + self.next_link = None + + +class ScriptPackage(ProxyResource): + """Script Package resources available for execution. + + 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 description: User friendly description of the package. + :vartype description: str + :ivar version: Module version. + :vartype version: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'description': {'readonly': True}, + 'version': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'version': {'key': 'properties.version', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ScriptPackage, self).__init__(**kwargs) + self.description = None + self.version = None + + +class ScriptPackagesList(msrest.serialization.Model): + """A list of the available script packages. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of script package resources. + :vartype value: list[~avs_client.models.ScriptPackage] + :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': '[ScriptPackage]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ScriptPackagesList, self).__init__(**kwargs) + self.value = None + self.next_link = None + + +class ScriptParameter(msrest.serialization.Model): + """An parameter that the script will accept. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar type: The type of parameter the script is expecting. psCredential is a + PSCredentialObject. Possible values include: "String", "SecureString", "Credential", "Int", + "Bool", "Float". + :vartype type: str or ~avs_client.models.ScriptParameterTypes + :param name: The parameter name that the script will expect a parameter value for. + :type name: str + :ivar description: User friendly description of the parameter. + :vartype description: str + :ivar visibility: Should this parameter be visible to arm and passed in the parameters argument + when executing. Possible values include: "Visible", "Hidden". + :vartype visibility: str or ~avs_client.models.VisibilityParameterEnum + :ivar optional: Is this parameter required or optional. Possible values include: "Optional", + "Required". + :vartype optional: str or ~avs_client.models.OptionalParamEnum + """ + + _validation = { + 'type': {'readonly': True}, + 'description': {'readonly': True}, + 'visibility': {'readonly': True}, + 'optional': {'readonly': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'visibility': {'key': 'visibility', 'type': 'str'}, + 'optional': {'key': 'optional', 'type': 'str'}, + } + + def __init__( + self, + *, + name: Optional[str] = None, + **kwargs + ): + super(ScriptParameter, self).__init__(**kwargs) + self.type = None + self.name = name + self.description = None + self.visibility = None + self.optional = None + + +class ScriptSecureStringExecutionParameter(ScriptExecutionParameter): + """a plain text value execution parameter. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The parameter name. + :type name: str + :param type: Required. The type of execution parameter.Constant filled by server. Possible + values include: "Value", "SecureValue", "Credential". + :type type: str or ~avs_client.models.ScriptExecutionParameterType + :param secure_value: A secure value for the passed parameter, not to be stored in logs. + :type secure_value: str + """ + + _validation = { + 'name': {'required': True}, + 'type': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'secure_value': {'key': 'secureValue', 'type': 'str'}, + } + + def __init__( + self, + *, + name: str, + secure_value: Optional[str] = None, + **kwargs + ): + super(ScriptSecureStringExecutionParameter, self).__init__(name=name, **kwargs) + self.type = 'SecureValue' # type: str + self.secure_value = secure_value + + +class ScriptStringExecutionParameter(ScriptExecutionParameter): + """a plain text value execution parameter. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The parameter name. + :type name: str + :param type: Required. The type of execution parameter.Constant filled by server. Possible + values include: "Value", "SecureValue", "Credential". + :type type: str or ~avs_client.models.ScriptExecutionParameterType + :param value: The value for the passed parameter. + :type value: str + """ + + _validation = { + 'name': {'required': True}, + 'type': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__( + self, + *, + name: str, + value: Optional[str] = None, + **kwargs + ): + super(ScriptStringExecutionParameter, self).__init__(name=name, **kwargs) + self.type = 'Value' # type: str + self.value = value + + +class ServiceSpecification(msrest.serialization.Model): + """Service specification payload. + + :param log_specifications: Specifications of the Log for Azure Monitoring. + :type log_specifications: list[~avs_client.models.LogSpecification] + :param metric_specifications: Specifications of the Metrics for Azure Monitoring. + :type metric_specifications: list[~avs_client.models.MetricSpecification] + """ + + _attribute_map = { + 'log_specifications': {'key': 'logSpecifications', 'type': '[LogSpecification]'}, + 'metric_specifications': {'key': 'metricSpecifications', 'type': '[MetricSpecification]'}, + } + + def __init__( + self, + *, + log_specifications: Optional[List["LogSpecification"]] = None, + metric_specifications: Optional[List["MetricSpecification"]] = None, + **kwargs + ): + super(ServiceSpecification, self).__init__(**kwargs) + self.log_specifications = log_specifications + self.metric_specifications = metric_specifications + + +class Sku(msrest.serialization.Model): + """The resource model definition representing SKU. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The name of the SKU. + :type name: str + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__( + self, + *, + name: str, + **kwargs + ): + super(Sku, self).__init__(**kwargs) + self.name = name + + +class Trial(msrest.serialization.Model): + """Subscription trial availability. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar status: Trial status. Possible values include: "TrialAvailable", "TrialUsed", + "TrialDisabled". + :vartype status: str or ~avs_client.models.TrialStatus + :ivar available_hosts: Number of trial hosts available. + :vartype available_hosts: int + """ + + _validation = { + 'status': {'readonly': True}, + 'available_hosts': {'readonly': True}, + } + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, 'available_hosts': {'key': 'availableHosts', 'type': 'int'}, } @@ -1888,7 +2549,7 @@ def __init__( self.available_hosts = None -class WorkloadNetworkDhcp(Resource): +class WorkloadNetworkDhcp(ProxyResource): """NSX DHCP. Variables are only populated by the server, and will be ignored when sending a request. @@ -1899,52 +2560,31 @@ class WorkloadNetworkDhcp(Resource): :vartype name: str :ivar type: Resource type. :vartype type: str - :param dhcp_type: Type of DHCP: SERVER or RELAY.Constant filled by server. Possible values - include: "SERVER, RELAY". - :type dhcp_type: str or ~avs_client.models.DhcpTypeEnum - :param display_name: Display name of the DHCP entity. - :type display_name: str - :ivar segments: NSX Segments consuming DHCP. - :vartype segments: list[str] - :ivar provisioning_state: The provisioning state. Possible values include: "Succeeded", - "Failed", "Building", "Deleting", "Updating". - :vartype provisioning_state: str or ~avs_client.models.WorkloadNetworkDhcpProvisioningState - :param revision: NSX revision number. - :type revision: long + :param properties: DHCP properties. + :type properties: ~avs_client.models.WorkloadNetworkDhcpEntity """ _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, - 'segments': {'readonly': True}, - 'provisioning_state': {'readonly': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, - 'dhcp_type': {'key': 'properties.dhcpType', 'type': 'str'}, - 'display_name': {'key': 'properties.displayName', 'type': 'str'}, - 'segments': {'key': 'properties.segments', 'type': '[str]'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'revision': {'key': 'properties.revision', 'type': 'long'}, + 'properties': {'key': 'properties', 'type': 'WorkloadNetworkDhcpEntity'}, } def __init__( self, *, - display_name: Optional[str] = None, - revision: Optional[int] = None, + properties: Optional["WorkloadNetworkDhcpEntity"] = None, **kwargs ): super(WorkloadNetworkDhcp, self).__init__(**kwargs) - self.dhcp_type = None # type: Optional[str] - self.display_name = display_name - self.segments = None - self.provisioning_state = None - self.revision = revision + self.properties = properties class WorkloadNetworkDhcpEntity(msrest.serialization.Model): @@ -1958,7 +2598,7 @@ class WorkloadNetworkDhcpEntity(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. :param dhcp_type: Required. Type of DHCP: SERVER or RELAY.Constant filled by server. Possible - values include: "SERVER, RELAY". + values include: "SERVER", "RELAY". :type dhcp_type: str or ~avs_client.models.DhcpTypeEnum :param display_name: Display name of the DHCP entity. :type display_name: str @@ -2042,7 +2682,7 @@ class WorkloadNetworkDhcpRelay(WorkloadNetworkDhcpEntity): All required parameters must be populated in order to send to Azure. :param dhcp_type: Required. Type of DHCP: SERVER or RELAY.Constant filled by server. Possible - values include: "SERVER, RELAY". + values include: "SERVER", "RELAY". :type dhcp_type: str or ~avs_client.models.DhcpTypeEnum :param display_name: Display name of the DHCP entity. :type display_name: str @@ -2094,7 +2734,7 @@ class WorkloadNetworkDhcpServer(WorkloadNetworkDhcpEntity): All required parameters must be populated in order to send to Azure. :param dhcp_type: Required. Type of DHCP: SERVER or RELAY.Constant filled by server. Possible - values include: "SERVER, RELAY". + values include: "SERVER", "RELAY". :type dhcp_type: str or ~avs_client.models.DhcpTypeEnum :param display_name: Display name of the DHCP entity. :type display_name: str @@ -2142,7 +2782,7 @@ def __init__( self.lease_time = lease_time -class WorkloadNetworkDnsService(Resource): +class WorkloadNetworkDnsService(ProxyResource): """NSX DNS Service. Variables are only populated by the server, and will be ignored when sending a request. @@ -2248,7 +2888,7 @@ def __init__( self.next_link = None -class WorkloadNetworkDnsZone(Resource): +class WorkloadNetworkDnsZone(ProxyResource): """NSX DNS Zone. Variables are only populated by the server, and will be ignored when sending a request. @@ -2347,7 +2987,7 @@ def __init__( self.next_link = None -class WorkloadNetworkGateway(Resource): +class WorkloadNetworkGateway(ProxyResource): """NSX Gateway. Variables are only populated by the server, and will be ignored when sending a request. @@ -2420,7 +3060,7 @@ def __init__( self.next_link = None -class WorkloadNetworkPortMirroring(Resource): +class WorkloadNetworkPortMirroring(ProxyResource): """NSX Port Mirroring. Variables are only populated by the server, and will be ignored when sending a request. @@ -2521,7 +3161,91 @@ def __init__( self.next_link = None -class WorkloadNetworkSegment(Resource): +class WorkloadNetworkPublicIP(ProxyResource): + """NSX Public IP Block. + + 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 display_name: Display name of the Public IP Block. + :type display_name: str + :param number_of_public_i_ps: Number of Public IPs requested. + :type number_of_public_i_ps: long + :ivar public_ip_block: CIDR Block of the Public IP Block. + :vartype public_ip_block: str + :ivar provisioning_state: The provisioning state. Possible values include: "Succeeded", + "Failed", "Building", "Deleting", "Updating". + :vartype provisioning_state: str or ~avs_client.models.WorkloadNetworkPublicIPProvisioningState + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'public_ip_block': {'readonly': True}, + 'provisioning_state': {'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'}, + 'number_of_public_i_ps': {'key': 'properties.numberOfPublicIPs', 'type': 'long'}, + 'public_ip_block': {'key': 'properties.publicIPBlock', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__( + self, + *, + display_name: Optional[str] = None, + number_of_public_i_ps: Optional[int] = None, + **kwargs + ): + super(WorkloadNetworkPublicIP, self).__init__(**kwargs) + self.display_name = display_name + self.number_of_public_i_ps = number_of_public_i_ps + self.public_ip_block = None + self.provisioning_state = None + + +class WorkloadNetworkPublicIPsList(msrest.serialization.Model): + """A list of NSX Public IP Blocks. + + 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.WorkloadNetworkPublicIP] + :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': '[WorkloadNetworkPublicIP]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(WorkloadNetworkPublicIPsList, self).__init__(**kwargs) + self.value = None + self.next_link = None + + +class WorkloadNetworkSegment(ProxyResource): """NSX Segment. Variables are only populated by the server, and will be ignored when sending a request. @@ -2667,7 +3391,7 @@ def __init__( self.gateway_address = gateway_address -class WorkloadNetworkVirtualMachine(Resource): +class WorkloadNetworkVirtualMachine(ProxyResource): """NSX Virtual Machine. Variables are only populated by the server, and will be ignored when sending a request. @@ -2740,7 +3464,7 @@ def __init__( self.next_link = None -class WorkloadNetworkVMGroup(Resource): +class WorkloadNetworkVMGroup(ProxyResource): """NSX VM Group. Variables are only populated by the server, and will be ignored when sending a request. 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 15958be9f5c..1e3c208eb0f 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 @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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. # -------------------------------------------------------------------------- @@ -13,7 +15,11 @@ from ._authorizations_operations import AuthorizationsOperations from ._global_reach_connections_operations import GlobalReachConnectionsOperations from ._workload_networks_operations import WorkloadNetworksOperations +from ._cloud_links_operations import CloudLinksOperations from ._addons_operations import AddonsOperations +from ._script_packages_operations import ScriptPackagesOperations +from ._script_cmdlets_operations import ScriptCmdletsOperations +from ._script_executions_operations import ScriptExecutionsOperations __all__ = [ 'Operations', @@ -25,5 +31,9 @@ 'AuthorizationsOperations', 'GlobalReachConnectionsOperations', 'WorkloadNetworksOperations', + 'CloudLinksOperations', 'AddonsOperations', + '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 aee01fd8dfe..30cec0806fc 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 @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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 @@ -70,7 +72,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -150,7 +152,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -192,7 +194,7 @@ def _create_or_update_initial( resource_group_name, # type: str private_cloud_name, # type: str addon_name, # type: str - addon, # type: "_models.Addon" + properties=None, # type: Optional["_models.AddonProperties"] **kwargs # type: Any ): # type: (...) -> "_models.Addon" @@ -201,7 +203,9 @@ def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + + _addon = _models.Addon(properties=properties) + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -225,7 +229,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(addon, 'Addon') + body_content = self._serialize.body(_addon, 'Addon') 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) @@ -252,7 +256,7 @@ def begin_create_or_update( resource_group_name, # type: str private_cloud_name, # type: str addon_name, # type: str - addon, # type: "_models.Addon" + properties=None, # type: Optional["_models.AddonProperties"] **kwargs # type: Any ): # type: (...) -> LROPoller["_models.Addon"] @@ -266,12 +270,12 @@ def begin_create_or_update( :type private_cloud_name: str :param addon_name: Name of the addon for the private cloud. :type addon_name: str - :param addon: A addon in the private cloud. - :type addon: ~avs_client.models.Addon + :param properties: The properties of an addon resource. + :type properties: ~avs_client.models.AddonProperties :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Addon or the result of cls(response) @@ -290,7 +294,7 @@ def begin_create_or_update( resource_group_name=resource_group_name, private_cloud_name=private_cloud_name, addon_name=addon_name, - addon=addon, + properties=properties, cls=lambda x,y,z: x, **kwargs ) @@ -339,7 +343,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -393,8 +397,8 @@ def begin_delete( :type addon_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) 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 02ec8e458ca..cc65b642af1 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 @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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 @@ -70,7 +72,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -150,7 +152,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -192,7 +194,6 @@ def _create_or_update_initial( resource_group_name, # type: str private_cloud_name, # type: str authorization_name, # type: str - authorization, # type: "_models.ExpressRouteAuthorization" **kwargs # type: Any ): # type: (...) -> "_models.ExpressRouteAuthorization" @@ -201,7 +202,9 @@ def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + + _authorization = _models.ExpressRouteAuthorization() + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -225,7 +228,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(authorization, 'ExpressRouteAuthorization') + body_content = self._serialize.body(_authorization, 'ExpressRouteAuthorization') 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) @@ -252,7 +255,6 @@ def begin_create_or_update( resource_group_name, # type: str private_cloud_name, # type: str authorization_name, # type: str - authorization, # type: "_models.ExpressRouteAuthorization" **kwargs # type: Any ): # type: (...) -> LROPoller["_models.ExpressRouteAuthorization"] @@ -266,12 +268,10 @@ 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 authorization: An ExpressRoute Circuit Authorization. - :type authorization: ~avs_client.models.ExpressRouteAuthorization :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either ExpressRouteAuthorization or the result of cls(response) @@ -290,7 +290,6 @@ def begin_create_or_update( resource_group_name=resource_group_name, private_cloud_name=private_cloud_name, authorization_name=authorization_name, - authorization=authorization, cls=lambda x,y,z: x, **kwargs ) @@ -339,7 +338,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -393,8 +392,8 @@ def begin_delete( :type authorization_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) 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 new file mode 100644 index 00000000000..da121ac6ebb --- /dev/null +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_cloud_links_operations.py @@ -0,0 +1,450 @@ +# 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 CloudLinksOperations(object): + """CloudLinksOperations 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 + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.CloudLinkList"] + """List cloud link in a private cloud. + + List cloud link in a private cloud. + + :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 + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either CloudLinkList or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~avs_client.models.CloudLinkList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.CloudLinkList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-06-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, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_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('CloudLinkList', 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}/cloudLinks'} # type: ignore + + def get( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + cloud_link_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "_models.CloudLink" + """Get an cloud link by name in a private cloud. + + Get an cloud link 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 + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :param cloud_link_name: Name of the cloud link resource. + :type cloud_link_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: CloudLink, or the result of cls(response) + :rtype: ~avs_client.models.CloudLink + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.CloudLink"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-06-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\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'cloudLinkName': self._serialize.url("cloud_link_name", cloud_link_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('CloudLink', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}'} # type: ignore + + def _create_or_update_initial( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + cloud_link_name, # type: str + linked_cloud=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "_models.CloudLink" + cls = kwargs.pop('cls', None) # type: ClsType["_models.CloudLink"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + + _cloud_link = _models.CloudLink(linked_cloud=linked_cloud) + api_version = "2021-06-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, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'cloudLinkName': self._serialize.url("cloud_link_name", cloud_link_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(_cloud_link, 'CloudLink') + 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('CloudLink', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('CloudLink', 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}/cloudLinks/{cloudLinkName}'} # type: ignore + + def begin_create_or_update( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + cloud_link_name, # type: str + linked_cloud=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.CloudLink"] + """Create or update a cloud link in a private cloud. + + Create or update a cloud link in a private cloud. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: The name of the private cloud. + :type private_cloud_name: str + :param cloud_link_name: Name of the cloud link resource. + :type cloud_link_name: str + :param linked_cloud: Identifier of the other private cloud participating in the link. + :type linked_cloud: 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 CloudLink or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~avs_client.models.CloudLink] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.CloudLink"] + 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, + cloud_link_name=cloud_link_name, + linked_cloud=linked_cloud, + 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('CloudLink', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'cloudLinkName': self._serialize.url("cloud_link_name", cloud_link_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}/cloudLinks/{cloudLinkName}'} # type: ignore + + def _delete_initial( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + cloud_link_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-06-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\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'cloudLinkName': self._serialize.url("cloud_link_name", cloud_link_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}/cloudLinks/{cloudLinkName}'} # type: ignore + + def begin_delete( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + cloud_link_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Delete a cloud link in a private cloud. + + Delete a cloud link in a private cloud. + + :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 cloud_link_name: Name of the cloud link resource. + :type cloud_link_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, + cloud_link_name=cloud_link_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, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'cloudLinkName': self._serialize.url("cloud_link_name", cloud_link_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}/cloudLinks/{cloudLinkName}'} # type: ignore 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 8229bb5504a..503dbc52d10 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 @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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 @@ -70,7 +72,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -150,7 +152,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -192,7 +194,8 @@ def _create_or_update_initial( resource_group_name, # type: str private_cloud_name, # type: str cluster_name, # type: str - cluster, # type: "_models.Cluster" + sku, # type: "_models.Sku" + cluster_size=None, # type: Optional[int] **kwargs # type: Any ): # type: (...) -> "_models.Cluster" @@ -201,7 +204,9 @@ def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + + _cluster = _models.Cluster(sku=sku, cluster_size=cluster_size) + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -225,7 +230,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) @@ -252,7 +257,8 @@ def begin_create_or_update( resource_group_name, # type: str private_cloud_name, # type: str cluster_name, # type: str - cluster, # type: "_models.Cluster" + sku, # type: "_models.Sku" + cluster_size=None, # type: Optional[int] **kwargs # type: Any ): # type: (...) -> LROPoller["_models.Cluster"] @@ -266,12 +272,14 @@ 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 cluster: A cluster in the private cloud. - :type cluster: ~avs_client.models.Cluster + :param sku: The cluster SKU. + :type sku: ~avs_client.models.Sku + :param cluster_size: The cluster size. + :type cluster_size: int :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Cluster or the result of cls(response) @@ -290,7 +298,8 @@ def begin_create_or_update( resource_group_name=resource_group_name, private_cloud_name=private_cloud_name, cluster_name=cluster_name, - cluster=cluster, + sku=sku, + cluster_size=cluster_size, cls=lambda x,y,z: x, **kwargs ) @@ -331,7 +340,7 @@ def _update_initial( resource_group_name, # type: str private_cloud_name, # type: str cluster_name, # type: str - cluster_update, # type: "_models.ClusterUpdate" + cluster_size=None, # type: Optional[int] **kwargs # type: Any ): # type: (...) -> "_models.Cluster" @@ -340,7 +349,9 @@ def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + + _cluster_update = _models.ClusterUpdate(cluster_size=cluster_size) + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -364,7 +375,7 @@ def _update_initial( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(cluster_update, 'ClusterUpdate') + body_content = self._serialize.body(_cluster_update, 'ClusterUpdate') 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) @@ -391,7 +402,7 @@ def begin_update( resource_group_name, # type: str private_cloud_name, # type: str cluster_name, # type: str - cluster_update, # type: "_models.ClusterUpdate" + cluster_size=None, # type: Optional[int] **kwargs # type: Any ): # type: (...) -> LROPoller["_models.Cluster"] @@ -405,12 +416,12 @@ def begin_update( :type private_cloud_name: str :param cluster_name: Name of the cluster in the private cloud. :type cluster_name: str - :param cluster_update: The cluster properties to be updated. - :type cluster_update: ~avs_client.models.ClusterUpdate + :param cluster_size: The cluster size. + :type cluster_size: int :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Cluster or the result of cls(response) @@ -429,7 +440,7 @@ def begin_update( resource_group_name=resource_group_name, private_cloud_name=private_cloud_name, cluster_name=cluster_name, - cluster_update=cluster_update, + cluster_size=cluster_size, cls=lambda x,y,z: x, **kwargs ) @@ -478,7 +489,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -532,8 +543,8 @@ def begin_delete( :type cluster_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) 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 266e450702e..0a54cf9cfdc 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 @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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 @@ -53,9 +55,9 @@ def list( **kwargs # type: Any ): # type: (...) -> Iterable["_models.DatastoreList"] - """List cloud datastores in a private cloud. + """List datastores in a private cloud cluster. - List cloud datastores in a private cloud. + List datastores 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 @@ -73,7 +75,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -157,7 +159,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -195,13 +197,14 @@ def get( return deserialized get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}'} # type: ignore - def _create_initial( + def _create_or_update_initial( self, resource_group_name, # type: str private_cloud_name, # type: str cluster_name, # type: str datastore_name, # type: str - datastore, # type: "_models.Datastore" + net_app_volume=None, # type: Optional["_models.NetAppVolume"] + disk_pool_volume=None, # type: Optional["_models.DiskPoolVolume"] **kwargs # type: Any ): # type: (...) -> "_models.Datastore" @@ -210,12 +213,14 @@ def _create_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + + _datastore = _models.Datastore(net_app_volume=net_app_volume, disk_pool_volume=disk_pool_volume) + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" # Construct URL - url = self._create_initial.metadata['url'] # type: ignore + 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\._\(\)]+$'), @@ -235,7 +240,7 @@ def _create_initial( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(datastore, 'Datastore') + body_content = self._serialize.body(_datastore, 'Datastore') 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) @@ -255,21 +260,22 @@ def _create_initial( return cls(pipeline_response, deserialized, {}) return deserialized - _create_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}'} # type: ignore + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}'} # type: ignore - def begin_create( + def begin_create_or_update( self, resource_group_name, # type: str private_cloud_name, # type: str cluster_name, # type: str datastore_name, # type: str - datastore, # type: "_models.Datastore" + net_app_volume=None, # type: Optional["_models.NetAppVolume"] + disk_pool_volume=None, # type: Optional["_models.DiskPoolVolume"] **kwargs # type: Any ): # type: (...) -> LROPoller["_models.Datastore"] - """Create a datastore in a private cloud cluster. + """Create or update a datastore in a private cloud cluster. - Create a datastore in a private cloud cluster. + Create or update a datastore 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 @@ -279,12 +285,14 @@ def begin_create( :type cluster_name: str :param datastore_name: Name of the datastore in the private cloud cluster. :type datastore_name: str - :param datastore: A datastore in a private cloud cluster. - :type datastore: ~avs_client.models.Datastore + :param net_app_volume: An Azure NetApp Files volume. + :type net_app_volume: ~avs_client.models.NetAppVolume + :param disk_pool_volume: An iSCSI volume. + :type disk_pool_volume: ~avs_client.models.DiskPoolVolume :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Datastore or the result of cls(response) @@ -299,12 +307,13 @@ def begin_create( ) cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] if cont_token is None: - raw_result = self._create_initial( + raw_result = self._create_or_update_initial( resource_group_name=resource_group_name, private_cloud_name=private_cloud_name, cluster_name=cluster_name, datastore_name=datastore_name, - datastore=datastore, + net_app_volume=net_app_volume, + disk_pool_volume=disk_pool_volume, cls=lambda x,y,z: x, **kwargs ) @@ -339,7 +348,7 @@ def get_long_running_output(pipeline_response): ) else: return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}'} # type: ignore + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}'} # type: ignore def _delete_initial( self, @@ -355,7 +364,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -413,8 +422,8 @@ def begin_delete( :type datastore_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) 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 64ee3154f21..9a7d8d99f16 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 @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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 @@ -70,7 +72,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -150,7 +152,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -192,7 +194,8 @@ def _create_or_update_initial( resource_group_name, # type: str private_cloud_name, # type: str global_reach_connection_name, # type: str - global_reach_connection, # type: "_models.GlobalReachConnection" + authorization_key=None, # type: Optional[str] + peer_express_route_circuit=None, # type: Optional[str] **kwargs # type: Any ): # type: (...) -> "_models.GlobalReachConnection" @@ -201,7 +204,9 @@ def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + + _global_reach_connection = _models.GlobalReachConnection(authorization_key=authorization_key, peer_express_route_circuit=peer_express_route_circuit) + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -225,7 +230,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) @@ -252,7 +257,8 @@ def begin_create_or_update( resource_group_name, # type: str private_cloud_name, # type: str global_reach_connection_name, # type: str - global_reach_connection, # type: "_models.GlobalReachConnection" + authorization_key=None, # type: Optional[str] + peer_express_route_circuit=None, # type: Optional[str] **kwargs # type: Any ): # type: (...) -> LROPoller["_models.GlobalReachConnection"] @@ -266,12 +272,16 @@ 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 global_reach_connection: A global reach connection in the private cloud. - :type global_reach_connection: ~avs_client.models.GlobalReachConnection + :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 :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either GlobalReachConnection or the result of cls(response) @@ -290,7 +300,8 @@ 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, - global_reach_connection=global_reach_connection, + authorization_key=authorization_key, + peer_express_route_circuit=peer_express_route_circuit, cls=lambda x,y,z: x, **kwargs ) @@ -339,7 +350,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -393,8 +404,8 @@ def begin_delete( :type global_reach_connection_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) 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 c5285dae003..edf72a1838d 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 @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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 @@ -68,7 +70,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -148,7 +150,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -190,7 +192,6 @@ def create_or_update( resource_group_name, # type: str private_cloud_name, # type: str hcx_enterprise_site_name, # type: str - hcx_enterprise_site, # type: "_models.HcxEnterpriseSite" **kwargs # type: Any ): # type: (...) -> "_models.HcxEnterpriseSite" @@ -204,8 +205,6 @@ def create_or_update( :type private_cloud_name: str :param hcx_enterprise_site_name: Name of the HCX Enterprise Site in the private cloud. :type hcx_enterprise_site_name: str - :param hcx_enterprise_site: The HCX Enterprise Site. - :type hcx_enterprise_site: ~avs_client.models.HcxEnterpriseSite :keyword callable cls: A custom type or function that will be passed the direct response :return: HcxEnterpriseSite, or the result of cls(response) :rtype: ~avs_client.models.HcxEnterpriseSite @@ -216,7 +215,9 @@ def create_or_update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + + _hcx_enterprise_site = _models.HcxEnterpriseSite() + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -240,7 +241,7 @@ def create_or_update( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(hcx_enterprise_site, 'HcxEnterpriseSite') + body_content = self._serialize.body(_hcx_enterprise_site, 'HcxEnterpriseSite') 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) @@ -290,7 +291,7 @@ def delete( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL 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 34c148e61a7..4afc0da377f 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 @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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 @@ -62,7 +64,7 @@ def check_trial_availability( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -117,7 +119,7 @@ def check_quota_availability( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-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 e7e19dd65cd..40c16c04d6e 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 @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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 @@ -60,7 +62,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): 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 43b8ce74ca0..c585b999ec1 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 @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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 @@ -67,7 +69,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -137,7 +139,7 @@ def list_in_subscription( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -212,7 +214,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -261,7 +263,7 @@ def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -326,8 +328,8 @@ def begin_create_or_update( :type private_cloud: ~avs_client.models.PrivateCloud :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either PrivateCloud or the result of cls(response) @@ -393,7 +395,7 @@ def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -458,8 +460,8 @@ def begin_update( :type private_cloud_update: ~avs_client.models.PrivateCloudUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either PrivateCloud or the result of cls(response) @@ -524,7 +526,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -574,8 +576,8 @@ def begin_delete( :type private_cloud_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -636,7 +638,7 @@ def _rotate_vcenter_password_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -686,8 +688,8 @@ def begin_rotate_vcenter_password( :type private_cloud_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -748,7 +750,7 @@ def _rotate_nsxt_password_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -798,8 +800,8 @@ def begin_rotate_nsxt_password( :type private_cloud_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -873,7 +875,7 @@ def list_admin_credentials( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL 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 new file mode 100644 index 00000000000..1659acc8a58 --- /dev/null +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_script_cmdlets_operations.py @@ -0,0 +1,194 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import TYPE_CHECKING +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.mgmt.core.exceptions import ARMErrorFormat + +from .. import models as _models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class ScriptCmdletsOperations(object): + """ScriptCmdletsOperations 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 + script_package_name, # type: str + **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. + + :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 script_package_name: Name of the script package in the private cloud. + :type script_package_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ScriptCmdletsList or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~avs_client.models.ScriptCmdletsList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ScriptCmdletsList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-06-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, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'scriptPackageName': self._serialize.url("script_package_name", script_package_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('ScriptCmdletsList', 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}/scriptPackages/{scriptPackageName}/scriptCmdlets'} # type: ignore + + def get( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + script_package_name, # type: str + script_cmdlet_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "_models.ScriptCmdlet" + """Return information about a script cmdlet resource in a specific package on a private cloud. + + :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 script_package_name: Name of the script package in the private cloud. + :type script_package_name: str + :param script_cmdlet_name: Name of the script cmdlet resource in the script package in the + private cloud. + :type script_cmdlet_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ScriptCmdlet, or the result of cls(response) + :rtype: ~avs_client.models.ScriptCmdlet + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ScriptCmdlet"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-06-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\._\(\)]+$'), + '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'), + } + 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('ScriptCmdlet', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages/{scriptPackageName}/scriptCmdlets/{scriptCmdletName}'} # type: ignore 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 new file mode 100644 index 00000000000..2b7a50e39ea --- /dev/null +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_script_executions_operations.py @@ -0,0 +1,523 @@ +# 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, List, Optional, TypeVar, Union + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class ScriptExecutionsOperations(object): + """ScriptExecutionsOperations 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 + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.ScriptExecutionsList"] + """Get an script execution resource by name in a private cloud. + + Get an script execution resource 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 + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ScriptExecutionsList or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~avs_client.models.ScriptExecutionsList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ScriptExecutionsList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-06-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, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_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('ScriptExecutionsList', 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}/scriptExecutions'} # type: ignore + + def get( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + script_execution_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "_models.ScriptExecution" + """Get an script execution resource by name in a private cloud. + + Get an script execution resource 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 + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :param script_execution_name: Name of the user-invoked script execution resource. + :type script_execution_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ScriptExecution, or the result of cls(response) + :rtype: ~avs_client.models.ScriptExecution + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ScriptExecution"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-06-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\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'scriptExecutionName': self._serialize.url("script_execution_name", script_execution_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('ScriptExecution', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}'} # type: ignore + + def _create_or_update_initial( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + script_execution_name, # type: str + script_execution, # type: "_models.ScriptExecution" + **kwargs # type: Any + ): + # type: (...) -> "_models.ScriptExecution" + cls = kwargs.pop('cls', None) # type: ClsType["_models.ScriptExecution"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-06-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, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'scriptExecutionName': self._serialize.url("script_execution_name", script_execution_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(script_execution, 'ScriptExecution') + 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('ScriptExecution', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('ScriptExecution', 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}/scriptExecutions/{scriptExecutionName}'} # type: ignore + + def begin_create_or_update( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + script_execution_name, # type: str + script_execution, # type: "_models.ScriptExecution" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.ScriptExecution"] + """Create or update a script execution resource in a private cloud. + + Create or update a script execution resource in a private cloud. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: The name of the private cloud. + :type private_cloud_name: str + :param script_execution_name: Name of the user-invoked script execution resource. + :type script_execution_name: str + :param script_execution: A script running in the private cloud. + :type script_execution: ~avs_client.models.ScriptExecution + :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 ScriptExecution or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~avs_client.models.ScriptExecution] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ScriptExecution"] + 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, + script_execution_name=script_execution_name, + script_execution=script_execution, + 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('ScriptExecution', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'scriptExecutionName': self._serialize.url("script_execution_name", script_execution_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}/scriptExecutions/{scriptExecutionName}'} # type: ignore + + def _delete_initial( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + script_execution_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-06-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\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'scriptExecutionName': self._serialize.url("script_execution_name", script_execution_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}/scriptExecutions/{scriptExecutionName}'} # type: ignore + + def begin_delete( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + script_execution_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Cancel a ScriptExecution in a private cloud. + + Cancel a ScriptExecution in a private cloud. + + :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 script_execution_name: Name of the user-invoked script execution resource. + :type script_execution_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, + script_execution_name=script_execution_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, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'scriptExecutionName': self._serialize.url("script_execution_name", script_execution_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}/scriptExecutions/{scriptExecutionName}'} # type: ignore + + def get_execution_logs( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + script_execution_name, # type: str + script_output_stream_type=None, # type: Optional[List[Union[str, "_models.ScriptOutputStreamType"]]] + **kwargs # type: Any + ): + # type: (...) -> "_models.ScriptExecution" + """Return the logs for a script execution resource. + + :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 script_execution_name: Name of the user-invoked script execution resource. + :type script_execution_name: str + :param script_output_stream_type: Name of the desired output stream to return. If not provided, + will return all. An empty array will return nothing. + :type script_output_stream_type: list[str or ~avs_client.models.ScriptOutputStreamType] + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ScriptExecution, or the result of cls(response) + :rtype: ~avs_client.models.ScriptExecution + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ScriptExecution"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-06-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + 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\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'scriptExecutionName': self._serialize.url("script_execution_name", script_execution_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + if script_output_stream_type is not None: + body_content = self._serialize.body(script_output_stream_type, '[str]') + else: + body_content = None + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = self._deserialize('ScriptExecution', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_execution_logs.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}/getExecutionLogs'} # type: ignore 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 new file mode 100644 index 00000000000..ae78334d8fa --- /dev/null +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_script_packages_operations.py @@ -0,0 +1,184 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import TYPE_CHECKING +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.mgmt.core.exceptions import ARMErrorFormat + +from .. import models as _models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class ScriptPackagesOperations(object): + """ScriptPackagesOperations 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 + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.ScriptPackagesList"] + """Return script packages available for a private cloud to run on their Private Cloud. + + :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 + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ScriptPackagesList or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~avs_client.models.ScriptPackagesList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ScriptPackagesList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-06-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, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_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('ScriptPackagesList', 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}/scriptPackages'} # type: ignore + + def get( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + script_package_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "_models.ScriptPackage" + """Return script package available to run on an Private Cloud. + + :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 script_package_name: Name of the script package in the private cloud. + :type script_package_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ScriptPackage, or the result of cls(response) + :rtype: ~avs_client.models.ScriptPackage + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ScriptPackage"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-06-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\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'scriptPackageName': self._serialize.url("script_package_name", script_package_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('ScriptPackage', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages/{scriptPackageName}'} # 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 bf799ad331d..5a94175b75e 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 @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) +# 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 @@ -70,7 +72,7 @@ def list_segments( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -150,7 +152,7 @@ def get_segment( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -201,7 +203,7 @@ def _create_segments_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -270,8 +272,8 @@ def begin_create_segments( :type workload_network_segment: ~avs_client.models.WorkloadNetworkSegment :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either WorkloadNetworkSegment or the result of cls(response) @@ -340,7 +342,7 @@ def _update_segments_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -407,8 +409,8 @@ def begin_update_segments( :type workload_network_segment: ~avs_client.models.WorkloadNetworkSegment :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either WorkloadNetworkSegment or the result of cls(response) @@ -476,7 +478,7 @@ def _delete_segment_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -530,8 +532,8 @@ def begin_delete_segment( :type segment_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: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -607,7 +609,7 @@ def list_dhcp( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -687,7 +689,7 @@ def get_dhcp( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -729,7 +731,7 @@ def _create_dhcp_initial( resource_group_name, # type: str private_cloud_name, # type: str dhcp_id, # type: str - workload_network_dhcp, # type: "_models.WorkloadNetworkDhcp" + properties=None, # type: Optional["_models.WorkloadNetworkDhcpEntity"] **kwargs # type: Any ): # type: (...) -> "_models.WorkloadNetworkDhcp" @@ -738,7 +740,9 @@ def _create_dhcp_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + + _workload_network_dhcp = _models.WorkloadNetworkDhcp(properties=properties) + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -762,7 +766,7 @@ def _create_dhcp_initial( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(workload_network_dhcp, 'WorkloadNetworkDhcp') + body_content = self._serialize.body(_workload_network_dhcp, 'WorkloadNetworkDhcp') 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) @@ -789,7 +793,7 @@ def begin_create_dhcp( resource_group_name, # type: str private_cloud_name, # type: str dhcp_id, # type: str - workload_network_dhcp, # type: "_models.WorkloadNetworkDhcp" + properties=None, # type: Optional["_models.WorkloadNetworkDhcpEntity"] **kwargs # type: Any ): # type: (...) -> LROPoller["_models.WorkloadNetworkDhcp"] @@ -803,12 +807,12 @@ def begin_create_dhcp( :type private_cloud_name: str :param dhcp_id: NSX DHCP identifier. Generally the same as the DHCP display name. :type dhcp_id: str - :param workload_network_dhcp: NSX DHCP. - :type workload_network_dhcp: ~avs_client.models.WorkloadNetworkDhcp + :param properties: DHCP properties. + :type properties: ~avs_client.models.WorkloadNetworkDhcpEntity :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either WorkloadNetworkDhcp or the result of cls(response) @@ -827,7 +831,7 @@ def begin_create_dhcp( resource_group_name=resource_group_name, private_cloud_name=private_cloud_name, dhcp_id=dhcp_id, - workload_network_dhcp=workload_network_dhcp, + properties=properties, cls=lambda x,y,z: x, **kwargs ) @@ -868,7 +872,7 @@ def _update_dhcp_initial( resource_group_name, # type: str private_cloud_name, # type: str dhcp_id, # type: str - workload_network_dhcp, # type: "_models.WorkloadNetworkDhcp" + properties=None, # type: Optional["_models.WorkloadNetworkDhcpEntity"] **kwargs # type: Any ): # type: (...) -> Optional["_models.WorkloadNetworkDhcp"] @@ -877,7 +881,9 @@ def _update_dhcp_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + + _workload_network_dhcp = _models.WorkloadNetworkDhcp(properties=properties) + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -901,7 +907,7 @@ def _update_dhcp_initial( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(workload_network_dhcp, 'WorkloadNetworkDhcp') + body_content = self._serialize.body(_workload_network_dhcp, 'WorkloadNetworkDhcp') 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) @@ -926,7 +932,7 @@ def begin_update_dhcp( resource_group_name, # type: str private_cloud_name, # type: str dhcp_id, # type: str - workload_network_dhcp, # type: "_models.WorkloadNetworkDhcp" + properties=None, # type: Optional["_models.WorkloadNetworkDhcpEntity"] **kwargs # type: Any ): # type: (...) -> LROPoller["_models.WorkloadNetworkDhcp"] @@ -940,12 +946,12 @@ def begin_update_dhcp( :type private_cloud_name: str :param dhcp_id: NSX DHCP identifier. Generally the same as the DHCP display name. :type dhcp_id: str - :param workload_network_dhcp: NSX DHCP. - :type workload_network_dhcp: ~avs_client.models.WorkloadNetworkDhcp + :param properties: DHCP properties. + :type properties: ~avs_client.models.WorkloadNetworkDhcpEntity :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either WorkloadNetworkDhcp or the result of cls(response) @@ -964,7 +970,7 @@ def begin_update_dhcp( resource_group_name=resource_group_name, private_cloud_name=private_cloud_name, dhcp_id=dhcp_id, - workload_network_dhcp=workload_network_dhcp, + properties=properties, cls=lambda x,y,z: x, **kwargs ) @@ -1013,7 +1019,7 @@ def _delete_dhcp_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -1067,8 +1073,8 @@ def begin_delete_dhcp( :type dhcp_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: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1144,7 +1150,7 @@ def list_gateways( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -1224,7 +1230,7 @@ def get_gateway( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -1286,7 +1292,7 @@ def list_port_mirroring( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -1367,7 +1373,7 @@ def get_port_mirroring( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -1418,7 +1424,7 @@ def _create_port_mirroring_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -1488,8 +1494,8 @@ def begin_create_port_mirroring( :type workload_network_port_mirroring: ~avs_client.models.WorkloadNetworkPortMirroring :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either WorkloadNetworkPortMirroring or the result of cls(response) @@ -1558,7 +1564,7 @@ def _update_port_mirroring_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -1626,8 +1632,8 @@ def begin_update_port_mirroring( :type workload_network_port_mirroring: ~avs_client.models.WorkloadNetworkPortMirroring :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either WorkloadNetworkPortMirroring or the result of cls(response) @@ -1695,7 +1701,7 @@ def _delete_port_mirroring_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -1750,8 +1756,8 @@ def begin_delete_port_mirroring( :type private_cloud_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1827,7 +1833,7 @@ def list_vm_groups( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -1907,7 +1913,7 @@ def get_vm_group( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -1958,7 +1964,7 @@ def _create_vm_group_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -2027,8 +2033,8 @@ def begin_create_vm_group( :type workload_network_vm_group: ~avs_client.models.WorkloadNetworkVMGroup :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either WorkloadNetworkVMGroup or the result of cls(response) @@ -2097,7 +2103,7 @@ def _update_vm_group_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -2164,8 +2170,8 @@ def begin_update_vm_group( :type workload_network_vm_group: ~avs_client.models.WorkloadNetworkVMGroup :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either WorkloadNetworkVMGroup or the result of cls(response) @@ -2233,7 +2239,7 @@ def _delete_vm_group_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -2287,8 +2293,8 @@ def begin_delete_vm_group( :type private_cloud_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -2364,7 +2370,7 @@ def list_virtual_machines( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -2432,7 +2438,7 @@ def get_virtual_machine( :type resource_group_name: str :param private_cloud_name: Name of the private cloud. :type private_cloud_name: str - :param virtual_machine_id: NSX Virtual Machine identifier. + :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: WorkloadNetworkVirtualMachine, or the result of cls(response) @@ -2444,7 +2450,7 @@ def get_virtual_machine( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -2506,7 +2512,7 @@ def list_dns_services( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -2587,7 +2593,7 @@ def get_dns_service( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -2638,7 +2644,7 @@ def _create_dns_service_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -2708,8 +2714,8 @@ def begin_create_dns_service( :type workload_network_dns_service: ~avs_client.models.WorkloadNetworkDnsService :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either WorkloadNetworkDnsService or the result of cls(response) @@ -2778,7 +2784,7 @@ def _update_dns_service_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -2846,8 +2852,8 @@ def begin_update_dns_service( :type workload_network_dns_service: ~avs_client.models.WorkloadNetworkDnsService :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either WorkloadNetworkDnsService or the result of cls(response) @@ -2915,7 +2921,7 @@ def _delete_dns_service_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -2970,8 +2976,8 @@ def begin_delete_dns_service( :type private_cloud_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -3047,7 +3053,7 @@ def list_dns_zones( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -3127,7 +3133,7 @@ def get_dns_zone( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -3178,7 +3184,7 @@ def _create_dns_zone_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -3247,8 +3253,8 @@ def begin_create_dns_zone( :type workload_network_dns_zone: ~avs_client.models.WorkloadNetworkDnsZone :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either WorkloadNetworkDnsZone or the result of cls(response) @@ -3317,7 +3323,7 @@ def _update_dns_zone_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -3384,8 +3390,8 @@ def begin_update_dns_zone( :type workload_network_dns_zone: ~avs_client.models.WorkloadNetworkDnsZone :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either WorkloadNetworkDnsZone or the result of cls(response) @@ -3453,7 +3459,7 @@ def _delete_dns_zone_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01-preview" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -3507,8 +3513,8 @@ def begin_delete_dns_zone( :type private_cloud_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -3558,3 +3564,413 @@ def get_long_running_output(pipeline_response): else: return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete_dns_zone.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}'} # type: ignore + + def list_public_i_ps( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.WorkloadNetworkPublicIPsList"] + """List of Public IP Blocks in a private cloud workload network. + + List of Public IP Blocks in a private cloud workload network. + + :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 + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either WorkloadNetworkPublicIPsList or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~avs_client.models.WorkloadNetworkPublicIPsList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.WorkloadNetworkPublicIPsList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-06-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_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\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_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('WorkloadNetworkPublicIPsList', 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_public_i_ps.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs'} # type: ignore + + def get_public_ip( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + public_ip_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> "_models.WorkloadNetworkPublicIP" + """Get a Public IP Block by id in a private cloud workload network. + + Get a Public IP Block by id in a private cloud workload network. + + :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 public_ip_id: NSX Public IP Block identifier. Generally the same as the Public IP + Block's display name. + :type public_ip_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WorkloadNetworkPublicIP, or the result of cls(response) + :rtype: ~avs_client.models.WorkloadNetworkPublicIP + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.WorkloadNetworkPublicIP"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-06-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\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'publicIPId': self._serialize.url("public_ip_id", public_ip_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('WorkloadNetworkPublicIP', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_public_ip.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}'} # type: ignore + + def _create_public_ip_initial( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + public_ip_id, # type: str + display_name=None, # type: Optional[str] + number_of_public_i_ps=None, # type: Optional[int] + **kwargs # type: Any + ): + # type: (...) -> "_models.WorkloadNetworkPublicIP" + cls = kwargs.pop('cls', None) # type: ClsType["_models.WorkloadNetworkPublicIP"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + 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" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + 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\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'publicIPId': self._serialize.url("public_ip_id", public_ip_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(_workload_network_public_ip, 'WorkloadNetworkPublicIP') + 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('WorkloadNetworkPublicIP', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('WorkloadNetworkPublicIP', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_public_ip_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}'} # type: ignore + + def begin_create_public_ip( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + public_ip_id, # type: str + display_name=None, # type: Optional[str] + number_of_public_i_ps=None, # type: Optional[int] + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.WorkloadNetworkPublicIP"] + """Create a Public IP Block by id in a private cloud workload network. + + Create a Public IP Block by id in a private cloud workload network. + + :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 public_ip_id: NSX Public IP Block identifier. Generally the same as the Public IP + Block's display name. + :type public_ip_id: str + :param display_name: Display name of the Public IP Block. + :type display_name: str + :param number_of_public_i_ps: Number of Public IPs requested. + :type number_of_public_i_ps: long + :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 WorkloadNetworkPublicIP or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~avs_client.models.WorkloadNetworkPublicIP] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.WorkloadNetworkPublicIP"] + 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_public_ip_initial( + resource_group_name=resource_group_name, + private_cloud_name=private_cloud_name, + public_ip_id=public_ip_id, + display_name=display_name, + number_of_public_i_ps=number_of_public_i_ps, + 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('WorkloadNetworkPublicIP', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'publicIPId': self._serialize.url("public_ip_id", public_ip_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_create_public_ip.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}'} # type: ignore + + def _delete_public_ip_initial( + self, + resource_group_name, # type: str + public_ip_id, # type: str + private_cloud_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-06-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\._\(\)]+$'), + 'publicIPId': self._serialize.url("public_ip_id", public_ip_id, 'str'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_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_public_ip_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}'} # type: ignore + + def begin_delete_public_ip( + self, + resource_group_name, # type: str + public_ip_id, # type: str + private_cloud_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Delete a Public IP Block by id in a private cloud workload network. + + Delete a Public IP Block by id in a private cloud workload network. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param public_ip_id: NSX Public IP Block identifier. Generally the same as the Public IP + Block's display name. + :type public_ip_id: str + :param private_cloud_name: Name of the private cloud. + :type private_cloud_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_public_ip_initial( + resource_group_name=resource_group_name, + public_ip_id=public_ip_id, + private_cloud_name=private_cloud_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, pattern=r'^[-\w\._\(\)]+$'), + 'publicIPId': self._serialize.url("public_ip_id", public_ip_id, 'str'), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_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_public_ip.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}'} # type: ignore diff --git a/src/vmware/azext_vmware/vendored_sdks/setup.py b/src/vmware/azext_vmware/vendored_sdks/setup.py new file mode 100644 index 00000000000..6c48b1fd2db --- /dev/null +++ b/src/vmware/azext_vmware/vendored_sdks/setup.py @@ -0,0 +1,37 @@ +# 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. +# -------------------------------------------------------------------------- +# coding: utf-8 + +from setuptools import setup, find_packages + +NAME = "azure-mgmt-avs" +VERSION = "0.1.0" + +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.8.2", "azure-mgmt-core<2.0.0,>=1.2.1"] + +setup( + name=NAME, + version=VERSION, + description="azure-mgmt-avs", + author_email="", + url="", + keywords=["Swagger", "AVSClient"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + Azure VMware Solution API. + """ +)