Skip to main content

A set of parameters for GPUdb::grantPermissionProc. More…

#include <gpudb/protocol/grant_permission_proc.h>

Public Member Functions

 GrantPermissionProcRequest ()
 Constructs a GrantPermissionProcRequest object with default parameters.
 
 GrantPermissionProcRequest (const std::string &name_, const std::string &permission_, const std::string &procName_, const std::map< std::string, std::string > &options_)
 Constructs a GrantPermissionProcRequest 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 procName
 Name of the proc to which the permission grants access.
 
std::map< std::string, std::string > options
 Optional parameters.
 

Detailed Description

A set of parameters for GPUdb::grantPermissionProc.

[DEPRECATED–please use GPUdb::grantPermission instead] Grants a proc-level permission to a user or role.

Definition at line 21 of file grant_permission_proc.h.

Constructor & Destructor Documentation

◆ GrantPermissionProcRequest() [1/2]

gpudb::GrantPermissionProcRequest::GrantPermissionProcRequest ()
inline

Constructs a GrantPermissionProcRequest object with default parameters.

Definition at line 27 of file grant_permission_proc.h.

◆ GrantPermissionProcRequest() [2/2]

gpudb::GrantPermissionProcRequest::GrantPermissionProcRequest (const std::string &name_,
const std::string &permission_,
const std::string &procName_,
const std::map< std::string, std::string > &options_ )
inline

Constructs a GrantPermissionProcRequest object with the specified parameters.

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]procName_Name of the proc to which the permission grants access. Must be an existing proc, or an empty string to grant access to all procs.
[in]options_Optional parameters. The default value is an empty map.

Definition at line 59 of file grant_permission_proc.h.

Member Data Documentation

◆ name

std::string gpudb::GrantPermissionProcRequest::name

Name of the user or role to which the permission will be granted.

Must be an existing user or role.

Definition at line 71 of file grant_permission_proc.h.

◆ options

std::map<std::string, std::string> gpudb::GrantPermissionProcRequest::options

Optional parameters.

The default value is an empty map.

Definition at line 96 of file grant_permission_proc.h.

◆ permission

std::string gpudb::GrantPermissionProcRequest::permission

Permission to grant to the user or role.

Supported values:

Definition at line 85 of file grant_permission_proc.h.

◆ procName

std::string gpudb::GrantPermissionProcRequest::procName

Name of the proc to which the permission grants access.

Must be an existing proc, or an empty string to grant access to all procs.

Definition at line 91 of file grant_permission_proc.h.


The documentation for this struct was generated from the following file: