Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Liftr Confluent generated commands based out of stable version 13-02-2024 #7337

Merged
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/confluent/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@

Release History
===============
0.6.0
+++++
* Added more commands for user access management
* `az confluent organization environment list --organization-name upntestorg01 --subscription ff9490e3-e714-4d26-b33b-4deefb0d5ffa --resource-group deepika-test` : List of environments in the organization
* `az confluent organization environment cluster list --organization-name upntestorg01 --environment-id env-stgc25p5xq --subscription ff9490e3-e714-4d26-b33b-4deefb0d5ffa --resource-group deepika-test` : List of clusters in the environment
* `az confluent organization environment schema-registry-cluster list --organization-name upntestorg01 --environment-id env-stgcjzd58q --subscription ff9490e3-e714-4d26-b33b-4deefb0d5ffa --resource-group deepika-test` : List of schema-registry-cluster in the environment
* `az confluent organization environment cluster create-api-key --organization-name upntestorg01 --environment-id env-stgc25p5xq --subscription ff9490e3-e714-4d26-b33b-4deefb0d5ffa --resource-group deepika-test --cluster-id lsrc-stgcp6kvzk --description cmd-line-apikey-test --name api-key-cmd-0403` : Creates API key in the given cluster
* `az confluent organization api-key delete --api-key-id PQGS27PBBW4LNBRT --organization-name upntestorg01 --subscription ff9490e3-e714-4d26-b33b-4deefb0d5ffa --resource-group deepika-test` : Deletes api key of a cluster
* `az confluent organization create-role-binding --organization-name upntestorg01 --subscription ff9490e3-e714-4d26-b33b-4deefb0d5ffa --resource-group deepika-test --principal User:u-vw7yzn --role-name FlinkAdmin --crn-pattern /environment=env-jv3wv8` : Creates role binding for a user under a resource (environment, organization, cluster as specified in the crn pattern)
* `az confluent organization role-binding delete --organization-name upntestorg01 --subscription ff9490e3-e714-4d26-b33b-4deefb0d5ffa --resource-group deepika-test --role-binding-id rb-0ePzyz`: Deletes confluent role for the user
* `az confluent organization list-role-binding --organization-name upntestorg01 --subscription ff9490e3-e714-4d26-b33b-4deefb0d5ffa --resource-group deepika-test --search-filters {CRNPattern:/environment=env-jv3wv8}` : List the rolebindings based on the filter params ( filtering can be done at confluent resource level & principal)
* `az confluent organization list-service-accounts --organization-name upntestorg01 --subscription ff9490e3-e714-4d26-b33b-4deefb0d5ffa --resource-group deepika-test` : List of service accounts in the organization
* `az confluent organization list-users --organization-name upntestorg01 --subscription ff9490e3-e714-4d26-b33b-4deefb0d5ffa --resource-group deepika-test --search-filters {pageSize:100}` : List of users in the organization
* `az confluent organization create-user --organization-name upntestorg01 --subscription ff9490e3-e714-4d26-b33b-4deefb0d5ffa --resource-group deepika-test --invited-email ajaykumar@microsoft.com --auth-type AUTH_TYPE_SSO`: Create a user in the confluent organization

0.5.0
+++++
* Change to GA from experiment
Expand Down
11 changes: 11 additions & 0 deletions src/confluent/azext_confluent/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,17 @@ def __init__(self, cli_ctx=None):

def load_command_table(self, args):
from azext_confluent.generated.commands import load_command_table
from azure.cli.core.aaz import load_aaz_command_table
try:
from . import aaz
except ImportError:
aaz = None
if aaz:
load_aaz_command_table(
loader=self,
aaz_pkg_name=aaz.__name__,
args=args
)
load_command_table(self, args)
try:
from azext_confluent.manual.commands import load_command_table as load_command_table_manual
Expand Down
6 changes: 6 additions & 0 deletions src/confluent/azext_confluent/aaz/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# --------------------------------------------------------------------------------------------
# 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
# --------------------------------------------------------------------------------------------
10 changes: 10 additions & 0 deletions src/confluent/azext_confluent/aaz/latest/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# --------------------------------------------------------------------------------------------
# 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

Original file line number Diff line number Diff line change
@@ -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",
)
class __CMDGroup(AAZCommandGroup):
"""Manage confluent organization
"""
pass


__all__ = ["__CMDGroup"]
11 changes: 11 additions & 0 deletions src/confluent/azext_confluent/aaz/latest/confluent/__init__.py
Original file line number Diff line number Diff line change
@@ -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 *
Original file line number Diff line number Diff line change
@@ -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",
)
class __CMDGroup(AAZCommandGroup):
"""Commands to perform actions on a confluent organization
"""
pass


__all__ = ["__CMDGroup"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# --------------------------------------------------------------------------------------------
# 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 ._create_role_binding import *
from ._create_user import *
from ._delete import *
from ._list import *
from ._list_role_binding import *
from ._list_service_accounts import *
from ._list_users import *
from ._show import *
from ._update import *
from ._wait import *
Loading