Skip to content

Dev acls transactions resource type #1834

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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