File tree 3 files changed +3
-0
lines changed
3 files changed +3
-0
lines changed Original file line number Diff line number Diff line change 77
77
RESOURCE_TOPIC ,
78
78
RESOURCE_GROUP ,
79
79
RESOURCE_BROKER ,
80
+ RESOURCE_TRANSACTIONAL_ID ,
80
81
OFFSET_INVALID )
81
82
82
83
from confluent_kafka import \
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ class ResourceType(Enum):
25
25
TOPIC = _cimpl .RESOURCE_TOPIC #: Topic resource. Resource name is topic name.
26
26
GROUP = _cimpl .RESOURCE_GROUP #: Group resource. Resource name is group.id.
27
27
BROKER = _cimpl .RESOURCE_BROKER #: Broker resource. Resource name is broker id.
28
+ TRANSACTIONAL_ID = _cimpl .RESOURCE_TRANSACTIONAL_ID #: Transactional ID resource.
28
29
29
30
def __lt__ (self , other ):
30
31
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) {
524
524
PyModule_AddIntConstant (m , "RESOURCE_TOPIC" , RD_KAFKA_RESOURCE_TOPIC );
525
525
PyModule_AddIntConstant (m , "RESOURCE_GROUP" , RD_KAFKA_RESOURCE_GROUP );
526
526
PyModule_AddIntConstant (m , "RESOURCE_BROKER" , RD_KAFKA_RESOURCE_BROKER );
527
+ PyModule_AddIntConstant (m , "RESOURCE_TRANSACTIONAL_ID" , RD_KAFKA_RESOURCE_TRANSACTIONAL_ID );
527
528
}
528
529
529
530
static void AdminTypes_AddObjectsResourcePatternType (PyObject * m ) {
You can’t perform that action at this time.
0 commit comments