◆ grantRole() [1/4]
| GrantRoleResponse gpudb::GPUdb::grantRole | ( | const GrantRoleRequest & | request_ | ) | const |
◆ grantRole() [2/4]
| GrantRoleResponse & gpudb::GPUdb::grantRole | ( | const GrantRoleRequest & | request_, |
| GrantRoleResponse & | response_ ) const |
◆ grantRole() [3/4]
| GrantRoleResponse gpudb::GPUdb::grantRole | ( | const std::string & | role, |
| const std::string & | member, | ||
| const std::map< std::string, std::string > & | options ) const |
Grants membership in a role to a user or role.
Parameters
| [in] | role | Name of the role in which membership will be granted. Must be an existing role. |
| [in] | member | Name of the user or role that will be granted membership in role. Must be an existing user or role. |
| [in] | options | Optional parameters. The default value is an empty map. |
Returns
Response object containing the result of the operation.
◆ grantRole() [4/4]
| GrantRoleResponse & gpudb::GPUdb::grantRole | ( | const std::string & | role, |
| const std::string & | member, | ||
| const std::map< std::string, std::string > & | options, | ||
| GrantRoleResponse & | response_ ) const |
Grants membership in a role to a user or role.
Parameters
| [in] | role | Name of the role in which membership will be granted. Must be an existing role. |
| [in] | member | Name of the user or role that will be granted membership in role. Must be an existing user or role. |
| [in] | options | Optional 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).