Source
pub async fn grant_permission( &self, principal: String, object: String, object_type: String, permission: String, ) -> Result<GrantPermissionResponse, KineticaError>
Grant user or role the specified permission on the specified object
Grant user or role the specified permission on the specified object.
principal- Name of the user or role for which the permission is being granted. Must be an existing user or role.object- Name of object permission is being granted to. It is recommended to use a fully-qualified name when possible.object_type- The type of object being granted to.permission- Permission being granted.
Source
pub async fn grant_permission_with_opts( &self, principal: String, object: String, object_type: String, permission: String, options: GrantPermissionRequestOptions, ) -> Result<GrantPermissionResponse, KineticaError>
Grant user or role the specified permission on the specified object
Grant user or role the specified permission on the specified object.
principal- Name of the user or role for which the permission is being granted. Must be an existing user or role.object- Name of object permission is being granted to. It is recommended to use a fully-qualified name when possible.object_type- The type of object being granted to.permission- Permission being granted.options- The optional parameters; any left unset take the server’s defaults.
Source
pub async fn grant_permission_raw( &self, request: &GrantPermissionRequest, ) -> Result<GrantPermissionResponse, KineticaError>
Sends a pre-built GrantPermissionRequest to the /grant/permission endpoint.
Source
pub async fn grant_permission_from_url( &self, url: &str, request: &GrantPermissionRequest, ) -> Result<GrantPermissionResponse, KineticaError>
Sends a pre-built GrantPermissionRequest to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.