diff --git a/src/elastic-san/HISTORY.rst b/src/elastic-san/HISTORY.rst index 8c34bccfff8..34691ca94b7 100644 --- a/src/elastic-san/HISTORY.rst +++ b/src/elastic-san/HISTORY.rst @@ -3,6 +3,13 @@ Release History =============== +1.0.0b1 +++++++ +* Support private endpoint +* Support 2022-12-01-preview api-version +* BREAKING CHANGE: `--tags` has been removed from `az elastic-san volume-group/volume` +* BREAKING CHANGE: `--size-gib` is required for `az elastic-san volume create` + 0.1.0 ++++++ * Initial release. \ No newline at end of file diff --git a/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/_create.py b/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/_create.py index c38a43d3551..932857d4c09 100644 --- a/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/_create.py +++ b/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/_create.py @@ -23,9 +23,9 @@ class Create(AAZCommand): """ _aaz_info = { - "version": "2021-11-20-preview", + "version": "2022-12-01-preview", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}", "2021-11-20-preview"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}", "2022-12-01-preview"], ] } @@ -50,7 +50,6 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["-n", "--name", "--elastic-san-name"], help="The name of the ElasticSan.", required=True, - id_part="name", fmt=AAZStrArgFormat( pattern="^[A-Za-z0-9]+((-|_)[a-z0-9A-Z]+)*$", max_length=24, @@ -67,6 +66,7 @@ def _build_arguments_schema(cls, *args, **kwargs): _args_schema.location = AAZResourceLocationArg( arg_group="Parameters", help="The geo-location where the resource lives.", + required=True, fmt=AAZResourceLocationArgFormat( resource_group_arg="resource_group", ), @@ -129,11 +129,11 @@ def _execute_operations(self): yield self.ElasticSansCreate(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass @@ -151,18 +151,18 @@ def __call__(self, *args, **kwargs): return self.client.build_lro_polling( self.ctx.args.no_wait, session, - self.on_200, + self.on_200_201, 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]: + if session.http_response.status_code in [200, 201]: return self.client.build_lro_polling( self.ctx.args.no_wait, session, - self.on_200, + self.on_200_201, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) @@ -205,7 +205,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2021-11-20-preview", + "api-version", "2022-12-01-preview", required=True, ), } @@ -230,7 +230,7 @@ def content(self): typ=AAZObjectType, typ_kwargs={"flags": {"required": True, "client_flatten": True}} ) - _builder.set_prop("location", AAZStrType, ".location") + _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("tags", AAZDictType, ".tags") @@ -256,149 +256,204 @@ def content(self): return self.serialize_content(_content_value) - def on_200(self, session): + 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 + schema_builder=self._build_schema_on_200_201 ) - _schema_on_200 = None + _schema_on_200_201 = 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() - _build_schema_elastic_san_read(cls._schema_on_200) - - return cls._schema_on_200 - - -_schema_elastic_san_read = None - - -def _build_schema_elastic_san_read(_schema): - global _schema_elastic_san_read - if _schema_elastic_san_read is not None: - _schema.id = _schema_elastic_san_read.id - _schema.location = _schema_elastic_san_read.location - _schema.name = _schema_elastic_san_read.name - _schema.properties = _schema_elastic_san_read.properties - _schema.system_data = _schema_elastic_san_read.system_data - _schema.tags = _schema_elastic_san_read.tags - _schema.type = _schema_elastic_san_read.type - return - - _schema_elastic_san_read = AAZObjectType() - - elastic_san_read = _schema_elastic_san_read - elastic_san_read.id = AAZStrType( - flags={"read_only": True}, - ) - elastic_san_read.location = AAZStrType() - elastic_san_read.name = AAZStrType( - flags={"read_only": True}, - ) - elastic_san_read.properties = AAZObjectType( - flags={"required": True, "client_flatten": True}, - ) - elastic_san_read.system_data = AAZObjectType( - serialized_name="systemData", - flags={"read_only": True}, - ) - elastic_san_read.tags = AAZDictType() - elastic_san_read.type = AAZStrType( - flags={"read_only": True}, - ) - - properties = _schema_elastic_san_read.properties - properties.availability_zones = AAZListType( - serialized_name="availabilityZones", - ) - properties.base_size_ti_b = AAZIntType( - serialized_name="baseSizeTiB", - flags={"required": True}, - ) - properties.extended_capacity_size_ti_b = AAZIntType( - serialized_name="extendedCapacitySizeTiB", - flags={"required": True}, - ) - properties.provisioning_state = AAZStrType( - serialized_name="provisioningState", - flags={"read_only": True}, - ) - properties.sku = AAZObjectType( - flags={"required": True}, - ) - properties.total_iops = AAZIntType( - serialized_name="totalIops", - flags={"read_only": True}, - ) - properties.total_m_bps = AAZIntType( - serialized_name="totalMBps", - flags={"read_only": True}, - ) - properties.total_size_ti_b = AAZIntType( - serialized_name="totalSizeTiB", - flags={"read_only": True}, - ) - properties.total_volume_size_gi_b = AAZIntType( - serialized_name="totalVolumeSizeGiB", - flags={"read_only": True}, - ) - properties.volume_group_count = AAZIntType( - serialized_name="volumeGroupCount", - flags={"read_only": True}, - ) - - availability_zones = _schema_elastic_san_read.properties.availability_zones - availability_zones.Element = AAZStrType() - - sku = _schema_elastic_san_read.properties.sku - sku.name = AAZStrType( - flags={"required": True}, - ) - sku.tier = AAZStrType() - - system_data = _schema_elastic_san_read.system_data - system_data.created_at = AAZStrType( - serialized_name="createdAt", - flags={"read_only": True}, - ) - system_data.created_by = AAZStrType( - serialized_name="createdBy", - flags={"read_only": True}, - ) - system_data.created_by_type = AAZStrType( - serialized_name="createdByType", - flags={"read_only": True}, - ) - system_data.last_modified_at = AAZStrType( - serialized_name="lastModifiedAt", - flags={"read_only": True}, - ) - system_data.last_modified_by = AAZStrType( - serialized_name="lastModifiedBy", - flags={"read_only": True}, - ) - system_data.last_modified_by_type = AAZStrType( - serialized_name="lastModifiedByType", - flags={"read_only": True}, - ) - - tags = _schema_elastic_san_read.tags - tags.Element = AAZStrType() - - _schema.id = _schema_elastic_san_read.id - _schema.location = _schema_elastic_san_read.location - _schema.name = _schema_elastic_san_read.name - _schema.properties = _schema_elastic_san_read.properties - _schema.system_data = _schema_elastic_san_read.system_data - _schema.tags = _schema_elastic_san_read.tags - _schema.type = _schema_elastic_san_read.type + 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.location = AAZStrType( + flags={"required": True}, + ) + _schema_on_200_201.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200_201.properties = AAZObjectType( + flags={"required": True, "client_flatten": True}, + ) + _schema_on_200_201.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _CreateHelper._build_schema_system_data_read(_schema_on_200_201.system_data) + _schema_on_200_201.tags = AAZDictType() + _schema_on_200_201.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200_201.properties + properties.availability_zones = AAZListType( + serialized_name="availabilityZones", + ) + properties.base_size_ti_b = AAZIntType( + serialized_name="baseSizeTiB", + flags={"required": True}, + ) + properties.extended_capacity_size_ti_b = AAZIntType( + serialized_name="extendedCapacitySizeTiB", + flags={"required": True}, + ) + properties.private_endpoint_connections = AAZListType( + serialized_name="privateEndpointConnections", + flags={"read_only": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.sku = AAZObjectType( + flags={"required": True}, + ) + properties.total_iops = AAZIntType( + serialized_name="totalIops", + flags={"read_only": True}, + ) + properties.total_m_bps = AAZIntType( + serialized_name="totalMBps", + flags={"read_only": True}, + ) + properties.total_size_ti_b = AAZIntType( + serialized_name="totalSizeTiB", + flags={"read_only": True}, + ) + properties.total_volume_size_gi_b = AAZIntType( + serialized_name="totalVolumeSizeGiB", + flags={"read_only": True}, + ) + properties.volume_group_count = AAZIntType( + serialized_name="volumeGroupCount", + flags={"read_only": True}, + ) + + availability_zones = cls._schema_on_200_201.properties.availability_zones + availability_zones.Element = AAZStrType() + + private_endpoint_connections = cls._schema_on_200_201.properties.private_endpoint_connections + private_endpoint_connections.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.private_endpoint_connections.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType( + flags={"required": True, "client_flatten": True}, + ) + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _CreateHelper._build_schema_system_data_read(_element.system_data) + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200_201.properties.private_endpoint_connections.Element.properties + properties.group_ids = AAZListType( + serialized_name="groupIds", + ) + properties.private_endpoint = AAZObjectType( + serialized_name="privateEndpoint", + ) + properties.private_link_service_connection_state = AAZObjectType( + serialized_name="privateLinkServiceConnectionState", + flags={"required": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + + group_ids = cls._schema_on_200_201.properties.private_endpoint_connections.Element.properties.group_ids + group_ids.Element = AAZStrType() + + private_endpoint = cls._schema_on_200_201.properties.private_endpoint_connections.Element.properties.private_endpoint + private_endpoint.id = AAZStrType( + flags={"read_only": True}, + ) + + private_link_service_connection_state = cls._schema_on_200_201.properties.private_endpoint_connections.Element.properties.private_link_service_connection_state + private_link_service_connection_state.actions_required = AAZStrType( + serialized_name="actionsRequired", + ) + private_link_service_connection_state.description = AAZStrType() + private_link_service_connection_state.status = AAZStrType() + + sku = cls._schema_on_200_201.properties.sku + sku.name = AAZStrType( + flags={"required": True}, + ) + sku.tier = AAZStrType() + + tags = cls._schema_on_200_201.tags + tags.Element = AAZStrType() + + return cls._schema_on_200_201 + + +class _CreateHelper: + """Helper class for Create""" + + _schema_system_data_read = None + + @classmethod + def _build_schema_system_data_read(cls, _schema): + if cls._schema_system_data_read is not None: + _schema.created_at = cls._schema_system_data_read.created_at + _schema.created_by = cls._schema_system_data_read.created_by + _schema.created_by_type = cls._schema_system_data_read.created_by_type + _schema.last_modified_at = cls._schema_system_data_read.last_modified_at + _schema.last_modified_by = cls._schema_system_data_read.last_modified_by + _schema.last_modified_by_type = cls._schema_system_data_read.last_modified_by_type + return + + cls._schema_system_data_read = _schema_system_data_read = AAZObjectType( + flags={"read_only": True} + ) + + system_data_read = _schema_system_data_read + system_data_read.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data_read.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data_read.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data_read.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data_read.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data_read.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + _schema.created_at = cls._schema_system_data_read.created_at + _schema.created_by = cls._schema_system_data_read.created_by + _schema.created_by_type = cls._schema_system_data_read.created_by_type + _schema.last_modified_at = cls._schema_system_data_read.last_modified_at + _schema.last_modified_by = cls._schema_system_data_read.last_modified_by + _schema.last_modified_by_type = cls._schema_system_data_read.last_modified_by_type __all__ = ["Create"] diff --git a/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/_delete.py b/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/_delete.py index 72877d584e3..683649b4034 100644 --- a/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/_delete.py +++ b/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/_delete.py @@ -24,9 +24,9 @@ class Delete(AAZCommand): """ _aaz_info = { - "version": "2021-11-20-preview", + "version": "2022-12-01-preview", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}", "2021-11-20-preview"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}", "2022-12-01-preview"], ] } @@ -68,11 +68,11 @@ def _execute_operations(self): yield self.ElasticSansDelete(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass @@ -88,7 +88,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]: @@ -97,7 +97,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]: @@ -106,7 +106,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 +149,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2021-11-20-preview", + "api-version", "2022-12-01-preview", required=True, ), } @@ -162,4 +162,8 @@ def on_204(self, session): pass +class _DeleteHelper: + """Helper class for Delete""" + + __all__ = ["Delete"] diff --git a/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/_list.py b/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/_list.py index 3d2e68c6c8a..f7a55a08dba 100644 --- a/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/_list.py +++ b/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/_list.py @@ -23,13 +23,15 @@ class List(AAZCommand): """ _aaz_info = { - "version": "2021-11-20-preview", + "version": "2022-12-01-preview", "resources": [ - ["mgmt-plane", "/subscriptions/{}/providers/microsoft.elasticsan/elasticsans", "2021-11-20-preview"], - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans", "2021-11-20-preview"], + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.elasticsan/elasticsans", "2022-12-01-preview"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans", "2022-12-01-preview"], ] } + AZ_SUPPORT_PAGINATION = True + def _handler(self, command_args): super()._handler(command_args) return self.build_paging(self._execute_operations, self._output) @@ -58,11 +60,11 @@ def _execute_operations(self): self.ElasticSansListBySubscription(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass @@ -115,7 +117,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2021-11-20-preview", + "api-version", "2022-12-01-preview", required=True, ), } @@ -152,9 +154,7 @@ def _build_schema_on_200(cls): serialized_name="nextLink", flags={"read_only": True}, ) - _schema_on_200.value = AAZListType( - flags={"required": True}, - ) + _schema_on_200.value = AAZListType() value = cls._schema_on_200.value value.Element = AAZObjectType() @@ -163,7 +163,9 @@ def _build_schema_on_200(cls): _element.id = AAZStrType( flags={"read_only": True}, ) - _element.location = AAZStrType() + _element.location = AAZStrType( + flags={"required": True}, + ) _element.name = AAZStrType( flags={"read_only": True}, ) @@ -174,6 +176,7 @@ def _build_schema_on_200(cls): serialized_name="systemData", flags={"read_only": True}, ) + _ListHelper._build_schema_system_data_read(_element.system_data) _element.tags = AAZDictType() _element.type = AAZStrType( flags={"read_only": True}, @@ -191,6 +194,10 @@ def _build_schema_on_200(cls): serialized_name="extendedCapacitySizeTiB", flags={"required": True}, ) + properties.private_endpoint_connections = AAZListType( + serialized_name="privateEndpointConnections", + flags={"read_only": True}, + ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -222,38 +229,65 @@ def _build_schema_on_200(cls): availability_zones = cls._schema_on_200.value.Element.properties.availability_zones availability_zones.Element = AAZStrType() - sku = cls._schema_on_200.value.Element.properties.sku - sku.name = AAZStrType( - flags={"required": True}, - ) - sku.tier = AAZStrType() + private_endpoint_connections = cls._schema_on_200.value.Element.properties.private_endpoint_connections + private_endpoint_connections.Element = AAZObjectType() - system_data = cls._schema_on_200.value.Element.system_data - system_data.created_at = AAZStrType( - serialized_name="createdAt", + _element = cls._schema_on_200.value.Element.properties.private_endpoint_connections.Element + _element.id = AAZStrType( flags={"read_only": True}, ) - system_data.created_by = AAZStrType( - serialized_name="createdBy", + _element.name = AAZStrType( flags={"read_only": True}, ) - system_data.created_by_type = AAZStrType( - serialized_name="createdByType", + _element.properties = AAZObjectType( + flags={"required": True, "client_flatten": True}, + ) + _element.system_data = AAZObjectType( + serialized_name="systemData", flags={"read_only": True}, ) - system_data.last_modified_at = AAZStrType( - serialized_name="lastModifiedAt", + _ListHelper._build_schema_system_data_read(_element.system_data) + _element.type = AAZStrType( flags={"read_only": True}, ) - system_data.last_modified_by = AAZStrType( - serialized_name="lastModifiedBy", + + properties = cls._schema_on_200.value.Element.properties.private_endpoint_connections.Element.properties + properties.group_ids = AAZListType( + serialized_name="groupIds", + ) + properties.private_endpoint = AAZObjectType( + serialized_name="privateEndpoint", + ) + properties.private_link_service_connection_state = AAZObjectType( + serialized_name="privateLinkServiceConnectionState", + flags={"required": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", flags={"read_only": True}, ) - system_data.last_modified_by_type = AAZStrType( - serialized_name="lastModifiedByType", + + group_ids = cls._schema_on_200.value.Element.properties.private_endpoint_connections.Element.properties.group_ids + group_ids.Element = AAZStrType() + + private_endpoint = cls._schema_on_200.value.Element.properties.private_endpoint_connections.Element.properties.private_endpoint + private_endpoint.id = AAZStrType( flags={"read_only": True}, ) + private_link_service_connection_state = cls._schema_on_200.value.Element.properties.private_endpoint_connections.Element.properties.private_link_service_connection_state + private_link_service_connection_state.actions_required = AAZStrType( + serialized_name="actionsRequired", + ) + private_link_service_connection_state.description = AAZStrType() + private_link_service_connection_state.status = AAZStrType() + + sku = cls._schema_on_200.value.Element.properties.sku + sku.name = AAZStrType( + flags={"required": True}, + ) + sku.tier = AAZStrType() + tags = cls._schema_on_200.value.Element.tags tags.Element = AAZStrType() @@ -299,7 +333,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2021-11-20-preview", + "api-version", "2022-12-01-preview", required=True, ), } @@ -336,9 +370,7 @@ def _build_schema_on_200(cls): serialized_name="nextLink", flags={"read_only": True}, ) - _schema_on_200.value = AAZListType( - flags={"required": True}, - ) + _schema_on_200.value = AAZListType() value = cls._schema_on_200.value value.Element = AAZObjectType() @@ -347,7 +379,9 @@ def _build_schema_on_200(cls): _element.id = AAZStrType( flags={"read_only": True}, ) - _element.location = AAZStrType() + _element.location = AAZStrType( + flags={"required": True}, + ) _element.name = AAZStrType( flags={"read_only": True}, ) @@ -358,6 +392,7 @@ def _build_schema_on_200(cls): serialized_name="systemData", flags={"read_only": True}, ) + _ListHelper._build_schema_system_data_read(_element.system_data) _element.tags = AAZDictType() _element.type = AAZStrType( flags={"read_only": True}, @@ -375,6 +410,10 @@ def _build_schema_on_200(cls): serialized_name="extendedCapacitySizeTiB", flags={"required": True}, ) + properties.private_endpoint_connections = AAZListType( + serialized_name="privateEndpointConnections", + flags={"read_only": True}, + ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -406,42 +445,117 @@ def _build_schema_on_200(cls): availability_zones = cls._schema_on_200.value.Element.properties.availability_zones availability_zones.Element = AAZStrType() - sku = cls._schema_on_200.value.Element.properties.sku - sku.name = AAZStrType( - flags={"required": True}, - ) - sku.tier = AAZStrType() + private_endpoint_connections = cls._schema_on_200.value.Element.properties.private_endpoint_connections + private_endpoint_connections.Element = AAZObjectType() - system_data = cls._schema_on_200.value.Element.system_data - system_data.created_at = AAZStrType( - serialized_name="createdAt", + _element = cls._schema_on_200.value.Element.properties.private_endpoint_connections.Element + _element.id = AAZStrType( flags={"read_only": True}, ) - system_data.created_by = AAZStrType( - serialized_name="createdBy", + _element.name = AAZStrType( flags={"read_only": True}, ) - system_data.created_by_type = AAZStrType( - serialized_name="createdByType", + _element.properties = AAZObjectType( + flags={"required": True, "client_flatten": True}, + ) + _element.system_data = AAZObjectType( + serialized_name="systemData", flags={"read_only": True}, ) - system_data.last_modified_at = AAZStrType( - serialized_name="lastModifiedAt", + _ListHelper._build_schema_system_data_read(_element.system_data) + _element.type = AAZStrType( flags={"read_only": True}, ) - system_data.last_modified_by = AAZStrType( - serialized_name="lastModifiedBy", + + properties = cls._schema_on_200.value.Element.properties.private_endpoint_connections.Element.properties + properties.group_ids = AAZListType( + serialized_name="groupIds", + ) + properties.private_endpoint = AAZObjectType( + serialized_name="privateEndpoint", + ) + properties.private_link_service_connection_state = AAZObjectType( + serialized_name="privateLinkServiceConnectionState", + flags={"required": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", flags={"read_only": True}, ) - system_data.last_modified_by_type = AAZStrType( - serialized_name="lastModifiedByType", + + group_ids = cls._schema_on_200.value.Element.properties.private_endpoint_connections.Element.properties.group_ids + group_ids.Element = AAZStrType() + + private_endpoint = cls._schema_on_200.value.Element.properties.private_endpoint_connections.Element.properties.private_endpoint + private_endpoint.id = AAZStrType( flags={"read_only": True}, ) + private_link_service_connection_state = cls._schema_on_200.value.Element.properties.private_endpoint_connections.Element.properties.private_link_service_connection_state + private_link_service_connection_state.actions_required = AAZStrType( + serialized_name="actionsRequired", + ) + private_link_service_connection_state.description = AAZStrType() + private_link_service_connection_state.status = AAZStrType() + + sku = cls._schema_on_200.value.Element.properties.sku + sku.name = AAZStrType( + flags={"required": True}, + ) + sku.tier = AAZStrType() + tags = cls._schema_on_200.value.Element.tags tags.Element = AAZStrType() return cls._schema_on_200 +class _ListHelper: + """Helper class for List""" + + _schema_system_data_read = None + + @classmethod + def _build_schema_system_data_read(cls, _schema): + if cls._schema_system_data_read is not None: + _schema.created_at = cls._schema_system_data_read.created_at + _schema.created_by = cls._schema_system_data_read.created_by + _schema.created_by_type = cls._schema_system_data_read.created_by_type + _schema.last_modified_at = cls._schema_system_data_read.last_modified_at + _schema.last_modified_by = cls._schema_system_data_read.last_modified_by + _schema.last_modified_by_type = cls._schema_system_data_read.last_modified_by_type + return + + cls._schema_system_data_read = _schema_system_data_read = AAZObjectType( + flags={"read_only": True} + ) + + system_data_read = _schema_system_data_read + system_data_read.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data_read.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data_read.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data_read.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data_read.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data_read.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + _schema.created_at = cls._schema_system_data_read.created_at + _schema.created_by = cls._schema_system_data_read.created_by + _schema.created_by_type = cls._schema_system_data_read.created_by_type + _schema.last_modified_at = cls._schema_system_data_read.last_modified_at + _schema.last_modified_by = cls._schema_system_data_read.last_modified_by + _schema.last_modified_by_type = cls._schema_system_data_read.last_modified_by_type + + __all__ = ["List"] diff --git a/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/_list_sku.py b/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/_list_sku.py index 8af04d3a524..784b45b6714 100644 --- a/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/_list_sku.py +++ b/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/_list_sku.py @@ -23,9 +23,9 @@ class ListSku(AAZCommand): """ _aaz_info = { - "version": "2021-11-20-preview", + "version": "2022-12-01-preview", "resources": [ - ["mgmt-plane", "/subscriptions/{}/providers/microsoft.elasticsan/skus", "2021-11-20-preview"], + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.elasticsan/skus", "2022-12-01-preview"], ] } @@ -56,11 +56,11 @@ def _execute_operations(self): self.SkusList(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass @@ -111,7 +111,7 @@ def query_parameters(self): "$filter", self.ctx.args.filter, ), **self.serialize_query_param( - "api-version", "2021-11-20-preview", + "api-version", "2022-12-01-preview", required=True, ), } @@ -144,14 +144,16 @@ def _build_schema_on_200(cls): cls._schema_on_200 = AAZObjectType() _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}, ) value = cls._schema_on_200.value - value.Element = AAZObjectType( - flags={"read_only": True}, - ) + value.Element = AAZObjectType() _element = cls._schema_on_200.value.Element _element.capabilities = AAZListType( @@ -165,20 +167,16 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) _element.name = AAZStrType( - flags={"required": True, "read_only": True}, + flags={"required": True}, ) _element.resource_type = AAZStrType( serialized_name="resourceType", flags={"read_only": True}, ) - _element.tier = AAZStrType( - flags={"read_only": True}, - ) + _element.tier = AAZStrType() capabilities = cls._schema_on_200.value.Element.capabilities - capabilities.Element = AAZObjectType( - flags={"read_only": True}, - ) + capabilities.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.capabilities.Element _element.name = AAZStrType( @@ -189,9 +187,7 @@ def _build_schema_on_200(cls): ) location_info = cls._schema_on_200.value.Element.location_info - location_info.Element = AAZObjectType( - flags={"read_only": True}, - ) + location_info.Element = AAZObjectType() _element = cls._schema_on_200.value.Element.location_info.Element _element.location = AAZStrType( @@ -202,16 +198,16 @@ def _build_schema_on_200(cls): ) zones = cls._schema_on_200.value.Element.location_info.Element.zones - zones.Element = AAZStrType( - flags={"read_only": True}, - ) + zones.Element = AAZStrType() locations = cls._schema_on_200.value.Element.locations - locations.Element = AAZStrType( - flags={"read_only": True}, - ) + locations.Element = AAZStrType() return cls._schema_on_200 +class _ListSkuHelper: + """Helper class for ListSku""" + + __all__ = ["ListSku"] diff --git a/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/_show.py b/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/_show.py index 47e6f2a048c..f01f1c27c0b 100644 --- a/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/_show.py +++ b/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/_show.py @@ -23,9 +23,9 @@ class Show(AAZCommand): """ _aaz_info = { - "version": "2021-11-20-preview", + "version": "2022-12-01-preview", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}", "2021-11-20-preview"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}", "2022-12-01-preview"], ] } @@ -66,11 +66,11 @@ def _execute_operations(self): self.ElasticSansGet(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass @@ -126,7 +126,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2021-11-20-preview", + "api-version", "2022-12-01-preview", required=True, ), } @@ -162,7 +162,9 @@ def _build_schema_on_200(cls): _schema_on_200.id = AAZStrType( flags={"read_only": True}, ) - _schema_on_200.location = AAZStrType() + _schema_on_200.location = AAZStrType( + flags={"required": True}, + ) _schema_on_200.name = AAZStrType( flags={"read_only": True}, ) @@ -173,6 +175,7 @@ def _build_schema_on_200(cls): serialized_name="systemData", flags={"read_only": True}, ) + _ShowHelper._build_schema_system_data_read(_schema_on_200.system_data) _schema_on_200.tags = AAZDictType() _schema_on_200.type = AAZStrType( flags={"read_only": True}, @@ -190,6 +193,10 @@ def _build_schema_on_200(cls): serialized_name="extendedCapacitySizeTiB", flags={"required": True}, ) + properties.private_endpoint_connections = AAZListType( + serialized_name="privateEndpointConnections", + flags={"read_only": True}, + ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -221,42 +228,117 @@ def _build_schema_on_200(cls): availability_zones = cls._schema_on_200.properties.availability_zones availability_zones.Element = AAZStrType() - sku = cls._schema_on_200.properties.sku - sku.name = AAZStrType( - flags={"required": True}, - ) - sku.tier = AAZStrType() + private_endpoint_connections = cls._schema_on_200.properties.private_endpoint_connections + private_endpoint_connections.Element = AAZObjectType() - system_data = cls._schema_on_200.system_data - system_data.created_at = AAZStrType( - serialized_name="createdAt", + _element = cls._schema_on_200.properties.private_endpoint_connections.Element + _element.id = AAZStrType( flags={"read_only": True}, ) - system_data.created_by = AAZStrType( - serialized_name="createdBy", + _element.name = AAZStrType( flags={"read_only": True}, ) - system_data.created_by_type = AAZStrType( - serialized_name="createdByType", + _element.properties = AAZObjectType( + flags={"required": True, "client_flatten": True}, + ) + _element.system_data = AAZObjectType( + serialized_name="systemData", flags={"read_only": True}, ) - system_data.last_modified_at = AAZStrType( - serialized_name="lastModifiedAt", + _ShowHelper._build_schema_system_data_read(_element.system_data) + _element.type = AAZStrType( flags={"read_only": True}, ) - system_data.last_modified_by = AAZStrType( - serialized_name="lastModifiedBy", + + properties = cls._schema_on_200.properties.private_endpoint_connections.Element.properties + properties.group_ids = AAZListType( + serialized_name="groupIds", + ) + properties.private_endpoint = AAZObjectType( + serialized_name="privateEndpoint", + ) + properties.private_link_service_connection_state = AAZObjectType( + serialized_name="privateLinkServiceConnectionState", + flags={"required": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", flags={"read_only": True}, ) - system_data.last_modified_by_type = AAZStrType( - serialized_name="lastModifiedByType", + + group_ids = cls._schema_on_200.properties.private_endpoint_connections.Element.properties.group_ids + group_ids.Element = AAZStrType() + + private_endpoint = cls._schema_on_200.properties.private_endpoint_connections.Element.properties.private_endpoint + private_endpoint.id = AAZStrType( flags={"read_only": True}, ) + private_link_service_connection_state = cls._schema_on_200.properties.private_endpoint_connections.Element.properties.private_link_service_connection_state + private_link_service_connection_state.actions_required = AAZStrType( + serialized_name="actionsRequired", + ) + private_link_service_connection_state.description = AAZStrType() + private_link_service_connection_state.status = AAZStrType() + + sku = cls._schema_on_200.properties.sku + sku.name = AAZStrType( + flags={"required": True}, + ) + sku.tier = AAZStrType() + tags = cls._schema_on_200.tags tags.Element = AAZStrType() return cls._schema_on_200 +class _ShowHelper: + """Helper class for Show""" + + _schema_system_data_read = None + + @classmethod + def _build_schema_system_data_read(cls, _schema): + if cls._schema_system_data_read is not None: + _schema.created_at = cls._schema_system_data_read.created_at + _schema.created_by = cls._schema_system_data_read.created_by + _schema.created_by_type = cls._schema_system_data_read.created_by_type + _schema.last_modified_at = cls._schema_system_data_read.last_modified_at + _schema.last_modified_by = cls._schema_system_data_read.last_modified_by + _schema.last_modified_by_type = cls._schema_system_data_read.last_modified_by_type + return + + cls._schema_system_data_read = _schema_system_data_read = AAZObjectType( + flags={"read_only": True} + ) + + system_data_read = _schema_system_data_read + system_data_read.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data_read.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data_read.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data_read.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data_read.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data_read.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + _schema.created_at = cls._schema_system_data_read.created_at + _schema.created_by = cls._schema_system_data_read.created_by + _schema.created_by_type = cls._schema_system_data_read.created_by_type + _schema.last_modified_at = cls._schema_system_data_read.last_modified_at + _schema.last_modified_by = cls._schema_system_data_read.last_modified_by + _schema.last_modified_by_type = cls._schema_system_data_read.last_modified_by_type + + __all__ = ["Show"] diff --git a/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/_update.py b/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/_update.py index fbb904b79d8..a575a038ada 100644 --- a/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/_update.py +++ b/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/_update.py @@ -23,9 +23,9 @@ class Update(AAZCommand): """ _aaz_info = { - "version": "2021-11-20-preview", + "version": "2022-12-01-preview", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}", "2021-11-20-preview"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}", "2022-12-01-preview"], ] } @@ -132,19 +132,19 @@ def _execute_operations(self): yield self.ElasticSansCreate(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass - # @register_callback + @register_callback def pre_instance_update(self, instance): pass - # @register_callback + @register_callback def post_instance_update(self, instance): pass @@ -200,7 +200,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2021-11-20-preview", + "api-version", "2022-12-01-preview", required=True, ), } @@ -231,7 +231,7 @@ def _build_schema_on_200(cls): return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() - _build_schema_elastic_san_read(cls._schema_on_200) + _UpdateHelper._build_schema_elastic_san_read(cls._schema_on_200) return cls._schema_on_200 @@ -245,18 +245,18 @@ def __call__(self, *args, **kwargs): return self.client.build_lro_polling( self.ctx.args.no_wait, session, - self.on_200, + self.on_200_201, 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]: + if session.http_response.status_code in [200, 201]: return self.client.build_lro_polling( self.ctx.args.no_wait, session, - self.on_200, + self.on_200_201, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) @@ -299,7 +299,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2021-11-20-preview", + "api-version", "2022-12-01-preview", required=True, ), } @@ -326,25 +326,25 @@ def content(self): return self.serialize_content(_content_value) - def on_200(self, session): + 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 + schema_builder=self._build_schema_on_200_201 ) - _schema_on_200 = None + _schema_on_200_201 = None @classmethod - def _build_schema_on_200(cls): - if cls._schema_on_200 is not None: - return cls._schema_on_200 + 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 = AAZObjectType() - _build_schema_elastic_san_read(cls._schema_on_200) + cls._schema_on_200_201 = AAZObjectType() + _UpdateHelper._build_schema_elastic_san_read(cls._schema_on_200_201) - return cls._schema_on_200 + return cls._schema_on_200_201 class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): @@ -391,128 +391,208 @@ def __call__(self, *args, **kwargs): ) -_schema_elastic_san_read = None - - -def _build_schema_elastic_san_read(_schema): - global _schema_elastic_san_read - if _schema_elastic_san_read is not None: - _schema.id = _schema_elastic_san_read.id - _schema.location = _schema_elastic_san_read.location - _schema.name = _schema_elastic_san_read.name - _schema.properties = _schema_elastic_san_read.properties - _schema.system_data = _schema_elastic_san_read.system_data - _schema.tags = _schema_elastic_san_read.tags - _schema.type = _schema_elastic_san_read.type - return - - _schema_elastic_san_read = AAZObjectType() - - elastic_san_read = _schema_elastic_san_read - elastic_san_read.id = AAZStrType( - flags={"read_only": True}, - ) - elastic_san_read.location = AAZStrType() - elastic_san_read.name = AAZStrType( - flags={"read_only": True}, - ) - elastic_san_read.properties = AAZObjectType( - flags={"required": True, "client_flatten": True}, - ) - elastic_san_read.system_data = AAZObjectType( - serialized_name="systemData", - flags={"read_only": True}, - ) - elastic_san_read.tags = AAZDictType() - elastic_san_read.type = AAZStrType( - flags={"read_only": True}, - ) - - properties = _schema_elastic_san_read.properties - properties.availability_zones = AAZListType( - serialized_name="availabilityZones", - ) - properties.base_size_ti_b = AAZIntType( - serialized_name="baseSizeTiB", - flags={"required": True}, - ) - properties.extended_capacity_size_ti_b = AAZIntType( - serialized_name="extendedCapacitySizeTiB", - flags={"required": True}, - ) - properties.provisioning_state = AAZStrType( - serialized_name="provisioningState", - flags={"read_only": True}, - ) - properties.sku = AAZObjectType( - flags={"required": True}, - ) - properties.total_iops = AAZIntType( - serialized_name="totalIops", - flags={"read_only": True}, - ) - properties.total_m_bps = AAZIntType( - serialized_name="totalMBps", - flags={"read_only": True}, - ) - properties.total_size_ti_b = AAZIntType( - serialized_name="totalSizeTiB", - flags={"read_only": True}, - ) - properties.total_volume_size_gi_b = AAZIntType( - serialized_name="totalVolumeSizeGiB", - flags={"read_only": True}, - ) - properties.volume_group_count = AAZIntType( - serialized_name="volumeGroupCount", - flags={"read_only": True}, - ) - - availability_zones = _schema_elastic_san_read.properties.availability_zones - availability_zones.Element = AAZStrType() - - sku = _schema_elastic_san_read.properties.sku - sku.name = AAZStrType( - flags={"required": True}, - ) - sku.tier = AAZStrType() - - system_data = _schema_elastic_san_read.system_data - system_data.created_at = AAZStrType( - serialized_name="createdAt", - flags={"read_only": True}, - ) - system_data.created_by = AAZStrType( - serialized_name="createdBy", - flags={"read_only": True}, - ) - system_data.created_by_type = AAZStrType( - serialized_name="createdByType", - flags={"read_only": True}, - ) - system_data.last_modified_at = AAZStrType( - serialized_name="lastModifiedAt", - flags={"read_only": True}, - ) - system_data.last_modified_by = AAZStrType( - serialized_name="lastModifiedBy", - flags={"read_only": True}, - ) - system_data.last_modified_by_type = AAZStrType( - serialized_name="lastModifiedByType", - flags={"read_only": True}, - ) - - tags = _schema_elastic_san_read.tags - tags.Element = AAZStrType() - - _schema.id = _schema_elastic_san_read.id - _schema.location = _schema_elastic_san_read.location - _schema.name = _schema_elastic_san_read.name - _schema.properties = _schema_elastic_san_read.properties - _schema.system_data = _schema_elastic_san_read.system_data - _schema.tags = _schema_elastic_san_read.tags - _schema.type = _schema_elastic_san_read.type +class _UpdateHelper: + """Helper class for Update""" + + _schema_elastic_san_read = None + + @classmethod + def _build_schema_elastic_san_read(cls, _schema): + if cls._schema_elastic_san_read is not None: + _schema.id = cls._schema_elastic_san_read.id + _schema.location = cls._schema_elastic_san_read.location + _schema.name = cls._schema_elastic_san_read.name + _schema.properties = cls._schema_elastic_san_read.properties + _schema.system_data = cls._schema_elastic_san_read.system_data + _schema.tags = cls._schema_elastic_san_read.tags + _schema.type = cls._schema_elastic_san_read.type + return + + cls._schema_elastic_san_read = _schema_elastic_san_read = AAZObjectType() + + elastic_san_read = _schema_elastic_san_read + elastic_san_read.id = AAZStrType( + flags={"read_only": True}, + ) + elastic_san_read.location = AAZStrType( + flags={"required": True}, + ) + elastic_san_read.name = AAZStrType( + flags={"read_only": True}, + ) + elastic_san_read.properties = AAZObjectType( + flags={"required": True, "client_flatten": True}, + ) + elastic_san_read.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + cls._build_schema_system_data_read(elastic_san_read.system_data) + elastic_san_read.tags = AAZDictType() + elastic_san_read.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = _schema_elastic_san_read.properties + properties.availability_zones = AAZListType( + serialized_name="availabilityZones", + ) + properties.base_size_ti_b = AAZIntType( + serialized_name="baseSizeTiB", + flags={"required": True}, + ) + properties.extended_capacity_size_ti_b = AAZIntType( + serialized_name="extendedCapacitySizeTiB", + flags={"required": True}, + ) + properties.private_endpoint_connections = AAZListType( + serialized_name="privateEndpointConnections", + flags={"read_only": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.sku = AAZObjectType( + flags={"required": True}, + ) + properties.total_iops = AAZIntType( + serialized_name="totalIops", + flags={"read_only": True}, + ) + properties.total_m_bps = AAZIntType( + serialized_name="totalMBps", + flags={"read_only": True}, + ) + properties.total_size_ti_b = AAZIntType( + serialized_name="totalSizeTiB", + flags={"read_only": True}, + ) + properties.total_volume_size_gi_b = AAZIntType( + serialized_name="totalVolumeSizeGiB", + flags={"read_only": True}, + ) + properties.volume_group_count = AAZIntType( + serialized_name="volumeGroupCount", + flags={"read_only": True}, + ) + + availability_zones = _schema_elastic_san_read.properties.availability_zones + availability_zones.Element = AAZStrType() + + private_endpoint_connections = _schema_elastic_san_read.properties.private_endpoint_connections + private_endpoint_connections.Element = AAZObjectType() + + _element = _schema_elastic_san_read.properties.private_endpoint_connections.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType( + flags={"required": True, "client_flatten": True}, + ) + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + cls._build_schema_system_data_read(_element.system_data) + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = _schema_elastic_san_read.properties.private_endpoint_connections.Element.properties + properties.group_ids = AAZListType( + serialized_name="groupIds", + ) + properties.private_endpoint = AAZObjectType( + serialized_name="privateEndpoint", + ) + properties.private_link_service_connection_state = AAZObjectType( + serialized_name="privateLinkServiceConnectionState", + flags={"required": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + + group_ids = _schema_elastic_san_read.properties.private_endpoint_connections.Element.properties.group_ids + group_ids.Element = AAZStrType() + + private_endpoint = _schema_elastic_san_read.properties.private_endpoint_connections.Element.properties.private_endpoint + private_endpoint.id = AAZStrType( + flags={"read_only": True}, + ) + + private_link_service_connection_state = _schema_elastic_san_read.properties.private_endpoint_connections.Element.properties.private_link_service_connection_state + private_link_service_connection_state.actions_required = AAZStrType( + serialized_name="actionsRequired", + ) + private_link_service_connection_state.description = AAZStrType() + private_link_service_connection_state.status = AAZStrType() + + sku = _schema_elastic_san_read.properties.sku + sku.name = AAZStrType( + flags={"required": True}, + ) + sku.tier = AAZStrType() + + tags = _schema_elastic_san_read.tags + tags.Element = AAZStrType() + + _schema.id = cls._schema_elastic_san_read.id + _schema.location = cls._schema_elastic_san_read.location + _schema.name = cls._schema_elastic_san_read.name + _schema.properties = cls._schema_elastic_san_read.properties + _schema.system_data = cls._schema_elastic_san_read.system_data + _schema.tags = cls._schema_elastic_san_read.tags + _schema.type = cls._schema_elastic_san_read.type + + _schema_system_data_read = None + + @classmethod + def _build_schema_system_data_read(cls, _schema): + if cls._schema_system_data_read is not None: + _schema.created_at = cls._schema_system_data_read.created_at + _schema.created_by = cls._schema_system_data_read.created_by + _schema.created_by_type = cls._schema_system_data_read.created_by_type + _schema.last_modified_at = cls._schema_system_data_read.last_modified_at + _schema.last_modified_by = cls._schema_system_data_read.last_modified_by + _schema.last_modified_by_type = cls._schema_system_data_read.last_modified_by_type + return + + cls._schema_system_data_read = _schema_system_data_read = AAZObjectType( + flags={"read_only": True} + ) + + system_data_read = _schema_system_data_read + system_data_read.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data_read.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data_read.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data_read.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data_read.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data_read.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + _schema.created_at = cls._schema_system_data_read.created_at + _schema.created_by = cls._schema_system_data_read.created_by + _schema.created_by_type = cls._schema_system_data_read.created_by_type + _schema.last_modified_at = cls._schema_system_data_read.last_modified_at + _schema.last_modified_by = cls._schema_system_data_read.last_modified_by + _schema.last_modified_by_type = cls._schema_system_data_read.last_modified_by_type __all__ = ["Update"] diff --git a/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/_wait.py b/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/_wait.py index c2874fa0186..19442e03483 100644 --- a/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/_wait.py +++ b/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/_wait.py @@ -20,7 +20,7 @@ class Wait(AAZWaitCommand): _aaz_info = { "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}", "2021-11-20-preview"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}", "2022-12-01-preview"], ] } @@ -61,11 +61,11 @@ def _execute_operations(self): self.ElasticSansGet(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass @@ -121,7 +121,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2021-11-20-preview", + "api-version", "2022-12-01-preview", required=True, ), } @@ -157,7 +157,9 @@ def _build_schema_on_200(cls): _schema_on_200.id = AAZStrType( flags={"read_only": True}, ) - _schema_on_200.location = AAZStrType() + _schema_on_200.location = AAZStrType( + flags={"required": True}, + ) _schema_on_200.name = AAZStrType( flags={"read_only": True}, ) @@ -168,6 +170,7 @@ def _build_schema_on_200(cls): serialized_name="systemData", flags={"read_only": True}, ) + _WaitHelper._build_schema_system_data_read(_schema_on_200.system_data) _schema_on_200.tags = AAZDictType() _schema_on_200.type = AAZStrType( flags={"read_only": True}, @@ -185,6 +188,10 @@ def _build_schema_on_200(cls): serialized_name="extendedCapacitySizeTiB", flags={"required": True}, ) + properties.private_endpoint_connections = AAZListType( + serialized_name="privateEndpointConnections", + flags={"read_only": True}, + ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", flags={"read_only": True}, @@ -216,42 +223,117 @@ def _build_schema_on_200(cls): availability_zones = cls._schema_on_200.properties.availability_zones availability_zones.Element = AAZStrType() - sku = cls._schema_on_200.properties.sku - sku.name = AAZStrType( - flags={"required": True}, - ) - sku.tier = AAZStrType() + private_endpoint_connections = cls._schema_on_200.properties.private_endpoint_connections + private_endpoint_connections.Element = AAZObjectType() - system_data = cls._schema_on_200.system_data - system_data.created_at = AAZStrType( - serialized_name="createdAt", + _element = cls._schema_on_200.properties.private_endpoint_connections.Element + _element.id = AAZStrType( flags={"read_only": True}, ) - system_data.created_by = AAZStrType( - serialized_name="createdBy", + _element.name = AAZStrType( flags={"read_only": True}, ) - system_data.created_by_type = AAZStrType( - serialized_name="createdByType", + _element.properties = AAZObjectType( + flags={"required": True, "client_flatten": True}, + ) + _element.system_data = AAZObjectType( + serialized_name="systemData", flags={"read_only": True}, ) - system_data.last_modified_at = AAZStrType( - serialized_name="lastModifiedAt", + _WaitHelper._build_schema_system_data_read(_element.system_data) + _element.type = AAZStrType( flags={"read_only": True}, ) - system_data.last_modified_by = AAZStrType( - serialized_name="lastModifiedBy", + + properties = cls._schema_on_200.properties.private_endpoint_connections.Element.properties + properties.group_ids = AAZListType( + serialized_name="groupIds", + ) + properties.private_endpoint = AAZObjectType( + serialized_name="privateEndpoint", + ) + properties.private_link_service_connection_state = AAZObjectType( + serialized_name="privateLinkServiceConnectionState", + flags={"required": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", flags={"read_only": True}, ) - system_data.last_modified_by_type = AAZStrType( - serialized_name="lastModifiedByType", + + group_ids = cls._schema_on_200.properties.private_endpoint_connections.Element.properties.group_ids + group_ids.Element = AAZStrType() + + private_endpoint = cls._schema_on_200.properties.private_endpoint_connections.Element.properties.private_endpoint + private_endpoint.id = AAZStrType( flags={"read_only": True}, ) + private_link_service_connection_state = cls._schema_on_200.properties.private_endpoint_connections.Element.properties.private_link_service_connection_state + private_link_service_connection_state.actions_required = AAZStrType( + serialized_name="actionsRequired", + ) + private_link_service_connection_state.description = AAZStrType() + private_link_service_connection_state.status = AAZStrType() + + sku = cls._schema_on_200.properties.sku + sku.name = AAZStrType( + flags={"required": True}, + ) + sku.tier = AAZStrType() + tags = cls._schema_on_200.tags tags.Element = AAZStrType() return cls._schema_on_200 +class _WaitHelper: + """Helper class for Wait""" + + _schema_system_data_read = None + + @classmethod + def _build_schema_system_data_read(cls, _schema): + if cls._schema_system_data_read is not None: + _schema.created_at = cls._schema_system_data_read.created_at + _schema.created_by = cls._schema_system_data_read.created_by + _schema.created_by_type = cls._schema_system_data_read.created_by_type + _schema.last_modified_at = cls._schema_system_data_read.last_modified_at + _schema.last_modified_by = cls._schema_system_data_read.last_modified_by + _schema.last_modified_by_type = cls._schema_system_data_read.last_modified_by_type + return + + cls._schema_system_data_read = _schema_system_data_read = AAZObjectType( + flags={"read_only": True} + ) + + system_data_read = _schema_system_data_read + system_data_read.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data_read.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data_read.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data_read.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data_read.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data_read.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + _schema.created_at = cls._schema_system_data_read.created_at + _schema.created_by = cls._schema_system_data_read.created_by + _schema.created_by_type = cls._schema_system_data_read.created_by_type + _schema.last_modified_at = cls._schema_system_data_read.last_modified_at + _schema.last_modified_by = cls._schema_system_data_read.last_modified_by + _schema.last_modified_by_type = cls._schema_system_data_read.last_modified_by_type + + __all__ = ["Wait"] diff --git a/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/volume/_create.py b/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/volume/_create.py index ec049ed4ae2..efbb74d090d 100644 --- a/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/volume/_create.py +++ b/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/volume/_create.py @@ -23,9 +23,9 @@ class Create(AAZCommand): """ _aaz_info = { - "version": "2021-11-20-preview", + "version": "2022-12-01-preview", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}/volumegroups/{}/volumes/{}", "2021-11-20-preview"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}/volumegroups/{}/volumes/{}", "2022-12-01-preview"], ] } @@ -50,7 +50,6 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["-e", "--elastic-san-name"], help="The name of the ElasticSan.", required=True, - id_part="name", fmt=AAZStrArgFormat( pattern="^[A-Za-z0-9]+((-|_)[a-z0-9A-Z]+)*$", max_length=24, @@ -64,7 +63,6 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["-v", "--volume-group-name"], help="The name of the VolumeGroup.", required=True, - id_part="child_name_1", fmt=AAZStrArgFormat( pattern="^[A-Za-z0-9]+((-|_)[a-z0-9A-Z]+)*$", max_length=63, @@ -75,7 +73,6 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["-n", "--name", "--volume-name"], help="The name of the Volume.", required=True, - id_part="child_name_2", fmt=AAZStrArgFormat( pattern="^[a-z0-9]+(-[a-z0-9A-Z]+)*$", max_length=63, @@ -83,18 +80,6 @@ def _build_arguments_schema(cls, *args, **kwargs): ), ) - # define Arg Group "Parameters" - - _args_schema = cls._args_schema - _args_schema.tags = AAZDictArg( - options=["--tags"], - arg_group="Parameters", - help="Azure resource tags.", - ) - - tags = cls._args_schema.tags - tags.Element = AAZStrArg() - # define Arg Group "Properties" _args_schema = cls._args_schema @@ -107,6 +92,7 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["--size-gib"], arg_group="Properties", help="Volume size.", + required=True, ) creation_data = cls._args_schema.creation_data @@ -126,11 +112,11 @@ def _execute_operations(self): yield self.VolumesCreate(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass @@ -148,18 +134,18 @@ def __call__(self, *args, **kwargs): return self.client.build_lro_polling( self.ctx.args.no_wait, session, - self.on_200, + self.on_200_201, 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]: + if session.http_response.status_code in [200, 201]: return self.client.build_lro_polling( self.ctx.args.no_wait, session, - self.on_200, + self.on_200_201, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) @@ -210,7 +196,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2021-11-20-preview", + "api-version", "2022-12-01-preview", required=True, ), } @@ -235,161 +221,124 @@ def content(self): typ=AAZObjectType, typ_kwargs={"flags": {"required": True, "client_flatten": True}} ) - _builder.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) - _builder.set_prop("tags", AAZDictType, ".tags") + _builder.set_prop("properties", AAZObjectType, ".", typ_kwargs={"flags": {"required": True, "client_flatten": True}}) properties = _builder.get(".properties") if properties is not None: properties.set_prop("creationData", AAZObjectType, ".creation_data") - properties.set_prop("sizeGiB", AAZIntType, ".size_gib") + properties.set_prop("sizeGiB", AAZIntType, ".size_gib", typ_kwargs={"flags": {"required": True}}) creation_data = _builder.get(".properties.creationData") if creation_data is not None: creation_data.set_prop("createSource", AAZStrType, ".create_source") creation_data.set_prop("sourceUri", AAZStrType, ".source_uri") - tags = _builder.get(".tags") - if tags is not None: - tags.set_elements(AAZStrType, ".") - return self.serialize_content(_content_value) - def on_200(self, session): + 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 + schema_builder=self._build_schema_on_200_201 ) - _schema_on_200 = None + _schema_on_200_201 = 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() - _build_schema_volume_read(cls._schema_on_200) - - return cls._schema_on_200 - - -_schema_volume_read = None - - -def _build_schema_volume_read(_schema): - global _schema_volume_read - if _schema_volume_read is not None: - _schema.id = _schema_volume_read.id - _schema.name = _schema_volume_read.name - _schema.properties = _schema_volume_read.properties - _schema.system_data = _schema_volume_read.system_data - _schema.tags = _schema_volume_read.tags - _schema.type = _schema_volume_read.type - return - - _schema_volume_read = AAZObjectType() - - volume_read = _schema_volume_read - volume_read.id = AAZStrType( - flags={"read_only": True}, - ) - volume_read.name = AAZStrType( - flags={"read_only": True}, - ) - volume_read.properties = AAZObjectType( - flags={"client_flatten": True}, - ) - volume_read.system_data = AAZObjectType( - serialized_name="systemData", - flags={"read_only": True}, - ) - volume_read.tags = AAZDictType() - volume_read.type = AAZStrType( - flags={"read_only": True}, - ) - - properties = _schema_volume_read.properties - properties.creation_data = AAZObjectType( - serialized_name="creationData", - ) - properties.size_gi_b = AAZIntType( - serialized_name="sizeGiB", - ) - properties.storage_target = AAZObjectType( - serialized_name="storageTarget", - flags={"read_only": True}, - ) - properties.volume_id = AAZStrType( - serialized_name="volumeId", - flags={"read_only": True}, - ) - - creation_data = _schema_volume_read.properties.creation_data - creation_data.create_source = AAZStrType( - serialized_name="createSource", - ) - creation_data.source_uri = AAZStrType( - serialized_name="sourceUri", - ) - - storage_target = _schema_volume_read.properties.storage_target - storage_target.provisioning_state = AAZStrType( - serialized_name="provisioningState", - flags={"read_only": True}, - ) - storage_target.status = AAZStrType( - flags={"read_only": True}, - ) - storage_target.target_iqn = AAZStrType( - serialized_name="targetIqn", - flags={"read_only": True}, - ) - storage_target.target_portal_hostname = AAZStrType( - serialized_name="targetPortalHostname", - flags={"read_only": True}, - ) - storage_target.target_portal_port = AAZIntType( - serialized_name="targetPortalPort", - flags={"read_only": True}, - ) - - system_data = _schema_volume_read.system_data - system_data.created_at = AAZStrType( - serialized_name="createdAt", - flags={"read_only": True}, - ) - system_data.created_by = AAZStrType( - serialized_name="createdBy", - flags={"read_only": True}, - ) - system_data.created_by_type = AAZStrType( - serialized_name="createdByType", - flags={"read_only": True}, - ) - system_data.last_modified_at = AAZStrType( - serialized_name="lastModifiedAt", - flags={"read_only": True}, - ) - system_data.last_modified_by = AAZStrType( - serialized_name="lastModifiedBy", - flags={"read_only": True}, - ) - system_data.last_modified_by_type = AAZStrType( - serialized_name="lastModifiedByType", - flags={"read_only": True}, - ) - - tags = _schema_volume_read.tags - tags.Element = AAZStrType() - - _schema.id = _schema_volume_read.id - _schema.name = _schema_volume_read.name - _schema.properties = _schema_volume_read.properties - _schema.system_data = _schema_volume_read.system_data - _schema.tags = _schema_volume_read.tags - _schema.type = _schema_volume_read.type + 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={"required": True, "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.creation_data = AAZObjectType( + serialized_name="creationData", + ) + properties.size_gi_b = AAZIntType( + serialized_name="sizeGiB", + flags={"required": True}, + ) + properties.storage_target = AAZObjectType( + serialized_name="storageTarget", + flags={"read_only": True}, + ) + properties.volume_id = AAZStrType( + serialized_name="volumeId", + flags={"read_only": True}, + ) + + creation_data = cls._schema_on_200_201.properties.creation_data + creation_data.create_source = AAZStrType( + serialized_name="createSource", + ) + creation_data.source_uri = AAZStrType( + serialized_name="sourceUri", + ) + + storage_target = cls._schema_on_200_201.properties.storage_target + storage_target.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + storage_target.status = AAZStrType() + storage_target.target_iqn = AAZStrType( + serialized_name="targetIqn", + flags={"read_only": True}, + ) + storage_target.target_portal_hostname = AAZStrType( + serialized_name="targetPortalHostname", + flags={"read_only": True}, + ) + storage_target.target_portal_port = AAZIntType( + serialized_name="targetPortalPort", + 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/elastic-san/azext_elastic_san/aaz/latest/elastic_san/volume/_delete.py b/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/volume/_delete.py index f7e802305d8..4bf7f3887f3 100644 --- a/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/volume/_delete.py +++ b/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/volume/_delete.py @@ -24,9 +24,9 @@ class Delete(AAZCommand): """ _aaz_info = { - "version": "2021-11-20-preview", + "version": "2022-12-01-preview", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}/volumegroups/{}/volumes/{}", "2021-11-20-preview"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}/volumegroups/{}/volumes/{}", "2022-12-01-preview"], ] } @@ -90,11 +90,11 @@ def _execute_operations(self): yield self.VolumesDelete(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass @@ -110,7 +110,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]: @@ -119,7 +119,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]: @@ -128,7 +128,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, ) @@ -179,7 +179,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2021-11-20-preview", + "api-version", "2022-12-01-preview", required=True, ), } @@ -192,4 +192,8 @@ def on_204(self, session): pass +class _DeleteHelper: + """Helper class for Delete""" + + __all__ = ["Delete"] diff --git a/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/volume/_list.py b/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/volume/_list.py index 79bbae9cf5e..08753d74ca9 100644 --- a/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/volume/_list.py +++ b/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/volume/_list.py @@ -23,12 +23,14 @@ class List(AAZCommand): """ _aaz_info = { - "version": "2021-11-20-preview", + "version": "2022-12-01-preview", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}/volumegroups/{}/volumes", "2021-11-20-preview"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}/volumegroups/{}/volumes", "2022-12-01-preview"], ] } + AZ_SUPPORT_PAGINATION = True + def _handler(self, command_args): super()._handler(command_args) return self.build_paging(self._execute_operations, self._output) @@ -74,11 +76,11 @@ def _execute_operations(self): self.VolumesListByVolumeGroup(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass @@ -139,7 +141,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2021-11-20-preview", + "api-version", "2022-12-01-preview", required=True, ), } @@ -176,9 +178,7 @@ def _build_schema_on_200(cls): serialized_name="nextLink", flags={"read_only": True}, ) - _schema_on_200.value = AAZListType( - flags={"required": True}, - ) + _schema_on_200.value = AAZListType() value = cls._schema_on_200.value value.Element = AAZObjectType() @@ -191,13 +191,12 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) _element.properties = AAZObjectType( - flags={"client_flatten": True}, + flags={"required": True, "client_flatten": True}, ) _element.system_data = AAZObjectType( serialized_name="systemData", flags={"read_only": True}, ) - _element.tags = AAZDictType() _element.type = AAZStrType( flags={"read_only": True}, ) @@ -208,6 +207,7 @@ def _build_schema_on_200(cls): ) properties.size_gi_b = AAZIntType( serialized_name="sizeGiB", + flags={"required": True}, ) properties.storage_target = AAZObjectType( serialized_name="storageTarget", @@ -231,9 +231,7 @@ def _build_schema_on_200(cls): serialized_name="provisioningState", flags={"read_only": True}, ) - storage_target.status = AAZStrType( - flags={"read_only": True}, - ) + storage_target.status = AAZStrType() storage_target.target_iqn = AAZStrType( serialized_name="targetIqn", flags={"read_only": True}, @@ -250,33 +248,28 @@ def _build_schema_on_200(cls): system_data = cls._schema_on_200.value.Element.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", - flags={"read_only": True}, ) system_data.created_by = AAZStrType( serialized_name="createdBy", - flags={"read_only": True}, ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", - flags={"read_only": True}, ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", - flags={"read_only": True}, ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", - flags={"read_only": True}, ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", - flags={"read_only": True}, ) - tags = cls._schema_on_200.value.Element.tags - tags.Element = AAZStrType() - return cls._schema_on_200 +class _ListHelper: + """Helper class for List""" + + __all__ = ["List"] diff --git a/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/volume/_show.py b/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/volume/_show.py index 5fc3f7560e1..c694c15573a 100644 --- a/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/volume/_show.py +++ b/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/volume/_show.py @@ -23,9 +23,9 @@ class Show(AAZCommand): """ _aaz_info = { - "version": "2021-11-20-preview", + "version": "2022-12-01-preview", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}/volumegroups/{}/volumes/{}", "2021-11-20-preview"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}/volumegroups/{}/volumes/{}", "2022-12-01-preview"], ] } @@ -88,11 +88,11 @@ def _execute_operations(self): self.VolumesGet(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass @@ -156,7 +156,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2021-11-20-preview", + "api-version", "2022-12-01-preview", required=True, ), } @@ -196,13 +196,12 @@ def _build_schema_on_200(cls): flags={"read_only": True}, ) _schema_on_200.properties = AAZObjectType( - flags={"client_flatten": True}, + flags={"required": True, "client_flatten": 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}, ) @@ -213,6 +212,7 @@ def _build_schema_on_200(cls): ) properties.size_gi_b = AAZIntType( serialized_name="sizeGiB", + flags={"required": True}, ) properties.storage_target = AAZObjectType( serialized_name="storageTarget", @@ -236,9 +236,7 @@ def _build_schema_on_200(cls): serialized_name="provisioningState", flags={"read_only": True}, ) - storage_target.status = AAZStrType( - flags={"read_only": True}, - ) + storage_target.status = AAZStrType() storage_target.target_iqn = AAZStrType( serialized_name="targetIqn", flags={"read_only": True}, @@ -255,33 +253,28 @@ def _build_schema_on_200(cls): system_data = cls._schema_on_200.system_data system_data.created_at = AAZStrType( serialized_name="createdAt", - flags={"read_only": True}, ) system_data.created_by = AAZStrType( serialized_name="createdBy", - flags={"read_only": True}, ) system_data.created_by_type = AAZStrType( serialized_name="createdByType", - flags={"read_only": True}, ) system_data.last_modified_at = AAZStrType( serialized_name="lastModifiedAt", - flags={"read_only": True}, ) system_data.last_modified_by = AAZStrType( serialized_name="lastModifiedBy", - flags={"read_only": True}, ) system_data.last_modified_by_type = AAZStrType( serialized_name="lastModifiedByType", - flags={"read_only": True}, ) - tags = cls._schema_on_200.tags - tags.Element = AAZStrType() - return cls._schema_on_200 +class _ShowHelper: + """Helper class for Show""" + + __all__ = ["Show"] diff --git a/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/volume/_update.py b/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/volume/_update.py index 05e41dde2e3..0506bef6b93 100644 --- a/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/volume/_update.py +++ b/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/volume/_update.py @@ -23,9 +23,9 @@ class Update(AAZCommand): """ _aaz_info = { - "version": "2021-11-20-preview", + "version": "2022-12-01-preview", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}/volumegroups/{}/volumes/{}", "2021-11-20-preview"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}/volumegroups/{}/volumes/{}", "2022-12-01-preview"], ] } @@ -85,21 +85,6 @@ def _build_arguments_schema(cls, *args, **kwargs): ), ) - # define Arg Group "Parameters" - - _args_schema = cls._args_schema - _args_schema.tags = AAZDictArg( - options=["--tags"], - arg_group="Parameters", - help="Azure resource tags.", - nullable=True, - ) - - tags = cls._args_schema.tags - tags.Element = AAZStrArg( - nullable=True, - ) - # define Arg Group "Properties" _args_schema = cls._args_schema @@ -113,7 +98,6 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["--size-gib"], arg_group="Properties", help="Volume size.", - nullable=True, ) creation_data = cls._args_schema.creation_data @@ -140,19 +124,19 @@ def _execute_operations(self): yield self.VolumesCreate(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass - # @register_callback + @register_callback def pre_instance_update(self, instance): pass - # @register_callback + @register_callback def post_instance_update(self, instance): pass @@ -216,7 +200,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2021-11-20-preview", + "api-version", "2022-12-01-preview", required=True, ), } @@ -247,7 +231,7 @@ def _build_schema_on_200(cls): return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() - _build_schema_volume_read(cls._schema_on_200) + _UpdateHelper._build_schema_volume_read(cls._schema_on_200) return cls._schema_on_200 @@ -261,18 +245,18 @@ def __call__(self, *args, **kwargs): return self.client.build_lro_polling( self.ctx.args.no_wait, session, - self.on_200, + self.on_200_201, 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]: + if session.http_response.status_code in [200, 201]: return self.client.build_lro_polling( self.ctx.args.no_wait, session, - self.on_200, + self.on_200_201, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) @@ -323,7 +307,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2021-11-20-preview", + "api-version", "2022-12-01-preview", required=True, ), } @@ -350,25 +334,25 @@ def content(self): return self.serialize_content(_content_value) - def on_200(self, session): + 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 + schema_builder=self._build_schema_on_200_201 ) - _schema_on_200 = None + _schema_on_200_201 = None @classmethod - def _build_schema_on_200(cls): - if cls._schema_on_200 is not None: - return cls._schema_on_200 + 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 = AAZObjectType() - _build_schema_volume_read(cls._schema_on_200) + cls._schema_on_200_201 = AAZObjectType() + _UpdateHelper._build_schema_volume_read(cls._schema_on_200_201) - return cls._schema_on_200 + return cls._schema_on_200_201 class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): @@ -381,23 +365,18 @@ def _update_instance(self, instance): value=instance, typ=AAZObjectType ) - _builder.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) - _builder.set_prop("tags", AAZDictType, ".tags") + _builder.set_prop("properties", AAZObjectType, ".", typ_kwargs={"flags": {"required": True, "client_flatten": True}}) properties = _builder.get(".properties") if properties is not None: properties.set_prop("creationData", AAZObjectType, ".creation_data") - properties.set_prop("sizeGiB", AAZIntType, ".size_gib") + properties.set_prop("sizeGiB", AAZIntType, ".size_gib", typ_kwargs={"flags": {"required": True}}) creation_data = _builder.get(".properties.creationData") if creation_data is not None: creation_data.set_prop("createSource", AAZStrType, ".create_source") creation_data.set_prop("sourceUri", AAZStrType, ".source_uri") - tags = _builder.get(".tags") - if tags is not None: - tags.set_elements(AAZStrType, ".") - return _instance_value class InstanceUpdateByGeneric(AAZGenericInstanceUpdateOperation): @@ -409,121 +388,110 @@ def __call__(self, *args, **kwargs): ) -_schema_volume_read = None - - -def _build_schema_volume_read(_schema): - global _schema_volume_read - if _schema_volume_read is not None: - _schema.id = _schema_volume_read.id - _schema.name = _schema_volume_read.name - _schema.properties = _schema_volume_read.properties - _schema.system_data = _schema_volume_read.system_data - _schema.tags = _schema_volume_read.tags - _schema.type = _schema_volume_read.type - return - - _schema_volume_read = AAZObjectType() - - volume_read = _schema_volume_read - volume_read.id = AAZStrType( - flags={"read_only": True}, - ) - volume_read.name = AAZStrType( - flags={"read_only": True}, - ) - volume_read.properties = AAZObjectType( - flags={"client_flatten": True}, - ) - volume_read.system_data = AAZObjectType( - serialized_name="systemData", - flags={"read_only": True}, - ) - volume_read.tags = AAZDictType() - volume_read.type = AAZStrType( - flags={"read_only": True}, - ) - - properties = _schema_volume_read.properties - properties.creation_data = AAZObjectType( - serialized_name="creationData", - ) - properties.size_gi_b = AAZIntType( - serialized_name="sizeGiB", - ) - properties.storage_target = AAZObjectType( - serialized_name="storageTarget", - flags={"read_only": True}, - ) - properties.volume_id = AAZStrType( - serialized_name="volumeId", - flags={"read_only": True}, - ) - - creation_data = _schema_volume_read.properties.creation_data - creation_data.create_source = AAZStrType( - serialized_name="createSource", - ) - creation_data.source_uri = AAZStrType( - serialized_name="sourceUri", - ) - - storage_target = _schema_volume_read.properties.storage_target - storage_target.provisioning_state = AAZStrType( - serialized_name="provisioningState", - flags={"read_only": True}, - ) - storage_target.status = AAZStrType( - flags={"read_only": True}, - ) - storage_target.target_iqn = AAZStrType( - serialized_name="targetIqn", - flags={"read_only": True}, - ) - storage_target.target_portal_hostname = AAZStrType( - serialized_name="targetPortalHostname", - flags={"read_only": True}, - ) - storage_target.target_portal_port = AAZIntType( - serialized_name="targetPortalPort", - flags={"read_only": True}, - ) - - system_data = _schema_volume_read.system_data - system_data.created_at = AAZStrType( - serialized_name="createdAt", - flags={"read_only": True}, - ) - system_data.created_by = AAZStrType( - serialized_name="createdBy", - flags={"read_only": True}, - ) - system_data.created_by_type = AAZStrType( - serialized_name="createdByType", - flags={"read_only": True}, - ) - system_data.last_modified_at = AAZStrType( - serialized_name="lastModifiedAt", - flags={"read_only": True}, - ) - system_data.last_modified_by = AAZStrType( - serialized_name="lastModifiedBy", - flags={"read_only": True}, - ) - system_data.last_modified_by_type = AAZStrType( - serialized_name="lastModifiedByType", - flags={"read_only": True}, - ) - - tags = _schema_volume_read.tags - tags.Element = AAZStrType() - - _schema.id = _schema_volume_read.id - _schema.name = _schema_volume_read.name - _schema.properties = _schema_volume_read.properties - _schema.system_data = _schema_volume_read.system_data - _schema.tags = _schema_volume_read.tags - _schema.type = _schema_volume_read.type +class _UpdateHelper: + """Helper class for Update""" + + _schema_volume_read = None + + @classmethod + def _build_schema_volume_read(cls, _schema): + if cls._schema_volume_read is not None: + _schema.id = cls._schema_volume_read.id + _schema.name = cls._schema_volume_read.name + _schema.properties = cls._schema_volume_read.properties + _schema.system_data = cls._schema_volume_read.system_data + _schema.type = cls._schema_volume_read.type + return + + cls._schema_volume_read = _schema_volume_read = AAZObjectType() + + volume_read = _schema_volume_read + volume_read.id = AAZStrType( + flags={"read_only": True}, + ) + volume_read.name = AAZStrType( + flags={"read_only": True}, + ) + volume_read.properties = AAZObjectType( + flags={"required": True, "client_flatten": True}, + ) + volume_read.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + volume_read.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = _schema_volume_read.properties + properties.creation_data = AAZObjectType( + serialized_name="creationData", + ) + properties.size_gi_b = AAZIntType( + serialized_name="sizeGiB", + flags={"required": True}, + ) + properties.storage_target = AAZObjectType( + serialized_name="storageTarget", + flags={"read_only": True}, + ) + properties.volume_id = AAZStrType( + serialized_name="volumeId", + flags={"read_only": True}, + ) + + creation_data = _schema_volume_read.properties.creation_data + creation_data.create_source = AAZStrType( + serialized_name="createSource", + ) + creation_data.source_uri = AAZStrType( + serialized_name="sourceUri", + ) + + storage_target = _schema_volume_read.properties.storage_target + storage_target.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + storage_target.status = AAZStrType() + storage_target.target_iqn = AAZStrType( + serialized_name="targetIqn", + flags={"read_only": True}, + ) + storage_target.target_portal_hostname = AAZStrType( + serialized_name="targetPortalHostname", + flags={"read_only": True}, + ) + storage_target.target_portal_port = AAZIntType( + serialized_name="targetPortalPort", + flags={"read_only": True}, + ) + + system_data = _schema_volume_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_volume_read.id + _schema.name = cls._schema_volume_read.name + _schema.properties = cls._schema_volume_read.properties + _schema.system_data = cls._schema_volume_read.system_data + _schema.type = cls._schema_volume_read.type __all__ = ["Update"] diff --git a/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/volume_group/_create.py b/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/volume_group/_create.py index fddcd9eecf0..6d11c60e4b3 100644 --- a/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/volume_group/_create.py +++ b/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/volume_group/_create.py @@ -23,9 +23,9 @@ class Create(AAZCommand): """ _aaz_info = { - "version": "2021-11-20-preview", + "version": "2022-12-01-preview", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}/volumegroups/{}", "2021-11-20-preview"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}/volumegroups/{}", "2022-12-01-preview"], ] } @@ -50,7 +50,6 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["-e", "--elastic-san-name"], help="The name of the ElasticSan.", required=True, - id_part="name", fmt=AAZStrArgFormat( pattern="^[A-Za-z0-9]+((-|_)[a-z0-9A-Z]+)*$", max_length=24, @@ -64,7 +63,6 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["-n", "--name", "--volume-group-name"], help="The name of the VolumeGroup.", required=True, - id_part="child_name_1", fmt=AAZStrArgFormat( pattern="^[A-Za-z0-9]+((-|_)[a-z0-9A-Z]+)*$", max_length=63, @@ -72,18 +70,6 @@ def _build_arguments_schema(cls, *args, **kwargs): ), ) - # define Arg Group "Parameters" - - _args_schema = cls._args_schema - _args_schema.tags = AAZDictArg( - options=["--tags"], - arg_group="Parameters", - help="Azure resource tags.", - ) - - tags = cls._args_schema.tags - tags.Element = AAZStrArg() - # define Arg Group "Properties" _args_schema = cls._args_schema @@ -133,11 +119,11 @@ def _execute_operations(self): yield self.VolumeGroupsCreate(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass @@ -155,18 +141,18 @@ def __call__(self, *args, **kwargs): return self.client.build_lro_polling( self.ctx.args.no_wait, session, - self.on_200, + self.on_200_201, 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]: + if session.http_response.status_code in [200, 201]: return self.client.build_lro_polling( self.ctx.args.no_wait, session, - self.on_200, + self.on_200_201, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) @@ -213,7 +199,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2021-11-20-preview", + "api-version", "2022-12-01-preview", required=True, ), } @@ -239,7 +225,6 @@ def content(self): typ_kwargs={"flags": {"required": True, "client_flatten": True}} ) _builder.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) - _builder.set_prop("tags", AAZDictType, ".tags") properties = _builder.get(".properties") if properties is not None: @@ -260,133 +245,180 @@ def content(self): _elements.set_prop("action", AAZStrType, ".action") _elements.set_prop("id", AAZStrType, ".id", typ_kwargs={"flags": {"required": True}}) - tags = _builder.get(".tags") - if tags is not None: - tags.set_elements(AAZStrType, ".") - return self.serialize_content(_content_value) - def on_200(self, session): + 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 + schema_builder=self._build_schema_on_200_201 ) - _schema_on_200 = None + _schema_on_200_201 = 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() - _build_schema_volume_group_read(cls._schema_on_200) - - return cls._schema_on_200 - - -_schema_volume_group_read = None - - -def _build_schema_volume_group_read(_schema): - global _schema_volume_group_read - if _schema_volume_group_read is not None: - _schema.id = _schema_volume_group_read.id - _schema.name = _schema_volume_group_read.name - _schema.properties = _schema_volume_group_read.properties - _schema.system_data = _schema_volume_group_read.system_data - _schema.tags = _schema_volume_group_read.tags - _schema.type = _schema_volume_group_read.type - return - - _schema_volume_group_read = AAZObjectType() - - volume_group_read = _schema_volume_group_read - volume_group_read.id = AAZStrType( - flags={"read_only": True}, - ) - volume_group_read.name = AAZStrType( - flags={"read_only": True}, - ) - volume_group_read.properties = AAZObjectType( - flags={"client_flatten": True}, - ) - volume_group_read.system_data = AAZObjectType( - serialized_name="systemData", - flags={"read_only": True}, - ) - volume_group_read.tags = AAZDictType() - volume_group_read.type = AAZStrType( - flags={"read_only": True}, - ) - - properties = _schema_volume_group_read.properties - properties.encryption = AAZStrType() - properties.network_acls = AAZObjectType( - serialized_name="networkAcls", - ) - properties.protocol_type = AAZStrType( - serialized_name="protocolType", - ) - properties.provisioning_state = AAZStrType( - serialized_name="provisioningState", - flags={"read_only": True}, - ) - - network_acls = _schema_volume_group_read.properties.network_acls - network_acls.virtual_network_rules = AAZListType( - serialized_name="virtualNetworkRules", - ) - - virtual_network_rules = _schema_volume_group_read.properties.network_acls.virtual_network_rules - virtual_network_rules.Element = AAZObjectType() - - _element = _schema_volume_group_read.properties.network_acls.virtual_network_rules.Element - _element.action = AAZStrType() - _element.id = AAZStrType( - flags={"required": True}, - ) - _element.state = AAZStrType( - flags={"read_only": True}, - ) - - system_data = _schema_volume_group_read.system_data - system_data.created_at = AAZStrType( - serialized_name="createdAt", - flags={"read_only": True}, - ) - system_data.created_by = AAZStrType( - serialized_name="createdBy", - flags={"read_only": True}, - ) - system_data.created_by_type = AAZStrType( - serialized_name="createdByType", - flags={"read_only": True}, - ) - system_data.last_modified_at = AAZStrType( - serialized_name="lastModifiedAt", - flags={"read_only": True}, - ) - system_data.last_modified_by = AAZStrType( - serialized_name="lastModifiedBy", - flags={"read_only": True}, - ) - system_data.last_modified_by_type = AAZStrType( - serialized_name="lastModifiedByType", - flags={"read_only": True}, - ) - - tags = _schema_volume_group_read.tags - tags.Element = AAZStrType() - - _schema.id = _schema_volume_group_read.id - _schema.name = _schema_volume_group_read.name - _schema.properties = _schema_volume_group_read.properties - _schema.system_data = _schema_volume_group_read.system_data - _schema.tags = _schema_volume_group_read.tags - _schema.type = _schema_volume_group_read.type + 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}, + ) + _CreateHelper._build_schema_system_data_read(_schema_on_200_201.system_data) + _schema_on_200_201.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200_201.properties + properties.encryption = AAZStrType() + properties.network_acls = AAZObjectType( + serialized_name="networkAcls", + ) + properties.private_endpoint_connections = AAZListType( + serialized_name="privateEndpointConnections", + flags={"read_only": True}, + ) + properties.protocol_type = AAZStrType( + serialized_name="protocolType", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + + network_acls = cls._schema_on_200_201.properties.network_acls + network_acls.virtual_network_rules = AAZListType( + serialized_name="virtualNetworkRules", + ) + + virtual_network_rules = cls._schema_on_200_201.properties.network_acls.virtual_network_rules + virtual_network_rules.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.network_acls.virtual_network_rules.Element + _element.action = AAZStrType() + _element.id = AAZStrType( + flags={"required": True}, + ) + _element.state = AAZStrType( + flags={"read_only": True}, + ) + + private_endpoint_connections = cls._schema_on_200_201.properties.private_endpoint_connections + private_endpoint_connections.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.private_endpoint_connections.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType( + flags={"required": True, "client_flatten": True}, + ) + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _CreateHelper._build_schema_system_data_read(_element.system_data) + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200_201.properties.private_endpoint_connections.Element.properties + properties.group_ids = AAZListType( + serialized_name="groupIds", + ) + properties.private_endpoint = AAZObjectType( + serialized_name="privateEndpoint", + ) + properties.private_link_service_connection_state = AAZObjectType( + serialized_name="privateLinkServiceConnectionState", + flags={"required": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + + group_ids = cls._schema_on_200_201.properties.private_endpoint_connections.Element.properties.group_ids + group_ids.Element = AAZStrType() + + private_endpoint = cls._schema_on_200_201.properties.private_endpoint_connections.Element.properties.private_endpoint + private_endpoint.id = AAZStrType( + flags={"read_only": True}, + ) + + private_link_service_connection_state = cls._schema_on_200_201.properties.private_endpoint_connections.Element.properties.private_link_service_connection_state + private_link_service_connection_state.actions_required = AAZStrType( + serialized_name="actionsRequired", + ) + private_link_service_connection_state.description = AAZStrType() + private_link_service_connection_state.status = AAZStrType() + + return cls._schema_on_200_201 + + +class _CreateHelper: + """Helper class for Create""" + + _schema_system_data_read = None + + @classmethod + def _build_schema_system_data_read(cls, _schema): + if cls._schema_system_data_read is not None: + _schema.created_at = cls._schema_system_data_read.created_at + _schema.created_by = cls._schema_system_data_read.created_by + _schema.created_by_type = cls._schema_system_data_read.created_by_type + _schema.last_modified_at = cls._schema_system_data_read.last_modified_at + _schema.last_modified_by = cls._schema_system_data_read.last_modified_by + _schema.last_modified_by_type = cls._schema_system_data_read.last_modified_by_type + return + + cls._schema_system_data_read = _schema_system_data_read = AAZObjectType( + flags={"read_only": True} + ) + + system_data_read = _schema_system_data_read + system_data_read.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data_read.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data_read.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data_read.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data_read.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data_read.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + _schema.created_at = cls._schema_system_data_read.created_at + _schema.created_by = cls._schema_system_data_read.created_by + _schema.created_by_type = cls._schema_system_data_read.created_by_type + _schema.last_modified_at = cls._schema_system_data_read.last_modified_at + _schema.last_modified_by = cls._schema_system_data_read.last_modified_by + _schema.last_modified_by_type = cls._schema_system_data_read.last_modified_by_type __all__ = ["Create"] diff --git a/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/volume_group/_delete.py b/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/volume_group/_delete.py index b10a879eef2..ecc5fd09b19 100644 --- a/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/volume_group/_delete.py +++ b/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/volume_group/_delete.py @@ -24,9 +24,9 @@ class Delete(AAZCommand): """ _aaz_info = { - "version": "2021-11-20-preview", + "version": "2022-12-01-preview", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}/volumegroups/{}", "2021-11-20-preview"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}/volumegroups/{}", "2022-12-01-preview"], ] } @@ -79,11 +79,11 @@ def _execute_operations(self): yield self.VolumeGroupsDelete(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass @@ -99,7 +99,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]: @@ -108,7 +108,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]: @@ -117,7 +117,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, ) @@ -164,7 +164,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2021-11-20-preview", + "api-version", "2022-12-01-preview", required=True, ), } @@ -177,4 +177,8 @@ def on_204(self, session): pass +class _DeleteHelper: + """Helper class for Delete""" + + __all__ = ["Delete"] diff --git a/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/volume_group/_list.py b/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/volume_group/_list.py index 52d0321beb0..35ca3b12f4a 100644 --- a/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/volume_group/_list.py +++ b/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/volume_group/_list.py @@ -23,12 +23,14 @@ class List(AAZCommand): """ _aaz_info = { - "version": "2021-11-20-preview", + "version": "2022-12-01-preview", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}/volumegroups", "2021-11-20-preview"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}/volumegroups", "2022-12-01-preview"], ] } + AZ_SUPPORT_PAGINATION = True + def _handler(self, command_args): super()._handler(command_args) return self.build_paging(self._execute_operations, self._output) @@ -64,11 +66,11 @@ def _execute_operations(self): self.VolumeGroupsListByElasticSan(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass @@ -125,7 +127,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2021-11-20-preview", + "api-version", "2022-12-01-preview", required=True, ), } @@ -162,9 +164,7 @@ def _build_schema_on_200(cls): serialized_name="nextLink", flags={"read_only": True}, ) - _schema_on_200.value = AAZListType( - flags={"required": True}, - ) + _schema_on_200.value = AAZListType() value = cls._schema_on_200.value value.Element = AAZObjectType() @@ -183,7 +183,7 @@ def _build_schema_on_200(cls): serialized_name="systemData", flags={"read_only": True}, ) - _element.tags = AAZDictType() + _ListHelper._build_schema_system_data_read(_element.system_data) _element.type = AAZStrType( flags={"read_only": True}, ) @@ -193,6 +193,10 @@ def _build_schema_on_200(cls): properties.network_acls = AAZObjectType( serialized_name="networkAcls", ) + properties.private_endpoint_connections = AAZListType( + serialized_name="privateEndpointConnections", + flags={"read_only": True}, + ) properties.protocol_type = AAZStrType( serialized_name="protocolType", ) @@ -218,36 +222,108 @@ 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", + private_endpoint_connections = cls._schema_on_200.value.Element.properties.private_endpoint_connections + private_endpoint_connections.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.private_endpoint_connections.Element + _element.id = AAZStrType( flags={"read_only": True}, ) - system_data.created_by = AAZStrType( - serialized_name="createdBy", + _element.name = AAZStrType( flags={"read_only": True}, ) - system_data.created_by_type = AAZStrType( - serialized_name="createdByType", + _element.properties = AAZObjectType( + flags={"required": True, "client_flatten": True}, + ) + _element.system_data = AAZObjectType( + serialized_name="systemData", flags={"read_only": True}, ) - system_data.last_modified_at = AAZStrType( - serialized_name="lastModifiedAt", + _ListHelper._build_schema_system_data_read(_element.system_data) + _element.type = AAZStrType( flags={"read_only": True}, ) - system_data.last_modified_by = AAZStrType( - serialized_name="lastModifiedBy", + + properties = cls._schema_on_200.value.Element.properties.private_endpoint_connections.Element.properties + properties.group_ids = AAZListType( + serialized_name="groupIds", + ) + properties.private_endpoint = AAZObjectType( + serialized_name="privateEndpoint", + ) + properties.private_link_service_connection_state = AAZObjectType( + serialized_name="privateLinkServiceConnectionState", + flags={"required": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", flags={"read_only": True}, ) - system_data.last_modified_by_type = AAZStrType( - serialized_name="lastModifiedByType", + + group_ids = cls._schema_on_200.value.Element.properties.private_endpoint_connections.Element.properties.group_ids + group_ids.Element = AAZStrType() + + private_endpoint = cls._schema_on_200.value.Element.properties.private_endpoint_connections.Element.properties.private_endpoint + private_endpoint.id = AAZStrType( flags={"read_only": True}, ) - tags = cls._schema_on_200.value.Element.tags - tags.Element = AAZStrType() + private_link_service_connection_state = cls._schema_on_200.value.Element.properties.private_endpoint_connections.Element.properties.private_link_service_connection_state + private_link_service_connection_state.actions_required = AAZStrType( + serialized_name="actionsRequired", + ) + private_link_service_connection_state.description = AAZStrType() + private_link_service_connection_state.status = AAZStrType() return cls._schema_on_200 +class _ListHelper: + """Helper class for List""" + + _schema_system_data_read = None + + @classmethod + def _build_schema_system_data_read(cls, _schema): + if cls._schema_system_data_read is not None: + _schema.created_at = cls._schema_system_data_read.created_at + _schema.created_by = cls._schema_system_data_read.created_by + _schema.created_by_type = cls._schema_system_data_read.created_by_type + _schema.last_modified_at = cls._schema_system_data_read.last_modified_at + _schema.last_modified_by = cls._schema_system_data_read.last_modified_by + _schema.last_modified_by_type = cls._schema_system_data_read.last_modified_by_type + return + + cls._schema_system_data_read = _schema_system_data_read = AAZObjectType( + flags={"read_only": True} + ) + + system_data_read = _schema_system_data_read + system_data_read.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data_read.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data_read.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data_read.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data_read.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data_read.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + _schema.created_at = cls._schema_system_data_read.created_at + _schema.created_by = cls._schema_system_data_read.created_by + _schema.created_by_type = cls._schema_system_data_read.created_by_type + _schema.last_modified_at = cls._schema_system_data_read.last_modified_at + _schema.last_modified_by = cls._schema_system_data_read.last_modified_by + _schema.last_modified_by_type = cls._schema_system_data_read.last_modified_by_type + + __all__ = ["List"] diff --git a/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/volume_group/_show.py b/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/volume_group/_show.py index ae4feb68411..6c8c7af4b57 100644 --- a/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/volume_group/_show.py +++ b/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/volume_group/_show.py @@ -23,9 +23,9 @@ class Show(AAZCommand): """ _aaz_info = { - "version": "2021-11-20-preview", + "version": "2022-12-01-preview", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}/volumegroups/{}", "2021-11-20-preview"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}/volumegroups/{}", "2022-12-01-preview"], ] } @@ -77,11 +77,11 @@ def _execute_operations(self): self.VolumeGroupsGet(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass @@ -141,7 +141,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2021-11-20-preview", + "api-version", "2022-12-01-preview", required=True, ), } @@ -187,7 +187,7 @@ def _build_schema_on_200(cls): serialized_name="systemData", flags={"read_only": True}, ) - _schema_on_200.tags = AAZDictType() + _ShowHelper._build_schema_system_data_read(_schema_on_200.system_data) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) @@ -197,6 +197,10 @@ def _build_schema_on_200(cls): properties.network_acls = AAZObjectType( serialized_name="networkAcls", ) + properties.private_endpoint_connections = AAZListType( + serialized_name="privateEndpointConnections", + flags={"read_only": True}, + ) properties.protocol_type = AAZStrType( serialized_name="protocolType", ) @@ -222,36 +226,108 @@ 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", + private_endpoint_connections = cls._schema_on_200.properties.private_endpoint_connections + private_endpoint_connections.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.private_endpoint_connections.Element + _element.id = AAZStrType( flags={"read_only": True}, ) - system_data.created_by = AAZStrType( - serialized_name="createdBy", + _element.name = AAZStrType( flags={"read_only": True}, ) - system_data.created_by_type = AAZStrType( - serialized_name="createdByType", + _element.properties = AAZObjectType( + flags={"required": True, "client_flatten": True}, + ) + _element.system_data = AAZObjectType( + serialized_name="systemData", flags={"read_only": True}, ) - system_data.last_modified_at = AAZStrType( - serialized_name="lastModifiedAt", + _ShowHelper._build_schema_system_data_read(_element.system_data) + _element.type = AAZStrType( flags={"read_only": True}, ) - system_data.last_modified_by = AAZStrType( - serialized_name="lastModifiedBy", + + properties = cls._schema_on_200.properties.private_endpoint_connections.Element.properties + properties.group_ids = AAZListType( + serialized_name="groupIds", + ) + properties.private_endpoint = AAZObjectType( + serialized_name="privateEndpoint", + ) + properties.private_link_service_connection_state = AAZObjectType( + serialized_name="privateLinkServiceConnectionState", + flags={"required": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", flags={"read_only": True}, ) - system_data.last_modified_by_type = AAZStrType( - serialized_name="lastModifiedByType", + + group_ids = cls._schema_on_200.properties.private_endpoint_connections.Element.properties.group_ids + group_ids.Element = AAZStrType() + + private_endpoint = cls._schema_on_200.properties.private_endpoint_connections.Element.properties.private_endpoint + private_endpoint.id = AAZStrType( flags={"read_only": True}, ) - tags = cls._schema_on_200.tags - tags.Element = AAZStrType() + private_link_service_connection_state = cls._schema_on_200.properties.private_endpoint_connections.Element.properties.private_link_service_connection_state + private_link_service_connection_state.actions_required = AAZStrType( + serialized_name="actionsRequired", + ) + private_link_service_connection_state.description = AAZStrType() + private_link_service_connection_state.status = AAZStrType() return cls._schema_on_200 +class _ShowHelper: + """Helper class for Show""" + + _schema_system_data_read = None + + @classmethod + def _build_schema_system_data_read(cls, _schema): + if cls._schema_system_data_read is not None: + _schema.created_at = cls._schema_system_data_read.created_at + _schema.created_by = cls._schema_system_data_read.created_by + _schema.created_by_type = cls._schema_system_data_read.created_by_type + _schema.last_modified_at = cls._schema_system_data_read.last_modified_at + _schema.last_modified_by = cls._schema_system_data_read.last_modified_by + _schema.last_modified_by_type = cls._schema_system_data_read.last_modified_by_type + return + + cls._schema_system_data_read = _schema_system_data_read = AAZObjectType( + flags={"read_only": True} + ) + + system_data_read = _schema_system_data_read + system_data_read.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data_read.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data_read.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data_read.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data_read.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data_read.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + _schema.created_at = cls._schema_system_data_read.created_at + _schema.created_by = cls._schema_system_data_read.created_by + _schema.created_by_type = cls._schema_system_data_read.created_by_type + _schema.last_modified_at = cls._schema_system_data_read.last_modified_at + _schema.last_modified_by = cls._schema_system_data_read.last_modified_by + _schema.last_modified_by_type = cls._schema_system_data_read.last_modified_by_type + + __all__ = ["Show"] diff --git a/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/volume_group/_update.py b/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/volume_group/_update.py index 4d534ce0e6e..41078e325a6 100644 --- a/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/volume_group/_update.py +++ b/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/volume_group/_update.py @@ -23,9 +23,9 @@ class Update(AAZCommand): """ _aaz_info = { - "version": "2021-11-20-preview", + "version": "2022-12-01-preview", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}/volumegroups/{}", "2021-11-20-preview"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}/volumegroups/{}", "2022-12-01-preview"], ] } @@ -74,21 +74,6 @@ def _build_arguments_schema(cls, *args, **kwargs): ), ) - # define Arg Group "Parameters" - - _args_schema = cls._args_schema - _args_schema.tags = AAZDictArg( - options=["--tags"], - arg_group="Parameters", - help="Azure resource tags.", - nullable=True, - ) - - tags = cls._args_schema.tags - tags.Element = AAZStrArg( - nullable=True, - ) - # define Arg Group "Properties" _args_schema = cls._args_schema @@ -148,19 +133,19 @@ def _execute_operations(self): yield self.VolumeGroupsCreate(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass - # @register_callback + @register_callback def pre_instance_update(self, instance): pass - # @register_callback + @register_callback def post_instance_update(self, instance): pass @@ -220,7 +205,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2021-11-20-preview", + "api-version", "2022-12-01-preview", required=True, ), } @@ -251,7 +236,7 @@ def _build_schema_on_200(cls): return cls._schema_on_200 cls._schema_on_200 = AAZObjectType() - _build_schema_volume_group_read(cls._schema_on_200) + _UpdateHelper._build_schema_volume_group_read(cls._schema_on_200) return cls._schema_on_200 @@ -265,18 +250,18 @@ def __call__(self, *args, **kwargs): return self.client.build_lro_polling( self.ctx.args.no_wait, session, - self.on_200, + self.on_200_201, 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]: + if session.http_response.status_code in [200, 201]: return self.client.build_lro_polling( self.ctx.args.no_wait, session, - self.on_200, + self.on_200_201, self.on_error, - lro_options={"final-state-via": "azure-async-operation"}, + lro_options={"final-state-via": "location"}, path_format_arguments=self.url_parameters, ) @@ -323,7 +308,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2021-11-20-preview", + "api-version", "2022-12-01-preview", required=True, ), } @@ -350,25 +335,25 @@ def content(self): return self.serialize_content(_content_value) - def on_200(self, session): + 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 + schema_builder=self._build_schema_on_200_201 ) - _schema_on_200 = None + _schema_on_200_201 = None @classmethod - def _build_schema_on_200(cls): - if cls._schema_on_200 is not None: - return cls._schema_on_200 + 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 = AAZObjectType() - _build_schema_volume_group_read(cls._schema_on_200) + cls._schema_on_200_201 = AAZObjectType() + _UpdateHelper._build_schema_volume_group_read(cls._schema_on_200_201) - return cls._schema_on_200 + return cls._schema_on_200_201 class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): @@ -382,7 +367,6 @@ def _update_instance(self, instance): typ=AAZObjectType ) _builder.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) - _builder.set_prop("tags", AAZDictType, ".tags") properties = _builder.get(".properties") if properties is not None: @@ -403,10 +387,6 @@ def _update_instance(self, instance): _elements.set_prop("action", AAZStrType, ".action") _elements.set_prop("id", AAZStrType, ".id", typ_kwargs={"flags": {"required": True}}) - tags = _builder.get(".tags") - if tags is not None: - tags.set_elements(AAZStrType, ".") - return _instance_value class InstanceUpdateByGeneric(AAZGenericInstanceUpdateOperation): @@ -418,106 +398,178 @@ def __call__(self, *args, **kwargs): ) -_schema_volume_group_read = None - - -def _build_schema_volume_group_read(_schema): - global _schema_volume_group_read - if _schema_volume_group_read is not None: - _schema.id = _schema_volume_group_read.id - _schema.name = _schema_volume_group_read.name - _schema.properties = _schema_volume_group_read.properties - _schema.system_data = _schema_volume_group_read.system_data - _schema.tags = _schema_volume_group_read.tags - _schema.type = _schema_volume_group_read.type - return - - _schema_volume_group_read = AAZObjectType() - - volume_group_read = _schema_volume_group_read - volume_group_read.id = AAZStrType( - flags={"read_only": True}, - ) - volume_group_read.name = AAZStrType( - flags={"read_only": True}, - ) - volume_group_read.properties = AAZObjectType( - flags={"client_flatten": True}, - ) - volume_group_read.system_data = AAZObjectType( - serialized_name="systemData", - flags={"read_only": True}, - ) - volume_group_read.tags = AAZDictType() - volume_group_read.type = AAZStrType( - flags={"read_only": True}, - ) - - properties = _schema_volume_group_read.properties - properties.encryption = AAZStrType() - properties.network_acls = AAZObjectType( - serialized_name="networkAcls", - ) - properties.protocol_type = AAZStrType( - serialized_name="protocolType", - ) - properties.provisioning_state = AAZStrType( - serialized_name="provisioningState", - flags={"read_only": True}, - ) - - network_acls = _schema_volume_group_read.properties.network_acls - network_acls.virtual_network_rules = AAZListType( - serialized_name="virtualNetworkRules", - ) - - virtual_network_rules = _schema_volume_group_read.properties.network_acls.virtual_network_rules - virtual_network_rules.Element = AAZObjectType() - - _element = _schema_volume_group_read.properties.network_acls.virtual_network_rules.Element - _element.action = AAZStrType() - _element.id = AAZStrType( - flags={"required": True}, - ) - _element.state = AAZStrType( - flags={"read_only": True}, - ) - - system_data = _schema_volume_group_read.system_data - system_data.created_at = AAZStrType( - serialized_name="createdAt", - flags={"read_only": True}, - ) - system_data.created_by = AAZStrType( - serialized_name="createdBy", - flags={"read_only": True}, - ) - system_data.created_by_type = AAZStrType( - serialized_name="createdByType", - flags={"read_only": True}, - ) - system_data.last_modified_at = AAZStrType( - serialized_name="lastModifiedAt", - flags={"read_only": True}, - ) - system_data.last_modified_by = AAZStrType( - serialized_name="lastModifiedBy", - flags={"read_only": True}, - ) - system_data.last_modified_by_type = AAZStrType( - serialized_name="lastModifiedByType", - flags={"read_only": True}, - ) - - tags = _schema_volume_group_read.tags - tags.Element = AAZStrType() - - _schema.id = _schema_volume_group_read.id - _schema.name = _schema_volume_group_read.name - _schema.properties = _schema_volume_group_read.properties - _schema.system_data = _schema_volume_group_read.system_data - _schema.tags = _schema_volume_group_read.tags - _schema.type = _schema_volume_group_read.type +class _UpdateHelper: + """Helper class for Update""" + + _schema_system_data_read = None + + @classmethod + def _build_schema_system_data_read(cls, _schema): + if cls._schema_system_data_read is not None: + _schema.created_at = cls._schema_system_data_read.created_at + _schema.created_by = cls._schema_system_data_read.created_by + _schema.created_by_type = cls._schema_system_data_read.created_by_type + _schema.last_modified_at = cls._schema_system_data_read.last_modified_at + _schema.last_modified_by = cls._schema_system_data_read.last_modified_by + _schema.last_modified_by_type = cls._schema_system_data_read.last_modified_by_type + return + + cls._schema_system_data_read = _schema_system_data_read = AAZObjectType( + flags={"read_only": True} + ) + + system_data_read = _schema_system_data_read + system_data_read.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data_read.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data_read.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data_read.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data_read.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data_read.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + _schema.created_at = cls._schema_system_data_read.created_at + _schema.created_by = cls._schema_system_data_read.created_by + _schema.created_by_type = cls._schema_system_data_read.created_by_type + _schema.last_modified_at = cls._schema_system_data_read.last_modified_at + _schema.last_modified_by = cls._schema_system_data_read.last_modified_by + _schema.last_modified_by_type = cls._schema_system_data_read.last_modified_by_type + + _schema_volume_group_read = None + + @classmethod + def _build_schema_volume_group_read(cls, _schema): + if cls._schema_volume_group_read is not None: + _schema.id = cls._schema_volume_group_read.id + _schema.name = cls._schema_volume_group_read.name + _schema.properties = cls._schema_volume_group_read.properties + _schema.system_data = cls._schema_volume_group_read.system_data + _schema.type = cls._schema_volume_group_read.type + return + + cls._schema_volume_group_read = _schema_volume_group_read = AAZObjectType() + + volume_group_read = _schema_volume_group_read + volume_group_read.id = AAZStrType( + flags={"read_only": True}, + ) + volume_group_read.name = AAZStrType( + flags={"read_only": True}, + ) + volume_group_read.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + volume_group_read.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + cls._build_schema_system_data_read(volume_group_read.system_data) + volume_group_read.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = _schema_volume_group_read.properties + properties.encryption = AAZStrType() + properties.network_acls = AAZObjectType( + serialized_name="networkAcls", + ) + properties.private_endpoint_connections = AAZListType( + serialized_name="privateEndpointConnections", + flags={"read_only": True}, + ) + properties.protocol_type = AAZStrType( + serialized_name="protocolType", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + + network_acls = _schema_volume_group_read.properties.network_acls + network_acls.virtual_network_rules = AAZListType( + serialized_name="virtualNetworkRules", + ) + + virtual_network_rules = _schema_volume_group_read.properties.network_acls.virtual_network_rules + virtual_network_rules.Element = AAZObjectType() + + _element = _schema_volume_group_read.properties.network_acls.virtual_network_rules.Element + _element.action = AAZStrType() + _element.id = AAZStrType( + flags={"required": True}, + ) + _element.state = AAZStrType( + flags={"read_only": True}, + ) + + private_endpoint_connections = _schema_volume_group_read.properties.private_endpoint_connections + private_endpoint_connections.Element = AAZObjectType() + + _element = _schema_volume_group_read.properties.private_endpoint_connections.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType( + flags={"required": True, "client_flatten": True}, + ) + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + cls._build_schema_system_data_read(_element.system_data) + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = _schema_volume_group_read.properties.private_endpoint_connections.Element.properties + properties.group_ids = AAZListType( + serialized_name="groupIds", + ) + properties.private_endpoint = AAZObjectType( + serialized_name="privateEndpoint", + ) + properties.private_link_service_connection_state = AAZObjectType( + serialized_name="privateLinkServiceConnectionState", + flags={"required": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + + group_ids = _schema_volume_group_read.properties.private_endpoint_connections.Element.properties.group_ids + group_ids.Element = AAZStrType() + + private_endpoint = _schema_volume_group_read.properties.private_endpoint_connections.Element.properties.private_endpoint + private_endpoint.id = AAZStrType( + flags={"read_only": True}, + ) + + private_link_service_connection_state = _schema_volume_group_read.properties.private_endpoint_connections.Element.properties.private_link_service_connection_state + private_link_service_connection_state.actions_required = AAZStrType( + serialized_name="actionsRequired", + ) + private_link_service_connection_state.description = AAZStrType() + private_link_service_connection_state.status = AAZStrType() + + _schema.id = cls._schema_volume_group_read.id + _schema.name = cls._schema_volume_group_read.name + _schema.properties = cls._schema_volume_group_read.properties + _schema.system_data = cls._schema_volume_group_read.system_data + _schema.type = cls._schema_volume_group_read.type __all__ = ["Update"] diff --git a/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/volume_group/_wait.py b/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/volume_group/_wait.py index 1c11b995e34..a6a9765a914 100644 --- a/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/volume_group/_wait.py +++ b/src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/volume_group/_wait.py @@ -20,7 +20,7 @@ class Wait(AAZWaitCommand): _aaz_info = { "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}/volumegroups/{}", "2021-11-20-preview"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.elasticsan/elasticsans/{}/volumegroups/{}", "2022-12-01-preview"], ] } @@ -72,11 +72,11 @@ def _execute_operations(self): self.VolumeGroupsGet(ctx=self.ctx)() self.post_operations() - # @register_callback + @register_callback def pre_operations(self): pass - # @register_callback + @register_callback def post_operations(self): pass @@ -136,7 +136,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2021-11-20-preview", + "api-version", "2022-12-01-preview", required=True, ), } @@ -182,7 +182,7 @@ def _build_schema_on_200(cls): serialized_name="systemData", flags={"read_only": True}, ) - _schema_on_200.tags = AAZDictType() + _WaitHelper._build_schema_system_data_read(_schema_on_200.system_data) _schema_on_200.type = AAZStrType( flags={"read_only": True}, ) @@ -192,6 +192,10 @@ def _build_schema_on_200(cls): properties.network_acls = AAZObjectType( serialized_name="networkAcls", ) + properties.private_endpoint_connections = AAZListType( + serialized_name="privateEndpointConnections", + flags={"read_only": True}, + ) properties.protocol_type = AAZStrType( serialized_name="protocolType", ) @@ -217,36 +221,108 @@ 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", + private_endpoint_connections = cls._schema_on_200.properties.private_endpoint_connections + private_endpoint_connections.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.private_endpoint_connections.Element + _element.id = AAZStrType( flags={"read_only": True}, ) - system_data.created_by = AAZStrType( - serialized_name="createdBy", + _element.name = AAZStrType( flags={"read_only": True}, ) - system_data.created_by_type = AAZStrType( - serialized_name="createdByType", + _element.properties = AAZObjectType( + flags={"required": True, "client_flatten": True}, + ) + _element.system_data = AAZObjectType( + serialized_name="systemData", flags={"read_only": True}, ) - system_data.last_modified_at = AAZStrType( - serialized_name="lastModifiedAt", + _WaitHelper._build_schema_system_data_read(_element.system_data) + _element.type = AAZStrType( flags={"read_only": True}, ) - system_data.last_modified_by = AAZStrType( - serialized_name="lastModifiedBy", + + properties = cls._schema_on_200.properties.private_endpoint_connections.Element.properties + properties.group_ids = AAZListType( + serialized_name="groupIds", + ) + properties.private_endpoint = AAZObjectType( + serialized_name="privateEndpoint", + ) + properties.private_link_service_connection_state = AAZObjectType( + serialized_name="privateLinkServiceConnectionState", + flags={"required": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", flags={"read_only": True}, ) - system_data.last_modified_by_type = AAZStrType( - serialized_name="lastModifiedByType", + + group_ids = cls._schema_on_200.properties.private_endpoint_connections.Element.properties.group_ids + group_ids.Element = AAZStrType() + + private_endpoint = cls._schema_on_200.properties.private_endpoint_connections.Element.properties.private_endpoint + private_endpoint.id = AAZStrType( flags={"read_only": True}, ) - tags = cls._schema_on_200.tags - tags.Element = AAZStrType() + private_link_service_connection_state = cls._schema_on_200.properties.private_endpoint_connections.Element.properties.private_link_service_connection_state + private_link_service_connection_state.actions_required = AAZStrType( + serialized_name="actionsRequired", + ) + private_link_service_connection_state.description = AAZStrType() + private_link_service_connection_state.status = AAZStrType() return cls._schema_on_200 +class _WaitHelper: + """Helper class for Wait""" + + _schema_system_data_read = None + + @classmethod + def _build_schema_system_data_read(cls, _schema): + if cls._schema_system_data_read is not None: + _schema.created_at = cls._schema_system_data_read.created_at + _schema.created_by = cls._schema_system_data_read.created_by + _schema.created_by_type = cls._schema_system_data_read.created_by_type + _schema.last_modified_at = cls._schema_system_data_read.last_modified_at + _schema.last_modified_by = cls._schema_system_data_read.last_modified_by + _schema.last_modified_by_type = cls._schema_system_data_read.last_modified_by_type + return + + cls._schema_system_data_read = _schema_system_data_read = AAZObjectType( + flags={"read_only": True} + ) + + system_data_read = _schema_system_data_read + system_data_read.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data_read.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data_read.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data_read.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data_read.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data_read.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + _schema.created_at = cls._schema_system_data_read.created_at + _schema.created_by = cls._schema_system_data_read.created_by + _schema.created_by_type = cls._schema_system_data_read.created_by_type + _schema.last_modified_at = cls._schema_system_data_read.last_modified_at + _schema.last_modified_by = cls._schema_system_data_read.last_modified_by + _schema.last_modified_by_type = cls._schema_system_data_read.last_modified_by_type + + __all__ = ["Wait"] diff --git a/src/elastic-san/azext_elastic_san/azext_metadata.json b/src/elastic-san/azext_elastic_san/azext_metadata.json index e5473deabe6..8138e860821 100644 --- a/src/elastic-san/azext_elastic_san/azext_metadata.json +++ b/src/elastic-san/azext_elastic_san/azext_metadata.json @@ -1,4 +1,4 @@ { "azext.isPreview": true, - "azext.minCliCoreVersion": "2.40.0" -} + "azext.minCliCoreVersion": "2.50.0" +} \ No newline at end of file diff --git a/src/elastic-san/azext_elastic_san/tests/latest/recordings/test_elastic_san_scenarios.yaml b/src/elastic-san/azext_elastic_san/tests/latest/recordings/test_elastic_san_scenarios.yaml index ea9d6f235f4..7b9a0eaf004 100644 --- a/src/elastic-san/azext_elastic_san/tests/latest/recordings/test_elastic_san_scenarios.yaml +++ b/src/elastic-san/azext_elastic_san/tests/latest/recordings/test_elastic_san_scenarios.yaml @@ -19,12 +19,12 @@ interactions: ParameterSetName: - -n -g --tags -l --base-size-tib --extended-capacity-size-tib --sku User-Agent: - - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002?api-version=2021-11-20-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002?api-version=2022-12-01-preview response: body: - string: '{"properties":{"sku":{"name":"Premium_LRS","tier":"Premium"},"provisioningState":"Creating","baseSizeTiB":23,"extendedCapacitySizeTiB":14,"totalIops":115000,"totalMBps":1840,"totalSizeTiB":37,"volumeGroupCount":0,"totalVolumeSizeGiB":0},"location":"southcentralusstg","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002","name":"elastic-san000002","type":"Microsoft.ElasticSan/ElasticSans","tags":{"key1810":"aaaa"},"systemData":{"createdAt":"2022-09-29T08:34:13.3143577Z","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-09-29T08:34:13.3143577Z","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"location":"southcentralusstg","properties":{"sku":{"name":"Premium_LRS","tier":"Premium"},"provisioningState":"Creating","baseSizeTiB":23,"extendedCapacitySizeTiB":14,"totalIops":115000,"totalMBps":1840,"totalSizeTiB":37,"volumeGroupCount":0,"totalVolumeSizeGiB":0},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002","name":"elastic-san000002","type":"Microsoft.ElasticSan/ElasticSans","tags":{"key1810":"aaaa"},"systemData":{"createdAt":"2023-07-24T08:33:53.4344499Z","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-07-24T08:33:53.4344499Z","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -33,11 +33,11 @@ interactions: content-type: - application/json date: - - Thu, 29 Sep 2022 08:34:14 GMT + - Mon, 24 Jul 2023 08:33:53 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/1acf9011-2637-4290-b4a8-baaec195da35?monitor=true&api-version=2021-11-20-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/d06ff411-df3c-4b9e-a170-7da1d6448fb0?monitor=true&api-version=2022-12-01-preview pragma: - no-cache server: @@ -47,7 +47,51 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1195' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - elastic-san create + Connection: + - keep-alive + ParameterSetName: + - -n -g --tags -l --base-size-tib --extended-capacity-size-tib --sku + User-Agent: + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/d06ff411-df3c-4b9e-a170-7da1d6448fb0?monitor=true&api-version=2022-12-01-preview + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + content-type: + - text/plain; charset=utf-8 + date: + - Mon, 24 Jul 2023 08:33:53 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/d06ff411-df3c-4b9e-a170-7da1d6448fb0?monitor=true&api-version=2022-12-01-preview + pragma: + - no-cache + server: + - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff status: code: 202 message: Accepted @@ -65,9 +109,9 @@ interactions: ParameterSetName: - -n -g --tags -l --base-size-tib --extended-capacity-size-tib --sku User-Agent: - - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/1acf9011-2637-4290-b4a8-baaec195da35?monitor=true&api-version=2021-11-20-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/d06ff411-df3c-4b9e-a170-7da1d6448fb0?monitor=true&api-version=2022-12-01-preview response: body: string: '' @@ -79,11 +123,11 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Thu, 29 Sep 2022 08:34:31 GMT + - Mon, 24 Jul 2023 08:34:11 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/1acf9011-2637-4290-b4a8-baaec195da35?monitor=true&api-version=2021-11-20-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/d06ff411-df3c-4b9e-a170-7da1d6448fb0?monitor=true&api-version=2022-12-01-preview pragma: - no-cache server: @@ -109,12 +153,12 @@ interactions: ParameterSetName: - -n -g --tags -l --base-size-tib --extended-capacity-size-tib --sku User-Agent: - - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/1acf9011-2637-4290-b4a8-baaec195da35?monitor=true&api-version=2021-11-20-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/d06ff411-df3c-4b9e-a170-7da1d6448fb0?monitor=true&api-version=2022-12-01-preview response: body: - string: '{"properties":{"sku":{"name":"Premium_LRS","tier":"Premium"},"provisioningState":"Succeeded","baseSizeTiB":23,"extendedCapacitySizeTiB":14,"totalIops":115000,"totalMBps":1840,"totalSizeTiB":37,"volumeGroupCount":0,"totalVolumeSizeGiB":0},"location":"southcentralusstg","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002","name":"elastic-san000002","type":"Microsoft.ElasticSan/ElasticSans","tags":{"key1810":"aaaa"},"systemData":{"createdAt":"2022-09-29T08:34:13.3143577Z","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-09-29T08:34:13.3143577Z","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"location":"southcentralusstg","properties":{"sku":{"name":"Premium_LRS","tier":"Premium"},"provisioningState":"Succeeded","baseSizeTiB":23,"extendedCapacitySizeTiB":14,"totalIops":115000,"totalMBps":1840,"totalSizeTiB":37,"volumeGroupCount":0,"totalVolumeSizeGiB":0},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002","name":"elastic-san000002","type":"Microsoft.ElasticSan/ElasticSans","tags":{"key1810":"aaaa"},"systemData":{"createdAt":"2023-07-24T08:33:53.4344499Z","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-07-24T08:33:53.4344499Z","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -123,7 +167,7 @@ interactions: content-type: - application/json date: - - Thu, 29 Sep 2022 08:34:48 GMT + - Mon, 24 Jul 2023 08:34:28 GMT expires: - '-1' pragma: @@ -155,12 +199,12 @@ interactions: ParameterSetName: - -g -n User-Agent: - - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002?api-version=2021-11-20-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002?api-version=2022-12-01-preview response: body: - string: '{"properties":{"sku":{"name":"Premium_LRS","tier":"Premium"},"provisioningState":"Succeeded","baseSizeTiB":23,"extendedCapacitySizeTiB":14,"totalIops":115000,"totalMBps":1840,"totalSizeTiB":37,"volumeGroupCount":0,"totalVolumeSizeGiB":0},"location":"southcentralusstg","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002","name":"elastic-san000002","type":"Microsoft.ElasticSan/ElasticSans","tags":{"key1810":"aaaa"},"systemData":{"createdAt":"2022-09-29T08:34:13.3143577Z","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-09-29T08:34:13.3143577Z","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"location":"southcentralusstg","properties":{"sku":{"name":"Premium_LRS","tier":"Premium"},"provisioningState":"Succeeded","baseSizeTiB":23,"extendedCapacitySizeTiB":14,"totalIops":115000,"totalMBps":1840,"totalSizeTiB":37,"volumeGroupCount":0,"totalVolumeSizeGiB":0},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002","name":"elastic-san000002","type":"Microsoft.ElasticSan/ElasticSans","tags":{"key1810":"aaaa"},"systemData":{"createdAt":"2023-07-24T08:33:53.4344499Z","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-07-24T08:33:53.4344499Z","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -169,7 +213,7 @@ interactions: content-type: - application/json date: - - Thu, 29 Sep 2022 08:34:50 GMT + - Mon, 24 Jul 2023 08:34:30 GMT expires: - '-1' pragma: @@ -178,6 +222,10 @@ interactions: - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff status: @@ -197,12 +245,12 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan000001/providers/Microsoft.ElasticSan/elasticSans?api-version=2021-11-20-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan000001/providers/Microsoft.ElasticSan/elasticSans?api-version=2022-12-01-preview response: body: - string: '{"value":[{"properties":{"sku":{"name":"Premium_LRS","tier":"Premium"},"provisioningState":"Succeeded","baseSizeTiB":23,"extendedCapacitySizeTiB":14,"totalIops":115000,"totalMBps":1840,"totalSizeTiB":37,"volumeGroupCount":0,"totalVolumeSizeGiB":0},"location":"southcentralusstg","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002","name":"elastic-san000002","type":"Microsoft.ElasticSan/ElasticSans","tags":{"key1810":"aaaa"},"systemData":{"createdAt":"2022-09-29T08:34:13.3143577Z","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-09-29T08:34:13.3143577Z","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' + string: '{"value":[{"location":"southcentralusstg","properties":{"sku":{"name":"Premium_LRS","tier":"Premium"},"provisioningState":"Succeeded","baseSizeTiB":23,"extendedCapacitySizeTiB":14,"totalIops":115000,"totalMBps":1840,"totalSizeTiB":37,"volumeGroupCount":0,"totalVolumeSizeGiB":0},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002","name":"elastic-san000002","type":"Microsoft.ElasticSan/ElasticSans","tags":{"key1810":"aaaa"},"systemData":{"createdAt":"2023-07-24T08:33:53.4344499Z","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-07-24T08:33:53.4344499Z","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' headers: cache-control: - no-cache @@ -211,7 +259,7 @@ interactions: content-type: - application/json date: - - Thu, 29 Sep 2022 08:34:52 GMT + - Mon, 24 Jul 2023 08:34:31 GMT expires: - '-1' pragma: @@ -241,21 +289,21 @@ interactions: Connection: - keep-alive User-Agent: - - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/skus?api-version=2021-11-20-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/skus?api-version=2022-12-01-preview response: body: - string: '{"value":[{"resourceType":"elasticSans","name":"Premium_LRS","tier":"Premium","locations":["centraluseuap"],"locationInfo":[{"location":"centraluseuap","zones":["1","2"],"zoneDetails":[]}],"capabilities":[{"name":"elasticSanIopsPerBaseTiB","value":"5000"},{"name":"elasticSanMaxSizeTiB","value":"100"},{"name":"elasticSanMinSizeTiB","value":"1"},{"name":"elasticSanMBpsPerBaseTiB","value":"80"},{"name":"elasticSanMaxMBps","value":"8000"},{"name":"elasticSanMinIncrementSizeTiB","value":"1"},{"name":"elasticSanMaxVolumeGroupCount","value":"20"},{"name":"elastiSanMaxIOPS","value":"500000"},{"name":"volumeGroupMaxVolumeCount","value":"1000"},{"name":"volumeMaxSizeGiB","value":"65536"},{"name":"volumeMinSizeGiB","value":"1"},{"name":"volumeIopsPerBaseGiB","value":"750"},{"name":"volumeMBpsPerBaseGiB","value":"192"},{"name":"volumeMaxIops","value":"64000"},{"name":"volumeMaxMBps","value":"1024"},{"name":"volumeMinIncrementSizeGiB","value":"1"}],"restrictions":[]},{"resourceType":"elasticSans","name":"Premium_LRS","tier":"Premium","locations":["eastus2stage"],"locationInfo":[{"location":"eastus2stage","zones":[],"zoneDetails":[]}],"capabilities":[{"name":"elasticSanIopsPerBaseTiB","value":"5000"},{"name":"elasticSanMaxSizeTiB","value":"1024"},{"name":"elasticSanMinSizeTiB","value":"64"},{"name":"elasticSanMBpsPerBaseTiB","value":"80"},{"name":"elasticSanMaxMBps","value":"81920"},{"name":"elasticSanMinIncrementSizeTiB","value":"1"},{"name":"elasticSanMaxVolumeGroupCount","value":"20"},{"name":"volumeGroupMaxVolumeCount","value":"1000"},{"name":"volumeMaxSizeGiB","value":"65536"},{"name":"volumeMinSizeGiB","value":"1"},{"name":"volumeIopsPerBaseGiB","value":"750"},{"name":"volumeMBpsPerBaseGiB","value":"192"},{"name":"volumeMaxIops","value":"64000"},{"name":"volumeMaxMBps","value":"1024"},{"name":"volumeMinIncrementSizeGiB","value":"1"}],"restrictions":[]},{"resourceType":"elasticSans","name":"Premium_LRS","tier":"Premium","locations":["southcentralusstg"],"locationInfo":[{"location":"southcentralusstg","zones":[],"zoneDetails":[]}],"capabilities":[{"name":"elasticSanIopsPerBaseTiB","value":"5000"},{"name":"elasticSanMaxSizeTiB","value":"100"},{"name":"elasticSanMinSizeTiB","value":"1"},{"name":"elasticSanMBpsPerBaseTiB","value":"80"},{"name":"elasticSanMaxMBps","value":"8000"},{"name":"elasticSanMinIncrementSizeTiB","value":"1"},{"name":"elasticSanMaxVolumeGroupCount","value":"20"},{"name":"elastiSanMaxIOPS","value":"500000"},{"name":"volumeGroupMaxVolumeCount","value":"1000"},{"name":"volumeMaxSizeGiB","value":"65536"},{"name":"volumeMinSizeGiB","value":"1"},{"name":"volumeIopsPerBaseGiB","value":"750"},{"name":"volumeMBpsPerBaseGiB","value":"192"},{"name":"volumeMaxIops","value":"64000"},{"name":"volumeMaxMBps","value":"1024"},{"name":"volumeMinIncrementSizeGiB","value":"1"}],"restrictions":[]},{"resourceType":"elasticSans","name":"Premium_ZRS","tier":"Premium","locations":["eastus2euap"],"locationInfo":[{"location":"eastus2euap","zones":[],"zoneDetails":[]}],"capabilities":[{"name":"elasticSanIopsPerBaseTiB","value":"5000"},{"name":"elasticSanMaxSizeTiB","value":"100"},{"name":"elasticSanMinSizeTiB","value":"1"},{"name":"elasticSanMBpsPerBaseTiB","value":"80"},{"name":"elasticSanMaxMBps","value":"8000"},{"name":"elasticSanMinIncrementSizeTiB","value":"1"},{"name":"elasticSanMaxVolumeGroupCount","value":"20"},{"name":"elastiSanMaxIOPS","value":"500000"},{"name":"volumeGroupMaxVolumeCount","value":"1000"},{"name":"volumeMaxSizeGiB","value":"65536"},{"name":"volumeMinSizeGiB","value":"1"},{"name":"volumeIopsPerBaseGiB","value":"750"},{"name":"volumeMBpsPerBaseGiB","value":"192"},{"name":"volumeMaxIops","value":"64000"},{"name":"volumeMaxMBps","value":"1024"},{"name":"volumeMinIncrementSizeGiB","value":"1"}],"restrictions":[]}]}' + string: '{"value":[{"resourceType":"elasticSans","name":"Premium_LRS","tier":"Premium","locations":["australiaeast"],"locationInfo":[{"location":"australiaeast","zones":["2","3","1"],"zoneDetails":[]}],"capabilities":[{"name":"elasticSanIopsPerBaseTiB","value":"5000"},{"name":"elasticSanMaxSizeTiB","value":"100"},{"name":"elasticSanMinSizeTiB","value":"1"},{"name":"elasticSanMBpsPerBaseTiB","value":"80"},{"name":"elasticSanMaxMBps","value":"8000"},{"name":"elasticSanMinIncrementSizeTiB","value":"1"},{"name":"elasticSanMaxVolumeGroupCount","value":"20"},{"name":"elasticSanMaxIOPS","value":"500000"},{"name":"volumeGroupMaxVolumeCount","value":"1000"},{"name":"volumeMaxSizeGiB","value":"65536"},{"name":"volumeMinSizeGiB","value":"1"},{"name":"volumeIopsPerBaseGiB","value":"750"},{"name":"volumeMBpsPerBaseGiB","value":"192"},{"name":"volumeMaxIops","value":"64000"},{"name":"volumeMaxMBps","value":"1024"},{"name":"volumeMinIncrementSizeGiB","value":"1"}],"restrictions":[]},{"resourceType":"elasticSans","name":"Premium_LRS","tier":"Premium","locations":["centraluseuap"],"locationInfo":[{"location":"centraluseuap","zones":["1"],"zoneDetails":[]}],"capabilities":[{"name":"elasticSanIopsPerBaseTiB","value":"5000"},{"name":"elasticSanMaxSizeTiB","value":"100"},{"name":"elasticSanMinSizeTiB","value":"1"},{"name":"elasticSanMBpsPerBaseTiB","value":"80"},{"name":"elasticSanMaxMBps","value":"8000"},{"name":"elasticSanMinIncrementSizeTiB","value":"1"},{"name":"elasticSanMaxVolumeGroupCount","value":"20"},{"name":"elasticSanMaxIOPS","value":"500000"},{"name":"volumeGroupMaxVolumeCount","value":"1000"},{"name":"volumeMaxSizeGiB","value":"65536"},{"name":"volumeMinSizeGiB","value":"1"},{"name":"volumeIopsPerBaseGiB","value":"750"},{"name":"volumeMBpsPerBaseGiB","value":"192"},{"name":"volumeMaxIops","value":"64000"},{"name":"volumeMaxMBps","value":"1024"},{"name":"volumeMinIncrementSizeGiB","value":"1"}],"restrictions":[]},{"resourceType":"elasticSans","name":"Premium_LRS","tier":"Premium","locations":["eastus"],"locationInfo":[{"location":"eastus","zones":["2","3","1"],"zoneDetails":[]}],"capabilities":[{"name":"elasticSanIopsPerBaseTiB","value":"5000"},{"name":"elasticSanMaxSizeTiB","value":"100"},{"name":"elasticSanMinSizeTiB","value":"1"},{"name":"elasticSanMBpsPerBaseTiB","value":"80"},{"name":"elasticSanMaxMBps","value":"8000"},{"name":"elasticSanMinIncrementSizeTiB","value":"1"},{"name":"elasticSanMaxVolumeGroupCount","value":"20"},{"name":"elasticSanMaxIOPS","value":"500000"},{"name":"volumeGroupMaxVolumeCount","value":"1000"},{"name":"volumeMaxSizeGiB","value":"65536"},{"name":"volumeMinSizeGiB","value":"1"},{"name":"volumeIopsPerBaseGiB","value":"750"},{"name":"volumeMBpsPerBaseGiB","value":"192"},{"name":"volumeMaxIops","value":"64000"},{"name":"volumeMaxMBps","value":"1024"},{"name":"volumeMinIncrementSizeGiB","value":"1"}],"restrictions":[]},{"resourceType":"elasticSans","name":"Premium_LRS","tier":"Premium","locations":["eastus2"],"locationInfo":[{"location":"eastus2","zones":["2","3","1"],"zoneDetails":[]}],"capabilities":[{"name":"elasticSanIopsPerBaseTiB","value":"5000"},{"name":"elasticSanMaxSizeTiB","value":"100"},{"name":"elasticSanMinSizeTiB","value":"1"},{"name":"elasticSanMBpsPerBaseTiB","value":"80"},{"name":"elasticSanMaxMBps","value":"8000"},{"name":"elasticSanMinIncrementSizeTiB","value":"1"},{"name":"elasticSanMaxVolumeGroupCount","value":"20"},{"name":"elasticSanMaxIOPS","value":"500000"},{"name":"volumeGroupMaxVolumeCount","value":"1000"},{"name":"volumeMaxSizeGiB","value":"65536"},{"name":"volumeMinSizeGiB","value":"1"},{"name":"volumeIopsPerBaseGiB","value":"750"},{"name":"volumeMBpsPerBaseGiB","value":"192"},{"name":"volumeMaxIops","value":"64000"},{"name":"volumeMaxMBps","value":"1024"},{"name":"volumeMinIncrementSizeGiB","value":"1"}],"restrictions":[]},{"resourceType":"elasticSans","name":"Premium_LRS","tier":"Premium","locations":["eastus2euap"],"locationInfo":[{"location":"eastus2euap","zones":["1","2","3"],"zoneDetails":[]}],"capabilities":[{"name":"elasticSanIopsPerBaseTiB","value":"5000"},{"name":"elasticSanMaxSizeTiB","value":"100"},{"name":"elasticSanMinSizeTiB","value":"1"},{"name":"elasticSanMBpsPerBaseTiB","value":"80"},{"name":"elasticSanMaxMBps","value":"8000"},{"name":"elasticSanMinIncrementSizeTiB","value":"1"},{"name":"elasticSanMaxVolumeGroupCount","value":"20"},{"name":"elasticSanMaxIOPS","value":"500000"},{"name":"volumeGroupMaxVolumeCount","value":"1000"},{"name":"volumeMaxSizeGiB","value":"65536"},{"name":"volumeMinSizeGiB","value":"1"},{"name":"volumeIopsPerBaseGiB","value":"750"},{"name":"volumeMBpsPerBaseGiB","value":"192"},{"name":"volumeMaxIops","value":"64000"},{"name":"volumeMaxMBps","value":"1024"},{"name":"volumeMinIncrementSizeGiB","value":"1"}],"restrictions":[]},{"resourceType":"elasticSans","name":"Premium_LRS","tier":"Premium","locations":["eastus2stage"],"locationInfo":[{"location":"eastus2stage","zones":[],"zoneDetails":[]}],"capabilities":[{"name":"elasticSanIopsPerBaseTiB","value":"5000"},{"name":"elasticSanMaxSizeTiB","value":"100"},{"name":"elasticSanMinSizeTiB","value":"1"},{"name":"elasticSanMBpsPerBaseTiB","value":"80"},{"name":"elasticSanMaxMBps","value":"8000"},{"name":"elasticSanMinIncrementSizeTiB","value":"1"},{"name":"elasticSanMaxVolumeGroupCount","value":"20"},{"name":"elasticSanMaxIOPS","value":"500000"},{"name":"volumeGroupMaxVolumeCount","value":"1000"},{"name":"volumeMaxSizeGiB","value":"65536"},{"name":"volumeMinSizeGiB","value":"1"},{"name":"volumeIopsPerBaseGiB","value":"750"},{"name":"volumeMBpsPerBaseGiB","value":"192"},{"name":"volumeMaxIops","value":"64000"},{"name":"volumeMaxMBps","value":"1024"},{"name":"volumeMinIncrementSizeGiB","value":"1"}],"restrictions":[]},{"resourceType":"elasticSans","name":"Premium_LRS","tier":"Premium","locations":["francecentral"],"locationInfo":[{"location":"francecentral","zones":["2","3"],"zoneDetails":[]}],"capabilities":[{"name":"elasticSanIopsPerBaseTiB","value":"5000"},{"name":"elasticSanMaxSizeTiB","value":"100"},{"name":"elasticSanMinSizeTiB","value":"1"},{"name":"elasticSanMBpsPerBaseTiB","value":"80"},{"name":"elasticSanMaxMBps","value":"8000"},{"name":"elasticSanMinIncrementSizeTiB","value":"1"},{"name":"elasticSanMaxVolumeGroupCount","value":"20"},{"name":"elasticSanMaxIOPS","value":"500000"},{"name":"volumeGroupMaxVolumeCount","value":"1000"},{"name":"volumeMaxSizeGiB","value":"65536"},{"name":"volumeMinSizeGiB","value":"1"},{"name":"volumeIopsPerBaseGiB","value":"750"},{"name":"volumeMBpsPerBaseGiB","value":"192"},{"name":"volumeMaxIops","value":"64000"},{"name":"volumeMaxMBps","value":"1024"},{"name":"volumeMinIncrementSizeGiB","value":"1"}],"restrictions":[]},{"resourceType":"elasticSans","name":"Premium_LRS","tier":"Premium","locations":["northeurope"],"locationInfo":[{"location":"northeurope","zones":["2","3","1"],"zoneDetails":[]}],"capabilities":[{"name":"elasticSanIopsPerBaseTiB","value":"5000"},{"name":"elasticSanMaxSizeTiB","value":"100"},{"name":"elasticSanMinSizeTiB","value":"1"},{"name":"elasticSanMBpsPerBaseTiB","value":"80"},{"name":"elasticSanMaxMBps","value":"8000"},{"name":"elasticSanMinIncrementSizeTiB","value":"1"},{"name":"elasticSanMaxVolumeGroupCount","value":"20"},{"name":"elasticSanMaxIOPS","value":"500000"},{"name":"volumeGroupMaxVolumeCount","value":"1000"},{"name":"volumeMaxSizeGiB","value":"65536"},{"name":"volumeMinSizeGiB","value":"1"},{"name":"volumeIopsPerBaseGiB","value":"750"},{"name":"volumeMBpsPerBaseGiB","value":"192"},{"name":"volumeMaxIops","value":"64000"},{"name":"volumeMaxMBps","value":"1024"},{"name":"volumeMinIncrementSizeGiB","value":"1"}],"restrictions":[]},{"resourceType":"elasticSans","name":"Premium_LRS","tier":"Premium","locations":["southcentralus"],"locationInfo":[{"location":"southcentralus","zones":["2","3","1"],"zoneDetails":[]}],"capabilities":[{"name":"elasticSanIopsPerBaseTiB","value":"5000"},{"name":"elasticSanMaxSizeTiB","value":"100"},{"name":"elasticSanMinSizeTiB","value":"1"},{"name":"elasticSanMBpsPerBaseTiB","value":"80"},{"name":"elasticSanMaxMBps","value":"8000"},{"name":"elasticSanMinIncrementSizeTiB","value":"1"},{"name":"elasticSanMaxVolumeGroupCount","value":"20"},{"name":"elasticSanMaxIOPS","value":"500000"},{"name":"volumeGroupMaxVolumeCount","value":"1000"},{"name":"volumeMaxSizeGiB","value":"65536"},{"name":"volumeMinSizeGiB","value":"1"},{"name":"volumeIopsPerBaseGiB","value":"750"},{"name":"volumeMBpsPerBaseGiB","value":"192"},{"name":"volumeMaxIops","value":"64000"},{"name":"volumeMaxMBps","value":"1024"},{"name":"volumeMinIncrementSizeGiB","value":"1"}],"restrictions":[]},{"resourceType":"elasticSans","name":"Premium_LRS","tier":"Premium","locations":["southcentralusstg"],"locationInfo":[{"location":"southcentralusstg","zones":[],"zoneDetails":[]}],"capabilities":[{"name":"elasticSanIopsPerBaseTiB","value":"5000"},{"name":"elasticSanMaxSizeTiB","value":"100"},{"name":"elasticSanMinSizeTiB","value":"1"},{"name":"elasticSanMBpsPerBaseTiB","value":"80"},{"name":"elasticSanMaxMBps","value":"8000"},{"name":"elasticSanMinIncrementSizeTiB","value":"1"},{"name":"elasticSanMaxVolumeGroupCount","value":"20"},{"name":"elasticSanMaxIOPS","value":"500000"},{"name":"volumeGroupMaxVolumeCount","value":"1000"},{"name":"volumeMaxSizeGiB","value":"65536"},{"name":"volumeMinSizeGiB","value":"1"},{"name":"volumeIopsPerBaseGiB","value":"750"},{"name":"volumeMBpsPerBaseGiB","value":"192"},{"name":"volumeMaxIops","value":"64000"},{"name":"volumeMaxMBps","value":"1024"},{"name":"volumeMinIncrementSizeGiB","value":"1"}],"restrictions":[]},{"resourceType":"elasticSans","name":"Premium_LRS","tier":"Premium","locations":["southeastasia"],"locationInfo":[{"location":"southeastasia","zones":["2","3","1"],"zoneDetails":[]}],"capabilities":[{"name":"elasticSanIopsPerBaseTiB","value":"5000"},{"name":"elasticSanMaxSizeTiB","value":"100"},{"name":"elasticSanMinSizeTiB","value":"1"},{"name":"elasticSanMBpsPerBaseTiB","value":"80"},{"name":"elasticSanMaxMBps","value":"8000"},{"name":"elasticSanMinIncrementSizeTiB","value":"1"},{"name":"elasticSanMaxVolumeGroupCount","value":"20"},{"name":"elasticSanMaxIOPS","value":"500000"},{"name":"volumeGroupMaxVolumeCount","value":"1000"},{"name":"volumeMaxSizeGiB","value":"65536"},{"name":"volumeMinSizeGiB","value":"1"},{"name":"volumeIopsPerBaseGiB","value":"750"},{"name":"volumeMBpsPerBaseGiB","value":"192"},{"name":"volumeMaxIops","value":"64000"},{"name":"volumeMaxMBps","value":"1024"},{"name":"volumeMinIncrementSizeGiB","value":"1"}],"restrictions":[]},{"resourceType":"elasticSans","name":"Premium_LRS","tier":"Premium","locations":["swedencentral"],"locationInfo":[{"location":"swedencentral","zones":["2","3","1"],"zoneDetails":[]}],"capabilities":[{"name":"elasticSanIopsPerBaseTiB","value":"5000"},{"name":"elasticSanMaxSizeTiB","value":"100"},{"name":"elasticSanMinSizeTiB","value":"1"},{"name":"elasticSanMBpsPerBaseTiB","value":"80"},{"name":"elasticSanMaxMBps","value":"8000"},{"name":"elasticSanMinIncrementSizeTiB","value":"1"},{"name":"elasticSanMaxVolumeGroupCount","value":"20"},{"name":"elasticSanMaxIOPS","value":"500000"},{"name":"volumeGroupMaxVolumeCount","value":"1000"},{"name":"volumeMaxSizeGiB","value":"65536"},{"name":"volumeMinSizeGiB","value":"1"},{"name":"volumeIopsPerBaseGiB","value":"750"},{"name":"volumeMBpsPerBaseGiB","value":"192"},{"name":"volumeMaxIops","value":"64000"},{"name":"volumeMaxMBps","value":"1024"},{"name":"volumeMinIncrementSizeGiB","value":"1"}],"restrictions":[]},{"resourceType":"elasticSans","name":"Premium_LRS","tier":"Premium","locations":["uksouth"],"locationInfo":[{"location":"uksouth","zones":["2","3","1"],"zoneDetails":[]}],"capabilities":[{"name":"elasticSanIopsPerBaseTiB","value":"5000"},{"name":"elasticSanMaxSizeTiB","value":"100"},{"name":"elasticSanMinSizeTiB","value":"1"},{"name":"elasticSanMBpsPerBaseTiB","value":"80"},{"name":"elasticSanMaxMBps","value":"8000"},{"name":"elasticSanMinIncrementSizeTiB","value":"1"},{"name":"elasticSanMaxVolumeGroupCount","value":"20"},{"name":"elasticSanMaxIOPS","value":"500000"},{"name":"volumeGroupMaxVolumeCount","value":"1000"},{"name":"volumeMaxSizeGiB","value":"65536"},{"name":"volumeMinSizeGiB","value":"1"},{"name":"volumeIopsPerBaseGiB","value":"750"},{"name":"volumeMBpsPerBaseGiB","value":"192"},{"name":"volumeMaxIops","value":"64000"},{"name":"volumeMaxMBps","value":"1024"},{"name":"volumeMinIncrementSizeGiB","value":"1"}],"restrictions":[]},{"resourceType":"elasticSans","name":"Premium_LRS","tier":"Premium","locations":["westeurope"],"locationInfo":[{"location":"westeurope","zones":["2","3","1"],"zoneDetails":[]}],"capabilities":[{"name":"elasticSanIopsPerBaseTiB","value":"5000"},{"name":"elasticSanMaxSizeTiB","value":"400"},{"name":"elasticSanMinSizeTiB","value":"1"},{"name":"elasticSanMBpsPerBaseTiB","value":"80"},{"name":"elasticSanMaxMBps","value":"32000"},{"name":"elasticSanMinIncrementSizeTiB","value":"1"},{"name":"elasticSanMaxVolumeGroupCount","value":"20"},{"name":"elasticSanMaxIOPS","value":"2000000"},{"name":"volumeGroupMaxVolumeCount","value":"1000"},{"name":"volumeMaxSizeGiB","value":"65536"},{"name":"volumeMinSizeGiB","value":"1"},{"name":"volumeIopsPerBaseGiB","value":"750"},{"name":"volumeMBpsPerBaseGiB","value":"192"},{"name":"volumeMaxIops","value":"64000"},{"name":"volumeMaxMBps","value":"1024"},{"name":"volumeMinIncrementSizeGiB","value":"1"}],"restrictions":[]},{"resourceType":"elasticSans","name":"Premium_LRS","tier":"Premium","locations":["westus2"],"locationInfo":[{"location":"westus2","zones":["2","3","1"],"zoneDetails":[]}],"capabilities":[{"name":"elasticSanIopsPerBaseTiB","value":"5000"},{"name":"elasticSanMaxSizeTiB","value":"400"},{"name":"elasticSanMinSizeTiB","value":"1"},{"name":"elasticSanMBpsPerBaseTiB","value":"80"},{"name":"elasticSanMaxMBps","value":"32000"},{"name":"elasticSanMinIncrementSizeTiB","value":"1"},{"name":"elasticSanMaxVolumeGroupCount","value":"20"},{"name":"elasticSanMaxIOPS","value":"2000000"},{"name":"volumeGroupMaxVolumeCount","value":"1000"},{"name":"volumeMaxSizeGiB","value":"65536"},{"name":"volumeMinSizeGiB","value":"1"},{"name":"volumeIopsPerBaseGiB","value":"750"},{"name":"volumeMBpsPerBaseGiB","value":"192"},{"name":"volumeMaxIops","value":"64000"},{"name":"volumeMaxMBps","value":"1024"},{"name":"volumeMinIncrementSizeGiB","value":"1"}],"restrictions":[]},{"resourceType":"elasticSans","name":"Premium_LRS","tier":"Premium","locations":["westus3"],"locationInfo":[{"location":"westus3","zones":["2","3","1"],"zoneDetails":[]}],"capabilities":[{"name":"elasticSanIopsPerBaseTiB","value":"5000"},{"name":"elasticSanMaxSizeTiB","value":"100"},{"name":"elasticSanMinSizeTiB","value":"1"},{"name":"elasticSanMBpsPerBaseTiB","value":"80"},{"name":"elasticSanMaxMBps","value":"8000"},{"name":"elasticSanMinIncrementSizeTiB","value":"1"},{"name":"elasticSanMaxVolumeGroupCount","value":"20"},{"name":"elasticSanMaxIOPS","value":"500000"},{"name":"volumeGroupMaxVolumeCount","value":"1000"},{"name":"volumeMaxSizeGiB","value":"65536"},{"name":"volumeMinSizeGiB","value":"1"},{"name":"volumeIopsPerBaseGiB","value":"750"},{"name":"volumeMBpsPerBaseGiB","value":"192"},{"name":"volumeMaxIops","value":"64000"},{"name":"volumeMaxMBps","value":"1024"},{"name":"volumeMinIncrementSizeGiB","value":"1"}],"restrictions":[]},{"resourceType":"elasticSans","name":"Premium_ZRS","tier":"Premium","locations":["eastus2euap"],"locationInfo":[{"location":"eastus2euap","zones":[],"zoneDetails":[]}],"capabilities":[{"name":"elasticSanIopsPerBaseTiB","value":"5000"},{"name":"elasticSanMaxSizeTiB","value":"100"},{"name":"elasticSanMinSizeTiB","value":"1"},{"name":"elasticSanMBpsPerBaseTiB","value":"80"},{"name":"elasticSanMaxMBps","value":"8000"},{"name":"elasticSanMinIncrementSizeTiB","value":"1"},{"name":"elasticSanMaxVolumeGroupCount","value":"20"},{"name":"elasticSanMaxIOPS","value":"500000"},{"name":"volumeGroupMaxVolumeCount","value":"1000"},{"name":"volumeMaxSizeGiB","value":"65536"},{"name":"volumeMinSizeGiB","value":"1"},{"name":"volumeIopsPerBaseGiB","value":"750"},{"name":"volumeMBpsPerBaseGiB","value":"192"},{"name":"volumeMaxIops","value":"64000"},{"name":"volumeMaxMBps","value":"1024"},{"name":"volumeMinIncrementSizeGiB","value":"1"}],"restrictions":[]},{"resourceType":"elasticSans","name":"Premium_ZRS","tier":"Premium","locations":["francecentral"],"locationInfo":[{"location":"francecentral","zones":[],"zoneDetails":[]}],"capabilities":[{"name":"elasticSanIopsPerBaseTiB","value":"5000"},{"name":"elasticSanMaxSizeTiB","value":"100"},{"name":"elasticSanMinSizeTiB","value":"1"},{"name":"elasticSanMBpsPerBaseTiB","value":"80"},{"name":"elasticSanMaxMBps","value":"8000"},{"name":"elasticSanMinIncrementSizeTiB","value":"1"},{"name":"elasticSanMaxVolumeGroupCount","value":"20"},{"name":"elasticSanMaxIOPS","value":"500000"},{"name":"volumeGroupMaxVolumeCount","value":"1000"},{"name":"volumeMaxSizeGiB","value":"65536"},{"name":"volumeMinSizeGiB","value":"1"},{"name":"volumeIopsPerBaseGiB","value":"750"},{"name":"volumeMBpsPerBaseGiB","value":"192"},{"name":"volumeMaxIops","value":"64000"},{"name":"volumeMaxMBps","value":"1024"},{"name":"volumeMinIncrementSizeGiB","value":"1"}],"restrictions":[]},{"resourceType":"elasticSans","name":"Premium_ZRS","tier":"Premium","locations":["northeurope"],"locationInfo":[{"location":"northeurope","zones":[],"zoneDetails":[]}],"capabilities":[{"name":"elasticSanIopsPerBaseTiB","value":"5000"},{"name":"elasticSanMaxSizeTiB","value":"100"},{"name":"elasticSanMinSizeTiB","value":"1"},{"name":"elasticSanMBpsPerBaseTiB","value":"80"},{"name":"elasticSanMaxMBps","value":"8000"},{"name":"elasticSanMinIncrementSizeTiB","value":"1"},{"name":"elasticSanMaxVolumeGroupCount","value":"20"},{"name":"elasticSanMaxIOPS","value":"500000"},{"name":"volumeGroupMaxVolumeCount","value":"1000"},{"name":"volumeMaxSizeGiB","value":"65536"},{"name":"volumeMinSizeGiB","value":"1"},{"name":"volumeIopsPerBaseGiB","value":"750"},{"name":"volumeMBpsPerBaseGiB","value":"192"},{"name":"volumeMaxIops","value":"64000"},{"name":"volumeMaxMBps","value":"1024"},{"name":"volumeMinIncrementSizeGiB","value":"1"}],"restrictions":[]},{"resourceType":"elasticSans","name":"Premium_ZRS","tier":"Premium","locations":["westeurope"],"locationInfo":[{"location":"westeurope","zones":[],"zoneDetails":[]}],"capabilities":[{"name":"elasticSanIopsPerBaseTiB","value":"5000"},{"name":"elasticSanMaxSizeTiB","value":"100"},{"name":"elasticSanMinSizeTiB","value":"1"},{"name":"elasticSanMBpsPerBaseTiB","value":"80"},{"name":"elasticSanMaxMBps","value":"8000"},{"name":"elasticSanMinIncrementSizeTiB","value":"1"},{"name":"elasticSanMaxVolumeGroupCount","value":"20"},{"name":"elasticSanMaxIOPS","value":"500000"},{"name":"volumeGroupMaxVolumeCount","value":"1000"},{"name":"volumeMaxSizeGiB","value":"65536"},{"name":"volumeMinSizeGiB","value":"1"},{"name":"volumeIopsPerBaseGiB","value":"750"},{"name":"volumeMBpsPerBaseGiB","value":"192"},{"name":"volumeMaxIops","value":"64000"},{"name":"volumeMaxMBps","value":"1024"},{"name":"volumeMinIncrementSizeGiB","value":"1"}],"restrictions":[]},{"resourceType":"elasticSans","name":"Premium_ZRS","tier":"Premium","locations":["westus2"],"locationInfo":[{"location":"westus2","zones":[],"zoneDetails":[]}],"capabilities":[{"name":"elasticSanIopsPerBaseTiB","value":"5000"},{"name":"elasticSanMaxSizeTiB","value":"100"},{"name":"elasticSanMinSizeTiB","value":"1"},{"name":"elasticSanMBpsPerBaseTiB","value":"80"},{"name":"elasticSanMaxMBps","value":"8000"},{"name":"elasticSanMinIncrementSizeTiB","value":"1"},{"name":"elasticSanMaxVolumeGroupCount","value":"20"},{"name":"elasticSanMaxIOPS","value":"500000"},{"name":"volumeGroupMaxVolumeCount","value":"1000"},{"name":"volumeMaxSizeGiB","value":"65536"},{"name":"volumeMinSizeGiB","value":"1"},{"name":"volumeIopsPerBaseGiB","value":"750"},{"name":"volumeMBpsPerBaseGiB","value":"192"},{"name":"volumeMaxIops","value":"64000"},{"name":"volumeMaxMBps","value":"1024"},{"name":"volumeMinIncrementSizeGiB","value":"1"}],"restrictions":[]}]}' headers: cache-control: - no-cache content-length: - - '3786' + - '20076' content-type: - application/json; charset=utf-8 date: - - Thu, 29 Sep 2022 08:34:53 GMT + - Mon, 24 Jul 2023 08:34:33 GMT expires: - '-1' pragma: @@ -283,12 +331,12 @@ interactions: ParameterSetName: - -n -g --tags --base-size-tib --extended-capacity-size-tib User-Agent: - - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002?api-version=2021-11-20-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002?api-version=2022-12-01-preview response: body: - string: '{"properties":{"sku":{"name":"Premium_LRS","tier":"Premium"},"provisioningState":"Succeeded","baseSizeTiB":23,"extendedCapacitySizeTiB":14,"totalIops":115000,"totalMBps":1840,"totalSizeTiB":37,"volumeGroupCount":0,"totalVolumeSizeGiB":0},"location":"southcentralusstg","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002","name":"elastic-san000002","type":"Microsoft.ElasticSan/ElasticSans","tags":{"key1810":"aaaa"},"systemData":{"createdAt":"2022-09-29T08:34:13.3143577Z","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-09-29T08:34:13.3143577Z","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"location":"southcentralusstg","properties":{"sku":{"name":"Premium_LRS","tier":"Premium"},"provisioningState":"Succeeded","baseSizeTiB":23,"extendedCapacitySizeTiB":14,"totalIops":115000,"totalMBps":1840,"totalSizeTiB":37,"volumeGroupCount":0,"totalVolumeSizeGiB":0},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002","name":"elastic-san000002","type":"Microsoft.ElasticSan/ElasticSans","tags":{"key1810":"aaaa"},"systemData":{"createdAt":"2023-07-24T08:33:53.4344499Z","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-07-24T08:33:53.4344499Z","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache @@ -297,7 +345,7 @@ interactions: content-type: - application/json date: - - Thu, 29 Sep 2022 08:34:56 GMT + - Mon, 24 Jul 2023 08:34:34 GMT expires: - '-1' pragma: @@ -335,25 +383,25 @@ interactions: ParameterSetName: - -n -g --tags --base-size-tib --extended-capacity-size-tib User-Agent: - - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002?api-version=2021-11-20-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002?api-version=2022-12-01-preview response: body: - string: '{"properties":{"sku":{"name":"Premium_LRS","tier":"Premium"},"provisioningState":"Updating","baseSizeTiB":25,"extendedCapacitySizeTiB":15,"totalIops":125000,"totalMBps":2000,"totalSizeTiB":40,"volumeGroupCount":0,"totalVolumeSizeGiB":0},"location":"southcentralusstg","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002","name":"elastic-san000002","type":"Microsoft.ElasticSan/ElasticSans","tags":{"key1710":"bbbb"},"systemData":{"createdAt":"2022-09-29T08:34:13.3143577Z","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-09-29T08:35:01.046445Z","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"location":"southcentralusstg","properties":{"sku":{"name":"Premium_LRS","tier":"Premium"},"provisioningState":"Updating","baseSizeTiB":25,"extendedCapacitySizeTiB":15,"totalIops":125000,"totalMBps":2000,"totalSizeTiB":40,"volumeGroupCount":0,"totalVolumeSizeGiB":0},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002","name":"elastic-san000002","type":"Microsoft.ElasticSan/ElasticSans","tags":{"key1710":"bbbb"},"systemData":{"createdAt":"2023-07-24T08:33:53.4344499Z","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-07-24T08:34:35.8703002Z","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '769' + - '770' content-type: - application/json date: - - Thu, 29 Sep 2022 08:35:00 GMT + - Mon, 24 Jul 2023 08:34:36 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/c7ad04fd-2348-4b8c-88a1-eefc19592e05?monitor=true&api-version=2021-11-20-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/6bb843db-b316-459a-bd66-81a83edbe2e2?monitor=true&api-version=2022-12-01-preview pragma: - no-cache server: @@ -363,7 +411,51 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1195' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - elastic-san update + Connection: + - keep-alive + ParameterSetName: + - -n -g --tags --base-size-tib --extended-capacity-size-tib + User-Agent: + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/6bb843db-b316-459a-bd66-81a83edbe2e2?monitor=true&api-version=2022-12-01-preview + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + content-type: + - text/plain; charset=utf-8 + date: + - Mon, 24 Jul 2023 08:34:36 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/6bb843db-b316-459a-bd66-81a83edbe2e2?monitor=true&api-version=2022-12-01-preview + pragma: + - no-cache + server: + - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff status: code: 202 message: Accepted @@ -381,21 +473,21 @@ interactions: ParameterSetName: - -n -g --tags --base-size-tib --extended-capacity-size-tib User-Agent: - - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/c7ad04fd-2348-4b8c-88a1-eefc19592e05?monitor=true&api-version=2021-11-20-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/6bb843db-b316-459a-bd66-81a83edbe2e2?monitor=true&api-version=2022-12-01-preview response: body: - string: '{"properties":{"sku":{"name":"Premium_LRS","tier":"Premium"},"provisioningState":"Succeeded","baseSizeTiB":25,"extendedCapacitySizeTiB":15,"totalIops":125000,"totalMBps":2000,"totalSizeTiB":40,"volumeGroupCount":0,"totalVolumeSizeGiB":0},"location":"southcentralusstg","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002","name":"elastic-san000002","type":"Microsoft.ElasticSan/ElasticSans","tags":{"key1710":"bbbb"},"systemData":{"createdAt":"2022-09-29T08:34:13.3143577Z","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2022-09-29T08:35:01.046445Z","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + string: '{"location":"southcentralusstg","properties":{"sku":{"name":"Premium_LRS","tier":"Premium"},"provisioningState":"Succeeded","baseSizeTiB":25,"extendedCapacitySizeTiB":15,"totalIops":125000,"totalMBps":2000,"totalSizeTiB":40,"volumeGroupCount":0,"totalVolumeSizeGiB":0},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002","name":"elastic-san000002","type":"Microsoft.ElasticSan/ElasticSans","tags":{"key1710":"bbbb"},"systemData":{"createdAt":"2023-07-24T08:33:53.4344499Z","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-07-24T08:34:35.8703002Z","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '770' + - '771' content-type: - application/json date: - - Thu, 29 Sep 2022 08:35:18 GMT + - Mon, 24 Jul 2023 08:34:53 GMT expires: - '-1' pragma: @@ -429,9 +521,55 @@ interactions: ParameterSetName: - -g -n -y User-Agent: - - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002?api-version=2021-11-20-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002?api-version=2022-12-01-preview + response: + body: + string: '{"location":"southcentralusstg","properties":{"sku":{"name":"Premium_LRS","tier":"Premium"},"provisioningState":"Deleting","baseSizeTiB":25,"extendedCapacitySizeTiB":15,"totalIops":125000,"totalMBps":2000,"totalSizeTiB":40,"volumeGroupCount":0,"totalVolumeSizeGiB":0},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002","name":"elastic-san000002","type":"Microsoft.ElasticSan/ElasticSans","tags":{"key1710":"bbbb"},"systemData":{"createdAt":"2023-07-24T08:33:53.4344499Z","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-07-24T08:34:35.8703002Z","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + headers: + cache-control: + - no-cache + content-length: + - '770' + content-type: + - application/json + date: + - Mon, 24 Jul 2023 08:34:54 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/85f20bf9-a134-48d8-9d75-0732fa8394cf?monitor=true&api-version=2022-12-01-preview + pragma: + - no-cache + server: + - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - elastic-san delete + Connection: + - keep-alive + ParameterSetName: + - -g -n -y + User-Agent: + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/85f20bf9-a134-48d8-9d75-0732fa8394cf?monitor=true&api-version=2022-12-01-preview response: body: string: '' @@ -443,7 +581,51 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Thu, 29 Sep 2022 08:35:27 GMT + - Mon, 24 Jul 2023 08:34:55 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/85f20bf9-a134-48d8-9d75-0732fa8394cf?monitor=true&api-version=2022-12-01-preview + pragma: + - no-cache + server: + - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - elastic-san delete + Connection: + - keep-alive + ParameterSetName: + - -g -n -y + User-Agent: + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/85f20bf9-a134-48d8-9d75-0732fa8394cf?monitor=true&api-version=2022-12-01-preview + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + content-type: + - text/plain; charset=utf-8 + date: + - Mon, 24 Jul 2023 08:35:13 GMT expires: - '-1' pragma: @@ -454,8 +636,6 @@ interactions: - max-age=31536000; includeSubDomains x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' status: code: 200 message: OK @@ -473,9 +653,9 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.40.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan000001/providers/Microsoft.ElasticSan/elasticSans?api-version=2021-11-20-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan000001/providers/Microsoft.ElasticSan/elasticSans?api-version=2022-12-01-preview response: body: string: '{"value":[]}' @@ -487,7 +667,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 29 Sep 2022 08:35:48 GMT + - Mon, 24 Jul 2023 08:35:35 GMT expires: - '-1' pragma: diff --git a/src/elastic-san/azext_elastic_san/tests/latest/recordings/test_elastic_san_volume_group_and_volume_scenarios.yaml b/src/elastic-san/azext_elastic_san/tests/latest/recordings/test_elastic_san_volume_group_and_volume_scenarios.yaml index 8d6af3a8b51..0c9f4f983fd 100644 --- a/src/elastic-san/azext_elastic_san/tests/latest/recordings/test_elastic_san_volume_group_and_volume_scenarios.yaml +++ b/src/elastic-san/azext_elastic_san/tests/latest/recordings/test_elastic_san_volume_group_and_volume_scenarios.yaml @@ -19,25 +19,25 @@ interactions: ParameterSetName: - -n -g --tags -l --base-size-tib --extended-capacity-size-tib --sku User-Agent: - - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.10.6 (macOS-13.2.1-x86_64-i386-64bit) + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002?api-version=2021-11-20-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002?api-version=2022-12-01-preview response: body: - string: '{"properties":{"sku":{"name":"Premium_LRS","tier":"Premium"},"provisioningState":"Creating","baseSizeTiB":23,"extendedCapacitySizeTiB":14,"totalIops":115000,"totalMBps":1840,"totalSizeTiB":37,"volumeGroupCount":0,"totalVolumeSizeGiB":0},"location":"southcentralusstg","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002","name":"elastic-san000002","type":"Microsoft.ElasticSan/ElasticSans","tags":{"key1810":"aaaa"},"systemData":{"createdAt":"2023-03-24T03:40:43.0252637Z","createdBy":"liwang3@microsoft.com","createdByType":"User","lastModifiedAt":"2023-03-24T03:40:43.0252637Z","lastModifiedBy":"liwang3@microsoft.com","lastModifiedByType":"User"}}' + string: '{"location":"southcentralusstg","properties":{"sku":{"name":"Premium_LRS","tier":"Premium"},"provisioningState":"Creating","baseSizeTiB":23,"extendedCapacitySizeTiB":14,"totalIops":115000,"totalMBps":1840,"totalSizeTiB":37,"volumeGroupCount":0,"totalVolumeSizeGiB":0},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002","name":"elastic-san000002","type":"Microsoft.ElasticSan/ElasticSans","tags":{"key1810":"aaaa"},"systemData":{"createdAt":"2023-07-24T08:33:54.2378231Z","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-07-24T08:33:54.2378231Z","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '776' + - '782' content-type: - application/json date: - - Fri, 24 Mar 2023 03:40:44 GMT + - Mon, 24 Jul 2023 08:33:53 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/2800d1c4-4d2a-4997-bfca-75ce843a137d?monitor=true&api-version=2021-11-20-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/65b0eceb-de99-4fae-a2a0-fd8cf49b4f4e?monitor=true&api-version=2022-12-01-preview pragma: - no-cache server: @@ -47,7 +47,51 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1194' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - elastic-san create + Connection: + - keep-alive + ParameterSetName: + - -n -g --tags -l --base-size-tib --extended-capacity-size-tib --sku + User-Agent: + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/65b0eceb-de99-4fae-a2a0-fd8cf49b4f4e?monitor=true&api-version=2022-12-01-preview + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + content-type: + - text/plain; charset=utf-8 + date: + - Mon, 24 Jul 2023 08:33:54 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/65b0eceb-de99-4fae-a2a0-fd8cf49b4f4e?monitor=true&api-version=2022-12-01-preview + pragma: + - no-cache + server: + - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff status: code: 202 message: Accepted @@ -65,9 +109,9 @@ interactions: ParameterSetName: - -n -g --tags -l --base-size-tib --extended-capacity-size-tib --sku User-Agent: - - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.10.6 (macOS-13.2.1-x86_64-i386-64bit) + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/2800d1c4-4d2a-4997-bfca-75ce843a137d?monitor=true&api-version=2021-11-20-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/65b0eceb-de99-4fae-a2a0-fd8cf49b4f4e?monitor=true&api-version=2022-12-01-preview response: body: string: '' @@ -79,11 +123,11 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Fri, 24 Mar 2023 03:41:01 GMT + - Mon, 24 Jul 2023 08:34:12 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/2800d1c4-4d2a-4997-bfca-75ce843a137d?monitor=true&api-version=2021-11-20-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/65b0eceb-de99-4fae-a2a0-fd8cf49b4f4e?monitor=true&api-version=2022-12-01-preview pragma: - no-cache server: @@ -109,21 +153,21 @@ interactions: ParameterSetName: - -n -g --tags -l --base-size-tib --extended-capacity-size-tib --sku User-Agent: - - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.10.6 (macOS-13.2.1-x86_64-i386-64bit) + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/2800d1c4-4d2a-4997-bfca-75ce843a137d?monitor=true&api-version=2021-11-20-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/65b0eceb-de99-4fae-a2a0-fd8cf49b4f4e?monitor=true&api-version=2022-12-01-preview response: body: - string: '{"properties":{"sku":{"name":"Premium_LRS","tier":"Premium"},"provisioningState":"Succeeded","baseSizeTiB":23,"extendedCapacitySizeTiB":14,"totalIops":115000,"totalMBps":1840,"totalSizeTiB":37,"volumeGroupCount":0,"totalVolumeSizeGiB":0},"location":"southcentralusstg","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002","name":"elastic-san000002","type":"Microsoft.ElasticSan/ElasticSans","tags":{"key1810":"aaaa"},"systemData":{"createdAt":"2023-03-24T03:40:43.0252637Z","createdBy":"liwang3@microsoft.com","createdByType":"User","lastModifiedAt":"2023-03-24T03:40:43.0252637Z","lastModifiedBy":"liwang3@microsoft.com","lastModifiedByType":"User"}}' + string: '{"location":"southcentralusstg","properties":{"sku":{"name":"Premium_LRS","tier":"Premium"},"provisioningState":"Succeeded","baseSizeTiB":23,"extendedCapacitySizeTiB":14,"totalIops":115000,"totalMBps":1840,"totalSizeTiB":37,"volumeGroupCount":0,"totalVolumeSizeGiB":0},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002","name":"elastic-san000002","type":"Microsoft.ElasticSan/ElasticSans","tags":{"key1810":"aaaa"},"systemData":{"createdAt":"2023-07-24T08:33:54.2378231Z","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-07-24T08:33:54.2378231Z","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '777' + - '783' content-type: - application/json date: - - Fri, 24 Mar 2023 03:41:18 GMT + - Mon, 24 Jul 2023 08:34:29 GMT expires: - '-1' pragma: @@ -155,21 +199,22 @@ interactions: ParameterSetName: - -g -n --address-prefix --subnet-name --subnet-prefix User-Agent: - - AZURECLI/2.46.0 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.10.6 (macOS-13.2.1-x86_64-i386-64bit) + - AZURECLI/2.50.0 (PIP) azsdk-python-azure-mgmt-resource/23.1.0b2 Python/3.9.13 + (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg.testelasticsan.volumegroup000001?api-version=2022-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001","name":"clitest.rg.testelasticsan.volumegroup000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2023-03-24T03:40:28Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001","name":"clitest.rg.testelasticsan.volumegroup000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","test":"test_elastic_san_volume_group_and_volume_scenarios","date":"2023-07-24T08:33:49Z","module":"elastic-san"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '369' + - '452' content-type: - application/json; charset=utf-8 date: - - Fri, 24 Mar 2023 03:41:25 GMT + - Mon, 24 Jul 2023 08:34:32 GMT expires: - '-1' pragma: @@ -203,32 +248,30 @@ interactions: ParameterSetName: - -g -n --address-prefix --subnet-name --subnet-prefix User-Agent: - - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.10.6 (macOS-13.2.1-x86_64-i386-64bit) + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.Network/virtualNetworks/vnet000004?api-version=2022-01-01 response: body: - string: "{\r\n \"name\": \"vnet000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.Network/virtualNetworks/vnet000004\"\ - ,\r\n \"etag\": \"W/\\\"9388c5f4-027d-4abd-878c-39e7eab0f8c1\\\"\",\r\n \ - \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus2euap\"\ - ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \ - \ \"resourceGuid\": \"eea2386d-950c-4431-865b-82c08b7e32e2\",\r\n \"\ - addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\ - \r\n ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\"\ - : \"subnet000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.Network/virtualNetworks/vnet000004/subnets/subnet000005\"\ - ,\r\n \"etag\": \"W/\\\"9388c5f4-027d-4abd-878c-39e7eab0f8c1\\\"\"\ - ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\ - ,\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \"delegations\"\ - : [],\r\n \"privateEndpointNetworkPolicies\": \"Disabled\",\r\n \ - \ \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\ - \n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n \ - \ }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\"\ - : false\r\n }\r\n}" + string: "{\r\n \"name\": \"vnet000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.Network/virtualNetworks/vnet000004\",\r\n + \ \"etag\": \"W/\\\"39635e9d-9f8d-49fa-8af4-dfd45bcbb534\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus2euap\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": + \"fa16fc9b-c1b9-4e99-8e6a-00b991041c4e\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": + [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [\r\n + \ {\r\n \"name\": \"subnet000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.Network/virtualNetworks/vnet000004/subnets/subnet000005\",\r\n + \ \"etag\": \"W/\\\"39635e9d-9f8d-49fa-8af4-dfd45bcbb534\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"addressPrefix\": \"10.0.0.0/24\",\r\n \"delegations\": + [],\r\n \"privateEndpointNetworkPolicies\": \"Disabled\",\r\n \"privateLinkServiceNetworkPolicies\": + \"Enabled\"\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n + \ }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": + false\r\n }\r\n}" headers: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus2euap/operations/19b26ab9-8089-44e5-91fe-c55f1fe9432e?api-version=2022-01-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus2euap/operations/42707106-06a5-4a62-9a49-1a755b3da376?api-version=2022-01-01 cache-control: - no-cache content-length: @@ -236,7 +279,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 24 Mar 2023 03:41:32 GMT + - Mon, 24 Jul 2023 08:34:34 GMT expires: - '-1' pragma: @@ -249,9 +292,9 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - f08397a4-7b78-4cfa-a2e1-83350edd5f40 + - 4bffba65-4a94-4824-b347-779b6c860bbc x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1196' status: code: 201 message: '' @@ -269,9 +312,58 @@ interactions: ParameterSetName: - -g -n --address-prefix --subnet-name --subnet-prefix User-Agent: - - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.10.6 (macOS-13.2.1-x86_64-i386-64bit) + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus2euap/operations/42707106-06a5-4a62-9a49-1a755b3da376?api-version=2022-01-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jul 2023 08:34:34 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - b82dce14-fe02-4ea5-9814-0a84d3f0975f + status: + code: 200 + message: '' +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet create + Connection: + - keep-alive + ParameterSetName: + - -g -n --address-prefix --subnet-name --subnet-prefix + User-Agent: + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus2euap/operations/19b26ab9-8089-44e5-91fe-c55f1fe9432e?api-version=2022-01-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus2euap/operations/42707106-06a5-4a62-9a49-1a755b3da376?api-version=2022-01-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -283,7 +375,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 24 Mar 2023 03:41:35 GMT + - Mon, 24 Jul 2023 08:34:44 GMT expires: - '-1' pragma: @@ -300,7 +392,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 91c748ce-b17e-44e7-8a64-29eabadc2d7b + - f909e96a-c3d4-45fc-9f5d-cd713dee2206 status: code: 200 message: '' @@ -318,27 +410,25 @@ interactions: ParameterSetName: - -g -n --address-prefix --subnet-name --subnet-prefix User-Agent: - - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.10.6 (macOS-13.2.1-x86_64-i386-64bit) + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.Network/virtualNetworks/vnet000004?api-version=2022-01-01 response: body: - string: "{\r\n \"name\": \"vnet000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.Network/virtualNetworks/vnet000004\"\ - ,\r\n \"etag\": \"W/\\\"d455493d-dff0-40c4-b092-276026b47c77\\\"\",\r\n \ - \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus2euap\"\ - ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n\ - \ \"resourceGuid\": \"eea2386d-950c-4431-865b-82c08b7e32e2\",\r\n \"\ - addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\ - \r\n ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\"\ - : \"subnet000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.Network/virtualNetworks/vnet000004/subnets/subnet000005\"\ - ,\r\n \"etag\": \"W/\\\"d455493d-dff0-40c4-b092-276026b47c77\\\"\"\ - ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ - ,\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \"delegations\"\ - : [],\r\n \"privateEndpointNetworkPolicies\": \"Disabled\",\r\n \ - \ \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\ - \n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n \ - \ }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\"\ - : false\r\n }\r\n}" + string: "{\r\n \"name\": \"vnet000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.Network/virtualNetworks/vnet000004\",\r\n + \ \"etag\": \"W/\\\"8f7e53bc-9892-4de4-8cba-a8f73ab9c7e6\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus2euap\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": + \"fa16fc9b-c1b9-4e99-8e6a-00b991041c4e\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": + [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [\r\n + \ {\r\n \"name\": \"subnet000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.Network/virtualNetworks/vnet000004/subnets/subnet000005\",\r\n + \ \"etag\": \"W/\\\"8f7e53bc-9892-4de4-8cba-a8f73ab9c7e6\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"addressPrefix\": \"10.0.0.0/24\",\r\n \"delegations\": + [],\r\n \"privateEndpointNetworkPolicies\": \"Disabled\",\r\n \"privateLinkServiceNetworkPolicies\": + \"Enabled\"\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n + \ }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": + false\r\n }\r\n}" headers: cache-control: - no-cache @@ -347,9 +437,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 24 Mar 2023 03:41:36 GMT + - Mon, 24 Jul 2023 08:34:44 GMT etag: - - W/"d455493d-dff0-40c4-b092-276026b47c77" + - W/"8f7e53bc-9892-4de4-8cba-a8f73ab9c7e6" expires: - '-1' pragma: @@ -366,14 +456,14 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 9025b249-f4a5-475d-b344-c560665b7852 + - f7bb5155-89d9-49c1-aa03-228a3291d23f status: code: 200 message: '' - request: body: '{"properties": {"encryption": "EncryptionAtRestWithPlatformKey", "networkAcls": {"virtualNetworkRules": [{"action": "Allow", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.Network/virtualNetworks/vnet000004/subnets/subnet000005"}]}, - "protocolType": "Iscsi"}, "tags": {"key1910": "bbbb"}}' + "protocolType": "Iscsi"}}' headers: Accept: - application/json @@ -384,31 +474,31 @@ interactions: Connection: - keep-alive Content-Length: - - '378' + - '349' Content-Type: - application/json ParameterSetName: - - -e -n -g --tags --encryption --protocol-type --network-acls + - -e -n -g --encryption --protocol-type --network-acls User-Agent: - - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.10.6 (macOS-13.2.1-x86_64-i386-64bit) + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003?api-version=2021-11-20-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003?api-version=2022-12-01-preview response: body: - string: '{"properties":{"provisioningState":"Creating","networkAcls":{"virtualNetworkRules":[{"action":"Allow","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.Network/virtualNetworks/vnet000004/subnets/subnet000005","state":"Provisioning"}]},"protocolType":"iSCSI","encryption":"EncryptionAtRestWithPlatformKey"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003","name":"volume-group000003","type":"Microsoft.ElasticSan/elasticSans/volumeGroups","tags":{"key1910":"bbbb"},"systemData":{"createdAt":"2023-03-24T03:41:37.2384648Z","createdBy":"liwang3@microsoft.com","createdByType":"User","lastModifiedAt":"2023-03-24T03:41:37.2384648Z","lastModifiedBy":"liwang3@microsoft.com","lastModifiedByType":"User"}}' + string: '{"properties":{"provisioningState":"Creating","networkAcls":{"virtualNetworkRules":[{"action":"Allow","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.Network/virtualNetworks/vnet000004/subnets/subnet000005","state":"Provisioning"}]},"protocolType":"iSCSI","encryption":"EncryptionAtRestWithPlatformKey"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003","name":"volume-group000003","type":"Microsoft.ElasticSan/elasticSans/volumeGroups","systemData":{"createdAt":"2023-07-24T08:34:47.5244447Z","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-07-24T08:34:47.5244447Z","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '947' + - '927' content-type: - application/json date: - - Fri, 24 Mar 2023 03:41:39 GMT + - Mon, 24 Jul 2023 08:34:47 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/96f067f3-f94a-4730-bcf7-2a28fb4f0b94?monitor=true&api-version=2021-11-20-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/410fd017-068e-4599-9c8b-f6a41d4ad607?monitor=true&api-version=2022-12-01-preview pragma: - no-cache server: @@ -418,10 +508,10 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1195' status: - code: 202 - message: Accepted + code: 201 + message: Created - request: body: null headers: @@ -434,23 +524,23 @@ interactions: Connection: - keep-alive ParameterSetName: - - -e -n -g --tags --encryption --protocol-type --network-acls + - -e -n -g --encryption --protocol-type --network-acls User-Agent: - - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.10.6 (macOS-13.2.1-x86_64-i386-64bit) + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/96f067f3-f94a-4730-bcf7-2a28fb4f0b94?monitor=true&api-version=2021-11-20-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/410fd017-068e-4599-9c8b-f6a41d4ad607?monitor=true&api-version=2022-12-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","networkAcls":{"virtualNetworkRules":[{"action":"Allow","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.Network/virtualNetworks/vnet000004/subnets/subnet000005","state":"Provisioning"}]},"protocolType":"iSCSI","encryption":"EncryptionAtRestWithPlatformKey"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003","name":"volume-group000003","type":"Microsoft.ElasticSan/elasticSans/volumeGroups","tags":{"key1910":"bbbb"},"systemData":{"createdAt":"2023-03-24T03:41:37.2384648Z","createdBy":"liwang3@microsoft.com","createdByType":"User","lastModifiedAt":"2023-03-24T03:41:37.2384648Z","lastModifiedBy":"liwang3@microsoft.com","lastModifiedByType":"User"}}' + string: '{"properties":{"provisioningState":"Succeeded","networkAcls":{"virtualNetworkRules":[{"action":"Allow","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.Network/virtualNetworks/vnet000004/subnets/subnet000005","state":"Provisioning"}]},"protocolType":"iSCSI","encryption":"EncryptionAtRestWithPlatformKey"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003","name":"volume-group000003","type":"Microsoft.ElasticSan/elasticSans/volumeGroups","systemData":{"createdAt":"2023-07-24T08:34:47.5244447Z","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-07-24T08:34:47.5244447Z","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '948' + - '928' content-type: - application/json date: - - Fri, 24 Mar 2023 03:41:57 GMT + - Mon, 24 Jul 2023 08:34:47 GMT expires: - '-1' pragma: @@ -482,21 +572,21 @@ interactions: ParameterSetName: - -g -e -n User-Agent: - - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.10.6 (macOS-13.2.1-x86_64-i386-64bit) + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003?api-version=2021-11-20-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003?api-version=2022-12-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","networkAcls":{"virtualNetworkRules":[{"action":"Allow","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.Network/virtualNetworks/vnet000004/subnets/subnet000005","state":"Provisioning"}]},"protocolType":"iSCSI","encryption":"EncryptionAtRestWithPlatformKey"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003","name":"volume-group000003","type":"Microsoft.ElasticSan/elasticSans/volumeGroups","tags":{"key1910":"bbbb"},"systemData":{"createdAt":"2023-03-24T03:41:37.2384648Z","createdBy":"liwang3@microsoft.com","createdByType":"User","lastModifiedAt":"2023-03-24T03:41:37.2384648Z","lastModifiedBy":"liwang3@microsoft.com","lastModifiedByType":"User"}}' + string: '{"properties":{"provisioningState":"Succeeded","networkAcls":{"virtualNetworkRules":[{"action":"Allow","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.Network/virtualNetworks/vnet000004/subnets/subnet000005","state":"Provisioning"}]},"protocolType":"iSCSI","encryption":"EncryptionAtRestWithPlatformKey"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003","name":"volume-group000003","type":"Microsoft.ElasticSan/elasticSans/volumeGroups","systemData":{"createdAt":"2023-07-24T08:34:47.5244447Z","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-07-24T08:34:47.5244447Z","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '948' + - '928' content-type: - application/json date: - - Fri, 24 Mar 2023 03:42:01 GMT + - Mon, 24 Jul 2023 08:34:49 GMT expires: - '-1' pragma: @@ -528,21 +618,21 @@ interactions: ParameterSetName: - -g -e User-Agent: - - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.10.6 (macOS-13.2.1-x86_64-i386-64bit) + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumeGroups?api-version=2021-11-20-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumeGroups?api-version=2022-12-01-preview response: body: - string: '{"value":[{"properties":{"provisioningState":"Succeeded","networkAcls":{"virtualNetworkRules":[{"action":"Allow","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.Network/virtualNetworks/vnet000004/subnets/subnet000005","state":"Provisioning"}]},"protocolType":"iSCSI","encryption":"EncryptionAtRestWithPlatformKey"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003","name":"volume-group000003","type":"Microsoft.ElasticSan/elasticSans/volumeGroups","tags":{"key1910":"bbbb"},"systemData":{"createdAt":"2023-03-24T03:41:37.2384648Z","createdBy":"liwang3@microsoft.com","createdByType":"User","lastModifiedAt":"2023-03-24T03:41:37.2384648Z","lastModifiedBy":"liwang3@microsoft.com","lastModifiedByType":"User"}}]}' + string: '{"value":[{"properties":{"provisioningState":"Succeeded","networkAcls":{"virtualNetworkRules":[{"action":"Allow","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.Network/virtualNetworks/vnet000004/subnets/subnet000005","state":"Provisioning"}]},"protocolType":"iSCSI","encryption":"EncryptionAtRestWithPlatformKey"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003","name":"volume-group000003","type":"Microsoft.ElasticSan/elasticSans/volumeGroups","systemData":{"createdAt":"2023-07-24T08:34:47.5244447Z","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-07-24T08:34:47.5244447Z","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' headers: cache-control: - no-cache content-length: - - '960' + - '940' content-type: - application/json date: - - Fri, 24 Mar 2023 03:42:04 GMT + - Mon, 24 Jul 2023 08:34:51 GMT expires: - '-1' pragma: @@ -579,25 +669,24 @@ interactions: ParameterSetName: - -g --vnet-name --name --address-prefixes --service-endpoints User-Agent: - - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.10.6 (macOS-13.2.1-x86_64-i386-64bit) + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.Network/virtualNetworks/vnet000004/subnets/subnet000006?api-version=2022-01-01 response: body: - string: "{\r\n \"name\": \"subnet000006\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.Network/virtualNetworks/vnet000004/subnets/subnet000006\"\ - ,\r\n \"etag\": \"W/\\\"803cced3-34c8-40f1-bdf4-2debdd304265\\\"\",\r\n \ - \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"\ - addressPrefix\": \"10.0.1.0/24\",\r\n \"serviceEndpoints\": [\r\n \ - \ {\r\n \"provisioningState\": \"Updating\",\r\n \"service\"\ - : \"Microsoft.Storage\",\r\n \"locations\": [\r\n \"*\"\r\n\ - \ ]\r\n }\r\n ],\r\n \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\"\ - : \"Disabled\",\r\n \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\ - \n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n}" + string: "{\r\n \"name\": \"subnet000006\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.Network/virtualNetworks/vnet000004/subnets/subnet000006\",\r\n + \ \"etag\": \"W/\\\"0ed41d9c-f11d-45cd-bac1-b2b515f219bb\\\"\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Updating\",\r\n \"addressPrefix\": \"10.0.1.0/24\",\r\n + \ \"serviceEndpoints\": [\r\n {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"service\": \"Microsoft.Storage\",\r\n \"locations\": [\r\n + \ \"*\"\r\n ]\r\n }\r\n ],\r\n \"delegations\": + [],\r\n \"privateEndpointNetworkPolicies\": \"Disabled\",\r\n \"privateLinkServiceNetworkPolicies\": + \"Enabled\"\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n}" headers: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus2euap/operations/1f4e98b9-0c1d-484b-8491-c360c0d63915?api-version=2022-01-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus2euap/operations/7e13eca7-55ff-44ca-ac31-615371da240f?api-version=2022-01-01 cache-control: - no-cache content-length: @@ -605,7 +694,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 24 Mar 2023 03:42:06 GMT + - Mon, 24 Jul 2023 08:34:53 GMT expires: - '-1' pragma: @@ -618,9 +707,9 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 7fc82b89-887f-4e56-9c6d-936834b7a28a + - fae8432d-e4a4-4419-bea8-ba2b4e410469 x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1194' status: code: 201 message: '' @@ -638,9 +727,58 @@ interactions: ParameterSetName: - -g --vnet-name --name --address-prefixes --service-endpoints User-Agent: - - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.10.6 (macOS-13.2.1-x86_64-i386-64bit) + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus2euap/operations/7e13eca7-55ff-44ca-ac31-615371da240f?api-version=2022-01-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jul 2023 08:34:53 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 9475cddb-08f2-4a95-b2a9-7054676722ea + status: + code: 200 + message: '' +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet subnet create + Connection: + - keep-alive + ParameterSetName: + - -g --vnet-name --name --address-prefixes --service-endpoints + User-Agent: + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus2euap/operations/1f4e98b9-0c1d-484b-8491-c360c0d63915?api-version=2022-01-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus2euap/operations/7e13eca7-55ff-44ca-ac31-615371da240f?api-version=2022-01-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -652,7 +790,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 24 Mar 2023 03:42:10 GMT + - Mon, 24 Jul 2023 08:35:03 GMT expires: - '-1' pragma: @@ -669,7 +807,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - bfd8b7d0-c9ed-4ff7-9c04-02cde7973a53 + - a5f3824e-c8f8-48e2-b956-b0938d7581f6 status: code: 200 message: '' @@ -687,20 +825,19 @@ interactions: ParameterSetName: - -g --vnet-name --name --address-prefixes --service-endpoints User-Agent: - - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.10.6 (macOS-13.2.1-x86_64-i386-64bit) + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.Network/virtualNetworks/vnet000004/subnets/subnet000006?api-version=2022-01-01 response: body: - string: "{\r\n \"name\": \"subnet000006\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.Network/virtualNetworks/vnet000004/subnets/subnet000006\"\ - ,\r\n \"etag\": \"W/\\\"11509f17-7a7b-4b66-b5e5-ba19bb392e89\\\"\",\r\n \ - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"\ - addressPrefix\": \"10.0.1.0/24\",\r\n \"serviceEndpoints\": [\r\n \ - \ {\r\n \"provisioningState\": \"Succeeded\",\r\n \"service\"\ - : \"Microsoft.Storage\",\r\n \"locations\": [\r\n \"*\"\r\n\ - \ ]\r\n }\r\n ],\r\n \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\"\ - : \"Disabled\",\r\n \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\ - \n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n}" + string: "{\r\n \"name\": \"subnet000006\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.Network/virtualNetworks/vnet000004/subnets/subnet000006\",\r\n + \ \"etag\": \"W/\\\"bb930b45-1a4d-4c9f-8a52-6950126709f8\\\"\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.1.0/24\",\r\n + \ \"serviceEndpoints\": [\r\n {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"service\": \"Microsoft.Storage\",\r\n \"locations\": [\r\n + \ \"*\"\r\n ]\r\n }\r\n ],\r\n \"delegations\": + [],\r\n \"privateEndpointNetworkPolicies\": \"Disabled\",\r\n \"privateLinkServiceNetworkPolicies\": + \"Enabled\"\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n}" headers: cache-control: - no-cache @@ -709,9 +846,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 24 Mar 2023 03:42:16 GMT + - Mon, 24 Jul 2023 08:35:03 GMT etag: - - W/"11509f17-7a7b-4b66-b5e5-ba19bb392e89" + - W/"bb930b45-1a4d-4c9f-8a52-6950126709f8" expires: - '-1' pragma: @@ -728,7 +865,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 86f3f98f-342a-4cc5-897c-5ceeb4ac03dd + - c5a7a583-8170-4bc9-b619-0d3a7c6db0b6 status: code: 200 message: '' @@ -744,23 +881,23 @@ interactions: Connection: - keep-alive ParameterSetName: - - -e -n -g --tags --protocol-type --network-acls + - -e -n -g --protocol-type --network-acls User-Agent: - - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.10.6 (macOS-13.2.1-x86_64-i386-64bit) + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003?api-version=2021-11-20-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003?api-version=2022-12-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","networkAcls":{"virtualNetworkRules":[{"action":"Allow","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.Network/virtualNetworks/vnet000004/subnets/subnet000005","state":"Provisioning"}]},"protocolType":"iSCSI","encryption":"EncryptionAtRestWithPlatformKey"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003","name":"volume-group000003","type":"Microsoft.ElasticSan/elasticSans/volumeGroups","tags":{"key1910":"bbbb"},"systemData":{"createdAt":"2023-03-24T03:41:37.2384648Z","createdBy":"liwang3@microsoft.com","createdByType":"User","lastModifiedAt":"2023-03-24T03:41:37.2384648Z","lastModifiedBy":"liwang3@microsoft.com","lastModifiedByType":"User"}}' + string: '{"properties":{"provisioningState":"Succeeded","networkAcls":{"virtualNetworkRules":[{"action":"Allow","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.Network/virtualNetworks/vnet000004/subnets/subnet000005","state":"Provisioning"}]},"protocolType":"iSCSI","encryption":"EncryptionAtRestWithPlatformKey"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003","name":"volume-group000003","type":"Microsoft.ElasticSan/elasticSans/volumeGroups","systemData":{"createdAt":"2023-07-24T08:34:47.5244447Z","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-07-24T08:34:47.5244447Z","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '948' + - '928' content-type: - application/json date: - - Fri, 24 Mar 2023 03:42:18 GMT + - Mon, 24 Jul 2023 08:35:06 GMT expires: - '-1' pragma: @@ -781,7 +918,7 @@ interactions: - request: body: '{"properties": {"encryption": "EncryptionAtRestWithPlatformKey", "networkAcls": {"virtualNetworkRules": [{"action": "Allow", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.Network/virtualNetworks/vnet000004/subnets/subnet000006"}]}, - "protocolType": "None"}, "tags": {"key2011": "cccc"}}' + "protocolType": "None"}}' headers: Accept: - application/json @@ -792,31 +929,31 @@ interactions: Connection: - keep-alive Content-Length: - - '377' + - '348' Content-Type: - application/json ParameterSetName: - - -e -n -g --tags --protocol-type --network-acls + - -e -n -g --protocol-type --network-acls User-Agent: - - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.10.6 (macOS-13.2.1-x86_64-i386-64bit) + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003?api-version=2021-11-20-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003?api-version=2022-12-01-preview response: body: - string: '{"properties":{"provisioningState":"Updating","networkAcls":{"virtualNetworkRules":[{"action":"Allow","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.Network/virtualNetworks/vnet000004/subnets/subnet000006","state":"Provisioning"}]},"protocolType":"None","encryption":"EncryptionAtRestWithPlatformKey"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003","name":"volume-group000003","type":"Microsoft.ElasticSan/elasticSans/volumeGroups","tags":{"key2011":"cccc"},"systemData":{"createdAt":"2023-03-24T03:42:19.5288856Z","createdBy":"liwang3@microsoft.com","createdByType":"User","lastModifiedAt":"2023-03-24T03:42:19.5288856Z","lastModifiedBy":"liwang3@microsoft.com","lastModifiedByType":"User"}}' + string: '{"properties":{"provisioningState":"Updating","networkAcls":{"virtualNetworkRules":[{"action":"Allow","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.Network/virtualNetworks/vnet000004/subnets/subnet000006","state":"Provisioning"}]},"protocolType":"None","encryption":"EncryptionAtRestWithPlatformKey"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003","name":"volume-group000003","type":"Microsoft.ElasticSan/elasticSans/volumeGroups","systemData":{"createdAt":"2023-07-24T08:35:06.9821831Z","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-07-24T08:35:06.9821831Z","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '946' + - '926' content-type: - application/json date: - - Fri, 24 Mar 2023 03:42:19 GMT + - Mon, 24 Jul 2023 08:35:07 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/a4a9993e-bcaf-4d2e-8c06-8250cfa0122a?monitor=true&api-version=2021-11-20-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/d6eb08e8-b0fe-4ca5-9ef8-e7b0be974834?monitor=true&api-version=2022-12-01-preview pragma: - no-cache server: @@ -826,10 +963,10 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1194' status: - code: 202 - message: Accepted + code: 201 + message: Created - request: body: null headers: @@ -842,23 +979,23 @@ interactions: Connection: - keep-alive ParameterSetName: - - -e -n -g --tags --protocol-type --network-acls + - -e -n -g --protocol-type --network-acls User-Agent: - - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.10.6 (macOS-13.2.1-x86_64-i386-64bit) + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/a4a9993e-bcaf-4d2e-8c06-8250cfa0122a?monitor=true&api-version=2021-11-20-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/d6eb08e8-b0fe-4ca5-9ef8-e7b0be974834?monitor=true&api-version=2022-12-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","networkAcls":{"virtualNetworkRules":[{"action":"Allow","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.Network/virtualNetworks/vnet000004/subnets/subnet000006","state":"Provisioning"}]},"protocolType":"None","encryption":"EncryptionAtRestWithPlatformKey"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003","name":"volume-group000003","type":"Microsoft.ElasticSan/elasticSans/volumeGroups","tags":{"key2011":"cccc"},"systemData":{"createdAt":"2023-03-24T03:42:19.5288856Z","createdBy":"liwang3@microsoft.com","createdByType":"User","lastModifiedAt":"2023-03-24T03:42:19.5288856Z","lastModifiedBy":"liwang3@microsoft.com","lastModifiedByType":"User"}}' + string: '{"properties":{"provisioningState":"Succeeded","networkAcls":{"virtualNetworkRules":[{"action":"Allow","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.Network/virtualNetworks/vnet000004/subnets/subnet000006","state":"Provisioning"}]},"protocolType":"None","encryption":"EncryptionAtRestWithPlatformKey"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003","name":"volume-group000003","type":"Microsoft.ElasticSan/elasticSans/volumeGroups","systemData":{"createdAt":"2023-07-24T08:35:06.9821831Z","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-07-24T08:35:06.9821831Z","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '947' + - '927' content-type: - application/json date: - - Fri, 24 Mar 2023 03:42:36 GMT + - Mon, 24 Jul 2023 08:35:07 GMT expires: - '-1' pragma: @@ -894,25 +1031,25 @@ interactions: ParameterSetName: - -g -e -v -n --size-gib User-Agent: - - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.10.6 (macOS-13.2.1-x86_64-i386-64bit) + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003/volumes/volume000007?api-version=2021-11-20-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003/volumes/volume000007?api-version=2022-12-01-preview response: body: - string: '{"properties":{"creationData":{"createSource":"None"},"sizeGiB":2,"storageTarget":{"provisioningState":"Creating","status":"Pending"},"volumeId":"8285f379-4886-4ed9-9493-250311815e3d"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003/volumes/volume000007","name":"volume000007","type":"Microsoft.ElasticSan/ElasticSans","systemData":{"createdAt":"2023-03-24T03:42:38.3562573Z","createdBy":"liwang3@microsoft.com","createdByType":"User","lastModifiedAt":"2023-03-24T03:42:38.3562573Z","lastModifiedBy":"liwang3@microsoft.com","lastModifiedByType":"User"}}' + string: '{"properties":{"creationData":{"createSource":"None"},"sizeGiB":2,"storageTarget":{"provisioningState":"Creating","status":"Pending"},"volumeId":"c329b29a-7045-4ff4-a339-3bf4bdf6e278"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003/volumes/volume000007","name":"volume000007","type":"Microsoft.ElasticSan/ElasticSans","systemData":{"createdAt":"2023-07-24T08:35:09.8270181Z","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-07-24T08:35:09.8270181Z","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '715' + - '721' content-type: - application/json date: - - Fri, 24 Mar 2023 03:42:39 GMT + - Mon, 24 Jul 2023 08:35:09 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/0286a6cc-0383-4746-b328-701f7cb2fa1e?monitor=true&api-version=2021-11-20-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/1535b280-9e95-4450-8838-0ecca80e9953?monitor=true&api-version=2022-12-01-preview pragma: - no-cache server: @@ -922,10 +1059,10 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1196' status: - code: 202 - message: Accepted + code: 201 + message: Created - request: body: null headers: @@ -940,9 +1077,9 @@ interactions: ParameterSetName: - -g -e -v -n --size-gib User-Agent: - - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.10.6 (macOS-13.2.1-x86_64-i386-64bit) + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/0286a6cc-0383-4746-b328-701f7cb2fa1e?monitor=true&api-version=2021-11-20-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/1535b280-9e95-4450-8838-0ecca80e9953?monitor=true&api-version=2022-12-01-preview response: body: string: '' @@ -954,11 +1091,11 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Fri, 24 Mar 2023 03:42:57 GMT + - Mon, 24 Jul 2023 08:35:09 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/0286a6cc-0383-4746-b328-701f7cb2fa1e?monitor=true&api-version=2021-11-20-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/1535b280-9e95-4450-8838-0ecca80e9953?monitor=true&api-version=2022-12-01-preview pragma: - no-cache server: @@ -984,9 +1121,9 @@ interactions: ParameterSetName: - -g -e -v -n --size-gib User-Agent: - - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.10.6 (macOS-13.2.1-x86_64-i386-64bit) + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/0286a6cc-0383-4746-b328-701f7cb2fa1e?monitor=true&api-version=2021-11-20-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/1535b280-9e95-4450-8838-0ecca80e9953?monitor=true&api-version=2022-12-01-preview response: body: string: '' @@ -998,11 +1135,11 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Fri, 24 Mar 2023 03:43:00 GMT + - Mon, 24 Jul 2023 08:35:27 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/0286a6cc-0383-4746-b328-701f7cb2fa1e?monitor=true&api-version=2021-11-20-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/1535b280-9e95-4450-8838-0ecca80e9953?monitor=true&api-version=2022-12-01-preview pragma: - no-cache server: @@ -1028,109 +1165,113 @@ interactions: ParameterSetName: - -g -e -v -n --size-gib User-Agent: - - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.10.6 (macOS-13.2.1-x86_64-i386-64bit) + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/0286a6cc-0383-4746-b328-701f7cb2fa1e?monitor=true&api-version=2021-11-20-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/1535b280-9e95-4450-8838-0ecca80e9953?monitor=true&api-version=2022-12-01-preview response: body: - string: '' + string: '{"properties":{"creationData":{"createSource":"None"},"sizeGiB":2,"storageTarget":{"targetIqn":"iqn.2023-07.net.windows.core.blob.ElasticSan.es-hqrlekyswkz1:volume000007","provisioningState":"Succeeded","status":"Running","targetPortalHostname":"es-hqrlekyswkz1.z38.blob.storage.azure.net","targetPortalPort":3260},"volumeId":"c329b29a-7045-4ff4-a339-3bf4bdf6e278"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003/volumes/volume000007","name":"volume000007","type":"Microsoft.ElasticSan/ElasticSans","systemData":{"createdAt":"2023-07-24T08:35:09.8270181Z","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-07-24T08:35:09.8270181Z","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '0' + - '902' content-type: - - text/plain; charset=utf-8 + - application/json date: - - Fri, 24 Mar 2023 03:43:04 GMT + - Mon, 24 Jul 2023 08:35:44 GMT expires: - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/0286a6cc-0383-4746-b328-701f7cb2fa1e?monitor=true&api-version=2021-11-20-preview pragma: - no-cache server: - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff status: - code: 202 - message: Accepted + code: 200 + message: OK - request: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - elastic-san volume create + - elastic-san volume show Connection: - keep-alive ParameterSetName: - - -g -e -v -n --size-gib + - -g -e -v -n User-Agent: - - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.10.6 (macOS-13.2.1-x86_64-i386-64bit) + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/0286a6cc-0383-4746-b328-701f7cb2fa1e?monitor=true&api-version=2021-11-20-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003/volumes/volume000007?api-version=2022-12-01-preview response: body: - string: '' + string: '{"properties":{"creationData":{"createSource":"None"},"sizeGiB":2,"storageTarget":{"targetIqn":"iqn.2023-07.net.windows.core.blob.ElasticSan.es-hqrlekyswkz1:volume000007","provisioningState":"Succeeded","status":"Running","targetPortalHostname":"es-hqrlekyswkz1.z38.blob.storage.azure.net","targetPortalPort":3260},"volumeId":"c329b29a-7045-4ff4-a339-3bf4bdf6e278"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003/volumes/volume000007","name":"volume000007","type":"Microsoft.ElasticSan/ElasticSans","systemData":{"createdAt":"2023-07-24T08:35:09.8270181Z","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-07-24T08:35:09.8270181Z","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '0' + - '902' content-type: - - text/plain; charset=utf-8 + - application/json date: - - Fri, 24 Mar 2023 03:43:07 GMT + - Mon, 24 Jul 2023 08:35:46 GMT expires: - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/0286a6cc-0383-4746-b328-701f7cb2fa1e?monitor=true&api-version=2021-11-20-preview pragma: - no-cache server: - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff status: - code: 202 - message: Accepted + code: 200 + message: OK - request: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - elastic-san volume create + - elastic-san volume list Connection: - keep-alive ParameterSetName: - - -g -e -v -n --size-gib + - -g -e -v User-Agent: - - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.10.6 (macOS-13.2.1-x86_64-i386-64bit) + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/0286a6cc-0383-4746-b328-701f7cb2fa1e?monitor=true&api-version=2021-11-20-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003/volumes?api-version=2022-12-01-preview response: body: - string: '{"properties":{"creationData":{"createSource":"None"},"sizeGiB":2,"storageTarget":{"targetIqn":"iqn.2023-03.net.windows.core.blob.ElasticSan.es-omv4pi14g5o0:volume000007","provisioningState":"Succeeded","status":"Running","targetPortalHostname":"es-omv4pi14g5o0.z35.blob.storage.azure.net","targetPortalPort":3260},"volumeId":"8285f379-4886-4ed9-9493-250311815e3d"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003/volumes/volume000007","name":"volume000007","type":"Microsoft.ElasticSan/ElasticSans","systemData":{"createdAt":"2023-03-24T03:42:38.3562573Z","createdBy":"liwang3@microsoft.com","createdByType":"User","lastModifiedAt":"2023-03-24T03:42:38.3562573Z","lastModifiedBy":"liwang3@microsoft.com","lastModifiedByType":"User"}}' + string: '{"value":[{"properties":{"creationData":{"createSource":"None"},"sizeGiB":2,"storageTarget":{"targetIqn":"iqn.2023-07.net.windows.core.blob.ElasticSan.es-hqrlekyswkz1:volume000007","provisioningState":"Succeeded","status":"Running","targetPortalHostname":"es-hqrlekyswkz1.z38.blob.storage.azure.net","targetPortalPort":3260},"volumeId":"c329b29a-7045-4ff4-a339-3bf4bdf6e278"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003/volumes/volume000007","name":"volume000007","type":"Microsoft.ElasticSan/ElasticSans","systemData":{"createdAt":"2023-07-24T08:35:09.8270181Z","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-07-24T08:35:09.8270181Z","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}]}' headers: cache-control: - no-cache content-length: - - '896' + - '914' content-type: - application/json date: - - Fri, 24 Mar 2023 03:43:11 GMT + - Mon, 24 Jul 2023 08:35:48 GMT expires: - '-1' pragma: @@ -1156,27 +1297,27 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - elastic-san volume show + - elastic-san volume update Connection: - keep-alive ParameterSetName: - - -g -e -v -n + - -g -e -v -n --size-gib User-Agent: - - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.10.6 (macOS-13.2.1-x86_64-i386-64bit) + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003/volumes/volume000007?api-version=2021-11-20-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003/volumes/volume000007?api-version=2022-12-01-preview response: body: - string: '{"properties":{"creationData":{"createSource":"None"},"sizeGiB":2,"storageTarget":{"targetIqn":"iqn.2023-03.net.windows.core.blob.ElasticSan.es-omv4pi14g5o0:volume000007","provisioningState":"Succeeded","status":"Running","targetPortalHostname":"es-omv4pi14g5o0.z35.blob.storage.azure.net","targetPortalPort":3260},"volumeId":"8285f379-4886-4ed9-9493-250311815e3d"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003/volumes/volume000007","name":"volume000007","type":"Microsoft.ElasticSan/ElasticSans","systemData":{"createdAt":"2023-03-24T03:42:38.3562573Z","createdBy":"liwang3@microsoft.com","createdByType":"User","lastModifiedAt":"2023-03-24T03:42:38.3562573Z","lastModifiedBy":"liwang3@microsoft.com","lastModifiedByType":"User"}}' + string: '{"properties":{"creationData":{"createSource":"None"},"sizeGiB":2,"storageTarget":{"targetIqn":"iqn.2023-07.net.windows.core.blob.ElasticSan.es-hqrlekyswkz1:volume000007","provisioningState":"Succeeded","status":"Running","targetPortalHostname":"es-hqrlekyswkz1.z38.blob.storage.azure.net","targetPortalPort":3260},"volumeId":"c329b29a-7045-4ff4-a339-3bf4bdf6e278"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003/volumes/volume000007","name":"volume000007","type":"Microsoft.ElasticSan/ElasticSans","systemData":{"createdAt":"2023-07-24T08:35:09.8270181Z","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-07-24T08:35:09.8270181Z","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '896' + - '902' content-type: - application/json date: - - Fri, 24 Mar 2023 03:43:14 GMT + - Mon, 24 Jul 2023 08:35:49 GMT expires: - '-1' pragma: @@ -1195,56 +1336,60 @@ interactions: code: 200 message: OK - request: - body: null + body: '{"properties": {"creationData": {"createSource": "None"}, "sizeGiB": 3}}' headers: Accept: - application/json Accept-Encoding: - gzip, deflate CommandName: - - elastic-san volume list + - elastic-san volume update Connection: - keep-alive + Content-Length: + - '72' + Content-Type: + - application/json ParameterSetName: - - -g -e -v + - -g -e -v -n --size-gib User-Agent: - - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.10.6 (macOS-13.2.1-x86_64-i386-64bit) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003/volumes?api-version=2021-11-20-preview + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003/volumes/volume000007?api-version=2022-12-01-preview response: body: - string: '{"value":[{"properties":{"creationData":{"createSource":"None"},"sizeGiB":2,"storageTarget":{"targetIqn":"iqn.2023-03.net.windows.core.blob.ElasticSan.es-omv4pi14g5o0:volume000007","provisioningState":"Succeeded","status":"Running","targetPortalHostname":"es-omv4pi14g5o0.z35.blob.storage.azure.net","targetPortalPort":3260},"volumeId":"8285f379-4886-4ed9-9493-250311815e3d"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003/volumes/volume000007","name":"volume000007","type":"Microsoft.ElasticSan/ElasticSans","systemData":{"createdAt":"2023-03-24T03:42:38.3562573Z","createdBy":"liwang3@microsoft.com","createdByType":"User","lastModifiedAt":"2023-03-24T03:42:38.3562573Z","lastModifiedBy":"liwang3@microsoft.com","lastModifiedByType":"User"}}]}' + string: '{"properties":{"creationData":{"createSource":"None"},"sizeGiB":3,"storageTarget":{"targetIqn":"iqn.2023-07.net.windows.core.blob.ElasticSan.es-hqrlekyswkz1:volume000007","provisioningState":"Updating","status":"Pending","targetPortalHostname":"es-hqrlekyswkz1.z38.blob.storage.azure.net","targetPortalPort":3260},"volumeId":"c329b29a-7045-4ff4-a339-3bf4bdf6e278"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003/volumes/volume000007","name":"volume000007","type":"Microsoft.ElasticSan/ElasticSans","systemData":{"createdAt":"2023-07-24T08:35:50.1595437Z","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-07-24T08:35:50.1595437Z","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '908' + - '901' content-type: - application/json date: - - Fri, 24 Mar 2023 03:43:17 GMT + - Mon, 24 Jul 2023 08:35:49 GMT expires: - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/acb34f23-0a8a-4130-a043-00f52dc4a071?monitor=true&api-version=2022-12-01-preview pragma: - no-cache server: - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1193' status: - code: 200 - message: OK + code: 201 + message: Created - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -1254,21 +1399,21 @@ interactions: ParameterSetName: - -g -e -v -n --size-gib User-Agent: - - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.10.6 (macOS-13.2.1-x86_64-i386-64bit) + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003/volumes/volume000007?api-version=2021-11-20-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/acb34f23-0a8a-4130-a043-00f52dc4a071?monitor=true&api-version=2022-12-01-preview response: body: - string: '{"properties":{"creationData":{"createSource":"None"},"sizeGiB":2,"storageTarget":{"targetIqn":"iqn.2023-03.net.windows.core.blob.ElasticSan.es-omv4pi14g5o0:volume000007","provisioningState":"Succeeded","status":"Running","targetPortalHostname":"es-omv4pi14g5o0.z35.blob.storage.azure.net","targetPortalPort":3260},"volumeId":"8285f379-4886-4ed9-9493-250311815e3d"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003/volumes/volume000007","name":"volume000007","type":"Microsoft.ElasticSan/ElasticSans","systemData":{"createdAt":"2023-03-24T03:42:38.3562573Z","createdBy":"liwang3@microsoft.com","createdByType":"User","lastModifiedAt":"2023-03-24T03:42:38.3562573Z","lastModifiedBy":"liwang3@microsoft.com","lastModifiedByType":"User"}}' + string: '{"properties":{"creationData":{"createSource":"None"},"sizeGiB":3,"storageTarget":{"targetIqn":"iqn.2023-07.net.windows.core.blob.ElasticSan.es-hqrlekyswkz1:volume000007","provisioningState":"Succeeded","status":"Running","targetPortalHostname":"es-hqrlekyswkz1.z38.blob.storage.azure.net","targetPortalPort":3260},"volumeId":"c329b29a-7045-4ff4-a339-3bf4bdf6e278"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003/volumes/volume000007","name":"volume000007","type":"Microsoft.ElasticSan/ElasticSans","systemData":{"createdAt":"2023-07-24T08:35:50.1595437Z","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-07-24T08:35:50.1595437Z","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '896' + - '902' content-type: - application/json date: - - Fri, 24 Mar 2023 03:43:20 GMT + - Mon, 24 Jul 2023 08:35:50 GMT expires: - '-1' pragma: @@ -1287,42 +1432,40 @@ interactions: code: 200 message: OK - request: - body: '{"properties": {"creationData": {"createSource": "None"}, "sizeGiB": 3}}' + body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - elastic-san volume update + - elastic-san volume delete Connection: - keep-alive Content-Length: - - '72' - Content-Type: - - application/json + - '0' ParameterSetName: - - -g -e -v -n --size-gib + - -g -e -v -n -y User-Agent: - - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.10.6 (macOS-13.2.1-x86_64-i386-64bit) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003/volumes/volume000007?api-version=2021-11-20-preview + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003/volumes/volume000007?api-version=2022-12-01-preview response: body: - string: '{"properties":{"creationData":{"createSource":"None"},"sizeGiB":3,"storageTarget":{"targetIqn":"iqn.2023-03.net.windows.core.blob.ElasticSan.es-omv4pi14g5o0:volume000007","provisioningState":"Updating","status":"Pending","targetPortalHostname":"es-omv4pi14g5o0.z35.blob.storage.azure.net","targetPortalPort":3260},"volumeId":"8285f379-4886-4ed9-9493-250311815e3d"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003/volumes/volume000007","name":"volume000007","type":"Microsoft.ElasticSan/ElasticSans","systemData":{"createdAt":"2023-03-24T03:43:21.2965412Z","createdBy":"liwang3@microsoft.com","createdByType":"User","lastModifiedAt":"2023-03-24T03:43:21.2965412Z","lastModifiedBy":"liwang3@microsoft.com","lastModifiedByType":"User"}}' + string: '{"properties":{"creationData":{"createSource":"None"},"sizeGiB":3,"storageTarget":{"targetIqn":"iqn.2023-07.net.windows.core.blob.ElasticSan.es-hqrlekyswkz1:volume000007","provisioningState":"Deleting","status":"Running","targetPortalHostname":"es-hqrlekyswkz1.z38.blob.storage.azure.net","targetPortalPort":3260},"volumeId":"c329b29a-7045-4ff4-a339-3bf4bdf6e278"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003/volumes/volume000007","name":"volume000007","type":"Microsoft.ElasticSan/ElasticSans","systemData":{"createdAt":"2023-07-24T08:35:50.1595437Z","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-07-24T08:35:50.1595437Z","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '895' + - '901' content-type: - application/json date: - - Fri, 24 Mar 2023 03:43:21 GMT + - Mon, 24 Jul 2023 08:35:52 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/3c7e431b-d762-45db-acba-0af163326b26?monitor=true&api-version=2021-11-20-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/f933b310-bcb8-471f-9ab7-446822613148?monitor=true&api-version=2022-12-01-preview pragma: - no-cache server: @@ -1331,8 +1474,8 @@ interactions: - max-age=31536000; includeSubDomains x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' + x-ms-ratelimit-remaining-subscription-deletes: + - '14993' status: code: 202 message: Accepted @@ -1344,27 +1487,69 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - elastic-san volume update + - elastic-san volume delete Connection: - keep-alive ParameterSetName: - - -g -e -v -n --size-gib + - -g -e -v -n -y + User-Agent: + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/f933b310-bcb8-471f-9ab7-446822613148?monitor=true&api-version=2022-12-01-preview + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + content-type: + - text/plain; charset=utf-8 + date: + - Mon, 24 Jul 2023 08:35:52 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - elastic-san volume list + Connection: + - keep-alive + ParameterSetName: + - -g -e -v User-Agent: - - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.10.6 (macOS-13.2.1-x86_64-i386-64bit) + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/3c7e431b-d762-45db-acba-0af163326b26?monitor=true&api-version=2021-11-20-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003/volumes?api-version=2022-12-01-preview response: body: - string: '{"properties":{"creationData":{"createSource":"None"},"sizeGiB":3,"storageTarget":{"targetIqn":"iqn.2023-03.net.windows.core.blob.ElasticSan.es-omv4pi14g5o0:volume000007","provisioningState":"Succeeded","status":"Running","targetPortalHostname":"es-omv4pi14g5o0.z35.blob.storage.azure.net","targetPortalPort":3260},"volumeId":"8285f379-4886-4ed9-9493-250311815e3d"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003/volumes/volume000007","name":"volume000007","type":"Microsoft.ElasticSan/ElasticSans","systemData":{"createdAt":"2023-03-24T03:43:21.2965412Z","createdBy":"liwang3@microsoft.com","createdByType":"User","lastModifiedAt":"2023-03-24T03:43:21.2965412Z","lastModifiedBy":"liwang3@microsoft.com","lastModifiedByType":"User"}}' + string: '{"value":[]}' headers: cache-control: - no-cache content-length: - - '896' + - '12' content-type: - application/json date: - - Fri, 24 Mar 2023 03:43:38 GMT + - Mon, 24 Jul 2023 08:35:54 GMT expires: - '-1' pragma: @@ -1390,31 +1575,33 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - elastic-san volume delete + - elastic-san volume-group delete Connection: - keep-alive Content-Length: - '0' ParameterSetName: - - -g -e -v -n -y + - -g -e -n -y User-Agent: - - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.10.6 (macOS-13.2.1-x86_64-i386-64bit) + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003/volumes/volume000007?api-version=2021-11-20-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003?api-version=2022-12-01-preview response: body: - string: '' + string: '{"properties":{"provisioningState":"Deleting","networkAcls":{"virtualNetworkRules":[{"action":"Allow","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.Network/virtualNetworks/vnet000004/subnets/subnet000006","state":"Provisioning"}]},"protocolType":"None","encryption":"EncryptionAtRestWithPlatformKey"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003","name":"volume-group000003","type":"Microsoft.ElasticSan/elasticSans/volumeGroups","systemData":{"createdAt":"2023-07-24T08:35:06.9821831Z","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-07-24T08:35:06.9821831Z","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' headers: cache-control: - no-cache content-length: - - '0' + - '926' content-type: - - text/plain; charset=utf-8 + - application/json date: - - Fri, 24 Mar 2023 03:43:39 GMT + - Mon, 24 Jul 2023 08:35:56 GMT expires: - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/cbfcd331-0aa3-4ece-aabc-488922138420?monitor=true&api-version=2022-12-01-preview pragma: - no-cache server: @@ -1426,54 +1613,52 @@ interactions: x-ms-ratelimit-remaining-subscription-deletes: - '14999' status: - code: 200 - message: OK + code: 202 + message: Accepted - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - elastic-san volume list + - elastic-san volume-group delete Connection: - keep-alive ParameterSetName: - - -g -e -v + - -g -e -n -y User-Agent: - - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.10.6 (macOS-13.2.1-x86_64-i386-64bit) + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003/volumes?api-version=2021-11-20-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/cbfcd331-0aa3-4ece-aabc-488922138420?monitor=true&api-version=2022-12-01-preview response: body: - string: '{"value":[]}' + string: '' headers: cache-control: - no-cache content-length: - - '12' + - '0' content-type: - - application/json + - text/plain; charset=utf-8 date: - - Fri, 24 Mar 2023 03:43:43 GMT + - Mon, 24 Jul 2023 08:35:56 GMT expires: - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/cbfcd331-0aa3-4ece-aabc-488922138420?monitor=true&api-version=2022-12-01-preview pragma: - no-cache server: - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-content-type-options: - nosniff status: - code: 200 - message: OK + code: 202 + message: Accepted - request: body: null headers: @@ -1485,14 +1670,12 @@ interactions: - elastic-san volume-group delete Connection: - keep-alive - Content-Length: - - '0' ParameterSetName: - -g -e -n -y User-Agent: - - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.10.6 (macOS-13.2.1-x86_64-i386-64bit) - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002/volumegroups/volume-group000003?api-version=2021-11-20-preview + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/cbfcd331-0aa3-4ece-aabc-488922138420?monitor=true&api-version=2022-12-01-preview response: body: string: '' @@ -1504,7 +1687,7 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Fri, 24 Mar 2023 03:43:46 GMT + - Mon, 24 Jul 2023 08:36:14 GMT expires: - '-1' pragma: @@ -1515,8 +1698,6 @@ interactions: - max-age=31536000; includeSubDomains x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' status: code: 200 message: OK @@ -1536,9 +1717,55 @@ interactions: ParameterSetName: - -g -n -y User-Agent: - - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.10.6 (macOS-13.2.1-x86_64-i386-64bit) + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002?api-version=2021-11-20-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002?api-version=2022-12-01-preview + response: + body: + string: '{"location":"southcentralusstg","properties":{"sku":{"name":"Premium_LRS","tier":"Premium"},"provisioningState":"Deleting","baseSizeTiB":23,"extendedCapacitySizeTiB":14,"totalIops":115000,"totalMBps":1840,"totalSizeTiB":37,"volumeGroupCount":0,"totalVolumeSizeGiB":0},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg.testelasticsan.volumegroup000001/providers/Microsoft.ElasticSan/elasticSans/elastic-san000002","name":"elastic-san000002","type":"Microsoft.ElasticSan/ElasticSans","tags":{"key1810":"aaaa"},"systemData":{"createdAt":"2023-07-24T08:33:54.2378231Z","createdBy":"zhiyihuang@microsoft.com","createdByType":"User","lastModifiedAt":"2023-07-24T08:33:54.2378231Z","lastModifiedBy":"zhiyihuang@microsoft.com","lastModifiedByType":"User"}}' + headers: + cache-control: + - no-cache + content-length: + - '782' + content-type: + - application/json + date: + - Mon, 24 Jul 2023 08:36:37 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/b0638ffe-b449-4743-ac16-7595b9761994?monitor=true&api-version=2022-12-01-preview + pragma: + - no-cache + server: + - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14992' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - elastic-san delete + Connection: + - keep-alive + ParameterSetName: + - -g -n -y + User-Agent: + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/b0638ffe-b449-4743-ac16-7595b9761994?monitor=true&api-version=2022-12-01-preview response: body: string: '' @@ -1550,7 +1777,51 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Fri, 24 Mar 2023 03:44:14 GMT + - Mon, 24 Jul 2023 08:36:37 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/b0638ffe-b449-4743-ac16-7595b9761994?monitor=true&api-version=2022-12-01-preview + pragma: + - no-cache + server: + - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - elastic-san delete + Connection: + - keep-alive + ParameterSetName: + - -g -n -y + User-Agent: + - AZURECLI/2.50.0 (PIP) (AAZ) azsdk-python-core/1.26.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ElasticSan/locations/southcentralusstg/asyncoperations/b0638ffe-b449-4743-ac16-7595b9761994?monitor=true&api-version=2022-12-01-preview + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + content-type: + - text/plain; charset=utf-8 + date: + - Mon, 24 Jul 2023 08:36:54 GMT expires: - '-1' pragma: @@ -1561,8 +1832,6 @@ interactions: - max-age=31536000; includeSubDomains x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' status: code: 200 message: OK diff --git a/src/elastic-san/azext_elastic_san/tests/latest/test_elastic_san.py b/src/elastic-san/azext_elastic_san/tests/latest/test_elastic_san.py index 14d8a050336..ce26c39ab0d 100644 --- a/src/elastic-san/azext_elastic_san/tests/latest/test_elastic_san.py +++ b/src/elastic-san/azext_elastic_san/tests/latest/test_elastic_san.py @@ -63,12 +63,11 @@ def test_elastic_san_volume_group_and_volume_scenarios(self, resource_group): '--subnet-name {subnet_name} ' '--subnet-prefix 10.0.0.0/24').get_output_in_json()["newVNet"]["subnets"][0]["id"] self.kwargs.update({"subnet_id": subnet_id}) - self.cmd('az elastic-san volume-group create -e {san_name} -n {vg_name} -g {rg} --tags {{key1910:bbbb}} ' + self.cmd('az elastic-san volume-group create -e {san_name} -n {vg_name} -g {rg} ' '--encryption EncryptionAtRestWithPlatformKey --protocol-type Iscsi ' '--network-acls {{virtual-network-rules:[{{id:{subnet_id},action:Allow}}]}}') self.cmd('az elastic-san volume-group show -g {rg} -e {san_name} -n {vg_name}', checks=[JMESPathCheck('name', self.kwargs.get('vg_name', '')), - JMESPathCheck('tags', {"key1910": "bbbb"}), JMESPathCheck('encryption', "EncryptionAtRestWithPlatformKey"), JMESPathCheck('protocolType', "iSCSI"), JMESPathCheck('networkAcls', {"virtualNetworkRules":[{ @@ -82,11 +81,10 @@ def test_elastic_san_volume_group_and_volume_scenarios(self, resource_group): '--address-prefixes 10.0.1.0/24 ' '--service-endpoints Microsoft.Storage').get_output_in_json()["id"] self.kwargs.update({"subnet_id_2": subnet_id_2}) - self.cmd('az elastic-san volume-group update -e {san_name} -n {vg_name} -g {rg} --tags {{key2011:cccc}} ' + self.cmd('az elastic-san volume-group update -e {san_name} -n {vg_name} -g {rg} ' '--protocol-type None ' '--network-acls {{virtual-network-rules:[{{id:{subnet_id_2},action:Allow}}]}}', - checks=[JMESPathCheck('tags', {"key2011": "cccc"}), - JMESPathCheck('protocolType', "None"), + checks=[JMESPathCheck('protocolType', "None"), JMESPathCheck('networkAcls.virtualNetworkRules[0].id', subnet_id_2)]) self.cmd('az elastic-san volume create -g {rg} -e {san_name} -v {vg_name} -n {volume_name} --size-gib 2') diff --git a/src/elastic-san/setup.py b/src/elastic-san/setup.py index cca23688c41..da92d37df56 100644 --- a/src/elastic-san/setup.py +++ b/src/elastic-san/setup.py @@ -10,7 +10,7 @@ # HISTORY.rst entry. -VERSION = '0.1.0' +VERSION = '1.0.0b1' # The full list of classifiers is available at # https://pypi.python.org/pypi?%3Aaction=list_classifiers