◆ hasRole() [1/4]
| HasRoleResponse gpudb::GPUdb::hasRole | ( | const HasRoleRequest & | request_ | ) | const |
◆ hasRole() [2/4]
| HasRoleResponse & gpudb::GPUdb::hasRole | ( | const HasRoleRequest & | request_, |
| HasRoleResponse & | response_ ) const |
Checks if the specified user has the specified role.
Parameters
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] | principal | Name 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] | role | Name of role to check for membership. |
| [in] | options | Optional parameters.
|
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] | principal | Name 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] | role | Name of role to check for membership. |
| [in] | options | Optional parameters.
|
| [out] | response_ | Response object containing the results of the operation. |
Returns
Response object containing the result of the operation (initially passed in by reference).