Source
pub async fn grant_permission_directory( &self, name: String, permission: String, directory_name: String, ) -> Result<GrantPermissionDirectoryResponse, KineticaError>
Grant a KiFS directory-level permission to a user or role
[DEPRECATED–please use /grant/permission instead] Grants a KiFS directory-level permission to a user or role.
name- Name of the user or role to which the permission will be granted. Must be an existing user or role.permission- Permission to grant to the user or role.directory_name- Name of the KiFS directory to which the permission grants access. An empty directory name grants access to all KiFS directories.
Source
pub async fn grant_permission_directory_with_opts( &self, name: String, permission: String, directory_name: String, options: GrantPermissionDirectoryRequestOptions, ) -> Result<GrantPermissionDirectoryResponse, KineticaError>
Grant a KiFS directory-level permission to a user or role
[DEPRECATED–please use /grant/permission instead] Grants a KiFS directory-level permission to a user or role.
name- Name of the user or role to which the permission will be granted. Must be an existing user or role.permission- Permission to grant to the user or role.directory_name- Name of the KiFS directory to which the permission grants access. An empty directory name grants access to all KiFS directories.options- The optional parameters; any left unset take the server’s defaults.
Source
pub async fn grant_permission_directory_raw( &self, request: &GrantPermissionDirectoryRequest, ) -> Result<GrantPermissionDirectoryResponse, KineticaError>
Sends a pre-built GrantPermissionDirectoryRequest to the /grant/permission/directory endpoint.
Source
pub async fn grant_permission_directory_from_url( &self, url: &str, request: &GrantPermissionDirectoryRequest, ) -> Result<GrantPermissionDirectoryResponse, KineticaError>
Sends a pre-built GrantPermissionDirectoryRequest to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.