Source
pub async fn revoke_role( &self, role: String, member: String, ) -> Result<RevokeRoleResponse, KineticaError>
Revoke membership in a role from a user or role
Revokes membership in a role from a user or role.
role- Name of the role in which membership will be revoked. Must be an existing role.member- Name of the user or role that will be revoked membership inrole. Must be an existing user or role.
Source
pub async fn revoke_role_with_opts( &self, role: String, member: String, options: RevokeRoleRequestOptions, ) -> Result<RevokeRoleResponse, KineticaError>
Revoke membership in a role from a user or role
Revokes membership in a role from a user or role.
role- Name of the role in which membership will be revoked. Must be an existing role.member- Name of the user or role that will be revoked membership inrole. Must be an existing user or role.options- The optional parameters; any left unset take the server’s defaults.
Source
pub async fn revoke_role_raw( &self, request: &RevokeRoleRequest, ) -> Result<RevokeRoleResponse, KineticaError>
Sends a pre-built RevokeRoleRequest to the /revoke/role endpoint.
Source
pub async fn revoke_role_from_url( &self, url: &str, request: &RevokeRoleRequest, ) -> Result<RevokeRoleResponse, KineticaError>
Sends a pre-built RevokeRoleRequest to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.