Skip to main content

◆ grantPermission() [1/4]

GrantPermissionResponse gpudb::GPUdb::grantPermission (const GrantPermissionRequest &request_) const

Grant user or role the specified permission on the specified object.

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

◆ grantPermission() [2/4]

GrantPermissionResponse & gpudb::GPUdb::grantPermission (const GrantPermissionRequest &request_,
GrantPermissionResponse &response_ ) const

Grant user or role the specified permission on the specified object.

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

◆ grantPermission() [3/4]

GrantPermissionResponse gpudb::GPUdb::grantPermission (const std::string &principal,
const std::string &object,
const std::string &objectType,
const std::string &permission,
const std::map< std::string, std::string > &options ) const

Grant user or role the specified permission on the specified object.

Parameters
[in]principalName of the user or role for which the permission is being granted. Must be an existing user or role. The default value is ”.
[in]objectName of object permission is being granted to. It is recommended to use a fully-qualified name when possible.
[in]objectTypeThe type of object being granted to. Supported values:
[in]permissionPermission being granted. Supported values:
[in]optionsOptional parameters.The default value is an empty map.
Returns
Response object containing the result of the operation.

◆ grantPermission() [4/4]

GrantPermissionResponse & gpudb::GPUdb::grantPermission (const std::string &principal,
const std::string &object,
const std::string &objectType,
const std::string &permission,
const std::map< std::string, std::string > &options,
GrantPermissionResponse &response_ ) const

Grant user or role the specified permission on the specified object.

Parameters
[in]principalName of the user or role for which the permission is being granted. Must be an existing user or role. The default value is ”.
[in]objectName of object permission is being granted to. It is recommended to use a fully-qualified name when possible.
[in]objectTypeThe type of object being granted to. Supported values:
[in]permissionPermission being granted. Supported values:
[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).