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

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

#include <gpudb/protocol/has_role.h>

Public Member Functions

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

Public Attributes

std::string principal
 Name of the user for which role membersih is being checked. More...
 
std::string role
 Name of role to check for membership. More...
 
std::map< std::string, std::string > options
 Optional parameters. More...
 

Detailed Description

A set of parameters for GPUdb::hasRole.

Checks if the specified user has the specified role.

Definition at line 17 of file has_role.h.

Constructor & Destructor Documentation

◆ HasRoleRequest() [1/2]

gpudb::HasRoleRequest::HasRoleRequest ( )
inline

Constructs a HasRoleRequest object with default parameters.

Definition at line 22 of file has_role.h.

◆ HasRoleRequest() [2/2]

gpudb::HasRoleRequest::HasRoleRequest ( const std::string &  principal_,
const std::string &  role_,
const std::map< std::string, std::string > &  options_ 
)
inline

Constructs a HasRoleRequest object with the specified parameters.

Parameters
[in]principal_Name of the user for which role membersih is being checked. Must be an existing user. If blank, will use the current user. The default value is ''.
[in]role_Name of role to check for membership.
[in]options_Optional parameters. The default value is an empty map.

Definition at line 79 of file has_role.h.

Member Data Documentation

◆ options

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

Optional parameters.

The default value is an empty map.

Definition at line 130 of file has_role.h.

◆ principal

std::string gpudb::HasRoleRequest::principal

Name of the user for which role membersih is being checked.

Must be an existing user. If blank, will use the current user. The default value is ''.

Definition at line 91 of file has_role.h.

◆ role

std::string gpudb::HasRoleRequest::role

Name of role to check for membership.

Definition at line 96 of file has_role.h.


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