◆ hasPermission() [1/4]
| HasPermissionResponse gpudb::GPUdb::hasPermission | ( | const HasPermissionRequest & | request_ | ) | const |
◆ 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
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] | principal | Name 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] | object | Name of object to check for the requested permission. It is recommended to use a fully-qualified name when possible. |
| [in] | objectType | The type of object being checked. Supported values:
|
| [in] | permission | Permission to check for. Supported values:
|
| [in] | options | Optional parameters.
|
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] | principal | Name 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] | object | Name of object to check for the requested permission. It is recommended to use a fully-qualified name when possible. |
| [in] | objectType | The type of object being checked. Supported values:
|
| [in] | permission | Permission to check for. Supported values:
|
| [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).