A set of parameters for GPUdb::grantPermissionSystem. More…
#include <gpudb/protocol/grant_permission_system.h>
Public Member Functions | |
| GrantPermissionSystemRequest () | |
| Constructs a GrantPermissionSystemRequest object with default parameters. | |
| GrantPermissionSystemRequest (const std::string &name_, const std::string &permission_, const std::map< std::string, std::string > &options_) | |
| Constructs a GrantPermissionSystemRequest object with the specified parameters. | |
Public Attributes | |
| std::string | name |
| Name of the user or role to which the permission will be granted. | |
| std::string | permission |
| Permission to grant to the user or role. | |
| std::map< std::string, std::string > | options |
| Optional parameters. | |
Detailed Description
A set of parameters for GPUdb::grantPermissionSystem.
Grants a system-level permission to a user or role.
Definition at line 18 of file grant_permission_system.h.
Constructor & Destructor Documentation
◆ GrantPermissionSystemRequest() [1/2]
| inline |
Constructs a GrantPermissionSystemRequest object with default parameters.
Definition at line 24 of file grant_permission_system.h.
◆ GrantPermissionSystemRequest() [2/2]
| inline |
Constructs a GrantPermissionSystemRequest object with the specified parameters.
| [in] | name_ | Name of the user or role to which the permission will be granted. Must be an existing user or role. |
| [in] | permission_ | Permission to grant to the user or role. Supported values:
|
| [in] | options_ | Optional parameters. The default value is an empty map. |
Definition at line 67 of file grant_permission_system.h.
Member Data Documentation
◆ name
| std::string gpudb::GrantPermissionSystemRequest::name |
Name of the user or role to which the permission will be granted.
Must be an existing user or role.
Definition at line 78 of file grant_permission_system.h.
◆ options
| std::map<std::string, std::string> gpudb::GrantPermissionSystemRequest::options |
Optional parameters.
The default value is an empty map.
Definition at line 107 of file grant_permission_system.h.
◆ permission
| std::string gpudb::GrantPermissionSystemRequest::permission |
Permission to grant to the user or role.
Supported values:
- grant_permission_system_system_admin: Full access to all data and system functions.
- grant_permission_system_system_user_admin: Access to administer users and roles that do not have system_admin permission.
- grant_permission_system_system_write: Read and write access to all tables.
- grant_permission_system_system_read: Read-only access to all tables.
- grant_permission_system_system_send_alert: Send system alerts.
Definition at line 102 of file grant_permission_system.h.
The documentation for this struct was generated from the following file:
- gpudb/protocol/grant_permission_system.h