Source
pub async fn revoke_permission( &self, principal: String, object: String, object_type: String, permission: String, ) -> Result<RevokePermissionResponse, KineticaError>
Revoke from user or role the specified permission on the specified object
Revoke user or role the specified permission on the specified object.
principal- Name of the user or role for which the permission is being revoked. Must be an existing user or role.object- Name of object permission is being revoked from. It is recommended to use a fully-qualified name when possible.object_type- The type of object being revoked.permission- Permission being revoked.
Source
pub async fn revoke_permission_with_opts( &self, principal: String, object: String, object_type: String, permission: String, options: RevokePermissionRequestOptions, ) -> Result<RevokePermissionResponse, KineticaError>
Revoke from user or role the specified permission on the specified object
Revoke user or role the specified permission on the specified object.
principal- Name of the user or role for which the permission is being revoked. Must be an existing user or role.object- Name of object permission is being revoked from. It is recommended to use a fully-qualified name when possible.object_type- The type of object being revoked.permission- Permission being revoked.options- The optional parameters; any left unset take the server’s defaults.
Source
pub async fn revoke_permission_raw( &self, request: &RevokePermissionRequest, ) -> Result<RevokePermissionResponse, KineticaError>
Sends a pre-built RevokePermissionRequest to the /revoke/permission endpoint.
Source
pub async fn revoke_permission_from_url( &self, url: &str, request: &RevokePermissionRequest, ) -> Result<RevokePermissionResponse, KineticaError>
Sends a pre-built RevokePermissionRequest to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.