Skip to main content

◆ hasRole() [1/4]

HasRoleResponse gpudb::GPUdb::hasRole (const HasRoleRequest &request_) const

Checks if the specified user has the specified role.

Parameters
[in]request_Request object containing the parameters for the operation.
Returns
Response object containing the result of the operation.

◆ hasRole() [2/4]

HasRoleResponse & gpudb::GPUdb::hasRole (const HasRoleRequest &request_,
HasRoleResponse &response_ ) const

Checks if the specified user has the specified role.

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).

◆ hasRole() [3/4]

HasRoleResponse gpudb::GPUdb::hasRole (const std::string &principal,
const std::string &role,
const std::map< std::string, std::string > &options ) const

Checks if the specified user has the specified role.

Parameters
[in]principalName of the user for which role membership is being checked. Must be an existing user. If blank, will use the current user. The default value is ”.
[in]roleName of role to check for membership.
[in]optionsOptional parameters.The default value is an empty map.
Returns
Response object containing the result of the operation.

◆ hasRole() [4/4]

HasRoleResponse & gpudb::GPUdb::hasRole (const std::string &principal,
const std::string &role,
const std::map< std::string, std::string > &options,
HasRoleResponse &response_ ) const

Checks if the specified user has the specified role.

Parameters
[in]principalName of the user for which role membership is being checked. Must be an existing user. If blank, will use the current user. The default value is ”.
[in]roleName of role to check for membership.
[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).