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

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

#include <gpudb/protocol/grant_permission_datasource.h>

Public Member Functions

 GrantPermissionDatasourceRequest ()
 Constructs a GrantPermissionDatasourceRequest object with default parameters. More...
 
 GrantPermissionDatasourceRequest (const std::string &name_, const std::string &permission_, const std::string &datasourceName_, const std::map< std::string, std::string > &options_)
 Constructs a GrantPermissionDatasourceRequest object with the specified parameters. More...
 

Public Attributes

std::string name
 Name of the user or role to which the permission will be granted. More...
 
std::string permission
 Permission to grant to the user or role. More...
 
std::string datasourceName
 Name of the data source on which the permission will be granted. More...
 
std::map< std::string, std::string > options
 Optional parameters. More...
 

Detailed Description

A set of parameters for GPUdb::grantPermissionDatasource.

Grants a data source permission to a user or role.

Definition at line 19 of file grant_permission_datasource.h.

Constructor & Destructor Documentation

◆ GrantPermissionDatasourceRequest() [1/2]

gpudb::GrantPermissionDatasourceRequest::GrantPermissionDatasourceRequest ( )
inline

Constructs a GrantPermissionDatasourceRequest object with default parameters.

Definition at line 25 of file grant_permission_datasource.h.

◆ GrantPermissionDatasourceRequest() [2/2]

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

Constructs a GrantPermissionDatasourceRequest 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]datasourceName_Name of the data source on which the permission will be granted. Must be an existing data source, or an empty string to grant permission on all data sources.
[in]options_Optional parameters. The default value is an empty map.

Definition at line 60 of file grant_permission_datasource.h.

Member Data Documentation

◆ datasourceName

std::string gpudb::GrantPermissionDatasourceRequest::datasourceName

Name of the data source on which the permission will be granted.

Must be an existing data source, or an empty string to grant permission on all data sources.

Definition at line 93 of file grant_permission_datasource.h.

◆ name

std::string gpudb::GrantPermissionDatasourceRequest::name

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

Must be an existing user or role.

Definition at line 72 of file grant_permission_datasource.h.

◆ options

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

Optional parameters.

The default value is an empty map.

Definition at line 98 of file grant_permission_datasource.h.

◆ permission

std::string gpudb::GrantPermissionDatasourceRequest::permission

Permission to grant to the user or role.

Supported values:

Definition at line 86 of file grant_permission_datasource.h.


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