Skip to main content

A set of parameters for GPUdb::grantPermissionCredential. More…

#include <gpudb/protocol/grant_permission_credential.h>

Public Member Functions

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

Public Attributes

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

Detailed Description

A set of parameters for GPUdb::grantPermissionCredential.

[DEPRECATED–please use GPUdb::grantPermission instead] Grants a credential-level permission to a user or role.

Definition at line 22 of file grant_permission_credential.h.

Constructor & Destructor Documentation

◆ GrantPermissionCredentialRequest() [1/2]

gpudb::GrantPermissionCredentialRequest::GrantPermissionCredentialRequest ()
inline

Constructs a GrantPermissionCredentialRequest object with default parameters.

Definition at line 28 of file grant_permission_credential.h.

◆ GrantPermissionCredentialRequest() [2/2]

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

Constructs a GrantPermissionCredentialRequest 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]credentialName_Name of the credential on which the permission will be granted. Must be an existing credential, or an empty string to grant access on all credentials.
[in]options_Optional parameters. The default value is an empty map.

Definition at line 63 of file grant_permission_credential.h.

Member Data Documentation

◆ credentialName

std::string gpudb::GrantPermissionCredentialRequest::credentialName

Name of the credential on which the permission will be granted.

Must be an existing credential, or an empty string to grant access on all credentials.

Definition at line 96 of file grant_permission_credential.h.

◆ name

std::string gpudb::GrantPermissionCredentialRequest::name

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

Must be an existing user or role.

Definition at line 75 of file grant_permission_credential.h.

◆ options

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

Optional parameters.

The default value is an empty map.

Definition at line 101 of file grant_permission_credential.h.

◆ permission

std::string gpudb::GrantPermissionCredentialRequest::permission

Permission to grant to the user or role.

Supported values:

Definition at line 89 of file grant_permission_credential.h.


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