ethanlin01x commented on code in PR #3727:
URL: https://github.com/apache/iggy/pull/3727#discussion_r3652243013
##########
foreign/python/src/client.rs:
##########
@@ -264,6 +268,97 @@ impl IggyClient {
})
}
+ /// Update the permissions of a user by unique ID or username.
+ ///
+ /// This is a full replacement: the given permissions overwrite the
previous
+ /// ones, and `None` removes them entirely.
+ ///
+ /// Args:
+ /// user_id: User identifier as `str | int`.
+ /// permissions: New permissions as `Permissions | None`.
+ ///
+ /// Returns:
+ /// An awaitable that resolves to `None` when the permissions are
updated.
+ ///
+ /// Raises:
+ /// PyValueError: If a string identifier is invalid.
+ /// PyRuntimeError: If the request fails.
+ #[pyo3(signature = (user_id, permissions=None))]
Review Comment:
Done, 4c3c37072fb7fdff5b7dd9ea0f14ec5df1f7271d.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]