GPUdb C++ API
Version 7.2.2.4
|
A set of parameters for GPUdb::hasPermission. More...
#include <gpudb/protocol/has_permission.h>
Public Member Functions | |
HasPermissionRequest () | |
Constructs a HasPermissionRequest object with default parameters. More... | |
HasPermissionRequest (const std::string &principal_, const std::string &object_, const std::string &objectType_, const std::string &permission_, const std::map< std::string, std::string > &options_) | |
Constructs a HasPermissionRequest object with the specified parameters. More... | |
Public Attributes | |
std::string | principal |
Name of the user for which the permission is being checked. More... | |
std::string | object |
Name of object to check for the requested permission. More... | |
std::string | objectType |
The type of object being checked. More... | |
std::string | permission |
Permission to check for. More... | |
std::map< std::string, std::string > | options |
Optional parameters. More... | |
A set of parameters for GPUdb::hasPermission.
Checks if the specified user has the specified permission on the specified object.
Definition at line 19 of file has_permission.h.
|
inline |
Constructs a HasPermissionRequest object with default parameters.
Definition at line 24 of file has_permission.h.
|
inline |
Constructs a HasPermissionRequest object with the specified 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.
|
Definition at line 150 of file has_permission.h.
std::string gpudb::HasPermissionRequest::object |
Name of object to check for the requested permission.
It is recommended to use a fully-qualified name when possible.
Definition at line 170 of file has_permission.h.
std::string gpudb::HasPermissionRequest::objectType |
The type of object being checked.
Supported values:
Definition at line 202 of file has_permission.h.
std::map<std::string, std::string> gpudb::HasPermissionRequest::options |
Optional parameters.
The default value is an empty map.
Definition at line 255 of file has_permission.h.
std::string gpudb::HasPermissionRequest::permission |
Permission to check for.
Supported values:
Definition at line 231 of file has_permission.h.
std::string gpudb::HasPermissionRequest::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 ''.
Definition at line 164 of file has_permission.h.