Skip to main content

◆ hasPermission() [1/4]

HasPermissionResponse gpudb::GPUdb::hasPermission (const HasPermissionRequest &request_) const

Checks if the specified user has 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.

◆ hasPermission() [2/4]

HasPermissionResponse & gpudb::GPUdb::hasPermission (const HasPermissionRequest &request_,
HasPermissionResponse &response_ ) const

Checks if the specified user has 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).

◆ hasPermission() [3/4]

HasPermissionResponse gpudb::GPUdb::hasPermission (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

Checks if the specified user has the specified permission on the specified object.

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

◆ hasPermission() [4/4]

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

Checks if the specified user has the specified permission on the specified object.

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