Skip to content

Commit e3e96ff

Browse files
Added Transactional ID Resource Type for ACL operations (#1834)
--------- Co-authored-by: John "Preston" Mille <[email protected]>
1 parent b5c82b9 commit e3e96ff

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/confluent_kafka/admin/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
RESOURCE_TOPIC,
7878
RESOURCE_GROUP,
7979
RESOURCE_BROKER,
80+
RESOURCE_TRANSACTIONAL_ID,
8081
OFFSET_INVALID)
8182

8283
from confluent_kafka import \

src/confluent_kafka/admin/_resource.py

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class ResourceType(Enum):
2525
TOPIC = _cimpl.RESOURCE_TOPIC #: Topic resource. Resource name is topic name.
2626
GROUP = _cimpl.RESOURCE_GROUP #: Group resource. Resource name is group.id.
2727
BROKER = _cimpl.RESOURCE_BROKER #: Broker resource. Resource name is broker id.
28+
TRANSACTIONAL_ID = _cimpl.RESOURCE_TRANSACTIONAL_ID #: Transactional ID resource.
2829

2930
def __lt__(self, other):
3031
if self.__class__ != other.__class__:

src/confluent_kafka/src/AdminTypes.c

+1
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,7 @@ static void AdminTypes_AddObjectsResourceType (PyObject *m) {
524524
PyModule_AddIntConstant(m, "RESOURCE_TOPIC", RD_KAFKA_RESOURCE_TOPIC);
525525
PyModule_AddIntConstant(m, "RESOURCE_GROUP", RD_KAFKA_RESOURCE_GROUP);
526526
PyModule_AddIntConstant(m, "RESOURCE_BROKER", RD_KAFKA_RESOURCE_BROKER);
527+
PyModule_AddIntConstant(m, "RESOURCE_TRANSACTIONAL_ID", RD_KAFKA_RESOURCE_TRANSACTIONAL_ID);
527528
}
528529

529530
static void AdminTypes_AddObjectsResourcePatternType (PyObject *m) {

0 commit comments

Comments
 (0)