GPUdb C++ API
Version 7.2.2.4
|
A set of parameters for GPUdb::grantPermission. More...
#include <gpudb/protocol/grant_permission.h>
Public Member Functions | |
GrantPermissionRequest () | |
Constructs a GrantPermissionRequest object with default parameters. More... | |
GrantPermissionRequest (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 GrantPermissionRequest object with the specified parameters. More... | |
Public Attributes | |
std::string | principal |
Name of the user or role for which the permission is being granted. More... | |
std::string | object |
Name of object permission is being granted to. More... | |
std::string | objectType |
The type of object being granted to. More... | |
std::string | permission |
Permission being granted. More... | |
std::map< std::string, std::string > | options |
Optional parameters. More... | |
A set of parameters for GPUdb::grantPermission.
Grant user or role the specified permission on the specified object.
Definition at line 18 of file grant_permission.h.
|
inline |
Constructs a GrantPermissionRequest object with default parameters.
Definition at line 23 of file grant_permission.h.
|
inline |
Constructs a GrantPermissionRequest object with the specified parameters.
[in] | principal_ | Name of the user or role for which the permission is being granted. Must be an existing user or role. The default value is ''. |
[in] | object_ | Name of object permission is being granted to. It is recommended to use a fully-qualified name when possible. |
[in] | objectType_ | The type of object being granted to. Supported values:
|
[in] | permission_ | Permission being granted. Supported values:
|
[in] | options_ | Optional parameters.
|
Definition at line 160 of file grant_permission.h.
std::string gpudb::GrantPermissionRequest::object |
Name of object permission is being granted to.
It is recommended to use a fully-qualified name when possible.
Definition at line 179 of file grant_permission.h.
std::string gpudb::GrantPermissionRequest::objectType |
The type of object being granted to.
Supported values:
Definition at line 211 of file grant_permission.h.
std::map<std::string, std::string> gpudb::GrantPermissionRequest::options |
Optional parameters.
The default value is an empty map.
Definition at line 270 of file grant_permission.h.
std::string gpudb::GrantPermissionRequest::permission |
Permission being granted.
Supported values:
Definition at line 243 of file grant_permission.h.
std::string gpudb::GrantPermissionRequest::principal |
Name of the user or role for which the permission is being granted.
Must be an existing user or role. The default value is ''.
Definition at line 173 of file grant_permission.h.