File tree Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Original file line number Diff line number Diff line change 7777 RESOURCE_TOPIC ,
7878 RESOURCE_GROUP ,
7979 RESOURCE_BROKER ,
80+ RESOURCE_TRANSACTIONAL_ID ,
8081 OFFSET_INVALID )
8182
8283from confluent_kafka import \
Original file line number Diff line number Diff 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__ :
Original file line number Diff line number Diff 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
529530static void AdminTypes_AddObjectsResourcePatternType (PyObject * m ) {
You can’t perform that action at this time.
0 commit comments