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

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

#include <gpudb/protocol/has_permission.h>

Public Member Functions

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

Public Attributes

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

Detailed Description

A set of parameters for GPUdb::hasPermission.

Checks if the specified user has the specified permission on the specified object.

Definition at line 19 of file has_permission.h.

Constructor & Destructor Documentation

◆ HasPermissionRequest() [1/2]

gpudb::HasPermissionRequest::HasPermissionRequest ( )
inline

Constructs a HasPermissionRequest object with default parameters.

Definition at line 24 of file has_permission.h.

◆ HasPermissionRequest() [2/2]

gpudb::HasPermissionRequest::HasPermissionRequest ( 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 HasPermissionRequest object with the specified parameters.

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

Definition at line 150 of file has_permission.h.

Member Data Documentation

◆ object

std::string gpudb::HasPermissionRequest::object

Name of object to check for the requested permission.

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

Definition at line 170 of file has_permission.h.

◆ objectType

std::string gpudb::HasPermissionRequest::objectType

The type of object being checked.

Supported values:

Definition at line 202 of file has_permission.h.

◆ options

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

Optional parameters.

The default value is an empty map.

Definition at line 255 of file has_permission.h.

◆ permission

std::string gpudb::HasPermissionRequest::permission

Permission to check for.

Supported values:

Definition at line 231 of file has_permission.h.

◆ principal

std::string gpudb::HasPermissionRequest::principal

Name of the user for which the permission is being checked.

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

Definition at line 164 of file has_permission.h.


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