Skip to main content

◆ grantRole() [1/4]

GrantRoleResponse gpudb::GPUdb::grantRole (const GrantRoleRequest &request_) const

Grants membership in a role to a user or role.

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

◆ grantRole() [2/4]

GrantRoleResponse & gpudb::GPUdb::grantRole (const GrantRoleRequest &request_,
GrantRoleResponse &response_ ) const

Grants membership in a role to a user or 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).

◆ 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]roleName of the role in which membership will be granted. Must be an existing role.
[in]memberName of the user or role that will be granted membership in role. Must be an existing user or role.
[in]optionsOptional 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]roleName of the role in which membership will be granted. Must be an existing role.
[in]memberName of the user or role that will be granted membership in role. Must be 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).