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

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

#include <gpudb/protocol/grant_role.h>

Public Member Functions

 GrantRoleRequest ()
 Constructs a GrantRoleRequest object with default parameters. More...
 
 GrantRoleRequest (const std::string &role_, const std::string &member_, const std::map< std::string, std::string > &options_)
 Constructs a GrantRoleRequest object with the specified parameters. More...
 

Public Attributes

std::string role
 Name of the role in which membership will be granted. More...
 
std::string member
 Name of the user or role that will be granted membership in role. More...
 
std::map< std::string, std::string > options
 Optional parameters. More...
 

Detailed Description

A set of parameters for GPUdb::grantRole.

Grants membership in a role to a user or role.

Definition at line 17 of file grant_role.h.

Constructor & Destructor Documentation

◆ GrantRoleRequest() [1/2]

gpudb::GrantRoleRequest::GrantRoleRequest ( )
inline

Constructs a GrantRoleRequest object with default parameters.

Definition at line 22 of file grant_role.h.

◆ GrantRoleRequest() [2/2]

gpudb::GrantRoleRequest::GrantRoleRequest ( const std::string &  role_,
const std::string &  member_,
const std::map< std::string, std::string > &  options_ 
)
inline

Constructs a GrantRoleRequest object with the specified parameters.

Parameters
[in]role_Name of the role in which membership will be granted. Must be an existing role.
[in]member_Name of the user or role that will be granted membership in role_. Must be an existing user or role.
[in]options_Optional parameters. The default value is an empty map.

Definition at line 40 of file grant_role.h.

Member Data Documentation

◆ member

std::string gpudb::GrantRoleRequest::member

Name of the user or role that will be granted membership in role.

Must be an existing user or role.

Definition at line 57 of file grant_role.h.

◆ options

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

Optional parameters.

The default value is an empty map.

Definition at line 62 of file grant_role.h.

◆ role

std::string gpudb::GrantRoleRequest::role

Name of the role in which membership will be granted.

Must be an existing role.

Definition at line 51 of file grant_role.h.


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