Skip to content

Commit e3e96ff

Browse files
Added Transactional ID Resource Type for ACL operations (confluentinc#1834)
--------- Co-authored-by: John "Preston" Mille <john@ews-network.net>
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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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)
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