GPUdb C++ API
Version 7.2.2.4
|
A set of parameters for GPUdb::hasRole. More...
#include <gpudb/protocol/has_role.h>
Public Member Functions | |
HasRoleRequest () | |
Constructs a HasRoleRequest object with default parameters. More... | |
HasRoleRequest (const std::string &principal_, const std::string &role_, const std::map< std::string, std::string > &options_) | |
Constructs a HasRoleRequest object with the specified parameters. More... | |
Public Attributes | |
std::string | principal |
Name of the user for which role membersih is being checked. More... | |
std::string | role |
Name of role to check for membership. More... | |
std::map< std::string, std::string > | options |
Optional parameters. More... | |
A set of parameters for GPUdb::hasRole.
Checks if the specified user has the specified role.
Definition at line 17 of file has_role.h.
|
inline |
Constructs a HasRoleRequest object with default parameters.
Definition at line 22 of file has_role.h.
|
inline |
Constructs a HasRoleRequest object with the specified parameters.
[in] | principal_ | Name of the user for which role membersih is being checked. Must be an existing user. If blank, will use the current user. The default value is ''. |
[in] | role_ | Name of role to check for membership. |
[in] | options_ | Optional parameters.
|
Definition at line 79 of file has_role.h.
std::map<std::string, std::string> gpudb::HasRoleRequest::options |
Optional parameters.
The default value is an empty map.
Definition at line 130 of file has_role.h.
std::string gpudb::HasRoleRequest::principal |
Name of the user for which role membersih is being checked.
Must be an existing user. If blank, will use the current user. The default value is ''.
Definition at line 91 of file has_role.h.
std::string gpudb::HasRoleRequest::role |
Name of role to check for membership.
Definition at line 96 of file has_role.h.