A set of parameters for GPUdb::grantPermissionDirectory. More…
#include <gpudb/protocol/grant_permission_directory.h>
Public Member Functions | |
| GrantPermissionDirectoryRequest () | |
| Constructs a GrantPermissionDirectoryRequest object with default parameters. | |
| GrantPermissionDirectoryRequest (const std::string &name_, const std::string &permission_, const std::string &directoryName_, const std::map< std::string, std::string > &options_) | |
| Constructs a GrantPermissionDirectoryRequest 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::string | directoryName |
| Name of the KiFS directory to which the permission grants access. | |
| std::map< std::string, std::string > | options |
| Optional parameters. | |
Detailed Description
A set of parameters for GPUdb::grantPermissionDirectory.
Grants a KiFS directory-level permission to a user or role.
Definition at line 19 of file grant_permission_directory.h.
Constructor & Destructor Documentation
◆ GrantPermissionDirectoryRequest() [1/2]
| inline |
Constructs a GrantPermissionDirectoryRequest object with default parameters.
Definition at line 25 of file grant_permission_directory.h.
◆ GrantPermissionDirectoryRequest() [2/2]
| inline |
Constructs a GrantPermissionDirectoryRequest 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] | directoryName_ | Name of the KiFS directory to which the permission grants access. An empty directory name grants access to all KiFS directories. |
| [in] | options_ | Optional parameters. The default value is an empty map. |
Definition at line 63 of file grant_permission_directory.h.
Member Data Documentation
◆ directoryName
| std::string gpudb::GrantPermissionDirectoryRequest::directoryName |
Name of the KiFS directory to which the permission grants access.
An empty directory name grants access to all KiFS directories.
Definition at line 97 of file grant_permission_directory.h.
◆ name
| std::string gpudb::GrantPermissionDirectoryRequest::name |
Name of the user or role to which the permission will be granted.
Must be an existing user or role.
Definition at line 75 of file grant_permission_directory.h.
◆ options
| std::map<std::string, std::string> gpudb::GrantPermissionDirectoryRequest::options |
Optional parameters.
The default value is an empty map.
Definition at line 102 of file grant_permission_directory.h.
◆ permission
| std::string gpudb::GrantPermissionDirectoryRequest::permission |
Permission to grant to the user or role.
Supported values:
- grant_permission_directory_directory_read: For files in the directory, access to list files, download files, or use files in server side functions.
- grant_permission_directory_directory_write: Access to upload files to, or delete files from, the directory. A user or role with write access automatically has read access.
Definition at line 91 of file grant_permission_directory.h.
The documentation for this struct was generated from the following file:
- gpudb/protocol/grant_permission_directory.h