Skip to content

Commit c3f1c76

Browse files
authored
AdminClient: Add list_topics and list_groups to Admin.py (confluentinc#1121)
_AdminClientImpl supports list_topics and list_groups, which are helpful functions to have available on the Py equivalent AdminClient. Add these functions to Py class, so that the documentation could be more consistent and other tools (such as IDE's) could auto-complete these Py functions.
1 parent 97f08fe commit c3f1c76

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/confluent_kafka/admin/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,14 @@ def delete_topics(self, topics, **kwargs):
363363

364364
return futmap
365365

366+
def list_topics(self, **kwargs):
367+
368+
return super(AdminClient, self).list_topics(**kwargs)
369+
370+
def list_groups(self, **kwargs):
371+
372+
return super(AdminClient, self).list_groups(**kwargs)
373+
366374
def create_partitions(self, new_partitions, **kwargs):
367375
"""
368376
Create additional partitions for the given topics.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy