Skip to main content

◆ createRole() [1/4]

CreateRoleResponse gpudb::GPUdb::createRole (const CreateRoleRequest &request_) const

Creates a new role.

Attention
This method should be used for on-premise deployments only.
Parameters
[in]request_Request object containing the parameters for the operation.
Returns
Response object containing the result of the operation.

◆ createRole() [2/4]

CreateRoleResponse & gpudb::GPUdb::createRole (const CreateRoleRequest &request_,
CreateRoleResponse &response_ ) const

Creates a new role.

Attention
This method should be used for on-premise deployments only.
Parameters
[in]request_Request object containing the parameters for the operation.
[out]response_Response object containing the results of the operation.
Returns
Response object containing the result of the operation (initially passed in by reference).

◆ createRole() [3/4]

CreateRoleResponse gpudb::GPUdb::createRole (const std::string &name,
const std::map< std::string, std::string > &options ) const

Creates a new role.

Attention
This method should be used for on-premise deployments only.
Parameters
[in]nameName 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.
[in]optionsOptional parameters.The default value is an empty map.
Returns
Response object containing the result of the operation.

◆ createRole() [4/4]

CreateRoleResponse & gpudb::GPUdb::createRole (const std::string &name,
const std::map< std::string, std::string > &options,
CreateRoleResponse &response_ ) const

Creates a new role.

Attention
This method should be used for on-premise deployments only.
Parameters
[in]nameName 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.
[in]optionsOptional parameters.The default value is an empty map.
[out]response_Response object containing the results of the operation.
Returns
Response object containing the result of the operation (initially passed in by reference).