GPUdb C++ API  Version 7.2.2.4
gpudb::GrantPermissionRequest Struct Reference

A set of parameters for GPUdb::grantPermission. More...

#include <gpudb/protocol/grant_permission.h>

Public Member Functions

 GrantPermissionRequest ()
 Constructs a GrantPermissionRequest object with default parameters. More...
 
 GrantPermissionRequest (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 GrantPermissionRequest object with the specified parameters. More...
 

Public Attributes

std::string principal
 Name of the user or role for which the permission is being granted. More...
 
std::string object
 Name of object permission is being granted to. More...
 
std::string objectType
 The type of object being granted to. More...
 
std::string permission
 Permission being granted. More...
 
std::map< std::string, std::string > options
 Optional parameters. More...
 

Detailed Description

A set of parameters for GPUdb::grantPermission.

Grant user or role the specified permission on the specified object.

Definition at line 18 of file grant_permission.h.

Constructor & Destructor Documentation

◆ GrantPermissionRequest() [1/2]

gpudb::GrantPermissionRequest::GrantPermissionRequest ( )
inline

Constructs a GrantPermissionRequest object with default parameters.

Definition at line 23 of file grant_permission.h.

◆ GrantPermissionRequest() [2/2]

gpudb::GrantPermissionRequest::GrantPermissionRequest ( const std::string &  principal_,
const std::string &  object_,
const std::string &  objectType_,
const std::string &  permission_,
const std::map< std::string, std::string > &  options_ 
)
inline

Constructs a GrantPermissionRequest object with the specified parameters.

Parameters
[in]principal_Name of the user or role for which the permission is being granted. Must be an existing user or role. The default value is ''.
[in]object_Name of object permission is being granted to. It is recommended to use a fully-qualified name when possible.
[in]objectType_The type of object being granted to. Supported values:
[in]permission_Permission being granted. Supported values:
[in]options_Optional parameters. The default value is an empty map.

Definition at line 160 of file grant_permission.h.

Member Data Documentation

◆ object

std::string gpudb::GrantPermissionRequest::object

Name of object permission is being granted to.

It is recommended to use a fully-qualified name when possible.

Definition at line 179 of file grant_permission.h.

◆ objectType

std::string gpudb::GrantPermissionRequest::objectType

The type of object being granted to.

Supported values:

Definition at line 211 of file grant_permission.h.

◆ options

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

Optional parameters.

The default value is an empty map.

Definition at line 270 of file grant_permission.h.

◆ permission

std::string gpudb::GrantPermissionRequest::permission

Permission being granted.

Supported values:

Definition at line 243 of file grant_permission.h.

◆ principal

std::string gpudb::GrantPermissionRequest::principal

Name of the user or role for which the permission is being granted.

Must be an existing user or role. The default value is ''.

Definition at line 173 of file grant_permission.h.


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