diff --git a/src/vmware/HISTORY.md b/src/vmware/HISTORY.md index 384f2481d95..196239fc584 100644 --- a/src/vmware/HISTORY.md +++ b/src/vmware/HISTORY.md @@ -1,5 +1,19 @@ # Release History +## 7.0.0 (2024-06) + +- Update to AVS 2023-09-01 API +- Add `az vmware datastore elastic-san-volume` command group +- Add `az vmware iscsi-path` command group +- Add `az vmware cloud-link wait` command +- Add `--vsan-datastore-name` argument to `az vmware cluster create` +- Add `--vsan-datastore-name` argument to `az vmware cluster update` +- Add `--virtual-network-id` argument to `az vmware private-cloud create` +- Add `--hosts`, `vsan-datastore-name`, `dns-zone-type` arguments to `az vmware private-cloud update` +- Add `az vmware private-cloud rotate-nsxt-password` +- [BREAKING CHANGE] Remove `--sku` argument from `az vmware cluster update` as sku cannot be modified after cluster creation +- [BREAKING CHANGE] Add confirmation prompt to `az vmware script-execution create` if `--script-cmdlet-id` contains `scriptPackages/Microsoft.AVS.VMFS`, `scriptPackages/Microsoft.AVS.NFS`, or `scriptPackages/Microsoft.AVS.VVOLS` + ## 6.0.1 (2023-12) - Fix `az vmware private-cloud list-admin-credentials` not returning `nsxtPassword` and `vcenterPassword` diff --git a/src/vmware/azext_vmware/_help.py b/src/vmware/azext_vmware/_help.py index 562e0fd5b48..3519c8c5a69 100644 --- a/src/vmware/azext_vmware/_help.py +++ b/src/vmware/azext_vmware/_help.py @@ -205,7 +205,7 @@ short-summary: Rotate the NSX-T Manager password. examples: - name: Rotate the NSX-T Manager password. - text: az vmware private-cloud rotate-nsxt-password + text: az vmware private-cloud rotate-nsxt-password --resource-group MyResourceGroup --private-cloud MyPrivateCloud """ helps['vmware authorization create'] = """ @@ -274,7 +274,7 @@ helps['vmware datastore netapp-volume'] = """ type: group - short-summary: Create a new Microsoft.NetApp provided NetApp volume in a private cloud cluster. + short-summary: Manage NetApp volume resource. """ helps['vmware datastore netapp-volume create'] = """ @@ -287,7 +287,7 @@ 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. + short-summary: Manage disk pool volume resource. """ helps['vmware datastore disk-pool-volume create'] = """ @@ -298,6 +298,19 @@ 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 elastic-san-volume'] = """ + type: group + short-summary: Manage Elastic SAN volume resource. +""" + +helps['vmware datastore elastic-san-volume create'] = """ + type: command + short-summary: Create an Elastic SAN volume in a private cloud cluster using Microsoft.ElasticSan provider. + examples: + - name: Create a new Microsoft.ElasticSan provided Elastic SAN volume based datastore. + text: az vmware datastore elastic-san-volume create --name ElasticSANDatastore --resource-group MyResourceGroup --cluster Cluster-1 --private-cloud MyPrivateCloud --elastic-san-volume elasticsan +""" + helps['vmware datastore show'] = """ type: command short-summary: Show details of a datastore in a private cloud cluster. diff --git a/src/vmware/azext_vmware/_params.py b/src/vmware/azext_vmware/_params.py index 487268c329b..7b35c85478d 100644 --- a/src/vmware/azext_vmware/_params.py +++ b/src/vmware/azext_vmware/_params.py @@ -106,3 +106,4 @@ def load_arguments(self, _): c.argument('out', nargs='*', help='Standard output stream from the powershell execution.') c.argument('named_outputs', action=ScriptExecutionNamedOutputAction, nargs='*', help='User-defined dictionary.') c.argument('script_cmdlet_id', help='A reference to the script cmdlet resource if user is running a AVS script.') + c.argument('yes', help='Create without confirmation.') diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/addon/_create.py b/src/vmware/azext_vmware/aaz/latest/vmware/addon/_create.py index 06d419a9f83..1e82f38cb6e 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/addon/_create.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/addon/_create.py @@ -12,13 +12,13 @@ class Create(AAZCommand): - """Create a addon in a private cloud + """Create an addon in a private cloud """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/addons/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/addons/{}", "2023-09-01"], ] } @@ -51,6 +51,9 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["-c", "--private-cloud"], help="Name of the private cloud", required=True, + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), ) _args_schema.resource_group = AAZResourceGroupNameArg( required=True, @@ -77,14 +80,13 @@ def _build_arguments_schema(cls, *args, **kwargs): _args_schema.vr = AAZObjectArg( options=["--vr"], arg_group="Properties", - help="a vSphere Replication (VR) addon for a private cloud", + help="a vSphere Replication (VR) addon for a private cloud.", ) arc = cls._args_schema.arc arc.vcenter = AAZStrArg( options=["vcenter"], help="The VMware vCenter resource ID", - required=True, ) hcx = cls._args_schema.hcx @@ -98,7 +100,6 @@ def _build_arguments_schema(cls, *args, **kwargs): srm.license_key = AAZStrArg( options=["license-key"], help="The Site Recovery Manager (SRM) license", - required=True, ) vr = cls._args_schema.vr @@ -194,7 +195,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -234,7 +235,7 @@ def content(self): disc_arc = _builder.get(".properties{addonType:Arc}") if disc_arc is not None: - disc_arc.set_prop("vCenter", AAZStrType, ".arc.vcenter", typ_kwargs={"flags": {"required": True}}) + disc_arc.set_prop("vCenter", AAZStrType, ".arc.vcenter") disc_hcx = _builder.get(".properties{addonType:HCX}") if disc_hcx is not None: @@ -242,7 +243,7 @@ def content(self): disc_srm = _builder.get(".properties{addonType:SRM}") if disc_srm is not None: - disc_srm.set_prop("licenseKey", AAZStrType, ".srm.license_key", typ_kwargs={"flags": {"required": True}}) + disc_srm.set_prop("licenseKey", AAZStrType, ".srm.license_key") disc_vr = _builder.get(".properties{addonType:VR}") if disc_vr is not None: @@ -275,6 +276,10 @@ def _build_schema_on_200_201(cls): flags={"read_only": True}, ) _schema_on_200_201.properties = AAZObjectType() + _schema_on_200_201.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _schema_on_200_201.type = AAZStrType( flags={"read_only": True}, ) @@ -292,7 +297,6 @@ def _build_schema_on_200_201(cls): disc_arc = cls._schema_on_200_201.properties.discriminate_by("addon_type", "Arc") disc_arc.v_center = AAZStrType( serialized_name="vCenter", - flags={"required": True}, ) disc_hcx = cls._schema_on_200_201.properties.discriminate_by("addon_type", "HCX") @@ -303,7 +307,6 @@ def _build_schema_on_200_201(cls): disc_srm = cls._schema_on_200_201.properties.discriminate_by("addon_type", "SRM") disc_srm.license_key = AAZStrType( serialized_name="licenseKey", - flags={"required": True}, ) disc_vr = cls._schema_on_200_201.properties.discriminate_by("addon_type", "VR") @@ -312,6 +315,26 @@ def _build_schema_on_200_201(cls): flags={"required": True}, ) + system_data = cls._schema_on_200_201.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200_201 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/addon/_delete.py b/src/vmware/azext_vmware/aaz/latest/vmware/addon/_delete.py index 41f52657166..b6be98a6108 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/addon/_delete.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/addon/_delete.py @@ -12,13 +12,13 @@ class Delete(AAZCommand): - """Delete a addon in a private cloud + """Delete an addon in a private cloud """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/addons/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/addons/{}", "2023-09-01"], ] } @@ -87,7 +87,7 @@ def __call__(self, *args, **kwargs): session, self.on_200, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [200]: @@ -96,7 +96,7 @@ def __call__(self, *args, **kwargs): session, self.on_200, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [204]: @@ -105,7 +105,7 @@ def __call__(self, *args, **kwargs): session, self.on_204, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) @@ -152,7 +152,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/addon/_list.py b/src/vmware/azext_vmware/aaz/latest/vmware/addon/_list.py index 9c9b255eb60..b49f9d89e9a 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/addon/_list.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/addon/_list.py @@ -19,9 +19,9 @@ class List(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/addons", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/addons", "2023-09-01"], ] } @@ -121,7 +121,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -156,10 +156,9 @@ def _build_schema_on_200(cls): _schema_on_200 = cls._schema_on_200 _schema_on_200.next_link = AAZStrType( serialized_name="nextLink", - flags={"read_only": True}, ) _schema_on_200.value = AAZListType( - flags={"read_only": True}, + flags={"required": True}, ) value = cls._schema_on_200.value @@ -173,6 +172,10 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) _element.properties = AAZObjectType() + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _element.type = AAZStrType( flags={"read_only": True}, ) @@ -190,7 +193,6 @@ def _build_schema_on_200(cls): disc_arc = cls._schema_on_200.value.Element.properties.discriminate_by("addon_type", "Arc") disc_arc.v_center = AAZStrType( serialized_name="vCenter", - flags={"required": True}, ) disc_hcx = cls._schema_on_200.value.Element.properties.discriminate_by("addon_type", "HCX") @@ -201,7 +203,6 @@ def _build_schema_on_200(cls): disc_srm = cls._schema_on_200.value.Element.properties.discriminate_by("addon_type", "SRM") disc_srm.license_key = AAZStrType( serialized_name="licenseKey", - flags={"required": True}, ) disc_vr = cls._schema_on_200.value.Element.properties.discriminate_by("addon_type", "VR") @@ -210,6 +211,26 @@ def _build_schema_on_200(cls): flags={"required": True}, ) + system_data = cls._schema_on_200.value.Element.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/addon/_show.py b/src/vmware/azext_vmware/aaz/latest/vmware/addon/_show.py index ba6c0cf424b..1147d3dff75 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/addon/_show.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/addon/_show.py @@ -16,9 +16,9 @@ class Show(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/addons/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/addons/{}", "2023-09-01"], ] } @@ -40,7 +40,7 @@ def _build_arguments_schema(cls, *args, **kwargs): _args_schema = cls._args_schema _args_schema.addon_name = AAZStrArg( options=["-n", "--name", "--addon-name"], - help="Name of the addon for the private cloud", + help="Name of the addon for the private cloud.", required=True, id_part="child_name_1", fmt=AAZStrArgFormat( @@ -130,7 +130,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -170,6 +170,10 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) _schema_on_200.properties = AAZObjectType() + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) @@ -187,7 +191,6 @@ def _build_schema_on_200(cls): disc_arc = cls._schema_on_200.properties.discriminate_by("addon_type", "Arc") disc_arc.v_center = AAZStrType( serialized_name="vCenter", - flags={"required": True}, ) disc_hcx = cls._schema_on_200.properties.discriminate_by("addon_type", "HCX") @@ -198,7 +201,6 @@ def _build_schema_on_200(cls): disc_srm = cls._schema_on_200.properties.discriminate_by("addon_type", "SRM") disc_srm.license_key = AAZStrType( serialized_name="licenseKey", - flags={"required": True}, ) disc_vr = cls._schema_on_200.properties.discriminate_by("addon_type", "VR") @@ -207,6 +209,26 @@ def _build_schema_on_200(cls): flags={"required": True}, ) + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/addon/_update.py b/src/vmware/azext_vmware/aaz/latest/vmware/addon/_update.py index a6cef9484cb..3a1f53849b9 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/addon/_update.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/addon/_update.py @@ -12,13 +12,13 @@ class Update(AAZCommand): - """Update a addon in a private cloud + """Update an addon in a private cloud """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/addons/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/addons/{}", "2023-09-01"], ] } @@ -43,7 +43,7 @@ def _build_arguments_schema(cls, *args, **kwargs): _args_schema = cls._args_schema _args_schema.addon_name = AAZStrArg( options=["-n", "--name", "--addon-name"], - help="Name of the addon for the private cloud", + help="Name of the addon for the private cloud.", required=True, id_part="child_name_1", fmt=AAZStrArgFormat( @@ -91,6 +91,7 @@ def _build_arguments_schema(cls, *args, **kwargs): arc.vcenter = AAZStrArg( options=["vcenter"], help="The VMware vCenter resource ID", + nullable=True, ) hcx = cls._args_schema.hcx @@ -103,6 +104,7 @@ def _build_arguments_schema(cls, *args, **kwargs): srm.license_key = AAZStrArg( options=["license-key"], help="The Site Recovery Manager (SRM) license", + nullable=True, ) vr = cls._args_schema.vr @@ -194,7 +196,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -297,7 +299,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -370,7 +372,7 @@ def _update_instance(self, instance): disc_arc = _builder.get(".properties{addonType:Arc}") if disc_arc is not None: - disc_arc.set_prop("vCenter", AAZStrType, ".arc.vcenter", typ_kwargs={"flags": {"required": True}}) + disc_arc.set_prop("vCenter", AAZStrType, ".arc.vcenter") disc_hcx = _builder.get(".properties{addonType:HCX}") if disc_hcx is not None: @@ -378,7 +380,7 @@ def _update_instance(self, instance): disc_srm = _builder.get(".properties{addonType:SRM}") if disc_srm is not None: - disc_srm.set_prop("licenseKey", AAZStrType, ".srm.license_key", typ_kwargs={"flags": {"required": True}}) + disc_srm.set_prop("licenseKey", AAZStrType, ".srm.license_key") disc_vr = _builder.get(".properties{addonType:VR}") if disc_vr is not None: @@ -406,6 +408,7 @@ def _build_schema_addon_read(cls, _schema): _schema.id = cls._schema_addon_read.id _schema.name = cls._schema_addon_read.name _schema.properties = cls._schema_addon_read.properties + _schema.system_data = cls._schema_addon_read.system_data _schema.type = cls._schema_addon_read.type return @@ -419,6 +422,10 @@ def _build_schema_addon_read(cls, _schema): flags={"read_only": True}, ) addon_read.properties = AAZObjectType() + addon_read.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) addon_read.type = AAZStrType( flags={"read_only": True}, ) @@ -436,7 +443,6 @@ def _build_schema_addon_read(cls, _schema): disc_arc = _schema_addon_read.properties.discriminate_by("addon_type", "Arc") disc_arc.v_center = AAZStrType( serialized_name="vCenter", - flags={"required": True}, ) disc_hcx = _schema_addon_read.properties.discriminate_by("addon_type", "HCX") @@ -447,7 +453,6 @@ def _build_schema_addon_read(cls, _schema): disc_srm = _schema_addon_read.properties.discriminate_by("addon_type", "SRM") disc_srm.license_key = AAZStrType( serialized_name="licenseKey", - flags={"required": True}, ) disc_vr = _schema_addon_read.properties.discriminate_by("addon_type", "VR") @@ -456,9 +461,30 @@ def _build_schema_addon_read(cls, _schema): flags={"required": True}, ) + system_data = _schema_addon_read.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + _schema.id = cls._schema_addon_read.id _schema.name = cls._schema_addon_read.name _schema.properties = cls._schema_addon_read.properties + _schema.system_data = cls._schema_addon_read.system_data _schema.type = cls._schema_addon_read.type diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/authorization/_create.py b/src/vmware/azext_vmware/aaz/latest/vmware/authorization/_create.py index c71fc0dfb5f..553040a81cc 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/authorization/_create.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/authorization/_create.py @@ -19,9 +19,9 @@ class Create(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/authorizations/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/authorizations/{}", "2023-09-01"], ] } @@ -52,8 +52,11 @@ def _build_arguments_schema(cls, *args, **kwargs): ) _args_schema.private_cloud = AAZStrArg( options=["-c", "--private-cloud"], - help="The name of the private cloud.", + help="Name of the private cloud", required=True, + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), ) _args_schema.resource_group = AAZResourceGroupNameArg( required=True, @@ -154,7 +157,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -214,6 +217,10 @@ def _build_schema_on_200_201(cls): _schema_on_200_201.properties = AAZObjectType( flags={"client_flatten": True}, ) + _schema_on_200_201.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _schema_on_200_201.type = AAZStrType( flags={"read_only": True}, ) @@ -235,6 +242,26 @@ def _build_schema_on_200_201(cls): flags={"read_only": True}, ) + system_data = cls._schema_on_200_201.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200_201 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/authorization/_delete.py b/src/vmware/azext_vmware/aaz/latest/vmware/authorization/_delete.py index 1b7740f366b..728dcab7b2e 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/authorization/_delete.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/authorization/_delete.py @@ -20,9 +20,9 @@ class Delete(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/authorizations/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/authorizations/{}", "2023-09-01"], ] } @@ -54,7 +54,7 @@ def _build_arguments_schema(cls, *args, **kwargs): ) _args_schema.private_cloud = AAZStrArg( options=["-c", "--private-cloud"], - help="The name of the private cloud.", + help="Name of the private cloud", required=True, id_part="name", fmt=AAZStrArgFormat( @@ -91,7 +91,7 @@ def __call__(self, *args, **kwargs): session, self.on_200, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [200]: @@ -100,7 +100,7 @@ def __call__(self, *args, **kwargs): session, self.on_200, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [204]: @@ -109,7 +109,7 @@ def __call__(self, *args, **kwargs): session, self.on_204, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) @@ -156,7 +156,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/authorization/_list.py b/src/vmware/azext_vmware/aaz/latest/vmware/authorization/_list.py index 8525e9523f1..f044da09969 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/authorization/_list.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/authorization/_list.py @@ -19,9 +19,9 @@ class List(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/authorizations", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/authorizations", "2023-09-01"], ] } @@ -44,7 +44,7 @@ def _build_arguments_schema(cls, *args, **kwargs): _args_schema = cls._args_schema _args_schema.private_cloud = AAZStrArg( options=["-c", "--private-cloud"], - help="The name of the private cloud.", + help="Name of the private cloud", required=True, fmt=AAZStrArgFormat( pattern="^[-\w\._]+$", @@ -121,7 +121,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -156,10 +156,9 @@ def _build_schema_on_200(cls): _schema_on_200 = cls._schema_on_200 _schema_on_200.next_link = AAZStrType( serialized_name="nextLink", - flags={"read_only": True}, ) _schema_on_200.value = AAZListType( - flags={"read_only": True}, + flags={"required": True}, ) value = cls._schema_on_200.value @@ -175,6 +174,10 @@ def _build_schema_on_200(cls): _element.properties = AAZObjectType( flags={"client_flatten": True}, ) + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _element.type = AAZStrType( flags={"read_only": True}, ) @@ -196,6 +199,26 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) + system_data = cls._schema_on_200.value.Element.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/authorization/_show.py b/src/vmware/azext_vmware/aaz/latest/vmware/authorization/_show.py index 4eb5ab91dc0..67c7c1677f4 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/authorization/_show.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/authorization/_show.py @@ -19,9 +19,9 @@ class Show(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/authorizations/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/authorizations/{}", "2023-09-01"], ] } @@ -52,7 +52,7 @@ def _build_arguments_schema(cls, *args, **kwargs): ) _args_schema.private_cloud = AAZStrArg( options=["-c", "--private-cloud"], - help="The name of the private cloud.", + help="Name of the private cloud", required=True, id_part="name", fmt=AAZStrArgFormat( @@ -133,7 +133,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -175,6 +175,10 @@ def _build_schema_on_200(cls): _schema_on_200.properties = AAZObjectType( flags={"client_flatten": True}, ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) @@ -196,6 +200,26 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/authorization/_wait.py b/src/vmware/azext_vmware/aaz/latest/vmware/authorization/_wait.py index 50695805aa7..0117f20a2da 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/authorization/_wait.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/authorization/_wait.py @@ -20,7 +20,7 @@ class Wait(AAZWaitCommand): _aaz_info = { "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/authorizations/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/authorizations/{}", "2023-09-01"], ] } @@ -51,7 +51,7 @@ def _build_arguments_schema(cls, *args, **kwargs): ) _args_schema.private_cloud = AAZStrArg( options=["-c", "--private-cloud"], - help="The name of the private cloud.", + help="Name of the private cloud", required=True, id_part="name", fmt=AAZStrArgFormat( @@ -132,7 +132,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -174,6 +174,10 @@ def _build_schema_on_200(cls): _schema_on_200.properties = AAZObjectType( flags={"client_flatten": True}, ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) @@ -195,6 +199,26 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/cloud_link/__init__.py b/src/vmware/azext_vmware/aaz/latest/vmware/cloud_link/__init__.py index c401f439385..db73033039b 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/cloud_link/__init__.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/cloud_link/__init__.py @@ -14,3 +14,4 @@ from ._list import * from ._show import * from ._update import * +from ._wait import * diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/cloud_link/_create.py b/src/vmware/azext_vmware/aaz/latest/vmware/cloud_link/_create.py index ffb5fe662ff..a71fb97069b 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/cloud_link/_create.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/cloud_link/_create.py @@ -18,13 +18,13 @@ class Create(AAZCommand): """Create a cloud link in a private cloud :example: Create a cloud link. - az vmware cloud-link create --resource-group group1 --private-cloud cloud1 --name cloudLink1 --linked-cloud "/subscriptions/12341234-1234-1234-1234-123412341234/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2" + az vmware cloud-link create --resource-group group1 --private-cloud cloud1 --name cloudLink1 --linked-cloud "/subscriptions/12341234-1234-1234-1234-123412341234/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2 """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/cloudlinks/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/cloudlinks/{}", "2023-09-01"], ] } @@ -55,8 +55,11 @@ def _build_arguments_schema(cls, *args, **kwargs): ) _args_schema.private_cloud = AAZStrArg( options=["-c", "--private-cloud"], - help="The name of the private cloud.", + help="Name of the private cloud", required=True, + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), ) _args_schema.resource_group = AAZResourceGroupNameArg( required=True, @@ -69,7 +72,6 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["--linked-cloud"], arg_group="Properties", help="Identifier of the other private cloud participating in the link.", - required=True, ) return cls._args_schema @@ -158,7 +160,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -183,11 +185,11 @@ def content(self): typ=AAZObjectType, typ_kwargs={"flags": {"required": True, "client_flatten": True}} ) - _builder.set_prop("properties", AAZObjectType, ".", typ_kwargs={"flags": {"required": True, "client_flatten": True}}) + _builder.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) properties = _builder.get(".properties") if properties is not None: - properties.set_prop("linkedCloud", AAZStrType, ".linked_cloud", typ_kwargs={"flags": {"required": True}}) + properties.set_prop("linkedCloud", AAZStrType, ".linked_cloud") return self.serialize_content(_content_value) @@ -216,7 +218,11 @@ def _build_schema_on_200_201(cls): flags={"read_only": True}, ) _schema_on_200_201.properties = AAZObjectType( - flags={"required": True, "client_flatten": True}, + flags={"client_flatten": True}, + ) + _schema_on_200_201.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, ) _schema_on_200_201.type = AAZStrType( flags={"read_only": True}, @@ -225,11 +231,32 @@ def _build_schema_on_200_201(cls): properties = cls._schema_on_200_201.properties properties.linked_cloud = AAZStrType( serialized_name="linkedCloud", - flags={"required": True}, ) - properties.status = AAZStrType( + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", flags={"read_only": True}, ) + properties.status = AAZStrType() + + system_data = cls._schema_on_200_201.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) return cls._schema_on_200_201 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/cloud_link/_delete.py b/src/vmware/azext_vmware/aaz/latest/vmware/cloud_link/_delete.py index 48add6948ca..e6b44a005c3 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/cloud_link/_delete.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/cloud_link/_delete.py @@ -23,9 +23,9 @@ class Delete(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/cloudlinks/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/cloudlinks/{}", "2023-09-01"], ] } @@ -57,7 +57,7 @@ def _build_arguments_schema(cls, *args, **kwargs): ) _args_schema.private_cloud = AAZStrArg( options=["-c", "--private-cloud"], - help="The name of the private cloud.", + help="Name of the private cloud", required=True, id_part="name", fmt=AAZStrArgFormat( @@ -94,7 +94,7 @@ def __call__(self, *args, **kwargs): session, self.on_200, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [200]: @@ -103,7 +103,7 @@ def __call__(self, *args, **kwargs): session, self.on_200, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [204]: @@ -112,7 +112,7 @@ def __call__(self, *args, **kwargs): session, self.on_204, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) @@ -159,7 +159,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/cloud_link/_list.py b/src/vmware/azext_vmware/aaz/latest/vmware/cloud_link/_list.py index 828e609185b..8aff73d7b8d 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/cloud_link/_list.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/cloud_link/_list.py @@ -22,9 +22,9 @@ class List(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/cloudlinks", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/cloudlinks", "2023-09-01"], ] } @@ -47,7 +47,7 @@ def _build_arguments_schema(cls, *args, **kwargs): _args_schema = cls._args_schema _args_schema.private_cloud = AAZStrArg( options=["-c", "--private-cloud"], - help="The name of the private cloud.", + help="Name of the private cloud", required=True, fmt=AAZStrArgFormat( pattern="^[-\w\._]+$", @@ -124,7 +124,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -159,10 +159,9 @@ def _build_schema_on_200(cls): _schema_on_200 = cls._schema_on_200 _schema_on_200.next_link = AAZStrType( serialized_name="nextLink", - flags={"read_only": True}, ) _schema_on_200.value = AAZListType( - flags={"read_only": True}, + flags={"required": True}, ) value = cls._schema_on_200.value @@ -176,7 +175,11 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) _element.properties = AAZObjectType( - flags={"required": True, "client_flatten": True}, + flags={"client_flatten": True}, + ) + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, ) _element.type = AAZStrType( flags={"read_only": True}, @@ -185,11 +188,32 @@ def _build_schema_on_200(cls): properties = cls._schema_on_200.value.Element.properties properties.linked_cloud = AAZStrType( serialized_name="linkedCloud", - flags={"required": True}, ) - properties.status = AAZStrType( + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", flags={"read_only": True}, ) + properties.status = AAZStrType() + + system_data = cls._schema_on_200.value.Element.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/cloud_link/_show.py b/src/vmware/azext_vmware/aaz/latest/vmware/cloud_link/_show.py index fbae07f6aa2..753289dc966 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/cloud_link/_show.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/cloud_link/_show.py @@ -22,9 +22,9 @@ class Show(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/cloudlinks/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/cloudlinks/{}", "2023-09-01"], ] } @@ -55,7 +55,7 @@ def _build_arguments_schema(cls, *args, **kwargs): ) _args_schema.private_cloud = AAZStrArg( options=["-c", "--private-cloud"], - help="The name of the private cloud.", + help="Name of the private cloud", required=True, id_part="name", fmt=AAZStrArgFormat( @@ -136,7 +136,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -176,7 +176,11 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) _schema_on_200.properties = AAZObjectType( - flags={"required": True, "client_flatten": True}, + flags={"client_flatten": True}, + ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, @@ -185,11 +189,32 @@ def _build_schema_on_200(cls): properties = cls._schema_on_200.properties properties.linked_cloud = AAZStrType( serialized_name="linkedCloud", - flags={"required": True}, ) - properties.status = AAZStrType( + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", flags={"read_only": True}, ) + properties.status = AAZStrType() + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/cloud_link/_update.py b/src/vmware/azext_vmware/aaz/latest/vmware/cloud_link/_update.py index 3b47dfac998..ad67a9074eb 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/cloud_link/_update.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/cloud_link/_update.py @@ -19,9 +19,9 @@ class Update(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/cloudlinks/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/cloudlinks/{}", "2023-09-01"], ] } @@ -55,7 +55,7 @@ def _build_arguments_schema(cls, *args, **kwargs): ) _args_schema.private_cloud = AAZStrArg( options=["-c", "--private-cloud"], - help="The name of the private cloud.", + help="Name of the private cloud", required=True, id_part="name", fmt=AAZStrArgFormat( @@ -73,6 +73,7 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["--linked-cloud"], arg_group="Properties", help="Identifier of the other private cloud participating in the link.", + nullable=True, ) return cls._args_schema @@ -158,7 +159,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -261,7 +262,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -319,11 +320,11 @@ def _update_instance(self, instance): value=instance, typ=AAZObjectType ) - _builder.set_prop("properties", AAZObjectType, ".", typ_kwargs={"flags": {"required": True, "client_flatten": True}}) + _builder.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) properties = _builder.get(".properties") if properties is not None: - properties.set_prop("linkedCloud", AAZStrType, ".linked_cloud", typ_kwargs={"flags": {"required": True}}) + properties.set_prop("linkedCloud", AAZStrType, ".linked_cloud") return _instance_value @@ -347,6 +348,7 @@ def _build_schema_cloud_link_read(cls, _schema): _schema.id = cls._schema_cloud_link_read.id _schema.name = cls._schema_cloud_link_read.name _schema.properties = cls._schema_cloud_link_read.properties + _schema.system_data = cls._schema_cloud_link_read.system_data _schema.type = cls._schema_cloud_link_read.type return @@ -360,7 +362,11 @@ def _build_schema_cloud_link_read(cls, _schema): flags={"read_only": True}, ) cloud_link_read.properties = AAZObjectType( - flags={"required": True, "client_flatten": True}, + flags={"client_flatten": True}, + ) + cloud_link_read.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, ) cloud_link_read.type = AAZStrType( flags={"read_only": True}, @@ -369,15 +375,37 @@ def _build_schema_cloud_link_read(cls, _schema): properties = _schema_cloud_link_read.properties properties.linked_cloud = AAZStrType( serialized_name="linkedCloud", - flags={"required": True}, ) - properties.status = AAZStrType( + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", flags={"read_only": True}, ) + properties.status = AAZStrType() + + system_data = _schema_cloud_link_read.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) _schema.id = cls._schema_cloud_link_read.id _schema.name = cls._schema_cloud_link_read.name _schema.properties = cls._schema_cloud_link_read.properties + _schema.system_data = cls._schema_cloud_link_read.system_data _schema.type = cls._schema_cloud_link_read.type diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/cloud_link/_wait.py b/src/vmware/azext_vmware/aaz/latest/vmware/cloud_link/_wait.py new file mode 100644 index 00000000000..6df291e34d9 --- /dev/null +++ b/src/vmware/azext_vmware/aaz/latest/vmware/cloud_link/_wait.py @@ -0,0 +1,222 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "vmware cloud-link wait", +) +class Wait(AAZWaitCommand): + """Place the CLI in a waiting state until a condition is met. + """ + + _aaz_info = { + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/cloudlinks/{}", "2023-09-01"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.cloud_link_name = AAZStrArg( + options=["-n", "--name", "--cloud-link-name"], + help="Name of the cloud link resource", + required=True, + id_part="child_name_1", + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), + ) + _args_schema.private_cloud = AAZStrArg( + options=["-c", "--private-cloud"], + help="Name of the private cloud", + required=True, + id_part="name", + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.CloudLinksGet(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=False) + return result + + class CloudLinksGet(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "cloudLinkName", self.ctx.args.cloud_link_name, + required=True, + ), + **self.serialize_url_param( + "privateCloudName", self.ctx.args.private_cloud, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2023-09-01", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties + properties.linked_cloud = AAZStrType( + serialized_name="linkedCloud", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.status = AAZStrType() + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + return cls._schema_on_200 + + +class _WaitHelper: + """Helper class for Wait""" + + +__all__ = ["Wait"] diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/cluster/_create.py b/src/vmware/azext_vmware/aaz/latest/vmware/cluster/_create.py index 33aec5b7fa2..e961b56faaa 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/cluster/_create.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/cluster/_create.py @@ -21,9 +21,9 @@ class Create(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/clusters/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/clusters/{}", "2023-09-01"], ] } @@ -54,8 +54,11 @@ def _build_arguments_schema(cls, *args, **kwargs): ) _args_schema.private_cloud = AAZStrArg( options=["-c", "--private-cloud"], - help="The name of the private cloud.", + help="Name of the private cloud", required=True, + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), ) _args_schema.resource_group = AAZResourceGroupNameArg( required=True, @@ -74,6 +77,11 @@ def _build_arguments_schema(cls, *args, **kwargs): arg_group="Properties", help="The hosts", ) + _args_schema.vsan_datastore_name = AAZStrArg( + options=["--vsan-datastore-name"], + arg_group="Properties", + help="Name of the vsan datastore associated with the cluster", + ) hosts = cls._args_schema.hosts hosts.Element = AAZStrArg() @@ -84,7 +92,7 @@ def _build_arguments_schema(cls, *args, **kwargs): _args_schema.sku = AAZStrArg( options=["--sku"], arg_group="Sku", - help="The name of the SKU.", + help="The name of the SKU. E.g. P3. It is typically a letter+number code", required=True, ) return cls._args_schema @@ -174,7 +182,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -206,6 +214,7 @@ def content(self): if properties is not None: properties.set_prop("clusterSize", AAZIntType, ".cluster_size") properties.set_prop("hosts", AAZListType, ".hosts") + properties.set_prop("vsanDatastoreName", AAZStrType, ".vsan_datastore_name") hosts = _builder.get(".properties.hosts") if hosts is not None: @@ -247,6 +256,10 @@ def _build_schema_on_200_201(cls): _schema_on_200_201.sku = AAZObjectType( flags={"required": True}, ) + _schema_on_200_201.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _schema_on_200_201.type = AAZStrType( flags={"read_only": True}, ) @@ -264,14 +277,41 @@ def _build_schema_on_200_201(cls): serialized_name="provisioningState", flags={"read_only": True}, ) + properties.vsan_datastore_name = AAZStrType( + serialized_name="vsanDatastoreName", + ) hosts = cls._schema_on_200_201.properties.hosts hosts.Element = AAZStrType() sku = cls._schema_on_200_201.sku + sku.capacity = AAZIntType() + sku.family = AAZStrType() sku.name = AAZStrType( flags={"required": True}, ) + sku.size = AAZStrType() + sku.tier = AAZStrType() + + system_data = cls._schema_on_200_201.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) return cls._schema_on_200_201 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/cluster/_delete.py b/src/vmware/azext_vmware/aaz/latest/vmware/cluster/_delete.py index 190aecd9999..271b04dc80a 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/cluster/_delete.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/cluster/_delete.py @@ -22,9 +22,9 @@ class Delete(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/clusters/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/clusters/{}", "2023-09-01"], ] } @@ -56,7 +56,7 @@ def _build_arguments_schema(cls, *args, **kwargs): ) _args_schema.private_cloud = AAZStrArg( options=["-c", "--private-cloud"], - help="The name of the private cloud.", + help="Name of the private cloud", required=True, id_part="name", fmt=AAZStrArgFormat( @@ -93,7 +93,7 @@ def __call__(self, *args, **kwargs): session, self.on_200, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [200]: @@ -102,7 +102,7 @@ def __call__(self, *args, **kwargs): session, self.on_200, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [204]: @@ -111,7 +111,7 @@ def __call__(self, *args, **kwargs): session, self.on_204, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) @@ -158,7 +158,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/cluster/_list.py b/src/vmware/azext_vmware/aaz/latest/vmware/cluster/_list.py index ba637647634..a2fe2a7c6c9 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/cluster/_list.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/cluster/_list.py @@ -21,9 +21,9 @@ class List(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/clusters", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/clusters", "2023-09-01"], ] } @@ -46,7 +46,7 @@ def _build_arguments_schema(cls, *args, **kwargs): _args_schema = cls._args_schema _args_schema.private_cloud = AAZStrArg( options=["-c", "--private-cloud"], - help="The name of the private cloud.", + help="Name of the private cloud", required=True, fmt=AAZStrArgFormat( pattern="^[-\w\._]+$", @@ -123,7 +123,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -158,10 +158,9 @@ def _build_schema_on_200(cls): _schema_on_200 = cls._schema_on_200 _schema_on_200.next_link = AAZStrType( serialized_name="nextLink", - flags={"read_only": True}, ) _schema_on_200.value = AAZListType( - flags={"read_only": True}, + flags={"required": True}, ) value = cls._schema_on_200.value @@ -180,6 +179,10 @@ def _build_schema_on_200(cls): _element.sku = AAZObjectType( flags={"required": True}, ) + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _element.type = AAZStrType( flags={"read_only": True}, ) @@ -197,14 +200,41 @@ def _build_schema_on_200(cls): serialized_name="provisioningState", flags={"read_only": True}, ) + properties.vsan_datastore_name = AAZStrType( + serialized_name="vsanDatastoreName", + ) hosts = cls._schema_on_200.value.Element.properties.hosts hosts.Element = AAZStrType() sku = cls._schema_on_200.value.Element.sku + sku.capacity = AAZIntType() + sku.family = AAZStrType() sku.name = AAZStrType( flags={"required": True}, ) + sku.size = AAZStrType() + sku.tier = AAZStrType() + + system_data = cls._schema_on_200.value.Element.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/cluster/_list_zones.py b/src/vmware/azext_vmware/aaz/latest/vmware/cluster/_list_zones.py index 77d513867cd..b3417193704 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/cluster/_list_zones.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/cluster/_list_zones.py @@ -21,9 +21,9 @@ class ListZones(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/clusters/{}/listzones", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/clusters/{}/listzones", "2023-09-01"], ] } @@ -54,7 +54,7 @@ def _build_arguments_schema(cls, *args, **kwargs): ) _args_schema.private_cloud = AAZStrArg( options=["-c", "--private-cloud"], - help="The name of the private cloud.", + help="Name of the private cloud", required=True, id_part="name", fmt=AAZStrArgFormat( @@ -135,7 +135,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/cluster/_show.py b/src/vmware/azext_vmware/aaz/latest/vmware/cluster/_show.py index 24fbbbd9b62..bf3ac7591fa 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/cluster/_show.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/cluster/_show.py @@ -21,9 +21,9 @@ class Show(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/clusters/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/clusters/{}", "2023-09-01"], ] } @@ -54,7 +54,7 @@ def _build_arguments_schema(cls, *args, **kwargs): ) _args_schema.private_cloud = AAZStrArg( options=["-c", "--private-cloud"], - help="The name of the private cloud.", + help="Name of the private cloud", required=True, id_part="name", fmt=AAZStrArgFormat( @@ -135,7 +135,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -180,6 +180,10 @@ def _build_schema_on_200(cls): _schema_on_200.sku = AAZObjectType( flags={"required": True}, ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) @@ -197,14 +201,41 @@ def _build_schema_on_200(cls): serialized_name="provisioningState", flags={"read_only": True}, ) + properties.vsan_datastore_name = AAZStrType( + serialized_name="vsanDatastoreName", + ) hosts = cls._schema_on_200.properties.hosts hosts.Element = AAZStrType() sku = cls._schema_on_200.sku + sku.capacity = AAZIntType() + sku.family = AAZStrType() sku.name = AAZStrType( flags={"required": True}, ) + sku.size = AAZStrType() + sku.tier = AAZStrType() + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/cluster/_update.py b/src/vmware/azext_vmware/aaz/latest/vmware/cluster/_update.py index 8e07e78a965..93676edc58e 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/cluster/_update.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/cluster/_update.py @@ -21,9 +21,9 @@ class Update(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/clusters/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/clusters/{}", "2023-09-01"], ] } @@ -57,7 +57,7 @@ def _build_arguments_schema(cls, *args, **kwargs): ) _args_schema.private_cloud = AAZStrArg( options=["-c", "--private-cloud"], - help="The name of the private cloud.", + help="Name of the private cloud", required=True, id_part="name", fmt=AAZStrArgFormat( @@ -83,6 +83,12 @@ def _build_arguments_schema(cls, *args, **kwargs): help="The hosts", nullable=True, ) + _args_schema.vsan_datastore_name = AAZStrArg( + options=["--vsan-datastore-name"], + arg_group="Properties", + help="Name of the vsan datastore associated with the cluster", + nullable=True, + ) hosts = cls._args_schema.hosts hosts.Element = AAZStrArg( @@ -90,13 +96,6 @@ def _build_arguments_schema(cls, *args, **kwargs): ) # define Arg Group "Sku" - - _args_schema = cls._args_schema - _args_schema.sku = AAZStrArg( - options=["--sku"], - arg_group="Sku", - help="The name of the SKU.", - ) return cls._args_schema def _execute_operations(self): @@ -181,7 +180,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -284,7 +283,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -343,21 +342,17 @@ def _update_instance(self, instance): typ=AAZObjectType ) _builder.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) - _builder.set_prop("sku", AAZObjectType, ".", typ_kwargs={"flags": {"required": True}}) properties = _builder.get(".properties") if properties is not None: properties.set_prop("clusterSize", AAZIntType, ".cluster_size") properties.set_prop("hosts", AAZListType, ".hosts") + properties.set_prop("vsanDatastoreName", AAZStrType, ".vsan_datastore_name") hosts = _builder.get(".properties.hosts") if hosts is not None: hosts.set_elements(AAZStrType, ".") - sku = _builder.get(".sku") - if sku is not None: - sku.set_prop("name", AAZStrType, ".sku", typ_kwargs={"flags": {"required": True}}) - return _instance_value class InstanceUpdateByGeneric(AAZGenericInstanceUpdateOperation): @@ -381,6 +376,7 @@ def _build_schema_cluster_read(cls, _schema): _schema.name = cls._schema_cluster_read.name _schema.properties = cls._schema_cluster_read.properties _schema.sku = cls._schema_cluster_read.sku + _schema.system_data = cls._schema_cluster_read.system_data _schema.type = cls._schema_cluster_read.type return @@ -399,6 +395,10 @@ def _build_schema_cluster_read(cls, _schema): cluster_read.sku = AAZObjectType( flags={"required": True}, ) + cluster_read.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) cluster_read.type = AAZStrType( flags={"read_only": True}, ) @@ -416,19 +416,47 @@ def _build_schema_cluster_read(cls, _schema): serialized_name="provisioningState", flags={"read_only": True}, ) + properties.vsan_datastore_name = AAZStrType( + serialized_name="vsanDatastoreName", + ) hosts = _schema_cluster_read.properties.hosts hosts.Element = AAZStrType() sku = _schema_cluster_read.sku + sku.capacity = AAZIntType() + sku.family = AAZStrType() sku.name = AAZStrType( flags={"required": True}, ) + sku.size = AAZStrType() + sku.tier = AAZStrType() + + system_data = _schema_cluster_read.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) _schema.id = cls._schema_cluster_read.id _schema.name = cls._schema_cluster_read.name _schema.properties = cls._schema_cluster_read.properties _schema.sku = cls._schema_cluster_read.sku + _schema.system_data = cls._schema_cluster_read.system_data _schema.type = cls._schema_cluster_read.type diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/cluster/_wait.py b/src/vmware/azext_vmware/aaz/latest/vmware/cluster/_wait.py index adf8fc75424..99d7f44360f 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/cluster/_wait.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/cluster/_wait.py @@ -20,7 +20,7 @@ class Wait(AAZWaitCommand): _aaz_info = { "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/clusters/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/clusters/{}", "2023-09-01"], ] } @@ -51,7 +51,7 @@ def _build_arguments_schema(cls, *args, **kwargs): ) _args_schema.private_cloud = AAZStrArg( options=["-c", "--private-cloud"], - help="The name of the private cloud.", + help="Name of the private cloud", required=True, id_part="name", fmt=AAZStrArgFormat( @@ -132,7 +132,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -177,6 +177,10 @@ def _build_schema_on_200(cls): _schema_on_200.sku = AAZObjectType( flags={"required": True}, ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) @@ -194,14 +198,41 @@ def _build_schema_on_200(cls): serialized_name="provisioningState", flags={"read_only": True}, ) + properties.vsan_datastore_name = AAZStrType( + serialized_name="vsanDatastoreName", + ) hosts = cls._schema_on_200.properties.hosts hosts.Element = AAZStrType() sku = cls._schema_on_200.sku + sku.capacity = AAZIntType() + sku.family = AAZStrType() sku.name = AAZStrType( flags={"required": True}, ) + sku.size = AAZStrType() + sku.tier = AAZStrType() + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/datastore/_create.py b/src/vmware/azext_vmware/aaz/latest/vmware/datastore/_create.py index 6b152cdaeb9..10825fd54dd 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/datastore/_create.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/datastore/_create.py @@ -16,9 +16,9 @@ class Create(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/clusters/{}/datastores/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/clusters/{}/datastores/{}", "2023-09-01"], ] } @@ -88,11 +88,20 @@ def _build_arguments_schema(cls, *args, **kwargs): help="Azure resource ID of the iSCSI target", ) + # define Arg Group "ElasticSanVolume" + + _args_schema = cls._args_schema + _args_schema.elastic_san_volume = AAZResourceIdArg( + options=["--elastic-san-volume"], + arg_group="ElasticSanVolume", + help="Azure resource ID of the Elastic SAN Volume", + ) + # define Arg Group "NetAppVolume" _args_schema = cls._args_schema - _args_schema.net_app_volumn = AAZStrArg( - options=["--volume-id", "--net-app-volumn"], + _args_schema.net_app_volume = AAZStrArg( + options=["--volume-id", "--net-app-volume"], arg_group="NetAppVolume", help="Azure resource ID of the NetApp volume", ) @@ -187,7 +196,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -217,6 +226,7 @@ def content(self): properties = _builder.get(".properties") if properties is not None: properties.set_prop("diskPoolVolume", AAZObjectType) + properties.set_prop("elasticSanVolume", AAZObjectType) properties.set_prop("netAppVolume", AAZObjectType) disk_pool_volume = _builder.get(".properties.diskPoolVolume") @@ -225,9 +235,13 @@ def content(self): disk_pool_volume.set_prop("mountOption", AAZStrType, ".mount_option") disk_pool_volume.set_prop("targetId", AAZStrType, ".target_id", typ_kwargs={"flags": {"required": True}}) + elastic_san_volume = _builder.get(".properties.elasticSanVolume") + if elastic_san_volume is not None: + elastic_san_volume.set_prop("targetId", AAZStrType, ".elastic_san_volume", typ_kwargs={"flags": {"required": True}}) + net_app_volume = _builder.get(".properties.netAppVolume") if net_app_volume is not None: - net_app_volume.set_prop("id", AAZStrType, ".net_app_volumn", typ_kwargs={"flags": {"required": True}}) + net_app_volume.set_prop("id", AAZStrType, ".net_app_volume", typ_kwargs={"flags": {"required": True}}) return self.serialize_content(_content_value) @@ -258,6 +272,10 @@ def _build_schema_on_200_201(cls): _schema_on_200_201.properties = AAZObjectType( flags={"client_flatten": True}, ) + _schema_on_200_201.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _schema_on_200_201.type = AAZStrType( flags={"read_only": True}, ) @@ -266,6 +284,9 @@ def _build_schema_on_200_201(cls): properties.disk_pool_volume = AAZObjectType( serialized_name="diskPoolVolume", ) + properties.elastic_san_volume = AAZObjectType( + serialized_name="elasticSanVolume", + ) properties.net_app_volume = AAZObjectType( serialized_name="netAppVolume", ) @@ -273,9 +294,7 @@ def _build_schema_on_200_201(cls): serialized_name="provisioningState", flags={"read_only": True}, ) - properties.status = AAZStrType( - flags={"read_only": True}, - ) + properties.status = AAZStrType() disk_pool_volume = cls._schema_on_200_201.properties.disk_pool_volume disk_pool_volume.lun_name = AAZStrType( @@ -293,11 +312,37 @@ def _build_schema_on_200_201(cls): flags={"required": True}, ) + elastic_san_volume = cls._schema_on_200_201.properties.elastic_san_volume + elastic_san_volume.target_id = AAZStrType( + serialized_name="targetId", + flags={"required": True}, + ) + net_app_volume = cls._schema_on_200_201.properties.net_app_volume net_app_volume.id = AAZStrType( flags={"required": True}, ) + system_data = cls._schema_on_200_201.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200_201 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/datastore/_delete.py b/src/vmware/azext_vmware/aaz/latest/vmware/datastore/_delete.py index b9f27f39f68..c3d8283d4d5 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/datastore/_delete.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/datastore/_delete.py @@ -20,9 +20,9 @@ class Delete(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/clusters/{}/datastores/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/clusters/{}/datastores/{}", "2023-09-01"], ] } @@ -100,7 +100,7 @@ def __call__(self, *args, **kwargs): session, self.on_200, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [200]: @@ -109,7 +109,7 @@ def __call__(self, *args, **kwargs): session, self.on_200, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [204]: @@ -118,7 +118,7 @@ def __call__(self, *args, **kwargs): session, self.on_204, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) @@ -169,7 +169,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/datastore/_list.py b/src/vmware/azext_vmware/aaz/latest/vmware/datastore/_list.py index f41661d8451..7c9b2b21f4f 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/datastore/_list.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/datastore/_list.py @@ -19,9 +19,9 @@ class List(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/clusters/{}/datastores", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/clusters/{}/datastores", "2023-09-01"], ] } @@ -133,7 +133,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -168,10 +168,9 @@ def _build_schema_on_200(cls): _schema_on_200 = cls._schema_on_200 _schema_on_200.next_link = AAZStrType( serialized_name="nextLink", - flags={"read_only": True}, ) _schema_on_200.value = AAZListType( - flags={"read_only": True}, + flags={"required": True}, ) value = cls._schema_on_200.value @@ -187,6 +186,10 @@ def _build_schema_on_200(cls): _element.properties = AAZObjectType( flags={"client_flatten": True}, ) + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _element.type = AAZStrType( flags={"read_only": True}, ) @@ -195,6 +198,9 @@ def _build_schema_on_200(cls): properties.disk_pool_volume = AAZObjectType( serialized_name="diskPoolVolume", ) + properties.elastic_san_volume = AAZObjectType( + serialized_name="elasticSanVolume", + ) properties.net_app_volume = AAZObjectType( serialized_name="netAppVolume", ) @@ -202,9 +208,7 @@ def _build_schema_on_200(cls): serialized_name="provisioningState", flags={"read_only": True}, ) - properties.status = AAZStrType( - flags={"read_only": True}, - ) + properties.status = AAZStrType() disk_pool_volume = cls._schema_on_200.value.Element.properties.disk_pool_volume disk_pool_volume.lun_name = AAZStrType( @@ -222,11 +226,37 @@ def _build_schema_on_200(cls): flags={"required": True}, ) + elastic_san_volume = cls._schema_on_200.value.Element.properties.elastic_san_volume + elastic_san_volume.target_id = AAZStrType( + serialized_name="targetId", + flags={"required": True}, + ) + net_app_volume = cls._schema_on_200.value.Element.properties.net_app_volume net_app_volume.id = AAZStrType( flags={"required": True}, ) + system_data = cls._schema_on_200.value.Element.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/datastore/_show.py b/src/vmware/azext_vmware/aaz/latest/vmware/datastore/_show.py index 2bdd3d2a6b6..f043c389c95 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/datastore/_show.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/datastore/_show.py @@ -19,9 +19,9 @@ class Show(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/clusters/{}/datastores/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/clusters/{}/datastores/{}", "2023-09-01"], ] } @@ -146,7 +146,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -188,6 +188,10 @@ def _build_schema_on_200(cls): _schema_on_200.properties = AAZObjectType( flags={"client_flatten": True}, ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) @@ -196,6 +200,9 @@ def _build_schema_on_200(cls): properties.disk_pool_volume = AAZObjectType( serialized_name="diskPoolVolume", ) + properties.elastic_san_volume = AAZObjectType( + serialized_name="elasticSanVolume", + ) properties.net_app_volume = AAZObjectType( serialized_name="netAppVolume", ) @@ -203,9 +210,7 @@ def _build_schema_on_200(cls): serialized_name="provisioningState", flags={"read_only": True}, ) - properties.status = AAZStrType( - flags={"read_only": True}, - ) + properties.status = AAZStrType() disk_pool_volume = cls._schema_on_200.properties.disk_pool_volume disk_pool_volume.lun_name = AAZStrType( @@ -223,11 +228,37 @@ def _build_schema_on_200(cls): flags={"required": True}, ) + elastic_san_volume = cls._schema_on_200.properties.elastic_san_volume + elastic_san_volume.target_id = AAZStrType( + serialized_name="targetId", + flags={"required": True}, + ) + net_app_volume = cls._schema_on_200.properties.net_app_volume net_app_volume.id = AAZStrType( flags={"required": True}, ) + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/datastore/_wait.py b/src/vmware/azext_vmware/aaz/latest/vmware/datastore/_wait.py index ab439e2af12..d4b440656b4 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/datastore/_wait.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/datastore/_wait.py @@ -20,7 +20,7 @@ class Wait(AAZWaitCommand): _aaz_info = { "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/clusters/{}/datastores/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/clusters/{}/datastores/{}", "2023-09-01"], ] } @@ -145,7 +145,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -187,6 +187,10 @@ def _build_schema_on_200(cls): _schema_on_200.properties = AAZObjectType( flags={"client_flatten": True}, ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) @@ -195,6 +199,9 @@ def _build_schema_on_200(cls): properties.disk_pool_volume = AAZObjectType( serialized_name="diskPoolVolume", ) + properties.elastic_san_volume = AAZObjectType( + serialized_name="elasticSanVolume", + ) properties.net_app_volume = AAZObjectType( serialized_name="netAppVolume", ) @@ -202,9 +209,7 @@ def _build_schema_on_200(cls): serialized_name="provisioningState", flags={"read_only": True}, ) - properties.status = AAZStrType( - flags={"read_only": True}, - ) + properties.status = AAZStrType() disk_pool_volume = cls._schema_on_200.properties.disk_pool_volume disk_pool_volume.lun_name = AAZStrType( @@ -222,11 +227,37 @@ def _build_schema_on_200(cls): flags={"required": True}, ) + elastic_san_volume = cls._schema_on_200.properties.elastic_san_volume + elastic_san_volume.target_id = AAZStrType( + serialized_name="targetId", + flags={"required": True}, + ) + net_app_volume = cls._schema_on_200.properties.net_app_volume net_app_volume.id = AAZStrType( flags={"required": True}, ) + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/global_reach_connection/_create.py b/src/vmware/azext_vmware/aaz/latest/vmware/global_reach_connection/_create.py index 8aa3b996540..a0a16a8b364 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/global_reach_connection/_create.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/global_reach_connection/_create.py @@ -19,9 +19,9 @@ class Create(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/globalreachconnections/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/globalreachconnections/{}", "2023-09-01"], ] } @@ -52,8 +52,11 @@ def _build_arguments_schema(cls, *args, **kwargs): ) _args_schema.private_cloud = AAZStrArg( options=["-c", "--private-cloud"], - help="The name of the private cloud.", + help="Name of the private cloud", required=True, + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), ) _args_schema.resource_group = AAZResourceGroupNameArg( required=True, @@ -164,7 +167,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -226,6 +229,10 @@ def _build_schema_on_200_201(cls): _schema_on_200_201.properties = AAZObjectType( flags={"client_flatten": True}, ) + _schema_on_200_201.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _schema_on_200_201.type = AAZStrType( flags={"read_only": True}, ) @@ -240,7 +247,6 @@ def _build_schema_on_200_201(cls): ) properties.circuit_connection_status = AAZStrType( serialized_name="circuitConnectionStatus", - flags={"read_only": True}, ) properties.express_route_id = AAZStrType( serialized_name="expressRouteId", @@ -253,6 +259,26 @@ def _build_schema_on_200_201(cls): flags={"read_only": True}, ) + system_data = cls._schema_on_200_201.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200_201 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/global_reach_connection/_delete.py b/src/vmware/azext_vmware/aaz/latest/vmware/global_reach_connection/_delete.py index b0fa905a66b..e46614a32ce 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/global_reach_connection/_delete.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/global_reach_connection/_delete.py @@ -20,9 +20,9 @@ class Delete(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/globalreachconnections/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/globalreachconnections/{}", "2023-09-01"], ] } @@ -54,7 +54,7 @@ def _build_arguments_schema(cls, *args, **kwargs): ) _args_schema.private_cloud = AAZStrArg( options=["-c", "--private-cloud"], - help="The name of the private cloud.", + help="Name of the private cloud", required=True, id_part="name", fmt=AAZStrArgFormat( @@ -91,7 +91,7 @@ def __call__(self, *args, **kwargs): session, self.on_200, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [200]: @@ -100,7 +100,7 @@ def __call__(self, *args, **kwargs): session, self.on_200, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [204]: @@ -109,7 +109,7 @@ def __call__(self, *args, **kwargs): session, self.on_204, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) @@ -156,7 +156,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/global_reach_connection/_list.py b/src/vmware/azext_vmware/aaz/latest/vmware/global_reach_connection/_list.py index 1a02a0a2e34..69ead3b0473 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/global_reach_connection/_list.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/global_reach_connection/_list.py @@ -19,9 +19,9 @@ class List(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/globalreachconnections", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/globalreachconnections", "2023-09-01"], ] } @@ -44,7 +44,7 @@ def _build_arguments_schema(cls, *args, **kwargs): _args_schema = cls._args_schema _args_schema.private_cloud = AAZStrArg( options=["-c", "--private-cloud"], - help="The name of the private cloud.", + help="Name of the private cloud", required=True, fmt=AAZStrArgFormat( pattern="^[-\w\._]+$", @@ -121,7 +121,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -156,10 +156,9 @@ def _build_schema_on_200(cls): _schema_on_200 = cls._schema_on_200 _schema_on_200.next_link = AAZStrType( serialized_name="nextLink", - flags={"read_only": True}, ) _schema_on_200.value = AAZListType( - flags={"read_only": True}, + flags={"required": True}, ) value = cls._schema_on_200.value @@ -175,6 +174,10 @@ def _build_schema_on_200(cls): _element.properties = AAZObjectType( flags={"client_flatten": True}, ) + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _element.type = AAZStrType( flags={"read_only": True}, ) @@ -189,7 +192,6 @@ def _build_schema_on_200(cls): ) properties.circuit_connection_status = AAZStrType( serialized_name="circuitConnectionStatus", - flags={"read_only": True}, ) properties.express_route_id = AAZStrType( serialized_name="expressRouteId", @@ -202,6 +204,26 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) + system_data = cls._schema_on_200.value.Element.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/global_reach_connection/_show.py b/src/vmware/azext_vmware/aaz/latest/vmware/global_reach_connection/_show.py index 876f0cc31e7..5c63fa280dc 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/global_reach_connection/_show.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/global_reach_connection/_show.py @@ -19,9 +19,9 @@ class Show(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/globalreachconnections/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/globalreachconnections/{}", "2023-09-01"], ] } @@ -52,7 +52,7 @@ def _build_arguments_schema(cls, *args, **kwargs): ) _args_schema.private_cloud = AAZStrArg( options=["-c", "--private-cloud"], - help="The name of the private cloud.", + help="Name of the private cloud", required=True, id_part="name", fmt=AAZStrArgFormat( @@ -133,7 +133,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -175,6 +175,10 @@ def _build_schema_on_200(cls): _schema_on_200.properties = AAZObjectType( flags={"client_flatten": True}, ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) @@ -189,7 +193,6 @@ def _build_schema_on_200(cls): ) properties.circuit_connection_status = AAZStrType( serialized_name="circuitConnectionStatus", - flags={"read_only": True}, ) properties.express_route_id = AAZStrType( serialized_name="expressRouteId", @@ -202,6 +205,26 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/global_reach_connection/_wait.py b/src/vmware/azext_vmware/aaz/latest/vmware/global_reach_connection/_wait.py index 574891b33e6..d2e7a7b5f7f 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/global_reach_connection/_wait.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/global_reach_connection/_wait.py @@ -20,7 +20,7 @@ class Wait(AAZWaitCommand): _aaz_info = { "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/globalreachconnections/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/globalreachconnections/{}", "2023-09-01"], ] } @@ -51,7 +51,7 @@ def _build_arguments_schema(cls, *args, **kwargs): ) _args_schema.private_cloud = AAZStrArg( options=["-c", "--private-cloud"], - help="The name of the private cloud.", + help="Name of the private cloud", required=True, id_part="name", fmt=AAZStrArgFormat( @@ -132,7 +132,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -174,6 +174,10 @@ def _build_schema_on_200(cls): _schema_on_200.properties = AAZObjectType( flags={"client_flatten": True}, ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) @@ -188,7 +192,6 @@ def _build_schema_on_200(cls): ) properties.circuit_connection_status = AAZStrType( serialized_name="circuitConnectionStatus", - flags={"read_only": True}, ) properties.express_route_id = AAZStrType( serialized_name="expressRouteId", @@ -201,6 +204,26 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/hcx_enterprise_site/_create.py b/src/vmware/azext_vmware/aaz/latest/vmware/hcx_enterprise_site/_create.py index 9924ce5ead4..d381108eb85 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/hcx_enterprise_site/_create.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/hcx_enterprise_site/_create.py @@ -19,9 +19,9 @@ class Create(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/hcxenterprisesites/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/hcxenterprisesites/{}", "2023-09-01"], ] } @@ -51,8 +51,11 @@ def _build_arguments_schema(cls, *args, **kwargs): ) _args_schema.private_cloud = AAZStrArg( options=["-c", "--private-cloud"], - help="The name of the private cloud.", + help="Name of the private cloud", required=True, + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), ) _args_schema.resource_group = AAZResourceGroupNameArg( required=True, @@ -128,7 +131,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -183,6 +186,10 @@ def _build_schema_on_200_201(cls): _schema_on_200_201.properties = AAZObjectType( flags={"client_flatten": True}, ) + _schema_on_200_201.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _schema_on_200_201.type = AAZStrType( flags={"read_only": True}, ) @@ -192,9 +199,31 @@ def _build_schema_on_200_201(cls): serialized_name="activationKey", flags={"read_only": True}, ) - properties.status = AAZStrType( + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", flags={"read_only": True}, ) + properties.status = AAZStrType() + + system_data = cls._schema_on_200_201.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) return cls._schema_on_200_201 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/hcx_enterprise_site/_delete.py b/src/vmware/azext_vmware/aaz/latest/vmware/hcx_enterprise_site/_delete.py index 12a9fa38313..a165f9c4b85 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/hcx_enterprise_site/_delete.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/hcx_enterprise_site/_delete.py @@ -20,9 +20,9 @@ class Delete(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/hcxenterprisesites/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/hcxenterprisesites/{}", "2023-09-01"], ] } @@ -53,7 +53,7 @@ def _build_arguments_schema(cls, *args, **kwargs): ) _args_schema.private_cloud = AAZStrArg( options=["-c", "--private-cloud"], - help="The name of the private cloud.", + help="Name of the private cloud", required=True, id_part="name", fmt=AAZStrArgFormat( @@ -132,7 +132,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/hcx_enterprise_site/_list.py b/src/vmware/azext_vmware/aaz/latest/vmware/hcx_enterprise_site/_list.py index 6071980e271..076f597edd1 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/hcx_enterprise_site/_list.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/hcx_enterprise_site/_list.py @@ -19,9 +19,9 @@ class List(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/hcxenterprisesites", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/hcxenterprisesites", "2023-09-01"], ] } @@ -44,7 +44,7 @@ def _build_arguments_schema(cls, *args, **kwargs): _args_schema = cls._args_schema _args_schema.private_cloud = AAZStrArg( options=["-c", "--private-cloud"], - help="The name of the private cloud.", + help="Name of the private cloud", required=True, fmt=AAZStrArgFormat( pattern="^[-\w\._]+$", @@ -121,7 +121,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -156,10 +156,9 @@ def _build_schema_on_200(cls): _schema_on_200 = cls._schema_on_200 _schema_on_200.next_link = AAZStrType( serialized_name="nextLink", - flags={"read_only": True}, ) _schema_on_200.value = AAZListType( - flags={"read_only": True}, + flags={"required": True}, ) value = cls._schema_on_200.value @@ -175,6 +174,10 @@ def _build_schema_on_200(cls): _element.properties = AAZObjectType( flags={"client_flatten": True}, ) + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _element.type = AAZStrType( flags={"read_only": True}, ) @@ -184,9 +187,31 @@ def _build_schema_on_200(cls): serialized_name="activationKey", flags={"read_only": True}, ) - properties.status = AAZStrType( + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", flags={"read_only": True}, ) + properties.status = AAZStrType() + + system_data = cls._schema_on_200.value.Element.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/hcx_enterprise_site/_show.py b/src/vmware/azext_vmware/aaz/latest/vmware/hcx_enterprise_site/_show.py index 90dd6f1cc85..cf6a68fa0a2 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/hcx_enterprise_site/_show.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/hcx_enterprise_site/_show.py @@ -19,9 +19,9 @@ class Show(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/hcxenterprisesites/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/hcxenterprisesites/{}", "2023-09-01"], ] } @@ -52,7 +52,7 @@ def _build_arguments_schema(cls, *args, **kwargs): ) _args_schema.private_cloud = AAZStrArg( options=["-c", "--private-cloud"], - help="The name of the private cloud.", + help="Name of the private cloud", required=True, id_part="name", fmt=AAZStrArgFormat( @@ -133,7 +133,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -175,6 +175,10 @@ def _build_schema_on_200(cls): _schema_on_200.properties = AAZObjectType( flags={"client_flatten": True}, ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) @@ -184,9 +188,31 @@ def _build_schema_on_200(cls): serialized_name="activationKey", flags={"read_only": True}, ) - properties.status = AAZStrType( + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", flags={"read_only": True}, ) + properties.status = AAZStrType() + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/iscsi_path/__cmd_group.py b/src/vmware/azext_vmware/aaz/latest/vmware/iscsi_path/__cmd_group.py new file mode 100644 index 00000000000..7a794bbb4e9 --- /dev/null +++ b/src/vmware/azext_vmware/aaz/latest/vmware/iscsi_path/__cmd_group.py @@ -0,0 +1,23 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command_group( + "vmware iscsi-path", +) +class __CMDGroup(AAZCommandGroup): + """Commands to manage IscsiPath resources in a private cloud. + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/iscsi_path/__init__.py b/src/vmware/azext_vmware/aaz/latest/vmware/iscsi_path/__init__.py new file mode 100644 index 00000000000..2d1a2078686 --- /dev/null +++ b/src/vmware/azext_vmware/aaz/latest/vmware/iscsi_path/__init__.py @@ -0,0 +1,16 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from .__cmd_group import * +from ._create import * +from ._delete import * +from ._list import * +from ._show import * +from ._wait import * diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/iscsi_path/_create.py b/src/vmware/azext_vmware/aaz/latest/vmware/iscsi_path/_create.py new file mode 100644 index 00000000000..7f45d15a0ed --- /dev/null +++ b/src/vmware/azext_vmware/aaz/latest/vmware/iscsi_path/_create.py @@ -0,0 +1,253 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "vmware iscsi-path create", +) +class Create(AAZCommand): + """Create an IscsiPath in a private cloud + """ + + _aaz_info = { + "version": "2023-09-01", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/iscsipaths/default", "2023-09-01"], + ] + } + + AZ_SUPPORT_NO_WAIT = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_lro_poller(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.private_cloud = AAZStrArg( + options=["-c", "--private-cloud"], + help="Name of the private cloud", + required=True, + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.network_block = AAZStrArg( + options=["--network-block"], + arg_group="Properties", + help="CIDR Block for iSCSI path.", + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + yield self.IscsiPathsCreateOrUpdate(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class IscsiPathsCreateOrUpdate(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [202]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + if session.http_response.status_code in [200, 201]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths/default", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "privateCloudName", self.ctx.args.private_cloud, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2023-09-01", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + typ=AAZObjectType, + typ_kwargs={"flags": {"required": True, "client_flatten": True}} + ) + _builder.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("networkBlock", AAZStrType, ".network_block", typ_kwargs={"flags": {"required": True}}) + + return self.serialize_content(_content_value) + + def on_200_201(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200_201 + ) + + _schema_on_200_201 = None + + @classmethod + def _build_schema_on_200_201(cls): + if cls._schema_on_200_201 is not None: + return cls._schema_on_200_201 + + cls._schema_on_200_201 = AAZObjectType() + + _schema_on_200_201 = cls._schema_on_200_201 + _schema_on_200_201.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200_201.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200_201.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _schema_on_200_201.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200_201.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200_201.properties + properties.network_block = AAZStrType( + serialized_name="networkBlock", + flags={"required": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + + system_data = cls._schema_on_200_201.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + return cls._schema_on_200_201 + + +class _CreateHelper: + """Helper class for Create""" + + +__all__ = ["Create"] diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/iscsi_path/_delete.py b/src/vmware/azext_vmware/aaz/latest/vmware/iscsi_path/_delete.py new file mode 100644 index 00000000000..35753064b83 --- /dev/null +++ b/src/vmware/azext_vmware/aaz/latest/vmware/iscsi_path/_delete.py @@ -0,0 +1,163 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "vmware iscsi-path delete", + confirmation="Are you sure you want to perform this operation?", +) +class Delete(AAZCommand): + """Delete an IscsiPath in a private cloud + """ + + _aaz_info = { + "version": "2023-09-01", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/iscsipaths/default", "2023-09-01"], + ] + } + + AZ_SUPPORT_NO_WAIT = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_lro_poller(self._execute_operations, None) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.private_cloud = AAZStrArg( + options=["-c", "--private-cloud"], + help="Name of the private cloud", + required=True, + id_part="name", + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + yield self.IscsiPathsDelete(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + class IscsiPathsDelete(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [202]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200, + self.on_error, + lro_options={"final-state-via": "location"}, + path_format_arguments=self.url_parameters, + ) + if session.http_response.status_code in [200]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200, + self.on_error, + lro_options={"final-state-via": "location"}, + path_format_arguments=self.url_parameters, + ) + if session.http_response.status_code in [204]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_204, + self.on_error, + lro_options={"final-state-via": "location"}, + path_format_arguments=self.url_parameters, + ) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths/default", + **self.url_parameters + ) + + @property + def method(self): + return "DELETE" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "privateCloudName", self.ctx.args.private_cloud, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2023-09-01", + required=True, + ), + } + return parameters + + def on_200(self, session): + pass + + def on_204(self, session): + pass + + +class _DeleteHelper: + """Helper class for Delete""" + + +__all__ = ["Delete"] diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/iscsi_path/_list.py b/src/vmware/azext_vmware/aaz/latest/vmware/iscsi_path/_list.py new file mode 100644 index 00000000000..1f99a33429d --- /dev/null +++ b/src/vmware/azext_vmware/aaz/latest/vmware/iscsi_path/_list.py @@ -0,0 +1,222 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "vmware iscsi-path list", +) +class List(AAZCommand): + """List IscsiPath resources in a private cloud + """ + + _aaz_info = { + "version": "2023-09-01", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/iscsipaths", "2023-09-01"], + ] + } + + AZ_SUPPORT_PAGINATION = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_paging(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.private_cloud = AAZStrArg( + options=["-c", "--private-cloud"], + help="Name of the private cloud", + required=True, + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.IscsiPathsListByPrivateCloud(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True) + next_link = self.deserialize_output(self.ctx.vars.instance.next_link) + return result, next_link + + class IscsiPathsListByPrivateCloud(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "privateCloudName", self.ctx.args.private_cloud, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2023-09-01", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.next_link = AAZStrType( + serialized_name="nextLink", + ) + _schema_on_200.value = AAZListType( + flags={"required": True}, + ) + + value = cls._schema_on_200.value + value.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.value.Element.properties + properties.network_block = AAZStrType( + serialized_name="networkBlock", + flags={"required": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + + system_data = cls._schema_on_200.value.Element.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + return cls._schema_on_200 + + +class _ListHelper: + """Helper class for List""" + + +__all__ = ["List"] diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/iscsi_path/_show.py b/src/vmware/azext_vmware/aaz/latest/vmware/iscsi_path/_show.py new file mode 100644 index 00000000000..9a28948eedc --- /dev/null +++ b/src/vmware/azext_vmware/aaz/latest/vmware/iscsi_path/_show.py @@ -0,0 +1,210 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "vmware iscsi-path show", +) +class Show(AAZCommand): + """Get an IscsiPath in a private cloud + """ + + _aaz_info = { + "version": "2023-09-01", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/iscsipaths/default", "2023-09-01"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.private_cloud = AAZStrArg( + options=["-c", "--private-cloud"], + help="Name of the private cloud", + required=True, + id_part="name", + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.IscsiPathsGet(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class IscsiPathsGet(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths/default", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "privateCloudName", self.ctx.args.private_cloud, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2023-09-01", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties + properties.network_block = AAZStrType( + serialized_name="networkBlock", + flags={"required": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + return cls._schema_on_200 + + +class _ShowHelper: + """Helper class for Show""" + + +__all__ = ["Show"] diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/iscsi_path/_wait.py b/src/vmware/azext_vmware/aaz/latest/vmware/iscsi_path/_wait.py new file mode 100644 index 00000000000..dd8e43e50f6 --- /dev/null +++ b/src/vmware/azext_vmware/aaz/latest/vmware/iscsi_path/_wait.py @@ -0,0 +1,209 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "vmware iscsi-path wait", +) +class Wait(AAZWaitCommand): + """Place the CLI in a waiting state until a condition is met. + """ + + _aaz_info = { + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/iscsipaths/default", "2023-09-01"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.private_cloud = AAZStrArg( + options=["-c", "--private-cloud"], + help="Name of the private cloud", + required=True, + id_part="name", + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.IscsiPathsGet(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=False) + return result + + class IscsiPathsGet(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths/default", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "privateCloudName", self.ctx.args.private_cloud, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2023-09-01", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties + properties.network_block = AAZStrType( + serialized_name="networkBlock", + flags={"required": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + return cls._schema_on_200 + + +class _WaitHelper: + """Helper class for Wait""" + + +__all__ = ["Wait"] diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/location/_check_quota_availability.py b/src/vmware/azext_vmware/aaz/latest/vmware/location/_check_quota_availability.py index 063fc012b74..25f31a20f7d 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/location/_check_quota_availability.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/location/_check_quota_availability.py @@ -19,9 +19,9 @@ class CheckQuotaAvailability(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/providers/microsoft.avs/locations/{}/checkquotaavailability", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.avs/locations/{}/checkquotaavailability", "2023-09-01"], ] } @@ -108,7 +108,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -147,13 +147,10 @@ def _build_schema_on_200(cls): ) _schema_on_200.quota_enabled = AAZStrType( serialized_name="quotaEnabled", - flags={"read_only": True}, ) hosts_remaining = cls._schema_on_200.hosts_remaining - hosts_remaining.Element = AAZIntType( - flags={"read_only": True}, - ) + hosts_remaining.Element = AAZIntType() return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/location/_check_trial_availability.py b/src/vmware/azext_vmware/aaz/latest/vmware/location/_check_trial_availability.py index 40b1e646edd..42fce7cedfe 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/location/_check_trial_availability.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/location/_check_trial_availability.py @@ -19,9 +19,9 @@ class CheckTrialAvailability(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/providers/microsoft.avs/locations/{}/checktrialavailability", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.avs/locations/{}/checktrialavailability", "2023-09-01"], ] } @@ -52,7 +52,7 @@ def _build_arguments_schema(cls, *args, **kwargs): _args_schema.sku = AAZStrArg( options=["--sku"], arg_group="Sku", - help="The name of the SKU.", + help="The name of the SKU. E.g. P3. It is typically a letter+number code", ) return cls._args_schema @@ -117,7 +117,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -168,9 +168,7 @@ def _build_schema_on_200(cls): serialized_name="availableHosts", flags={"read_only": True}, ) - _schema_on_200.status = AAZStrType( - flags={"read_only": True}, - ) + _schema_on_200.status = AAZStrType() return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/placement_policy/_create.py b/src/vmware/azext_vmware/aaz/latest/vmware/placement_policy/_create.py index f46ef7990e1..5c03bbe11ef 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/placement_policy/_create.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/placement_policy/_create.py @@ -16,9 +16,9 @@ class Create(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/clusters/{}/placementpolicies/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/clusters/{}/placementpolicies/{}", "2023-09-01"], ] } @@ -232,7 +232,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -320,6 +320,10 @@ def _build_schema_on_200_201(cls): flags={"read_only": True}, ) _schema_on_200_201.properties = AAZObjectType() + _schema_on_200_201.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _schema_on_200_201.type = AAZStrType( flags={"read_only": True}, ) @@ -376,6 +380,26 @@ def _build_schema_on_200_201(cls): vm_members = cls._schema_on_200_201.properties.discriminate_by("type", "VmVm").vm_members vm_members.Element = AAZStrType() + system_data = cls._schema_on_200_201.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200_201 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/placement_policy/_delete.py b/src/vmware/azext_vmware/aaz/latest/vmware/placement_policy/_delete.py index 763725b7fda..87f8e8a915c 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/placement_policy/_delete.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/placement_policy/_delete.py @@ -16,9 +16,9 @@ class Delete(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/clusters/{}/placementpolicies/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/clusters/{}/placementpolicies/{}", "2023-09-01"], ] } @@ -96,7 +96,7 @@ def __call__(self, *args, **kwargs): session, self.on_200, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [200]: @@ -105,7 +105,7 @@ def __call__(self, *args, **kwargs): session, self.on_200, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [204]: @@ -114,7 +114,7 @@ def __call__(self, *args, **kwargs): session, self.on_204, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) @@ -165,7 +165,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/placement_policy/_list.py b/src/vmware/azext_vmware/aaz/latest/vmware/placement_policy/_list.py index 1ccb8aad5fd..011a633cd57 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/placement_policy/_list.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/placement_policy/_list.py @@ -22,9 +22,9 @@ class List(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/clusters/{}/placementpolicies", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/clusters/{}/placementpolicies", "2023-09-01"], ] } @@ -136,7 +136,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -171,10 +171,9 @@ def _build_schema_on_200(cls): _schema_on_200 = cls._schema_on_200 _schema_on_200.next_link = AAZStrType( serialized_name="nextLink", - flags={"read_only": True}, ) _schema_on_200.value = AAZListType( - flags={"read_only": True}, + flags={"required": True}, ) value = cls._schema_on_200.value @@ -188,6 +187,10 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) _element.properties = AAZObjectType() + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _element.type = AAZStrType( flags={"read_only": True}, ) @@ -244,6 +247,26 @@ def _build_schema_on_200(cls): vm_members = cls._schema_on_200.value.Element.properties.discriminate_by("type", "VmVm").vm_members vm_members.Element = AAZStrType() + system_data = cls._schema_on_200.value.Element.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/placement_policy/_show.py b/src/vmware/azext_vmware/aaz/latest/vmware/placement_policy/_show.py index fb06a55deb2..457b8b2acc6 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/placement_policy/_show.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/placement_policy/_show.py @@ -22,9 +22,9 @@ class Show(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/clusters/{}/placementpolicies/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/clusters/{}/placementpolicies/{}", "2023-09-01"], ] } @@ -149,7 +149,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -189,6 +189,10 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) _schema_on_200.properties = AAZObjectType() + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) @@ -245,6 +249,26 @@ def _build_schema_on_200(cls): vm_members = cls._schema_on_200.properties.discriminate_by("type", "VmVm").vm_members vm_members.Element = AAZStrType() + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/placement_policy/_update.py b/src/vmware/azext_vmware/aaz/latest/vmware/placement_policy/_update.py index 7384658650a..3b77569ccf2 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/placement_policy/_update.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/placement_policy/_update.py @@ -16,9 +16,9 @@ class Update(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/clusters/{}/placementpolicies/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/clusters/{}/placementpolicies/{}", "2023-09-01"], ] } @@ -229,7 +229,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -336,7 +336,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -450,6 +450,7 @@ def _build_schema_placement_policy_read(cls, _schema): _schema.id = cls._schema_placement_policy_read.id _schema.name = cls._schema_placement_policy_read.name _schema.properties = cls._schema_placement_policy_read.properties + _schema.system_data = cls._schema_placement_policy_read.system_data _schema.type = cls._schema_placement_policy_read.type return @@ -463,6 +464,10 @@ def _build_schema_placement_policy_read(cls, _schema): flags={"read_only": True}, ) placement_policy_read.properties = AAZObjectType() + placement_policy_read.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) placement_policy_read.type = AAZStrType( flags={"read_only": True}, ) @@ -519,9 +524,30 @@ def _build_schema_placement_policy_read(cls, _schema): vm_members = _schema_placement_policy_read.properties.discriminate_by("type", "VmVm").vm_members vm_members.Element = AAZStrType() + system_data = _schema_placement_policy_read.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + _schema.id = cls._schema_placement_policy_read.id _schema.name = cls._schema_placement_policy_read.name _schema.properties = cls._schema_placement_policy_read.properties + _schema.system_data = cls._schema_placement_policy_read.system_data _schema.type = cls._schema_placement_policy_read.type diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/private_cloud/__init__.py b/src/vmware/azext_vmware/aaz/latest/vmware/private_cloud/__init__.py index b76f7caa1f9..e1ed204541c 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/private_cloud/__init__.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/private_cloud/__init__.py @@ -13,6 +13,7 @@ from ._delete import * from ._list import * from ._list_admin_credentials import * +from ._rotate_nsxt_password import * from ._rotate_vcenter_password import * from ._show import * from ._update import * diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/private_cloud/_create.py b/src/vmware/azext_vmware/aaz/latest/vmware/private_cloud/_create.py index b6363c3dafd..39ad0ed3d00 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/private_cloud/_create.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/private_cloud/_create.py @@ -20,9 +20,9 @@ class Create(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}", "2023-09-01"], ] } @@ -82,7 +82,6 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["--cluster-size"], arg_group="ManagementCluster", help="Number of hosts for the default management cluster. Minimum of 3 and maximum of 16.", - required=True, ) # define Arg Group "PrivateCloud" @@ -91,11 +90,11 @@ def _build_arguments_schema(cls, *args, **kwargs): _args_schema.identity = AAZObjectArg( options=["--identity"], arg_group="PrivateCloud", - help="The identity of the private cloud, if configured.", + help="The managed service identities assigned to this resource.", ) _args_schema.location = AAZResourceLocationArg( arg_group="PrivateCloud", - help="Resource location", + help="The geo-location where the resource lives", required=True, fmt=AAZResourceLocationArgFormat( resource_group_arg="resource_group", @@ -110,7 +109,8 @@ def _build_arguments_schema(cls, *args, **kwargs): identity = cls._args_schema.identity identity.type = AAZStrArg( options=["type"], - help="The type of identity used for the private cloud. The type 'SystemAssigned' refers to an implicitly created identity. The type 'None' will remove any identities from the Private Cloud.", + help="Type of managed service identity (either system assigned, or none).", + required=True, enum={"None": "None", "SystemAssigned": "SystemAssigned"}, ) @@ -136,12 +136,11 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["--network-block"], arg_group="Properties", help="The block of addresses should be unique across VNet in your 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", - required=True, ) _args_schema.nsxt_password = AAZPasswordArg( options=["--nsxt-password"], arg_group="Properties", - help="NSX-T Manager password when the private cloud is created", + help="Optionally, set the NSX-T Manager password when the private cloud is created", blank=AAZPromptPasswordInput( msg="NSX-T Manager Password:", confirm=True, @@ -150,12 +149,17 @@ def _build_arguments_schema(cls, *args, **kwargs): _args_schema.vcenter_password = AAZPasswordArg( options=["--vcenter-password"], arg_group="Properties", - help="vCenter admin password when the private cloud is created", + help="Optionally, set the vCenter admin password when the private cloud is created", blank=AAZPromptPasswordInput( msg="vCenter Admin Password:", confirm=True, ), ) + _args_schema.virtual_network_id = AAZResourceIdArg( + options=["--virtual-network-id"], + arg_group="Properties", + help="Azure resource ID of the virtual network", + ) extended_network_blocks = cls._args_schema.extended_network_blocks extended_network_blocks.Element = AAZStrArg() @@ -166,7 +170,7 @@ def _build_arguments_schema(cls, *args, **kwargs): _args_schema.sku = AAZStrArg( options=["--sku"], arg_group="Sku", - help="The name of the SKU.", + help="The name of the SKU. E.g. P3. It is typically a letter+number code", required=True, ) return cls._args_schema @@ -252,7 +256,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -279,13 +283,13 @@ def content(self): ) _builder.set_prop("identity", AAZObjectType, ".identity") _builder.set_prop("location", AAZStrType, ".location", typ_kwargs={"flags": {"required": True}}) - _builder.set_prop("properties", AAZObjectType, ".", typ_kwargs={"flags": {"required": True, "client_flatten": True}}) + _builder.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) _builder.set_prop("sku", AAZObjectType, ".", typ_kwargs={"flags": {"required": True}}) _builder.set_prop("tags", AAZDictType, ".tags") identity = _builder.get(".identity") if identity is not None: - identity.set_prop("type", AAZStrType, ".type") + identity.set_prop("type", AAZStrType, ".type", typ_kwargs={"flags": {"required": True}}) properties = _builder.get(".properties") if properties is not None: @@ -296,6 +300,7 @@ def content(self): properties.set_prop("networkBlock", AAZStrType, ".network_block", typ_kwargs={"flags": {"required": True}}) properties.set_prop("nsxtPassword", AAZStrType, ".nsxt_password", typ_kwargs={"flags": {"secret": True}}) properties.set_prop("vcenterPassword", AAZStrType, ".vcenter_password", typ_kwargs={"flags": {"secret": True}}) + properties.set_prop("virtualNetworkId", AAZStrType, ".virtual_network_id") availability = _builder.get(".properties.availability") if availability is not None: @@ -309,7 +314,7 @@ def content(self): management_cluster = _builder.get(".properties.managementCluster") if management_cluster is not None: - management_cluster.set_prop("clusterSize", AAZIntType, ".cluster_size", typ_kwargs={"flags": {"required": True}}) + management_cluster.set_prop("clusterSize", AAZIntType, ".cluster_size") sku = _builder.get(".sku") if sku is not None: @@ -350,11 +355,15 @@ def _build_schema_on_200_201(cls): flags={"read_only": True}, ) _schema_on_200_201.properties = AAZObjectType( - flags={"required": True, "client_flatten": True}, + flags={"client_flatten": True}, ) _schema_on_200_201.sku = AAZObjectType( flags={"required": True}, ) + _schema_on_200_201.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _schema_on_200_201.tags = AAZDictType() _schema_on_200_201.type = AAZStrType( flags={"read_only": True}, @@ -369,12 +378,17 @@ def _build_schema_on_200_201(cls): serialized_name="tenantId", flags={"read_only": True}, ) - identity.type = AAZStrType() + identity.type = AAZStrType( + flags={"required": True}, + ) properties = cls._schema_on_200_201.properties properties.availability = AAZObjectType() properties.circuit = AAZObjectType() _CreateHelper._build_schema_circuit_read(properties.circuit) + properties.dns_zone_type = AAZStrType( + serialized_name="dnsZoneType", + ) properties.encryption = AAZObjectType() properties.endpoints = AAZObjectType() properties.extended_network_blocks = AAZListType( @@ -402,7 +416,6 @@ def _build_schema_on_200_201(cls): ) properties.nsx_public_ip_quota_raised = AAZStrType( serialized_name="nsxPublicIpQuotaRaised", - flags={"read_only": True}, ) properties.nsxt_certificate_thumbprint = AAZStrType( serialized_name="nsxtCertificateThumbprint", @@ -432,6 +445,9 @@ def _build_schema_on_200_201(cls): serialized_name="vcenterPassword", flags={"secret": True}, ) + properties.virtual_network_id = AAZStrType( + serialized_name="virtualNetworkId", + ) properties.vmotion_network = AAZStrType( serialized_name="vmotionNetwork", flags={"read_only": True}, @@ -460,7 +476,6 @@ def _build_schema_on_200_201(cls): ) key_vault_properties.key_state = AAZStrType( serialized_name="keyState", - flags={"read_only": True}, ) key_vault_properties.key_vault_url = AAZStrType( serialized_name="keyVaultUrl", @@ -470,7 +485,6 @@ def _build_schema_on_200_201(cls): ) key_vault_properties.version_type = AAZStrType( serialized_name="versionType", - flags={"read_only": True}, ) endpoints = cls._schema_on_200_201.properties.endpoints @@ -478,10 +492,22 @@ def _build_schema_on_200_201(cls): serialized_name="hcxCloudManager", flags={"read_only": True}, ) + endpoints.hcx_cloud_manager_ip = AAZStrType( + serialized_name="hcxCloudManagerIp", + flags={"read_only": True}, + ) endpoints.nsxt_manager = AAZStrType( serialized_name="nsxtManager", flags={"read_only": True}, ) + endpoints.nsxt_manager_ip = AAZStrType( + serialized_name="nsxtManagerIp", + flags={"read_only": True}, + ) + endpoints.vcenter_ip = AAZStrType( + serialized_name="vcenterIp", + flags={"read_only": True}, + ) endpoints.vcsa = AAZStrType( flags={"read_only": True}, ) @@ -496,37 +522,26 @@ def _build_schema_on_200_201(cls): identity_sources.Element = AAZObjectType() _element = cls._schema_on_200_201.properties.identity_sources.Element - _element.alias = AAZStrType( - flags={"required": True}, - ) + _element.alias = AAZStrType() _element.base_group_dn = AAZStrType( serialized_name="baseGroupDN", - flags={"required": True}, ) _element.base_user_dn = AAZStrType( serialized_name="baseUserDN", - flags={"required": True}, - ) - _element.domain = AAZStrType( - flags={"required": True}, - ) - _element.name = AAZStrType( - flags={"required": True}, ) + _element.domain = AAZStrType() + _element.name = AAZStrType() _element.password = AAZStrType( flags={"secret": True}, ) _element.primary_server = AAZStrType( serialized_name="primaryServer", - flags={"required": True}, ) _element.secondary_server = AAZStrType( serialized_name="secondaryServer", ) _element.ssl = AAZStrType() - _element.username = AAZStrType( - flags={"secret": True}, - ) + _element.username = AAZStrType() management_cluster = cls._schema_on_200_201.properties.management_cluster management_cluster.cluster_id = AAZIntType( @@ -535,21 +550,47 @@ def _build_schema_on_200_201(cls): ) management_cluster.cluster_size = AAZIntType( serialized_name="clusterSize", - flags={"required": True}, ) management_cluster.hosts = AAZListType() management_cluster.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) + management_cluster.vsan_datastore_name = AAZStrType( + serialized_name="vsanDatastoreName", + ) hosts = cls._schema_on_200_201.properties.management_cluster.hosts hosts.Element = AAZStrType() sku = cls._schema_on_200_201.sku + sku.capacity = AAZIntType() + sku.family = AAZStrType() sku.name = AAZStrType( flags={"required": True}, ) + sku.size = AAZStrType() + sku.tier = AAZStrType() + + system_data = cls._schema_on_200_201.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) tags = cls._schema_on_200_201.tags tags.Element = AAZStrType() diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/private_cloud/_delete.py b/src/vmware/azext_vmware/aaz/latest/vmware/private_cloud/_delete.py index 4fb2c0b4dfa..73f8cf34c9a 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/private_cloud/_delete.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/private_cloud/_delete.py @@ -20,9 +20,9 @@ class Delete(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}", "2023-09-01"], ] } @@ -82,7 +82,7 @@ def __call__(self, *args, **kwargs): session, self.on_200, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [200]: @@ -91,7 +91,7 @@ def __call__(self, *args, **kwargs): session, self.on_200, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [204]: @@ -100,7 +100,7 @@ def __call__(self, *args, **kwargs): session, self.on_204, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) @@ -143,7 +143,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/private_cloud/_list.py b/src/vmware/azext_vmware/aaz/latest/vmware/private_cloud/_list.py index 2c61a84f9e4..e0a59cf012d 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/private_cloud/_list.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/private_cloud/_list.py @@ -19,10 +19,10 @@ class List(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/providers/microsoft.avs/privateclouds", "2023-03-01"], - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.avs/privateclouds", "2023-09-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds", "2023-09-01"], ] } @@ -113,7 +113,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -148,10 +148,9 @@ def _build_schema_on_200(cls): _schema_on_200 = cls._schema_on_200 _schema_on_200.next_link = AAZStrType( serialized_name="nextLink", - flags={"read_only": True}, ) _schema_on_200.value = AAZListType( - flags={"read_only": True}, + flags={"required": True}, ) value = cls._schema_on_200.value @@ -169,11 +168,15 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) _element.properties = AAZObjectType( - flags={"required": True, "client_flatten": True}, + flags={"client_flatten": True}, ) _element.sku = AAZObjectType( flags={"required": True}, ) + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _element.tags = AAZDictType() _element.type = AAZStrType( flags={"read_only": True}, @@ -188,12 +191,17 @@ def _build_schema_on_200(cls): serialized_name="tenantId", flags={"read_only": True}, ) - identity.type = AAZStrType() + identity.type = AAZStrType( + flags={"required": True}, + ) properties = cls._schema_on_200.value.Element.properties properties.availability = AAZObjectType() properties.circuit = AAZObjectType() _ListHelper._build_schema_circuit_read(properties.circuit) + properties.dns_zone_type = AAZStrType( + serialized_name="dnsZoneType", + ) properties.encryption = AAZObjectType() properties.endpoints = AAZObjectType() properties.extended_network_blocks = AAZListType( @@ -221,7 +229,6 @@ def _build_schema_on_200(cls): ) properties.nsx_public_ip_quota_raised = AAZStrType( serialized_name="nsxPublicIpQuotaRaised", - flags={"read_only": True}, ) properties.nsxt_certificate_thumbprint = AAZStrType( serialized_name="nsxtCertificateThumbprint", @@ -251,6 +258,9 @@ def _build_schema_on_200(cls): serialized_name="vcenterPassword", flags={"secret": True}, ) + properties.virtual_network_id = AAZStrType( + serialized_name="virtualNetworkId", + ) properties.vmotion_network = AAZStrType( serialized_name="vmotionNetwork", flags={"read_only": True}, @@ -279,7 +289,6 @@ def _build_schema_on_200(cls): ) key_vault_properties.key_state = AAZStrType( serialized_name="keyState", - flags={"read_only": True}, ) key_vault_properties.key_vault_url = AAZStrType( serialized_name="keyVaultUrl", @@ -289,7 +298,6 @@ def _build_schema_on_200(cls): ) key_vault_properties.version_type = AAZStrType( serialized_name="versionType", - flags={"read_only": True}, ) endpoints = cls._schema_on_200.value.Element.properties.endpoints @@ -297,10 +305,22 @@ def _build_schema_on_200(cls): serialized_name="hcxCloudManager", flags={"read_only": True}, ) + endpoints.hcx_cloud_manager_ip = AAZStrType( + serialized_name="hcxCloudManagerIp", + flags={"read_only": True}, + ) endpoints.nsxt_manager = AAZStrType( serialized_name="nsxtManager", flags={"read_only": True}, ) + endpoints.nsxt_manager_ip = AAZStrType( + serialized_name="nsxtManagerIp", + flags={"read_only": True}, + ) + endpoints.vcenter_ip = AAZStrType( + serialized_name="vcenterIp", + flags={"read_only": True}, + ) endpoints.vcsa = AAZStrType( flags={"read_only": True}, ) @@ -315,37 +335,26 @@ def _build_schema_on_200(cls): identity_sources.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.identity_sources.Element - _element.alias = AAZStrType( - flags={"required": True}, - ) + _element.alias = AAZStrType() _element.base_group_dn = AAZStrType( serialized_name="baseGroupDN", - flags={"required": True}, ) _element.base_user_dn = AAZStrType( serialized_name="baseUserDN", - flags={"required": True}, - ) - _element.domain = AAZStrType( - flags={"required": True}, - ) - _element.name = AAZStrType( - flags={"required": True}, ) + _element.domain = AAZStrType() + _element.name = AAZStrType() _element.password = AAZStrType( flags={"secret": True}, ) _element.primary_server = AAZStrType( serialized_name="primaryServer", - flags={"required": True}, ) _element.secondary_server = AAZStrType( serialized_name="secondaryServer", ) _element.ssl = AAZStrType() - _element.username = AAZStrType( - flags={"secret": True}, - ) + _element.username = AAZStrType() management_cluster = cls._schema_on_200.value.Element.properties.management_cluster management_cluster.cluster_id = AAZIntType( @@ -354,21 +363,47 @@ def _build_schema_on_200(cls): ) management_cluster.cluster_size = AAZIntType( serialized_name="clusterSize", - flags={"required": True}, ) management_cluster.hosts = AAZListType() management_cluster.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) + management_cluster.vsan_datastore_name = AAZStrType( + serialized_name="vsanDatastoreName", + ) hosts = cls._schema_on_200.value.Element.properties.management_cluster.hosts hosts.Element = AAZStrType() sku = cls._schema_on_200.value.Element.sku + sku.capacity = AAZIntType() + sku.family = AAZStrType() sku.name = AAZStrType( flags={"required": True}, ) + sku.size = AAZStrType() + sku.tier = AAZStrType() + + system_data = cls._schema_on_200.value.Element.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) tags = cls._schema_on_200.value.Element.tags tags.Element = AAZStrType() @@ -415,7 +450,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -450,10 +485,9 @@ def _build_schema_on_200(cls): _schema_on_200 = cls._schema_on_200 _schema_on_200.next_link = AAZStrType( serialized_name="nextLink", - flags={"read_only": True}, ) _schema_on_200.value = AAZListType( - flags={"read_only": True}, + flags={"required": True}, ) value = cls._schema_on_200.value @@ -471,11 +505,15 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) _element.properties = AAZObjectType( - flags={"required": True, "client_flatten": True}, + flags={"client_flatten": True}, ) _element.sku = AAZObjectType( flags={"required": True}, ) + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _element.tags = AAZDictType() _element.type = AAZStrType( flags={"read_only": True}, @@ -490,12 +528,17 @@ def _build_schema_on_200(cls): serialized_name="tenantId", flags={"read_only": True}, ) - identity.type = AAZStrType() + identity.type = AAZStrType( + flags={"required": True}, + ) properties = cls._schema_on_200.value.Element.properties properties.availability = AAZObjectType() properties.circuit = AAZObjectType() _ListHelper._build_schema_circuit_read(properties.circuit) + properties.dns_zone_type = AAZStrType( + serialized_name="dnsZoneType", + ) properties.encryption = AAZObjectType() properties.endpoints = AAZObjectType() properties.extended_network_blocks = AAZListType( @@ -523,7 +566,6 @@ def _build_schema_on_200(cls): ) properties.nsx_public_ip_quota_raised = AAZStrType( serialized_name="nsxPublicIpQuotaRaised", - flags={"read_only": True}, ) properties.nsxt_certificate_thumbprint = AAZStrType( serialized_name="nsxtCertificateThumbprint", @@ -553,6 +595,9 @@ def _build_schema_on_200(cls): serialized_name="vcenterPassword", flags={"secret": True}, ) + properties.virtual_network_id = AAZStrType( + serialized_name="virtualNetworkId", + ) properties.vmotion_network = AAZStrType( serialized_name="vmotionNetwork", flags={"read_only": True}, @@ -581,7 +626,6 @@ def _build_schema_on_200(cls): ) key_vault_properties.key_state = AAZStrType( serialized_name="keyState", - flags={"read_only": True}, ) key_vault_properties.key_vault_url = AAZStrType( serialized_name="keyVaultUrl", @@ -591,7 +635,6 @@ def _build_schema_on_200(cls): ) key_vault_properties.version_type = AAZStrType( serialized_name="versionType", - flags={"read_only": True}, ) endpoints = cls._schema_on_200.value.Element.properties.endpoints @@ -599,10 +642,22 @@ def _build_schema_on_200(cls): serialized_name="hcxCloudManager", flags={"read_only": True}, ) + endpoints.hcx_cloud_manager_ip = AAZStrType( + serialized_name="hcxCloudManagerIp", + flags={"read_only": True}, + ) endpoints.nsxt_manager = AAZStrType( serialized_name="nsxtManager", flags={"read_only": True}, ) + endpoints.nsxt_manager_ip = AAZStrType( + serialized_name="nsxtManagerIp", + flags={"read_only": True}, + ) + endpoints.vcenter_ip = AAZStrType( + serialized_name="vcenterIp", + flags={"read_only": True}, + ) endpoints.vcsa = AAZStrType( flags={"read_only": True}, ) @@ -617,37 +672,26 @@ def _build_schema_on_200(cls): identity_sources.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.properties.identity_sources.Element - _element.alias = AAZStrType( - flags={"required": True}, - ) + _element.alias = AAZStrType() _element.base_group_dn = AAZStrType( serialized_name="baseGroupDN", - flags={"required": True}, ) _element.base_user_dn = AAZStrType( serialized_name="baseUserDN", - flags={"required": True}, - ) - _element.domain = AAZStrType( - flags={"required": True}, - ) - _element.name = AAZStrType( - flags={"required": True}, ) + _element.domain = AAZStrType() + _element.name = AAZStrType() _element.password = AAZStrType( flags={"secret": True}, ) _element.primary_server = AAZStrType( serialized_name="primaryServer", - flags={"required": True}, ) _element.secondary_server = AAZStrType( serialized_name="secondaryServer", ) _element.ssl = AAZStrType() - _element.username = AAZStrType( - flags={"secret": True}, - ) + _element.username = AAZStrType() management_cluster = cls._schema_on_200.value.Element.properties.management_cluster management_cluster.cluster_id = AAZIntType( @@ -656,21 +700,47 @@ def _build_schema_on_200(cls): ) management_cluster.cluster_size = AAZIntType( serialized_name="clusterSize", - flags={"required": True}, ) management_cluster.hosts = AAZListType() management_cluster.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) + management_cluster.vsan_datastore_name = AAZStrType( + serialized_name="vsanDatastoreName", + ) hosts = cls._schema_on_200.value.Element.properties.management_cluster.hosts hosts.Element = AAZStrType() sku = cls._schema_on_200.value.Element.sku + sku.capacity = AAZIntType() + sku.family = AAZStrType() sku.name = AAZStrType( flags={"required": True}, ) + sku.size = AAZStrType() + sku.tier = AAZStrType() + + system_data = cls._schema_on_200.value.Element.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) tags = cls._schema_on_200.value.Element.tags tags.Element = AAZStrType() diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/private_cloud/_list_admin_credentials.py b/src/vmware/azext_vmware/aaz/latest/vmware/private_cloud/_list_admin_credentials.py index 95813db575f..03505ef54b1 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/private_cloud/_list_admin_credentials.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/private_cloud/_list_admin_credentials.py @@ -19,9 +19,9 @@ class ListAdminCredentials(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/listadmincredentials", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/listadmincredentials", "2023-09-01"], ] } @@ -120,7 +120,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/private_cloud/_rotate_nsxt_password.py b/src/vmware/azext_vmware/aaz/latest/vmware/private_cloud/_rotate_nsxt_password.py new file mode 100644 index 00000000000..1173edc75ef --- /dev/null +++ b/src/vmware/azext_vmware/aaz/latest/vmware/private_cloud/_rotate_nsxt_password.py @@ -0,0 +1,154 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "vmware private-cloud rotate-nsxt-password", + confirmation="Any services connected using these credentials will stop working and may cause you to be locked out of your account.\n\nCheck if you're using your cloudadmin credentials for any connected services like backup and disaster recovery appliances, VMware HCX, or any vRealize suite products. Verify you're not using cloudadmin credentials for connected services before generating a new password.\n\nIf you are using cloudadmin for connected services, learn how you can setup a connection to an external identity source to create and manage new credentials for your connected services: https://docs.microsoft.com/en-us/azure/azure-vmware/configure-identity-source-vcenter\n\nPress Y to confirm no services are using my cloudadmin credentials to connect to vCenter", +) +class RotateNsxtPassword(AAZCommand): + """Rotate the NSX-T Manager password + + :example: Rotate the NSX-T password + az rotate-nsxt-password --resource-group MyResourceGroup --private-cloud MyPrivateCloud + """ + + _aaz_info = { + "version": "2023-09-01", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/rotatensxtpassword", "2023-09-01"], + ] + } + + AZ_SUPPORT_NO_WAIT = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_lro_poller(self._execute_operations, None) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.private_cloud = AAZStrArg( + options=["-c", "--private-cloud"], + help="Name of the private cloud", + required=True, + id_part="name", + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + yield self.PrivateCloudsRotateNsxtPassword(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + class PrivateCloudsRotateNsxtPassword(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [202]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + None, + self.on_error, + lro_options={"final-state-via": "location"}, + path_format_arguments=self.url_parameters, + ) + if session.http_response.status_code in [204]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_204, + self.on_error, + lro_options={"final-state-via": "location"}, + path_format_arguments=self.url_parameters, + ) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/rotateNsxtPassword", + **self.url_parameters + ) + + @property + def method(self): + return "POST" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "privateCloudName", self.ctx.args.private_cloud, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2023-09-01", + required=True, + ), + } + return parameters + + def on_204(self, session): + pass + + +class _RotateNsxtPasswordHelper: + """Helper class for RotateNsxtPassword""" + + +__all__ = ["RotateNsxtPassword"] diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/private_cloud/_rotate_vcenter_password.py b/src/vmware/azext_vmware/aaz/latest/vmware/private_cloud/_rotate_vcenter_password.py index e5ac1ed5b63..e1312306bb3 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/private_cloud/_rotate_vcenter_password.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/private_cloud/_rotate_vcenter_password.py @@ -23,9 +23,9 @@ class RotateVcenterPassword(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/rotatevcenterpassword", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/rotatevcenterpassword", "2023-09-01"], ] } @@ -85,7 +85,7 @@ def __call__(self, *args, **kwargs): session, None, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [204]: @@ -94,7 +94,7 @@ def __call__(self, *args, **kwargs): session, self.on_204, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) @@ -137,7 +137,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/private_cloud/_show.py b/src/vmware/azext_vmware/aaz/latest/vmware/private_cloud/_show.py index cac164808c4..76353bdb7fd 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/private_cloud/_show.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/private_cloud/_show.py @@ -19,9 +19,9 @@ class Show(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}", "2023-09-01"], ] } @@ -120,7 +120,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -164,11 +164,15 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) _schema_on_200.properties = AAZObjectType( - flags={"required": True, "client_flatten": True}, + flags={"client_flatten": True}, ) _schema_on_200.sku = AAZObjectType( flags={"required": True}, ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _schema_on_200.tags = AAZDictType() _schema_on_200.type = AAZStrType( flags={"read_only": True}, @@ -183,12 +187,17 @@ def _build_schema_on_200(cls): serialized_name="tenantId", flags={"read_only": True}, ) - identity.type = AAZStrType() + identity.type = AAZStrType( + flags={"required": True}, + ) properties = cls._schema_on_200.properties properties.availability = AAZObjectType() properties.circuit = AAZObjectType() _ShowHelper._build_schema_circuit_read(properties.circuit) + properties.dns_zone_type = AAZStrType( + serialized_name="dnsZoneType", + ) properties.encryption = AAZObjectType() properties.endpoints = AAZObjectType() properties.extended_network_blocks = AAZListType( @@ -216,7 +225,6 @@ def _build_schema_on_200(cls): ) properties.nsx_public_ip_quota_raised = AAZStrType( serialized_name="nsxPublicIpQuotaRaised", - flags={"read_only": True}, ) properties.nsxt_certificate_thumbprint = AAZStrType( serialized_name="nsxtCertificateThumbprint", @@ -246,6 +254,9 @@ def _build_schema_on_200(cls): serialized_name="vcenterPassword", flags={"secret": True}, ) + properties.virtual_network_id = AAZStrType( + serialized_name="virtualNetworkId", + ) properties.vmotion_network = AAZStrType( serialized_name="vmotionNetwork", flags={"read_only": True}, @@ -274,7 +285,6 @@ def _build_schema_on_200(cls): ) key_vault_properties.key_state = AAZStrType( serialized_name="keyState", - flags={"read_only": True}, ) key_vault_properties.key_vault_url = AAZStrType( serialized_name="keyVaultUrl", @@ -284,7 +294,6 @@ def _build_schema_on_200(cls): ) key_vault_properties.version_type = AAZStrType( serialized_name="versionType", - flags={"read_only": True}, ) endpoints = cls._schema_on_200.properties.endpoints @@ -292,10 +301,22 @@ def _build_schema_on_200(cls): serialized_name="hcxCloudManager", flags={"read_only": True}, ) + endpoints.hcx_cloud_manager_ip = AAZStrType( + serialized_name="hcxCloudManagerIp", + flags={"read_only": True}, + ) endpoints.nsxt_manager = AAZStrType( serialized_name="nsxtManager", flags={"read_only": True}, ) + endpoints.nsxt_manager_ip = AAZStrType( + serialized_name="nsxtManagerIp", + flags={"read_only": True}, + ) + endpoints.vcenter_ip = AAZStrType( + serialized_name="vcenterIp", + flags={"read_only": True}, + ) endpoints.vcsa = AAZStrType( flags={"read_only": True}, ) @@ -310,37 +331,26 @@ def _build_schema_on_200(cls): identity_sources.Element = AAZObjectType() _element = cls._schema_on_200.properties.identity_sources.Element - _element.alias = AAZStrType( - flags={"required": True}, - ) + _element.alias = AAZStrType() _element.base_group_dn = AAZStrType( serialized_name="baseGroupDN", - flags={"required": True}, ) _element.base_user_dn = AAZStrType( serialized_name="baseUserDN", - flags={"required": True}, - ) - _element.domain = AAZStrType( - flags={"required": True}, - ) - _element.name = AAZStrType( - flags={"required": True}, ) + _element.domain = AAZStrType() + _element.name = AAZStrType() _element.password = AAZStrType( flags={"secret": True}, ) _element.primary_server = AAZStrType( serialized_name="primaryServer", - flags={"required": True}, ) _element.secondary_server = AAZStrType( serialized_name="secondaryServer", ) _element.ssl = AAZStrType() - _element.username = AAZStrType( - flags={"secret": True}, - ) + _element.username = AAZStrType() management_cluster = cls._schema_on_200.properties.management_cluster management_cluster.cluster_id = AAZIntType( @@ -349,21 +359,47 @@ def _build_schema_on_200(cls): ) management_cluster.cluster_size = AAZIntType( serialized_name="clusterSize", - flags={"required": True}, ) management_cluster.hosts = AAZListType() management_cluster.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) + management_cluster.vsan_datastore_name = AAZStrType( + serialized_name="vsanDatastoreName", + ) hosts = cls._schema_on_200.properties.management_cluster.hosts hosts.Element = AAZStrType() sku = cls._schema_on_200.sku + sku.capacity = AAZIntType() + sku.family = AAZStrType() sku.name = AAZStrType( flags={"required": True}, ) + sku.size = AAZStrType() + sku.tier = AAZStrType() + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) tags = cls._schema_on_200.tags tags.Element = AAZStrType() diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/private_cloud/_update.py b/src/vmware/azext_vmware/aaz/latest/vmware/private_cloud/_update.py index 95346ec9397..49a1f5433c2 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/private_cloud/_update.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/private_cloud/_update.py @@ -19,9 +19,9 @@ class Update(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}", "2023-09-01"], ] } @@ -63,7 +63,25 @@ def _build_arguments_schema(cls, *args, **kwargs): _args_schema.cluster_size = AAZIntArg( options=["--cluster-size"], arg_group="ManagementCluster", - help="The cluster size", + help="Number of hosts for the default management cluster. Minimum of 3 and maximum of 16.", + nullable=True, + ) + _args_schema.hosts = AAZListArg( + options=["--hosts"], + arg_group="ManagementCluster", + help="The hosts", + nullable=True, + ) + _args_schema.vsan_datastore_name = AAZStrArg( + options=["--vsan-datastore-name"], + arg_group="ManagementCluster", + help="Name of the vsan datastore associated with the cluster", + nullable=True, + ) + + hosts = cls._args_schema.hosts + hosts.Element = AAZStrArg( + nullable=True, ) # define Arg Group "PrivateCloud" @@ -72,7 +90,7 @@ def _build_arguments_schema(cls, *args, **kwargs): _args_schema.identity = AAZObjectArg( options=["--identity"], arg_group="PrivateCloud", - help="The identity of the private cloud, if configured.", + help="The managed service identities assigned to this resource.", nullable=True, ) _args_schema.tags = AAZDictArg( @@ -85,8 +103,7 @@ def _build_arguments_schema(cls, *args, **kwargs): identity = cls._args_schema.identity identity.type = AAZStrArg( options=["type"], - help="The type of identity used for the private cloud. The type 'SystemAssigned' refers to an implicitly created identity. The type 'None' will remove any identities from the Private Cloud.", - nullable=True, + help="Type of managed service identity (either system assigned, or none).", enum={"None": "None", "SystemAssigned": "SystemAssigned"}, ) @@ -98,6 +115,13 @@ def _build_arguments_schema(cls, *args, **kwargs): # define Arg Group "Properties" _args_schema = cls._args_schema + _args_schema.dns_zone_type = AAZStrArg( + options=["--dns-zone-type"], + arg_group="Properties", + help="The type of DNS zone to use.", + nullable=True, + enum={"Private": "Private", "Public": "Public"}, + ) _args_schema.encryption = AAZObjectArg( options=["--encryption"], arg_group="Properties", @@ -123,6 +147,11 @@ def _build_arguments_schema(cls, *args, **kwargs): nullable=True, enum={"Disabled": "Disabled", "Enabled": "Enabled"}, ) + _args_schema.network_block = AAZStrArg( + options=["--network-block"], + arg_group="Properties", + help="The block of addresses should be unique across VNet in your 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", + ) _args_schema.nsxt_password = AAZPasswordArg( options=["--nsxt-password"], arg_group="Properties", @@ -186,30 +215,40 @@ def _build_arguments_schema(cls, *args, **kwargs): _element.alias = AAZStrArg( options=["alias"], help="The domain's NetBIOS name", + nullable=True, ) _element.base_group_dn = AAZStrArg( options=["base-group-dn"], help="The base distinguished name for groups", + nullable=True, ) _element.base_user_dn = AAZStrArg( options=["base-user-dn"], help="The base distinguished name for users", + nullable=True, ) _element.domain = AAZStrArg( options=["domain"], help="The domain's dns name", + nullable=True, ) _element.name = AAZStrArg( options=["name"], help="The name of the identity source", + nullable=True, ) - _element.password = AAZStrArg( + _element.password = AAZPasswordArg( options=["password"], help="The password of the Active Directory user with a minimum of read-only access to Base DN for users and groups.", + nullable=True, + blank=AAZPromptPasswordInput( + msg="Password:", + ), ) _element.primary_server = AAZStrArg( options=["primary-server"], help="Primary server URL", + nullable=True, ) _element.secondary_server = AAZStrArg( options=["secondary-server"], @@ -225,6 +264,7 @@ def _build_arguments_schema(cls, *args, **kwargs): _element.username = AAZStrArg( options=["username"], help="The ID of an Active Directory user with a minimum of read-only access to Base DN for users and group", + nullable=True, ) # define Arg Group "Sku" @@ -308,7 +348,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -407,7 +447,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -466,21 +506,23 @@ def _update_instance(self, instance): typ=AAZObjectType ) _builder.set_prop("identity", AAZObjectType, ".identity") - _builder.set_prop("properties", AAZObjectType, ".", typ_kwargs={"flags": {"required": True, "client_flatten": True}}) + _builder.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) _builder.set_prop("sku", AAZObjectType, ".", typ_kwargs={"flags": {"required": True}}) _builder.set_prop("tags", AAZDictType, ".tags") identity = _builder.get(".identity") if identity is not None: - identity.set_prop("type", AAZStrType, ".type") + identity.set_prop("type", AAZStrType, ".type", typ_kwargs={"flags": {"required": True}}) properties = _builder.get(".properties") if properties is not None: + properties.set_prop("dnsZoneType", AAZStrType, ".dns_zone_type") properties.set_prop("encryption", AAZObjectType, ".encryption") properties.set_prop("extendedNetworkBlocks", AAZListType, ".extended_network_blocks") properties.set_prop("identitySources", AAZListType, ".identity_sources") properties.set_prop("internet", AAZStrType, ".internet") properties.set_prop("managementCluster", AAZObjectType, ".", typ_kwargs={"flags": {"required": True}}) + properties.set_prop("networkBlock", AAZStrType, ".network_block", typ_kwargs={"flags": {"required": True}}) properties.set_prop("nsxtPassword", AAZStrType, ".nsxt_password", typ_kwargs={"flags": {"secret": True}}) properties.set_prop("vcenterPassword", AAZStrType, ".vcenter_password", typ_kwargs={"flags": {"secret": True}}) @@ -505,20 +547,26 @@ def _update_instance(self, instance): _elements = _builder.get(".properties.identitySources[]") if _elements is not None: - _elements.set_prop("alias", AAZStrType, ".alias", typ_kwargs={"flags": {"required": True}}) - _elements.set_prop("baseGroupDN", AAZStrType, ".base_group_dn", typ_kwargs={"flags": {"required": True}}) - _elements.set_prop("baseUserDN", AAZStrType, ".base_user_dn", typ_kwargs={"flags": {"required": True}}) - _elements.set_prop("domain", AAZStrType, ".domain", typ_kwargs={"flags": {"required": True}}) - _elements.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("alias", AAZStrType, ".alias") + _elements.set_prop("baseGroupDN", AAZStrType, ".base_group_dn") + _elements.set_prop("baseUserDN", AAZStrType, ".base_user_dn") + _elements.set_prop("domain", AAZStrType, ".domain") + _elements.set_prop("name", AAZStrType, ".name") _elements.set_prop("password", AAZStrType, ".password", typ_kwargs={"flags": {"secret": True}}) - _elements.set_prop("primaryServer", AAZStrType, ".primary_server", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("primaryServer", AAZStrType, ".primary_server") _elements.set_prop("secondaryServer", AAZStrType, ".secondary_server") _elements.set_prop("ssl", AAZStrType, ".ssl") - _elements.set_prop("username", AAZStrType, ".username", typ_kwargs={"flags": {"secret": True}}) + _elements.set_prop("username", AAZStrType, ".username") management_cluster = _builder.get(".properties.managementCluster") if management_cluster is not None: - management_cluster.set_prop("clusterSize", AAZIntType, ".cluster_size", typ_kwargs={"flags": {"required": True}}) + management_cluster.set_prop("clusterSize", AAZIntType, ".cluster_size") + management_cluster.set_prop("hosts", AAZListType, ".hosts") + management_cluster.set_prop("vsanDatastoreName", AAZStrType, ".vsan_datastore_name") + + hosts = _builder.get(".properties.managementCluster.hosts") + if hosts is not None: + hosts.set_elements(AAZStrType, ".") tags = _builder.get(".tags") if tags is not None: @@ -585,6 +633,7 @@ def _build_schema_private_cloud_read(cls, _schema): _schema.name = cls._schema_private_cloud_read.name _schema.properties = cls._schema_private_cloud_read.properties _schema.sku = cls._schema_private_cloud_read.sku + _schema.system_data = cls._schema_private_cloud_read.system_data _schema.tags = cls._schema_private_cloud_read.tags _schema.type = cls._schema_private_cloud_read.type return @@ -603,11 +652,15 @@ def _build_schema_private_cloud_read(cls, _schema): flags={"read_only": True}, ) private_cloud_read.properties = AAZObjectType( - flags={"required": True, "client_flatten": True}, + flags={"client_flatten": True}, ) private_cloud_read.sku = AAZObjectType( flags={"required": True}, ) + private_cloud_read.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) private_cloud_read.tags = AAZDictType() private_cloud_read.type = AAZStrType( flags={"read_only": True}, @@ -622,12 +675,17 @@ def _build_schema_private_cloud_read(cls, _schema): serialized_name="tenantId", flags={"read_only": True}, ) - identity.type = AAZStrType() + identity.type = AAZStrType( + flags={"required": True}, + ) properties = _schema_private_cloud_read.properties properties.availability = AAZObjectType() properties.circuit = AAZObjectType() cls._build_schema_circuit_read(properties.circuit) + properties.dns_zone_type = AAZStrType( + serialized_name="dnsZoneType", + ) properties.encryption = AAZObjectType() properties.endpoints = AAZObjectType() properties.extended_network_blocks = AAZListType( @@ -655,7 +713,6 @@ def _build_schema_private_cloud_read(cls, _schema): ) properties.nsx_public_ip_quota_raised = AAZStrType( serialized_name="nsxPublicIpQuotaRaised", - flags={"read_only": True}, ) properties.nsxt_certificate_thumbprint = AAZStrType( serialized_name="nsxtCertificateThumbprint", @@ -685,6 +742,9 @@ def _build_schema_private_cloud_read(cls, _schema): serialized_name="vcenterPassword", flags={"secret": True}, ) + properties.virtual_network_id = AAZStrType( + serialized_name="virtualNetworkId", + ) properties.vmotion_network = AAZStrType( serialized_name="vmotionNetwork", flags={"read_only": True}, @@ -713,7 +773,6 @@ def _build_schema_private_cloud_read(cls, _schema): ) key_vault_properties.key_state = AAZStrType( serialized_name="keyState", - flags={"read_only": True}, ) key_vault_properties.key_vault_url = AAZStrType( serialized_name="keyVaultUrl", @@ -723,7 +782,6 @@ def _build_schema_private_cloud_read(cls, _schema): ) key_vault_properties.version_type = AAZStrType( serialized_name="versionType", - flags={"read_only": True}, ) endpoints = _schema_private_cloud_read.properties.endpoints @@ -731,10 +789,22 @@ def _build_schema_private_cloud_read(cls, _schema): serialized_name="hcxCloudManager", flags={"read_only": True}, ) + endpoints.hcx_cloud_manager_ip = AAZStrType( + serialized_name="hcxCloudManagerIp", + flags={"read_only": True}, + ) endpoints.nsxt_manager = AAZStrType( serialized_name="nsxtManager", flags={"read_only": True}, ) + endpoints.nsxt_manager_ip = AAZStrType( + serialized_name="nsxtManagerIp", + flags={"read_only": True}, + ) + endpoints.vcenter_ip = AAZStrType( + serialized_name="vcenterIp", + flags={"read_only": True}, + ) endpoints.vcsa = AAZStrType( flags={"read_only": True}, ) @@ -749,37 +819,26 @@ def _build_schema_private_cloud_read(cls, _schema): identity_sources.Element = AAZObjectType() _element = _schema_private_cloud_read.properties.identity_sources.Element - _element.alias = AAZStrType( - flags={"required": True}, - ) + _element.alias = AAZStrType() _element.base_group_dn = AAZStrType( serialized_name="baseGroupDN", - flags={"required": True}, ) _element.base_user_dn = AAZStrType( serialized_name="baseUserDN", - flags={"required": True}, - ) - _element.domain = AAZStrType( - flags={"required": True}, - ) - _element.name = AAZStrType( - flags={"required": True}, ) + _element.domain = AAZStrType() + _element.name = AAZStrType() _element.password = AAZStrType( flags={"secret": True}, ) _element.primary_server = AAZStrType( serialized_name="primaryServer", - flags={"required": True}, ) _element.secondary_server = AAZStrType( serialized_name="secondaryServer", ) _element.ssl = AAZStrType() - _element.username = AAZStrType( - flags={"secret": True}, - ) + _element.username = AAZStrType() management_cluster = _schema_private_cloud_read.properties.management_cluster management_cluster.cluster_id = AAZIntType( @@ -788,21 +847,47 @@ def _build_schema_private_cloud_read(cls, _schema): ) management_cluster.cluster_size = AAZIntType( serialized_name="clusterSize", - flags={"required": True}, ) management_cluster.hosts = AAZListType() management_cluster.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) + management_cluster.vsan_datastore_name = AAZStrType( + serialized_name="vsanDatastoreName", + ) hosts = _schema_private_cloud_read.properties.management_cluster.hosts hosts.Element = AAZStrType() sku = _schema_private_cloud_read.sku + sku.capacity = AAZIntType() + sku.family = AAZStrType() sku.name = AAZStrType( flags={"required": True}, ) + sku.size = AAZStrType() + sku.tier = AAZStrType() + + system_data = _schema_private_cloud_read.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) tags = _schema_private_cloud_read.tags tags.Element = AAZStrType() @@ -813,6 +898,7 @@ def _build_schema_private_cloud_read(cls, _schema): _schema.name = cls._schema_private_cloud_read.name _schema.properties = cls._schema_private_cloud_read.properties _schema.sku = cls._schema_private_cloud_read.sku + _schema.system_data = cls._schema_private_cloud_read.system_data _schema.tags = cls._schema_private_cloud_read.tags _schema.type = cls._schema_private_cloud_read.type diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/private_cloud/_wait.py b/src/vmware/azext_vmware/aaz/latest/vmware/private_cloud/_wait.py index 6aa2f6e3dac..6e13536b264 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/private_cloud/_wait.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/private_cloud/_wait.py @@ -20,7 +20,7 @@ class Wait(AAZWaitCommand): _aaz_info = { "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}", "2023-09-01"], ] } @@ -119,7 +119,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -163,11 +163,15 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) _schema_on_200.properties = AAZObjectType( - flags={"required": True, "client_flatten": True}, + flags={"client_flatten": True}, ) _schema_on_200.sku = AAZObjectType( flags={"required": True}, ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _schema_on_200.tags = AAZDictType() _schema_on_200.type = AAZStrType( flags={"read_only": True}, @@ -182,12 +186,17 @@ def _build_schema_on_200(cls): serialized_name="tenantId", flags={"read_only": True}, ) - identity.type = AAZStrType() + identity.type = AAZStrType( + flags={"required": True}, + ) properties = cls._schema_on_200.properties properties.availability = AAZObjectType() properties.circuit = AAZObjectType() _WaitHelper._build_schema_circuit_read(properties.circuit) + properties.dns_zone_type = AAZStrType( + serialized_name="dnsZoneType", + ) properties.encryption = AAZObjectType() properties.endpoints = AAZObjectType() properties.extended_network_blocks = AAZListType( @@ -215,7 +224,6 @@ def _build_schema_on_200(cls): ) properties.nsx_public_ip_quota_raised = AAZStrType( serialized_name="nsxPublicIpQuotaRaised", - flags={"read_only": True}, ) properties.nsxt_certificate_thumbprint = AAZStrType( serialized_name="nsxtCertificateThumbprint", @@ -245,6 +253,9 @@ def _build_schema_on_200(cls): serialized_name="vcenterPassword", flags={"secret": True}, ) + properties.virtual_network_id = AAZStrType( + serialized_name="virtualNetworkId", + ) properties.vmotion_network = AAZStrType( serialized_name="vmotionNetwork", flags={"read_only": True}, @@ -273,7 +284,6 @@ def _build_schema_on_200(cls): ) key_vault_properties.key_state = AAZStrType( serialized_name="keyState", - flags={"read_only": True}, ) key_vault_properties.key_vault_url = AAZStrType( serialized_name="keyVaultUrl", @@ -283,7 +293,6 @@ def _build_schema_on_200(cls): ) key_vault_properties.version_type = AAZStrType( serialized_name="versionType", - flags={"read_only": True}, ) endpoints = cls._schema_on_200.properties.endpoints @@ -291,10 +300,22 @@ def _build_schema_on_200(cls): serialized_name="hcxCloudManager", flags={"read_only": True}, ) + endpoints.hcx_cloud_manager_ip = AAZStrType( + serialized_name="hcxCloudManagerIp", + flags={"read_only": True}, + ) endpoints.nsxt_manager = AAZStrType( serialized_name="nsxtManager", flags={"read_only": True}, ) + endpoints.nsxt_manager_ip = AAZStrType( + serialized_name="nsxtManagerIp", + flags={"read_only": True}, + ) + endpoints.vcenter_ip = AAZStrType( + serialized_name="vcenterIp", + flags={"read_only": True}, + ) endpoints.vcsa = AAZStrType( flags={"read_only": True}, ) @@ -309,37 +330,26 @@ def _build_schema_on_200(cls): identity_sources.Element = AAZObjectType() _element = cls._schema_on_200.properties.identity_sources.Element - _element.alias = AAZStrType( - flags={"required": True}, - ) + _element.alias = AAZStrType() _element.base_group_dn = AAZStrType( serialized_name="baseGroupDN", - flags={"required": True}, ) _element.base_user_dn = AAZStrType( serialized_name="baseUserDN", - flags={"required": True}, - ) - _element.domain = AAZStrType( - flags={"required": True}, - ) - _element.name = AAZStrType( - flags={"required": True}, ) + _element.domain = AAZStrType() + _element.name = AAZStrType() _element.password = AAZStrType( flags={"secret": True}, ) _element.primary_server = AAZStrType( serialized_name="primaryServer", - flags={"required": True}, ) _element.secondary_server = AAZStrType( serialized_name="secondaryServer", ) _element.ssl = AAZStrType() - _element.username = AAZStrType( - flags={"secret": True}, - ) + _element.username = AAZStrType() management_cluster = cls._schema_on_200.properties.management_cluster management_cluster.cluster_id = AAZIntType( @@ -348,21 +358,47 @@ def _build_schema_on_200(cls): ) management_cluster.cluster_size = AAZIntType( serialized_name="clusterSize", - flags={"required": True}, ) management_cluster.hosts = AAZListType() management_cluster.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, ) + management_cluster.vsan_datastore_name = AAZStrType( + serialized_name="vsanDatastoreName", + ) hosts = cls._schema_on_200.properties.management_cluster.hosts hosts.Element = AAZStrType() sku = cls._schema_on_200.sku + sku.capacity = AAZIntType() + sku.family = AAZStrType() sku.name = AAZStrType( flags={"required": True}, ) + sku.size = AAZStrType() + sku.tier = AAZStrType() + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) tags = cls._schema_on_200.tags tags.Element = AAZStrType() diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/script_cmdlet/_list.py b/src/vmware/azext_vmware/aaz/latest/vmware/script_cmdlet/_list.py index 2f833c356e7..f7894aacb45 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/script_cmdlet/_list.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/script_cmdlet/_list.py @@ -22,9 +22,9 @@ class List(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/scriptpackages/{}/scriptcmdlets", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/scriptpackages/{}/scriptcmdlets", "2023-09-01"], ] } @@ -136,7 +136,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -171,10 +171,9 @@ def _build_schema_on_200(cls): _schema_on_200 = cls._schema_on_200 _schema_on_200.next_link = AAZStrType( serialized_name="nextLink", - flags={"read_only": True}, ) _schema_on_200.value = AAZListType( - flags={"read_only": True}, + flags={"required": True}, ) value = cls._schema_on_200.value @@ -190,17 +189,26 @@ def _build_schema_on_200(cls): _element.properties = AAZObjectType( flags={"client_flatten": True}, ) + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _element.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.value.Element.properties + properties.audience = AAZStrType() properties.description = AAZStrType( flags={"read_only": True}, ) properties.parameters = AAZListType( flags={"read_only": True}, ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) properties.timeout = AAZStrType( flags={"read_only": True}, ) @@ -213,14 +221,28 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) _element.name = AAZStrType() - _element.optional = AAZStrType( - flags={"read_only": True}, + _element.optional = AAZStrType() + _element.type = AAZStrType() + _element.visibility = AAZStrType() + + system_data = cls._schema_on_200.value.Element.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", ) - _element.type = AAZStrType( - flags={"read_only": True}, + system_data.created_by = AAZStrType( + serialized_name="createdBy", ) - _element.visibility = AAZStrType( - flags={"read_only": True}, + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", ) return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/script_cmdlet/_show.py b/src/vmware/azext_vmware/aaz/latest/vmware/script_cmdlet/_show.py index 7825b0489ee..8c059e040c4 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/script_cmdlet/_show.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/script_cmdlet/_show.py @@ -22,9 +22,9 @@ class Show(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/scriptpackages/{}/scriptcmdlets/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/scriptpackages/{}/scriptcmdlets/{}", "2023-09-01"], ] } @@ -149,7 +149,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -191,17 +191,26 @@ def _build_schema_on_200(cls): _schema_on_200.properties = AAZObjectType( flags={"client_flatten": True}, ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) properties = cls._schema_on_200.properties + properties.audience = AAZStrType() properties.description = AAZStrType( flags={"read_only": True}, ) properties.parameters = AAZListType( flags={"read_only": True}, ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) properties.timeout = AAZStrType( flags={"read_only": True}, ) @@ -214,14 +223,28 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) _element.name = AAZStrType() - _element.optional = AAZStrType( - flags={"read_only": True}, + _element.optional = AAZStrType() + _element.type = AAZStrType() + _element.visibility = AAZStrType() + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", ) - _element.type = AAZStrType( - flags={"read_only": True}, + system_data.created_by = AAZStrType( + serialized_name="createdBy", ) - _element.visibility = AAZStrType( - flags={"read_only": True}, + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", ) return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/script_execution/_create.py b/src/vmware/azext_vmware/aaz/latest/vmware/script_execution/_create.py index 1c2839ab4ec..e6bba589d7d 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/script_execution/_create.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/script_execution/_create.py @@ -16,9 +16,9 @@ class Create(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/scriptexecutions/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/scriptexecutions/{}", "2023-09-01"], ] } @@ -43,6 +43,9 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["-c", "--private-cloud"], help="Name of the private cloud", required=True, + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), ) _args_schema.resource_group = AAZResourceGroupNameArg( required=True, @@ -70,7 +73,7 @@ def _build_arguments_schema(cls, *args, **kwargs): arg_group="Properties", help="Parameters that will be hidden/not visible to ARM, such as passwords and credentials", ) - _args_schema.named_outputs = AAZFreeFormDictArg( + _args_schema.named_outputs = AAZDictArg( options=["--named-outputs"], arg_group="Properties", help="User-defined dictionary.", @@ -100,13 +103,17 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["--timeout"], arg_group="Properties", help="Time limit for execution", - required=True, ) hidden_parameters = cls._args_schema.hidden_parameters hidden_parameters.Element = AAZObjectArg() cls._build_args_script_execution_parameter_create(hidden_parameters.Element) + named_outputs = cls._args_schema.named_outputs + named_outputs.Element = AAZObjectArg( + blank={}, + ) + output = cls._args_schema.output output.Element = AAZStrArg() @@ -145,7 +152,7 @@ def _build_args_script_execution_parameter_create(cls, _schema): ) credential = cls._args_script_execution_parameter_create.credential - credential.password = AAZStrArg( + credential.password = AAZPasswordArg( options=["password"], help="password for login", ) @@ -155,7 +162,7 @@ def _build_args_script_execution_parameter_create(cls, _schema): ) secure_value = cls._args_script_execution_parameter_create.secure_value - secure_value.secure_value = AAZStrArg( + secure_value.secure_value = AAZPasswordArg( options=["secure-value"], help="A secure value for the passed parameter, not to be stored in logs", ) @@ -256,7 +263,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -281,13 +288,13 @@ def content(self): typ=AAZObjectType, typ_kwargs={"flags": {"required": True, "client_flatten": True}} ) - _builder.set_prop("properties", AAZObjectType, ".", typ_kwargs={"flags": {"required": True, "client_flatten": True}}) + _builder.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) properties = _builder.get(".properties") if properties is not None: properties.set_prop("failureReason", AAZStrType, ".failure_reason") properties.set_prop("hiddenParameters", AAZListType, ".hidden_parameters") - properties.set_prop("namedOutputs", AAZFreeFormDictType, ".named_outputs") + properties.set_prop("namedOutputs", AAZDictType, ".named_outputs") properties.set_prop("output", AAZListType, ".output") properties.set_prop("parameters", AAZListType, ".parameters") properties.set_prop("retention", AAZStrType, ".retention") @@ -300,7 +307,7 @@ def content(self): named_outputs = _builder.get(".properties.namedOutputs") if named_outputs is not None: - named_outputs.set_anytype_elements(".") + named_outputs.set_elements(AAZObjectType, ".") output = _builder.get(".properties.output") if output is not None: @@ -337,7 +344,11 @@ def _build_schema_on_200_201(cls): flags={"read_only": True}, ) _schema_on_200_201.properties = AAZObjectType( - flags={"required": True, "client_flatten": True}, + flags={"client_flatten": True}, + ) + _schema_on_200_201.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, ) _schema_on_200_201.type = AAZStrType( flags={"read_only": True}, @@ -360,7 +371,7 @@ def _build_schema_on_200_201(cls): properties.information = AAZListType( flags={"read_only": True}, ) - properties.named_outputs = AAZFreeFormDictType( + properties.named_outputs = AAZDictType( serialized_name="namedOutputs", ) properties.output = AAZListType() @@ -398,6 +409,9 @@ def _build_schema_on_200_201(cls): information = cls._schema_on_200_201.properties.information information.Element = AAZStrType() + named_outputs = cls._schema_on_200_201.properties.named_outputs + named_outputs.Element = AAZObjectType() + output = cls._schema_on_200_201.properties.output output.Element = AAZStrType() @@ -408,6 +422,26 @@ def _build_schema_on_200_201(cls): warnings = cls._schema_on_200_201.properties.warnings warnings.Element = AAZStrType() + system_data = cls._schema_on_200_201.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200_201 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/script_execution/_delete.py b/src/vmware/azext_vmware/aaz/latest/vmware/script_execution/_delete.py index 070513ae088..3769c29e175 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/script_execution/_delete.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/script_execution/_delete.py @@ -23,9 +23,9 @@ class Delete(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/scriptexecutions/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/scriptexecutions/{}", "2023-09-01"], ] } @@ -94,7 +94,7 @@ def __call__(self, *args, **kwargs): session, self.on_200, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [200]: @@ -103,7 +103,7 @@ def __call__(self, *args, **kwargs): session, self.on_200, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [204]: @@ -112,7 +112,7 @@ def __call__(self, *args, **kwargs): session, self.on_204, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) @@ -159,7 +159,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/script_execution/_list.py b/src/vmware/azext_vmware/aaz/latest/vmware/script_execution/_list.py index 92b2da1e07b..b0c6013678a 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/script_execution/_list.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/script_execution/_list.py @@ -22,9 +22,9 @@ class List(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/scriptexecutions", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/scriptexecutions", "2023-09-01"], ] } @@ -124,7 +124,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -159,10 +159,9 @@ def _build_schema_on_200(cls): _schema_on_200 = cls._schema_on_200 _schema_on_200.next_link = AAZStrType( serialized_name="nextLink", - flags={"read_only": True}, ) _schema_on_200.value = AAZListType( - flags={"read_only": True}, + flags={"required": True}, ) value = cls._schema_on_200.value @@ -176,7 +175,11 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) _element.properties = AAZObjectType( - flags={"required": True, "client_flatten": True}, + flags={"client_flatten": True}, + ) + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, ) _element.type = AAZStrType( flags={"read_only": True}, @@ -199,7 +202,7 @@ def _build_schema_on_200(cls): properties.information = AAZListType( flags={"read_only": True}, ) - properties.named_outputs = AAZFreeFormDictType( + properties.named_outputs = AAZDictType( serialized_name="namedOutputs", ) properties.output = AAZListType() @@ -237,6 +240,9 @@ def _build_schema_on_200(cls): information = cls._schema_on_200.value.Element.properties.information information.Element = AAZStrType() + named_outputs = cls._schema_on_200.value.Element.properties.named_outputs + named_outputs.Element = AAZObjectType() + output = cls._schema_on_200.value.Element.properties.output output.Element = AAZStrType() @@ -247,6 +253,26 @@ def _build_schema_on_200(cls): warnings = cls._schema_on_200.value.Element.properties.warnings warnings.Element = AAZStrType() + system_data = cls._schema_on_200.value.Element.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200 @@ -297,7 +323,9 @@ def _build_schema_script_execution_parameter_read(cls, _schema): ) disc_credential = _schema_script_execution_parameter_read.discriminate_by("type", "Credential") - disc_credential.password = AAZStrType() + disc_credential.password = AAZStrType( + flags={"secret": True}, + ) disc_credential.username = AAZStrType() disc_secure_value = _schema_script_execution_parameter_read.discriminate_by("type", "SecureValue") diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/script_execution/_show.py b/src/vmware/azext_vmware/aaz/latest/vmware/script_execution/_show.py index 5e5980f9d6f..585c6fcd667 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/script_execution/_show.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/script_execution/_show.py @@ -22,9 +22,9 @@ class Show(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/scriptexecutions/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/scriptexecutions/{}", "2023-09-01"], ] } @@ -136,7 +136,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -176,7 +176,11 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) _schema_on_200.properties = AAZObjectType( - flags={"required": True, "client_flatten": True}, + flags={"client_flatten": True}, + ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, @@ -199,7 +203,7 @@ def _build_schema_on_200(cls): properties.information = AAZListType( flags={"read_only": True}, ) - properties.named_outputs = AAZFreeFormDictType( + properties.named_outputs = AAZDictType( serialized_name="namedOutputs", ) properties.output = AAZListType() @@ -237,6 +241,9 @@ def _build_schema_on_200(cls): information = cls._schema_on_200.properties.information information.Element = AAZStrType() + named_outputs = cls._schema_on_200.properties.named_outputs + named_outputs.Element = AAZObjectType() + output = cls._schema_on_200.properties.output output.Element = AAZStrType() @@ -247,6 +254,26 @@ def _build_schema_on_200(cls): warnings = cls._schema_on_200.properties.warnings warnings.Element = AAZStrType() + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200 @@ -297,7 +324,9 @@ def _build_schema_script_execution_parameter_read(cls, _schema): ) disc_credential = _schema_script_execution_parameter_read.discriminate_by("type", "Credential") - disc_credential.password = AAZStrType() + disc_credential.password = AAZStrType( + flags={"secret": True}, + ) disc_credential.username = AAZStrType() disc_secure_value = _schema_script_execution_parameter_read.discriminate_by("type", "SecureValue") diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/script_execution/_wait.py b/src/vmware/azext_vmware/aaz/latest/vmware/script_execution/_wait.py index c992bbb90e8..c411ec3b39c 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/script_execution/_wait.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/script_execution/_wait.py @@ -20,7 +20,7 @@ class Wait(AAZWaitCommand): _aaz_info = { "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/scriptexecutions/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/scriptexecutions/{}", "2023-09-01"], ] } @@ -132,7 +132,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -172,7 +172,11 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) _schema_on_200.properties = AAZObjectType( - flags={"required": True, "client_flatten": True}, + flags={"client_flatten": True}, + ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, @@ -195,7 +199,7 @@ def _build_schema_on_200(cls): properties.information = AAZListType( flags={"read_only": True}, ) - properties.named_outputs = AAZFreeFormDictType( + properties.named_outputs = AAZDictType( serialized_name="namedOutputs", ) properties.output = AAZListType() @@ -233,6 +237,9 @@ def _build_schema_on_200(cls): information = cls._schema_on_200.properties.information information.Element = AAZStrType() + named_outputs = cls._schema_on_200.properties.named_outputs + named_outputs.Element = AAZObjectType() + output = cls._schema_on_200.properties.output output.Element = AAZStrType() @@ -243,6 +250,26 @@ def _build_schema_on_200(cls): warnings = cls._schema_on_200.properties.warnings warnings.Element = AAZStrType() + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200 @@ -293,7 +320,9 @@ def _build_schema_script_execution_parameter_read(cls, _schema): ) disc_credential = _schema_script_execution_parameter_read.discriminate_by("type", "Credential") - disc_credential.password = AAZStrType() + disc_credential.password = AAZStrType( + flags={"secret": True}, + ) disc_credential.username = AAZStrType() disc_secure_value = _schema_script_execution_parameter_read.discriminate_by("type", "SecureValue") diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/script_package/_list.py b/src/vmware/azext_vmware/aaz/latest/vmware/script_package/_list.py index b00099d7716..9b071c7b0ae 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/script_package/_list.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/script_package/_list.py @@ -22,9 +22,9 @@ class List(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/scriptpackages", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/scriptpackages", "2023-09-01"], ] } @@ -124,7 +124,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -159,10 +159,9 @@ def _build_schema_on_200(cls): _schema_on_200 = cls._schema_on_200 _schema_on_200.next_link = AAZStrType( serialized_name="nextLink", - flags={"read_only": True}, ) _schema_on_200.value = AAZListType( - flags={"read_only": True}, + flags={"required": True}, ) value = cls._schema_on_200.value @@ -178,6 +177,10 @@ def _build_schema_on_200(cls): _element.properties = AAZObjectType( flags={"client_flatten": True}, ) + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _element.type = AAZStrType( flags={"read_only": True}, ) @@ -189,6 +192,10 @@ def _build_schema_on_200(cls): properties.description = AAZStrType( flags={"read_only": True}, ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) properties.uri = AAZStrType( flags={"read_only": True}, ) @@ -196,6 +203,26 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) + system_data = cls._schema_on_200.value.Element.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/script_package/_show.py b/src/vmware/azext_vmware/aaz/latest/vmware/script_package/_show.py index c1800386e88..8fce17fa1e3 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/script_package/_show.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/script_package/_show.py @@ -22,9 +22,9 @@ class Show(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/scriptpackages/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/scriptpackages/{}", "2023-09-01"], ] } @@ -136,7 +136,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -178,6 +178,10 @@ def _build_schema_on_200(cls): _schema_on_200.properties = AAZObjectType( flags={"client_flatten": True}, ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) @@ -189,6 +193,10 @@ def _build_schema_on_200(cls): properties.description = AAZStrType( flags={"read_only": True}, ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) properties.uri = AAZStrType( flags={"read_only": True}, ) @@ -196,6 +204,26 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/vm/_list.py b/src/vmware/azext_vmware/aaz/latest/vmware/vm/_list.py index b3e028e15be..d41bb510dc5 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/vm/_list.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/vm/_list.py @@ -22,9 +22,9 @@ class List(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/clusters/{}/virtualmachines", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/clusters/{}/virtualmachines", "2023-09-01"], ] } @@ -136,7 +136,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -171,10 +171,9 @@ def _build_schema_on_200(cls): _schema_on_200 = cls._schema_on_200 _schema_on_200.next_link = AAZStrType( serialized_name="nextLink", - flags={"read_only": True}, ) _schema_on_200.value = AAZListType( - flags={"read_only": True}, + flags={"required": True}, ) value = cls._schema_on_200.value @@ -190,6 +189,10 @@ def _build_schema_on_200(cls): _element.properties = AAZObjectType( flags={"client_flatten": True}, ) + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _element.type = AAZStrType( flags={"read_only": True}, ) @@ -207,10 +210,34 @@ def _build_schema_on_200(cls): serialized_name="moRefId", flags={"read_only": True}, ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) properties.restrict_movement = AAZStrType( serialized_name="restrictMovement", ) + system_data = cls._schema_on_200.value.Element.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/vm/_restrict_movement.py b/src/vmware/azext_vmware/aaz/latest/vmware/vm/_restrict_movement.py index c3f92b973f5..70956d3cab8 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/vm/_restrict_movement.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/vm/_restrict_movement.py @@ -22,9 +22,9 @@ class RestrictMovement(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/clusters/{}/virtualmachines/{}/restrictmovement", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/clusters/{}/virtualmachines/{}/restrictmovement", "2023-09-01"], ] } @@ -68,9 +68,12 @@ def _build_arguments_schema(cls, *args, **kwargs): ) _args_schema.virtual_machine = AAZStrArg( options=["--virtual-machine"], - help="Virtual Machine identifier", + help="ID of the virtual machine.", required=True, id_part="child_name_2", + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), ) # define Arg Group "RestrictMovement" @@ -109,7 +112,7 @@ def __call__(self, *args, **kwargs): session, None, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) @@ -160,7 +163,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/vm/_show.py b/src/vmware/azext_vmware/aaz/latest/vmware/vm/_show.py index edee2165c98..01840210092 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/vm/_show.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/vm/_show.py @@ -22,9 +22,9 @@ class Show(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/clusters/{}/virtualmachines/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/clusters/{}/virtualmachines/{}", "2023-09-01"], ] } @@ -67,9 +67,12 @@ def _build_arguments_schema(cls, *args, **kwargs): ) _args_schema.virtual_machine = AAZStrArg( options=["-n", "--name", "--virtual-machine"], - help="Virtual Machine identifier", + help="ID of the virtual machine.", required=True, id_part="child_name_2", + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), ) return cls._args_schema @@ -146,7 +149,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -188,6 +191,10 @@ def _build_schema_on_200(cls): _schema_on_200.properties = AAZObjectType( flags={"client_flatten": True}, ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) @@ -205,10 +212,34 @@ def _build_schema_on_200(cls): serialized_name="moRefId", flags={"read_only": True}, ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) properties.restrict_movement = AAZStrType( serialized_name="restrictMovement", ) + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dhcp/_create.py b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dhcp/_create.py index 19ac76a4e75..7ad962ec8a3 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dhcp/_create.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dhcp/_create.py @@ -16,9 +16,9 @@ class Create(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/dhcpconfigurations/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/dhcpconfigurations/{}", "2023-09-01"], ] } @@ -43,6 +43,9 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["-n", "--dhcp", "--name"], help="NSX DHCP identifier. Generally the same as the DHCP display name", required=True, + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), ) _args_schema.private_cloud = AAZStrArg( options=["-c", "--private-cloud"], @@ -183,7 +186,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -259,6 +262,10 @@ def _build_schema_on_200_201(cls): flags={"read_only": True}, ) _schema_on_200_201.properties = AAZObjectType() + _schema_on_200_201.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _schema_on_200_201.type = AAZStrType( flags={"read_only": True}, ) @@ -299,6 +306,26 @@ def _build_schema_on_200_201(cls): serialized_name="serverAddress", ) + system_data = cls._schema_on_200_201.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200_201 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dhcp/_delete.py b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dhcp/_delete.py index 4f61769110e..17bacd85561 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dhcp/_delete.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dhcp/_delete.py @@ -16,9 +16,9 @@ class Delete(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/dhcpconfigurations/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/dhcpconfigurations/{}", "2023-09-01"], ] } @@ -44,6 +44,9 @@ def _build_arguments_schema(cls, *args, **kwargs): help="NSX DHCP identifier. Generally the same as the DHCP display name", required=True, id_part="child_name_2", + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), ) _args_schema.private_cloud = AAZStrArg( options=["-c", "--private-cloud"], @@ -84,7 +87,7 @@ def __call__(self, *args, **kwargs): session, self.on_200, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [200]: @@ -93,7 +96,7 @@ def __call__(self, *args, **kwargs): session, self.on_200, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [204]: @@ -102,7 +105,7 @@ def __call__(self, *args, **kwargs): session, self.on_204, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) @@ -149,7 +152,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dhcp/_list.py b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dhcp/_list.py index 42bc4b4bd74..d56c444eacd 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dhcp/_list.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dhcp/_list.py @@ -22,9 +22,9 @@ class List(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/dhcpconfigurations", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/dhcpconfigurations", "2023-09-01"], ] } @@ -124,7 +124,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -159,10 +159,9 @@ def _build_schema_on_200(cls): _schema_on_200 = cls._schema_on_200 _schema_on_200.next_link = AAZStrType( serialized_name="nextLink", - flags={"read_only": True}, ) _schema_on_200.value = AAZListType( - flags={"read_only": True}, + flags={"required": True}, ) value = cls._schema_on_200.value @@ -176,6 +175,10 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) _element.properties = AAZObjectType() + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _element.type = AAZStrType( flags={"read_only": True}, ) @@ -216,6 +219,26 @@ def _build_schema_on_200(cls): serialized_name="serverAddress", ) + system_data = cls._schema_on_200.value.Element.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dhcp/_show.py b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dhcp/_show.py index d4049d18a8d..f27456b501f 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dhcp/_show.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dhcp/_show.py @@ -22,9 +22,9 @@ class Show(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/dhcpconfigurations/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/dhcpconfigurations/{}", "2023-09-01"], ] } @@ -49,6 +49,9 @@ def _build_arguments_schema(cls, *args, **kwargs): help="NSX DHCP identifier. Generally the same as the DHCP display name", required=True, id_part="child_name_2", + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), ) _args_schema.private_cloud = AAZStrArg( options=["-c", "--private-cloud"], @@ -133,7 +136,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -173,6 +176,10 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) _schema_on_200.properties = AAZObjectType() + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) @@ -213,6 +220,26 @@ def _build_schema_on_200(cls): serialized_name="serverAddress", ) + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dhcp/_update.py b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dhcp/_update.py index 5447d4a3ce6..f65e93df6f1 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dhcp/_update.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dhcp/_update.py @@ -16,9 +16,9 @@ class Update(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/dhcpconfigurations/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/dhcpconfigurations/{}", "2023-09-01"], ] } @@ -46,6 +46,9 @@ def _build_arguments_schema(cls, *args, **kwargs): help="NSX DHCP identifier. Generally the same as the DHCP display name", required=True, id_part="child_name_2", + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), ) _args_schema.private_cloud = AAZStrArg( options=["-c", "--private-cloud"], @@ -191,7 +194,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -294,7 +297,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -398,6 +401,7 @@ def _build_schema_workload_network_dhcp_read(cls, _schema): _schema.id = cls._schema_workload_network_dhcp_read.id _schema.name = cls._schema_workload_network_dhcp_read.name _schema.properties = cls._schema_workload_network_dhcp_read.properties + _schema.system_data = cls._schema_workload_network_dhcp_read.system_data _schema.type = cls._schema_workload_network_dhcp_read.type return @@ -411,6 +415,10 @@ def _build_schema_workload_network_dhcp_read(cls, _schema): flags={"read_only": True}, ) workload_network_dhcp_read.properties = AAZObjectType() + workload_network_dhcp_read.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) workload_network_dhcp_read.type = AAZStrType( flags={"read_only": True}, ) @@ -451,9 +459,30 @@ def _build_schema_workload_network_dhcp_read(cls, _schema): serialized_name="serverAddress", ) + system_data = _schema_workload_network_dhcp_read.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + _schema.id = cls._schema_workload_network_dhcp_read.id _schema.name = cls._schema_workload_network_dhcp_read.name _schema.properties = cls._schema_workload_network_dhcp_read.properties + _schema.system_data = cls._schema_workload_network_dhcp_read.system_data _schema.type = cls._schema_workload_network_dhcp_read.type diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dns_service/_create.py b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dns_service/_create.py index b862529dc5b..91cb60cb53b 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dns_service/_create.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dns_service/_create.py @@ -22,9 +22,9 @@ class Create(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/dnsservices/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/dnsservices/{}", "2023-09-01"], ] } @@ -49,6 +49,9 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["-n", "--name", "--dns-service"], help="NSX DNS Service identifier. Generally the same as the DNS Service's display name", required=True, + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), ) _args_schema.private_cloud = AAZStrArg( options=["-c", "--private-cloud"], @@ -186,7 +189,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -255,6 +258,10 @@ def _build_schema_on_200_201(cls): _schema_on_200_201.properties = AAZObjectType( flags={"client_flatten": True}, ) + _schema_on_200_201.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _schema_on_200_201.type = AAZStrType( flags={"read_only": True}, ) @@ -280,13 +287,31 @@ def _build_schema_on_200_201(cls): flags={"read_only": True}, ) properties.revision = AAZIntType() - properties.status = AAZStrType( - flags={"read_only": True}, - ) + properties.status = AAZStrType() fqdn_zones = cls._schema_on_200_201.properties.fqdn_zones fqdn_zones.Element = AAZStrType() + system_data = cls._schema_on_200_201.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200_201 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dns_service/_delete.py b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dns_service/_delete.py index cf324039222..302b6bcbb01 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dns_service/_delete.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dns_service/_delete.py @@ -23,9 +23,9 @@ class Delete(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/dnsservices/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/dnsservices/{}", "2023-09-01"], ] } @@ -51,6 +51,9 @@ def _build_arguments_schema(cls, *args, **kwargs): help="NSX DNS Service identifier. Generally the same as the DNS Service's display name", required=True, id_part="child_name_2", + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), ) _args_schema.private_cloud = AAZStrArg( options=["-c", "--private-cloud"], @@ -91,7 +94,7 @@ def __call__(self, *args, **kwargs): session, self.on_200, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [200]: @@ -100,7 +103,7 @@ def __call__(self, *args, **kwargs): session, self.on_200, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [204]: @@ -109,7 +112,7 @@ def __call__(self, *args, **kwargs): session, self.on_204, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) @@ -156,7 +159,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dns_service/_list.py b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dns_service/_list.py index 65fa50b06cf..455edea68e8 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dns_service/_list.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dns_service/_list.py @@ -22,9 +22,9 @@ class List(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/dnsservices", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/dnsservices", "2023-09-01"], ] } @@ -124,7 +124,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -159,10 +159,9 @@ def _build_schema_on_200(cls): _schema_on_200 = cls._schema_on_200 _schema_on_200.next_link = AAZStrType( serialized_name="nextLink", - flags={"read_only": True}, ) _schema_on_200.value = AAZListType( - flags={"read_only": True}, + flags={"required": True}, ) value = cls._schema_on_200.value @@ -178,6 +177,10 @@ def _build_schema_on_200(cls): _element.properties = AAZObjectType( flags={"client_flatten": True}, ) + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _element.type = AAZStrType( flags={"read_only": True}, ) @@ -203,13 +206,31 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) properties.revision = AAZIntType() - properties.status = AAZStrType( - flags={"read_only": True}, - ) + properties.status = AAZStrType() fqdn_zones = cls._schema_on_200.value.Element.properties.fqdn_zones fqdn_zones.Element = AAZStrType() + system_data = cls._schema_on_200.value.Element.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dns_service/_show.py b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dns_service/_show.py index 59aac72ef78..7e44c23ca33 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dns_service/_show.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dns_service/_show.py @@ -22,9 +22,9 @@ class Show(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/dnsservices/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/dnsservices/{}", "2023-09-01"], ] } @@ -49,6 +49,9 @@ def _build_arguments_schema(cls, *args, **kwargs): help="NSX DNS Service identifier. Generally the same as the DNS Service's display name", required=True, id_part="child_name_2", + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), ) _args_schema.private_cloud = AAZStrArg( options=["-c", "--private-cloud"], @@ -133,7 +136,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -175,6 +178,10 @@ def _build_schema_on_200(cls): _schema_on_200.properties = AAZObjectType( flags={"client_flatten": True}, ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) @@ -200,13 +207,31 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) properties.revision = AAZIntType() - properties.status = AAZStrType( - flags={"read_only": True}, - ) + properties.status = AAZStrType() fqdn_zones = cls._schema_on_200.properties.fqdn_zones fqdn_zones.Element = AAZStrType() + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dns_service/_update.py b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dns_service/_update.py index ff5d4326454..c71a1ea6435 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dns_service/_update.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dns_service/_update.py @@ -22,9 +22,9 @@ class Update(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/dnsservices/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/dnsservices/{}", "2023-09-01"], ] } @@ -52,6 +52,9 @@ def _build_arguments_schema(cls, *args, **kwargs): help="NSX DNS Service identifier. Generally the same as the DNS Service's display name", required=True, id_part="child_name_2", + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), ) _args_schema.private_cloud = AAZStrArg( options=["-c", "--private-cloud"], @@ -195,7 +198,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -298,7 +301,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -393,6 +396,7 @@ def _build_schema_workload_network_dns_service_read(cls, _schema): _schema.id = cls._schema_workload_network_dns_service_read.id _schema.name = cls._schema_workload_network_dns_service_read.name _schema.properties = cls._schema_workload_network_dns_service_read.properties + _schema.system_data = cls._schema_workload_network_dns_service_read.system_data _schema.type = cls._schema_workload_network_dns_service_read.type return @@ -408,6 +412,10 @@ def _build_schema_workload_network_dns_service_read(cls, _schema): workload_network_dns_service_read.properties = AAZObjectType( flags={"client_flatten": True}, ) + workload_network_dns_service_read.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) workload_network_dns_service_read.type = AAZStrType( flags={"read_only": True}, ) @@ -433,16 +441,35 @@ def _build_schema_workload_network_dns_service_read(cls, _schema): flags={"read_only": True}, ) properties.revision = AAZIntType() - properties.status = AAZStrType( - flags={"read_only": True}, - ) + properties.status = AAZStrType() fqdn_zones = _schema_workload_network_dns_service_read.properties.fqdn_zones fqdn_zones.Element = AAZStrType() + system_data = _schema_workload_network_dns_service_read.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + _schema.id = cls._schema_workload_network_dns_service_read.id _schema.name = cls._schema_workload_network_dns_service_read.name _schema.properties = cls._schema_workload_network_dns_service_read.properties + _schema.system_data = cls._schema_workload_network_dns_service_read.system_data _schema.type = cls._schema_workload_network_dns_service_read.type diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dns_service/_wait.py b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dns_service/_wait.py index 485bff79045..3c24d9e8bcd 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dns_service/_wait.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dns_service/_wait.py @@ -20,7 +20,7 @@ class Wait(AAZWaitCommand): _aaz_info = { "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/dnsservices/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/dnsservices/{}", "2023-09-01"], ] } @@ -45,6 +45,9 @@ def _build_arguments_schema(cls, *args, **kwargs): help="NSX DNS Service identifier. Generally the same as the DNS Service's display name", required=True, id_part="child_name_2", + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), ) _args_schema.private_cloud = AAZStrArg( options=["-c", "--private-cloud"], @@ -129,7 +132,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -171,6 +174,10 @@ def _build_schema_on_200(cls): _schema_on_200.properties = AAZObjectType( flags={"client_flatten": True}, ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) @@ -196,13 +203,31 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) properties.revision = AAZIntType() - properties.status = AAZStrType( - flags={"read_only": True}, - ) + properties.status = AAZStrType() fqdn_zones = cls._schema_on_200.properties.fqdn_zones fqdn_zones.Element = AAZStrType() + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dns_zone/_create.py b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dns_zone/_create.py index fdab4b1bf8f..c3543aaafbc 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dns_zone/_create.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dns_zone/_create.py @@ -22,9 +22,9 @@ class Create(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/dnszones/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/dnszones/{}", "2023-09-01"], ] } @@ -49,6 +49,9 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["-n", "--name", "--dns-zone"], help="NSX DNS Zone identifier. Generally the same as the DNS Zone's display name", required=True, + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), ) _args_schema.private_cloud = AAZStrArg( options=["-c", "--private-cloud"], @@ -188,7 +191,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -261,6 +264,10 @@ def _build_schema_on_200_201(cls): _schema_on_200_201.properties = AAZObjectType( flags={"client_flatten": True}, ) + _schema_on_200_201.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _schema_on_200_201.type = AAZStrType( flags={"read_only": True}, ) @@ -291,6 +298,26 @@ def _build_schema_on_200_201(cls): domain = cls._schema_on_200_201.properties.domain domain.Element = AAZStrType() + system_data = cls._schema_on_200_201.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200_201 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dns_zone/_delete.py b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dns_zone/_delete.py index 7b0196910ef..3a6bd36d70a 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dns_zone/_delete.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dns_zone/_delete.py @@ -23,9 +23,9 @@ class Delete(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/dnszones/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/dnszones/{}", "2023-09-01"], ] } @@ -51,6 +51,9 @@ def _build_arguments_schema(cls, *args, **kwargs): help="NSX DNS Zone identifier. Generally the same as the DNS Zone's display name", required=True, id_part="child_name_2", + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), ) _args_schema.private_cloud = AAZStrArg( options=["-c", "--private-cloud"], @@ -91,7 +94,7 @@ def __call__(self, *args, **kwargs): session, self.on_200, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [200]: @@ -100,7 +103,7 @@ def __call__(self, *args, **kwargs): session, self.on_200, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [204]: @@ -109,7 +112,7 @@ def __call__(self, *args, **kwargs): session, self.on_204, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) @@ -156,7 +159,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dns_zone/_list.py b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dns_zone/_list.py index 3c353da3f69..cd722fda283 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dns_zone/_list.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dns_zone/_list.py @@ -22,9 +22,9 @@ class List(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/dnszones", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/dnszones", "2023-09-01"], ] } @@ -124,7 +124,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -159,10 +159,9 @@ def _build_schema_on_200(cls): _schema_on_200 = cls._schema_on_200 _schema_on_200.next_link = AAZStrType( serialized_name="nextLink", - flags={"read_only": True}, ) _schema_on_200.value = AAZListType( - flags={"read_only": True}, + flags={"required": True}, ) value = cls._schema_on_200.value @@ -178,6 +177,10 @@ def _build_schema_on_200(cls): _element.properties = AAZObjectType( flags={"client_flatten": True}, ) + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _element.type = AAZStrType( flags={"read_only": True}, ) @@ -208,6 +211,26 @@ def _build_schema_on_200(cls): domain = cls._schema_on_200.value.Element.properties.domain domain.Element = AAZStrType() + system_data = cls._schema_on_200.value.Element.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dns_zone/_show.py b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dns_zone/_show.py index 8549a1c48bd..a422988a8ff 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dns_zone/_show.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dns_zone/_show.py @@ -22,9 +22,9 @@ class Show(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/dnszones/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/dnszones/{}", "2023-09-01"], ] } @@ -49,6 +49,9 @@ def _build_arguments_schema(cls, *args, **kwargs): help="NSX DNS Zone identifier. Generally the same as the DNS Zone's display name", required=True, id_part="child_name_2", + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), ) _args_schema.private_cloud = AAZStrArg( options=["-c", "--private-cloud"], @@ -133,7 +136,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -175,6 +178,10 @@ def _build_schema_on_200(cls): _schema_on_200.properties = AAZObjectType( flags={"client_flatten": True}, ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) @@ -205,6 +212,26 @@ def _build_schema_on_200(cls): domain = cls._schema_on_200.properties.domain domain.Element = AAZStrType() + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dns_zone/_update.py b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dns_zone/_update.py index 17c22cfd293..d9dda2d0633 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dns_zone/_update.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dns_zone/_update.py @@ -22,9 +22,9 @@ class Update(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/dnszones/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/dnszones/{}", "2023-09-01"], ] } @@ -52,6 +52,9 @@ def _build_arguments_schema(cls, *args, **kwargs): help="NSX DNS Zone identifier. Generally the same as the DNS Zone's display name", required=True, id_part="child_name_2", + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), ) _args_schema.private_cloud = AAZStrArg( options=["-c", "--private-cloud"], @@ -199,7 +202,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -302,7 +305,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -401,6 +404,7 @@ def _build_schema_workload_network_dns_zone_read(cls, _schema): _schema.id = cls._schema_workload_network_dns_zone_read.id _schema.name = cls._schema_workload_network_dns_zone_read.name _schema.properties = cls._schema_workload_network_dns_zone_read.properties + _schema.system_data = cls._schema_workload_network_dns_zone_read.system_data _schema.type = cls._schema_workload_network_dns_zone_read.type return @@ -416,6 +420,10 @@ def _build_schema_workload_network_dns_zone_read(cls, _schema): workload_network_dns_zone_read.properties = AAZObjectType( flags={"client_flatten": True}, ) + workload_network_dns_zone_read.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) workload_network_dns_zone_read.type = AAZStrType( flags={"read_only": True}, ) @@ -446,9 +454,30 @@ def _build_schema_workload_network_dns_zone_read(cls, _schema): domain = _schema_workload_network_dns_zone_read.properties.domain domain.Element = AAZStrType() + system_data = _schema_workload_network_dns_zone_read.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + _schema.id = cls._schema_workload_network_dns_zone_read.id _schema.name = cls._schema_workload_network_dns_zone_read.name _schema.properties = cls._schema_workload_network_dns_zone_read.properties + _schema.system_data = cls._schema_workload_network_dns_zone_read.system_data _schema.type = cls._schema_workload_network_dns_zone_read.type diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dns_zone/_wait.py b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dns_zone/_wait.py index d1442a1c169..89da1cbb7ad 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dns_zone/_wait.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/dns_zone/_wait.py @@ -20,7 +20,7 @@ class Wait(AAZWaitCommand): _aaz_info = { "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/dnszones/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/dnszones/{}", "2023-09-01"], ] } @@ -45,6 +45,9 @@ def _build_arguments_schema(cls, *args, **kwargs): help="NSX DNS Zone identifier. Generally the same as the DNS Zone's display name", required=True, id_part="child_name_2", + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), ) _args_schema.private_cloud = AAZStrArg( options=["-c", "--private-cloud"], @@ -129,7 +132,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -171,6 +174,10 @@ def _build_schema_on_200(cls): _schema_on_200.properties = AAZObjectType( flags={"client_flatten": True}, ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) @@ -201,6 +208,26 @@ def _build_schema_on_200(cls): domain = cls._schema_on_200.properties.domain domain.Element = AAZStrType() + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/gateway/_list.py b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/gateway/_list.py index 466d8496d9e..abbd6ebc80a 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/gateway/_list.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/gateway/_list.py @@ -22,9 +22,9 @@ class List(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/gateways", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/gateways", "2023-09-01"], ] } @@ -124,7 +124,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -159,10 +159,9 @@ def _build_schema_on_200(cls): _schema_on_200 = cls._schema_on_200 _schema_on_200.next_link = AAZStrType( serialized_name="nextLink", - flags={"read_only": True}, ) _schema_on_200.value = AAZListType( - flags={"read_only": True}, + flags={"required": True}, ) value = cls._schema_on_200.value @@ -178,6 +177,10 @@ def _build_schema_on_200(cls): _element.properties = AAZObjectType( flags={"client_flatten": True}, ) + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _element.type = AAZStrType( flags={"read_only": True}, ) @@ -189,6 +192,30 @@ def _build_schema_on_200(cls): properties.path = AAZStrType( flags={"read_only": True}, ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + + system_data = cls._schema_on_200.value.Element.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/gateway/_show.py b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/gateway/_show.py index 024b477cd20..0fe4fbf20ea 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/gateway/_show.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/gateway/_show.py @@ -22,9 +22,9 @@ class Show(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/gateways/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/gateways/{}", "2023-09-01"], ] } @@ -49,6 +49,9 @@ def _build_arguments_schema(cls, *args, **kwargs): help="NSX Gateway identifier. Generally the same as the Gateway's display name", required=True, id_part="child_name_2", + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), ) _args_schema.private_cloud = AAZStrArg( options=["-c", "--private-cloud"], @@ -133,7 +136,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -175,6 +178,10 @@ def _build_schema_on_200(cls): _schema_on_200.properties = AAZObjectType( flags={"client_flatten": True}, ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) @@ -186,6 +193,30 @@ def _build_schema_on_200(cls): properties.path = AAZStrType( flags={"read_only": True}, ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/port_mirroring/_create.py b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/port_mirroring/_create.py index 2039979cbd6..f3dea37f427 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/port_mirroring/_create.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/port_mirroring/_create.py @@ -22,9 +22,9 @@ class Create(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/portmirroringprofiles/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/portmirroringprofiles/{}", "2023-09-01"], ] } @@ -49,6 +49,9 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["-n", "--name", "--port-mirroring"], help="NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name", required=True, + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), ) _args_schema.private_cloud = AAZStrArg( options=["-c", "--private-cloud"], @@ -178,7 +181,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -242,6 +245,10 @@ def _build_schema_on_200_201(cls): _schema_on_200_201.properties = AAZObjectType( flags={"client_flatten": True}, ) + _schema_on_200_201.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _schema_on_200_201.type = AAZStrType( flags={"read_only": True}, ) @@ -258,8 +265,26 @@ def _build_schema_on_200_201(cls): ) properties.revision = AAZIntType() properties.source = AAZStrType() - properties.status = AAZStrType( - flags={"read_only": True}, + properties.status = AAZStrType() + + system_data = cls._schema_on_200_201.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", ) return cls._schema_on_200_201 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/port_mirroring/_delete.py b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/port_mirroring/_delete.py index 5a67a8d84c3..85694f50f96 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/port_mirroring/_delete.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/port_mirroring/_delete.py @@ -23,9 +23,9 @@ class Delete(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/portmirroringprofiles/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/portmirroringprofiles/{}", "2023-09-01"], ] } @@ -51,6 +51,9 @@ def _build_arguments_schema(cls, *args, **kwargs): help="NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name", required=True, id_part="child_name_2", + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), ) _args_schema.private_cloud = AAZStrArg( options=["-c", "--private-cloud"], @@ -91,7 +94,7 @@ def __call__(self, *args, **kwargs): session, self.on_200, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [200]: @@ -100,7 +103,7 @@ def __call__(self, *args, **kwargs): session, self.on_200, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [204]: @@ -109,7 +112,7 @@ def __call__(self, *args, **kwargs): session, self.on_204, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) @@ -156,7 +159,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/port_mirroring/_list.py b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/port_mirroring/_list.py index 715485cf596..f1fec405716 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/port_mirroring/_list.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/port_mirroring/_list.py @@ -22,9 +22,9 @@ class List(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/portmirroringprofiles", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/portmirroringprofiles", "2023-09-01"], ] } @@ -124,7 +124,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -159,10 +159,9 @@ def _build_schema_on_200(cls): _schema_on_200 = cls._schema_on_200 _schema_on_200.next_link = AAZStrType( serialized_name="nextLink", - flags={"read_only": True}, ) _schema_on_200.value = AAZListType( - flags={"read_only": True}, + flags={"required": True}, ) value = cls._schema_on_200.value @@ -178,6 +177,10 @@ def _build_schema_on_200(cls): _element.properties = AAZObjectType( flags={"client_flatten": True}, ) + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _element.type = AAZStrType( flags={"read_only": True}, ) @@ -194,8 +197,26 @@ def _build_schema_on_200(cls): ) properties.revision = AAZIntType() properties.source = AAZStrType() - properties.status = AAZStrType( - flags={"read_only": True}, + properties.status = AAZStrType() + + system_data = cls._schema_on_200.value.Element.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", ) return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/port_mirroring/_show.py b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/port_mirroring/_show.py index 5b706bb26ba..5776f29d548 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/port_mirroring/_show.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/port_mirroring/_show.py @@ -22,9 +22,9 @@ class Show(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/portmirroringprofiles/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/portmirroringprofiles/{}", "2023-09-01"], ] } @@ -49,6 +49,9 @@ def _build_arguments_schema(cls, *args, **kwargs): help="NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name", required=True, id_part="child_name_2", + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), ) _args_schema.private_cloud = AAZStrArg( options=["-c", "--private-cloud"], @@ -133,7 +136,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -175,6 +178,10 @@ def _build_schema_on_200(cls): _schema_on_200.properties = AAZObjectType( flags={"client_flatten": True}, ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) @@ -191,8 +198,26 @@ def _build_schema_on_200(cls): ) properties.revision = AAZIntType() properties.source = AAZStrType() - properties.status = AAZStrType( - flags={"read_only": True}, + properties.status = AAZStrType() + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", ) return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/port_mirroring/_update.py b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/port_mirroring/_update.py index 4358ba007a4..a698df71702 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/port_mirroring/_update.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/port_mirroring/_update.py @@ -22,9 +22,9 @@ class Update(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/portmirroringprofiles/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/portmirroringprofiles/{}", "2023-09-01"], ] } @@ -52,6 +52,9 @@ def _build_arguments_schema(cls, *args, **kwargs): help="NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name", required=True, id_part="child_name_2", + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), ) _args_schema.private_cloud = AAZStrArg( options=["-c", "--private-cloud"], @@ -184,7 +187,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -287,7 +290,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -377,6 +380,7 @@ def _build_schema_workload_network_port_mirroring_read(cls, _schema): _schema.id = cls._schema_workload_network_port_mirroring_read.id _schema.name = cls._schema_workload_network_port_mirroring_read.name _schema.properties = cls._schema_workload_network_port_mirroring_read.properties + _schema.system_data = cls._schema_workload_network_port_mirroring_read.system_data _schema.type = cls._schema_workload_network_port_mirroring_read.type return @@ -392,6 +396,10 @@ def _build_schema_workload_network_port_mirroring_read(cls, _schema): workload_network_port_mirroring_read.properties = AAZObjectType( flags={"client_flatten": True}, ) + workload_network_port_mirroring_read.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) workload_network_port_mirroring_read.type = AAZStrType( flags={"read_only": True}, ) @@ -408,13 +416,32 @@ def _build_schema_workload_network_port_mirroring_read(cls, _schema): ) properties.revision = AAZIntType() properties.source = AAZStrType() - properties.status = AAZStrType( - flags={"read_only": True}, + properties.status = AAZStrType() + + system_data = _schema_workload_network_port_mirroring_read.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", ) _schema.id = cls._schema_workload_network_port_mirroring_read.id _schema.name = cls._schema_workload_network_port_mirroring_read.name _schema.properties = cls._schema_workload_network_port_mirroring_read.properties + _schema.system_data = cls._schema_workload_network_port_mirroring_read.system_data _schema.type = cls._schema_workload_network_port_mirroring_read.type diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/port_mirroring/_wait.py b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/port_mirroring/_wait.py index aad1c529724..04dc5931e3c 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/port_mirroring/_wait.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/port_mirroring/_wait.py @@ -20,7 +20,7 @@ class Wait(AAZWaitCommand): _aaz_info = { "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/portmirroringprofiles/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/portmirroringprofiles/{}", "2023-09-01"], ] } @@ -45,6 +45,9 @@ def _build_arguments_schema(cls, *args, **kwargs): help="NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name", required=True, id_part="child_name_2", + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), ) _args_schema.private_cloud = AAZStrArg( options=["-c", "--private-cloud"], @@ -129,7 +132,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -171,6 +174,10 @@ def _build_schema_on_200(cls): _schema_on_200.properties = AAZObjectType( flags={"client_flatten": True}, ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) @@ -187,8 +194,26 @@ def _build_schema_on_200(cls): ) properties.revision = AAZIntType() properties.source = AAZStrType() - properties.status = AAZStrType( - flags={"read_only": True}, + properties.status = AAZStrType() + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", ) return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/public_ip/_create.py b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/public_ip/_create.py index 72ef087b4ed..0c629b05f28 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/public_ip/_create.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/public_ip/_create.py @@ -22,9 +22,9 @@ class Create(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/publicips/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/publicips/{}", "2023-09-01"], ] } @@ -57,6 +57,9 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["-n", "--name", "--public-ip"], help="NSX Public IP Block identifier. Generally the same as the Public IP Block's display name", required=True, + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), ) _args_schema.resource_group = AAZResourceGroupNameArg( required=True, @@ -162,7 +165,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -223,6 +226,10 @@ def _build_schema_on_200_201(cls): _schema_on_200_201.properties = AAZObjectType( flags={"client_flatten": True}, ) + _schema_on_200_201.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _schema_on_200_201.type = AAZStrType( flags={"read_only": True}, ) @@ -243,6 +250,26 @@ def _build_schema_on_200_201(cls): flags={"read_only": True}, ) + system_data = cls._schema_on_200_201.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200_201 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/public_ip/_delete.py b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/public_ip/_delete.py index 3ede5bb6766..fd8a7ba10e6 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/public_ip/_delete.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/public_ip/_delete.py @@ -23,9 +23,9 @@ class Delete(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/publicips/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/publicips/{}", "2023-09-01"], ] } @@ -60,6 +60,9 @@ def _build_arguments_schema(cls, *args, **kwargs): help="NSX Public IP Block identifier. Generally the same as the Public IP Block's display name", required=True, id_part="child_name_2", + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), ) _args_schema.resource_group = AAZResourceGroupNameArg( required=True, @@ -91,7 +94,7 @@ def __call__(self, *args, **kwargs): session, self.on_200, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [200]: @@ -100,7 +103,7 @@ def __call__(self, *args, **kwargs): session, self.on_200, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [204]: @@ -109,7 +112,7 @@ def __call__(self, *args, **kwargs): session, self.on_204, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) @@ -156,7 +159,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/public_ip/_list.py b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/public_ip/_list.py index accf55a20b5..ef57aa9d8c2 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/public_ip/_list.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/public_ip/_list.py @@ -22,9 +22,9 @@ class List(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/publicips", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/publicips", "2023-09-01"], ] } @@ -124,7 +124,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -159,10 +159,9 @@ def _build_schema_on_200(cls): _schema_on_200 = cls._schema_on_200 _schema_on_200.next_link = AAZStrType( serialized_name="nextLink", - flags={"read_only": True}, ) _schema_on_200.value = AAZListType( - flags={"read_only": True}, + flags={"required": True}, ) value = cls._schema_on_200.value @@ -178,6 +177,10 @@ def _build_schema_on_200(cls): _element.properties = AAZObjectType( flags={"client_flatten": True}, ) + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _element.type = AAZStrType( flags={"read_only": True}, ) @@ -198,6 +201,26 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) + system_data = cls._schema_on_200.value.Element.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/public_ip/_show.py b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/public_ip/_show.py index 14d7570b70e..b2c03d22cf3 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/public_ip/_show.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/public_ip/_show.py @@ -22,9 +22,9 @@ class Show(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/publicips/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/publicips/{}", "2023-09-01"], ] } @@ -58,6 +58,9 @@ def _build_arguments_schema(cls, *args, **kwargs): help="NSX Public IP Block identifier. Generally the same as the Public IP Block's display name", required=True, id_part="child_name_2", + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), ) _args_schema.resource_group = AAZResourceGroupNameArg( required=True, @@ -133,7 +136,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -175,6 +178,10 @@ def _build_schema_on_200(cls): _schema_on_200.properties = AAZObjectType( flags={"client_flatten": True}, ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) @@ -195,6 +202,26 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/public_ip/_wait.py b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/public_ip/_wait.py index a3dfb79c37e..19342ead827 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/public_ip/_wait.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/public_ip/_wait.py @@ -20,7 +20,7 @@ class Wait(AAZWaitCommand): _aaz_info = { "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/publicips/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/publicips/{}", "2023-09-01"], ] } @@ -54,6 +54,9 @@ def _build_arguments_schema(cls, *args, **kwargs): help="NSX Public IP Block identifier. Generally the same as the Public IP Block's display name", required=True, id_part="child_name_2", + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), ) _args_schema.resource_group = AAZResourceGroupNameArg( required=True, @@ -129,7 +132,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -171,6 +174,10 @@ def _build_schema_on_200(cls): _schema_on_200.properties = AAZObjectType( flags={"client_flatten": True}, ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) @@ -191,6 +198,26 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/segment/_create.py b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/segment/_create.py index 091d66c0144..f120b1314f9 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/segment/_create.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/segment/_create.py @@ -22,9 +22,9 @@ class Create(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/segments/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/segments/{}", "2023-09-01"], ] } @@ -60,6 +60,9 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["-n", "--name", "--segment"], help="NSX Segment identifier. Generally the same as the Segment's display name", required=True, + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), ) # define Arg Group "Properties" @@ -184,7 +187,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -256,6 +259,10 @@ def _build_schema_on_200_201(cls): _schema_on_200_201.properties = AAZObjectType( flags={"client_flatten": True}, ) + _schema_on_200_201.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _schema_on_200_201.type = AAZStrType( flags={"read_only": True}, ) @@ -276,9 +283,7 @@ def _build_schema_on_200_201(cls): flags={"read_only": True}, ) properties.revision = AAZIntType() - properties.status = AAZStrType( - flags={"read_only": True}, - ) + properties.status = AAZStrType() properties.subnet = AAZObjectType() port_vif = cls._schema_on_200_201.properties.port_vif @@ -300,6 +305,26 @@ def _build_schema_on_200_201(cls): dhcp_ranges = cls._schema_on_200_201.properties.subnet.dhcp_ranges dhcp_ranges.Element = AAZStrType() + system_data = cls._schema_on_200_201.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200_201 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/segment/_delete.py b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/segment/_delete.py index 684ba833040..2b378cd78ae 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/segment/_delete.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/segment/_delete.py @@ -23,9 +23,9 @@ class Delete(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/segments/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/segments/{}", "2023-09-01"], ] } @@ -63,6 +63,9 @@ def _build_arguments_schema(cls, *args, **kwargs): help="NSX Segment identifier. Generally the same as the Segment's display name", required=True, id_part="child_name_2", + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), ) return cls._args_schema @@ -91,7 +94,7 @@ def __call__(self, *args, **kwargs): session, self.on_200, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [200]: @@ -100,7 +103,7 @@ def __call__(self, *args, **kwargs): session, self.on_200, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [204]: @@ -109,7 +112,7 @@ def __call__(self, *args, **kwargs): session, self.on_204, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) @@ -156,7 +159,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/segment/_list.py b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/segment/_list.py index 00a555590de..763d660facb 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/segment/_list.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/segment/_list.py @@ -22,9 +22,9 @@ class List(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/segments", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/segments", "2023-09-01"], ] } @@ -124,7 +124,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -159,10 +159,9 @@ def _build_schema_on_200(cls): _schema_on_200 = cls._schema_on_200 _schema_on_200.next_link = AAZStrType( serialized_name="nextLink", - flags={"read_only": True}, ) _schema_on_200.value = AAZListType( - flags={"read_only": True}, + flags={"required": True}, ) value = cls._schema_on_200.value @@ -178,6 +177,10 @@ def _build_schema_on_200(cls): _element.properties = AAZObjectType( flags={"client_flatten": True}, ) + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _element.type = AAZStrType( flags={"read_only": True}, ) @@ -198,9 +201,7 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) properties.revision = AAZIntType() - properties.status = AAZStrType( - flags={"read_only": True}, - ) + properties.status = AAZStrType() properties.subnet = AAZObjectType() port_vif = cls._schema_on_200.value.Element.properties.port_vif @@ -222,6 +223,26 @@ def _build_schema_on_200(cls): dhcp_ranges = cls._schema_on_200.value.Element.properties.subnet.dhcp_ranges dhcp_ranges.Element = AAZStrType() + system_data = cls._schema_on_200.value.Element.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/segment/_show.py b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/segment/_show.py index fddf7b681a6..f4b9f5ff37f 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/segment/_show.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/segment/_show.py @@ -22,9 +22,9 @@ class Show(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/segments/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/segments/{}", "2023-09-01"], ] } @@ -61,6 +61,9 @@ def _build_arguments_schema(cls, *args, **kwargs): help="NSX Segment identifier. Generally the same as the Segment's display name", required=True, id_part="child_name_2", + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), ) return cls._args_schema @@ -133,7 +136,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -175,6 +178,10 @@ def _build_schema_on_200(cls): _schema_on_200.properties = AAZObjectType( flags={"client_flatten": True}, ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) @@ -195,9 +202,7 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) properties.revision = AAZIntType() - properties.status = AAZStrType( - flags={"read_only": True}, - ) + properties.status = AAZStrType() properties.subnet = AAZObjectType() port_vif = cls._schema_on_200.properties.port_vif @@ -219,6 +224,26 @@ def _build_schema_on_200(cls): dhcp_ranges = cls._schema_on_200.properties.subnet.dhcp_ranges dhcp_ranges.Element = AAZStrType() + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/segment/_update.py b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/segment/_update.py index b48a5e0f4a9..927838be375 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/segment/_update.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/segment/_update.py @@ -22,9 +22,9 @@ class Update(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/segments/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/segments/{}", "2023-09-01"], ] } @@ -64,6 +64,9 @@ def _build_arguments_schema(cls, *args, **kwargs): help="NSX Segment identifier. Generally the same as the Segment's display name", required=True, id_part="child_name_2", + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), ) # define Arg Group "Properties" @@ -192,7 +195,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -295,7 +298,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -393,6 +396,7 @@ def _build_schema_workload_network_segment_read(cls, _schema): _schema.id = cls._schema_workload_network_segment_read.id _schema.name = cls._schema_workload_network_segment_read.name _schema.properties = cls._schema_workload_network_segment_read.properties + _schema.system_data = cls._schema_workload_network_segment_read.system_data _schema.type = cls._schema_workload_network_segment_read.type return @@ -408,6 +412,10 @@ def _build_schema_workload_network_segment_read(cls, _schema): workload_network_segment_read.properties = AAZObjectType( flags={"client_flatten": True}, ) + workload_network_segment_read.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) workload_network_segment_read.type = AAZStrType( flags={"read_only": True}, ) @@ -428,9 +436,7 @@ def _build_schema_workload_network_segment_read(cls, _schema): flags={"read_only": True}, ) properties.revision = AAZIntType() - properties.status = AAZStrType( - flags={"read_only": True}, - ) + properties.status = AAZStrType() properties.subnet = AAZObjectType() port_vif = _schema_workload_network_segment_read.properties.port_vif @@ -452,9 +458,30 @@ def _build_schema_workload_network_segment_read(cls, _schema): dhcp_ranges = _schema_workload_network_segment_read.properties.subnet.dhcp_ranges dhcp_ranges.Element = AAZStrType() + system_data = _schema_workload_network_segment_read.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + _schema.id = cls._schema_workload_network_segment_read.id _schema.name = cls._schema_workload_network_segment_read.name _schema.properties = cls._schema_workload_network_segment_read.properties + _schema.system_data = cls._schema_workload_network_segment_read.system_data _schema.type = cls._schema_workload_network_segment_read.type diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/segment/_wait.py b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/segment/_wait.py index 76ea914d8ec..fa25dc730a3 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/segment/_wait.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/segment/_wait.py @@ -20,7 +20,7 @@ class Wait(AAZWaitCommand): _aaz_info = { "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/segments/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/segments/{}", "2023-09-01"], ] } @@ -57,6 +57,9 @@ def _build_arguments_schema(cls, *args, **kwargs): help="NSX Segment identifier. Generally the same as the Segment's display name", required=True, id_part="child_name_2", + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), ) return cls._args_schema @@ -129,7 +132,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -171,6 +174,10 @@ def _build_schema_on_200(cls): _schema_on_200.properties = AAZObjectType( flags={"client_flatten": True}, ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) @@ -191,9 +198,7 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) properties.revision = AAZIntType() - properties.status = AAZStrType( - flags={"read_only": True}, - ) + properties.status = AAZStrType() properties.subnet = AAZObjectType() port_vif = cls._schema_on_200.properties.port_vif @@ -215,6 +220,26 @@ def _build_schema_on_200(cls): dhcp_ranges = cls._schema_on_200.properties.subnet.dhcp_ranges dhcp_ranges.Element = AAZStrType() + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/vm/_list.py b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/vm/_list.py index bcc08410c4b..af466203032 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/vm/_list.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/vm/_list.py @@ -22,9 +22,9 @@ class List(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/virtualmachines", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/virtualmachines", "2023-09-01"], ] } @@ -124,7 +124,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -159,10 +159,9 @@ def _build_schema_on_200(cls): _schema_on_200 = cls._schema_on_200 _schema_on_200.next_link = AAZStrType( serialized_name="nextLink", - flags={"read_only": True}, ) _schema_on_200.value = AAZListType( - flags={"read_only": True}, + flags={"required": True}, ) value = cls._schema_on_200.value @@ -178,6 +177,10 @@ def _build_schema_on_200(cls): _element.properties = AAZObjectType( flags={"client_flatten": True}, ) + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _element.type = AAZStrType( flags={"read_only": True}, ) @@ -186,9 +189,32 @@ def _build_schema_on_200(cls): properties.display_name = AAZStrType( serialized_name="displayName", ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) properties.vm_type = AAZStrType( serialized_name="vmType", - flags={"read_only": True}, + ) + + system_data = cls._schema_on_200.value.Element.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", ) return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/vm/_show.py b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/vm/_show.py index 5429186a9da..906e15ca0f6 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/vm/_show.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/vm/_show.py @@ -22,9 +22,9 @@ class Show(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/virtualmachines/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/virtualmachines/{}", "2023-09-01"], ] } @@ -61,6 +61,9 @@ def _build_arguments_schema(cls, *args, **kwargs): help="Virtual Machine identifier", required=True, id_part="child_name_2", + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), ) return cls._args_schema @@ -133,7 +136,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -175,6 +178,10 @@ def _build_schema_on_200(cls): _schema_on_200.properties = AAZObjectType( flags={"client_flatten": True}, ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) @@ -183,9 +190,32 @@ def _build_schema_on_200(cls): properties.display_name = AAZStrType( serialized_name="displayName", ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) properties.vm_type = AAZStrType( serialized_name="vmType", - flags={"read_only": True}, + ) + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", ) return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/vm_group/_create.py b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/vm_group/_create.py index 1ecb80d2121..6ebdececf3f 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/vm_group/_create.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/vm_group/_create.py @@ -22,9 +22,9 @@ class Create(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/vmgroups/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/vmgroups/{}", "2023-09-01"], ] } @@ -60,6 +60,9 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["-n", "--name", "--vm-group"], help="NSX VM Group identifier. Generally the same as the VM Group's display name", required=True, + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), ) # define Arg Group "Properties" @@ -170,7 +173,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -236,6 +239,10 @@ def _build_schema_on_200_201(cls): _schema_on_200_201.properties = AAZObjectType( flags={"client_flatten": True}, ) + _schema_on_200_201.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _schema_on_200_201.type = AAZStrType( flags={"read_only": True}, ) @@ -250,13 +257,31 @@ def _build_schema_on_200_201(cls): flags={"read_only": True}, ) properties.revision = AAZIntType() - properties.status = AAZStrType( - flags={"read_only": True}, - ) + properties.status = AAZStrType() members = cls._schema_on_200_201.properties.members members.Element = AAZStrType() + system_data = cls._schema_on_200_201.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200_201 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/vm_group/_delete.py b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/vm_group/_delete.py index 953b84d8e40..14b21bdf524 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/vm_group/_delete.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/vm_group/_delete.py @@ -23,9 +23,9 @@ class Delete(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/vmgroups/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/vmgroups/{}", "2023-09-01"], ] } @@ -63,6 +63,9 @@ def _build_arguments_schema(cls, *args, **kwargs): help="NSX VM Group identifier. Generally the same as the VM Group's display name", required=True, id_part="child_name_2", + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), ) return cls._args_schema @@ -91,7 +94,7 @@ def __call__(self, *args, **kwargs): session, self.on_200, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [200]: @@ -100,7 +103,7 @@ def __call__(self, *args, **kwargs): session, self.on_200, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) if session.http_response.status_code in [204]: @@ -109,7 +112,7 @@ def __call__(self, *args, **kwargs): session, self.on_204, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) @@ -156,7 +159,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/vm_group/_list.py b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/vm_group/_list.py index 23ebfd7e2d7..c52f7130597 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/vm_group/_list.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/vm_group/_list.py @@ -22,9 +22,9 @@ class List(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/vmgroups", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/vmgroups", "2023-09-01"], ] } @@ -124,7 +124,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -159,10 +159,9 @@ def _build_schema_on_200(cls): _schema_on_200 = cls._schema_on_200 _schema_on_200.next_link = AAZStrType( serialized_name="nextLink", - flags={"read_only": True}, ) _schema_on_200.value = AAZListType( - flags={"read_only": True}, + flags={"required": True}, ) value = cls._schema_on_200.value @@ -178,6 +177,10 @@ def _build_schema_on_200(cls): _element.properties = AAZObjectType( flags={"client_flatten": True}, ) + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _element.type = AAZStrType( flags={"read_only": True}, ) @@ -192,13 +195,31 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) properties.revision = AAZIntType() - properties.status = AAZStrType( - flags={"read_only": True}, - ) + properties.status = AAZStrType() members = cls._schema_on_200.value.Element.properties.members members.Element = AAZStrType() + system_data = cls._schema_on_200.value.Element.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/vm_group/_show.py b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/vm_group/_show.py index e6a5639180a..561974402b1 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/vm_group/_show.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/vm_group/_show.py @@ -22,9 +22,9 @@ class Show(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/vmgroups/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/vmgroups/{}", "2023-09-01"], ] } @@ -61,6 +61,9 @@ def _build_arguments_schema(cls, *args, **kwargs): help="NSX VM Group identifier. Generally the same as the VM Group's display name", required=True, id_part="child_name_2", + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), ) return cls._args_schema @@ -133,7 +136,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -175,6 +178,10 @@ def _build_schema_on_200(cls): _schema_on_200.properties = AAZObjectType( flags={"client_flatten": True}, ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) @@ -189,13 +196,31 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) properties.revision = AAZIntType() - properties.status = AAZStrType( - flags={"read_only": True}, - ) + properties.status = AAZStrType() members = cls._schema_on_200.properties.members members.Element = AAZStrType() + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/vm_group/_update.py b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/vm_group/_update.py index 9988d652a6d..3a87b11ac13 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/vm_group/_update.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/vm_group/_update.py @@ -22,9 +22,9 @@ class Update(AAZCommand): """ _aaz_info = { - "version": "2023-03-01", + "version": "2023-09-01", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/vmgroups/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/vmgroups/{}", "2023-09-01"], ] } @@ -64,6 +64,9 @@ def _build_arguments_schema(cls, *args, **kwargs): help="NSX VM Group identifier. Generally the same as the VM Group's display name", required=True, id_part="child_name_2", + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), ) # define Arg Group "Properties" @@ -176,7 +179,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -279,7 +282,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -371,6 +374,7 @@ def _build_schema_workload_network_vm_group_read(cls, _schema): _schema.id = cls._schema_workload_network_vm_group_read.id _schema.name = cls._schema_workload_network_vm_group_read.name _schema.properties = cls._schema_workload_network_vm_group_read.properties + _schema.system_data = cls._schema_workload_network_vm_group_read.system_data _schema.type = cls._schema_workload_network_vm_group_read.type return @@ -386,6 +390,10 @@ def _build_schema_workload_network_vm_group_read(cls, _schema): workload_network_vm_group_read.properties = AAZObjectType( flags={"client_flatten": True}, ) + workload_network_vm_group_read.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) workload_network_vm_group_read.type = AAZStrType( flags={"read_only": True}, ) @@ -400,16 +408,35 @@ def _build_schema_workload_network_vm_group_read(cls, _schema): flags={"read_only": True}, ) properties.revision = AAZIntType() - properties.status = AAZStrType( - flags={"read_only": True}, - ) + properties.status = AAZStrType() members = _schema_workload_network_vm_group_read.properties.members members.Element = AAZStrType() + system_data = _schema_workload_network_vm_group_read.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + _schema.id = cls._schema_workload_network_vm_group_read.id _schema.name = cls._schema_workload_network_vm_group_read.name _schema.properties = cls._schema_workload_network_vm_group_read.properties + _schema.system_data = cls._schema_workload_network_vm_group_read.system_data _schema.type = cls._schema_workload_network_vm_group_read.type diff --git a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/vm_group/_wait.py b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/vm_group/_wait.py index 1a0dce469a4..0bceca0d6de 100644 --- a/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/vm_group/_wait.py +++ b/src/vmware/azext_vmware/aaz/latest/vmware/workload_network/vm_group/_wait.py @@ -20,7 +20,7 @@ class Wait(AAZWaitCommand): _aaz_info = { "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/vmgroups/{}", "2023-03-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.avs/privateclouds/{}/workloadnetworks/default/vmgroups/{}", "2023-09-01"], ] } @@ -57,6 +57,9 @@ def _build_arguments_schema(cls, *args, **kwargs): help="NSX VM Group identifier. Generally the same as the VM Group's display name", required=True, id_part="child_name_2", + fmt=AAZStrArgFormat( + pattern="^[-\w\._]+$", + ), ) return cls._args_schema @@ -129,7 +132,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-03-01", + "api-version", "2023-09-01", required=True, ), } @@ -171,6 +174,10 @@ def _build_schema_on_200(cls): _schema_on_200.properties = AAZObjectType( flags={"client_flatten": True}, ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) @@ -185,13 +192,31 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) properties.revision = AAZIntType() - properties.status = AAZStrType( - flags={"read_only": True}, - ) + properties.status = AAZStrType() members = cls._schema_on_200.properties.members members.Element = AAZStrType() + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + return cls._schema_on_200 diff --git a/src/vmware/azext_vmware/azext_metadata.json b/src/vmware/azext_vmware/azext_metadata.json index aa8808714b7..27c24588bc2 100644 --- a/src/vmware/azext_vmware/azext_metadata.json +++ b/src/vmware/azext_vmware/azext_metadata.json @@ -1,4 +1,4 @@ { "azext.isPreview": false, - "azext.minCliCoreVersion": "2.51.0" + "azext.minCliCoreVersion": "2.54.0" } \ No newline at end of file diff --git a/src/vmware/azext_vmware/commands.py b/src/vmware/azext_vmware/commands.py index f3404311bad..f5c72943cf3 100644 --- a/src/vmware/azext_vmware/commands.py +++ b/src/vmware/azext_vmware/commands.py @@ -21,7 +21,6 @@ def load_command_table(self, _): g.custom_command('delete-cmk-encryption', 'privatecloud_deletecmkenryption', deprecate_info=g.deprecate(redirect='az vmware private-cloud disable-cmk-encryption', hide=True)) g.custom_command('enable-cmk-encryption', 'privatecloud_addcmkencryption') g.custom_command('disable-cmk-encryption', 'privatecloud_deletecmkenryption') - g.custom_command('rotate-nsxt-password', 'privatecloud_rotate_nsxt_password') with self.command_group('vmware private-cloud identity') as g: g.custom_command('assign', 'privatecloud_identity_assign') @@ -46,6 +45,10 @@ def load_command_table(self, _): from .operations.datastore import DatastoreDiskPoolVolumeCreate self.command_table['vmware datastore disk-pool-volume create'] = DatastoreDiskPoolVolumeCreate(loader=self) + with self.command_group('vmware datastore elastic-san-volume'): + from .operations.datastore import DatastoreElasticVsanVolumeCreate + self.command_table['vmware datastore elastic-san-volume create'] = DatastoreElasticVsanVolumeCreate(loader=self) + with self.command_group('vmware addon vr'): from .operations.addon import AddonVrCreate, AddonVrUpdate, AddonVrShow, AddonVrDelete self.command_table['vmware addon vr create'] = AddonVrCreate(loader=self) diff --git a/src/vmware/azext_vmware/custom.py b/src/vmware/azext_vmware/custom.py index d521fb2c0e5..2e9fd133310 100644 --- a/src/vmware/azext_vmware/custom.py +++ b/src/vmware/azext_vmware/custom.py @@ -156,21 +156,26 @@ def privatecloud_identity_get(cmd, resource_group_name, private_cloud): }).get("identity") -def privatecloud_rotate_nsxt_password(): - from knack.prompting import prompt - msg = ROTATE_NSXT_PASSWORD_TERMS - prompt(msg) - # return client.private_clouds.begin_rotate_nsxt_password(resource_group_name=resource_group_name, private_cloud_name=private_cloud) - - def datastore_create(): print('Please use "az vmware datastore netapp-volume create" or "az vmware datastore disk-pool-volume create" instead.') -def script_execution_create(cmd, resource_group_name, private_cloud, name, timeout, script_cmdlet_id=None, parameters=None, hidden_parameters=None, failure_reason=None, retention=None, out=None, named_outputs: List[Tuple[str, str]] = None): +def script_execution_create(cmd, resource_group_name, private_cloud, name, timeout, script_cmdlet_id=None, parameters=None, hidden_parameters=None, failure_reason=None, retention=None, out=None, named_outputs: List[Tuple[str, str]] = None, yes=False): from .aaz.latest.vmware.script_execution import Create + from knack.prompting import prompt_y_n + + msg = 'Attention: {} actions and SLAs are supported for Microsoft approved partners only. Continue?' if named_outputs is not None: named_outputs = dict(named_outputs) + if script_cmdlet_id is not None and not yes and script_cmdlet_id.lower().find("scriptpackages/microsoft.avs.vmfs") > -1: + if not prompt_y_n(msg.format("Microsoft.AVS.VMFS"), default="n"): + return None + elif script_cmdlet_id is not None and not yes and script_cmdlet_id.lower().find("scriptpackages/microsoft.avs.nfs") > -1: + if not prompt_y_n(msg.format("Microsoft.AVS.NFS"), default="n"): + return None + elif script_cmdlet_id is not None and not yes and script_cmdlet_id.lower().find("scriptpackages/microsoft.avs.vvols") > -1: + if not prompt_y_n(msg.format("Microsoft.AVS.VVOLS"), default="n"): + return None return Create(cli_ctx=cmd.cli_ctx)(command_args={ "private_cloud": private_cloud, "resource_group": resource_group_name, diff --git a/src/vmware/azext_vmware/operations/datastore.py b/src/vmware/azext_vmware/operations/datastore.py index 304f075c07a..734d072ae67 100644 --- a/src/vmware/azext_vmware/operations/datastore.py +++ b/src/vmware/azext_vmware/operations/datastore.py @@ -19,11 +19,14 @@ class DatastoreNetappVolumeCreate(_DatastoreCreate): def _build_arguments_schema(cls, *args, **kwargs): args_schema = super()._build_arguments_schema(*args, **kwargs) - args_schema.net_app_volumn._required = True + args_schema.net_app_volume._required = True args_schema.lun_name._registered = False args_schema.mount_option._registered = False args_schema.target_id._registered = False + + args_schema.elastic_san_volume._registered = False + return args_schema @@ -38,8 +41,33 @@ class DatastoreDiskPoolVolumeCreate(_DatastoreCreate): def _build_arguments_schema(cls, *args, **kwargs): args_schema = super()._build_arguments_schema(*args, **kwargs) - args_schema.net_app_volumn._registered = False + args_schema.net_app_volume._registered = False args_schema.lun_name._required = True args_schema.target_id._required = True + + args_schema.elastic_san_volume._registered = False + + return args_schema + + +@register_command( + "vmware datastore elastic-san-volume create", +) +class DatastoreElasticVsanVolumeCreate(_DatastoreCreate): + """Create an Elastic SAN volume in a private cloud cluster using Microsoft.ElasticSan provider. + """ + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + args_schema = super()._build_arguments_schema(*args, **kwargs) + + args_schema.net_app_volume._registered = False + + args_schema.lun_name._registered = False + args_schema.mount_option._registered = False + args_schema.target_id._registered = False + + args_schema.elastic_san_volume._required = True + return args_schema diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_iscsi_path_scenario.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_iscsi_path_scenario.yaml new file mode 100644 index 00000000000..8844b5ae6f6 --- /dev/null +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_iscsi_path_scenario.yaml @@ -0,0 +1,32 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +import os +import unittest + +from azure.cli.testsdk import (ScenarioTest, ResourceGroupPreparer) + + +class VmwareIscsiPathTest(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(VmwareIscsiPathTest, self).setUp() + + @ResourceGroupPreparer(name_prefix='cli_test_vmware_iscsi_path') + def test_vmware_iscsi_path(self): + self.kwargs.update({ + 'privatecloud': 'cloud1', + 'rg': 'rg1', + 'networkblock': '192.168.48.0/22' + }) + + self.cmd('az vmware iscsi-path create -c {privatecloud} -g {rg} --network-block {networkblock}') + + self.cmd('az vmware iscsi-path list -c {privatecloud} -g {rg}') + + self.cmd('az vmware iscsi-path delete -c {privatecloud} -g {rg} --yes') + + self.cmd('az vmware iscsi-path show -c {privatecloud} -g {rg}') \ No newline at end of file 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 cce653fda05..d9ebd61c288 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware.yaml @@ -15,19 +15,27 @@ interactions: ParameterSetName: - --location User-Agent: - - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: POST - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AVS/locations/centralus/checkQuotaAvailability?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AVS/locations/centralus/checkQuotaAvailability?api-version=2023-09-01 response: body: string: '{"hostsRemaining":{"AV20":0,"AV36":999},"quotaEnabled":"Enabled"}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '65' content-type: - application/json date: - - Wed, 29 Nov 2023 18:54:03 GMT + - Fri, 28 Jun 2024 20:05:20 GMT server: - Rocket status: @@ -51,19 +59,27 @@ interactions: ParameterSetName: - --location --sku User-Agent: - - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: POST - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AVS/locations/centralus/checkTrialAvailability?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AVS/locations/centralus/checkTrialAvailability?api-version=2023-09-01 response: body: string: '{"status":"TrialAvailable","availableHosts":4}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '46' content-type: - application/json date: - - Wed, 29 Nov 2023 18:54:06 GMT + - Fri, 28 Jun 2024 20:05:22 GMT server: - Rocket status: @@ -83,19 +99,27 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds?api-version=2023-09-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","location":"eastus2","tags":{},"sku":{"name":"AV36"},"properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/","hcxCloudManager":"https://192.168.50.4/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]}}]}' - headers: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","tags":{},"location":"eastus2","properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering"},"endpoints":{"nsxtManager":"https://nsx.290351365f5b41a19b77af.eastus.avslab.azure.com/","vcsa":"https://vc.290351365f5b41a19b77af.eastus.avslab.azure.com/","hcxCloudManager":"https://hcx.290351365f5b41a19b77af.eastus.avslab.azure.com/","nsxtManagerIp":"192.168.50.3","vcenterIp":"192.168.50.2","hcxCloudManagerIp":"192.168.50.4"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]},"sku":{"name":"AV36"}}]}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '1654' + - '1860' content-type: - application/json date: - - Wed, 29 Nov 2023 18:54:09 GMT + - Fri, 28 Jun 2024 20:05:24 GMT server: - Rocket status: @@ -123,19 +147,27 @@ interactions: - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password --accept-eula User-Agent: - - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","location":"eastus2","tags":{},"sku":{"name":"AV36"},"properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]}}' - headers: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","tags":{},"location":"eastus2","properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]},"sku":{"name":"AV36"}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '1377' content-type: - application/json date: - - Wed, 29 Nov 2023 18:54:11 GMT + - Fri, 28 Jun 2024 20:05:27 GMT server: - Rocket status: @@ -155,19 +187,27 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds?api-version=2023-09-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","location":"eastus2","tags":{},"sku":{"name":"AV36"},"properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/","hcxCloudManager":"https://192.168.50.4/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]}}]}' - headers: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","tags":{},"location":"eastus2","properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering"},"endpoints":{"nsxtManager":"https://nsx.290351365f5b41a19b77af.eastus.avslab.azure.com/","vcsa":"https://vc.290351365f5b41a19b77af.eastus.avslab.azure.com/","hcxCloudManager":"https://hcx.290351365f5b41a19b77af.eastus.avslab.azure.com/","nsxtManagerIp":"192.168.50.3","vcenterIp":"192.168.50.2","hcxCloudManagerIp":"192.168.50.4"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]},"sku":{"name":"AV36"}}]}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '1654' + - '1860' content-type: - application/json date: - - Wed, 29 Nov 2023 18:54:14 GMT + - Fri, 28 Jun 2024 20:05:30 GMT server: - Rocket status: @@ -185,19 +225,27 @@ interactions: Connection: - keep-alive User-Agent: - - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AVS/privateClouds?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AVS/privateClouds?api-version=2023-09-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","location":"eastus2","tags":{},"sku":{"name":"AV36"},"properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/","hcxCloudManager":"https://192.168.50.4/"},"networkBlock":"192.168.48.0/22"}}]}' - headers: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","tags":{},"location":"eastus2","properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering"},"endpoints":{"nsxtManager":"https://nsx.290351365f5b41a19b77af.eastus.avslab.azure.com/","vcsa":"https://vc.290351365f5b41a19b77af.eastus.avslab.azure.com/","hcxCloudManager":"https://hcx.290351365f5b41a19b77af.eastus.avslab.azure.com/","nsxtManagerIp":"192.168.50.3","vcenterIp":"192.168.50.2","hcxCloudManagerIp":"192.168.50.4"},"networkBlock":"192.168.48.0/22"},"sku":{"name":"AV36"}}]}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '1509' + - '1715' content-type: - application/json date: - - Wed, 29 Nov 2023 18:54:17 GMT + - Fri, 28 Jun 2024 20:05:32 GMT server: - Rocket status: @@ -219,19 +267,27 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: POST - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/listAdminCredentials?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/listAdminCredentials?api-version=2023-09-01 response: body: string: '{"nsxtUsername":"admin","nsxtPassword":"$(1X4Dkk","vcenterUsername":"cloudadmin@vsphere.local","vcenterPassword":""}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '133' content-type: - application/json date: - - Wed, 29 Nov 2023 18:54:19 GMT + - Fri, 28 Jun 2024 20:05:34 GMT server: - Rocket status: @@ -253,17 +309,69 @@ interactions: ParameterSetName: - -g -c --yes User-Agent: - - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: POST - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/rotateVcenterPassword?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/rotateVcenterPassword?api-version=2023-09-01 response: body: string: '' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '0' + content-type: + - application/json date: - - Wed, 29 Nov 2023 18:54:22 GMT + - Fri, 28 Jun 2024 20:05:36 GMT + server: + - Rocket + status: + code: 204 + message: No Content +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud rotate-nsxt-password + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -c --yes + User-Agent: + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) + method: POST + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/rotateNsxtPassword?api-version=2023-09-01 + response: + body: + string: '' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' + content-length: + - '0' + content-type: + - application/json + date: + - Fri, 28 Jun 2024 20:05:39 GMT server: - Rocket status: @@ -283,19 +391,27 @@ interactions: ParameterSetName: - -g -n --cluster-size User-Agent: - - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","location":"eastus2","tags":{},"sku":{"name":"AV36"},"properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"encryption":{"status":"Enabled","keyVaultProperties":{"keyName":"keyname1","keyVersion":"ver1.0","keyVaultUrl":"https://keyvault1-kmip-kvault.vault.azure.net/","keyState":"Connected","versionType":"Fixed"}},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/","hcxCloudManager":"https://192.168.50.4/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]},"identity":{"principalId":"881e5573-063f-49e4-8c08-79d7df0169d8","tenantId":"881e5573-063f-49e4-8c08-79d7df0169d8","type":"SystemAssigned"}}' - headers: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","tags":{},"location":"eastus2","properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"encryption":{"status":"Enabled","keyVaultProperties":{"keyName":"keyname1","keyVersion":"ver1.0","keyVaultUrl":"https://keyvault1-kmip-kvault.vault.azure.net/","keyState":"Connected","versionType":"Fixed"}},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering"},"endpoints":{"nsxtManager":"https://nsx.290351365f5b41a19b77af.eastus.avslab.azure.com/","vcsa":"https://vc.290351365f5b41a19b77af.eastus.avslab.azure.com/","hcxCloudManager":"https://hcx.290351365f5b41a19b77af.eastus.avslab.azure.com/","nsxtManagerIp":"192.168.50.3","vcenterIp":"192.168.50.2","hcxCloudManagerIp":"192.168.50.4"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]},"sku":{"name":"AV36"},"identity":{"principalId":"881e5573-063f-49e4-8c08-79d7df0169d8","tenantId":"881e5573-063f-49e4-8c08-79d7df0169d8","type":"SystemAssigned"}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '1990' + - '2196' content-type: - application/json date: - - Wed, 29 Nov 2023 18:54:25 GMT + - Fri, 28 Jun 2024 20:05:42 GMT server: - Rocket status: @@ -304,13 +420,14 @@ interactions: - request: body: '{"identity": {"type": "SystemAssigned"}, "location": "eastus2", "properties": {"availability": {"strategy": "SingleZone", "zone": 1}, "circuit": {}, "encryption": - {"keyVaultProperties": {"keyName": "keyname1", "keyVaultUrl": "https://keyvault1-kmip-kvault.vault.azure.net/", - "keyVersion": "ver1.0"}, "status": "Enabled"}, "endpoints": {}, "identitySources": - [{"alias": "groupAlias", "baseGroupDN": "ou=baseGroup", "baseUserDN": "ou=baseUser", - "domain": "domain1", "name": "group1", "primaryServer": "ldaps://1.1.1.1:636/", - "secondaryServer": "ldaps://1.1.1.2:636/", "ssl": "Enabled"}], "internet": "Disabled", - "managementCluster": {"clusterSize": 4, "hosts": ["fakehost18.nyc1.kubernetes.center", - "fakehost19.nyc1.kubernetes.center", "fakehost20.nyc1.kubernetes.center", "fakehost21.nyc1.kubernetes.center"]}, + {"keyVaultProperties": {"keyName": "keyname1", "keyState": "Connected", "keyVaultUrl": + "https://keyvault1-kmip-kvault.vault.azure.net/", "keyVersion": "ver1.0", "versionType": + "Fixed"}, "status": "Enabled"}, "endpoints": {}, "identitySources": [{"alias": + "groupAlias", "baseGroupDN": "ou=baseGroup", "baseUserDN": "ou=baseUser", "domain": + "domain1", "name": "group1", "primaryServer": "ldaps://1.1.1.1:636/", "secondaryServer": + "ldaps://1.1.1.2:636/", "ssl": "Enabled"}], "internet": "Disabled", "managementCluster": + {"clusterSize": 4, "hosts": ["fakehost18.nyc1.kubernetes.center", "fakehost19.nyc1.kubernetes.center", + "fakehost20.nyc1.kubernetes.center", "fakehost21.nyc1.kubernetes.center"]}, "networkBlock": "192.168.48.0/22"}, "sku": {"name": "AV36"}, "tags": {}}' headers: Accept: @@ -322,25 +439,33 @@ interactions: Connection: - keep-alive Content-Length: - - '882' + - '931' Content-Type: - application/json ParameterSetName: - -g -n --cluster-size User-Agent: - - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","location":"eastus2","tags":{},"sku":{"name":"AV36"},"properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]}}' - headers: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","tags":{},"location":"eastus2","properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]},"sku":{"name":"AV36"}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '1377' content-type: - application/json date: - - Wed, 29 Nov 2023 18:54:25 GMT + - Fri, 28 Jun 2024 20:05:42 GMT server: - Rocket status: @@ -360,19 +485,27 @@ interactions: ParameterSetName: - -g -n --internet User-Agent: - - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","location":"eastus2","tags":{},"sku":{"name":"AV36"},"properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"encryption":{"status":"Enabled","keyVaultProperties":{"keyName":"keyname1","keyVersion":"ver1.0","keyVaultUrl":"https://keyvault1-kmip-kvault.vault.azure.net/","keyState":"Connected","versionType":"Fixed"}},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/","hcxCloudManager":"https://192.168.50.4/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]},"identity":{"principalId":"881e5573-063f-49e4-8c08-79d7df0169d8","tenantId":"881e5573-063f-49e4-8c08-79d7df0169d8","type":"SystemAssigned"}}' - headers: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","tags":{},"location":"eastus2","properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"encryption":{"status":"Enabled","keyVaultProperties":{"keyName":"keyname1","keyVersion":"ver1.0","keyVaultUrl":"https://keyvault1-kmip-kvault.vault.azure.net/","keyState":"Connected","versionType":"Fixed"}},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering"},"endpoints":{"nsxtManager":"https://nsx.290351365f5b41a19b77af.eastus.avslab.azure.com/","vcsa":"https://vc.290351365f5b41a19b77af.eastus.avslab.azure.com/","hcxCloudManager":"https://hcx.290351365f5b41a19b77af.eastus.avslab.azure.com/","nsxtManagerIp":"192.168.50.3","vcenterIp":"192.168.50.2","hcxCloudManagerIp":"192.168.50.4"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]},"sku":{"name":"AV36"},"identity":{"principalId":"881e5573-063f-49e4-8c08-79d7df0169d8","tenantId":"881e5573-063f-49e4-8c08-79d7df0169d8","type":"SystemAssigned"}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '1990' + - '2196' content-type: - application/json date: - - Wed, 29 Nov 2023 18:54:28 GMT + - Fri, 28 Jun 2024 20:05:44 GMT server: - Rocket status: @@ -381,13 +514,14 @@ interactions: - request: body: '{"identity": {"type": "SystemAssigned"}, "location": "eastus2", "properties": {"availability": {"strategy": "SingleZone", "zone": 1}, "circuit": {}, "encryption": - {"keyVaultProperties": {"keyName": "keyname1", "keyVaultUrl": "https://keyvault1-kmip-kvault.vault.azure.net/", - "keyVersion": "ver1.0"}, "status": "Enabled"}, "endpoints": {}, "identitySources": - [{"alias": "groupAlias", "baseGroupDN": "ou=baseGroup", "baseUserDN": "ou=baseUser", - "domain": "domain1", "name": "group1", "primaryServer": "ldaps://1.1.1.1:636/", - "secondaryServer": "ldaps://1.1.1.2:636/", "ssl": "Enabled"}], "internet": "Enabled", - "managementCluster": {"clusterSize": 4, "hosts": ["fakehost18.nyc1.kubernetes.center", - "fakehost19.nyc1.kubernetes.center", "fakehost20.nyc1.kubernetes.center", "fakehost21.nyc1.kubernetes.center"]}, + {"keyVaultProperties": {"keyName": "keyname1", "keyState": "Connected", "keyVaultUrl": + "https://keyvault1-kmip-kvault.vault.azure.net/", "keyVersion": "ver1.0", "versionType": + "Fixed"}, "status": "Enabled"}, "endpoints": {}, "identitySources": [{"alias": + "groupAlias", "baseGroupDN": "ou=baseGroup", "baseUserDN": "ou=baseUser", "domain": + "domain1", "name": "group1", "primaryServer": "ldaps://1.1.1.1:636/", "secondaryServer": + "ldaps://1.1.1.2:636/", "ssl": "Enabled"}], "internet": "Enabled", "managementCluster": + {"clusterSize": 4, "hosts": ["fakehost18.nyc1.kubernetes.center", "fakehost19.nyc1.kubernetes.center", + "fakehost20.nyc1.kubernetes.center", "fakehost21.nyc1.kubernetes.center"]}, "networkBlock": "192.168.48.0/22"}, "sku": {"name": "AV36"}, "tags": {}}' headers: Accept: @@ -399,25 +533,301 @@ interactions: Connection: - keep-alive Content-Length: - - '881' + - '930' Content-Type: - application/json ParameterSetName: - -g -n --internet User-Agent: - - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","location":"eastus2","tags":{},"sku":{"name":"AV36"},"properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","tags":{},"location":"eastus2","properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]},"sku":{"name":"AV36"}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' + content-length: + - '1377' + content-type: + - application/json + date: + - Fri, 28 Jun 2024 20:05:44 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud update + Connection: + - keep-alive + ParameterSetName: + - -g -n --hosts + User-Agent: + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2023-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","tags":{},"location":"eastus2","properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"encryption":{"status":"Enabled","keyVaultProperties":{"keyName":"keyname1","keyVersion":"ver1.0","keyVaultUrl":"https://keyvault1-kmip-kvault.vault.azure.net/","keyState":"Connected","versionType":"Fixed"}},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering"},"endpoints":{"nsxtManager":"https://nsx.290351365f5b41a19b77af.eastus.avslab.azure.com/","vcsa":"https://vc.290351365f5b41a19b77af.eastus.avslab.azure.com/","hcxCloudManager":"https://hcx.290351365f5b41a19b77af.eastus.avslab.azure.com/","nsxtManagerIp":"192.168.50.3","vcenterIp":"192.168.50.2","hcxCloudManagerIp":"192.168.50.4"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]},"sku":{"name":"AV36"},"identity":{"principalId":"881e5573-063f-49e4-8c08-79d7df0169d8","tenantId":"881e5573-063f-49e4-8c08-79d7df0169d8","type":"SystemAssigned"}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' + content-length: + - '2196' + content-type: + - application/json + date: + - Fri, 28 Jun 2024 20:05:47 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: '{"identity": {"type": "SystemAssigned"}, "location": "eastus2", "properties": + {"availability": {"strategy": "SingleZone", "zone": 1}, "circuit": {}, "encryption": + {"keyVaultProperties": {"keyName": "keyname1", "keyState": "Connected", "keyVaultUrl": + "https://keyvault1-kmip-kvault.vault.azure.net/", "keyVersion": "ver1.0", "versionType": + "Fixed"}, "status": "Enabled"}, "endpoints": {}, "identitySources": [{"alias": + "groupAlias", "baseGroupDN": "ou=baseGroup", "baseUserDN": "ou=baseUser", "domain": + "domain1", "name": "group1", "primaryServer": "ldaps://1.1.1.1:636/", "secondaryServer": + "ldaps://1.1.1.2:636/", "ssl": "Enabled"}], "internet": "Disabled", "managementCluster": + {"clusterSize": 4, "hosts": ["[host1,", "host2,", "host3]"]}, "networkBlock": + "192.168.48.0/22"}, "sku": {"name": "AV36"}, "tags": {}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud update + Connection: + - keep-alive + Content-Length: + - '814' + Content-Type: + - application/json + ParameterSetName: + - -g -n --hosts + User-Agent: + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) + method: PUT + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2023-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","tags":{},"location":"eastus2","properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]},"sku":{"name":"AV36"}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' + content-length: + - '1377' + content-type: + - application/json + date: + - Fri, 28 Jun 2024 20:05:47 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud update + Connection: + - keep-alive + ParameterSetName: + - -g -n --vsan-datastore-name + User-Agent: + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2023-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","tags":{},"location":"eastus2","properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"encryption":{"status":"Enabled","keyVaultProperties":{"keyName":"keyname1","keyVersion":"ver1.0","keyVaultUrl":"https://keyvault1-kmip-kvault.vault.azure.net/","keyState":"Connected","versionType":"Fixed"}},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering"},"endpoints":{"nsxtManager":"https://nsx.290351365f5b41a19b77af.eastus.avslab.azure.com/","vcsa":"https://vc.290351365f5b41a19b77af.eastus.avslab.azure.com/","hcxCloudManager":"https://hcx.290351365f5b41a19b77af.eastus.avslab.azure.com/","nsxtManagerIp":"192.168.50.3","vcenterIp":"192.168.50.2","hcxCloudManagerIp":"192.168.50.4"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]},"sku":{"name":"AV36"},"identity":{"principalId":"881e5573-063f-49e4-8c08-79d7df0169d8","tenantId":"881e5573-063f-49e4-8c08-79d7df0169d8","type":"SystemAssigned"}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' + content-length: + - '2196' + content-type: + - application/json + date: + - Fri, 28 Jun 2024 20:05:50 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: '{"identity": {"type": "SystemAssigned"}, "location": "eastus2", "properties": + {"availability": {"strategy": "SingleZone", "zone": 1}, "circuit": {}, "encryption": + {"keyVaultProperties": {"keyName": "keyname1", "keyState": "Connected", "keyVaultUrl": + "https://keyvault1-kmip-kvault.vault.azure.net/", "keyVersion": "ver1.0", "versionType": + "Fixed"}, "status": "Enabled"}, "endpoints": {}, "identitySources": [{"alias": + "groupAlias", "baseGroupDN": "ou=baseGroup", "baseUserDN": "ou=baseUser", "domain": + "domain1", "name": "group1", "primaryServer": "ldaps://1.1.1.1:636/", "secondaryServer": + "ldaps://1.1.1.2:636/", "ssl": "Enabled"}], "internet": "Disabled", "managementCluster": + {"clusterSize": 4, "hosts": ["fakehost18.nyc1.kubernetes.center", "fakehost19.nyc1.kubernetes.center", + "fakehost20.nyc1.kubernetes.center", "fakehost21.nyc1.kubernetes.center"], "vsanDatastoreName": + "test-name"}, "networkBlock": "192.168.48.0/22"}, "sku": {"name": "AV36"}, "tags": + {}}' headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud update + Connection: + - keep-alive + Content-Length: + - '965' + Content-Type: + - application/json + ParameterSetName: + - -g -n --vsan-datastore-name + User-Agent: + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) + method: PUT + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2023-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","tags":{},"location":"eastus2","properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]},"sku":{"name":"AV36"}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '1377' content-type: - application/json date: - - Wed, 29 Nov 2023 18:54:28 GMT + - Fri, 28 Jun 2024 20:05:50 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware authorization list + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/authorizations?api-version=2023-09-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/authorizations/authorization1","name":"authorization1","type":"Microsoft.AVS/privateClouds/authorizations","properties":{"provisioningState":"Succeeded","expressRouteAuthorizationId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt34-cust-mockp02-spearj2dev/providers/Microsoft.Network/expressroutecircuits/tnt34-cust-mockp02-spearj2dev-er/authorizations/myauth","expressRouteAuthorizationKey":"37b0db3b-3b17-4c7b-bf76-bf13b01bcadc","expressRouteId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"}}]}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' + content-length: + - '841' + content-type: + - application/json + date: + - Fri, 28 Jun 2024 20:05:53 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware authorization show + Connection: + - keep-alive + ParameterSetName: + - -g -c -n + User-Agent: + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/authorizations/myauthname?api-version=2023-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/authorizations/authorization1","name":"authorization1","type":"Microsoft.AVS/privateClouds/authorizations","properties":{"provisioningState":"Succeeded","expressRouteAuthorizationId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt34-cust-mockp02-spearj2dev/providers/Microsoft.Network/expressroutecircuits/tnt34-cust-mockp02-spearj2dev-er/authorizations/myauth","expressRouteAuthorizationKey":"37b0db3b-3b17-4c7b-bf76-bf13b01bcadc","expressRouteId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' + content-length: + - '829' + content-type: + - application/json + date: + - Fri, 28 Jun 2024 20:05:55 GMT server: - Rocket status: @@ -441,19 +851,27 @@ interactions: ParameterSetName: - -g -c -n --express-route-id User-Agent: - - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/authorizations/myauthname?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/authorizations/myauthname?api-version=2023-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/authorizations/authorization1","name":"authorization1","type":"Microsoft.AVS/privateClouds/authorizations","properties":{"provisioningState":"Succeeded","expressRouteAuthorizationId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt34-cust-mockp02-spearj2dev/providers/Microsoft.Network/expressroutecircuits/tnt34-cust-mockp02-spearj2dev-er/authorizations/myauth","expressRouteAuthorizationKey":"37b0db3b-3b17-4c7b-bf76-bf13b01bcadc","expressRouteId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '829' content-type: - application/json date: - - Wed, 29 Nov 2023 18:54:31 GMT + - Fri, 28 Jun 2024 20:05:57 GMT server: - Rocket status: @@ -475,17 +893,27 @@ interactions: ParameterSetName: - -g -c -n --yes User-Agent: - - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: DELETE - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/authorizations/myauthname?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/authorizations/myauthname?api-version=2023-09-01 response: body: string: '' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '0' + content-type: + - application/json date: - - Wed, 29 Nov 2023 18:54:33 GMT + - Fri, 28 Jun 2024 20:06:00 GMT server: - Rocket status: @@ -506,19 +934,27 @@ interactions: - -g -c -n --alias --domain --base-user-dn --base-group-dn --primary-server --username --password User-Agent: - - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2023-03-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","location":"eastus2","tags":{},"sku":{"name":"AV36"},"properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"encryption":{"status":"Enabled","keyVaultProperties":{"keyName":"keyname1","keyVersion":"ver1.0","keyVaultUrl":"https://keyvault1-kmip-kvault.vault.azure.net/","keyState":"Connected","versionType":"Fixed"}},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/","hcxCloudManager":"https://192.168.50.4/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]},"identity":{"principalId":"881e5573-063f-49e4-8c08-79d7df0169d8","tenantId":"881e5573-063f-49e4-8c08-79d7df0169d8","type":"SystemAssigned"}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '1990' content-type: - application/json date: - - Wed, 29 Nov 2023 18:54:36 GMT + - Fri, 28 Jun 2024 20:06:02 GMT server: - Rocket status: @@ -552,19 +988,27 @@ interactions: - -g -c -n --alias --domain --base-user-dn --base-group-dn --primary-server --username --password User-Agent: - - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2023-03-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","location":"eastus2","tags":{},"sku":{"name":"AV36"},"properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '1377' content-type: - application/json date: - - Wed, 29 Nov 2023 18:54:36 GMT + - Fri, 28 Jun 2024 20:06:02 GMT server: - Rocket status: @@ -584,19 +1028,27 @@ interactions: ParameterSetName: - -g -c -n --alias --domain --yes User-Agent: - - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2023-03-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","location":"eastus2","tags":{},"sku":{"name":"AV36"},"properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"encryption":{"status":"Enabled","keyVaultProperties":{"keyName":"keyname1","keyVersion":"ver1.0","keyVaultUrl":"https://keyvault1-kmip-kvault.vault.azure.net/","keyState":"Connected","versionType":"Fixed"}},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/","hcxCloudManager":"https://192.168.50.4/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]},"identity":{"principalId":"881e5573-063f-49e4-8c08-79d7df0169d8","tenantId":"881e5573-063f-49e4-8c08-79d7df0169d8","type":"SystemAssigned"}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '1990' content-type: - application/json date: - - Wed, 29 Nov 2023 18:54:39 GMT + - Fri, 28 Jun 2024 20:06:05 GMT server: - Rocket status: @@ -627,19 +1079,27 @@ interactions: ParameterSetName: - -g -c -n --alias --domain --yes User-Agent: - - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2023-03-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","location":"eastus2","tags":{},"sku":{"name":"AV36"},"properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '1377' content-type: - application/json date: - - Wed, 29 Nov 2023 18:54:39 GMT + - Fri, 28 Jun 2024 20:06:05 GMT server: - Rocket status: @@ -659,19 +1119,27 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters?api-version=2023-09-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1","name":"cluster1","type":"Microsoft.AVS/privateClouds/clusters","sku":{"name":"AV20"},"properties":{"clusterSize":3,"provisioningState":"Succeeded","hosts":["fakehost22.nyc1.kubernetes.center","fakehost23.nyc1.kubernetes.center","fakehost24.nyc1.kubernetes.center"]}}]}' - headers: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1","name":"cluster1","type":"Microsoft.AVS/privateClouds/clusters","properties":{"clusterSize":3,"provisioningState":"Succeeded","hosts":["fakehost22.nyc1.kubernetes.center","fakehost23.nyc1.kubernetes.center","fakehost24.nyc1.kubernetes.center"]},"sku":{"name":"AV20"}}]}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '424' content-type: - application/json date: - - Wed, 29 Nov 2023 18:54:42 GMT + - Fri, 28 Jun 2024 20:06:07 GMT server: - Rocket status: @@ -679,8 +1147,8 @@ interactions: message: OK - request: body: '{"properties": {"clusterSize": 3, "hosts": ["fakehost22.nyc1.kubernetes.center", - "fakehost23.nyc1.kubernetes.center", "fakehost24.nyc1.kubernetes.center"]}, - "sku": {"name": "av20"}}' + "fakehost23.nyc1.kubernetes.center", "fakehost24.nyc1.kubernetes.center"], "vsanDatastoreName": + "datastore"}, "sku": {"name": "av20"}}' headers: Accept: - application/json @@ -691,25 +1159,33 @@ interactions: Connection: - keep-alive Content-Length: - - '181' + - '215' Content-Type: - application/json ParameterSetName: - - -g -c -n --sku --size --hosts + - -g -c -n --sku --size --hosts --vsan-datastore-name User-Agent: - - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1","name":"cluster1","type":"Microsoft.AVS/privateClouds/clusters","sku":{"name":"AV20"},"properties":{"clusterSize":3,"provisioningState":"Succeeded","hosts":["fakehost22.nyc1.kubernetes.center","fakehost23.nyc1.kubernetes.center","fakehost24.nyc1.kubernetes.center"]}}' - headers: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1","name":"cluster1","type":"Microsoft.AVS/privateClouds/clusters","properties":{"clusterSize":3,"provisioningState":"Succeeded","hosts":["fakehost22.nyc1.kubernetes.center","fakehost23.nyc1.kubernetes.center","fakehost24.nyc1.kubernetes.center"]},"sku":{"name":"AV20"}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '412' content-type: - application/json date: - - Wed, 29 Nov 2023 18:54:45 GMT + - Fri, 28 Jun 2024 20:06:10 GMT server: - Rocket status: @@ -733,19 +1209,27 @@ interactions: ParameterSetName: - -g -c -n --sku --size User-Agent: - - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1","name":"cluster1","type":"Microsoft.AVS/privateClouds/clusters","sku":{"name":"AV20"},"properties":{"clusterSize":3,"provisioningState":"Succeeded","hosts":["fakehost22.nyc1.kubernetes.center","fakehost23.nyc1.kubernetes.center","fakehost24.nyc1.kubernetes.center"]}}' - headers: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1","name":"cluster1","type":"Microsoft.AVS/privateClouds/clusters","properties":{"clusterSize":3,"provisioningState":"Succeeded","hosts":["fakehost22.nyc1.kubernetes.center","fakehost23.nyc1.kubernetes.center","fakehost24.nyc1.kubernetes.center"]},"sku":{"name":"AV20"}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '412' content-type: - application/json date: - - Wed, 29 Nov 2023 18:54:48 GMT + - Fri, 28 Jun 2024 20:06:13 GMT server: - Rocket status: @@ -765,19 +1249,27 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters?api-version=2023-09-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1","name":"cluster1","type":"Microsoft.AVS/privateClouds/clusters","sku":{"name":"AV20"},"properties":{"clusterSize":3,"provisioningState":"Succeeded","hosts":["fakehost22.nyc1.kubernetes.center","fakehost23.nyc1.kubernetes.center","fakehost24.nyc1.kubernetes.center"]}}]}' - headers: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1","name":"cluster1","type":"Microsoft.AVS/privateClouds/clusters","properties":{"clusterSize":3,"provisioningState":"Succeeded","hosts":["fakehost22.nyc1.kubernetes.center","fakehost23.nyc1.kubernetes.center","fakehost24.nyc1.kubernetes.center"]},"sku":{"name":"AV20"}}]}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '424' content-type: - application/json date: - - Wed, 29 Nov 2023 18:54:51 GMT + - Fri, 28 Jun 2024 20:06:15 GMT server: - Rocket status: @@ -797,19 +1289,27 @@ interactions: ParameterSetName: - -g -c -n --size User-Agent: - - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1","name":"cluster1","type":"Microsoft.AVS/privateClouds/clusters","sku":{"name":"AV20"},"properties":{"clusterSize":4,"provisioningState":"Succeeded","hosts":["fakehost22.nyc1.kubernetes.center","fakehost23.nyc1.kubernetes.center","fakehost24.nyc1.kubernetes.center","fakehost25.nyc1.kubernetes.center"]}}' - headers: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1","name":"cluster1","type":"Microsoft.AVS/privateClouds/clusters","properties":{"clusterSize":4,"provisioningState":"Succeeded","hosts":["fakehost22.nyc1.kubernetes.center","fakehost23.nyc1.kubernetes.center","fakehost24.nyc1.kubernetes.center","fakehost25.nyc1.kubernetes.center"]},"sku":{"name":"AV20"}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '448' content-type: - application/json date: - - Wed, 29 Nov 2023 18:54:53 GMT + - Fri, 28 Jun 2024 20:06:18 GMT server: - Rocket status: @@ -835,19 +1335,27 @@ interactions: ParameterSetName: - -g -c -n --size User-Agent: - - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1","name":"cluster1","type":"Microsoft.AVS/privateClouds/clusters","sku":{"name":"AV20"},"properties":{"clusterSize":3,"provisioningState":"Succeeded","hosts":["fakehost22.nyc1.kubernetes.center","fakehost23.nyc1.kubernetes.center","fakehost24.nyc1.kubernetes.center"]}}' - headers: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1","name":"cluster1","type":"Microsoft.AVS/privateClouds/clusters","properties":{"clusterSize":3,"provisioningState":"Succeeded","hosts":["fakehost22.nyc1.kubernetes.center","fakehost23.nyc1.kubernetes.center","fakehost24.nyc1.kubernetes.center"]},"sku":{"name":"AV20"}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '412' content-type: - application/json date: - - Wed, 29 Nov 2023 18:54:53 GMT + - Fri, 28 Jun 2024 20:06:18 GMT server: - Rocket status: @@ -867,19 +1375,27 @@ interactions: ParameterSetName: - -g -n --ext-nw-blocks User-Agent: - - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","location":"eastus2","tags":{},"sku":{"name":"AV36"},"properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"encryption":{"status":"Enabled","keyVaultProperties":{"keyName":"keyname1","keyVersion":"ver1.0","keyVaultUrl":"https://keyvault1-kmip-kvault.vault.azure.net/","keyState":"Connected","versionType":"Fixed"}},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/","hcxCloudManager":"https://192.168.50.4/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]},"identity":{"principalId":"881e5573-063f-49e4-8c08-79d7df0169d8","tenantId":"881e5573-063f-49e4-8c08-79d7df0169d8","type":"SystemAssigned"}}' - headers: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","tags":{},"location":"eastus2","properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"encryption":{"status":"Enabled","keyVaultProperties":{"keyName":"keyname1","keyVersion":"ver1.0","keyVaultUrl":"https://keyvault1-kmip-kvault.vault.azure.net/","keyState":"Connected","versionType":"Fixed"}},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering"},"endpoints":{"nsxtManager":"https://nsx.290351365f5b41a19b77af.eastus.avslab.azure.com/","vcsa":"https://vc.290351365f5b41a19b77af.eastus.avslab.azure.com/","hcxCloudManager":"https://hcx.290351365f5b41a19b77af.eastus.avslab.azure.com/","nsxtManagerIp":"192.168.50.3","vcenterIp":"192.168.50.2","hcxCloudManagerIp":"192.168.50.4"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]},"sku":{"name":"AV36"},"identity":{"principalId":"881e5573-063f-49e4-8c08-79d7df0169d8","tenantId":"881e5573-063f-49e4-8c08-79d7df0169d8","type":"SystemAssigned"}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '1990' + - '2196' content-type: - application/json date: - - Wed, 29 Nov 2023 18:54:56 GMT + - Fri, 28 Jun 2024 20:06:20 GMT server: - Rocket status: @@ -888,13 +1404,14 @@ interactions: - request: body: '{"identity": {"type": "SystemAssigned"}, "location": "eastus2", "properties": {"availability": {"strategy": "SingleZone", "zone": 1}, "circuit": {}, "encryption": - {"keyVaultProperties": {"keyName": "keyname1", "keyVaultUrl": "https://keyvault1-kmip-kvault.vault.azure.net/", - "keyVersion": "ver1.0"}, "status": "Enabled"}, "endpoints": {}, "extendedNetworkBlocks": - ["10.0.8.0/23", "10.1.8.0/23", "10.2.8.0/23"], "identitySources": [{"alias": - "groupAlias", "baseGroupDN": "ou=baseGroup", "baseUserDN": "ou=baseUser", "domain": - "domain1", "name": "group1", "primaryServer": "ldaps://1.1.1.1:636/", "secondaryServer": - "ldaps://1.1.1.2:636/", "ssl": "Enabled"}], "internet": "Disabled", "managementCluster": - {"clusterSize": 4, "hosts": ["fakehost18.nyc1.kubernetes.center", "fakehost19.nyc1.kubernetes.center", + {"keyVaultProperties": {"keyName": "keyname1", "keyState": "Connected", "keyVaultUrl": + "https://keyvault1-kmip-kvault.vault.azure.net/", "keyVersion": "ver1.0", "versionType": + "Fixed"}, "status": "Enabled"}, "endpoints": {}, "extendedNetworkBlocks": ["10.0.8.0/23", + "10.1.8.0/23", "10.2.8.0/23"], "identitySources": [{"alias": "groupAlias", "baseGroupDN": + "ou=baseGroup", "baseUserDN": "ou=baseUser", "domain": "domain1", "name": "group1", + "primaryServer": "ldaps://1.1.1.1:636/", "secondaryServer": "ldaps://1.1.1.2:636/", + "ssl": "Enabled"}], "internet": "Disabled", "managementCluster": {"clusterSize": + 4, "hosts": ["fakehost18.nyc1.kubernetes.center", "fakehost19.nyc1.kubernetes.center", "fakehost20.nyc1.kubernetes.center", "fakehost21.nyc1.kubernetes.center"]}, "networkBlock": "192.168.48.0/22"}, "sku": {"name": "AV36"}, "tags": {}}' headers: @@ -907,25 +1424,33 @@ interactions: Connection: - keep-alive Content-Length: - - '954' + - '1003' Content-Type: - application/json ParameterSetName: - -g -n --ext-nw-blocks User-Agent: - - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","location":"eastus2","tags":{},"sku":{"name":"AV36"},"properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]}}' - headers: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","tags":{},"location":"eastus2","properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]},"sku":{"name":"AV36"}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '1377' content-type: - application/json date: - - Wed, 29 Nov 2023 18:54:56 GMT + - Fri, 28 Jun 2024 20:06:20 GMT server: - Rocket status: @@ -945,19 +1470,27 @@ interactions: ParameterSetName: - -g -n --ext-nw-blocks User-Agent: - - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","location":"eastus2","tags":{},"sku":{"name":"AV36"},"properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"encryption":{"status":"Enabled","keyVaultProperties":{"keyName":"keyname1","keyVersion":"ver1.0","keyVaultUrl":"https://keyvault1-kmip-kvault.vault.azure.net/","keyState":"Connected","versionType":"Fixed"}},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/","hcxCloudManager":"https://192.168.50.4/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]},"identity":{"principalId":"881e5573-063f-49e4-8c08-79d7df0169d8","tenantId":"881e5573-063f-49e4-8c08-79d7df0169d8","type":"SystemAssigned"}}' - headers: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","tags":{},"location":"eastus2","properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"encryption":{"status":"Enabled","keyVaultProperties":{"keyName":"keyname1","keyVersion":"ver1.0","keyVaultUrl":"https://keyvault1-kmip-kvault.vault.azure.net/","keyState":"Connected","versionType":"Fixed"}},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering"},"endpoints":{"nsxtManager":"https://nsx.290351365f5b41a19b77af.eastus.avslab.azure.com/","vcsa":"https://vc.290351365f5b41a19b77af.eastus.avslab.azure.com/","hcxCloudManager":"https://hcx.290351365f5b41a19b77af.eastus.avslab.azure.com/","nsxtManagerIp":"192.168.50.3","vcenterIp":"192.168.50.2","hcxCloudManagerIp":"192.168.50.4"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]},"sku":{"name":"AV36"},"identity":{"principalId":"881e5573-063f-49e4-8c08-79d7df0169d8","tenantId":"881e5573-063f-49e4-8c08-79d7df0169d8","type":"SystemAssigned"}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '1990' + - '2196' content-type: - application/json date: - - Wed, 29 Nov 2023 18:54:59 GMT + - Fri, 28 Jun 2024 20:06:23 GMT server: - Rocket status: @@ -966,13 +1499,14 @@ interactions: - request: body: '{"identity": {"type": "SystemAssigned"}, "location": "eastus2", "properties": {"availability": {"strategy": "SingleZone", "zone": 1}, "circuit": {}, "encryption": - {"keyVaultProperties": {"keyName": "keyname1", "keyVaultUrl": "https://keyvault1-kmip-kvault.vault.azure.net/", - "keyVersion": "ver1.0"}, "status": "Enabled"}, "endpoints": {}, "identitySources": - [{"alias": "groupAlias", "baseGroupDN": "ou=baseGroup", "baseUserDN": "ou=baseUser", - "domain": "domain1", "name": "group1", "primaryServer": "ldaps://1.1.1.1:636/", - "secondaryServer": "ldaps://1.1.1.2:636/", "ssl": "Enabled"}], "internet": "Disabled", - "managementCluster": {"clusterSize": 4, "hosts": ["fakehost18.nyc1.kubernetes.center", - "fakehost19.nyc1.kubernetes.center", "fakehost20.nyc1.kubernetes.center", "fakehost21.nyc1.kubernetes.center"]}, + {"keyVaultProperties": {"keyName": "keyname1", "keyState": "Connected", "keyVaultUrl": + "https://keyvault1-kmip-kvault.vault.azure.net/", "keyVersion": "ver1.0", "versionType": + "Fixed"}, "status": "Enabled"}, "endpoints": {}, "identitySources": [{"alias": + "groupAlias", "baseGroupDN": "ou=baseGroup", "baseUserDN": "ou=baseUser", "domain": + "domain1", "name": "group1", "primaryServer": "ldaps://1.1.1.1:636/", "secondaryServer": + "ldaps://1.1.1.2:636/", "ssl": "Enabled"}], "internet": "Disabled", "managementCluster": + {"clusterSize": 4, "hosts": ["fakehost18.nyc1.kubernetes.center", "fakehost19.nyc1.kubernetes.center", + "fakehost20.nyc1.kubernetes.center", "fakehost21.nyc1.kubernetes.center"]}, "networkBlock": "192.168.48.0/22"}, "sku": {"name": "AV36"}, "tags": {}}' headers: Accept: @@ -984,25 +1518,33 @@ interactions: Connection: - keep-alive Content-Length: - - '882' + - '931' Content-Type: - application/json ParameterSetName: - -g -n --ext-nw-blocks User-Agent: - - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","location":"eastus2","tags":{},"sku":{"name":"AV36"},"properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]}}' - headers: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","tags":{},"location":"eastus2","properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]},"sku":{"name":"AV36"}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '1377' content-type: - application/json date: - - Wed, 29 Nov 2023 18:54:59 GMT + - Fri, 28 Jun 2024 20:06:23 GMT server: - Rocket status: @@ -1022,19 +1564,27 @@ interactions: ParameterSetName: - -g -c --system-assigned User-Agent: - - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","location":"eastus2","tags":{},"sku":{"name":"AV36"},"properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"encryption":{"status":"Enabled","keyVaultProperties":{"keyName":"keyname1","keyVersion":"ver1.0","keyVaultUrl":"https://keyvault1-kmip-kvault.vault.azure.net/","keyState":"Connected","versionType":"Fixed"}},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/","hcxCloudManager":"https://192.168.50.4/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]},"identity":{"principalId":"881e5573-063f-49e4-8c08-79d7df0169d8","tenantId":"881e5573-063f-49e4-8c08-79d7df0169d8","type":"SystemAssigned"}}' - headers: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","tags":{},"location":"eastus2","properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"encryption":{"status":"Enabled","keyVaultProperties":{"keyName":"keyname1","keyVersion":"ver1.0","keyVaultUrl":"https://keyvault1-kmip-kvault.vault.azure.net/","keyState":"Connected","versionType":"Fixed"}},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering"},"endpoints":{"nsxtManager":"https://nsx.290351365f5b41a19b77af.eastus.avslab.azure.com/","vcsa":"https://vc.290351365f5b41a19b77af.eastus.avslab.azure.com/","hcxCloudManager":"https://hcx.290351365f5b41a19b77af.eastus.avslab.azure.com/","nsxtManagerIp":"192.168.50.3","vcenterIp":"192.168.50.2","hcxCloudManagerIp":"192.168.50.4"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]},"sku":{"name":"AV36"},"identity":{"principalId":"881e5573-063f-49e4-8c08-79d7df0169d8","tenantId":"881e5573-063f-49e4-8c08-79d7df0169d8","type":"SystemAssigned"}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '1990' + - '2196' content-type: - application/json date: - - Wed, 29 Nov 2023 18:55:02 GMT + - Fri, 28 Jun 2024 20:06:25 GMT server: - Rocket status: @@ -1043,13 +1593,14 @@ interactions: - request: body: '{"identity": {"type": "SystemAssigned"}, "location": "eastus2", "properties": {"availability": {"strategy": "SingleZone", "zone": 1}, "circuit": {}, "encryption": - {"keyVaultProperties": {"keyName": "keyname1", "keyVaultUrl": "https://keyvault1-kmip-kvault.vault.azure.net/", - "keyVersion": "ver1.0"}, "status": "Enabled"}, "endpoints": {}, "identitySources": - [{"alias": "groupAlias", "baseGroupDN": "ou=baseGroup", "baseUserDN": "ou=baseUser", - "domain": "domain1", "name": "group1", "primaryServer": "ldaps://1.1.1.1:636/", - "secondaryServer": "ldaps://1.1.1.2:636/", "ssl": "Enabled"}], "internet": "Disabled", - "managementCluster": {"clusterSize": 4, "hosts": ["fakehost18.nyc1.kubernetes.center", - "fakehost19.nyc1.kubernetes.center", "fakehost20.nyc1.kubernetes.center", "fakehost21.nyc1.kubernetes.center"]}, + {"keyVaultProperties": {"keyName": "keyname1", "keyState": "Connected", "keyVaultUrl": + "https://keyvault1-kmip-kvault.vault.azure.net/", "keyVersion": "ver1.0", "versionType": + "Fixed"}, "status": "Enabled"}, "endpoints": {}, "identitySources": [{"alias": + "groupAlias", "baseGroupDN": "ou=baseGroup", "baseUserDN": "ou=baseUser", "domain": + "domain1", "name": "group1", "primaryServer": "ldaps://1.1.1.1:636/", "secondaryServer": + "ldaps://1.1.1.2:636/", "ssl": "Enabled"}], "internet": "Disabled", "managementCluster": + {"clusterSize": 4, "hosts": ["fakehost18.nyc1.kubernetes.center", "fakehost19.nyc1.kubernetes.center", + "fakehost20.nyc1.kubernetes.center", "fakehost21.nyc1.kubernetes.center"]}, "networkBlock": "192.168.48.0/22"}, "sku": {"name": "AV36"}, "tags": {}}' headers: Accept: @@ -1061,25 +1612,33 @@ interactions: Connection: - keep-alive Content-Length: - - '882' + - '931' Content-Type: - application/json ParameterSetName: - -g -c --system-assigned User-Agent: - - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","location":"eastus2","tags":{},"sku":{"name":"AV36"},"properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]}}' - headers: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","tags":{},"location":"eastus2","properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]},"sku":{"name":"AV36"}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '1377' content-type: - application/json date: - - Wed, 29 Nov 2023 18:55:02 GMT + - Fri, 28 Jun 2024 20:06:25 GMT server: - Rocket status: @@ -1099,19 +1658,27 @@ interactions: ParameterSetName: - -c -g --enc-kv-key-name --enc-kv-url User-Agent: - - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","location":"eastus2","tags":{},"sku":{"name":"AV36"},"properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"encryption":{"status":"Enabled","keyVaultProperties":{"keyName":"keyname1","keyVersion":"ver1.0","keyVaultUrl":"https://keyvault1-kmip-kvault.vault.azure.net/","keyState":"Connected","versionType":"Fixed"}},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/","hcxCloudManager":"https://192.168.50.4/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]},"identity":{"principalId":"881e5573-063f-49e4-8c08-79d7df0169d8","tenantId":"881e5573-063f-49e4-8c08-79d7df0169d8","type":"SystemAssigned"}}' - headers: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","tags":{},"location":"eastus2","properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"encryption":{"status":"Enabled","keyVaultProperties":{"keyName":"keyname1","keyVersion":"ver1.0","keyVaultUrl":"https://keyvault1-kmip-kvault.vault.azure.net/","keyState":"Connected","versionType":"Fixed"}},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering"},"endpoints":{"nsxtManager":"https://nsx.290351365f5b41a19b77af.eastus.avslab.azure.com/","vcsa":"https://vc.290351365f5b41a19b77af.eastus.avslab.azure.com/","hcxCloudManager":"https://hcx.290351365f5b41a19b77af.eastus.avslab.azure.com/","nsxtManagerIp":"192.168.50.3","vcenterIp":"192.168.50.2","hcxCloudManagerIp":"192.168.50.4"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]},"sku":{"name":"AV36"},"identity":{"principalId":"881e5573-063f-49e4-8c08-79d7df0169d8","tenantId":"881e5573-063f-49e4-8c08-79d7df0169d8","type":"SystemAssigned"}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '1990' + - '2196' content-type: - application/json date: - - Wed, 29 Nov 2023 18:55:05 GMT + - Fri, 28 Jun 2024 20:06:28 GMT server: - Rocket status: @@ -1144,19 +1711,27 @@ interactions: ParameterSetName: - -c -g --enc-kv-key-name --enc-kv-url User-Agent: - - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","location":"eastus2","tags":{},"sku":{"name":"AV36"},"properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]}}' - headers: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","tags":{},"location":"eastus2","properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]},"sku":{"name":"AV36"}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '1377' content-type: - application/json date: - - Wed, 29 Nov 2023 18:55:05 GMT + - Fri, 28 Jun 2024 20:06:28 GMT server: - Rocket status: @@ -1176,19 +1751,27 @@ interactions: ParameterSetName: - -c -g --yes User-Agent: - - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","location":"eastus2","tags":{},"sku":{"name":"AV36"},"properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"encryption":{"status":"Enabled","keyVaultProperties":{"keyName":"keyname1","keyVersion":"ver1.0","keyVaultUrl":"https://keyvault1-kmip-kvault.vault.azure.net/","keyState":"Connected","versionType":"Fixed"}},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/","hcxCloudManager":"https://192.168.50.4/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]},"identity":{"principalId":"881e5573-063f-49e4-8c08-79d7df0169d8","tenantId":"881e5573-063f-49e4-8c08-79d7df0169d8","type":"SystemAssigned"}}' - headers: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","tags":{},"location":"eastus2","properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"encryption":{"status":"Enabled","keyVaultProperties":{"keyName":"keyname1","keyVersion":"ver1.0","keyVaultUrl":"https://keyvault1-kmip-kvault.vault.azure.net/","keyState":"Connected","versionType":"Fixed"}},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering"},"endpoints":{"nsxtManager":"https://nsx.290351365f5b41a19b77af.eastus.avslab.azure.com/","vcsa":"https://vc.290351365f5b41a19b77af.eastus.avslab.azure.com/","hcxCloudManager":"https://hcx.290351365f5b41a19b77af.eastus.avslab.azure.com/","nsxtManagerIp":"192.168.50.3","vcenterIp":"192.168.50.2","hcxCloudManagerIp":"192.168.50.4"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]},"sku":{"name":"AV36"},"identity":{"principalId":"881e5573-063f-49e4-8c08-79d7df0169d8","tenantId":"881e5573-063f-49e4-8c08-79d7df0169d8","type":"SystemAssigned"}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '1990' + - '2196' content-type: - application/json date: - - Wed, 29 Nov 2023 18:55:08 GMT + - Fri, 28 Jun 2024 20:06:30 GMT server: - Rocket status: @@ -1220,19 +1803,27 @@ interactions: ParameterSetName: - -c -g --yes User-Agent: - - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","location":"eastus2","tags":{},"sku":{"name":"AV36"},"properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]}}' - headers: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","tags":{},"location":"eastus2","properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]},"sku":{"name":"AV36"}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '1377' content-type: - application/json date: - - Wed, 29 Nov 2023 18:55:08 GMT + - Fri, 28 Jun 2024 20:06:30 GMT server: - Rocket status: @@ -1254,17 +1845,27 @@ interactions: ParameterSetName: - -g -n --yes User-Agent: - - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: DELETE - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2023-09-01 response: body: string: '' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '0' + content-type: + - application/json date: - - Wed, 29 Nov 2023 18:55:11 GMT + - Fri, 28 Jun 2024 20:06:34 GMT server: - Rocket status: @@ -1286,17 +1887,27 @@ interactions: ParameterSetName: - -g -c -n --yes User-Agent: - - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: DELETE - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1?api-version=2023-09-01 response: body: string: '' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '0' + content-type: + - application/json date: - - Wed, 29 Nov 2023 18:55:14 GMT + - Fri, 28 Jun 2024 20:06:36 GMT server: - Rocket status: @@ -1318,19 +1929,27 @@ interactions: ParameterSetName: - -g -c -n User-Agent: - - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: POST - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/listZones?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/listZones?api-version=2023-09-01 response: body: string: '{"zones":[{"hosts":["fakehost22.nyc1.kubernetes.center","fakehost23.nyc1.kubernetes.center","fakehost24.nyc1.kubernetes.center"],"zone":"2"}]}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '142' content-type: - application/json date: - - Wed, 29 Nov 2023 18:55:17 GMT + - Fri, 28 Jun 2024 20:06:39 GMT server: - Rocket status: @@ -1352,17 +1971,27 @@ interactions: ParameterSetName: - -g -n --yes User-Agent: - - AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: DELETE - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2023-09-01 response: body: string: '' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '0' + content-type: + - application/json date: - - Wed, 29 Nov 2023 18:55:20 GMT + - Fri, 28 Jun 2024 20:06:41 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_addon.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_addon.yaml index 2df345bcccf..9d91d62e160 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_addon.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_addon.yaml @@ -19,19 +19,27 @@ interactions: ParameterSetName: - -g -n --location --sku --cluster-size --network-block --accept-eula User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","location":"eastus2","tags":{},"sku":{"name":"AV36"},"properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]}}' - headers: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","tags":{},"location":"eastus2","properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]},"sku":{"name":"AV36"}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '1377' content-type: - application/json date: - - Wed, 20 Sep 2023 15:27:59 GMT + - Fri, 28 Jun 2024 20:04:30 GMT server: - Rocket status: @@ -51,19 +59,27 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons?api-version=2023-09-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/srm","name":"srm","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"SRM","provisioningState":"Succeeded"}}]}' - headers: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/srm","name":"srm","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"SRM","provisioningState":"Succeeded","licenseKey":"41915178-A8FF-4A4D-B683-6D735AF5E3F5"}}]}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '272' + - '324' content-type: - application/json date: - - Wed, 20 Sep 2023 15:28:04 GMT + - Fri, 28 Jun 2024 20:04:32 GMT server: - Rocket status: @@ -87,19 +103,27 @@ interactions: ParameterSetName: - -g -c --vrs-count User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/srm","name":"srm","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"SRM","provisioningState":"Succeeded"}}' - headers: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/arc","name":"arc","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"Arc","provisioningState":"Succeeded","vCenter":"subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg_test/providers/Microsoft.ConnectedVMwarevSphere/VCenters/test-vcenter"}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '260' + - '411' content-type: - application/json date: - - Wed, 20 Sep 2023 15:28:09 GMT + - Fri, 28 Jun 2024 20:04:35 GMT server: - Rocket status: @@ -119,19 +143,27 @@ interactions: ParameterSetName: - -g -c --vrs-count User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/srm","name":"srm","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"SRM","provisioningState":"Succeeded"}}' - headers: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/arc","name":"arc","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"Arc","provisioningState":"Succeeded","vCenter":"subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg_test/providers/Microsoft.ConnectedVMwarevSphere/VCenters/test-vcenter"}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '260' + - '411' content-type: - application/json date: - - Wed, 20 Sep 2023 15:28:14 GMT + - Fri, 28 Jun 2024 20:04:37 GMT server: - Rocket status: @@ -155,19 +187,27 @@ interactions: ParameterSetName: - -g -c --vrs-count User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/srm","name":"srm","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"SRM","provisioningState":"Succeeded"}}' - headers: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/arc","name":"arc","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"Arc","provisioningState":"Succeeded","vCenter":"subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg_test/providers/Microsoft.ConnectedVMwarevSphere/VCenters/test-vcenter"}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '260' + - '411' content-type: - application/json date: - - Wed, 20 Sep 2023 15:28:14 GMT + - Fri, 28 Jun 2024 20:04:37 GMT server: - Rocket status: @@ -187,19 +227,27 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons?api-version=2023-09-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/srm","name":"srm","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"SRM","provisioningState":"Succeeded"}}]}' - headers: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/srm","name":"srm","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"SRM","provisioningState":"Succeeded","licenseKey":"41915178-A8FF-4A4D-B683-6D735AF5E3F5"}}]}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '272' + - '324' content-type: - application/json date: - - Wed, 20 Sep 2023 15:28:19 GMT + - Fri, 28 Jun 2024 20:04:40 GMT server: - Rocket status: @@ -219,19 +267,27 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/srm","name":"srm","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"SRM","provisioningState":"Succeeded"}}' - headers: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/arc","name":"arc","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"Arc","provisioningState":"Succeeded","vCenter":"subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg_test/providers/Microsoft.ConnectedVMwarevSphere/VCenters/test-vcenter"}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '260' + - '411' content-type: - application/json date: - - Wed, 20 Sep 2023 15:28:24 GMT + - Fri, 28 Jun 2024 20:04:42 GMT server: - Rocket status: @@ -253,17 +309,27 @@ interactions: ParameterSetName: - -g -c --yes User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr?api-version=2023-09-01 response: body: string: '' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '0' + content-type: + - application/json date: - - Wed, 20 Sep 2023 15:28:29 GMT + - Fri, 28 Jun 2024 20:04:44 GMT server: - Rocket status: @@ -283,19 +349,27 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons?api-version=2023-09-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/srm","name":"srm","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"SRM","provisioningState":"Succeeded"}}]}' - headers: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/srm","name":"srm","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"SRM","provisioningState":"Succeeded","licenseKey":"41915178-A8FF-4A4D-B683-6D735AF5E3F5"}}]}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '272' + - '324' content-type: - application/json date: - - Wed, 20 Sep 2023 15:28:34 GMT + - Fri, 28 Jun 2024 20:04:47 GMT server: - Rocket status: @@ -319,19 +393,27 @@ interactions: ParameterSetName: - -g -c --license-key User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/srm","name":"srm","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"SRM","provisioningState":"Succeeded"}}' - headers: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/arc","name":"arc","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"Arc","provisioningState":"Succeeded","vCenter":"subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg_test/providers/Microsoft.ConnectedVMwarevSphere/VCenters/test-vcenter"}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '260' + - '411' content-type: - application/json date: - - Wed, 20 Sep 2023 15:28:40 GMT + - Fri, 28 Jun 2024 20:04:49 GMT server: - Rocket status: @@ -351,19 +433,27 @@ interactions: ParameterSetName: - -g -c --license-key User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/srm","name":"srm","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"SRM","provisioningState":"Succeeded"}}' - headers: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/arc","name":"arc","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"Arc","provisioningState":"Succeeded","vCenter":"subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg_test/providers/Microsoft.ConnectedVMwarevSphere/VCenters/test-vcenter"}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '260' + - '411' content-type: - application/json date: - - Wed, 20 Sep 2023 15:28:44 GMT + - Fri, 28 Jun 2024 20:04:52 GMT server: - Rocket status: @@ -387,19 +477,27 @@ interactions: ParameterSetName: - -g -c --license-key User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/srm","name":"srm","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"SRM","provisioningState":"Succeeded"}}' - headers: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/arc","name":"arc","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"Arc","provisioningState":"Succeeded","vCenter":"subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg_test/providers/Microsoft.ConnectedVMwarevSphere/VCenters/test-vcenter"}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '260' + - '411' content-type: - application/json date: - - Wed, 20 Sep 2023 15:28:44 GMT + - Fri, 28 Jun 2024 20:04:52 GMT server: - Rocket status: @@ -419,19 +517,27 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons?api-version=2023-09-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/srm","name":"srm","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"SRM","provisioningState":"Succeeded"}}]}' - headers: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/srm","name":"srm","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"SRM","provisioningState":"Succeeded","licenseKey":"41915178-A8FF-4A4D-B683-6D735AF5E3F5"}}]}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '272' + - '324' content-type: - application/json date: - - Wed, 20 Sep 2023 15:28:49 GMT + - Fri, 28 Jun 2024 20:04:54 GMT server: - Rocket status: @@ -451,19 +557,27 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/srm","name":"srm","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"SRM","provisioningState":"Succeeded"}}' - headers: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/arc","name":"arc","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"Arc","provisioningState":"Succeeded","vCenter":"subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg_test/providers/Microsoft.ConnectedVMwarevSphere/VCenters/test-vcenter"}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '260' + - '411' content-type: - application/json date: - - Wed, 20 Sep 2023 15:28:54 GMT + - Fri, 28 Jun 2024 20:04:56 GMT server: - Rocket status: @@ -485,17 +599,27 @@ interactions: ParameterSetName: - -g -c --yes User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm?api-version=2023-09-01 response: body: string: '' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '0' + content-type: + - application/json date: - - Wed, 20 Sep 2023 15:28:59 GMT + - Fri, 28 Jun 2024 20:04:59 GMT server: - Rocket status: @@ -519,19 +643,27 @@ interactions: ParameterSetName: - -g -c --offer User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/hcx?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/hcx?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/srm","name":"srm","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"SRM","provisioningState":"Succeeded"}}' - headers: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/arc","name":"arc","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"Arc","provisioningState":"Succeeded","vCenter":"subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg_test/providers/Microsoft.ConnectedVMwarevSphere/VCenters/test-vcenter"}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '260' + - '411' content-type: - application/json date: - - Wed, 20 Sep 2023 15:29:04 GMT + - Fri, 28 Jun 2024 20:05:01 GMT server: - Rocket status: @@ -551,19 +683,27 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/hcx?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/hcx?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/srm","name":"srm","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"SRM","provisioningState":"Succeeded"}}' - headers: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/arc","name":"arc","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"Arc","provisioningState":"Succeeded","vCenter":"subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg_test/providers/Microsoft.ConnectedVMwarevSphere/VCenters/test-vcenter"}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '260' + - '411' content-type: - application/json date: - - Wed, 20 Sep 2023 15:29:08 GMT + - Fri, 28 Jun 2024 20:05:04 GMT server: - Rocket status: @@ -585,17 +725,27 @@ interactions: ParameterSetName: - -g -c --yes User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/hcx?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/hcx?api-version=2023-09-01 response: body: string: '' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '0' + content-type: + - application/json date: - - Wed, 20 Sep 2023 15:29:13 GMT + - Fri, 28 Jun 2024 20:05:07 GMT server: - Rocket status: @@ -619,19 +769,27 @@ interactions: ParameterSetName: - -g -c --vcenter User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/arc?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/arc?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/srm","name":"srm","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"SRM","provisioningState":"Succeeded"}}' - headers: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/arc","name":"arc","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"Arc","provisioningState":"Succeeded","vCenter":"subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg_test/providers/Microsoft.ConnectedVMwarevSphere/VCenters/test-vcenter"}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '260' + - '411' content-type: - application/json date: - - Wed, 20 Sep 2023 15:29:18 GMT + - Fri, 28 Jun 2024 20:05:09 GMT server: - Rocket status: @@ -651,19 +809,27 @@ interactions: ParameterSetName: - -g -c --vcenter User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/arc?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/arc?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/srm","name":"srm","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"SRM","provisioningState":"Succeeded"}}' - headers: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/arc","name":"arc","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"Arc","provisioningState":"Succeeded","vCenter":"subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg_test/providers/Microsoft.ConnectedVMwarevSphere/VCenters/test-vcenter"}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '260' + - '411' content-type: - application/json date: - - Wed, 20 Sep 2023 15:29:23 GMT + - Fri, 28 Jun 2024 20:05:12 GMT server: - Rocket status: @@ -687,19 +853,27 @@ interactions: ParameterSetName: - -g -c --vcenter User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/arc?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/arc?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/srm","name":"srm","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"SRM","provisioningState":"Succeeded"}}' - headers: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/arc","name":"arc","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"Arc","provisioningState":"Succeeded","vCenter":"subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg_test/providers/Microsoft.ConnectedVMwarevSphere/VCenters/test-vcenter"}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '260' + - '411' content-type: - application/json date: - - Wed, 20 Sep 2023 15:29:23 GMT + - Fri, 28 Jun 2024 20:05:12 GMT server: - Rocket status: @@ -719,19 +893,27 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/arc?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/arc?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/srm","name":"srm","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"SRM","provisioningState":"Succeeded"}}' - headers: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/arc","name":"arc","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"Arc","provisioningState":"Succeeded","vCenter":"subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg_test/providers/Microsoft.ConnectedVMwarevSphere/VCenters/test-vcenter"}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '260' + - '411' content-type: - application/json date: - - Wed, 20 Sep 2023 15:29:29 GMT + - Fri, 28 Jun 2024 20:05:15 GMT server: - Rocket status: @@ -753,17 +935,27 @@ interactions: ParameterSetName: - -g -c --yes User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/arc?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/arc?api-version=2023-09-01 response: body: string: '' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '0' + content-type: + - application/json date: - - Wed, 20 Sep 2023 15:29:34 GMT + - Fri, 28 Jun 2024 20:05:17 GMT server: - Rocket status: @@ -783,19 +975,27 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons?api-version=2023-09-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/srm","name":"srm","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"SRM","provisioningState":"Succeeded"}}]}' - headers: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/srm","name":"srm","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"SRM","provisioningState":"Succeeded","licenseKey":"41915178-A8FF-4A4D-B683-6D735AF5E3F5"}}]}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '272' + - '324' content-type: - application/json date: - - Wed, 20 Sep 2023 15:29:39 GMT + - Fri, 28 Jun 2024 20:05:20 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_cloud_link.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_cloud_link.yaml index 2595063982c..b476c525d2b 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_cloud_link.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_cloud_link.yaml @@ -17,19 +17,27 @@ interactions: ParameterSetName: - -g -c -n --linked-cloud User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/cloudLinks/cloudLink1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/cloudLinks/cloudLink1?api-version=2023-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/cloudLinks/cloudLink1","name":"cloudLink1","type":"Microsoft.AVS/privateClouds/cloudLinks","properties":{"status":"Active","linkedCloud":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '386' content-type: - application/json date: - - Wed, 20 Sep 2023 15:27:59 GMT + - Fri, 28 Jun 2024 20:04:30 GMT server: - Rocket status: @@ -49,19 +57,27 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/cloudLinks?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/cloudLinks?api-version=2023-09-01 response: body: string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/cloudLinks/cloudLink1","name":"cloudLink1","type":"Microsoft.AVS/privateClouds/cloudLinks","properties":{"status":"Active","linkedCloud":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"}}]}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '398' content-type: - application/json date: - - Wed, 20 Sep 2023 15:28:04 GMT + - Fri, 28 Jun 2024 20:04:32 GMT server: - Rocket status: @@ -81,19 +97,27 @@ interactions: ParameterSetName: - -g -c -n User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/cloudLinks/cloudLink1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/cloudLinks/cloudLink1?api-version=2023-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/cloudLinks/cloudLink1","name":"cloudLink1","type":"Microsoft.AVS/privateClouds/cloudLinks","properties":{"status":"Active","linkedCloud":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '386' content-type: - application/json date: - - Wed, 20 Sep 2023 15:28:09 GMT + - Fri, 28 Jun 2024 20:04:35 GMT server: - Rocket status: @@ -115,17 +139,27 @@ interactions: ParameterSetName: - -g -c -n --yes User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/cloudLinks/cloudLink1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/cloudLinks/cloudLink1?api-version=2023-09-01 response: body: string: '' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '0' + content-type: + - application/json date: - - Wed, 20 Sep 2023 15:28:14 GMT + - Fri, 28 Jun 2024 20:04:37 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_datastores.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_datastores.yaml index 122bde797dd..2b2163124a0 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_datastores.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_datastores.yaml @@ -18,19 +18,27 @@ interactions: ParameterSetName: - --name --resource-group --private-cloud --cluster --target-id --lun-name User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/iSCSIDatastore1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/iSCSIDatastore1?api-version=2023-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/datastores/datastore1","name":"datastore1","type":"Microsoft.AVS/privateClouds/clusters/datastores","properties":{"provisioningState":"Succeeded","netAppVolume":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ResourceGroup1/providers/Microsoft.NetApp/netAppAccounts/NetAppAccount1/capacityPools/CapacityPool1/volumes/NFSVol1"},"status":"Accessible"}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '520' content-type: - application/json date: - - Wed, 20 Sep 2023 15:27:59 GMT + - Fri, 28 Jun 2024 20:04:44 GMT server: - Rocket status: @@ -50,19 +58,27 @@ interactions: ParameterSetName: - --name --resource-group --private-cloud --cluster User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/iSCSIDatastore1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/iSCSIDatastore1?api-version=2023-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/datastores/datastore1","name":"datastore1","type":"Microsoft.AVS/privateClouds/clusters/datastores","properties":{"provisioningState":"Succeeded","netAppVolume":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ResourceGroup1/providers/Microsoft.NetApp/netAppAccounts/NetAppAccount1/capacityPools/CapacityPool1/volumes/NFSVol1"},"status":"Accessible"}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '520' content-type: - application/json date: - - Wed, 20 Sep 2023 15:28:04 GMT + - Fri, 28 Jun 2024 20:04:46 GMT server: - Rocket status: @@ -82,19 +98,27 @@ interactions: ParameterSetName: - --resource-group --private-cloud --cluster User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores?api-version=2023-09-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/datastores/datastore1","name":"datastore1","type":"Microsoft.AVS/privateClouds/clusters/datastores","properties":{"provisioningState":"Succeeded","netAppVolume":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ResourceGroup1/providers/Microsoft.NetApp/netAppAccounts/NetAppAccount1/capacityPools/CapacityPool1/volumes/NFSVol1"},"status":"Accessible"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/datastores/datastore2","name":"datastore2","type":"Microsoft.AVS/privateClouds/clusters/datastores","properties":{"provisioningState":"Succeeded","diskPoolVolume":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ResourceGroup1/providers/Microsoft.StoragePool/diskPools/DiskPool1/targets/Target1","lunName":"lun0","mountOption":"MOUNT","path":"/vmfs/devices/disks/naa.6001405f75f6bdf7f6f49db8b4b21723"},"status":"Accessible"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/datastores/datastore1","name":"datastore1","type":"Microsoft.AVS/privateClouds/clusters/datastores","properties":{"provisioningState":"Succeeded","netAppVolume":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ResourceGroup1/providers/Microsoft.NetApp/netAppAccounts/NetAppAccount1/capacityPools/CapacityPool1/volumes/NFSVol1"},"status":"Accessible"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/datastores/datastore2","name":"datastore2","type":"Microsoft.AVS/privateClouds/clusters/datastores","properties":{"provisioningState":"Succeeded","diskPoolVolume":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ResourceGroup1/providers/Microsoft.StoragePool/diskPools/DiskPool1/targets/Target1","lunName":"lun0","mountOption":"MOUNT","path":"/vmfs/devices/disks/naa.6001405f75f6bdf7f6f49db8b4b21723"},"status":"Accessible"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/datastores/datastore2","name":"datastore2","type":"Microsoft.AVS/privateClouds/clusters/datastores","properties":{"provisioningState":"Succeeded","elasticSanVolume":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ResourceGroup1/providers/Microsoft.ElasticSan/elasticSans/ElasticSan1/volumeGroups/VolumeGroup1/volumes/Volume1"},"status":"Accessible"}}]}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '1133' + - '1660' content-type: - application/json date: - - Wed, 20 Sep 2023 15:28:09 GMT + - Fri, 28 Jun 2024 20:04:49 GMT server: - Rocket status: @@ -116,21 +140,29 @@ interactions: Content-Type: - application/json ParameterSetName: - - --name --resource-group --private-cloud --cluster --volume-id + - --name --resource-group --private-cloud --cluster --net-app-volume User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/ANFDatastore1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/ANFDatastore1?api-version=2023-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/datastores/datastore1","name":"datastore1","type":"Microsoft.AVS/privateClouds/clusters/datastores","properties":{"provisioningState":"Succeeded","netAppVolume":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ResourceGroup1/providers/Microsoft.NetApp/netAppAccounts/NetAppAccount1/capacityPools/CapacityPool1/volumes/NFSVol1"},"status":"Accessible"}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '520' content-type: - application/json date: - - Wed, 20 Sep 2023 15:28:14 GMT + - Fri, 28 Jun 2024 20:04:51 GMT server: - Rocket status: @@ -150,19 +182,27 @@ interactions: ParameterSetName: - --name --resource-group --private-cloud --cluster User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/ANFDatastore1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/ANFDatastore1?api-version=2023-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/datastores/datastore1","name":"datastore1","type":"Microsoft.AVS/privateClouds/clusters/datastores","properties":{"provisioningState":"Succeeded","netAppVolume":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ResourceGroup1/providers/Microsoft.NetApp/netAppAccounts/NetAppAccount1/capacityPools/CapacityPool1/volumes/NFSVol1"},"status":"Accessible"}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '520' content-type: - application/json date: - - Wed, 20 Sep 2023 15:28:19 GMT + - Fri, 28 Jun 2024 20:04:54 GMT server: - Rocket status: @@ -184,17 +224,27 @@ interactions: ParameterSetName: - --name --resource-group --private-cloud --cluster --yes User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/iSCSIDatastore1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/iSCSIDatastore1?api-version=2023-09-01 response: body: string: '' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '0' + content-type: + - application/json date: - - Wed, 20 Sep 2023 15:28:24 GMT + - Fri, 28 Jun 2024 20:04:56 GMT server: - Rocket status: @@ -219,19 +269,71 @@ interactions: ParameterSetName: - --name --resource-group --private-cloud --cluster --target-id --lun-name --mount-option User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) + method: PUT + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/iSCSIDatastore1?api-version=2023-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/datastores/datastore1","name":"datastore1","type":"Microsoft.AVS/privateClouds/clusters/datastores","properties":{"provisioningState":"Succeeded","netAppVolume":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ResourceGroup1/providers/Microsoft.NetApp/netAppAccounts/NetAppAccount1/capacityPools/CapacityPool1/volumes/NFSVol1"},"status":"Accessible"}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' + content-length: + - '520' + content-type: + - application/json + date: + - Fri, 28 Jun 2024 20:04:59 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: '{"properties": {"elasticSanVolume": {"targetId": "san-volumes"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware datastore elastic-san-volume create + Connection: + - keep-alive + Content-Length: + - '65' + Content-Type: + - application/json + ParameterSetName: + - --name --resource-group --private-cloud --cluster --elastic-san-volume + User-Agent: + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/iSCSIDatastore1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/SANDatastore1?api-version=2023-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/datastores/datastore1","name":"datastore1","type":"Microsoft.AVS/privateClouds/clusters/datastores","properties":{"provisioningState":"Succeeded","netAppVolume":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ResourceGroup1/providers/Microsoft.NetApp/netAppAccounts/NetAppAccount1/capacityPools/CapacityPool1/volumes/NFSVol1"},"status":"Accessible"}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '520' content-type: - application/json date: - - Wed, 20 Sep 2023 15:28:29 GMT + - Fri, 28 Jun 2024 20:05:01 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_global_reach_connection.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_global_reach_connection.yaml index bf2047b4f43..ea357c29f51 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_global_reach_connection.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_global_reach_connection.yaml @@ -21,19 +21,27 @@ interactions: - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password --accept-eula User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","location":"eastus2","tags":{},"sku":{"name":"AV36"},"properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","tags":{},"location":"eastus2","properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]},"sku":{"name":"AV36"}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '1377' content-type: - application/json date: - - Wed, 20 Sep 2023 15:29:52 GMT + - Fri, 28 Jun 2024 20:04:30 GMT server: - Rocket status: @@ -53,19 +61,27 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections?api-version=2023-09-01 response: body: string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections/connection1","name":"connection1","type":"Microsoft.AVS/privateClouds/globalReachConnections","properties":{"provisioningState":"Succeeded","addressPrefix":"10.2.3.16/29","authorizationKey":"01010101-0101-0101-0101-010101010101","circuitConnectionStatus":"Connected","peerExpressRouteCircuit":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.Network/expressRouteCircuits/mypeer","expressRouteId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"}}]}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '834' content-type: - application/json date: - - Wed, 20 Sep 2023 15:29:57 GMT + - Fri, 28 Jun 2024 20:04:32 GMT server: - Rocket status: @@ -91,19 +107,27 @@ interactions: ParameterSetName: - -g -c -n --peer-express-route-circuit --authorization-key --express-route-id User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections/connection1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections/connection1?api-version=2023-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections/connection1","name":"connection1","type":"Microsoft.AVS/privateClouds/globalReachConnections","properties":{"provisioningState":"Succeeded","addressPrefix":"10.2.3.16/29","authorizationKey":"01010101-0101-0101-0101-010101010101","circuitConnectionStatus":"Connected","peerExpressRouteCircuit":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.Network/expressRouteCircuits/mypeer","expressRouteId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '822' content-type: - application/json date: - - Wed, 20 Sep 2023 15:30:02 GMT + - Fri, 28 Jun 2024 20:04:35 GMT server: - Rocket status: @@ -123,19 +147,27 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections?api-version=2023-09-01 response: body: string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections/connection1","name":"connection1","type":"Microsoft.AVS/privateClouds/globalReachConnections","properties":{"provisioningState":"Succeeded","addressPrefix":"10.2.3.16/29","authorizationKey":"01010101-0101-0101-0101-010101010101","circuitConnectionStatus":"Connected","peerExpressRouteCircuit":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.Network/expressRouteCircuits/mypeer","expressRouteId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"}}]}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '834' content-type: - application/json date: - - Wed, 20 Sep 2023 15:30:08 GMT + - Fri, 28 Jun 2024 20:04:37 GMT server: - Rocket status: @@ -155,19 +187,27 @@ interactions: ParameterSetName: - -g -c -n User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections/connection1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections/connection1?api-version=2023-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections/connection1","name":"connection1","type":"Microsoft.AVS/privateClouds/globalReachConnections","properties":{"provisioningState":"Succeeded","addressPrefix":"10.2.3.16/29","authorizationKey":"01010101-0101-0101-0101-010101010101","circuitConnectionStatus":"Connected","peerExpressRouteCircuit":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.Network/expressRouteCircuits/mypeer","expressRouteId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '822' content-type: - application/json date: - - Wed, 20 Sep 2023 15:30:12 GMT + - Fri, 28 Jun 2024 20:04:40 GMT server: - Rocket status: @@ -189,17 +229,27 @@ interactions: ParameterSetName: - -g -c -n --yes User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections/connection1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections/connection1?api-version=2023-09-01 response: body: string: '' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '0' + content-type: + - application/json date: - - Wed, 20 Sep 2023 15:30:17 GMT + - Fri, 28 Jun 2024 20:04:42 GMT server: - Rocket status: @@ -219,19 +269,27 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections?api-version=2023-09-01 response: body: string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections/connection1","name":"connection1","type":"Microsoft.AVS/privateClouds/globalReachConnections","properties":{"provisioningState":"Succeeded","addressPrefix":"10.2.3.16/29","authorizationKey":"01010101-0101-0101-0101-010101010101","circuitConnectionStatus":"Connected","peerExpressRouteCircuit":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.Network/expressRouteCircuits/mypeer","expressRouteId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"}}]}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '834' content-type: - application/json date: - - Wed, 20 Sep 2023 15:30:22 GMT + - Fri, 28 Jun 2024 20:04:44 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_hcx.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_hcx.yaml index ec9b8e784e0..5ae1cf0eda8 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_hcx.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_hcx.yaml @@ -21,19 +21,27 @@ interactions: - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password --accept-eula User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","location":"eastus2","tags":{},"sku":{"name":"AV36"},"properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","tags":{},"location":"eastus2","properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]},"sku":{"name":"AV36"}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '1377' content-type: - application/json date: - - Wed, 20 Sep 2023 15:28:29 GMT + - Fri, 28 Jun 2024 20:04:30 GMT server: - Rocket status: @@ -57,19 +65,27 @@ interactions: ParameterSetName: - -g -c --offer User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/addons/hcx?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/addons/hcx?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/srm","name":"srm","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"SRM","provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/arc","name":"arc","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"Arc","provisioningState":"Succeeded","vCenter":"subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg_test/providers/Microsoft.ConnectedVMwarevSphere/VCenters/test-vcenter"}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '260' + - '411' content-type: - application/json date: - - Wed, 20 Sep 2023 15:28:34 GMT + - Fri, 28 Jun 2024 20:04:32 GMT server: - Rocket status: @@ -89,19 +105,27 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/addons?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/addons?api-version=2023-09-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/srm","name":"srm","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"SRM","provisioningState":"Succeeded"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/srm","name":"srm","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"SRM","provisioningState":"Succeeded","licenseKey":"41915178-A8FF-4A4D-B683-6D735AF5E3F5"}}]}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '272' + - '324' content-type: - application/json date: - - Wed, 20 Sep 2023 15:28:39 GMT + - Fri, 28 Jun 2024 20:04:35 GMT server: - Rocket status: @@ -121,19 +145,27 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites?api-version=2023-09-01 response: body: string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites/site1","name":"site1","type":"Microsoft.AVS/privateClouds/hcxEnterpriseSites","properties":{"activationKey":"0276EF1A9A1749A5A362BF73EA9F8D0D","status":"Available"}}]}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '322' content-type: - application/json date: - - Wed, 20 Sep 2023 15:28:44 GMT + - Fri, 28 Jun 2024 20:04:37 GMT server: - Rocket status: @@ -157,19 +189,27 @@ interactions: ParameterSetName: - -g -c -n User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites/myhcx?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites/myhcx?api-version=2023-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites/site1","name":"site1","type":"Microsoft.AVS/privateClouds/hcxEnterpriseSites","properties":{"activationKey":"0276EF1A9A1749A5A362BF73EA9F8D0D","status":"Available"}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '310' content-type: - application/json date: - - Wed, 20 Sep 2023 15:28:49 GMT + - Fri, 28 Jun 2024 20:04:40 GMT server: - Rocket status: @@ -189,19 +229,27 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites?api-version=2023-09-01 response: body: string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites/site1","name":"site1","type":"Microsoft.AVS/privateClouds/hcxEnterpriseSites","properties":{"activationKey":"0276EF1A9A1749A5A362BF73EA9F8D0D","status":"Available"}}]}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '322' content-type: - application/json date: - - Wed, 20 Sep 2023 15:28:54 GMT + - Fri, 28 Jun 2024 20:04:42 GMT server: - Rocket status: @@ -221,19 +269,27 @@ interactions: ParameterSetName: - -g -c -n User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites/myhcx?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites/myhcx?api-version=2023-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites/site1","name":"site1","type":"Microsoft.AVS/privateClouds/hcxEnterpriseSites","properties":{"activationKey":"0276EF1A9A1749A5A362BF73EA9F8D0D","status":"Available"}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '310' content-type: - application/json date: - - Wed, 20 Sep 2023 15:28:59 GMT + - Fri, 28 Jun 2024 20:04:44 GMT server: - Rocket status: @@ -255,17 +311,27 @@ interactions: ParameterSetName: - -g -c -n --yes User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites/myhcx?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites/myhcx?api-version=2023-09-01 response: body: string: '' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '0' + content-type: + - application/json date: - - Wed, 20 Sep 2023 15:29:04 GMT + - Fri, 28 Jun 2024 20:04:46 GMT server: - Rocket status: @@ -285,19 +351,27 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites?api-version=2023-09-01 response: body: string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites/site1","name":"site1","type":"Microsoft.AVS/privateClouds/hcxEnterpriseSites","properties":{"activationKey":"0276EF1A9A1749A5A362BF73EA9F8D0D","status":"Available"}}]}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '322' content-type: - application/json date: - - Wed, 20 Sep 2023 15:29:08 GMT + - Fri, 28 Jun 2024 20:04:49 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_iscsi_path.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_iscsi_path.yaml new file mode 100644 index 00000000000..ce21451fb44 --- /dev/null +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_iscsi_path.yaml @@ -0,0 +1,168 @@ +interactions: +- request: + body: '{"properties": {"networkBlock": "192.168.48.0/22"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware iscsi-path create + Connection: + - keep-alive + Content-Length: + - '51' + Content-Type: + - application/json + ParameterSetName: + - -c -g --network-block + User-Agent: + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) + method: PUT + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.AVS/privateClouds/cloud1/iscsiPaths/default?api-version=2023-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/iscsiPaths/default","name":"default","type":"Microsoft.AVS/privateClouds/iscsiPaths","properties":{"provisioningState":"Succeeded","networkBlock":"192.168.0.0/24"}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' + content-length: + - '290' + content-type: + - application/json + date: + - Fri, 28 Jun 2024 20:04:51 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware iscsi-path list + Connection: + - keep-alive + ParameterSetName: + - -c -g + User-Agent: + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.AVS/privateClouds/cloud1/iscsiPaths?api-version=2023-09-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/iscsiPaths/default","name":"default","type":"Microsoft.AVS/privateClouds/iscsiPaths","properties":{"provisioningState":"Succeeded","networkBlock":"192.168.0.0/24"}}]}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' + content-length: + - '302' + content-type: + - application/json + date: + - Fri, 28 Jun 2024 20:04:54 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware iscsi-path delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -c -g --yes + User-Agent: + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) + method: DELETE + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.AVS/privateClouds/cloud1/iscsiPaths/default?api-version=2023-09-01 + response: + body: + string: '' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' + content-length: + - '0' + content-type: + - application/json + date: + - Fri, 28 Jun 2024 20:04:56 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware iscsi-path show + Connection: + - keep-alive + ParameterSetName: + - -c -g + User-Agent: + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) + method: GET + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.AVS/privateClouds/cloud1/iscsiPaths/default?api-version=2023-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/iscsiPaths/default","name":"default","type":"Microsoft.AVS/privateClouds/iscsiPaths","properties":{"provisioningState":"Succeeded","networkBlock":"192.168.0.0/24"}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' + content-length: + - '290' + content-type: + - application/json + date: + - Fri, 28 Jun 2024 20:04:59 GMT + server: + - Rocket + status: + code: 200 + message: OK +version: 1 diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_placement_policy.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_placement_policy.yaml index 2fd0bf3fa7f..b9c80148b18 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_placement_policy.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_placement_policy.yaml @@ -13,19 +13,27 @@ interactions: ParameterSetName: - --resource-group --private-cloud --cluster-name User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_placement_policy000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_placement_policy000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies?api-version=2023-09-01 response: body: string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy1","name":"policy1","type":"Microsoft.AVS/privateClouds/clusters/placementPolicies","properties":{"type":"VmHost","state":"Enabled","displayName":"policy1","provisioningState":"Succeeded","vmMembers":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/virtualMachines/vm-128","/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/virtualMachines/vm-256"],"hostMembers":["fakehost22.nyc1.kubernetes.center","fakehost23.nyc1.kubernetes.center","fakehost24.nyc1.kubernetes.center"],"affinityType":"AntiAffinity","affinityStrength":"Must","azureHybridBenefitType":"SqlHost"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy2","name":"policy2","type":"Microsoft.AVS/privateClouds/clusters/placementPolicies","properties":{"type":"VmVm","state":"Enabled","displayName":"policy2","provisioningState":"Succeeded","vmMembers":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/virtualMachines/vm-128","/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/virtualMachines/vm-256"],"affinityType":"Affinity"}}]}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '1642' content-type: - application/json date: - - Wed, 20 Sep 2023 15:28:29 GMT + - Fri, 28 Jun 2024 20:04:55 GMT server: - Rocket status: @@ -45,19 +53,27 @@ interactions: ParameterSetName: - --resource-group --private-cloud --cluster-name --placement-policy-name User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_placement_policy000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_placement_policy000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy1?api-version=2023-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy1","name":"policy1","type":"Microsoft.AVS/privateClouds/clusters/placementPolicies","properties":{"type":"VmHost","state":"Enabled","displayName":"policy1","provisioningState":"Succeeded","vmMembers":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/virtualMachines/vm-128","/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/virtualMachines/vm-256"],"hostMembers":["fakehost22.nyc1.kubernetes.center","fakehost23.nyc1.kubernetes.center","fakehost24.nyc1.kubernetes.center"],"affinityType":"AntiAffinity","affinityStrength":"Must","azureHybridBenefitType":"SqlHost"}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '910' content-type: - application/json date: - - Wed, 20 Sep 2023 15:28:34 GMT + - Fri, 28 Jun 2024 20:04:58 GMT server: - Rocket status: @@ -85,19 +101,27 @@ interactions: --display-name --vm-members --host-members --affinity-type --affinity-strength --azure-hybrid-benefit User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_placement_policy000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_placement_policy000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy1?api-version=2023-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy1","name":"policy1","type":"Microsoft.AVS/privateClouds/clusters/placementPolicies","properties":{"type":"VmHost","state":"Enabled","displayName":"policy1","provisioningState":"Succeeded","vmMembers":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/virtualMachines/vm-128","/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/virtualMachines/vm-256"],"hostMembers":["fakehost22.nyc1.kubernetes.center","fakehost23.nyc1.kubernetes.center","fakehost24.nyc1.kubernetes.center"],"affinityType":"AntiAffinity","affinityStrength":"Must","azureHybridBenefitType":"SqlHost"}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '910' content-type: - application/json date: - - Wed, 20 Sep 2023 15:28:40 GMT + - Fri, 28 Jun 2024 20:04:59 GMT server: - Rocket status: @@ -118,19 +142,27 @@ interactions: - --resource-group --private-cloud --cluster-name --placement-policy-name --state --vm-members --host-members --affinity-strength --azure-hybrid-benefit User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_placement_policy000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_placement_policy000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy1?api-version=2023-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy1","name":"policy1","type":"Microsoft.AVS/privateClouds/clusters/placementPolicies","properties":{"type":"VmHost","state":"Enabled","displayName":"policy1","provisioningState":"Succeeded","vmMembers":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/virtualMachines/vm-128","/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/virtualMachines/vm-256"],"hostMembers":["fakehost22.nyc1.kubernetes.center","fakehost23.nyc1.kubernetes.center","fakehost24.nyc1.kubernetes.center"],"affinityType":"AntiAffinity","affinityStrength":"Must","azureHybridBenefitType":"SqlHost"}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '910' content-type: - application/json date: - - Wed, 20 Sep 2023 15:28:44 GMT + - Fri, 28 Jun 2024 20:05:02 GMT server: - Rocket status: @@ -157,19 +189,27 @@ interactions: - --resource-group --private-cloud --cluster-name --placement-policy-name --state --vm-members --host-members --affinity-strength --azure-hybrid-benefit User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_placement_policy000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_placement_policy000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy1?api-version=2023-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy1","name":"policy1","type":"Microsoft.AVS/privateClouds/clusters/placementPolicies","properties":{"type":"VmHost","state":"Enabled","displayName":"policy1","provisioningState":"Succeeded","vmMembers":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/virtualMachines/vm-128","/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/virtualMachines/vm-256"],"hostMembers":["fakehost22.nyc1.kubernetes.center","fakehost23.nyc1.kubernetes.center","fakehost24.nyc1.kubernetes.center"],"affinityType":"AntiAffinity","affinityStrength":"Must","azureHybridBenefitType":"SqlHost"}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '910' content-type: - application/json date: - - Wed, 20 Sep 2023 15:28:44 GMT + - Fri, 28 Jun 2024 20:05:02 GMT server: - Rocket status: @@ -191,17 +231,27 @@ interactions: ParameterSetName: - --resource-group --private-cloud --cluster-name --placement-policy-name --yes User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_placement_policy000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_placement_policy000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy1?api-version=2023-09-01 response: body: string: '' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '0' + content-type: + - application/json date: - - Wed, 20 Sep 2023 15:28:49 GMT + - Fri, 28 Jun 2024 20:05:04 GMT server: - Rocket status: @@ -227,19 +277,27 @@ interactions: - --resource-group --private-cloud --cluster-name --placement-policy-name --state --display-name --vm-members --affinity-type User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_placement_policy000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_placement_policy000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy1?api-version=2023-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy1","name":"policy1","type":"Microsoft.AVS/privateClouds/clusters/placementPolicies","properties":{"type":"VmHost","state":"Enabled","displayName":"policy1","provisioningState":"Succeeded","vmMembers":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/virtualMachines/vm-128","/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/virtualMachines/vm-256"],"hostMembers":["fakehost22.nyc1.kubernetes.center","fakehost23.nyc1.kubernetes.center","fakehost24.nyc1.kubernetes.center"],"affinityType":"AntiAffinity","affinityStrength":"Must","azureHybridBenefitType":"SqlHost"}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '910' content-type: - application/json date: - - Wed, 20 Sep 2023 15:28:54 GMT + - Fri, 28 Jun 2024 20:05:07 GMT server: - Rocket status: @@ -260,19 +318,27 @@ interactions: - --resource-group --private-cloud --cluster-name --placement-policy-name --state --vm-members User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_placement_policy000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_placement_policy000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy1?api-version=2023-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy1","name":"policy1","type":"Microsoft.AVS/privateClouds/clusters/placementPolicies","properties":{"type":"VmHost","state":"Enabled","displayName":"policy1","provisioningState":"Succeeded","vmMembers":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/virtualMachines/vm-128","/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/virtualMachines/vm-256"],"hostMembers":["fakehost22.nyc1.kubernetes.center","fakehost23.nyc1.kubernetes.center","fakehost24.nyc1.kubernetes.center"],"affinityType":"AntiAffinity","affinityStrength":"Must","azureHybridBenefitType":"SqlHost"}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '910' content-type: - application/json date: - - Wed, 20 Sep 2023 15:28:59 GMT + - Fri, 28 Jun 2024 20:05:10 GMT server: - Rocket status: @@ -298,19 +364,27 @@ interactions: - --resource-group --private-cloud --cluster-name --placement-policy-name --state --vm-members User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_placement_policy000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_placement_policy000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy1?api-version=2023-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy1","name":"policy1","type":"Microsoft.AVS/privateClouds/clusters/placementPolicies","properties":{"type":"VmHost","state":"Enabled","displayName":"policy1","provisioningState":"Succeeded","vmMembers":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/virtualMachines/vm-128","/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/virtualMachines/vm-256"],"hostMembers":["fakehost22.nyc1.kubernetes.center","fakehost23.nyc1.kubernetes.center","fakehost24.nyc1.kubernetes.center"],"affinityType":"AntiAffinity","affinityStrength":"Must","azureHybridBenefitType":"SqlHost"}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '910' content-type: - application/json date: - - Wed, 20 Sep 2023 15:28:59 GMT + - Fri, 28 Jun 2024 20:05:10 GMT server: - Rocket status: @@ -332,17 +406,27 @@ interactions: ParameterSetName: - --resource-group --private-cloud --cluster-name --placement-policy-name --yes User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_placement_policy000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_placement_policy000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy1?api-version=2023-09-01 response: body: string: '' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '0' + content-type: + - application/json date: - - Wed, 20 Sep 2023 15:29:05 GMT + - Fri, 28 Jun 2024 20:05:12 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_script.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_script.yaml index ca2dba08882..56034fe132b 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_script.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_script.yaml @@ -13,9 +13,9 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_script000001/providers/Microsoft.AVS/privateClouds/cloud1/scriptPackages?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_script000001/providers/Microsoft.AVS/privateClouds/cloud1/scriptPackages?api-version=2023-09-01 response: body: string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/scriptPackages/Microsoft.AVS.Management@3.0.48","name":"Microsoft.AVS.Management@3.0.48","type":"Microsoft.AVS/privateClouds/scriptPackages","properties":{"description":"Various @@ -23,12 +23,20 @@ interactions: cmdlets by Jetstream for Private Cloud administration","version":"1.0.0","company":"Jetstream Software","uri":"https://www.jetstreamsoft.com/about/support/"}}]}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '908' content-type: - application/json date: - - Wed, 20 Sep 2023 15:28:44 GMT + - Fri, 28 Jun 2024 20:05:09 GMT server: - Rocket status: @@ -48,20 +56,28 @@ interactions: ParameterSetName: - -g -c -n User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_script000001/providers/Microsoft.AVS/privateClouds/cloud1/scriptPackages/Microsoft.AVS.Management%403.0.48?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_script000001/providers/Microsoft.AVS/privateClouds/cloud1/scriptPackages/Microsoft.AVS.Management%403.0.48?api-version=2023-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/scriptPackages/Microsoft.AVS.Management@3.0.48","name":"Microsoft.AVS.Management@3.0.48","type":"Microsoft.AVS/privateClouds/scriptPackages","properties":{"description":"Various cmdlets for elevated access to Private Cloud administrative functions","version":"3.0.48","company":"Microsoft","uri":"https://microsoft.com"}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '447' content-type: - application/json date: - - Wed, 20 Sep 2023 15:28:49 GMT + - Fri, 28 Jun 2024 20:05:10 GMT server: - Rocket status: @@ -81,26 +97,34 @@ interactions: ParameterSetName: - -g -c -p User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_script000001/providers/Microsoft.AVS/privateClouds/cloud1/scriptPackages/Microsoft.AVS.Management%403.0.48/scriptCmdlets?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_script000001/providers/Microsoft.AVS/privateClouds/cloud1/scriptPackages/Microsoft.AVS.Management%403.0.48/scriptCmdlets?api-version=2023-09-01 response: body: string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/scriptPackages/package@1.0.2/scriptCmdlets/Set-AvsStoragePolicy","name":"Set-AvsStoragePolicy","type":"Microsoft.AVS/privateClouds/scriptPackages/scriptCmdlets","properties":{"description":"Allow - user to set the storage policy of the specified VM","timeout":"P0Y0M0DT0H60M0S","parameters":[{"type":"String","name":"VM","description":"VM + user to set the storage policy of the specified VM","timeout":"P0Y0M0DT0H60M0S","audience":"Any","parameters":[{"type":"String","name":"VM","description":"VM to set the storage policy on","visibility":"Visible","optional":"Required"},{"type":"String","name":"StoragePolicyName","description":"Name of the storage policy to set","visibility":"Visible","optional":"Required"}]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/scriptPackages/package@1.0.2/scriptCmdlets/New-ExternalSsoDomain","name":"New-ExternalSsoDomain","type":"Microsoft.AVS/privateClouds/scriptPackages/scriptCmdlets","properties":{"description":"Add - an external Sso domain to their vCenter","timeout":"P0Y0M0DT0H60M0S","parameters":[{"type":"String","name":"DomainName","description":"Domain + an external Sso domain to their vCenter","timeout":"P0Y0M0DT0H60M0S","audience":"Any","parameters":[{"type":"String","name":"DomainName","description":"Domain name of the Server","visibility":"Visible","optional":"Required"},{"type":"String","name":"BaseUserDN","description":"Base User DN of the Server","visibility":"Visible","optional":"Required"},{"type":"SecureString","name":"Password","description":"Password for authenticating to the server","visibility":"Hidden","optional":"Required"}]}}]}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '1496' + - '1530' content-type: - application/json date: - - Wed, 20 Sep 2023 15:28:54 GMT + - Fri, 28 Jun 2024 20:05:12 GMT server: - Rocket status: @@ -120,23 +144,31 @@ interactions: ParameterSetName: - -g -c -p -n User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_script000001/providers/Microsoft.AVS/privateClouds/cloud1/scriptPackages/Microsoft.AVS.Management%403.0.48/scriptCmdlets/New-ExternalSsoDomain?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_script000001/providers/Microsoft.AVS/privateClouds/cloud1/scriptPackages/Microsoft.AVS.Management%403.0.48/scriptCmdlets/New-ExternalSsoDomain?api-version=2023-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages/package@1.0.2/scriptCmdlets/New-ExternalSsoDomain","name":"New-ExternalSsoDomain","type":"Microsoft.AVS/privateClouds/scriptPackages/scriptCmdlets","properties":{"description":"Add - an external Sso domain to their vCenter","timeout":"P0Y0M0DT0H60M0S","parameters":[{"type":"String","name":"DomainName","description":"Domain + an external Sso domain to their vCenter","timeout":"P0Y0M0DT0H60M0S","audience":"Any","parameters":[{"type":"String","name":"DomainName","description":"Domain name of the Server","visibility":"Visible","optional":"Required"},{"type":"String","name":"BaseUserDN","description":"Base User DN of the Server","visibility":"Visible","optional":"Required"},{"type":"SecureString","name":"Password","description":"Password for authenticating to the server","visibility":"Hidden","optional":"Required"}]}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '814' + - '831' content-type: - application/json date: - - Wed, 20 Sep 2023 15:28:59 GMT + - Fri, 28 Jun 2024 20:05:15 GMT server: - Rocket status: @@ -166,21 +198,30 @@ interactions: - --resource-group --private-cloud --name --script-cmdlet-id --timeout --retention --parameter --parameter --hidden-parameter User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_script000001/providers/Microsoft.AVS/privateClouds/cloud1/scriptExecutions/addSsoServer?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_script000001/providers/Microsoft.AVS/privateClouds/cloud1/scriptExecutions/addSsoServer?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/scriptExecutions/addSsoServer","name":"addSsoServer","type":"Microsoft.AVS/privateClouds/scriptExecutions","properties":{"scriptCmdletId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/scriptPackages/AVS.PowerCommands@1.0.0/scriptCmdlets/New-SsoExternalIdentitySource","parameters":[{"name":"DomainName","type":"Value"},{"name":"BaseUserDN","type":"Value"}],"failureReason":"vCenter - failed to connect to the external server","timeout":"P0Y0M0DT0H60M60S","retention":"P0Y0M60DT0H60M60S","submittedAt":null,"startedAt":null,"finishedAt":null,"provisioningState":"Succeeded","output":["IdentitySource: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/scriptExecutions/addSsoServer","name":"addSsoServer","type":"Microsoft.AVS/privateClouds/scriptExecutions","properties":{"scriptCmdletId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/scriptPackages/AVS.PowerCommands@1.0.0/scriptCmdlets/New-SsoExternalIdentitySource","parameters":[{"type":"Value","name":"DomainName","value":"placeholderDomain.local"},{"type":"Value","name":"BaseUserDN","value":"DC=placeholder, + DC=placeholder"}],"failureReason":"vCenter failed to connect to the external + server","timeout":"P0Y0M0DT0H60M60S","retention":"P0Y0M60DT0H60M60S","submittedAt":null,"startedAt":null,"finishedAt":null,"provisioningState":"Succeeded","output":["IdentitySource: placeholder.dc","BaseDN=''dc=placeholder, dc=local"]}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '851' + - '926' content-type: - application/json date: - - Wed, 20 Sep 2023 15:29:04 GMT + - Fri, 28 Jun 2024 20:05:17 GMT server: - Rocket status: @@ -200,20 +241,29 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_script000001/providers/Microsoft.AVS/privateClouds/cloud1/scriptExecutions?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_script000001/providers/Microsoft.AVS/privateClouds/cloud1/scriptExecutions?api-version=2023-09-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/scriptExecutions/addSsoServer","name":"addSsoServer","type":"Microsoft.AVS/privateClouds/scriptExecutions","properties":{"scriptCmdletId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/scriptPackages/AVS:1.0.0/scriptCmdlets/New-SsoExternalIdentitySource","parameters":[{"name":"DomainName","type":"Value"},{"name":"BaseUserDN","type":"Value"}],"failureReason":"vCenter - failed to connect to the external server","timeout":"P0Y0M0DT0H60M60S","retention":"P0Y0M60DT0H60M60S","submittedAt":"2021-03-21T17:31:28Z","startedAt":"2021-03-21T17:32:28Z","finishedAt":"2021-03-21T18:32:28Z","provisioningState":"Failed"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/scriptExecutions/addSsoServer","name":"addSsoServer","type":"Microsoft.AVS/privateClouds/scriptExecutions","properties":{"scriptCmdletId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/scriptPackages/AVS:1.0.0/scriptCmdlets/New-SsoExternalIdentitySource","parameters":[{"type":"Value","name":"DomainName","value":"placeholderDomain.local"},{"type":"Value","name":"BaseUserDN","value":"DC=placeholder, + DC=placeholder"}],"failureReason":"vCenter failed to connect to the external + server","timeout":"P0Y0M0DT0H60M60S","retention":"P0Y0M60DT0H60M60S","submittedAt":"2021-03-21T17:31:28Z","startedAt":"2021-03-21T17:32:28Z","finishedAt":"2021-03-21T18:32:28Z","provisioningState":"Failed"}}]}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '821' + - '896' content-type: - application/json date: - - Wed, 20 Sep 2023 15:29:08 GMT + - Fri, 28 Jun 2024 20:05:20 GMT server: - Rocket status: @@ -233,20 +283,29 @@ interactions: ParameterSetName: - -g -c -n User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_script000001/providers/Microsoft.AVS/privateClouds/cloud1/scriptExecutions/addSsoServer?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_script000001/providers/Microsoft.AVS/privateClouds/cloud1/scriptExecutions/addSsoServer?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/scriptExecutions/addSsoServer","name":"addSsoServer","type":"Microsoft.AVS/privateClouds/scriptExecutions","properties":{"scriptCmdletId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/scriptPackages/AVS.PowerCommands@1.0.0/scriptCmdlets/New-SsoExternalIdentitySource","parameters":[{"name":"DomainName","type":"Value"},{"name":"BaseUserDN","type":"Value"}],"failureReason":"vCenter - failed to connect to the external server","timeout":"P0Y0M0DT0H60M60S","retention":"P0Y0M60DT0H60M60S","submittedAt":"2021-03-21T17:31:28Z","startedAt":"2021-03-21T17:32:28Z","finishedAt":"2021-03-21T18:32:28Z","provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/scriptExecutions/addSsoServer","name":"addSsoServer","type":"Microsoft.AVS/privateClouds/scriptExecutions","properties":{"scriptCmdletId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/scriptPackages/AVS.PowerCommands@1.0.0/scriptCmdlets/New-SsoExternalIdentitySource","parameters":[{"type":"Value","name":"DomainName","value":"placeholderDomain.local"},{"type":"Value","name":"BaseUserDN","value":"DC=placeholder, + DC=placeholder"}],"failureReason":"vCenter failed to connect to the external + server","timeout":"P0Y0M0DT0H60M60S","retention":"P0Y0M60DT0H60M60S","submittedAt":"2021-03-21T17:31:28Z","startedAt":"2021-03-21T17:32:28Z","finishedAt":"2021-03-21T18:32:28Z","provisioningState":"Succeeded"}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '826' + - '901' content-type: - application/json date: - - Wed, 20 Sep 2023 15:29:13 GMT + - Fri, 28 Jun 2024 20:05:22 GMT server: - Rocket status: @@ -268,17 +327,27 @@ interactions: ParameterSetName: - -g -c -n --yes User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_script000001/providers/Microsoft.AVS/privateClouds/cloud1/scriptExecutions/addSsoServer?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_script000001/providers/Microsoft.AVS/privateClouds/cloud1/scriptExecutions/addSsoServer?api-version=2023-09-01 response: body: string: '' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '0' + content-type: + - application/json date: - - Wed, 20 Sep 2023 15:29:18 GMT + - Fri, 28 Jun 2024 20:05:24 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_virtual_machines.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_virtual_machines.yaml index bafdffdc05f..9ef7de9f555 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_virtual_machines.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_virtual_machines.yaml @@ -13,19 +13,27 @@ interactions: ParameterSetName: - --resource-group --private-cloud --cluster-name User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_virtual_machines000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/virtualMachines?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_virtual_machines000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/virtualMachines?api-version=2023-09-01 response: body: string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/virtualMachines/vm-209","name":"vm-209","type":"Microsoft.AVS/privateClouds/clusters/virtualMachines","properties":{"displayName":"contoso-vm1","moRefId":"vm-209","folderPath":"vm/folder-1","restrictMovement":"Disabled"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/virtualMachines/vm-128","name":"vm-128","type":"Microsoft.AVS/privateClouds/clusters/virtualMachines","properties":{"displayName":"contoso-vm2","moRefId":"vm-128","folderPath":"vm","restrictMovement":"Enabled"}}]}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '733' content-type: - application/json date: - - Wed, 20 Sep 2023 15:29:19 GMT + - Fri, 28 Jun 2024 20:05:06 GMT server: - Rocket status: @@ -45,19 +53,27 @@ interactions: ParameterSetName: - --resource-group --private-cloud --cluster-name --virtual-machine User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_virtual_machines000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/virtualMachines/vm-209?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_virtual_machines000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/virtualMachines/vm-209?api-version=2023-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/virtualMachines/vm-209","name":"vm-209","type":"Microsoft.AVS/privateClouds/clusters/virtualMachines","properties":{"displayName":"contoso-vm","moRefId":"vm-209","folderPath":"vm/folder-1","restrictMovement":"Disabled"}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '364' content-type: - application/json date: - - Wed, 20 Sep 2023 15:29:23 GMT + - Fri, 28 Jun 2024 20:05:07 GMT server: - Rocket status: @@ -81,17 +97,27 @@ interactions: ParameterSetName: - --resource-group --private-cloud --cluster-name --virtual-machine --restrict-movement User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: POST - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_virtual_machines000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/virtualMachines/vm-209/restrictMovement?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_virtual_machines000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/virtualMachines/vm-209/restrictMovement?api-version=2023-09-01 response: body: string: '' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '0' + content-type: + - application/json date: - - Wed, 20 Sep 2023 15:29:29 GMT + - Fri, 28 Jun 2024 20:05:10 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_vr_addon.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_vr_addon.yaml index e59ced7a775..62e6024da1c 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_vr_addon.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_vr_addon.yaml @@ -17,19 +17,27 @@ interactions: ParameterSetName: - -g -c --vrs-count User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmwarepc/providers/Microsoft.AVS/privateClouds/cloud1/addons/vr?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmwarepc/providers/Microsoft.AVS/privateClouds/cloud1/addons/vr?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/srm","name":"srm","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"SRM","provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/arc","name":"arc","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"Arc","provisioningState":"Succeeded","vCenter":"subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg_test/providers/Microsoft.ConnectedVMwarevSphere/VCenters/test-vcenter"}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '260' + - '411' content-type: - application/json date: - - Wed, 20 Sep 2023 15:27:54 GMT + - Fri, 28 Jun 2024 20:05:24 GMT server: - Rocket status: @@ -49,19 +57,27 @@ interactions: ParameterSetName: - -g -c --vrs-count User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmwarepc/providers/Microsoft.AVS/privateClouds/cloud1/addons/vr?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmwarepc/providers/Microsoft.AVS/privateClouds/cloud1/addons/vr?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/srm","name":"srm","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"SRM","provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/arc","name":"arc","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"Arc","provisioningState":"Succeeded","vCenter":"subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg_test/providers/Microsoft.ConnectedVMwarevSphere/VCenters/test-vcenter"}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '260' + - '411' content-type: - application/json date: - - Wed, 20 Sep 2023 15:27:59 GMT + - Fri, 28 Jun 2024 20:05:27 GMT server: - Rocket status: @@ -85,19 +101,27 @@ interactions: ParameterSetName: - -g -c --vrs-count User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmwarepc/providers/Microsoft.AVS/privateClouds/cloud1/addons/vr?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmwarepc/providers/Microsoft.AVS/privateClouds/cloud1/addons/vr?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/srm","name":"srm","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"SRM","provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/arc","name":"arc","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"Arc","provisioningState":"Succeeded","vCenter":"subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg_test/providers/Microsoft.ConnectedVMwarevSphere/VCenters/test-vcenter"}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '260' + - '411' content-type: - application/json date: - - Wed, 20 Sep 2023 15:27:59 GMT + - Fri, 28 Jun 2024 20:05:27 GMT server: - Rocket status: @@ -117,19 +141,27 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmwarepc/providers/Microsoft.AVS/privateClouds/cloud1/addons?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmwarepc/providers/Microsoft.AVS/privateClouds/cloud1/addons?api-version=2023-09-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/srm","name":"srm","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"SRM","provisioningState":"Succeeded"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/srm","name":"srm","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"SRM","provisioningState":"Succeeded","licenseKey":"41915178-A8FF-4A4D-B683-6D735AF5E3F5"}}]}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '272' + - '324' content-type: - application/json date: - - Wed, 20 Sep 2023 15:28:04 GMT + - Fri, 28 Jun 2024 20:05:30 GMT server: - Rocket status: @@ -149,19 +181,27 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmwarepc/providers/Microsoft.AVS/privateClouds/cloud1/addons/vr?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmwarepc/providers/Microsoft.AVS/privateClouds/cloud1/addons/vr?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/srm","name":"srm","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"SRM","provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/arc","name":"arc","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"Arc","provisioningState":"Succeeded","vCenter":"subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg_test/providers/Microsoft.ConnectedVMwarevSphere/VCenters/test-vcenter"}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '260' + - '411' content-type: - application/json date: - - Wed, 20 Sep 2023 15:28:09 GMT + - Fri, 28 Jun 2024 20:05:32 GMT server: - Rocket status: @@ -183,17 +223,27 @@ interactions: ParameterSetName: - -g -c --yes User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmwarepc/providers/Microsoft.AVS/privateClouds/cloud1/addons/vr?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmwarepc/providers/Microsoft.AVS/privateClouds/cloud1/addons/vr?api-version=2023-09-01 response: body: string: '' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '0' + content-type: + - application/json date: - - Wed, 20 Sep 2023 15:28:14 GMT + - Fri, 28 Jun 2024 20:05:34 GMT server: - Rocket status: @@ -213,19 +263,27 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmwarepc/providers/Microsoft.AVS/privateClouds/cloud1/addons?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmwarepc/providers/Microsoft.AVS/privateClouds/cloud1/addons?api-version=2023-09-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/srm","name":"srm","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"SRM","provisioningState":"Succeeded"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/srm","name":"srm","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"SRM","provisioningState":"Succeeded","licenseKey":"41915178-A8FF-4A4D-B683-6D735AF5E3F5"}}]}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '272' + - '324' content-type: - application/json date: - - Wed, 20 Sep 2023 15:28:19 GMT + - Fri, 28 Jun 2024 20:05:36 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml index 86fbdaa5f79..ce9d4f82d60 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml @@ -13,19 +13,27 @@ interactions: ParameterSetName: - --resource-group --private-cloud User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations?api-version=2023-09-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":1}}]}' - headers: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":1,"serverAddress":"40.1.5.1/24","leaseTime":86400}}]}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '410' + - '458' content-type: - application/json date: - - Wed, 20 Sep 2023 15:29:35 GMT + - Fri, 28 Jun 2024 20:05:17 GMT server: - Rocket status: @@ -45,19 +53,27 @@ interactions: ParameterSetName: - --resource-group --private-cloud --dhcp User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":1}}' - headers: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":1,"serverAddress":"40.1.5.1/24","leaseTime":86400}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '398' + - '446' content-type: - application/json date: - - Wed, 20 Sep 2023 15:29:39 GMT + - Fri, 28 Jun 2024 20:05:20 GMT server: - Rocket status: @@ -82,19 +98,27 @@ interactions: ParameterSetName: - --resource-group --private-cloud --dhcp --display-name --revision --server-addresses User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":1}}' - headers: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":1,"serverAddress":"40.1.5.1/24","leaseTime":86400}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '398' + - '446' content-type: - application/json date: - - Wed, 20 Sep 2023 15:29:44 GMT + - Fri, 28 Jun 2024 20:05:22 GMT server: - Rocket status: @@ -116,17 +140,27 @@ interactions: ParameterSetName: - --resource-group --private-cloud --dhcp --yes User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2023-09-01 response: body: string: '' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '0' + content-type: + - application/json date: - - Wed, 20 Sep 2023 15:29:50 GMT + - Fri, 28 Jun 2024 20:05:24 GMT server: - Rocket status: @@ -146,19 +180,27 @@ interactions: ParameterSetName: - --resource-group --private-cloud --dhcp --display-name --revision --server-addresses User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":1}}' - headers: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":1,"serverAddress":"40.1.5.1/24","leaseTime":86400}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '398' + - '446' content-type: - application/json date: - - Wed, 20 Sep 2023 15:29:55 GMT + - Fri, 28 Jun 2024 20:05:27 GMT server: - Rocket status: @@ -183,19 +225,27 @@ interactions: ParameterSetName: - --resource-group --private-cloud --dhcp --display-name --revision --server-addresses User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":1}}' - headers: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":1,"serverAddress":"40.1.5.1/24","leaseTime":86400}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '398' + - '446' content-type: - application/json date: - - Wed, 20 Sep 2023 15:29:55 GMT + - Fri, 28 Jun 2024 20:05:27 GMT server: - Rocket status: @@ -221,19 +271,27 @@ interactions: - --resource-group --private-cloud --dhcp --display-name --revision --server-address --lease-time User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":1}}' - headers: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":1,"serverAddress":"40.1.5.1/24","leaseTime":86400}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '398' + - '446' content-type: - application/json date: - - Wed, 20 Sep 2023 15:30:00 GMT + - Fri, 28 Jun 2024 20:05:30 GMT server: - Rocket status: @@ -255,17 +313,27 @@ interactions: ParameterSetName: - --resource-group --private-cloud --dhcp --yes User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2023-09-01 response: body: string: '' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '0' + content-type: + - application/json date: - - Wed, 20 Sep 2023 15:30:05 GMT + - Fri, 28 Jun 2024 20:05:32 GMT server: - Rocket status: @@ -286,19 +354,27 @@ interactions: - --resource-group --private-cloud --dhcp --display-name --revision --server-address --lease-time User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":1}}' - headers: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":1,"serverAddress":"40.1.5.1/24","leaseTime":86400}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '398' + - '446' content-type: - application/json date: - - Wed, 20 Sep 2023 15:30:10 GMT + - Fri, 28 Jun 2024 20:05:35 GMT server: - Rocket status: @@ -324,19 +400,27 @@ interactions: - --resource-group --private-cloud --dhcp --display-name --revision --server-address --lease-time User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2023-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":1}}' - headers: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":1,"serverAddress":"40.1.5.1/24","leaseTime":86400}}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - - '398' + - '446' content-type: - application/json date: - - Wed, 20 Sep 2023 15:30:10 GMT + - Fri, 28 Jun 2024 20:05:35 GMT server: - Rocket status: @@ -356,19 +440,27 @@ interactions: ParameterSetName: - --resource-group --private-cloud User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices?api-version=2023-09-01 response: body: string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsServices","properties":{"displayName":"dnsService1","dnsServiceIp":"5.5.5.5","defaultDnsZone":"defaultDnsZone1","fqdnZones":["fqdnZone1"],"logLevel":"INFO","status":"SUCCESS","revision":1}}]}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '457' content-type: - application/json date: - - Wed, 20 Sep 2023 15:30:15 GMT + - Fri, 28 Jun 2024 20:05:38 GMT server: - Rocket status: @@ -388,19 +480,27 @@ interactions: ParameterSetName: - --resource-group --private-cloud --dns-service User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2023-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsServices","properties":{"displayName":"dnsService1","dnsServiceIp":"5.5.5.5","defaultDnsZone":"defaultDnsZone1","fqdnZones":["fqdnZone1"],"logLevel":"INFO","status":"SUCCESS","revision":1}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '445' content-type: - application/json date: - - Wed, 20 Sep 2023 15:30:19 GMT + - Fri, 28 Jun 2024 20:05:40 GMT server: - Rocket status: @@ -427,19 +527,27 @@ interactions: - --resource-group --private-cloud --dns-service --display-name --dns-service-ip --default-dns-zone --fqdn-zones --log-level --revision User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2023-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1","name":"dnsService1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsServices","properties":{"displayName":"dnsService1","dnsServiceIp":"5.5.5.5","defaultDnsZone":"defaultDnsZone1","fqdnZones":["fqdnZone1"],"logLevel":"INFO","status":"SUCCESS","revision":1}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '442' content-type: - application/json date: - - Wed, 20 Sep 2023 15:30:24 GMT + - Fri, 28 Jun 2024 20:05:42 GMT server: - Rocket status: @@ -460,19 +568,27 @@ interactions: - --resource-group --private-cloud --dns-service --display-name --dns-service-ip --default-dns-zone --fqdn-zones --log-level --revision User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2023-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsServices","properties":{"displayName":"dnsService1","dnsServiceIp":"5.5.5.5","defaultDnsZone":"defaultDnsZone1","fqdnZones":["fqdnZone1"],"logLevel":"INFO","status":"SUCCESS","revision":1}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '445' content-type: - application/json date: - - Wed, 20 Sep 2023 15:30:29 GMT + - Fri, 28 Jun 2024 20:05:44 GMT server: - Rocket status: @@ -481,7 +597,7 @@ interactions: - request: body: '{"properties": {"defaultDnsZone": "defaultDnsZone1", "displayName": "testDisplayName", "dnsServiceIp": "5.5.5.5", "fqdnZones": ["fqdnZone1"], "logLevel": "INFO", "revision": - 1}}' + 1, "status": "SUCCESS"}}' headers: Accept: - application/json @@ -492,26 +608,34 @@ interactions: Connection: - keep-alive Content-Length: - - '177' + - '198' Content-Type: - application/json ParameterSetName: - --resource-group --private-cloud --dns-service --display-name --dns-service-ip --default-dns-zone --fqdn-zones --log-level --revision User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2023-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1","name":"dnsService1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsServices","properties":{"displayName":"dnsService1","dnsServiceIp":"5.5.5.5","defaultDnsZone":"defaultDnsZone1","fqdnZones":["fqdnZone1"],"logLevel":"INFO","status":"SUCCESS","revision":1}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '442' content-type: - application/json date: - - Wed, 20 Sep 2023 15:30:29 GMT + - Fri, 28 Jun 2024 20:05:44 GMT server: - Rocket status: @@ -533,17 +657,27 @@ interactions: ParameterSetName: - --resource-group --private-cloud --dns-service --yes User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2023-09-01 response: body: string: '' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '0' + content-type: + - application/json date: - - Wed, 20 Sep 2023 15:30:34 GMT + - Fri, 28 Jun 2024 20:05:47 GMT server: - Rocket status: @@ -563,19 +697,27 @@ interactions: ParameterSetName: - --resource-group --private-cloud User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones?api-version=2023-09-01 response: body: string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones","properties":{"displayName":"dnsZone1","dnsServerIps":["1.1.1.1"],"sourceIp":"8.8.8.8","dnsServices":0,"revision":1}}]}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '386' content-type: - application/json date: - - Wed, 20 Sep 2023 15:30:39 GMT + - Fri, 28 Jun 2024 20:05:50 GMT server: - Rocket status: @@ -595,19 +737,27 @@ interactions: ParameterSetName: - --resource-group --private-cloud --dns-zone User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2023-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones","properties":{"displayName":"dnsZone1","dnsServerIps":["1.1.1.1"],"sourceIp":"8.8.8.8","dnsServices":0,"revision":1}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '374' content-type: - application/json date: - - Wed, 20 Sep 2023 15:30:44 GMT + - Fri, 28 Jun 2024 20:05:53 GMT server: - Rocket status: @@ -633,19 +783,27 @@ interactions: - --resource-group --private-cloud --dns-zone --display-name --domain --dns-server-ips --source-ip --dns-services --revision User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2023-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1","name":"dnsZone1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones","properties":{"displayName":"dnsZone1","dnsServerIps":["1.1.1.1"],"sourceIp":"8.8.8.8","dnsServices":0,"revision":1}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '368' content-type: - application/json date: - - Wed, 20 Sep 2023 15:30:48 GMT + - Fri, 28 Jun 2024 20:05:55 GMT server: - Rocket status: @@ -666,19 +824,27 @@ interactions: - --resource-group --private-cloud --dns-zone --display-name --domain --dns-server-ips --source-ip --dns-services --revision User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2023-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones","properties":{"displayName":"dnsZone1","dnsServerIps":["1.1.1.1"],"sourceIp":"8.8.8.8","dnsServices":0,"revision":1}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '374' content-type: - application/json date: - - Wed, 20 Sep 2023 15:30:53 GMT + - Fri, 28 Jun 2024 20:05:57 GMT server: - Rocket status: @@ -704,19 +870,27 @@ interactions: - --resource-group --private-cloud --dns-zone --display-name --domain --dns-server-ips --source-ip --dns-services --revision User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2023-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1","name":"dnsZone1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones","properties":{"displayName":"dnsZone1","dnsServerIps":["1.1.1.1"],"sourceIp":"8.8.8.8","dnsServices":0,"revision":1}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '368' content-type: - application/json date: - - Wed, 20 Sep 2023 15:30:53 GMT + - Fri, 28 Jun 2024 20:05:57 GMT server: - Rocket status: @@ -738,17 +912,27 @@ interactions: ParameterSetName: - --resource-group --private-cloud --dns-zone --yes User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2023-09-01 response: body: string: '' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '0' + content-type: + - application/json date: - - Wed, 20 Sep 2023 15:30:58 GMT + - Fri, 28 Jun 2024 20:06:00 GMT server: - Rocket status: @@ -768,19 +952,27 @@ interactions: ParameterSetName: - --resource-group --private-cloud User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles?api-version=2023-09-01 response: body: string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1","name":"cloud1","type":"Microsoft.AVS/privateClouds/workloadNetworks/portMirroringProfiles","properties":{"displayName":"portMirroring1","direction":"BIDIRECTIONAL","source":"vmGroup1","destination":"vmGroup2","status":"SUCCESS","revision":1}}]}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '444' content-type: - application/json date: - - Wed, 20 Sep 2023 15:31:03 GMT + - Fri, 28 Jun 2024 20:06:02 GMT server: - Rocket status: @@ -800,19 +992,27 @@ interactions: ParameterSetName: - --resource-group --private-cloud --port-mirroring User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1?api-version=2023-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/portMirroringProfiles","properties":{"displayName":"portMirroring1","direction":"BIDIRECTIONAL","source":"vmGroup1","destination":"vmGroup2","status":"SUCCESS","revision":1}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '440' content-type: - application/json date: - - Wed, 20 Sep 2023 15:31:08 GMT + - Fri, 28 Jun 2024 20:06:05 GMT server: - Rocket status: @@ -838,19 +1038,27 @@ interactions: - --resource-group --private-cloud --port-mirroring --display-name --direction --source --destination --revision User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1?api-version=2023-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/portMirroringProfiles","properties":{"displayName":"portMirroring1","direction":"BIDIRECTIONAL","source":"vmGroup1","destination":"vmGroup2","status":"SUCCESS","revision":1}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '440' content-type: - application/json date: - - Wed, 20 Sep 2023 15:31:13 GMT + - Fri, 28 Jun 2024 20:06:08 GMT server: - Rocket status: @@ -871,19 +1079,27 @@ interactions: - --resource-group --private-cloud --port-mirroring --display-name --direction --source --destination --revision User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1?api-version=2023-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/portMirroringProfiles","properties":{"displayName":"portMirroring1","direction":"BIDIRECTIONAL","source":"vmGroup1","destination":"vmGroup2","status":"SUCCESS","revision":1}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '440' content-type: - application/json date: - - Wed, 20 Sep 2023 15:31:18 GMT + - Fri, 28 Jun 2024 20:06:10 GMT server: - Rocket status: @@ -891,7 +1107,8 @@ interactions: message: OK - request: body: '{"properties": {"destination": "vmGroup2", "direction": "BIDIRECTIONAL", - "displayName": "testDisplayName", "revision": 1, "source": "vmGroup1"}}' + "displayName": "testDisplayName", "revision": 1, "source": "vmGroup1", "status": + "SUCCESS"}}' headers: Accept: - application/json @@ -902,26 +1119,34 @@ interactions: Connection: - keep-alive Content-Length: - - '144' + - '165' Content-Type: - application/json ParameterSetName: - --resource-group --private-cloud --port-mirroring --display-name --direction --source --destination --revision User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1?api-version=2023-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/portMirroringProfiles","properties":{"displayName":"portMirroring1","direction":"BIDIRECTIONAL","source":"vmGroup1","destination":"vmGroup2","status":"SUCCESS","revision":1}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '440' content-type: - application/json date: - - Wed, 20 Sep 2023 15:31:18 GMT + - Fri, 28 Jun 2024 20:06:10 GMT server: - Rocket status: @@ -943,17 +1168,27 @@ interactions: ParameterSetName: - --resource-group --private-cloud --port-mirroring --yes User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1?api-version=2023-09-01 response: body: string: '' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '0' + content-type: + - application/json date: - - Wed, 20 Sep 2023 15:31:22 GMT + - Fri, 28 Jun 2024 20:06:13 GMT server: - Rocket status: @@ -973,19 +1208,27 @@ interactions: ParameterSetName: - --resource-group --private-cloud User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments?api-version=2023-09-01 response: body: string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1","name":"segment1","type":"Microsoft.AVS/privateClouds/workloadNetworks/segments","properties":{"displayName":"segment1","connectedGateway":"/infra/tier-1s/gateway","subnet":{"dhcpRanges":["40.20.0.0-40.20.0.1"],"gatewayAddress":"40.20.20.20/16"},"portVif":[{"portName":"vm1"}],"status":"SUCCESS","revision":1}}]}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '492' content-type: - application/json date: - - Wed, 20 Sep 2023 15:31:27 GMT + - Fri, 28 Jun 2024 20:06:15 GMT server: - Rocket status: @@ -1005,19 +1248,27 @@ interactions: ParameterSetName: - --resource-group --private-cloud --segment User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1?api-version=2023-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1","name":"segment1","type":"Microsoft.AVS/privateClouds/workloadNetworks/segments","properties":{"displayName":"segment1","connectedGateway":"/infra/tier-1s/gateway","subnet":{"dhcpRanges":["40.20.0.0-40.20.0.1"],"gatewayAddress":"40.20.20.20/16"},"portVif":[{"portName":"vm1"}],"status":"SUCCESS","revision":1}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '480' content-type: - application/json date: - - Wed, 20 Sep 2023 15:31:32 GMT + - Fri, 28 Jun 2024 20:06:18 GMT server: - Rocket status: @@ -1044,19 +1295,27 @@ interactions: - --resource-group --private-cloud --segment --display-name --connected-gateway --revision --dhcp-ranges --gateway-address User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1?api-version=2023-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1","name":"segment1","type":"Microsoft.AVS/privateClouds/workloadNetworks/segments","properties":{"displayName":"segment1","connectedGateway":"/infra/tier-1s/gateway","subnet":{"dhcpRanges":["40.20.0.0-40.20.0.1"],"gatewayAddress":"40.20.20.20/16"},"status":"SUCCESS","revision":1}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '449' content-type: - application/json date: - - Wed, 20 Sep 2023 15:31:37 GMT + - Fri, 28 Jun 2024 20:06:20 GMT server: - Rocket status: @@ -1077,19 +1336,27 @@ interactions: - --resource-group --private-cloud --segment --display-name --connected-gateway --revision --dhcp-ranges --gateway-address User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1?api-version=2023-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1","name":"segment1","type":"Microsoft.AVS/privateClouds/workloadNetworks/segments","properties":{"displayName":"segment1","connectedGateway":"/infra/tier-1s/gateway","subnet":{"dhcpRanges":["40.20.0.0-40.20.0.1"],"gatewayAddress":"40.20.20.20/16"},"portVif":[{"portName":"vm1"}],"status":"SUCCESS","revision":1}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '480' content-type: - application/json date: - - Wed, 20 Sep 2023 15:31:42 GMT + - Fri, 28 Jun 2024 20:06:23 GMT server: - Rocket status: @@ -1097,8 +1364,8 @@ interactions: message: OK - request: body: '{"properties": {"connectedGateway": "/infra/tier-1s/gateway", "displayName": - "testDisplayName", "revision": 1, "subnet": {"dhcpRanges": ["40.20.0.0", "40.20.0.1"], - "gatewayAddress": "40.20.20.20/16"}}}' + "testDisplayName", "revision": 1, "status": "SUCCESS", "subnet": {"dhcpRanges": + ["40.20.0.0", "40.20.0.1"], "gatewayAddress": "40.20.20.20/16"}}}' headers: Accept: - application/json @@ -1109,26 +1376,34 @@ interactions: Connection: - keep-alive Content-Length: - - '201' + - '222' Content-Type: - application/json ParameterSetName: - --resource-group --private-cloud --segment --display-name --connected-gateway --revision --dhcp-ranges --gateway-address User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1?api-version=2023-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1","name":"segment1","type":"Microsoft.AVS/privateClouds/workloadNetworks/segments","properties":{"displayName":"segment1","connectedGateway":"/infra/tier-1s/gateway","subnet":{"dhcpRanges":["40.20.0.0-40.20.0.1"],"gatewayAddress":"40.20.20.20/16"},"status":"SUCCESS","revision":1}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '449' content-type: - application/json date: - - Wed, 20 Sep 2023 15:31:42 GMT + - Fri, 28 Jun 2024 20:06:23 GMT server: - Rocket status: @@ -1150,17 +1425,27 @@ interactions: ParameterSetName: - --resource-group --private-cloud --segment --yes User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1?api-version=2023-09-01 response: body: string: '' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '0' + content-type: + - application/json date: - - Wed, 20 Sep 2023 15:31:47 GMT + - Fri, 28 Jun 2024 20:06:25 GMT server: - Rocket status: @@ -1180,19 +1465,27 @@ interactions: ParameterSetName: - --resource-group --private-cloud User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs?api-version=2023-09-01 response: body: string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1","name":"publicIP1","type":"Microsoft.AVS/privateClouds/workloadNetworks/publicIPs","properties":{"displayName":"publicIP1","publicIPBlock":"20.20.40.50/32"}}]}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '341' content-type: - application/json date: - - Wed, 20 Sep 2023 15:31:52 GMT + - Fri, 28 Jun 2024 20:06:28 GMT server: - Rocket status: @@ -1212,19 +1505,27 @@ interactions: ParameterSetName: - --resource-group --private-cloud --public-ip User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1?api-version=2023-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1","name":"publicIP1","type":"Microsoft.AVS/privateClouds/workloadNetworks/publicIPs","properties":{"displayName":"publicIP1","publicIPBlock":"20.20.40.50/32"}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '329' content-type: - application/json date: - - Wed, 20 Sep 2023 15:31:57 GMT + - Fri, 28 Jun 2024 20:06:30 GMT server: - Rocket status: @@ -1249,19 +1550,27 @@ interactions: ParameterSetName: - --resource-group --private-cloud --public-ip --display-name --number-of-public-ips User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1?api-version=2023-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1","name":"publicIP1","type":"Microsoft.AVS/privateClouds/workloadNetworks/publicIPs","properties":{"displayName":"publicIP1","publicIPBlock":"20.20.40.50/32"}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '329' content-type: - application/json date: - - Wed, 20 Sep 2023 15:32:02 GMT + - Fri, 28 Jun 2024 20:06:33 GMT server: - Rocket status: @@ -1283,17 +1592,27 @@ interactions: ParameterSetName: - --resource-group --private-cloud --public-ip --yes User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1?api-version=2023-09-01 response: body: string: '' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '0' + content-type: + - application/json date: - - Wed, 20 Sep 2023 15:32:07 GMT + - Fri, 28 Jun 2024 20:06:35 GMT server: - Rocket status: @@ -1313,19 +1632,27 @@ interactions: ParameterSetName: - --resource-group --private-cloud User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups?api-version=2023-09-01 response: body: string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1","name":"cloud1","type":"Microsoft.AVS/privateClouds/workloadNetworks/vmGroups","properties":{"displayName":"vmGroup1","members":["564d43da-fefc-2a3b-1d92-42855622fa50"],"status":"SUCCESS","revision":1}}]}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '384' content-type: - application/json date: - - Wed, 20 Sep 2023 15:32:12 GMT + - Fri, 28 Jun 2024 20:06:38 GMT server: - Rocket status: @@ -1345,19 +1672,27 @@ interactions: ParameterSetName: - --resource-group --private-cloud --vm-group User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2023-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1","name":"cloud1","type":"Microsoft.AVS/privateClouds/workloadNetworks/vmGroups","properties":{"displayName":"vmGroup1","members":["564d43da-fefc-2a3b-1d92-42855622fa50"],"status":"SUCCESS","revision":1}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '372' content-type: - application/json date: - - Wed, 20 Sep 2023 15:32:17 GMT + - Fri, 28 Jun 2024 20:06:40 GMT server: - Rocket status: @@ -1382,19 +1717,27 @@ interactions: ParameterSetName: - --resource-group --private-cloud --vm-group --display-name --members --revision User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2023-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1","name":"vmGroup1","type":"Microsoft.AVS/privateClouds/workloadNetworks/vmGroups","properties":{"displayName":"vmGroup1","members":["564d43da-fefc-2a3b-1d92-42855622fa50"],"status":"SUCCESS","revision":1}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '374' content-type: - application/json date: - - Wed, 20 Sep 2023 15:32:22 GMT + - Fri, 28 Jun 2024 20:06:42 GMT server: - Rocket status: @@ -1414,19 +1757,27 @@ interactions: ParameterSetName: - --resource-group --private-cloud --vm-group --display-name --members --revision User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2023-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1","name":"cloud1","type":"Microsoft.AVS/privateClouds/workloadNetworks/vmGroups","properties":{"displayName":"vmGroup1","members":["564d43da-fefc-2a3b-1d92-42855622fa50"],"status":"SUCCESS","revision":1}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '372' content-type: - application/json date: - - Wed, 20 Sep 2023 15:32:27 GMT + - Fri, 28 Jun 2024 20:06:44 GMT server: - Rocket status: @@ -1434,7 +1785,7 @@ interactions: message: OK - request: body: '{"properties": {"displayName": "testDisplayName", "members": ["564d43da-fefc-2a3b-1d92-42855622fa50"], - "revision": 1}}' + "revision": 1, "status": "SUCCESS"}}' headers: Accept: - application/json @@ -1445,25 +1796,33 @@ interactions: Connection: - keep-alive Content-Length: - - '118' + - '139' Content-Type: - application/json ParameterSetName: - --resource-group --private-cloud --vm-group --display-name --members --revision User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2023-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1","name":"vmGroup1","type":"Microsoft.AVS/privateClouds/workloadNetworks/vmGroups","properties":{"displayName":"vmGroup1","members":["564d43da-fefc-2a3b-1d92-42855622fa50"],"status":"SUCCESS","revision":1}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '374' content-type: - application/json date: - - Wed, 20 Sep 2023 15:32:27 GMT + - Fri, 28 Jun 2024 20:06:45 GMT server: - Rocket status: @@ -1485,17 +1844,27 @@ interactions: ParameterSetName: - --resource-group --private-cloud --vm-group --yes User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2023-09-01 response: body: string: '' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '0' + content-type: + - application/json date: - - Wed, 20 Sep 2023 15:32:32 GMT + - Fri, 28 Jun 2024 20:06:48 GMT server: - Rocket status: @@ -1515,19 +1884,27 @@ interactions: ParameterSetName: - --resource-group --private-cloud User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/virtualMachines?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/virtualMachines?api-version=2023-09-01 response: body: string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/virtualMachines/vm1","name":"vm1","type":"Microsoft.AVS/privateClouds/workloadNetworks/virtualMachines","properties":{"displayName":"vm1","vmType":"REGULAR"}}]}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '321' content-type: - application/json date: - - Wed, 20 Sep 2023 15:32:37 GMT + - Fri, 28 Jun 2024 20:06:50 GMT server: - Rocket status: @@ -1547,19 +1924,27 @@ interactions: ParameterSetName: - --resource-group --private-cloud --virtual-machine User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/virtualMachines/vm1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/virtualMachines/vm1?api-version=2023-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/virtualMachines/vm1","name":"vm1","type":"Microsoft.AVS/privateClouds/workloadNetworks/virtualMachines","properties":{"displayName":"vm1","vmType":"REGULAR"}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '309' content-type: - application/json date: - - Wed, 20 Sep 2023 15:32:42 GMT + - Fri, 28 Jun 2024 20:06:53 GMT server: - Rocket status: @@ -1579,19 +1964,27 @@ interactions: ParameterSetName: - --resource-group --private-cloud User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/gateways?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/gateways?api-version=2023-09-01 response: body: string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/gateways/gateway1","name":"gateway1","type":"Microsoft.AVS/privateClouds/workloadNetworks/segments","properties":{"displayName":"gateway1","path":"/infra/tier-1s/gateway1"}}]}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '336' content-type: - application/json date: - - Wed, 20 Sep 2023 15:32:47 GMT + - Fri, 28 Jun 2024 20:06:55 GMT server: - Rocket status: @@ -1611,19 +2004,27 @@ interactions: ParameterSetName: - --resource-group --private-cloud --gateway User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.29.3 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/gateways/gateway1?api-version=2023-03-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/gateways/gateway1?api-version=2023-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/gateways/gateway1","name":"gateway1","type":"Microsoft.AVS/privateClouds/workloadNetworks/gateways","properties":{"displayName":"gateway1","path":"/infra/tier-1s/gateway1"}}' headers: + access-control-allow-credentials: + - 'true' + access-control-allow-headers: + - '*' + access-control-allow-methods: + - PUT, GET, HEAD, POST, DELETE, PATCH, OPTIONS + access-control-allow-origin: + - '*' content-length: - '324' content-type: - application/json date: - - Wed, 20 Sep 2023 15:32:51 GMT + - Fri, 28 Jun 2024 20:06:57 GMT server: - Rocket status: 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 1de7b6fee08..81d1f71665d 100644 --- a/src/vmware/azext_vmware/tests/latest/test_datastores_scenario.py +++ b/src/vmware/azext_vmware/tests/latest/test_datastores_scenario.py @@ -26,7 +26,8 @@ def test_vmware_datastores(self): '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' + 'target_id': '/subscriptions/ba75e79b-dd95-4025-9dbf-3a7ae8dff2b5/resourceGroups/rasivagu-df-rg/providers/Microsoft.StoragePool/diskPools/rasivagu-df-diskpool/iscsiTargets/rasivagu-df-target', + 'san_volume': 'san-volumes', }) # Create a new iSCSI based datastore @@ -40,7 +41,7 @@ def test_vmware_datastores(self): 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 netapp-volume create --name ANFDatastore1 --resource-group {rg} --private-cloud {privatecloud} --cluster {cluster} --volume-id {volume_id}') + self.cmd('az vmware datastore netapp-volume create --name ANFDatastore1 --resource-group {rg} --private-cloud {privatecloud} --cluster {cluster} --net-app-volume {volume_id}') # "ANF datastore is not enabled for the cloud SAN version 'v1' # Get the newly created ANF based datastore @@ -51,3 +52,6 @@ def test_vmware_datastores(self): # Create a new iSCSI based datastore with --mount-option as ATTACH 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 --mount-option ATTACH') + + # Create a new Elastic SAN based datastore + self.cmd('az vmware datastore elastic-san-volume create --name SANDatastore1 --resource-group {rg} --private-cloud {privatecloud} --cluster {cluster} --elastic-san-volume {san_volume}') \ No newline at end of file diff --git a/src/vmware/azext_vmware/tests/latest/test_iscsi_path_scenario.py b/src/vmware/azext_vmware/tests/latest/test_iscsi_path_scenario.py new file mode 100644 index 00000000000..8844b5ae6f6 --- /dev/null +++ b/src/vmware/azext_vmware/tests/latest/test_iscsi_path_scenario.py @@ -0,0 +1,32 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +import os +import unittest + +from azure.cli.testsdk import (ScenarioTest, ResourceGroupPreparer) + + +class VmwareIscsiPathTest(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(VmwareIscsiPathTest, self).setUp() + + @ResourceGroupPreparer(name_prefix='cli_test_vmware_iscsi_path') + def test_vmware_iscsi_path(self): + self.kwargs.update({ + 'privatecloud': 'cloud1', + 'rg': 'rg1', + 'networkblock': '192.168.48.0/22' + }) + + self.cmd('az vmware iscsi-path create -c {privatecloud} -g {rg} --network-block {networkblock}') + + self.cmd('az vmware iscsi-path list -c {privatecloud} -g {rg}') + + self.cmd('az vmware iscsi-path delete -c {privatecloud} -g {rg} --yes') + + self.cmd('az vmware iscsi-path show -c {privatecloud} -g {rg}') \ No newline at end of file diff --git a/src/vmware/azext_vmware/tests/latest/test_vmware_scenario.py b/src/vmware/azext_vmware/tests/latest/test_vmware_scenario.py index 030377c3496..4a8d4b49c29 100644 --- a/src/vmware/azext_vmware/tests/latest/test_vmware_scenario.py +++ b/src/vmware/azext_vmware/tests/latest/test_vmware_scenario.py @@ -55,7 +55,7 @@ def test_vmware(self): # rotate passwords self.cmd('vmware private-cloud rotate-vcenter-password -g {rg} -c {privatecloud} --yes') - # self.cmd('vmware private-cloud rotate-nsxt-password') + self.cmd('vmware private-cloud rotate-nsxt-password -g {rg} -c {privatecloud} --yes') # update private cloud to changed default cluster size self.cmd('vmware private-cloud update -g {rg} -n {privatecloud} --cluster-size 4') @@ -63,6 +63,18 @@ def test_vmware(self): # update private cloud to enable internet self.cmd('vmware private-cloud update -g {rg} -n {privatecloud} --internet Enabled') + # update private cloud to set vsan datastore name + self.cmd('vmware private-cloud update -g {rg} -n {privatecloud} --hosts [host1, host2, host3]') + + # update private cloud to set management cluster hosts + self.cmd('vmware private-cloud update -g {rg} -n {privatecloud} --vsan-datastore-name test-name') + + # list authorization + self.cmd('vmware authorization list -g {rg} -c {privatecloud}') + + # show authorization + self.cmd('vmware authorization show -g {rg} -c {privatecloud} -n myauthname') + # create authorization self.cmd('vmware authorization create -g {rg} -c {privatecloud} -n myauthname --express-route-id id') @@ -82,9 +94,9 @@ def test_vmware(self): self.assertEqual(count, 1, 'cluster count expected to be 1') # cluster create - self.cmd('vmware cluster create -g {rg} -c {privatecloud} -n {cluster} --sku av20 --size 3 --hosts {hosts}') + self.cmd('vmware cluster create -g {rg} -c {privatecloud} -n {cluster} --sku av20 --size 3 --hosts {hosts} --vsan-datastore-name datastore') - # cluster create without --hosts + # cluster create without --hosts and --vsan-datastore-name self.cmd('vmware cluster create -g {rg} -c {privatecloud} -n {cluster} --sku av20 --size 3') # cluster list should report 1 @@ -122,4 +134,4 @@ def test_vmware(self): self.cmd('vmware cluster list-zones -g {rg} -c {privatecloud} -n {cluster}') # delete the private cloud - self.cmd('vmware private-cloud delete -g {rg} -n {privatecloud} --yes') + self.cmd('vmware private-cloud delete -g {rg} -n {privatecloud} --yes') \ No newline at end of file diff --git a/src/vmware/setup.py b/src/vmware/setup.py index c6d2705b8d2..f639e7835cf 100644 --- a/src/vmware/setup.py +++ b/src/vmware/setup.py @@ -8,7 +8,7 @@ from io import open from setuptools import setup, find_packages -VERSION = "6.0.1" +VERSION = "7.0.0" with open('README.md', encoding='utf-8') as f: readme = f.read()