Source
pub async fn create_role( &self, name: String, ) -> Result<CreateRoleResponse, KineticaError>
Create a new role
Creates a new role.
name- Name of the role to be created. Must contain only lowercase letters, digits, and underscores, and cannot begin with a digit. Must not be the same name as an existing user or role.
Source
pub async fn create_role_with_opts( &self, name: String, options: CreateRoleRequestOptions, ) -> Result<CreateRoleResponse, KineticaError>
Create a new role
Creates a new role.
name- Name of the role to be created. Must contain only lowercase letters, digits, and underscores, and cannot begin with a digit. Must not be the same name as an existing user or role.options- The optional parameters; any left unset take the server’s defaults.
Source
pub async fn create_role_raw( &self, request: &CreateRoleRequest, ) -> Result<CreateRoleResponse, KineticaError>
Sends a pre-built CreateRoleRequest to the /create/role endpoint.
Source
pub async fn create_role_from_url( &self, url: &str, request: &CreateRoleRequest, ) -> Result<CreateRoleResponse, KineticaError>
Sends a pre-built CreateRoleRequest to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.