Skip to content

Commit

Permalink
Added Transactional ID Resource Type for ACL operations (#1834)
Browse files Browse the repository at this point in the history

---------

Co-authored-by: John "Preston" Mille <john@ews-network.net>
  • Loading branch information
pranavrth and JohnPreston authored Oct 10, 2024
1 parent b5c82b9 commit e3e96ff
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/confluent_kafka/admin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
RESOURCE_TOPIC,
RESOURCE_GROUP,
RESOURCE_BROKER,
RESOURCE_TRANSACTIONAL_ID,
OFFSET_INVALID)

from confluent_kafka import \
Expand Down
1 change: 1 addition & 0 deletions src/confluent_kafka/admin/_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class ResourceType(Enum):
TOPIC = _cimpl.RESOURCE_TOPIC #: Topic resource. Resource name is topic name.
GROUP = _cimpl.RESOURCE_GROUP #: Group resource. Resource name is group.id.
BROKER = _cimpl.RESOURCE_BROKER #: Broker resource. Resource name is broker id.
TRANSACTIONAL_ID = _cimpl.RESOURCE_TRANSACTIONAL_ID #: Transactional ID resource.

def __lt__(self, other):
if self.__class__ != other.__class__:
Expand Down
1 change: 1 addition & 0 deletions src/confluent_kafka/src/AdminTypes.c
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,7 @@ static void AdminTypes_AddObjectsResourceType (PyObject *m) {
PyModule_AddIntConstant(m, "RESOURCE_TOPIC", RD_KAFKA_RESOURCE_TOPIC);
PyModule_AddIntConstant(m, "RESOURCE_GROUP", RD_KAFKA_RESOURCE_GROUP);
PyModule_AddIntConstant(m, "RESOURCE_BROKER", RD_KAFKA_RESOURCE_BROKER);
PyModule_AddIntConstant(m, "RESOURCE_TRANSACTIONAL_ID", RD_KAFKA_RESOURCE_TRANSACTIONAL_ID);
}

static void AdminTypes_AddObjectsResourcePatternType (PyObject *m) {
Expand Down

0 comments on commit e3e96ff

Please sign in to comment.