A set of parameters for GPUdb::revokePermission. More…
#include <gpudb/protocol/revoke_permission.h>
Public Member Functions | |
| RevokePermissionRequest () | |
| Constructs a RevokePermissionRequest object with default parameters. | |
| RevokePermissionRequest (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 RevokePermissionRequest object with the specified parameters. | |
Public Attributes | |
| std::string | principal |
| Name of the user or role for which the permission is being revoked. | |
| std::string | object |
| Name of object permission is being revoked from. | |
| std::string | objectType |
| The type of object being revoked. | |
| std::string | permission |
| Permission being revoked. | |
| std::map< std::string, std::string > | options |
| Optional parameters. | |
Detailed Description
A set of parameters for GPUdb::revokePermission.
Revoke user or role the specified permission on the specified object.
Definition at line 18 of file revoke_permission.h.
Constructor & Destructor Documentation
◆ RevokePermissionRequest() [1/2]
| inline |
Constructs a RevokePermissionRequest object with default parameters.
Definition at line 23 of file revoke_permission.h.
◆ RevokePermissionRequest() [2/2]
| inline |
Constructs a RevokePermissionRequest object with the specified parameters.
| [in] | principal_ | Name of the user or role for which the permission is being revoked. Must be an existing user or role. The default value is ”. |
| [in] | object_ | Name of object permission is being revoked from. It is recommended to use a fully-qualified name when possible. |
| [in] | objectType_ | The type of object being revoked. Supported values:
|
| [in] | permission_ | Permission being revoked. Supported values:
|
| [in] | options_ | Optional parameters.
|
Definition at line 150 of file revoke_permission.h.
Member Data Documentation
◆ object
| std::string gpudb::RevokePermissionRequest::object |
Name of object permission is being revoked from.
It is recommended to use a fully-qualified name when possible.
Definition at line 169 of file revoke_permission.h.
◆ objectType
| std::string gpudb::RevokePermissionRequest::objectType |
The type of object being revoked.
Supported values:
- revoke_permission_catalog: Catalog
- revoke_permission_context: Context
- revoke_permission_credential: Credential
- revoke_permission_datasink: Data Sink
- revoke_permission_datasource: Data Source
- revoke_permission_directory: KIFS File Directory
- revoke_permission_graph: A Graph object
- revoke_permission_proc: UDF Procedure
- revoke_permission_schema: Schema
- revoke_permission_sql_proc: SQL Procedure
- revoke_permission_system: System-level access
- revoke_permission_table: Database Table
- revoke_permission_table_monitor: Table monitor
Definition at line 203 of file revoke_permission.h.
◆ options
| std::map<std::string, std::string> gpudb::RevokePermissionRequest::options |
Optional parameters.
- revoke_permission_columns: Revoke table security from these columns, comma-separated. The default value is ”.
The default value is an empty map.
Definition at line 253 of file revoke_permission.h.
◆ permission
| std::string gpudb::RevokePermissionRequest::permission |
Permission being revoked.
Supported values:
- revoke_permission_admin: Full read/write and administrative access on the object.
- revoke_permission_connect: Connect access on the given data source or data sink.
- revoke_permission_create: Ability to create new objects of this type.
- revoke_permission_delete: Delete rows from tables.
- revoke_permission_execute: Ability to Execute the Procedure object.
- revoke_permission_insert: Insert access to tables.
- revoke_permission_monitor: Monitor logs and statistics.
- revoke_permission_read: Ability to read, list and use the object.
- revoke_permission_send_alert: Ability to send system alerts.
- revoke_permission_update: Update access to the table.
- revoke_permission_user_admin: Access to administer users and roles that do not have system_admin permission.
- revoke_permission_write: Access to write, change and delete objects.
Definition at line 242 of file revoke_permission.h.
◆ principal
| std::string gpudb::RevokePermissionRequest::principal |
Name of the user or role for which the permission is being revoked.
Must be an existing user or role. The default value is ”.
Definition at line 163 of file revoke_permission.h.
The documentation for this struct was generated from the following file:
- gpudb/protocol/revoke_permission.h