diff --git a/src/azure-cli/azure/cli/command_modules/eventhubs/Operation/NamespaceCustomFile.py b/src/azure-cli/azure/cli/command_modules/eventhubs/Operation/NamespaceCustomFile.py index 04f5b0b0240..98d68e38e4b 100644 --- a/src/azure-cli/azure/cli/command_modules/eventhubs/Operation/NamespaceCustomFile.py +++ b/src/azure-cli/azure/cli/command_modules/eventhubs/Operation/NamespaceCustomFile.py @@ -239,3 +239,56 @@ def cli_remove_identity(cmd, resource_group_name, namespace_name, system_assigne "user_assigned_identities": eventhubsnm['identity']['userAssignedIdentities'] }) return Update(cli_ctx=cmd.cli_ctx)(command_args=command_args) + + +def approve_private_endpoint_connection(cmd, resource_group_name, namespace_name, + private_endpoint_connection_name, description=None): + + from azure.cli.command_modules.eventhubs.aaz.latest.eventhubs.namespace.private_endpoint_connection import Update + from azure.cli.command_modules.eventhubs.aaz.latest.eventhubs.namespace.private_endpoint_connection import Show + + private_endpoint_connection = Show(cli_ctx=cmd.cli_ctx)(command_args={ + "resource_group": resource_group_name, + "namespace_name": namespace_name, + "private_endpoint_connection_name": private_endpoint_connection_name + }) + if private_endpoint_connection["privateLinkServiceConnectionState"]["status"] != "Approved": + command_args_dict = { + "resource_group": resource_group_name, + "namespace_name": namespace_name, + "private_endpoint_connection_name": private_endpoint_connection_name, + "description": description, + "status": "Approved" + } + return Update(cli_ctx=cmd.cli_ctx)(command_args=command_args_dict) + + return Show(cli_ctx=cmd.cli_ctx)(command_args={ + "resource_group": resource_group_name, + "namespace_name": namespace_name, + "private_endpoint_connection_name": private_endpoint_connection_name, + }) + + +def reject_private_endpoint_connection(cmd, resource_group_name, namespace_name, private_endpoint_connection_name, + description=None): + from azure.cli.command_modules.eventhubs.aaz.latest.eventhubs.namespace.private_endpoint_connection import Update + command_args_dict = { + "resource_group": resource_group_name, + "namespace_name": namespace_name, + "private_endpoint_connection_name": private_endpoint_connection_name, + "description": description, + "status": "Rejected" + } + return Update(cli_ctx=cmd.cli_ctx)(command_args=command_args_dict) + + +def delete_private_endpoint_connection(cmd, resource_group_name, namespace_name, private_endpoint_connection_name, + description=None): + from azure.cli.command_modules.eventhubs.aaz.latest.eventhubs.namespace.private_endpoint_connection import Delete + command_args_dict = { + "resource_group": resource_group_name, + "namespace_name": namespace_name, + "private_endpoint_connection_name": private_endpoint_connection_name, + "description": description + } + return Delete(cli_ctx=cmd.cli_ctx)(command_args=command_args_dict) diff --git a/src/azure-cli/azure/cli/command_modules/eventhubs/aaz/latest/eventhubs/__cmd_group.py b/src/azure-cli/azure/cli/command_modules/eventhubs/aaz/latest/eventhubs/__cmd_group.py index ec643b733f7..1f9c641c7a9 100644 --- a/src/azure-cli/azure/cli/command_modules/eventhubs/aaz/latest/eventhubs/__cmd_group.py +++ b/src/azure-cli/azure/cli/command_modules/eventhubs/aaz/latest/eventhubs/__cmd_group.py @@ -15,7 +15,7 @@ "eventhubs", ) class __CMDGroup(AAZCommandGroup): - """sss + """eventhubs """ pass diff --git a/src/azure-cli/azure/cli/command_modules/eventhubs/aaz/latest/eventhubs/namespace/private_endpoint_connection/__cmd_group.py b/src/azure-cli/azure/cli/command_modules/eventhubs/aaz/latest/eventhubs/namespace/private_endpoint_connection/__cmd_group.py new file mode 100644 index 00000000000..7f76e31046e --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/eventhubs/aaz/latest/eventhubs/namespace/private_endpoint_connection/__cmd_group.py @@ -0,0 +1,23 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command_group( + "eventhubs namespace private-endpoint-connection", +) +class __CMDGroup(AAZCommandGroup): + """Manage eventhubs namespace private endpoint connection. + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/azure-cli/azure/cli/command_modules/eventhubs/aaz/latest/eventhubs/namespace/private_endpoint_connection/__init__.py b/src/azure-cli/azure/cli/command_modules/eventhubs/aaz/latest/eventhubs/namespace/private_endpoint_connection/__init__.py new file mode 100644 index 00000000000..db73033039b --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/eventhubs/aaz/latest/eventhubs/namespace/private_endpoint_connection/__init__.py @@ -0,0 +1,17 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from .__cmd_group import * +from ._create import * +from ._delete import * +from ._list import * +from ._show import * +from ._update import * +from ._wait import * diff --git a/src/azure-cli/azure/cli/command_modules/eventhubs/aaz/latest/eventhubs/namespace/private_endpoint_connection/_create.py b/src/azure-cli/azure/cli/command_modules/eventhubs/aaz/latest/eventhubs/namespace/private_endpoint_connection/_create.py new file mode 100644 index 00000000000..8e4ee1ccb18 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/eventhubs/aaz/latest/eventhubs/namespace/private_endpoint_connection/_create.py @@ -0,0 +1,324 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "eventhubs namespace private-endpoint-connection create", +) +class Create(AAZCommand): + """Create PrivateEndpointConnections of service namespace. + """ + + _aaz_info = { + "version": "2022-01-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.eventhub/namespaces/{}/privateendpointconnections/{}", "2022-01-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.namespace_name = AAZStrArg( + options=["--namespace-name"], + help="The Namespace name", + required=True, + fmt=AAZStrArgFormat( + max_length=50, + min_length=6, + ), + ) + _args_schema.private_endpoint_connection_name = AAZStrArg( + options=["-n", "--name", "--private-endpoint-connection-name"], + help="The PrivateEndpointConnection name", + required=True, + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + + # define Arg Group "PrivateLinkServiceConnectionState" + + _args_schema = cls._args_schema + _args_schema.description = AAZStrArg( + options=["--description"], + arg_group="PrivateLinkServiceConnectionState", + help="Description of the connection state.", + ) + _args_schema.status = AAZStrArg( + options=["--status"], + arg_group="PrivateLinkServiceConnectionState", + help="Status of the connection.", + enum={"Approved": "Approved", "Disconnected": "Disconnected", "Pending": "Pending", "Rejected": "Rejected"}, + ) + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.provisioning_state = AAZStrArg( + options=["--provisioning-state"], + arg_group="Properties", + help="Provisioning state of the Private Endpoint Connection.", + enum={"Canceled": "Canceled", "Creating": "Creating", "Deleting": "Deleting", "Failed": "Failed", "Succeeded": "Succeeded", "Updating": "Updating"}, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.PrivateEndpointConnectionsCreateOrUpdate(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class PrivateEndpointConnectionsCreateOrUpdate(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200, 201]: + return self.on_200_201(session) + if session.http_response.status_code in [202]: + return self.on_202(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "namespaceName", self.ctx.args.namespace_name, + required=True, + ), + **self.serialize_url_param( + "privateEndpointConnectionName", self.ctx.args.private_endpoint_connection_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-01-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + typ=AAZObjectType, + typ_kwargs={"flags": {"required": True, "client_flatten": True}} + ) + _builder.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("privateLinkServiceConnectionState", AAZObjectType) + properties.set_prop("provisioningState", AAZStrType, ".provisioning_state") + + private_link_service_connection_state = _builder.get(".properties.privateLinkServiceConnectionState") + if private_link_service_connection_state is not None: + private_link_service_connection_state.set_prop("description", AAZStrType, ".description") + private_link_service_connection_state.set_prop("status", AAZStrType, ".status") + + return self.serialize_content(_content_value) + + def on_200_201(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200_201 + ) + + _schema_on_200_201 = None + + @classmethod + def _build_schema_on_200_201(cls): + if cls._schema_on_200_201 is not None: + return cls._schema_on_200_201 + + cls._schema_on_200_201 = AAZObjectType() + _CreateHelper._build_schema_private_endpoint_connection_read(cls._schema_on_200_201) + + return cls._schema_on_200_201 + + def on_202(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_202 + ) + + _schema_on_202 = None + + @classmethod + def _build_schema_on_202(cls): + if cls._schema_on_202 is not None: + return cls._schema_on_202 + + cls._schema_on_202 = AAZObjectType() + _CreateHelper._build_schema_private_endpoint_connection_read(cls._schema_on_202) + + return cls._schema_on_202 + + +class _CreateHelper: + """Helper class for Create""" + + _schema_private_endpoint_connection_read = None + + @classmethod + def _build_schema_private_endpoint_connection_read(cls, _schema): + if cls._schema_private_endpoint_connection_read is not None: + _schema.id = cls._schema_private_endpoint_connection_read.id + _schema.location = cls._schema_private_endpoint_connection_read.location + _schema.name = cls._schema_private_endpoint_connection_read.name + _schema.properties = cls._schema_private_endpoint_connection_read.properties + _schema.system_data = cls._schema_private_endpoint_connection_read.system_data + _schema.type = cls._schema_private_endpoint_connection_read.type + return + + cls._schema_private_endpoint_connection_read = _schema_private_endpoint_connection_read = AAZObjectType() + + private_endpoint_connection_read = _schema_private_endpoint_connection_read + private_endpoint_connection_read.id = AAZStrType( + flags={"read_only": True}, + ) + private_endpoint_connection_read.location = AAZStrType( + flags={"read_only": True}, + ) + private_endpoint_connection_read.name = AAZStrType( + flags={"read_only": True}, + ) + private_endpoint_connection_read.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + private_endpoint_connection_read.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + private_endpoint_connection_read.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = _schema_private_endpoint_connection_read.properties + properties.private_endpoint = AAZObjectType( + serialized_name="privateEndpoint", + ) + properties.private_link_service_connection_state = AAZObjectType( + serialized_name="privateLinkServiceConnectionState", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + ) + + private_endpoint = _schema_private_endpoint_connection_read.properties.private_endpoint + private_endpoint.id = AAZStrType() + + private_link_service_connection_state = _schema_private_endpoint_connection_read.properties.private_link_service_connection_state + private_link_service_connection_state.description = AAZStrType() + private_link_service_connection_state.status = AAZStrType() + + system_data = _schema_private_endpoint_connection_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_private_endpoint_connection_read.id + _schema.location = cls._schema_private_endpoint_connection_read.location + _schema.name = cls._schema_private_endpoint_connection_read.name + _schema.properties = cls._schema_private_endpoint_connection_read.properties + _schema.system_data = cls._schema_private_endpoint_connection_read.system_data + _schema.type = cls._schema_private_endpoint_connection_read.type + + +__all__ = ["Create"] diff --git a/src/azure-cli/azure/cli/command_modules/eventhubs/aaz/latest/eventhubs/namespace/private_endpoint_connection/_delete.py b/src/azure-cli/azure/cli/command_modules/eventhubs/aaz/latest/eventhubs/namespace/private_endpoint_connection/_delete.py new file mode 100644 index 00000000000..4eee1ab537e --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/eventhubs/aaz/latest/eventhubs/namespace/private_endpoint_connection/_delete.py @@ -0,0 +1,174 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "eventhubs namespace private-endpoint-connection delete", + confirmation="Are you sure you want to perform this operation?", +) +class Delete(AAZCommand): + """Delete a Private Endpoint Connection. + """ + + _aaz_info = { + "version": "2022-01-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.eventhub/namespaces/{}/privateendpointconnections/{}", "2022-01-01-preview"], + ] + } + + AZ_SUPPORT_NO_WAIT = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_lro_poller(self._execute_operations, None) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.namespace_name = AAZStrArg( + options=["--namespace-name"], + help="The Namespace name", + required=True, + id_part="name", + fmt=AAZStrArgFormat( + max_length=50, + min_length=6, + ), + ) + _args_schema.private_endpoint_connection_name = AAZStrArg( + options=["-n", "--name", "--private-endpoint-connection-name"], + help="The PrivateEndpointConnection name", + required=True, + id_part="child_name_1", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + yield self.PrivateEndpointConnectionsDelete(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + class PrivateEndpointConnectionsDelete(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [202]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + if session.http_response.status_code in [200]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + if session.http_response.status_code in [204]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_204, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + **self.url_parameters + ) + + @property + def method(self): + return "DELETE" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "namespaceName", self.ctx.args.namespace_name, + required=True, + ), + **self.serialize_url_param( + "privateEndpointConnectionName", self.ctx.args.private_endpoint_connection_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-01-01-preview", + required=True, + ), + } + return parameters + + def on_200(self, session): + pass + + def on_204(self, session): + pass + + +class _DeleteHelper: + """Helper class for Delete""" + + +__all__ = ["Delete"] diff --git a/src/azure-cli/azure/cli/command_modules/eventhubs/aaz/latest/eventhubs/namespace/private_endpoint_connection/_list.py b/src/azure-cli/azure/cli/command_modules/eventhubs/aaz/latest/eventhubs/namespace/private_endpoint_connection/_list.py new file mode 100644 index 00000000000..1e629aae581 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/eventhubs/aaz/latest/eventhubs/namespace/private_endpoint_connection/_list.py @@ -0,0 +1,230 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "eventhubs namespace private-endpoint-connection list", +) +class List(AAZCommand): + """List the available PrivateEndpointConnections within a namespace. + """ + + _aaz_info = { + "version": "2022-01-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.eventhub/namespaces/{}/privateendpointconnections", "2022-01-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_paging(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.namespace_name = AAZStrArg( + options=["--namespace-name"], + help="The Namespace name", + required=True, + fmt=AAZStrArgFormat( + max_length=50, + min_length=6, + ), + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.PrivateEndpointConnectionsList(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True) + next_link = self.deserialize_output(self.ctx.vars.instance.next_link) + return result, next_link + + class PrivateEndpointConnectionsList(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/privateEndpointConnections", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "namespaceName", self.ctx.args.namespace_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-01-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.next_link = AAZStrType( + serialized_name="nextLink", + ) + _schema_on_200.value = AAZListType() + + value = cls._schema_on_200.value + value.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.location = AAZStrType( + flags={"read_only": True}, + ) + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.value.Element.properties + properties.private_endpoint = AAZObjectType( + serialized_name="privateEndpoint", + ) + properties.private_link_service_connection_state = AAZObjectType( + serialized_name="privateLinkServiceConnectionState", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + ) + + private_endpoint = cls._schema_on_200.value.Element.properties.private_endpoint + private_endpoint.id = AAZStrType() + + private_link_service_connection_state = cls._schema_on_200.value.Element.properties.private_link_service_connection_state + private_link_service_connection_state.description = AAZStrType() + private_link_service_connection_state.status = AAZStrType() + + system_data = cls._schema_on_200.value.Element.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + return cls._schema_on_200 + + +class _ListHelper: + """Helper class for List""" + + +__all__ = ["List"] diff --git a/src/azure-cli/azure/cli/command_modules/eventhubs/aaz/latest/eventhubs/namespace/private_endpoint_connection/_show.py b/src/azure-cli/azure/cli/command_modules/eventhubs/aaz/latest/eventhubs/namespace/private_endpoint_connection/_show.py new file mode 100644 index 00000000000..7283aec4a02 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/eventhubs/aaz/latest/eventhubs/namespace/private_endpoint_connection/_show.py @@ -0,0 +1,232 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "eventhubs namespace private-endpoint-connection show", +) +class Show(AAZCommand): + """Get a description for the specified Private Endpoint Connection name. + """ + + _aaz_info = { + "version": "2022-01-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.eventhub/namespaces/{}/privateendpointconnections/{}", "2022-01-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.namespace_name = AAZStrArg( + options=["--namespace-name"], + help="The Namespace name", + required=True, + id_part="name", + fmt=AAZStrArgFormat( + max_length=50, + min_length=6, + ), + ) + _args_schema.private_endpoint_connection_name = AAZStrArg( + options=["-n", "--name", "--private-endpoint-connection-name"], + help="The PrivateEndpointConnection name", + required=True, + id_part="child_name_1", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.PrivateEndpointConnectionsGet(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class PrivateEndpointConnectionsGet(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "namespaceName", self.ctx.args.namespace_name, + required=True, + ), + **self.serialize_url_param( + "privateEndpointConnectionName", self.ctx.args.private_endpoint_connection_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-01-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.location = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties + properties.private_endpoint = AAZObjectType( + serialized_name="privateEndpoint", + ) + properties.private_link_service_connection_state = AAZObjectType( + serialized_name="privateLinkServiceConnectionState", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + ) + + private_endpoint = cls._schema_on_200.properties.private_endpoint + private_endpoint.id = AAZStrType() + + private_link_service_connection_state = cls._schema_on_200.properties.private_link_service_connection_state + private_link_service_connection_state.description = AAZStrType() + private_link_service_connection_state.status = AAZStrType() + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + return cls._schema_on_200 + + +class _ShowHelper: + """Helper class for Show""" + + +__all__ = ["Show"] diff --git a/src/azure-cli/azure/cli/command_modules/eventhubs/aaz/latest/eventhubs/namespace/private_endpoint_connection/_update.py b/src/azure-cli/azure/cli/command_modules/eventhubs/aaz/latest/eventhubs/namespace/private_endpoint_connection/_update.py new file mode 100644 index 00000000000..efc2e7d0d8b --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/eventhubs/aaz/latest/eventhubs/namespace/private_endpoint_connection/_update.py @@ -0,0 +1,452 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "eventhubs namespace private-endpoint-connection update", +) +class Update(AAZCommand): + """Update PrivateEndpointConnections of service namespace. + """ + + _aaz_info = { + "version": "2022-01-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.eventhub/namespaces/{}/privateendpointconnections/{}", "2022-01-01-preview"], + ] + } + + AZ_SUPPORT_GENERIC_UPDATE = True + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.namespace_name = AAZStrArg( + options=["--namespace-name"], + help="The Namespace name", + required=True, + id_part="name", + fmt=AAZStrArgFormat( + max_length=50, + min_length=6, + ), + ) + _args_schema.private_endpoint_connection_name = AAZStrArg( + options=["-n", "--name", "--private-endpoint-connection-name"], + help="The PrivateEndpointConnection name", + required=True, + id_part="child_name_1", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + + # define Arg Group "PrivateLinkServiceConnectionState" + + _args_schema = cls._args_schema + _args_schema.description = AAZStrArg( + options=["--description"], + arg_group="PrivateLinkServiceConnectionState", + help="Description of the connection state.", + nullable=True, + ) + _args_schema.status = AAZStrArg( + options=["--status"], + arg_group="PrivateLinkServiceConnectionState", + help="Status of the connection.", + nullable=True, + enum={"Approved": "Approved", "Disconnected": "Disconnected", "Pending": "Pending", "Rejected": "Rejected"}, + ) + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.provisioning_state = AAZStrArg( + options=["--provisioning-state"], + arg_group="Properties", + help="Provisioning state of the Private Endpoint Connection.", + nullable=True, + enum={"Canceled": "Canceled", "Creating": "Creating", "Deleting": "Deleting", "Failed": "Failed", "Succeeded": "Succeeded", "Updating": "Updating"}, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.PrivateEndpointConnectionsGet(ctx=self.ctx)() + self.pre_instance_update(self.ctx.vars.instance) + self.InstanceUpdateByJson(ctx=self.ctx)() + self.InstanceUpdateByGeneric(ctx=self.ctx)() + self.post_instance_update(self.ctx.vars.instance) + self.PrivateEndpointConnectionsCreateOrUpdate(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + @register_callback + def pre_instance_update(self, instance): + pass + + @register_callback + def post_instance_update(self, instance): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class PrivateEndpointConnectionsGet(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "namespaceName", self.ctx.args.namespace_name, + required=True, + ), + **self.serialize_url_param( + "privateEndpointConnectionName", self.ctx.args.private_endpoint_connection_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-01-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + _UpdateHelper._build_schema_private_endpoint_connection_read(cls._schema_on_200) + + return cls._schema_on_200 + + class PrivateEndpointConnectionsCreateOrUpdate(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200, 201]: + return self.on_200_201(session) + if session.http_response.status_code in [202]: + return self.on_202(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "namespaceName", self.ctx.args.namespace_name, + required=True, + ), + **self.serialize_url_param( + "privateEndpointConnectionName", self.ctx.args.private_endpoint_connection_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-01-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + value=self.ctx.vars.instance, + ) + + return self.serialize_content(_content_value) + + def on_200_201(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200_201 + ) + + _schema_on_200_201 = None + + @classmethod + def _build_schema_on_200_201(cls): + if cls._schema_on_200_201 is not None: + return cls._schema_on_200_201 + + cls._schema_on_200_201 = AAZObjectType() + _UpdateHelper._build_schema_private_endpoint_connection_read(cls._schema_on_200_201) + + return cls._schema_on_200_201 + + def on_202(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_202 + ) + + _schema_on_202 = None + + @classmethod + def _build_schema_on_202(cls): + if cls._schema_on_202 is not None: + return cls._schema_on_202 + + cls._schema_on_202 = AAZObjectType() + _UpdateHelper._build_schema_private_endpoint_connection_read(cls._schema_on_202) + + return cls._schema_on_202 + + class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): + + def __call__(self, *args, **kwargs): + self._update_instance(self.ctx.vars.instance) + + def _update_instance(self, instance): + _instance_value, _builder = self.new_content_builder( + self.ctx.args, + value=instance, + typ=AAZObjectType + ) + _builder.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("privateLinkServiceConnectionState", AAZObjectType) + properties.set_prop("provisioningState", AAZStrType, ".provisioning_state") + + private_link_service_connection_state = _builder.get(".properties.privateLinkServiceConnectionState") + if private_link_service_connection_state is not None: + private_link_service_connection_state.set_prop("description", AAZStrType, ".description") + private_link_service_connection_state.set_prop("status", AAZStrType, ".status") + + return _instance_value + + class InstanceUpdateByGeneric(AAZGenericInstanceUpdateOperation): + + def __call__(self, *args, **kwargs): + self._update_instance_by_generic( + self.ctx.vars.instance, + self.ctx.generic_update_args + ) + + +class _UpdateHelper: + """Helper class for Update""" + + _schema_private_endpoint_connection_read = None + + @classmethod + def _build_schema_private_endpoint_connection_read(cls, _schema): + if cls._schema_private_endpoint_connection_read is not None: + _schema.id = cls._schema_private_endpoint_connection_read.id + _schema.location = cls._schema_private_endpoint_connection_read.location + _schema.name = cls._schema_private_endpoint_connection_read.name + _schema.properties = cls._schema_private_endpoint_connection_read.properties + _schema.system_data = cls._schema_private_endpoint_connection_read.system_data + _schema.type = cls._schema_private_endpoint_connection_read.type + return + + cls._schema_private_endpoint_connection_read = _schema_private_endpoint_connection_read = AAZObjectType() + + private_endpoint_connection_read = _schema_private_endpoint_connection_read + private_endpoint_connection_read.id = AAZStrType( + flags={"read_only": True}, + ) + private_endpoint_connection_read.location = AAZStrType( + flags={"read_only": True}, + ) + private_endpoint_connection_read.name = AAZStrType( + flags={"read_only": True}, + ) + private_endpoint_connection_read.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + private_endpoint_connection_read.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + private_endpoint_connection_read.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = _schema_private_endpoint_connection_read.properties + properties.private_endpoint = AAZObjectType( + serialized_name="privateEndpoint", + ) + properties.private_link_service_connection_state = AAZObjectType( + serialized_name="privateLinkServiceConnectionState", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + ) + + private_endpoint = _schema_private_endpoint_connection_read.properties.private_endpoint + private_endpoint.id = AAZStrType() + + private_link_service_connection_state = _schema_private_endpoint_connection_read.properties.private_link_service_connection_state + private_link_service_connection_state.description = AAZStrType() + private_link_service_connection_state.status = AAZStrType() + + system_data = _schema_private_endpoint_connection_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_private_endpoint_connection_read.id + _schema.location = cls._schema_private_endpoint_connection_read.location + _schema.name = cls._schema_private_endpoint_connection_read.name + _schema.properties = cls._schema_private_endpoint_connection_read.properties + _schema.system_data = cls._schema_private_endpoint_connection_read.system_data + _schema.type = cls._schema_private_endpoint_connection_read.type + + +__all__ = ["Update"] diff --git a/src/azure-cli/azure/cli/command_modules/eventhubs/aaz/latest/eventhubs/namespace/private_endpoint_connection/_wait.py b/src/azure-cli/azure/cli/command_modules/eventhubs/aaz/latest/eventhubs/namespace/private_endpoint_connection/_wait.py new file mode 100644 index 00000000000..5822b6cfaec --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/eventhubs/aaz/latest/eventhubs/namespace/private_endpoint_connection/_wait.py @@ -0,0 +1,231 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "eventhubs namespace private-endpoint-connection wait", +) +class Wait(AAZWaitCommand): + """Place the CLI in a waiting state until a condition is met. + """ + + _aaz_info = { + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.eventhub/namespaces/{}/privateendpointconnections/{}", "2022-01-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.namespace_name = AAZStrArg( + options=["--namespace-name"], + help="The Namespace name", + required=True, + id_part="name", + fmt=AAZStrArgFormat( + max_length=50, + min_length=6, + ), + ) + _args_schema.private_endpoint_connection_name = AAZStrArg( + options=["-n", "--name", "--private-endpoint-connection-name"], + help="The PrivateEndpointConnection name", + required=True, + id_part="child_name_1", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.PrivateEndpointConnectionsGet(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=False) + return result + + class PrivateEndpointConnectionsGet(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "namespaceName", self.ctx.args.namespace_name, + required=True, + ), + **self.serialize_url_param( + "privateEndpointConnectionName", self.ctx.args.private_endpoint_connection_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-01-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.location = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties + properties.private_endpoint = AAZObjectType( + serialized_name="privateEndpoint", + ) + properties.private_link_service_connection_state = AAZObjectType( + serialized_name="privateLinkServiceConnectionState", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + ) + + private_endpoint = cls._schema_on_200.properties.private_endpoint + private_endpoint.id = AAZStrType() + + private_link_service_connection_state = cls._schema_on_200.properties.private_link_service_connection_state + private_link_service_connection_state.description = AAZStrType() + private_link_service_connection_state.status = AAZStrType() + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + return cls._schema_on_200 + + +class _WaitHelper: + """Helper class for Wait""" + + +__all__ = ["Wait"] diff --git a/src/azure-cli/azure/cli/command_modules/eventhubs/aaz/latest/eventhubs/namespace/private_link_resource/__cmd_group.py b/src/azure-cli/azure/cli/command_modules/eventhubs/aaz/latest/eventhubs/namespace/private_link_resource/__cmd_group.py new file mode 100644 index 00000000000..6916f5c9075 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/eventhubs/aaz/latest/eventhubs/namespace/private_link_resource/__cmd_group.py @@ -0,0 +1,23 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command_group( + "eventhubs namespace private-link-resource", +) +class __CMDGroup(AAZCommandGroup): + """Manage eventhubs namespace private link resources . + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/azure-cli/azure/cli/command_modules/eventhubs/aaz/latest/eventhubs/namespace/private_link_resource/__init__.py b/src/azure-cli/azure/cli/command_modules/eventhubs/aaz/latest/eventhubs/namespace/private_link_resource/__init__.py new file mode 100644 index 00000000000..28d5f355813 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/eventhubs/aaz/latest/eventhubs/namespace/private_link_resource/__init__.py @@ -0,0 +1,12 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from .__cmd_group import * +from ._show import * diff --git a/src/azure-cli/azure/cli/command_modules/eventhubs/aaz/latest/eventhubs/namespace/private_link_resource/_show.py b/src/azure-cli/azure/cli/command_modules/eventhubs/aaz/latest/eventhubs/namespace/private_link_resource/_show.py new file mode 100644 index 00000000000..e705e611a71 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/eventhubs/aaz/latest/eventhubs/namespace/private_link_resource/_show.py @@ -0,0 +1,196 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "eventhubs namespace private-link-resource show", +) +class Show(AAZCommand): + """List lists of resources that supports Privatelinks. + """ + + _aaz_info = { + "version": "2022-01-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.eventhub/namespaces/{}/privatelinkresources", "2022-01-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_paging(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.namespace_name = AAZStrArg( + options=["--namespace-name"], + help="The Namespace name", + required=True, + fmt=AAZStrArgFormat( + max_length=50, + min_length=6, + ), + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.PrivateLinkResourcesGet(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True) + next_link = self.deserialize_output(self.ctx.vars.instance.next_link) + return result, next_link + + class PrivateLinkResourcesGet(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/privateLinkResources", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "namespaceName", self.ctx.args.namespace_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-01-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.next_link = AAZStrType( + serialized_name="nextLink", + ) + _schema_on_200.value = AAZListType() + + value = cls._schema_on_200.value + value.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element + _element.id = AAZStrType() + _element.name = AAZStrType() + _element.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _element.type = AAZStrType() + + properties = cls._schema_on_200.value.Element.properties + properties.group_id = AAZStrType( + serialized_name="groupId", + ) + properties.required_members = AAZListType( + serialized_name="requiredMembers", + ) + properties.required_zone_names = AAZListType( + serialized_name="requiredZoneNames", + ) + + required_members = cls._schema_on_200.value.Element.properties.required_members + required_members.Element = AAZStrType() + + required_zone_names = cls._schema_on_200.value.Element.properties.required_zone_names + required_zone_names.Element = AAZStrType() + + return cls._schema_on_200 + + +class _ShowHelper: + """Helper class for Show""" + + +__all__ = ["Show"] diff --git a/src/azure-cli/azure/cli/command_modules/eventhubs/commands.py b/src/azure-cli/azure/cli/command_modules/eventhubs/commands.py index 8ad785a0ef3..ee9a307d6dc 100644 --- a/src/azure-cli/azure/cli/command_modules/eventhubs/commands.py +++ b/src/azure-cli/azure/cli/command_modules/eventhubs/commands.py @@ -17,8 +17,6 @@ def load_command_table(self, _): consumer_groups_mgmt_client_factory, disaster_recovery_mgmt_client_factory, cluster_mgmt_client_factory, - private_endpoint_connections_mgmt_client_factory, - private_link_mgmt_client_factory, schema_registry_mgmt_client_factory, application_group_mgmt_client_factory) @@ -50,16 +48,6 @@ def load_command_table(self, _): client_factory=disaster_recovery_mgmt_client_factory, resource_type=ResourceType.MGMT_EVENTHUB) - eh_private_endpoints_util = CliCommandType( - operations_tmpl='azure.mgmt.eventhub.operations#PrivateEndpointConnectionsOperations.{}', - client_factory=private_endpoint_connections_mgmt_client_factory, - resource_type=ResourceType.MGMT_EVENTHUB) - - eh_private_links_util = CliCommandType( - operations_tmpl='azure.mgmt.eventhub.operations#PrivateLinkResourcesOperations.{}', - client_factory=private_link_mgmt_client_factory, - resource_type=ResourceType.MGMT_EVENTHUB) - eh_schema_registry_util = CliCommandType( operations_tmpl='azure.mgmt.eventhub.operations#SchemaRegistryOperations.{}', client_factory=schema_registry_mgmt_client_factory, @@ -94,23 +82,12 @@ def load_command_table(self, _): g.command('delete', 'delete_authorization_rule') g.generic_update_command('update', getter_name='get_authorization_rule', setter_name='create_or_update_authorization_rule', custom_func_name='cli_autho_update') - with self.command_group('eventhubs namespace private-endpoint-connection', eh_private_endpoints_util, resource_type=ResourceType.MGMT_EVENTHUB, - custom_command_type=eventhubs_custom, is_preview=True, - client_factory=private_endpoint_connections_mgmt_client_factory) as g: + with self.command_group('eventhubs namespace private-endpoint-connection', custom_command_type=eh_namespace_custom, + is_preview=True) as g: from ._validator import validate_private_endpoint_connection_id - g.command('delete', 'begin_delete', confirmation=True, validator=validate_private_endpoint_connection_id) - g.show_command('show', 'get', validator=validate_private_endpoint_connection_id) - g.command('list', 'list', validator=validate_private_endpoint_connection_id) - g.custom_command('approve', 'approve_private_endpoint_connection', - validator=validate_private_endpoint_connection_id) - g.custom_command('reject', 'reject_private_endpoint_connection', - validator=validate_private_endpoint_connection_id) - - with self.command_group('eventhubs namespace private-link-resource', eh_private_links_util, - resource_type=ResourceType.MGMT_EVENTHUB) as g: - from azure.cli.core.commands.transform import gen_dict_to_list_transform - g.show_command('show', 'get', is_preview=True, min_api='2021-06-01-preview', - transform=gen_dict_to_list_transform(key="value")) + g.custom_command('approve', 'approve_private_endpoint_connection', validator=validate_private_endpoint_connection_id) + g.custom_command('reject', 'reject_private_endpoint_connection', validator=validate_private_endpoint_connection_id) + g.custom_command('delete', 'delete_private_endpoint_connection', confirmation=True, validator=validate_private_endpoint_connection_id) # Cluster Region with self.command_group('eventhubs cluster', eh_clusters_util, resource_type=ResourceType.MGMT_EVENTHUB, diff --git a/src/azure-cli/azure/cli/command_modules/eventhubs/custom.py b/src/azure-cli/azure/cli/command_modules/eventhubs/custom.py index 735d40d923e..c36ca90e5f9 100644 --- a/src/azure-cli/azure/cli/command_modules/eventhubs/custom.py +++ b/src/azure-cli/azure/cli/command_modules/eventhubs/custom.py @@ -398,53 +398,6 @@ def cli_geodr_create(client, resource_group_name, namespace_name, alias, partner parameters={'partner_namespace': partner_namespace, 'alternate_name': alternate_name}) -# Private Endpoint -def _update_private_endpoint_connection_status(cmd, client, resource_group_name, namespace_name, - private_endpoint_connection_name, is_approved=True, description=None): - from azure.core.exceptions import HttpResponseError - import time - - PrivateEndpointServiceConnectionStatus = cmd.get_models('PrivateLinkConnectionStatus') - - private_endpoint_connection = client.get(resource_group_name=resource_group_name, namespace_name=namespace_name, - private_endpoint_connection_name=private_endpoint_connection_name) - - old_status = private_endpoint_connection.private_link_service_connection_state.status - if old_status != "Approved" or not is_approved: - private_endpoint_connection.private_link_service_connection_state.status = PrivateEndpointServiceConnectionStatus.APPROVED\ - if is_approved else PrivateEndpointServiceConnectionStatus.REJECTED - private_endpoint_connection.private_link_service_connection_state.description = description - try: - private_endpoint_connection = client.create_or_update(resource_group_name=resource_group_name, - namespace_name=namespace_name, - private_endpoint_connection_name=private_endpoint_connection_name, - parameters=private_endpoint_connection) - except HttpResponseError as ex: - if 'Operation returned an invalid status ''Accepted''' in ex.message: - time.sleep(30) - private_endpoint_connection = client.get(resource_group_name=resource_group_name, - namespace_name=namespace_name, - private_endpoint_connection_name=private_endpoint_connection_name) - return private_endpoint_connection - - -def approve_private_endpoint_connection(cmd, client, resource_group_name, namespace_name, - private_endpoint_connection_name, description=None): - - return _update_private_endpoint_connection_status( - cmd, client, resource_group_name=resource_group_name, namespace_name=namespace_name, is_approved=True, - private_endpoint_connection_name=private_endpoint_connection_name, description=description - ) - - -def reject_private_endpoint_connection(cmd, client, resource_group_name, namespace_name, private_endpoint_connection_name, - description=None): - return _update_private_endpoint_connection_status( - cmd, client, resource_group_name=resource_group_name, namespace_name=namespace_name, is_approved=False, - private_endpoint_connection_name=private_endpoint_connection_name, description=description - ) - - def cli_add_identity(cmd, client, resource_group_name, namespace_name, system_assigned=None, user_assigned=None): namespace = client.get(resource_group_name, namespace_name) IdentityType = cmd.get_models('ManagedServiceIdentityType', resource_type=ResourceType.MGMT_EVENTHUB) diff --git a/src/azure-cli/azure/cli/command_modules/eventhubs/tests/latest/recordings/test_eh_consumergroup.yaml b/src/azure-cli/azure/cli/command_modules/eventhubs/tests/latest/recordings/test_eh_consumergroup.yaml index 5921abfc634..e9ec6fecae9 100644 --- a/src/azure-cli/azure/cli/command_modules/eventhubs/tests/latest/recordings/test_eh_consumergroup.yaml +++ b/src/azure-cli/azure/cli/command_modules/eventhubs/tests/latest/recordings/test_eh_consumergroup.yaml @@ -19,13 +19,13 @@ interactions: ParameterSetName: - --resource-group --name --location --tags --sku --enable-auto-inflate --maximum-throughput-units User-Agent: - - AZURECLI/2.44.1 (AAZ) azsdk-python-core/1.24.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.47.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002?api-version=2022-01-01-preview response: body: string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002","name":"eventhubs-nscli000002","type":"Microsoft.EventHub/Namespaces","location":"West - US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"minimumTlsVersion":"1.2","publicNetworkAccess":"Enabled","disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":true,"maximumThroughputUnits":4,"kafkaEnabled":true,"provisioningState":"Created","metricId":"326100e2-f69d-4268-8503-075374f62b6e:eventhubs-nscli000002","createdAt":"2023-02-02T11:50:30.51Z","updatedAt":"2023-02-02T11:50:30.51Z","serviceBusEndpoint":"https://eventhubs-nscli000002.servicebus.windows.net:443/","status":"Activating"}}' + US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"minimumTlsVersion":"1.2","publicNetworkAccess":"Enabled","disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":true,"maximumThroughputUnits":4,"kafkaEnabled":true,"provisioningState":"Created","metricId":"326100e2-f69d-4268-8503-075374f62b6e:eventhubs-nscli000002","createdAt":"2023-04-04T02:46:15.94Z","updatedAt":"2023-04-04T02:46:15.94Z","serviceBusEndpoint":"https://eventhubs-nscli000002.servicebus.windows.net:443/","status":"Activating"}}' headers: cache-control: - no-cache @@ -34,16 +34,16 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 02 Feb 2023 11:50:30 GMT + - Tue, 04 Apr 2023 02:46:17 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/SN1 + - Service-Bus-Resource-Provider/CH3 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/SN1 + - Service-Bus-Resource-Provider/CH3 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -71,13 +71,13 @@ interactions: ParameterSetName: - --resource-group --name --location --tags --sku --enable-auto-inflate --maximum-throughput-units User-Agent: - - AZURECLI/2.44.1 (AAZ) azsdk-python-core/1.24.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.47.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002?api-version=2022-01-01-preview response: body: string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002","name":"eventhubs-nscli000002","type":"Microsoft.EventHub/Namespaces","location":"West - US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"minimumTlsVersion":"1.2","publicNetworkAccess":"Enabled","disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":true,"maximumThroughputUnits":4,"kafkaEnabled":true,"provisioningState":"Created","metricId":"326100e2-f69d-4268-8503-075374f62b6e:eventhubs-nscli000002","createdAt":"2023-02-02T11:50:30.51Z","updatedAt":"2023-02-02T11:50:30.51Z","serviceBusEndpoint":"https://eventhubs-nscli000002.servicebus.windows.net:443/","status":"Activating"}}' + US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"minimumTlsVersion":"1.2","publicNetworkAccess":"Enabled","disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":true,"maximumThroughputUnits":4,"kafkaEnabled":true,"provisioningState":"Created","metricId":"326100e2-f69d-4268-8503-075374f62b6e:eventhubs-nscli000002","createdAt":"2023-04-04T02:46:15.94Z","updatedAt":"2023-04-04T02:46:15.94Z","serviceBusEndpoint":"https://eventhubs-nscli000002.servicebus.windows.net:443/","status":"Activating"}}' headers: cache-control: - no-cache @@ -86,16 +86,16 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 02 Feb 2023 11:51:00 GMT + - Tue, 04 Apr 2023 02:46:48 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/SN1 + - Service-Bus-Resource-Provider/CH3 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/SN1 + - Service-Bus-Resource-Provider/CH3 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -121,31 +121,31 @@ interactions: ParameterSetName: - --resource-group --name --location --tags --sku --enable-auto-inflate --maximum-throughput-units User-Agent: - - AZURECLI/2.44.1 (AAZ) azsdk-python-core/1.24.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.47.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002?api-version=2022-01-01-preview response: body: string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002","name":"eventhubs-nscli000002","type":"Microsoft.EventHub/Namespaces","location":"West - US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"minimumTlsVersion":"1.2","publicNetworkAccess":"Enabled","disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":true,"maximumThroughputUnits":4,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"326100e2-f69d-4268-8503-075374f62b6e:eventhubs-nscli000002","createdAt":"2023-02-02T11:50:30.51Z","updatedAt":"2023-02-02T11:51:18.453Z","serviceBusEndpoint":"https://eventhubs-nscli000002.servicebus.windows.net:443/","status":"Active"}}' + US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"minimumTlsVersion":"1.2","publicNetworkAccess":"Enabled","disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":true,"maximumThroughputUnits":4,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"326100e2-f69d-4268-8503-075374f62b6e:eventhubs-nscli000002","createdAt":"2023-04-04T02:46:15.94Z","updatedAt":"2023-04-04T02:47:07.71Z","serviceBusEndpoint":"https://eventhubs-nscli000002.servicebus.windows.net:443/","status":"Active"}}' headers: cache-control: - no-cache content-length: - - '842' + - '841' content-type: - application/json; charset=utf-8 date: - - Thu, 02 Feb 2023 11:51:31 GMT + - Tue, 04 Apr 2023 02:47:19 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/SN1 + - Service-Bus-Resource-Provider/CH3 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/SN1 + - Service-Bus-Resource-Provider/CH3 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -171,22 +171,22 @@ interactions: ParameterSetName: - --resource-group --name User-Agent: - - AZURECLI/2.44.1 (AAZ) azsdk-python-core/1.24.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.47.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002?api-version=2022-01-01-preview response: body: string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002","name":"eventhubs-nscli000002","type":"Microsoft.EventHub/Namespaces","location":"West - US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"minimumTlsVersion":"1.2","publicNetworkAccess":"Enabled","disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":true,"maximumThroughputUnits":4,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"326100e2-f69d-4268-8503-075374f62b6e:eventhubs-nscli000002","createdAt":"2023-02-02T11:50:30.51Z","updatedAt":"2023-02-02T11:51:18.453Z","serviceBusEndpoint":"https://eventhubs-nscli000002.servicebus.windows.net:443/","status":"Active"}}' + US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"minimumTlsVersion":"1.2","publicNetworkAccess":"Enabled","disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":true,"maximumThroughputUnits":4,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"326100e2-f69d-4268-8503-075374f62b6e:eventhubs-nscli000002","createdAt":"2023-04-04T02:46:15.94Z","updatedAt":"2023-04-04T02:47:07.71Z","serviceBusEndpoint":"https://eventhubs-nscli000002.servicebus.windows.net:443/","status":"Active"}}' headers: cache-control: - no-cache content-length: - - '842' + - '841' content-type: - application/json; charset=utf-8 date: - - Thu, 02 Feb 2023 11:51:32 GMT + - Tue, 04 Apr 2023 02:47:23 GMT expires: - '-1' pragma: @@ -225,12 +225,12 @@ interactions: ParameterSetName: - --resource-group --namespace-name --name User-Agent: - - AZURECLI/2.44.1 azsdk-python-azure-mgmt-eventhub/10.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.47.0 azsdk-python-azure-mgmt-eventhub/10.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003?api-version=2022-01-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003","name":"eventhubs-eventhubcli000003","type":"Microsoft.EventHub/namespaces/eventhubs","location":"westus2","properties":{"messageRetentionInDays":7,"partitionCount":4,"status":"Active","createdAt":"2023-02-02T11:51:35.667Z","updatedAt":"2023-02-02T11:51:35.82Z","partitionIds":["0","1","2","3"]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003","name":"eventhubs-eventhubcli000003","type":"Microsoft.EventHub/namespaces/eventhubs","location":"westus2","properties":{"messageRetentionInDays":7,"partitionCount":4,"status":"Active","createdAt":"2023-04-04T02:47:27.57Z","updatedAt":"2023-04-04T02:47:27.743Z","partitionIds":["0","1","2","3"]}}' headers: cache-control: - no-cache @@ -239,7 +239,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 02 Feb 2023 11:51:35 GMT + - Tue, 04 Apr 2023 02:47:28 GMT expires: - '-1' pragma: @@ -273,12 +273,12 @@ interactions: ParameterSetName: - --resource-group --namespace-name --name User-Agent: - - AZURECLI/2.44.1 azsdk-python-azure-mgmt-eventhub/10.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.47.0 azsdk-python-azure-mgmt-eventhub/10.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003?api-version=2022-01-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003","name":"eventhubs-eventhubcli000003","type":"Microsoft.EventHub/namespaces/eventhubs","location":"westus2","properties":{"messageRetentionInDays":7,"partitionCount":4,"status":"Active","createdAt":"2023-02-02T11:51:35.667","updatedAt":"2023-02-02T11:51:35.82","partitionIds":["0","1","2","3"]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003","name":"eventhubs-eventhubcli000003","type":"Microsoft.EventHub/namespaces/eventhubs","location":"westus2","properties":{"messageRetentionInDays":7,"partitionCount":4,"status":"Active","createdAt":"2023-04-04T02:47:27.57","updatedAt":"2023-04-04T02:47:27.743","partitionIds":["0","1","2","3"]}}' headers: cache-control: - no-cache @@ -287,7 +287,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 02 Feb 2023 11:51:36 GMT + - Tue, 04 Apr 2023 02:47:29 GMT expires: - '-1' pragma: @@ -323,12 +323,12 @@ interactions: ParameterSetName: - --resource-group --namespace-name --eventhub-name --name --user-metadata User-Agent: - - AZURECLI/2.44.1 azsdk-python-azure-mgmt-eventhub/10.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.47.0 azsdk-python-azure-mgmt-eventhub/10.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003/consumergroups/clicg000004?api-version=2022-01-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003/consumergroups/clicg000004","name":"clicg000004","type":"Microsoft.EventHub/namespaces/eventhubs/consumergroups","location":"westus2","properties":{"createdAt":"2023-02-02T11:51:39.6011023Z","updatedAt":"2023-02-02T11:51:39.6011023Z","userMetadata":"usermetadata"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003/consumergroups/clicg000004","name":"clicg000004","type":"Microsoft.EventHub/namespaces/eventhubs/consumergroups","location":"westus2","properties":{"createdAt":"2023-04-04T02:47:33.1266724Z","updatedAt":"2023-04-04T02:47:33.1266724Z","userMetadata":"usermetadata"}}' headers: cache-control: - no-cache @@ -337,7 +337,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 02 Feb 2023 11:51:38 GMT + - Tue, 04 Apr 2023 02:47:32 GMT expires: - '-1' pragma: @@ -371,12 +371,12 @@ interactions: ParameterSetName: - --resource-group --namespace-name --eventhub-name --name User-Agent: - - AZURECLI/2.44.1 azsdk-python-azure-mgmt-eventhub/10.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.47.0 azsdk-python-azure-mgmt-eventhub/10.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003/consumergroups/clicg000004?api-version=2022-01-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003/consumergroups/clicg000004","name":"clicg000004","type":"Microsoft.EventHub/namespaces/eventhubs/consumergroups","location":"westus2","properties":{"createdAt":"2023-02-02T11:51:39.605Z","updatedAt":"2023-02-02T11:51:39.605Z","userMetadata":"usermetadata"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003/consumergroups/clicg000004","name":"clicg000004","type":"Microsoft.EventHub/namespaces/eventhubs/consumergroups","location":"westus2","properties":{"createdAt":"2023-04-04T02:47:33.132Z","updatedAt":"2023-04-04T02:47:33.132Z","userMetadata":"usermetadata"}}' headers: cache-control: - no-cache @@ -385,7 +385,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 02 Feb 2023 11:51:39 GMT + - Tue, 04 Apr 2023 02:47:35 GMT expires: - '-1' pragma: @@ -417,21 +417,21 @@ interactions: ParameterSetName: - --resource-group --namespace-name --eventhub-name --name --user-metadata User-Agent: - - AZURECLI/2.44.1 azsdk-python-azure-mgmt-eventhub/10.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.47.0 azsdk-python-azure-mgmt-eventhub/10.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003/consumergroups/clicg000004?api-version=2022-01-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003/consumergroups/clicg000004","name":"clicg000004","type":"Microsoft.EventHub/namespaces/eventhubs/consumergroups","location":"westus2","properties":{"createdAt":"2023-02-02T11:51:39.605Z","updatedAt":"2023-02-02T11:51:39.605Z","userMetadata":"usermetadata"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003/consumergroups/clicg000004","name":"clicg000004","type":"Microsoft.EventHub/namespaces/eventhubs/consumergroups","location":"westus2","properties":{"createdAt":"2023-04-04T02:47:33.13Z","updatedAt":"2023-04-04T02:47:33.13Z","userMetadata":"usermetadata"}}' headers: cache-control: - no-cache content-length: - - '463' + - '461' content-type: - application/json; charset=utf-8 date: - - Thu, 02 Feb 2023 11:51:41 GMT + - Tue, 04 Apr 2023 02:47:37 GMT expires: - '-1' pragma: @@ -467,12 +467,12 @@ interactions: ParameterSetName: - --resource-group --namespace-name --eventhub-name --name --user-metadata User-Agent: - - AZURECLI/2.44.1 azsdk-python-azure-mgmt-eventhub/10.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.47.0 azsdk-python-azure-mgmt-eventhub/10.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003/consumergroups/clicg000004?api-version=2022-01-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003/consumergroups/clicg000004","name":"clicg000004","type":"Microsoft.EventHub/namespaces/eventhubs/consumergroups","location":"westus2","properties":{"createdAt":"2023-02-02T11:51:42.8393915Z","updatedAt":"2023-02-02T11:51:42.8393915Z","userMetadata":"usermetadata-updated"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003/consumergroups/clicg000004","name":"clicg000004","type":"Microsoft.EventHub/namespaces/eventhubs/consumergroups","location":"westus2","properties":{"createdAt":"2023-04-04T02:47:39.6338333Z","updatedAt":"2023-04-04T02:47:39.6338333Z","userMetadata":"usermetadata-updated"}}' headers: cache-control: - no-cache @@ -481,7 +481,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 02 Feb 2023 11:51:42 GMT + - Tue, 04 Apr 2023 02:47:39 GMT expires: - '-1' pragma: @@ -497,7 +497,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -515,21 +515,21 @@ interactions: ParameterSetName: - --resource-group --namespace-name --eventhub-name User-Agent: - - AZURECLI/2.44.1 azsdk-python-azure-mgmt-eventhub/10.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.47.0 azsdk-python-azure-mgmt-eventhub/10.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003/consumergroups?api-version=2022-01-01-preview response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003/consumergroups/$Default","name":"$Default","type":"Microsoft.EventHub/namespaces/eventhubs/consumergroups","location":"westus2","properties":{"createdAt":"2023-02-02T11:51:35.686Z","updatedAt":"2023-02-02T11:51:35.686Z"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003/consumergroups/clicg000004","name":"clicg000004","type":"Microsoft.EventHub/namespaces/eventhubs/consumergroups","location":"westus2","properties":{"createdAt":"2023-02-02T11:51:39.609Z","updatedAt":"2023-02-02T11:51:42.89Z","userMetadata":"usermetadata-updated"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003/consumergroups/$Default","name":"$Default","type":"Microsoft.EventHub/namespaces/eventhubs/consumergroups","location":"westus2","properties":{"createdAt":"2023-04-04T02:47:27.597Z","updatedAt":"2023-04-04T02:47:27.597Z"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003/consumergroups/clicg000004","name":"clicg000004","type":"Microsoft.EventHub/namespaces/eventhubs/consumergroups","location":"westus2","properties":{"createdAt":"2023-04-04T02:47:33.129Z","updatedAt":"2023-04-04T02:47:39.676Z","userMetadata":"usermetadata-updated"}}]}' headers: cache-control: - no-cache content-length: - - '910' + - '911' content-type: - application/json; charset=utf-8 date: - - Thu, 02 Feb 2023 11:51:43 GMT + - Tue, 04 Apr 2023 02:47:41 GMT expires: - '-1' pragma: @@ -565,7 +565,7 @@ interactions: ParameterSetName: - --resource-group --namespace-name --eventhub-name --name User-Agent: - - AZURECLI/2.44.1 azsdk-python-azure-mgmt-eventhub/10.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.47.0 azsdk-python-azure-mgmt-eventhub/10.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003/consumergroups/clicg000004?api-version=2022-01-01-preview response: @@ -577,7 +577,7 @@ interactions: content-length: - '0' date: - - Thu, 02 Feb 2023 11:51:44 GMT + - Tue, 04 Apr 2023 02:47:44 GMT expires: - '-1' pragma: @@ -609,7 +609,7 @@ interactions: ParameterSetName: - --resource-group --namespace-name --name User-Agent: - - AZURECLI/2.44.1 azsdk-python-azure-mgmt-eventhub/10.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.47.0 azsdk-python-azure-mgmt-eventhub/10.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003?api-version=2022-01-01-preview response: @@ -621,7 +621,7 @@ interactions: content-length: - '0' date: - - Thu, 02 Feb 2023 11:51:49 GMT + - Tue, 04 Apr 2023 02:47:48 GMT expires: - '-1' pragma: @@ -653,7 +653,7 @@ interactions: ParameterSetName: - --resource-group --name User-Agent: - - AZURECLI/2.44.1 (AAZ) azsdk-python-core/1.24.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.47.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002?api-version=2022-01-01-preview response: @@ -665,7 +665,7 @@ interactions: content-length: - '0' date: - - Thu, 02 Feb 2023 11:51:50 GMT + - Tue, 04 Apr 2023 02:47:51 GMT expires: - '-1' location: @@ -673,10 +673,10 @@ interactions: pragma: - no-cache server: - - Service-Bus-Resource-Provider/SN1 + - Service-Bus-Resource-Provider/CH3 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/SN1 + - Service-Bus-Resource-Provider/CH3 strict-transport-security: - max-age=31536000; includeSubDomains x-content-type-options: @@ -700,7 +700,7 @@ interactions: ParameterSetName: - --resource-group --name User-Agent: - - AZURECLI/2.44.1 (AAZ) azsdk-python-core/1.24.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.47.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/locations/westus2/operationStatus/eventhubs-nscli000002?api-version=2022-01-01-preview&resourceType=Namespace response: @@ -710,16 +710,16 @@ interactions: cache-control: - no-cache date: - - Thu, 02 Feb 2023 11:52:21 GMT + - Tue, 04 Apr 2023 02:48:22 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/SN1 + - Service-Bus-Resource-Provider/CH3 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/SN1 + - Service-Bus-Resource-Provider/CH3 strict-transport-security: - max-age=31536000; includeSubDomains x-content-type-options: diff --git a/src/azure-cli/azure/cli/command_modules/eventhubs/tests/latest/recordings/test_eh_privateendpoint.yaml b/src/azure-cli/azure/cli/command_modules/eventhubs/tests/latest/recordings/test_eh_privateendpoint.yaml index 23b9fd2fee9..b028b5c94f7 100644 --- a/src/azure-cli/azure/cli/command_modules/eventhubs/tests/latest/recordings/test_eh_privateendpoint.yaml +++ b/src/azure-cli/azure/cli/command_modules/eventhubs/tests/latest/recordings/test_eh_privateendpoint.yaml @@ -19,19 +19,19 @@ interactions: ParameterSetName: - -n -g -l --subnet-name User-Agent: - - AZURECLI/2.44.1 (AAZ) azsdk-python-core/1.24.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.47.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003?api-version=2022-01-01 response: body: string: "{\r\n \"name\": \"cli-vnet-000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003\",\r\n - \ \"etag\": \"W/\\\"eb9eb6a8-2b58-490a-b10c-67f795cdabb1\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"23463366-e44b-4db1-87cf-35e9de8d5570\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": - \"0beeb457-e4e8-4a71-96ee-0e1a38129ebc\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": + \"301fefd2-ebe6-40d7-b3f0-aeee085b04ee\",\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\": \"cli-subnet-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\",\r\n - \ \"etag\": \"W/\\\"eb9eb6a8-2b58-490a-b10c-67f795cdabb1\\\"\",\r\n + \ \"etag\": \"W/\\\"23463366-e44b-4db1-87cf-35e9de8d5570\\\"\",\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\": @@ -42,7 +42,7 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/3e92c26e-702a-4579-b447-810f5326094d?api-version=2022-01-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/0f6b2bc4-67c0-4b82-abcc-8bc09ad5c807?api-version=2022-01-01 cache-control: - no-cache content-length: @@ -50,7 +50,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 02 Feb 2023 17:25:25 GMT + - Tue, 04 Apr 2023 02:40:37 GMT expires: - '-1' pragma: @@ -63,9 +63,9 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 3677d014-1411-471d-9ffb-ae1bd368ba02 + - 14e15aa8-aff5-48a0-a415-df26ceafd921 x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 201 message: Created @@ -83,9 +83,9 @@ interactions: ParameterSetName: - -n -g -l --subnet-name User-Agent: - - AZURECLI/2.44.1 (AAZ) azsdk-python-core/1.24.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.47.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/3e92c26e-702a-4579-b447-810f5326094d?api-version=2022-01-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/0f6b2bc4-67c0-4b82-abcc-8bc09ad5c807?api-version=2022-01-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -97,7 +97,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 02 Feb 2023 17:25:28 GMT + - Tue, 04 Apr 2023 02:40:40 GMT expires: - '-1' pragma: @@ -114,7 +114,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 1a67e500-2821-4645-89d0-0e1de6093725 + - 4a1cdce1-5aae-4fca-b9c2-cf20229d8093 status: code: 200 message: OK @@ -132,19 +132,19 @@ interactions: ParameterSetName: - -n -g -l --subnet-name User-Agent: - - AZURECLI/2.44.1 (AAZ) azsdk-python-core/1.24.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.47.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003?api-version=2022-01-01 response: body: string: "{\r\n \"name\": \"cli-vnet-000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003\",\r\n - \ \"etag\": \"W/\\\"2f1664e4-d2bd-41c1-bccf-ced928c4a6ca\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"9770b791-efab-4eb2-9502-ee85f956420d\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": - \"0beeb457-e4e8-4a71-96ee-0e1a38129ebc\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": + \"301fefd2-ebe6-40d7-b3f0-aeee085b04ee\",\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\": \"cli-subnet-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\",\r\n - \ \"etag\": \"W/\\\"2f1664e4-d2bd-41c1-bccf-ced928c4a6ca\\\"\",\r\n + \ \"etag\": \"W/\\\"9770b791-efab-4eb2-9502-ee85f956420d\\\"\",\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\": @@ -159,9 +159,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 02 Feb 2023 17:25:28 GMT + - Tue, 04 Apr 2023 02:40:40 GMT etag: - - W/"2f1664e4-d2bd-41c1-bccf-ced928c4a6ca" + - W/"9770b791-efab-4eb2-9502-ee85f956420d" expires: - '-1' pragma: @@ -178,7 +178,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 85dfd3ec-4532-41aa-8973-1dde54282223 + - 4d071599-4e57-4fd0-982a-8c3fbbf196c0 status: code: 200 message: OK @@ -196,13 +196,13 @@ interactions: ParameterSetName: - -n --vnet-name -g --disable-private-endpoint-network-policies User-Agent: - - AZURECLI/2.44.1 (AAZ) azsdk-python-core/1.24.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.47.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004?api-version=2022-01-01 response: body: string: "{\r\n \"name\": \"cli-subnet-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\",\r\n - \ \"etag\": \"W/\\\"2f1664e4-d2bd-41c1-bccf-ced928c4a6ca\\\"\",\r\n \"properties\": + \ \"etag\": \"W/\\\"9770b791-efab-4eb2-9502-ee85f956420d\\\"\",\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\": @@ -215,9 +215,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 02 Feb 2023 17:25:29 GMT + - Tue, 04 Apr 2023 02:40:42 GMT etag: - - W/"2f1664e4-d2bd-41c1-bccf-ced928c4a6ca" + - W/"9770b791-efab-4eb2-9502-ee85f956420d" expires: - '-1' pragma: @@ -234,7 +234,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 202c8c82-45cd-4868-936b-10d5d775da05 + - 1e862d30-12f5-4cf5-bd6e-ff76fcae434f status: code: 200 message: OK @@ -259,13 +259,13 @@ interactions: ParameterSetName: - -n --vnet-name -g --disable-private-endpoint-network-policies User-Agent: - - AZURECLI/2.44.1 (AAZ) azsdk-python-core/1.24.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.47.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004?api-version=2022-01-01 response: body: string: "{\r\n \"name\": \"cli-subnet-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\",\r\n - \ \"etag\": \"W/\\\"2060cd95-49ca-44d3-9aa3-26f773d78267\\\"\",\r\n \"properties\": + \ \"etag\": \"W/\\\"713a81e0-0e6f-4afb-b528-72843fd60345\\\"\",\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\": @@ -274,7 +274,7 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/f91ee19f-a98e-4f62-b3f4-4e560d35d462?api-version=2022-01-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/3a649c0e-c2d0-4cac-82e7-6992c249062b?api-version=2022-01-01 cache-control: - no-cache content-length: @@ -282,7 +282,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 02 Feb 2023 17:25:29 GMT + - Tue, 04 Apr 2023 02:40:43 GMT expires: - '-1' pragma: @@ -299,9 +299,9 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 7abf8687-f119-4735-af2f-c1e849d45807 + - 75454633-e258-4543-a5e0-70e9123a1433 x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 200 message: OK @@ -319,9 +319,9 @@ interactions: ParameterSetName: - -n --vnet-name -g --disable-private-endpoint-network-policies User-Agent: - - AZURECLI/2.44.1 (AAZ) azsdk-python-core/1.24.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.47.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/f91ee19f-a98e-4f62-b3f4-4e560d35d462?api-version=2022-01-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/3a649c0e-c2d0-4cac-82e7-6992c249062b?api-version=2022-01-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -333,7 +333,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 02 Feb 2023 17:26:00 GMT + - Tue, 04 Apr 2023 02:41:14 GMT expires: - '-1' pragma: @@ -350,7 +350,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - f03b4af9-3add-4dc7-b3e0-f98d73c07ae1 + - c7d089ac-9c84-4251-ac1c-f0716f07e92c status: code: 200 message: OK @@ -368,13 +368,13 @@ interactions: ParameterSetName: - -n --vnet-name -g --disable-private-endpoint-network-policies User-Agent: - - AZURECLI/2.44.1 (AAZ) azsdk-python-core/1.24.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.47.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004?api-version=2022-01-01 response: body: string: "{\r\n \"name\": \"cli-subnet-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\",\r\n - \ \"etag\": \"W/\\\"2060cd95-49ca-44d3-9aa3-26f773d78267\\\"\",\r\n \"properties\": + \ \"etag\": \"W/\\\"713a81e0-0e6f-4afb-b528-72843fd60345\\\"\",\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\": @@ -387,9 +387,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 02 Feb 2023 17:26:00 GMT + - Tue, 04 Apr 2023 02:41:15 GMT etag: - - W/"2060cd95-49ca-44d3-9aa3-26f773d78267" + - W/"713a81e0-0e6f-4afb-b528-72843fd60345" expires: - '-1' pragma: @@ -406,7 +406,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - d444bb48-572e-4205-bba4-89c756668ecd + - be0eb1f4-ae64-47ec-a834-7a6e65327f81 status: code: 200 message: OK @@ -429,31 +429,31 @@ interactions: ParameterSetName: - --resource-group --name --location --tags --sku User-Agent: - - AZURECLI/2.44.1 (AAZ) azsdk-python-core/1.24.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.47.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002?api-version=2022-01-01-preview response: body: string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002","name":"eventhubs-nscli000002","type":"Microsoft.EventHub/Namespaces","location":"East - US","tags":{"{tag1":"value1}"},"properties":{"minimumTlsVersion":"1.2","publicNetworkAccess":"Enabled","disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Created","metricId":"326100e2-f69d-4268-8503-075374f62b6e:eventhubs-nscli000002","createdAt":"2023-02-02T17:26:04.327Z","updatedAt":"2023-02-02T17:26:04.327Z","serviceBusEndpoint":"https://eventhubs-nscli000002.servicebus.windows.net:443/","status":"Activating"}}' + US","tags":{"{tag1":"value1}"},"properties":{"minimumTlsVersion":"1.2","publicNetworkAccess":"Enabled","disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Created","metricId":"326100e2-f69d-4268-8503-075374f62b6e:eventhubs-nscli000002","createdAt":"2023-04-04T02:41:23.24Z","updatedAt":"2023-04-04T02:41:23.24Z","serviceBusEndpoint":"https://eventhubs-nscli000002.servicebus.windows.net:443/","status":"Activating"}}' headers: cache-control: - no-cache content-length: - - '817' + - '815' content-type: - application/json; charset=utf-8 date: - - Thu, 02 Feb 2023 17:26:05 GMT + - Tue, 04 Apr 2023 02:41:25 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/SN1 + - Service-Bus-Resource-Provider/CH3 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/SN1 + - Service-Bus-Resource-Provider/CH3 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -481,31 +481,31 @@ interactions: ParameterSetName: - --resource-group --name --location --tags --sku User-Agent: - - AZURECLI/2.44.1 (AAZ) azsdk-python-core/1.24.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.47.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002?api-version=2022-01-01-preview response: body: string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002","name":"eventhubs-nscli000002","type":"Microsoft.EventHub/Namespaces","location":"East - US","tags":{"{tag1":"value1}"},"properties":{"minimumTlsVersion":"1.2","publicNetworkAccess":"Enabled","disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Created","metricId":"326100e2-f69d-4268-8503-075374f62b6e:eventhubs-nscli000002","createdAt":"2023-02-02T17:26:04.327Z","updatedAt":"2023-02-02T17:26:04.327Z","serviceBusEndpoint":"https://eventhubs-nscli000002.servicebus.windows.net:443/","status":"Activating"}}' + US","tags":{"{tag1":"value1}"},"properties":{"minimumTlsVersion":"1.2","publicNetworkAccess":"Enabled","disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Created","metricId":"326100e2-f69d-4268-8503-075374f62b6e:eventhubs-nscli000002","createdAt":"2023-04-04T02:41:23.24Z","updatedAt":"2023-04-04T02:41:23.24Z","serviceBusEndpoint":"https://eventhubs-nscli000002.servicebus.windows.net:443/","status":"Activating"}}' headers: cache-control: - no-cache content-length: - - '817' + - '815' content-type: - application/json; charset=utf-8 date: - - Thu, 02 Feb 2023 17:26:35 GMT + - Tue, 04 Apr 2023 02:41:55 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/SN1 + - Service-Bus-Resource-Provider/CH3 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/SN1 + - Service-Bus-Resource-Provider/CH3 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -531,31 +531,31 @@ interactions: ParameterSetName: - --resource-group --name --location --tags --sku User-Agent: - - AZURECLI/2.44.1 (AAZ) azsdk-python-core/1.24.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.47.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002?api-version=2022-01-01-preview response: body: string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002","name":"eventhubs-nscli000002","type":"Microsoft.EventHub/Namespaces","location":"East - US","tags":{"{tag1":"value1}"},"properties":{"minimumTlsVersion":"1.2","publicNetworkAccess":"Enabled","disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"326100e2-f69d-4268-8503-075374f62b6e:eventhubs-nscli000002","createdAt":"2023-02-02T17:26:04.327Z","updatedAt":"2023-02-02T17:26:51.447Z","serviceBusEndpoint":"https://eventhubs-nscli000002.servicebus.windows.net:443/","status":"Active"}}' + US","tags":{"{tag1":"value1}"},"properties":{"minimumTlsVersion":"1.2","publicNetworkAccess":"Enabled","disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"326100e2-f69d-4268-8503-075374f62b6e:eventhubs-nscli000002","createdAt":"2023-04-04T02:41:23.24Z","updatedAt":"2023-04-04T02:42:15.693Z","serviceBusEndpoint":"https://eventhubs-nscli000002.servicebus.windows.net:443/","status":"Active"}}' headers: cache-control: - no-cache content-length: - - '815' + - '814' content-type: - application/json; charset=utf-8 date: - - Thu, 02 Feb 2023 17:27:05 GMT + - Tue, 04 Apr 2023 02:42:26 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/SN1 + - Service-Bus-Resource-Provider/CH3 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/SN1 + - Service-Bus-Resource-Provider/CH3 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -581,31 +581,31 @@ interactions: ParameterSetName: - --resource-group --name User-Agent: - - AZURECLI/2.44.1 (AAZ) azsdk-python-core/1.24.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.47.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002?api-version=2022-01-01-preview response: body: string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002","name":"eventhubs-nscli000002","type":"Microsoft.EventHub/Namespaces","location":"East - US","tags":{"{tag1":"value1}"},"properties":{"minimumTlsVersion":"1.2","publicNetworkAccess":"Enabled","disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"326100e2-f69d-4268-8503-075374f62b6e:eventhubs-nscli000002","createdAt":"2023-02-02T17:26:04.327Z","updatedAt":"2023-02-02T17:26:51.447Z","serviceBusEndpoint":"https://eventhubs-nscli000002.servicebus.windows.net:443/","status":"Active"}}' + US","tags":{"{tag1":"value1}"},"properties":{"minimumTlsVersion":"1.2","publicNetworkAccess":"Enabled","disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"326100e2-f69d-4268-8503-075374f62b6e:eventhubs-nscli000002","createdAt":"2023-04-04T02:41:23.24Z","updatedAt":"2023-04-04T02:42:15.693Z","serviceBusEndpoint":"https://eventhubs-nscli000002.servicebus.windows.net:443/","status":"Active"}}' headers: cache-control: - no-cache content-length: - - '815' + - '814' content-type: - application/json; charset=utf-8 date: - - Thu, 02 Feb 2023 17:27:06 GMT + - Tue, 04 Apr 2023 02:42:27 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/SN1 + - Service-Bus-Resource-Provider/CH3 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/SN1 + - Service-Bus-Resource-Provider/CH3 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -631,7 +631,7 @@ interactions: ParameterSetName: - --namespace-name -g User-Agent: - - AZURECLI/2.44.1 azsdk-python-azure-mgmt-eventhub/10.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.47.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/privateLinkResources?api-version=2022-01-01-preview response: @@ -645,16 +645,16 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 02 Feb 2023 17:27:06 GMT + - Tue, 04 Apr 2023 02:42:32 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/SN1 + - Service-Bus-Resource-Provider/CH3 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/SN1 + - Service-Bus-Resource-Provider/CH3 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -680,31 +680,31 @@ interactions: ParameterSetName: - -n -g User-Agent: - - AZURECLI/2.44.1 (AAZ) azsdk-python-core/1.24.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.47.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002?api-version=2022-01-01-preview response: body: string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002","name":"eventhubs-nscli000002","type":"Microsoft.EventHub/Namespaces","location":"East - US","tags":{"{tag1":"value1}"},"properties":{"minimumTlsVersion":"1.2","publicNetworkAccess":"Enabled","disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"326100e2-f69d-4268-8503-075374f62b6e:eventhubs-nscli000002","createdAt":"2023-02-02T17:26:04.327Z","updatedAt":"2023-02-02T17:26:51.447Z","serviceBusEndpoint":"https://eventhubs-nscli000002.servicebus.windows.net:443/","status":"Active"}}' + US","tags":{"{tag1":"value1}"},"properties":{"minimumTlsVersion":"1.2","publicNetworkAccess":"Enabled","disableLocalAuth":false,"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"326100e2-f69d-4268-8503-075374f62b6e:eventhubs-nscli000002","createdAt":"2023-04-04T02:41:23.24Z","updatedAt":"2023-04-04T02:42:15.693Z","serviceBusEndpoint":"https://eventhubs-nscli000002.servicebus.windows.net:443/","status":"Active"}}' headers: cache-control: - no-cache content-length: - - '815' + - '814' content-type: - application/json; charset=utf-8 date: - - Thu, 02 Feb 2023 17:27:08 GMT + - Tue, 04 Apr 2023 02:42:33 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/SN1 + - Service-Bus-Resource-Provider/CH3 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/SN1 + - Service-Bus-Resource-Provider/CH3 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -738,18 +738,18 @@ interactions: - -g -n --vnet-name --subnet -l --connection-name --private-connection-resource-id --group-ids User-Agent: - - AZURECLI/2.44.1 (AAZ) azsdk-python-core/1.24.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.47.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005?api-version=2022-01-01 response: body: string: "{\r\n \"name\": \"cli-pe-000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005\",\r\n - \ \"etag\": \"W/\\\"2ca80daa-8930-466f-98ab-cfb40beca667\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"e87712f3-8486-45bf-8513-84996b746255\\\"\",\r\n \"type\": \"Microsoft.Network/privateEndpoints\",\r\n \"location\": \"eastus\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": - \"eb4b6e65-0718-4f16-8279-2fb087466e5f\",\r\n \"privateLinkServiceConnections\": + \"1e81e605-1b03-4b3b-8906-c97c9654d7c9\",\r\n \"privateLinkServiceConnections\": [\r\n {\r\n \"name\": \"cli-pec-000006\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005/privateLinkServiceConnections/cli-pec-000006\",\r\n - \ \"etag\": \"W/\\\"2ca80daa-8930-466f-98ab-cfb40beca667\\\"\",\r\n + \ \"etag\": \"W/\\\"e87712f3-8486-45bf-8513-84996b746255\\\"\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"privateLinkServiceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002\",\r\n \ \"groupIds\": [\r\n \"namespace\"\r\n ],\r\n @@ -760,13 +760,13 @@ interactions: \ \"customNetworkInterfaceName\": \"\",\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\"\r\n \ },\r\n \"ipConfigurations\": [],\r\n \"networkInterfaces\": [\r\n - \ {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.Network/networkInterfaces/cli-pe-000005.nic.48a8bf9b-9ce8-4365-9670-15dcec35a291\"\r\n + \ {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.Network/networkInterfaces/cli-pe-000005.nic.9c0b00bc-88d3-40af-9200-c470690cc504\"\r\n \ }\r\n ],\r\n \"customDnsConfigs\": []\r\n }\r\n}" headers: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/5f0a2fdb-ab2c-4ecd-a071-7242d87dfd31?api-version=2022-01-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/daf586e3-1f69-4f7e-bd48-24b79a4d23ed?api-version=2022-01-01 cache-control: - no-cache content-length: @@ -774,7 +774,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 02 Feb 2023 17:27:26 GMT + - Tue, 04 Apr 2023 02:42:40 GMT expires: - '-1' pragma: @@ -787,9 +787,9 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 91a3117e-11e7-4d00-85b6-4a25d2c8fa78 + - c1d27652-17da-4c78-9e6e-b9acc0095f23 x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 201 message: Created @@ -808,9 +808,9 @@ interactions: - -g -n --vnet-name --subnet -l --connection-name --private-connection-resource-id --group-ids User-Agent: - - AZURECLI/2.44.1 (AAZ) azsdk-python-core/1.24.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.47.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/5f0a2fdb-ab2c-4ecd-a071-7242d87dfd31?api-version=2022-01-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/daf586e3-1f69-4f7e-bd48-24b79a4d23ed?api-version=2022-01-01 response: body: string: "{\r\n \"status\": \"InProgress\"\r\n}" @@ -822,7 +822,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 02 Feb 2023 17:27:37 GMT + - Tue, 04 Apr 2023 02:42:50 GMT expires: - '-1' pragma: @@ -832,10 +832,14 @@ interactions: - 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: - - 4d153189-76c5-4dd4-9658-25f556ee22f1 + - e812bfc9-b15e-4729-97b5-5792e9794511 status: code: 200 message: OK @@ -854,9 +858,9 @@ interactions: - -g -n --vnet-name --subnet -l --connection-name --private-connection-resource-id --group-ids User-Agent: - - AZURECLI/2.44.1 (AAZ) azsdk-python-core/1.24.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.47.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/5f0a2fdb-ab2c-4ecd-a071-7242d87dfd31?api-version=2022-01-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/daf586e3-1f69-4f7e-bd48-24b79a4d23ed?api-version=2022-01-01 response: body: string: "{\r\n \"status\": \"InProgress\"\r\n}" @@ -868,7 +872,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 02 Feb 2023 17:27:48 GMT + - Tue, 04 Apr 2023 02:43:01 GMT expires: - '-1' pragma: @@ -878,10 +882,14 @@ interactions: - 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: - - 8c6ab3f0-ce89-43e9-8f63-377984133eec + - b761f4c9-1abf-42fb-9995-f795cdb827e4 status: code: 200 message: OK @@ -900,9 +908,9 @@ interactions: - -g -n --vnet-name --subnet -l --connection-name --private-connection-resource-id --group-ids User-Agent: - - AZURECLI/2.44.1 (AAZ) azsdk-python-core/1.24.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.47.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/5f0a2fdb-ab2c-4ecd-a071-7242d87dfd31?api-version=2022-01-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/daf586e3-1f69-4f7e-bd48-24b79a4d23ed?api-version=2022-01-01 response: body: string: "{\r\n \"status\": \"InProgress\"\r\n}" @@ -914,7 +922,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 02 Feb 2023 17:28:09 GMT + - Tue, 04 Apr 2023 02:43:22 GMT expires: - '-1' pragma: @@ -924,10 +932,14 @@ interactions: - 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: - - 48b43b94-e18f-4139-898e-1fc1e8e1673d + - 254be91e-fe8f-4fcd-a96b-498d92e17eaf status: code: 200 message: OK @@ -946,9 +958,9 @@ interactions: - -g -n --vnet-name --subnet -l --connection-name --private-connection-resource-id --group-ids User-Agent: - - AZURECLI/2.44.1 (AAZ) azsdk-python-core/1.24.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.47.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/5f0a2fdb-ab2c-4ecd-a071-7242d87dfd31?api-version=2022-01-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/daf586e3-1f69-4f7e-bd48-24b79a4d23ed?api-version=2022-01-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -960,7 +972,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 02 Feb 2023 17:28:37 GMT + - Tue, 04 Apr 2023 02:43:42 GMT expires: - '-1' pragma: @@ -970,10 +982,14 @@ interactions: - 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: - - b0887576-042d-4f54-b674-61cf5e98f72e + - 84e5e6c5-3497-4fae-b0a2-fed9ec8dbbf9 status: code: 200 message: OK @@ -992,18 +1008,18 @@ interactions: - -g -n --vnet-name --subnet -l --connection-name --private-connection-resource-id --group-ids User-Agent: - - AZURECLI/2.44.1 (AAZ) azsdk-python-core/1.24.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.47.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005?api-version=2022-01-01 response: body: string: "{\r\n \"name\": \"cli-pe-000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005\",\r\n - \ \"etag\": \"W/\\\"30cd7be2-7eca-465a-8544-f6df168225d6\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"d4be3c13-6143-462a-89e5-1f033b154ca0\\\"\",\r\n \"type\": \"Microsoft.Network/privateEndpoints\",\r\n \"location\": \"eastus\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": - \"eb4b6e65-0718-4f16-8279-2fb087466e5f\",\r\n \"privateLinkServiceConnections\": + \"1e81e605-1b03-4b3b-8906-c97c9654d7c9\",\r\n \"privateLinkServiceConnections\": [\r\n {\r\n \"name\": \"cli-pec-000006\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005/privateLinkServiceConnections/cli-pec-000006\",\r\n - \ \"etag\": \"W/\\\"30cd7be2-7eca-465a-8544-f6df168225d6\\\"\",\r\n + \ \"etag\": \"W/\\\"d4be3c13-6143-462a-89e5-1f033b154ca0\\\"\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"privateLinkServiceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002\",\r\n \ \"groupIds\": [\r\n \"namespace\"\r\n ],\r\n @@ -1014,7 +1030,7 @@ interactions: \ \"customNetworkInterfaceName\": \"\",\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\"\r\n \ },\r\n \"ipConfigurations\": [],\r\n \"networkInterfaces\": [\r\n - \ {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.Network/networkInterfaces/cli-pe-000005.nic.48a8bf9b-9ce8-4365-9670-15dcec35a291\"\r\n + \ {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.Network/networkInterfaces/cli-pe-000005.nic.9c0b00bc-88d3-40af-9200-c470690cc504\"\r\n \ }\r\n ],\r\n \"customDnsConfigs\": [\r\n {\r\n \"fqdn\": \"eventhubs-nscli000002.servicebus.windows.net\",\r\n \"ipAddresses\": [\r\n \"10.0.0.4\"\r\n ]\r\n }\r\n ]\r\n }\r\n}" @@ -1026,9 +1042,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 02 Feb 2023 17:28:40 GMT + - Tue, 04 Apr 2023 02:43:43 GMT etag: - - W/"30cd7be2-7eca-465a-8544-f6df168225d6" + - W/"d4be3c13-6143-462a-89e5-1f033b154ca0" expires: - '-1' pragma: @@ -1038,10 +1054,14 @@ interactions: - 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: - - 5daa38d4-e468-437c-b31b-505d5596c6c3 + - 9bb6a5c2-8825-442b-943c-45423df2329b status: code: 200 message: OK @@ -1059,23 +1079,23 @@ interactions: ParameterSetName: - -n -g User-Agent: - - AZURECLI/2.44.1 (AAZ) azsdk-python-core/1.24.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.47.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002?api-version=2022-01-01-preview response: body: string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002","name":"eventhubs-nscli000002","type":"Microsoft.EventHub/Namespaces","location":"East - US","tags":{"{tag1":"value1}"},"properties":{"minimumTlsVersion":"1.2","publicNetworkAccess":"Enabled","disableLocalAuth":false,"zoneRedundant":false,"privateEndpointConnections":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/privateEndpointConnections/024c5220-fe1b-4485-bc65-f0c5bfb6255b","name":"024c5220-fe1b-4485-bc65-f0c5bfb6255b","type":"Microsoft.EventHub/Namespaces/PrivateEndpointConnections","location":"East - US","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Auto-Approved"},"groupIds":["namespace"]}}],"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"326100e2-f69d-4268-8503-075374f62b6e:eventhubs-nscli000002","createdAt":"2023-02-02T17:26:04.327Z","updatedAt":"2023-02-02T17:26:51.447Z","serviceBusEndpoint":"https://eventhubs-nscli000002.servicebus.windows.net:443/","status":"Active"}}' + US","tags":{"{tag1":"value1}"},"properties":{"minimumTlsVersion":"1.2","publicNetworkAccess":"Enabled","disableLocalAuth":false,"zoneRedundant":false,"privateEndpointConnections":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/privateEndpointConnections/2d1c9191-9726-430e-ba8f-443331c9a528","name":"2d1c9191-9726-430e-ba8f-443331c9a528","type":"Microsoft.EventHub/Namespaces/PrivateEndpointConnections","location":"East + US","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Auto-Approved"},"groupIds":["namespace"]}}],"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"326100e2-f69d-4268-8503-075374f62b6e:eventhubs-nscli000002","createdAt":"2023-04-04T02:41:23.24Z","updatedAt":"2023-04-04T02:42:15.693Z","serviceBusEndpoint":"https://eventhubs-nscli000002.servicebus.windows.net:443/","status":"Active"}}' headers: cache-control: - no-cache content-length: - - '1546' + - '1545' content-type: - application/json; charset=utf-8 date: - - Thu, 02 Feb 2023 17:28:42 GMT + - Tue, 04 Apr 2023 02:43:45 GMT expires: - '-1' pragma: @@ -1110,12 +1130,62 @@ interactions: ParameterSetName: - --namespace-name -g --name User-Agent: - - AZURECLI/2.44.1 azsdk-python-azure-mgmt-eventhub/10.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.47.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/privateEndpointConnections/2d1c9191-9726-430e-ba8f-443331c9a528?api-version=2022-01-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/privateEndpointConnections/2d1c9191-9726-430e-ba8f-443331c9a528","name":"2d1c9191-9726-430e-ba8f-443331c9a528","type":"Microsoft.EventHub/Namespaces/PrivateEndpointConnections","location":"East + US","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Auto-Approved"},"groupIds":["namespace"]}}' + headers: + cache-control: + - no-cache + content-length: + - '699' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Apr 2023 02:43:47 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Service-Bus-Resource-Provider/CH3 + - Microsoft-HTTPAPI/2.0 + server-sb: + - Service-Bus-Resource-Provider/CH3 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - eventhubs namespace private-endpoint-connection approve + Connection: + - keep-alive + ParameterSetName: + - --namespace-name -g --name + User-Agent: + - AZURECLI/2.47.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/privateEndpointConnections/024c5220-fe1b-4485-bc65-f0c5bfb6255b?api-version=2022-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/privateEndpointConnections/2d1c9191-9726-430e-ba8f-443331c9a528?api-version=2022-01-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/privateEndpointConnections/024c5220-fe1b-4485-bc65-f0c5bfb6255b","name":"024c5220-fe1b-4485-bc65-f0c5bfb6255b","type":"Microsoft.EventHub/Namespaces/PrivateEndpointConnections","location":"East + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/privateEndpointConnections/2d1c9191-9726-430e-ba8f-443331c9a528","name":"2d1c9191-9726-430e-ba8f-443331c9a528","type":"Microsoft.EventHub/Namespaces/PrivateEndpointConnections","location":"East US","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Auto-Approved"},"groupIds":["namespace"]}}' headers: cache-control: @@ -1125,7 +1195,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 02 Feb 2023 17:28:42 GMT + - Tue, 04 Apr 2023 02:43:50 GMT expires: - '-1' pragma: @@ -1160,12 +1230,12 @@ interactions: ParameterSetName: - --namespace-name -g --name User-Agent: - - AZURECLI/2.44.1 azsdk-python-azure-mgmt-eventhub/10.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.47.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/privateEndpointConnections/024c5220-fe1b-4485-bc65-f0c5bfb6255b?api-version=2022-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/privateEndpointConnections/2d1c9191-9726-430e-ba8f-443331c9a528?api-version=2022-01-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/privateEndpointConnections/024c5220-fe1b-4485-bc65-f0c5bfb6255b","name":"024c5220-fe1b-4485-bc65-f0c5bfb6255b","type":"Microsoft.EventHub/Namespaces/PrivateEndpointConnections","location":"East + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/privateEndpointConnections/2d1c9191-9726-430e-ba8f-443331c9a528","name":"2d1c9191-9726-430e-ba8f-443331c9a528","type":"Microsoft.EventHub/Namespaces/PrivateEndpointConnections","location":"East US","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Auto-Approved"},"groupIds":["namespace"]}}' headers: cache-control: @@ -1175,7 +1245,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 02 Feb 2023 17:28:43 GMT + - Tue, 04 Apr 2023 02:43:51 GMT expires: - '-1' pragma: @@ -1210,12 +1280,12 @@ interactions: ParameterSetName: - --namespace-name -g --name User-Agent: - - AZURECLI/2.44.1 azsdk-python-azure-mgmt-eventhub/10.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.47.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/privateEndpointConnections/024c5220-fe1b-4485-bc65-f0c5bfb6255b?api-version=2022-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/privateEndpointConnections/2d1c9191-9726-430e-ba8f-443331c9a528?api-version=2022-01-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/privateEndpointConnections/024c5220-fe1b-4485-bc65-f0c5bfb6255b","name":"024c5220-fe1b-4485-bc65-f0c5bfb6255b","type":"Microsoft.EventHub/Namespaces/PrivateEndpointConnections","location":"East + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/privateEndpointConnections/2d1c9191-9726-430e-ba8f-443331c9a528","name":"2d1c9191-9726-430e-ba8f-443331c9a528","type":"Microsoft.EventHub/Namespaces/PrivateEndpointConnections","location":"East US","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Auto-Approved"},"groupIds":["namespace"]}}' headers: cache-control: @@ -1225,7 +1295,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 02 Feb 2023 17:28:43 GMT + - Tue, 04 Apr 2023 02:43:54 GMT expires: - '-1' pragma: @@ -1266,16 +1336,16 @@ interactions: ParameterSetName: - --namespace-name -g --name User-Agent: - - AZURECLI/2.44.1 azsdk-python-azure-mgmt-eventhub/10.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.47.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/privateEndpointConnections/024c5220-fe1b-4485-bc65-f0c5bfb6255b?api-version=2022-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/privateEndpointConnections/2d1c9191-9726-430e-ba8f-443331c9a528?api-version=2022-01-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/privateEndpointConnections/024c5220-fe1b-4485-bc65-f0c5bfb6255b","name":"024c5220-fe1b-4485-bc65-f0c5bfb6255b","type":"Microsoft.EventHub/Namespaces/PrivateEndpointConnections","location":"East + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/privateEndpointConnections/2d1c9191-9726-430e-ba8f-443331c9a528","name":"2d1c9191-9726-430e-ba8f-443331c9a528","type":"Microsoft.EventHub/Namespaces/PrivateEndpointConnections","location":"East US","properties":{"provisioningState":"Updating","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005"},"privateLinkServiceConnectionState":{"status":"Rejected","description":""},"groupIds":["namespace"]}}' headers: azure-asyncoperation: - - https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/privateEndpointConnections/024c5220-fe1b-4485-bc65-f0c5bfb6255b/operationStatus/024c5220-fe1b-4485-bc65-f0c5bfb6255b?api-version=2022-01-01-preview&operationType=Update + - https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/privateEndpointConnections/2d1c9191-9726-430e-ba8f-443331c9a528/operationStatus/2d1c9191-9726-430e-ba8f-443331c9a528?api-version=2022-01-01-preview&operationType=Update cache-control: - no-cache content-length: @@ -1283,7 +1353,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 02 Feb 2023 17:28:44 GMT + - Tue, 04 Apr 2023 02:43:55 GMT expires: - '-1' pragma: @@ -1316,12 +1386,12 @@ interactions: ParameterSetName: - --namespace-name -g --name User-Agent: - - AZURECLI/2.44.1 azsdk-python-azure-mgmt-eventhub/10.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.47.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/privateEndpointConnections/024c5220-fe1b-4485-bc65-f0c5bfb6255b?api-version=2022-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/privateEndpointConnections/2d1c9191-9726-430e-ba8f-443331c9a528?api-version=2022-01-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/privateEndpointConnections/024c5220-fe1b-4485-bc65-f0c5bfb6255b","name":"024c5220-fe1b-4485-bc65-f0c5bfb6255b","type":"Microsoft.EventHub/Namespaces/PrivateEndpointConnections","location":"East + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/privateEndpointConnections/2d1c9191-9726-430e-ba8f-443331c9a528","name":"2d1c9191-9726-430e-ba8f-443331c9a528","type":"Microsoft.EventHub/Namespaces/PrivateEndpointConnections","location":"East US","properties":{"provisioningState":"Updating","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005"},"privateLinkServiceConnectionState":{"status":"Rejected","description":""},"groupIds":["namespace"]}}' headers: cache-control: @@ -1331,16 +1401,16 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 02 Feb 2023 17:28:44 GMT + - Tue, 04 Apr 2023 02:43:57 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/SN1 + - Service-Bus-Resource-Provider/CH3 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/SN1 + - Service-Bus-Resource-Provider/CH3 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -1366,12 +1436,12 @@ interactions: ParameterSetName: - --namespace-name -g --name User-Agent: - - AZURECLI/2.44.1 azsdk-python-azure-mgmt-eventhub/10.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.47.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/privateEndpointConnections/024c5220-fe1b-4485-bc65-f0c5bfb6255b?api-version=2022-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/privateEndpointConnections/2d1c9191-9726-430e-ba8f-443331c9a528?api-version=2022-01-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/privateEndpointConnections/024c5220-fe1b-4485-bc65-f0c5bfb6255b","name":"024c5220-fe1b-4485-bc65-f0c5bfb6255b","type":"Microsoft.EventHub/Namespaces/PrivateEndpointConnections","location":"East + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/privateEndpointConnections/2d1c9191-9726-430e-ba8f-443331c9a528","name":"2d1c9191-9726-430e-ba8f-443331c9a528","type":"Microsoft.EventHub/Namespaces/PrivateEndpointConnections","location":"East US","properties":{"provisioningState":"Updating","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005"},"privateLinkServiceConnectionState":{"status":"Rejected","description":""},"groupIds":["namespace"]}}' headers: cache-control: @@ -1381,7 +1451,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 02 Feb 2023 17:29:15 GMT + - Tue, 04 Apr 2023 02:44:29 GMT expires: - '-1' pragma: @@ -1416,12 +1486,12 @@ interactions: ParameterSetName: - --namespace-name -g --name User-Agent: - - AZURECLI/2.44.1 azsdk-python-azure-mgmt-eventhub/10.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.47.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/privateEndpointConnections/024c5220-fe1b-4485-bc65-f0c5bfb6255b?api-version=2022-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/privateEndpointConnections/2d1c9191-9726-430e-ba8f-443331c9a528?api-version=2022-01-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/privateEndpointConnections/024c5220-fe1b-4485-bc65-f0c5bfb6255b","name":"024c5220-fe1b-4485-bc65-f0c5bfb6255b","type":"Microsoft.EventHub/Namespaces/PrivateEndpointConnections","location":"East + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/privateEndpointConnections/2d1c9191-9726-430e-ba8f-443331c9a528","name":"2d1c9191-9726-430e-ba8f-443331c9a528","type":"Microsoft.EventHub/Namespaces/PrivateEndpointConnections","location":"East US","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005"},"privateLinkServiceConnectionState":{"status":"Rejected","description":""},"groupIds":["namespace"]}}' headers: cache-control: @@ -1431,16 +1501,16 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 02 Feb 2023 17:29:46 GMT + - Tue, 04 Apr 2023 02:45:02 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/SN1 + - Service-Bus-Resource-Provider/CH3 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/SN1 + - Service-Bus-Resource-Provider/CH3 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -1456,7 +1526,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -1468,21 +1538,21 @@ interactions: ParameterSetName: - --id -y User-Agent: - - AZURECLI/2.44.1 azsdk-python-azure-mgmt-eventhub/10.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.47.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/privateEndpointConnections/024c5220-fe1b-4485-bc65-f0c5bfb6255b?api-version=2022-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/privateEndpointConnections/2d1c9191-9726-430e-ba8f-443331c9a528?api-version=2022-01-01-preview response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/privateEndpointConnections/024c5220-fe1b-4485-bc65-f0c5bfb6255b/operationStatus/024c5220-fe1b-4485-bc65-f0c5bfb6255b?api-version=2022-01-01-preview&operationType=Delete + - https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/privateEndpointConnections/2d1c9191-9726-430e-ba8f-443331c9a528/operationStatus/2d1c9191-9726-430e-ba8f-443331c9a528?api-version=2022-01-01-preview&operationType=Delete cache-control: - no-cache content-length: - '0' date: - - Thu, 02 Feb 2023 17:29:47 GMT + - Tue, 04 Apr 2023 02:45:07 GMT expires: - '-1' pragma: @@ -1515,12 +1585,12 @@ interactions: ParameterSetName: - --id -y User-Agent: - - AZURECLI/2.44.1 azsdk-python-azure-mgmt-eventhub/10.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.47.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/privateEndpointConnections/024c5220-fe1b-4485-bc65-f0c5bfb6255b/operationStatus/024c5220-fe1b-4485-bc65-f0c5bfb6255b?api-version=2022-01-01-preview&operationType=Delete + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/privateEndpointConnections/2d1c9191-9726-430e-ba8f-443331c9a528/operationStatus/2d1c9191-9726-430e-ba8f-443331c9a528?api-version=2022-01-01-preview&operationType=Delete response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/privateEndpointConnections/024c5220-fe1b-4485-bc65-f0c5bfb6255b/operationStatus/024c5220-fe1b-4485-bc65-f0c5bfb6255b/operationStatus/024c5220-fe1b-4485-bc65-f0c5bfb6255b","name":"024c5220-fe1b-4485-bc65-f0c5bfb6255b","status":"Succeeded","startTime":"0001-01-01T00:00:00Z","endTime":"0001-01-01T00:00:00Z"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_network000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/privateEndpointConnections/2d1c9191-9726-430e-ba8f-443331c9a528/operationStatus/2d1c9191-9726-430e-ba8f-443331c9a528/operationStatus/2d1c9191-9726-430e-ba8f-443331c9a528","name":"2d1c9191-9726-430e-ba8f-443331c9a528","status":"Succeeded","startTime":"0001-01-01T00:00:00Z","endTime":"0001-01-01T00:00:00Z"}' headers: cache-control: - no-cache @@ -1529,7 +1599,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 02 Feb 2023 17:30:17 GMT + - Tue, 04 Apr 2023 02:45:38 GMT expires: - '-1' pragma: diff --git a/src/azure-cli/azure/cli/command_modules/eventhubs/tests/latest/test_eventhub_commands_consumergroup_test.py b/src/azure-cli/azure/cli/command_modules/eventhubs/tests/latest/test_eventhub_commands_consumergroup_test.py index 49305a8a386..6fdef2009f5 100644 --- a/src/azure-cli/azure/cli/command_modules/eventhubs/tests/latest/test_eventhub_commands_consumergroup_test.py +++ b/src/azure-cli/azure/cli/command_modules/eventhubs/tests/latest/test_eventhub_commands_consumergroup_test.py @@ -66,4 +66,4 @@ def test_eh_consumergroup(self, resource_group): self.cmd('eventhubs eventhub delete --resource-group {rg} --namespace-name {namespacename} --name {eventhubname}') # Delete Namespace - self.cmd('eventhubs namespace delete --resource-group {rg} --name {namespacename}') + self.cmd('eventhubs namespace delete --resource-group {rg} --name {namespacename}') \ No newline at end of file