diff --git a/src/confluent/HISTORY.rst b/src/confluent/HISTORY.rst index 0431aa96838..ce17ef934b2 100644 --- a/src/confluent/HISTORY.rst +++ b/src/confluent/HISTORY.rst @@ -2,6 +2,10 @@ Release History =============== +1.0.0 ++++++ +* Updated CLI command descriptions to be more user and support az mcp commands. + 0.6.0 +++++ * Added more commands for user access management diff --git a/src/confluent/azext_confluent/aaz/latest/confluent/organization/__cmd_group.py b/src/confluent/azext_confluent/aaz/latest/confluent/organization/__cmd_group.py index 069f57f751e..25f422eb0f8 100644 --- a/src/confluent/azext_confluent/aaz/latest/confluent/organization/__cmd_group.py +++ b/src/confluent/azext_confluent/aaz/latest/confluent/organization/__cmd_group.py @@ -15,7 +15,7 @@ "confluent organization", ) class __CMDGroup(AAZCommandGroup): - """Commands to perform actions on a confluent organization + """Perform administrative operations on Confluent organization entities via Azure. """ pass diff --git a/src/confluent/azext_confluent/aaz/latest/confluent/organization/__init__.py b/src/confluent/azext_confluent/aaz/latest/confluent/organization/__init__.py index 4f5635a4e7b..814a032383d 100644 --- a/src/confluent/azext_confluent/aaz/latest/confluent/organization/__init__.py +++ b/src/confluent/azext_confluent/aaz/latest/confluent/organization/__init__.py @@ -14,6 +14,7 @@ from ._create_user import * from ._delete import * from ._list import * +from ._list_region import * from ._list_role_binding import * from ._list_service_accounts import * from ._list_users import * diff --git a/src/confluent/azext_confluent/aaz/latest/confluent/organization/_create.py b/src/confluent/azext_confluent/aaz/latest/confluent/organization/_create.py index eb74f5bc774..95598c43f50 100644 --- a/src/confluent/azext_confluent/aaz/latest/confluent/organization/_create.py +++ b/src/confluent/azext_confluent/aaz/latest/confluent/organization/_create.py @@ -15,7 +15,7 @@ "confluent organization create", ) class Create(AAZCommand): - """Create Organization resource + """Create a new Confluent organization entity through Azure integration. """ _aaz_info = { @@ -48,8 +48,6 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, ) _args_schema.resource_group = AAZResourceGroupNameArg( - options=["--resource-group"], - help="Resource Group Name", required=True, ) @@ -176,7 +174,7 @@ def _build_arguments_schema(cls, *args, **kwargs): help="Email address", required=True, fmt=AAZStrArgFormat( - pattern="^\S+@\S+\.\S+$", + pattern="^\\S+@\\S+\\.\\S+$", ), ) user_detail.first_name = AAZStrArg( @@ -401,6 +399,7 @@ def _build_schema_on_200_201(cls): ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", + flags={"read_only": True}, ) properties.sso_url = AAZStrType( serialized_name="ssoUrl", diff --git a/src/confluent/azext_confluent/aaz/latest/confluent/organization/_create_role_binding.py b/src/confluent/azext_confluent/aaz/latest/confluent/organization/_create_role_binding.py index 5e838260ef2..ded32b55416 100644 --- a/src/confluent/azext_confluent/aaz/latest/confluent/organization/_create_role_binding.py +++ b/src/confluent/azext_confluent/aaz/latest/confluent/organization/_create_role_binding.py @@ -15,7 +15,7 @@ "confluent organization create-role-binding", ) class CreateRoleBinding(AAZCommand): - """Organization role bindings + """Assign roles to users or groups within a Confluent organization. """ _aaz_info = { @@ -48,8 +48,6 @@ def _build_arguments_schema(cls, *args, **kwargs): id_part="name", ) _args_schema.resource_group = AAZResourceGroupNameArg( - options=["--resource-group"], - help="Resource group name", required=True, ) diff --git a/src/confluent/azext_confluent/aaz/latest/confluent/organization/_create_user.py b/src/confluent/azext_confluent/aaz/latest/confluent/organization/_create_user.py index d1a4c6c52bf..01d2c922cc8 100644 --- a/src/confluent/azext_confluent/aaz/latest/confluent/organization/_create_user.py +++ b/src/confluent/azext_confluent/aaz/latest/confluent/organization/_create_user.py @@ -15,7 +15,7 @@ "confluent organization create-user", ) class CreateUser(AAZCommand): - """Invite user to the organization + """Invite a new user to join the Confluent organization. """ _aaz_info = { diff --git a/src/confluent/azext_confluent/aaz/latest/confluent/organization/_delete.py b/src/confluent/azext_confluent/aaz/latest/confluent/organization/_delete.py index 08df3c97fab..10ba73ca83a 100644 --- a/src/confluent/azext_confluent/aaz/latest/confluent/organization/_delete.py +++ b/src/confluent/azext_confluent/aaz/latest/confluent/organization/_delete.py @@ -16,7 +16,7 @@ confirmation="Are you sure you want to perform this operation?", ) class Delete(AAZCommand): - """Delete Organization resource + """Delete an existing Confluent organization entity via Azure. """ _aaz_info = { @@ -50,8 +50,6 @@ def _build_arguments_schema(cls, *args, **kwargs): id_part="name", ) _args_schema.resource_group = AAZResourceGroupNameArg( - options=["--resource-group"], - help="Resource Group Name", required=True, ) return cls._args_schema diff --git a/src/confluent/azext_confluent/aaz/latest/confluent/organization/_list.py b/src/confluent/azext_confluent/aaz/latest/confluent/organization/_list.py index 9717c583756..baa2bef4058 100644 --- a/src/confluent/azext_confluent/aaz/latest/confluent/organization/_list.py +++ b/src/confluent/azext_confluent/aaz/latest/confluent/organization/_list.py @@ -15,7 +15,7 @@ "confluent organization list", ) class List(AAZCommand): - """List all organizations under the specified subscription. + """List all Confluent organizations under the specified resource group or subscription. """ _aaz_info = { @@ -43,20 +43,17 @@ def _build_arguments_schema(cls, *args, **kwargs): # define Arg Group "" _args_schema = cls._args_schema - _args_schema.resource_group = AAZResourceGroupNameArg( - options=["--resource-group"], - help="Resource Group Name", - ) + _args_schema.resource_group = AAZResourceGroupNameArg() return cls._args_schema def _execute_operations(self): self.pre_operations() - condition_0 = has_value(self.ctx.args.resource_group) and has_value(self.ctx.subscription_id) - condition_1 = has_value(self.ctx.subscription_id) and has_value(self.ctx.args.resource_group) is not True + condition_0 = has_value(self.ctx.subscription_id) and has_value(self.ctx.args.resource_group) is not True + condition_1 = has_value(self.ctx.args.resource_group) and has_value(self.ctx.subscription_id) if condition_0: - self.OrganizationListByResourceGroup(ctx=self.ctx)() - if condition_1: self.OrganizationListBySubscription(ctx=self.ctx)() + if condition_1: + self.OrganizationListByResourceGroup(ctx=self.ctx)() self.post_operations() @register_callback @@ -72,7 +69,7 @@ def _output(self, *args, **kwargs): next_link = self.deserialize_output(self.ctx.vars.instance.next_link) return result, next_link - class OrganizationListByResourceGroup(AAZHttpOperation): + class OrganizationListBySubscription(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): @@ -86,7 +83,7 @@ def __call__(self, *args, **kwargs): @property def url(self): return self.client.format_url( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations", + "/subscriptions/{subscriptionId}/providers/Microsoft.Confluent/organizations", **self.url_parameters ) @@ -101,10 +98,6 @@ def error_format(self): @property def url_parameters(self): parameters = { - **self.serialize_url_param( - "resourceGroupName", self.ctx.args.resource_group, - required=True, - ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, @@ -192,6 +185,7 @@ def _build_schema_on_200(cls): ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", + flags={"read_only": True}, ) properties.sso_url = AAZStrType( serialized_name="ssoUrl", @@ -279,7 +273,7 @@ def _build_schema_on_200(cls): return cls._schema_on_200 - class OrganizationListBySubscription(AAZHttpOperation): + class OrganizationListByResourceGroup(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): @@ -293,7 +287,7 @@ def __call__(self, *args, **kwargs): @property def url(self): return self.client.format_url( - "/subscriptions/{subscriptionId}/providers/Microsoft.Confluent/organizations", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations", **self.url_parameters ) @@ -308,6 +302,10 @@ def error_format(self): @property def url_parameters(self): parameters = { + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, @@ -395,6 +393,7 @@ def _build_schema_on_200(cls): ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", + flags={"read_only": True}, ) properties.sso_url = AAZStrType( serialized_name="ssoUrl", diff --git a/src/confluent/azext_confluent/aaz/latest/confluent/organization/_list_region.py b/src/confluent/azext_confluent/aaz/latest/confluent/organization/_list_region.py new file mode 100644 index 00000000000..ab2b852d5f0 --- /dev/null +++ b/src/confluent/azext_confluent/aaz/latest/confluent/organization/_list_region.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( + "confluent organization list-region", +) +class ListRegion(AAZCommand): + """List all the supported regions within a Confluent organization. + """ + + _aaz_info = { + "version": "2024-02-13", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.confluent/organizations/{}/listregions", "2024-02-13"], + ] + } + + 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.organization_name = AAZStrArg( + options=["--organization-name"], + help="Organization resource name", + required=True, + id_part="name", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + + # define Arg Group "Body" + + _args_schema = cls._args_schema + _args_schema.search_filters = AAZDictArg( + options=["--search-filters"], + arg_group="Body", + help="Search filters for the request", + ) + + search_filters = cls._args_schema.search_filters + search_filters.Element = AAZStrArg() + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.OrganizationListRegions(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 OrganizationListRegions(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.Confluent/organizations/{organizationName}/listRegions", + **self.url_parameters + ) + + @property + def method(self): + return "POST" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "organizationName", self.ctx.args.organization_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", "2024-02-13", + 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("searchFilters", AAZDictType, ".search_filters") + + search_filters = _builder.get(".searchFilters") + if search_filters is not None: + search_filters.set_elements(AAZStrType, ".") + + return self.serialize_content(_content_value) + + 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.data = AAZListType() + + data = cls._schema_on_200.data + data.Element = AAZObjectType() + + _element = cls._schema_on_200.data.Element + _element.id = AAZStrType() + _element.kind = AAZStrType() + _element.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + + properties = cls._schema_on_200.data.Element.properties + properties.metadata = AAZObjectType() + properties.spec = AAZObjectType() + + metadata = cls._schema_on_200.data.Element.properties.metadata + metadata.created_timestamp = AAZStrType( + serialized_name="createdTimestamp", + ) + metadata.deleted_timestamp = AAZStrType( + serialized_name="deletedTimestamp", + ) + metadata.resource_name = AAZStrType( + serialized_name="resourceName", + ) + metadata.self = AAZStrType() + metadata.updated_timestamp = AAZStrType( + serialized_name="updatedTimestamp", + ) + + spec = cls._schema_on_200.data.Element.properties.spec + spec.cloud = AAZStrType() + spec.name = AAZStrType() + spec.packages = AAZListType() + spec.region_name = AAZStrType( + serialized_name="regionName", + ) + + packages = cls._schema_on_200.data.Element.properties.spec.packages + packages.Element = AAZStrType() + + return cls._schema_on_200 + + +class _ListRegionHelper: + """Helper class for ListRegion""" + + +__all__ = ["ListRegion"] diff --git a/src/confluent/azext_confluent/aaz/latest/confluent/organization/_list_role_binding.py b/src/confluent/azext_confluent/aaz/latest/confluent/organization/_list_role_binding.py index 42f899a0aaf..d34aa819174 100644 --- a/src/confluent/azext_confluent/aaz/latest/confluent/organization/_list_role_binding.py +++ b/src/confluent/azext_confluent/aaz/latest/confluent/organization/_list_role_binding.py @@ -15,7 +15,7 @@ "confluent organization list-role-binding", ) class ListRoleBinding(AAZCommand): - """Organization role bindings + """List all the role bindings within a Confluent organization. """ _aaz_info = { @@ -48,8 +48,6 @@ def _build_arguments_schema(cls, *args, **kwargs): id_part="name", ) _args_schema.resource_group = AAZResourceGroupNameArg( - options=["--resource-group"], - help="Resource group name", required=True, ) diff --git a/src/confluent/azext_confluent/aaz/latest/confluent/organization/_list_service_accounts.py b/src/confluent/azext_confluent/aaz/latest/confluent/organization/_list_service_accounts.py index 6b92ed59492..a85047e4d4b 100644 --- a/src/confluent/azext_confluent/aaz/latest/confluent/organization/_list_service_accounts.py +++ b/src/confluent/azext_confluent/aaz/latest/confluent/organization/_list_service_accounts.py @@ -15,7 +15,7 @@ "confluent organization list-service-accounts", ) class ListServiceAccounts(AAZCommand): - """Organization service accounts details + """List all the details of service accounts within a Confluent organization. """ _aaz_info = { @@ -48,8 +48,6 @@ def _build_arguments_schema(cls, *args, **kwargs): id_part="name", ) _args_schema.resource_group = AAZResourceGroupNameArg( - options=["--resource-group"], - help="Resource group name", required=True, ) diff --git a/src/confluent/azext_confluent/aaz/latest/confluent/organization/_list_users.py b/src/confluent/azext_confluent/aaz/latest/confluent/organization/_list_users.py index 2a1d4856bfe..3174cc60112 100644 --- a/src/confluent/azext_confluent/aaz/latest/confluent/organization/_list_users.py +++ b/src/confluent/azext_confluent/aaz/latest/confluent/organization/_list_users.py @@ -15,7 +15,7 @@ "confluent organization list-users", ) class ListUsers(AAZCommand): - """Organization users details + """List all the details of users within a Confluent organization. """ _aaz_info = { @@ -48,8 +48,6 @@ def _build_arguments_schema(cls, *args, **kwargs): id_part="name", ) _args_schema.resource_group = AAZResourceGroupNameArg( - options=["--resource-group"], - help="Resource group name", required=True, ) diff --git a/src/confluent/azext_confluent/aaz/latest/confluent/organization/_show.py b/src/confluent/azext_confluent/aaz/latest/confluent/organization/_show.py index f7885efb1a5..0a1ad28e217 100644 --- a/src/confluent/azext_confluent/aaz/latest/confluent/organization/_show.py +++ b/src/confluent/azext_confluent/aaz/latest/confluent/organization/_show.py @@ -15,7 +15,7 @@ "confluent organization show", ) class Show(AAZCommand): - """Get the properties of a specific Organization resource. + """Retrieve properties of a specific Confluent organization resource. """ _aaz_info = { @@ -48,8 +48,6 @@ def _build_arguments_schema(cls, *args, **kwargs): id_part="name", ) _args_schema.resource_group = AAZResourceGroupNameArg( - options=["--resource-group"], - help="Resource Group Name", required=True, ) return cls._args_schema @@ -186,6 +184,7 @@ def _build_schema_on_200(cls): ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", + flags={"read_only": True}, ) properties.sso_url = AAZStrType( serialized_name="ssoUrl", diff --git a/src/confluent/azext_confluent/aaz/latest/confluent/organization/_update.py b/src/confluent/azext_confluent/aaz/latest/confluent/organization/_update.py index 06fc1ae9656..f184a43d5b3 100644 --- a/src/confluent/azext_confluent/aaz/latest/confluent/organization/_update.py +++ b/src/confluent/azext_confluent/aaz/latest/confluent/organization/_update.py @@ -15,7 +15,7 @@ "confluent organization update", ) class Update(AAZCommand): - """Update Organization resource + """Update properties of an existing Confluent organization resource. """ _aaz_info = { @@ -51,8 +51,6 @@ def _build_arguments_schema(cls, *args, **kwargs): id_part="name", ) _args_schema.resource_group = AAZResourceGroupNameArg( - options=["--resource-group"], - help="Resource Group Name", required=True, ) @@ -63,9 +61,6 @@ def _build_arguments_schema(cls, *args, **kwargs): arg_group="Body", help="Location of Organization resource", nullable=True, - fmt=AAZResourceLocationArgFormat( - resource_group_arg="resource_group", - ), ) _args_schema.tags = AAZDictArg( options=["--tags"], @@ -172,7 +167,7 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["email-address"], help="Email address", fmt=AAZStrArgFormat( - pattern="^\S+@\S+\.\S+$", + pattern="^\\S+@\\S+\\.\\S+$", ), ) user_detail.first_name = AAZStrArg( @@ -535,6 +530,7 @@ def _build_schema_organization_resource_read(cls, _schema): ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", + flags={"read_only": True}, ) properties.sso_url = AAZStrType( serialized_name="ssoUrl", diff --git a/src/confluent/azext_confluent/aaz/latest/confluent/organization/_wait.py b/src/confluent/azext_confluent/aaz/latest/confluent/organization/_wait.py index c8eb3668f88..c4d42e86612 100644 --- a/src/confluent/azext_confluent/aaz/latest/confluent/organization/_wait.py +++ b/src/confluent/azext_confluent/aaz/latest/confluent/organization/_wait.py @@ -47,8 +47,6 @@ def _build_arguments_schema(cls, *args, **kwargs): id_part="name", ) _args_schema.resource_group = AAZResourceGroupNameArg( - options=["--resource-group"], - help="Resource Group Name", required=True, ) return cls._args_schema @@ -185,6 +183,7 @@ def _build_schema_on_200(cls): ) properties.provisioning_state = AAZStrType( serialized_name="provisioningState", + flags={"read_only": True}, ) properties.sso_url = AAZStrType( serialized_name="ssoUrl", diff --git a/src/confluent/azext_confluent/aaz/latest/confluent/organization/access/__cmd_group.py b/src/confluent/azext_confluent/aaz/latest/confluent/organization/access/__cmd_group.py new file mode 100644 index 00000000000..06e544367c8 --- /dev/null +++ b/src/confluent/azext_confluent/aaz/latest/confluent/organization/access/__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( + "confluent organization access", +) +class __CMDGroup(AAZCommandGroup): + """Manage Access for List Cluster, Environment, Invitation, Role Binding Names with in the Confluent organization. + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/confluent/azext_confluent/aaz/latest/confluent/organization/access/__init__.py b/src/confluent/azext_confluent/aaz/latest/confluent/organization/access/__init__.py new file mode 100644 index 00000000000..5a9d61963d6 --- /dev/null +++ b/src/confluent/azext_confluent/aaz/latest/confluent/organization/access/__init__.py @@ -0,0 +1,11 @@ +# -------------------------------------------------------------------------------------------- +# 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 * diff --git a/src/confluent/azext_confluent/aaz/latest/confluent/organization/access/default/__cmd_group.py b/src/confluent/azext_confluent/aaz/latest/confluent/organization/access/default/__cmd_group.py new file mode 100644 index 00000000000..785605273b3 --- /dev/null +++ b/src/confluent/azext_confluent/aaz/latest/confluent/organization/access/default/__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( + "confluent organization access default", +) +class __CMDGroup(AAZCommandGroup): + """Manage Default + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/confluent/azext_confluent/aaz/latest/confluent/organization/access/default/__init__.py b/src/confluent/azext_confluent/aaz/latest/confluent/organization/access/default/__init__.py new file mode 100644 index 00000000000..34b1247c968 --- /dev/null +++ b/src/confluent/azext_confluent/aaz/latest/confluent/organization/access/default/__init__.py @@ -0,0 +1,15 @@ +# -------------------------------------------------------------------------------------------- +# 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 ._list_cluster import * +from ._list_environment import * +from ._list_invitation import * +from ._list_role_binding_name_list import * diff --git a/src/confluent/azext_confluent/aaz/latest/confluent/organization/access/default/_list_cluster.py b/src/confluent/azext_confluent/aaz/latest/confluent/organization/access/default/_list_cluster.py new file mode 100644 index 00000000000..e87b9f2d2a0 --- /dev/null +++ b/src/confluent/azext_confluent/aaz/latest/confluent/organization/access/default/_list_cluster.py @@ -0,0 +1,257 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "confluent organization access default list-cluster", +) +class ListCluster(AAZCommand): + """List all Confluent cluster within an environment in an organization + """ + + _aaz_info = { + "version": "2024-02-13", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.confluent/organizations/{}/access/default/listclusters", "2024-02-13"], + ] + } + + 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.organization_name = AAZStrArg( + options=["--organization-name"], + help="Organization resource name", + required=True, + id_part="name", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + + # define Arg Group "Body" + + _args_schema = cls._args_schema + _args_schema.search_filters = AAZDictArg( + options=["--search-filters"], + arg_group="Body", + help="Search filters for the request", + ) + + search_filters = cls._args_schema.search_filters + search_filters.Element = AAZStrArg() + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.AccessListClusters(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 AccessListClusters(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.Confluent/organizations/{organizationName}/access/default/listClusters", + **self.url_parameters + ) + + @property + def method(self): + return "POST" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "organizationName", self.ctx.args.organization_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", "2024-02-13", + 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("searchFilters", AAZDictType, ".search_filters") + + search_filters = _builder.get(".searchFilters") + if search_filters is not None: + search_filters.set_elements(AAZStrType, ".") + + return self.serialize_content(_content_value) + + 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.data = AAZListType() + _schema_on_200.kind = AAZStrType() + _schema_on_200.metadata = AAZObjectType() + + data = cls._schema_on_200.data + data.Element = AAZObjectType() + + _element = cls._schema_on_200.data.Element + _element.display_name = AAZStrType() + _element.id = AAZStrType() + _element.kind = AAZStrType() + _element.metadata = AAZObjectType() + _element.spec = AAZObjectType() + _element.status = AAZObjectType() + + metadata = cls._schema_on_200.data.Element.metadata + metadata.created_at = AAZStrType() + metadata.deleted_at = AAZStrType() + metadata.resource_name = AAZStrType() + metadata.self = AAZStrType() + metadata.updated_at = AAZStrType() + + spec = cls._schema_on_200.data.Element.spec + spec.api_endpoint = AAZStrType() + spec.availability = AAZStrType() + spec.byok = AAZObjectType() + spec.cloud = AAZStrType() + spec.config = AAZObjectType() + spec.display_name = AAZStrType() + spec.environment = AAZObjectType() + spec.http_endpoint = AAZStrType() + spec.kafka_bootstrap_endpoint = AAZStrType() + spec.network = AAZObjectType() + spec.region = AAZStrType() + spec.zone = AAZStrType() + + byok = cls._schema_on_200.data.Element.spec.byok + byok.id = AAZStrType() + byok.related = AAZStrType() + byok.resource_name = AAZStrType() + + config = cls._schema_on_200.data.Element.spec.config + config.kind = AAZStrType() + + environment = cls._schema_on_200.data.Element.spec.environment + environment.environment = AAZStrType() + environment.id = AAZStrType() + environment.related = AAZStrType() + environment.resource_name = AAZStrType() + + network = cls._schema_on_200.data.Element.spec.network + network.environment = AAZStrType() + network.id = AAZStrType() + network.related = AAZStrType() + network.resource_name = AAZStrType() + + status = cls._schema_on_200.data.Element.status + status.cku = AAZIntType() + status.phase = AAZStrType() + + metadata = cls._schema_on_200.metadata + metadata.first = AAZStrType() + metadata.last = AAZStrType() + metadata.next = AAZStrType() + metadata.prev = AAZStrType() + metadata.total_size = AAZIntType() + + return cls._schema_on_200 + + +class _ListClusterHelper: + """Helper class for ListCluster""" + + +__all__ = ["ListCluster"] diff --git a/src/confluent/azext_confluent/aaz/latest/confluent/organization/access/default/_list_environment.py b/src/confluent/azext_confluent/aaz/latest/confluent/organization/access/default/_list_environment.py new file mode 100644 index 00000000000..a1ad35affa1 --- /dev/null +++ b/src/confluent/azext_confluent/aaz/latest/confluent/organization/access/default/_list_environment.py @@ -0,0 +1,217 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "confluent organization access default list-environment", +) +class ListEnvironment(AAZCommand): + """List all Confluent environment in an organization. + """ + + _aaz_info = { + "version": "2024-02-13", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.confluent/organizations/{}/access/default/listenvironments", "2024-02-13"], + ] + } + + 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.organization_name = AAZStrArg( + options=["--organization-name"], + help="Organization resource name", + required=True, + id_part="name", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + + # define Arg Group "Body" + + _args_schema = cls._args_schema + _args_schema.search_filters = AAZDictArg( + options=["--search-filters"], + arg_group="Body", + help="Search filters for the request", + ) + + search_filters = cls._args_schema.search_filters + search_filters.Element = AAZStrArg() + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.AccessListEnvironments(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 AccessListEnvironments(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.Confluent/organizations/{organizationName}/access/default/listEnvironments", + **self.url_parameters + ) + + @property + def method(self): + return "POST" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "organizationName", self.ctx.args.organization_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", "2024-02-13", + 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("searchFilters", AAZDictType, ".search_filters") + + search_filters = _builder.get(".searchFilters") + if search_filters is not None: + search_filters.set_elements(AAZStrType, ".") + + return self.serialize_content(_content_value) + + 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.data = AAZListType() + _schema_on_200.kind = AAZStrType() + _schema_on_200.metadata = AAZObjectType() + + data = cls._schema_on_200.data + data.Element = AAZObjectType() + + _element = cls._schema_on_200.data.Element + _element.display_name = AAZStrType() + _element.id = AAZStrType() + _element.kind = AAZStrType() + _element.metadata = AAZObjectType() + + metadata = cls._schema_on_200.data.Element.metadata + metadata.created_at = AAZStrType() + metadata.deleted_at = AAZStrType() + metadata.resource_name = AAZStrType() + metadata.self = AAZStrType() + metadata.updated_at = AAZStrType() + + metadata = cls._schema_on_200.metadata + metadata.first = AAZStrType() + metadata.last = AAZStrType() + metadata.next = AAZStrType() + metadata.prev = AAZStrType() + metadata.total_size = AAZIntType() + + return cls._schema_on_200 + + +class _ListEnvironmentHelper: + """Helper class for ListEnvironment""" + + +__all__ = ["ListEnvironment"] diff --git a/src/confluent/azext_confluent/aaz/latest/confluent/organization/access/default/_list_invitation.py b/src/confluent/azext_confluent/aaz/latest/confluent/organization/access/default/_list_invitation.py new file mode 100644 index 00000000000..24c86404747 --- /dev/null +++ b/src/confluent/azext_confluent/aaz/latest/confluent/organization/access/default/_list_invitation.py @@ -0,0 +1,221 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "confluent organization access default list-invitation", +) +class ListInvitation(AAZCommand): + """List all Confluent invitation in an organization. + """ + + _aaz_info = { + "version": "2024-02-13", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.confluent/organizations/{}/access/default/listinvitations", "2024-02-13"], + ] + } + + 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.organization_name = AAZStrArg( + options=["--organization-name"], + help="Organization resource name", + required=True, + id_part="name", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + + # define Arg Group "Body" + + _args_schema = cls._args_schema + _args_schema.search_filters = AAZDictArg( + options=["--search-filters"], + arg_group="Body", + help="Search filters for the request", + ) + + search_filters = cls._args_schema.search_filters + search_filters.Element = AAZStrArg() + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.AccessListInvitations(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 AccessListInvitations(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.Confluent/organizations/{organizationName}/access/default/listInvitations", + **self.url_parameters + ) + + @property + def method(self): + return "POST" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "organizationName", self.ctx.args.organization_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", "2024-02-13", + 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("searchFilters", AAZDictType, ".search_filters") + + search_filters = _builder.get(".searchFilters") + if search_filters is not None: + search_filters.set_elements(AAZStrType, ".") + + return self.serialize_content(_content_value) + + 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.data = AAZListType() + _schema_on_200.kind = AAZStrType() + _schema_on_200.metadata = AAZObjectType() + + data = cls._schema_on_200.data + data.Element = AAZObjectType() + + _element = cls._schema_on_200.data.Element + _element.accepted_at = AAZStrType() + _element.auth_type = AAZStrType() + _element.email = AAZStrType() + _element.expires_at = AAZStrType() + _element.id = AAZStrType() + _element.kind = AAZStrType() + _element.metadata = AAZObjectType() + _element.status = AAZStrType() + + metadata = cls._schema_on_200.data.Element.metadata + metadata.created_at = AAZStrType() + metadata.deleted_at = AAZStrType() + metadata.resource_name = AAZStrType() + metadata.self = AAZStrType() + metadata.updated_at = AAZStrType() + + metadata = cls._schema_on_200.metadata + metadata.first = AAZStrType() + metadata.last = AAZStrType() + metadata.next = AAZStrType() + metadata.prev = AAZStrType() + metadata.total_size = AAZIntType() + + return cls._schema_on_200 + + +class _ListInvitationHelper: + """Helper class for ListInvitation""" + + +__all__ = ["ListInvitation"] diff --git a/src/confluent/azext_confluent/aaz/latest/confluent/organization/access/default/_list_role_binding_name_list.py b/src/confluent/azext_confluent/aaz/latest/confluent/organization/access/default/_list_role_binding_name_list.py new file mode 100644 index 00000000000..af5baf70222 --- /dev/null +++ b/src/confluent/azext_confluent/aaz/latest/confluent/organization/access/default/_list_role_binding_name_list.py @@ -0,0 +1,204 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "confluent organization access default list-role-binding-name-list", +) +class ListRoleBindingNameList(AAZCommand): + """List all Confluent role bindings names in an organization. + """ + + _aaz_info = { + "version": "2024-02-13", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.confluent/organizations/{}/access/default/listrolebindingnamelist", "2024-02-13"], + ] + } + + 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.organization_name = AAZStrArg( + options=["--organization-name"], + help="Organization resource name", + required=True, + id_part="name", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + + # define Arg Group "Body" + + _args_schema = cls._args_schema + _args_schema.search_filters = AAZDictArg( + options=["--search-filters"], + arg_group="Body", + help="Search filters for the request", + ) + + search_filters = cls._args_schema.search_filters + search_filters.Element = AAZStrArg() + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.AccessListRoleBindingNameList(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 AccessListRoleBindingNameList(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.Confluent/organizations/{organizationName}/access/default/listRoleBindingNameList", + **self.url_parameters + ) + + @property + def method(self): + return "POST" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "organizationName", self.ctx.args.organization_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", "2024-02-13", + 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("searchFilters", AAZDictType, ".search_filters") + + search_filters = _builder.get(".searchFilters") + if search_filters is not None: + search_filters.set_elements(AAZStrType, ".") + + return self.serialize_content(_content_value) + + 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.data = AAZListType() + _schema_on_200.kind = AAZStrType() + _schema_on_200.metadata = AAZObjectType() + + data = cls._schema_on_200.data + data.Element = AAZStrType() + + metadata = cls._schema_on_200.metadata + metadata.first = AAZStrType() + metadata.last = AAZStrType() + metadata.next = AAZStrType() + metadata.prev = AAZStrType() + metadata.total_size = AAZIntType() + + return cls._schema_on_200 + + +class _ListRoleBindingNameListHelper: + """Helper class for ListRoleBindingNameList""" + + +__all__ = ["ListRoleBindingNameList"] diff --git a/src/confluent/azext_confluent/aaz/latest/confluent/organization/api_key/__cmd_group.py b/src/confluent/azext_confluent/aaz/latest/confluent/organization/api_key/__cmd_group.py index e921451c3bb..ec760ddcf04 100644 --- a/src/confluent/azext_confluent/aaz/latest/confluent/organization/api_key/__cmd_group.py +++ b/src/confluent/azext_confluent/aaz/latest/confluent/organization/api_key/__cmd_group.py @@ -15,7 +15,7 @@ "confluent organization api-key", ) class __CMDGroup(AAZCommandGroup): - """Manage cluster api key + """Manage API keys for Kafka or Schema Registry clusters in Confluent. """ pass diff --git a/src/confluent/azext_confluent/aaz/latest/confluent/organization/api_key/__init__.py b/src/confluent/azext_confluent/aaz/latest/confluent/organization/api_key/__init__.py index af9cedd3228..4aef6adc020 100644 --- a/src/confluent/azext_confluent/aaz/latest/confluent/organization/api_key/__init__.py +++ b/src/confluent/azext_confluent/aaz/latest/confluent/organization/api_key/__init__.py @@ -10,3 +10,4 @@ from .__cmd_group import * from ._delete import * +from ._show import * diff --git a/src/confluent/azext_confluent/aaz/latest/confluent/organization/api_key/_delete.py b/src/confluent/azext_confluent/aaz/latest/confluent/organization/api_key/_delete.py index 28261095ad2..85ac1fa5c4b 100644 --- a/src/confluent/azext_confluent/aaz/latest/confluent/organization/api_key/_delete.py +++ b/src/confluent/azext_confluent/aaz/latest/confluent/organization/api_key/_delete.py @@ -16,7 +16,7 @@ confirmation="Are you sure you want to perform this operation?", ) class Delete(AAZCommand): - """Delete API key of a kafka or schema registry cluster + """Remove an API key from a Kafka or Schema Registry cluster in Confluent. """ _aaz_info = { @@ -55,8 +55,6 @@ def _build_arguments_schema(cls, *args, **kwargs): id_part="name", ) _args_schema.resource_group = AAZResourceGroupNameArg( - options=["--resource-group"], - help="Resource group name", required=True, ) return cls._args_schema diff --git a/src/confluent/azext_confluent/aaz/latest/confluent/organization/api_key/_show.py b/src/confluent/azext_confluent/aaz/latest/confluent/organization/api_key/_show.py new file mode 100644 index 00000000000..c21b99dfd8e --- /dev/null +++ b/src/confluent/azext_confluent/aaz/latest/confluent/organization/api_key/_show.py @@ -0,0 +1,218 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "confluent organization api-key show", +) +class Show(AAZCommand): + """Show a API key from a Kafka or Schema Registry cluster in Confluent. + """ + + _aaz_info = { + "version": "2024-02-13", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.confluent/organizations/{}/apikeys/{}", "2024-02-13"], + ] + } + + 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.api_key_id = AAZStrArg( + options=["--api-key-id"], + help="Confluent API Key id", + required=True, + id_part="child_name_1", + ) + _args_schema.organization_name = AAZStrArg( + options=["--organization-name"], + help="Organization resource name", + required=True, + id_part="name", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.OrganizationGetClusterAPIKey(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 OrganizationGetClusterAPIKey(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.Confluent/organizations/{organizationName}/apiKeys/{apiKeyId}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "apiKeyId", self.ctx.args.api_key_id, + required=True, + ), + **self.serialize_url_param( + "organizationName", self.ctx.args.organization_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", "2024-02-13", + 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() + _schema_on_200.kind = AAZStrType() + _schema_on_200.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + + properties = cls._schema_on_200.properties + properties.metadata = AAZObjectType() + properties.spec = AAZObjectType() + + metadata = cls._schema_on_200.properties.metadata + metadata.created_timestamp = AAZStrType( + serialized_name="createdTimestamp", + ) + metadata.deleted_timestamp = AAZStrType( + serialized_name="deletedTimestamp", + ) + metadata.resource_name = AAZStrType( + serialized_name="resourceName", + ) + metadata.self = AAZStrType() + metadata.updated_timestamp = AAZStrType( + serialized_name="updatedTimestamp", + ) + + spec = cls._schema_on_200.properties.spec + spec.description = AAZStrType() + spec.name = AAZStrType() + spec.owner = AAZObjectType() + spec.resource = AAZObjectType() + + owner = cls._schema_on_200.properties.spec.owner + owner.id = AAZStrType() + owner.kind = AAZStrType() + owner.related = AAZStrType() + owner.resource_name = AAZStrType( + serialized_name="resourceName", + ) + + resource = cls._schema_on_200.properties.spec.resource + resource.environment = AAZStrType() + resource.id = AAZStrType() + resource.kind = AAZStrType() + resource.related = AAZStrType() + resource.resource_name = AAZStrType( + serialized_name="resourceName", + ) + + return cls._schema_on_200 + + +class _ShowHelper: + """Helper class for Show""" + + +__all__ = ["Show"] diff --git a/src/confluent/azext_confluent/aaz/latest/confluent/organization/environment/__init__.py b/src/confluent/azext_confluent/aaz/latest/confluent/organization/environment/__init__.py index d63ae5a6fc9..2df85698253 100644 --- a/src/confluent/azext_confluent/aaz/latest/confluent/organization/environment/__init__.py +++ b/src/confluent/azext_confluent/aaz/latest/confluent/organization/environment/__init__.py @@ -10,3 +10,4 @@ from .__cmd_group import * from ._list import * +from ._show import * diff --git a/src/confluent/azext_confluent/aaz/latest/confluent/organization/environment/_list.py b/src/confluent/azext_confluent/aaz/latest/confluent/organization/environment/_list.py index 523e54bf67d..818313cc004 100644 --- a/src/confluent/azext_confluent/aaz/latest/confluent/organization/environment/_list.py +++ b/src/confluent/azext_confluent/aaz/latest/confluent/organization/environment/_list.py @@ -15,7 +15,7 @@ "confluent organization environment list", ) class List(AAZCommand): - """List of all the environments in a organization + """List all Confluent environments within a specific organization. """ _aaz_info = { @@ -48,8 +48,6 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, ) _args_schema.resource_group = AAZResourceGroupNameArg( - options=["--resource-group"], - help="Resource Group Name", required=True, ) _args_schema.page_size = AAZIntArg( diff --git a/src/confluent/azext_confluent/aaz/latest/confluent/organization/environment/_show.py b/src/confluent/azext_confluent/aaz/latest/confluent/organization/environment/_show.py new file mode 100644 index 00000000000..96e38e7942a --- /dev/null +++ b/src/confluent/azext_confluent/aaz/latest/confluent/organization/environment/_show.py @@ -0,0 +1,195 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "confluent organization environment show", +) +class Show(AAZCommand): + """Display details of a specific Confluent environment within an organization. + """ + + _aaz_info = { + "version": "2024-02-13", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.confluent/organizations/{}/environments/{}", "2024-02-13"], + ] + } + + 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.environment_id = AAZStrArg( + options=["-n", "--name", "--environment-id"], + help="Confluent environment id", + required=True, + id_part="child_name_1", + ) + _args_schema.organization_name = AAZStrArg( + options=["--organization-name"], + help="Organization resource name", + required=True, + id_part="name", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.OrganizationGetEnvironmentById(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 OrganizationGetEnvironmentById(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.Confluent/organizations/{organizationName}/environments/{environmentId}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "environmentId", self.ctx.args.environment_id, + required=True, + ), + **self.serialize_url_param( + "organizationName", self.ctx.args.organization_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", "2024-02-13", + 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() + _schema_on_200.kind = AAZStrType() + _schema_on_200.name = AAZStrType() + _schema_on_200.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + + properties = cls._schema_on_200.properties + properties.metadata = AAZObjectType() + + metadata = cls._schema_on_200.properties.metadata + metadata.created_timestamp = AAZStrType( + serialized_name="createdTimestamp", + ) + metadata.deleted_timestamp = AAZStrType( + serialized_name="deletedTimestamp", + ) + metadata.resource_name = AAZStrType( + serialized_name="resourceName", + ) + metadata.self = AAZStrType() + metadata.updated_timestamp = AAZStrType( + serialized_name="updatedTimestamp", + ) + + return cls._schema_on_200 + + +class _ShowHelper: + """Helper class for Show""" + + +__all__ = ["Show"] diff --git a/src/confluent/azext_confluent/aaz/latest/confluent/organization/environment/cluster/_create_api_key.py b/src/confluent/azext_confluent/aaz/latest/confluent/organization/environment/cluster/_create_api_key.py index 58157a8b83a..62e9a5f6a1a 100644 --- a/src/confluent/azext_confluent/aaz/latest/confluent/organization/environment/cluster/_create_api_key.py +++ b/src/confluent/azext_confluent/aaz/latest/confluent/organization/environment/cluster/_create_api_key.py @@ -15,7 +15,7 @@ "confluent organization environment cluster create-api-key", ) class CreateApiKey(AAZCommand): - """Creates API key for a schema registry Cluster ID or Kafka Cluster ID under a environment + """Create API keys for Schema Registry or Kafka clusters within an environment. """ _aaz_info = { @@ -60,8 +60,6 @@ def _build_arguments_schema(cls, *args, **kwargs): id_part="name", ) _args_schema.resource_group = AAZResourceGroupNameArg( - options=["--resource-group"], - help="Resource group name", required=True, ) diff --git a/src/confluent/azext_confluent/aaz/latest/confluent/organization/environment/cluster/_list.py b/src/confluent/azext_confluent/aaz/latest/confluent/organization/environment/cluster/_list.py index 30b9bc6694f..545b8cde8ae 100644 --- a/src/confluent/azext_confluent/aaz/latest/confluent/organization/environment/cluster/_list.py +++ b/src/confluent/azext_confluent/aaz/latest/confluent/organization/environment/cluster/_list.py @@ -15,7 +15,7 @@ "confluent organization environment cluster list", ) class List(AAZCommand): - """List of all the clusters in a environment + """List all clusters within a specific Confluent environment. """ _aaz_info = { @@ -53,8 +53,6 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, ) _args_schema.resource_group = AAZResourceGroupNameArg( - options=["--resource-group"], - help="Resource Group Name", required=True, ) _args_schema.page_size = AAZIntArg( diff --git a/src/confluent/azext_confluent/aaz/latest/confluent/organization/environment/cluster/_show.py b/src/confluent/azext_confluent/aaz/latest/confluent/organization/environment/cluster/_show.py index da3f737d019..8065acebd64 100644 --- a/src/confluent/azext_confluent/aaz/latest/confluent/organization/environment/cluster/_show.py +++ b/src/confluent/azext_confluent/aaz/latest/confluent/organization/environment/cluster/_show.py @@ -15,7 +15,7 @@ "confluent organization environment cluster show", ) class Show(AAZCommand): - """Get cluster by Id + """Retrieve details of a specific Confluent cluster by its ID. """ _aaz_info = { @@ -60,8 +60,6 @@ def _build_arguments_schema(cls, *args, **kwargs): id_part="name", ) _args_schema.resource_group = AAZResourceGroupNameArg( - options=["--resource-group"], - help="Resource Group Name", required=True, ) return cls._args_schema diff --git a/src/confluent/azext_confluent/aaz/latest/confluent/organization/environment/schema_registry_cluster/__cmd_group.py b/src/confluent/azext_confluent/aaz/latest/confluent/organization/environment/schema_registry_cluster/__cmd_group.py index 560816d89d6..4c4512cdbe0 100644 --- a/src/confluent/azext_confluent/aaz/latest/confluent/organization/environment/schema_registry_cluster/__cmd_group.py +++ b/src/confluent/azext_confluent/aaz/latest/confluent/organization/environment/schema_registry_cluster/__cmd_group.py @@ -15,7 +15,7 @@ "confluent organization environment schema-registry-cluster", ) class __CMDGroup(AAZCommandGroup): - """Commands to get the schema registry cluster details in a environment + """Retrieve details of Schema Registry clusters within a Confluent environment. """ pass diff --git a/src/confluent/azext_confluent/aaz/latest/confluent/organization/environment/schema_registry_cluster/_list.py b/src/confluent/azext_confluent/aaz/latest/confluent/organization/environment/schema_registry_cluster/_list.py index 0a867ce418a..b64ed81e3ba 100644 --- a/src/confluent/azext_confluent/aaz/latest/confluent/organization/environment/schema_registry_cluster/_list.py +++ b/src/confluent/azext_confluent/aaz/latest/confluent/organization/environment/schema_registry_cluster/_list.py @@ -15,7 +15,7 @@ "confluent organization environment schema-registry-cluster list", ) class List(AAZCommand): - """List schema registry clusters + """List all Schema Registry clusters within a Confluent environment. """ _aaz_info = { @@ -53,8 +53,6 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, ) _args_schema.resource_group = AAZResourceGroupNameArg( - options=["--resource-group"], - help="Resource Group Name", required=True, ) _args_schema.page_size = AAZIntArg( diff --git a/src/confluent/azext_confluent/aaz/latest/confluent/organization/environment/schema_registry_cluster/_show.py b/src/confluent/azext_confluent/aaz/latest/confluent/organization/environment/schema_registry_cluster/_show.py index 8fc2baa687c..67ac16fa663 100644 --- a/src/confluent/azext_confluent/aaz/latest/confluent/organization/environment/schema_registry_cluster/_show.py +++ b/src/confluent/azext_confluent/aaz/latest/confluent/organization/environment/schema_registry_cluster/_show.py @@ -15,7 +15,7 @@ "confluent organization environment schema-registry-cluster show", ) class Show(AAZCommand): - """Get schema registry cluster by Id + """Retrieve details of a specific Schema Registry cluster by its ID. """ _aaz_info = { @@ -60,8 +60,6 @@ def _build_arguments_schema(cls, *args, **kwargs): id_part="name", ) _args_schema.resource_group = AAZResourceGroupNameArg( - options=["--resource-group"], - help="Resource Group Name", required=True, ) return cls._args_schema diff --git a/src/confluent/azext_confluent/aaz/latest/confluent/organization/role_binding/__cmd_group.py b/src/confluent/azext_confluent/aaz/latest/confluent/organization/role_binding/__cmd_group.py index fe42febc4a1..9a9f70b3bc2 100644 --- a/src/confluent/azext_confluent/aaz/latest/confluent/organization/role_binding/__cmd_group.py +++ b/src/confluent/azext_confluent/aaz/latest/confluent/organization/role_binding/__cmd_group.py @@ -15,7 +15,7 @@ "confluent organization role-binding", ) class __CMDGroup(AAZCommandGroup): - """Manage Role binding + """Manage role bindings within a Confluent organization. """ pass diff --git a/src/confluent/azext_confluent/aaz/latest/confluent/organization/role_binding/_delete.py b/src/confluent/azext_confluent/aaz/latest/confluent/organization/role_binding/_delete.py index 2cd67b40522..577a5ef9eaf 100644 --- a/src/confluent/azext_confluent/aaz/latest/confluent/organization/role_binding/_delete.py +++ b/src/confluent/azext_confluent/aaz/latest/confluent/organization/role_binding/_delete.py @@ -16,7 +16,7 @@ confirmation="Are you sure you want to perform this operation?", ) class Delete(AAZCommand): - """Delete role bindings + """Delete role bindings within a Confluent organization. """ _aaz_info = { @@ -49,8 +49,6 @@ def _build_arguments_schema(cls, *args, **kwargs): id_part="name", ) _args_schema.resource_group = AAZResourceGroupNameArg( - options=["--resource-group"], - help="Resource group name", required=True, ) _args_schema.role_binding_id = AAZStrArg( diff --git a/src/confluent/azext_confluent/azext_metadata.json b/src/confluent/azext_confluent/azext_metadata.json index 42bc29d93d8..b9c3b873766 100644 --- a/src/confluent/azext_confluent/azext_metadata.json +++ b/src/confluent/azext_confluent/azext_metadata.json @@ -1,3 +1,3 @@ { - "azext.minCliCoreVersion": "2.56.0" + "azext.minCliCoreVersion": "2.70.0" } \ No newline at end of file diff --git a/src/confluent/azext_confluent/tests/latest/recordings/test_term_accept_basic_flow.yaml b/src/confluent/azext_confluent/tests/latest/recordings/test_term_accept_basic_flow.yaml index e482068b50a..63622fd5283 100644 --- a/src/confluent/azext_confluent/tests/latest/recordings/test_term_accept_basic_flow.yaml +++ b/src/confluent/azext_confluent/tests/latest/recordings/test_term_accept_basic_flow.yaml @@ -265,7 +265,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.10.10 (Windows-10-10.0.22621-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Confluent/register?api-version=2022-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Confluent/register?api-version=2024-11-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Confluent","namespace":"Microsoft.Confluent","authorizations":[{"applicationId":"1448fd13-7e74-41f4-b6e3-17e485d8ac2e","roleDefinitionId":"4db34280-b0be-4827-aa5b-418391409cee"}],"resourceTypes":[{"resourceType":"operations","locations":[],"apiVersions":["2022-10-07-preview","2022-07-21-preview","2022-04-10-preview","2021-12-01","2021-09-01-preview","2021-03-01-preview","2020-03-01-preview","2020-03-01"],"capabilities":"None"},{"resourceType":"locations","locations":[],"apiVersions":["2022-10-07-preview","2022-07-21-preview","2022-04-10-preview","2021-12-01","2021-09-01-preview","2021-03-01-preview","2020-03-01-preview","2020-03-01"],"capabilities":"None"},{"resourceType":"locations/OperationStatuses","locations":["West @@ -320,7 +320,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.10.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Confluent?api-version=2022-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Confluent?api-version=2024-11-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Confluent","namespace":"Microsoft.Confluent","authorizations":[{"applicationId":"1448fd13-7e74-41f4-b6e3-17e485d8ac2e","roleDefinitionId":"4db34280-b0be-4827-aa5b-418391409cee"}],"resourceTypes":[{"resourceType":"operations","locations":[],"apiVersions":["2022-10-07-preview","2022-07-21-preview","2022-04-10-preview","2021-12-01","2021-09-01-preview","2021-03-01-preview","2020-03-01-preview","2020-03-01"],"capabilities":"None"},{"resourceType":"locations","locations":[],"apiVersions":["2022-10-07-preview","2022-07-21-preview","2022-04-10-preview","2021-12-01","2021-09-01-preview","2021-03-01-preview","2020-03-01-preview","2020-03-01"],"capabilities":"None"},{"resourceType":"locations/OperationStatuses","locations":["West diff --git a/src/confluent/azext_confluent/tests/latest/test_confluent_scenario_coverage.md b/src/confluent/azext_confluent/tests/latest/test_confluent_scenario_coverage.md index a3528243b4b..3281afa3fd8 100644 --- a/src/confluent/azext_confluent/tests/latest/test_confluent_scenario_coverage.md +++ b/src/confluent/azext_confluent/tests/latest/test_confluent_scenario_coverage.md @@ -1,8 +1,8 @@ |Scenario|Result|ErrorMessage|ErrorStack|ErrorNormalized|StartDt|EndDt| -|step_terms_list|successed||||2021-07-30 07:04:35.011252|2021-07-30 07:04:36.238525| -|step_organization_show|successed||||2021-07-30 07:04:36.848577|2021-07-30 07:04:36.958490| -|step_organization_list|successed||||2021-07-30 07:04:36.958490|2021-07-30 07:04:37.070465| -|step_organization_list2|successed||||2021-07-30 07:04:37.070465|2021-07-30 07:04:37.193251| -|step_organization_update|successed||||2021-07-30 07:04:37.193251|2021-07-30 07:04:37.308646| -|step_organization_delete|successed||||2021-07-30 07:04:37.308646|2021-07-30 07:04:37.858371| +|step_terms_list|successed||||2025-06-05 05:20:39.201743|2025-06-05 05:20:39.676841| +|step_organization_show|successed||||2025-06-05 05:20:40.372454|2025-06-05 05:20:40.590599| +|step_organization_list|successed||||2025-06-05 05:20:40.590599|2025-06-05 05:20:40.827538| +|step_organization_list2|successed||||2025-06-05 05:20:40.828541|2025-06-05 05:20:41.034481| +|step_organization_update|successed||||2025-06-05 05:20:41.036496|2025-06-05 05:20:41.235630| +|step_organization_delete|successed||||2025-06-05 05:20:41.235630|2025-06-05 05:20:41.628799| Coverage: 6/6 diff --git a/src/confluent/setup.py b/src/confluent/setup.py index cc571eb5e9e..462c470f2dc 100644 --- a/src/confluent/setup.py +++ b/src/confluent/setup.py @@ -10,7 +10,7 @@ from setuptools import setup, find_packages # HISTORY.rst entry. -VERSION = '0.6.0' +VERSION = '1.0.0' # The full list of classifiers is available at # https://pypi.python.org/pypi?%3Aaction=list_classifiers