Skip to main content

◆ grantPermissionCredential() [1/4]

GrantPermissionCredentialResponse gpudb::GPUdb::grantPermissionCredential (const GrantPermissionCredentialRequest &request_) const

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

Parameters
[in]request_Request object containing the parameters for the operation.
Returns
Response object containing the result of the operation.

◆ grantPermissionCredential() [2/4]

GrantPermissionCredentialResponse & gpudb::GPUdb::grantPermissionCredential (const GrantPermissionCredentialRequest &request_,
GrantPermissionCredentialResponse &response_ ) const

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

Parameters
[in]request_Request object containing the parameters for the operation.
[out]response_Response object containing the results of the operation.
Returns
Response object containing the result of the operation (initially passed in by reference).

◆ grantPermissionCredential() [3/4]

GrantPermissionCredentialResponse gpudb::GPUdb::grantPermissionCredential (const std::string &name,
const std::string &permission,
const std::string &credentialName,
const std::map< std::string, std::string > &options ) const

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

Parameters
[in]nameName of the user or role to which the permission will be granted. Must be an existing user or role.
[in]permissionPermission to grant to the user or role. Supported values:
[in]credentialNameName 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]optionsOptional parameters. The default value is an empty map.
Returns
Response object containing the result of the operation.

◆ grantPermissionCredential() [4/4]

GrantPermissionCredentialResponse & gpudb::GPUdb::grantPermissionCredential (const std::string &name,
const std::string &permission,
const std::string &credentialName,
const std::map< std::string, std::string > &options,
GrantPermissionCredentialResponse &response_ ) const

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

Parameters
[in]nameName of the user or role to which the permission will be granted. Must be an existing user or role.
[in]permissionPermission to grant to the user or role. Supported values:
[in]credentialNameName 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]optionsOptional parameters. The default value is an empty map.
[out]response_Response object containing the results of the operation.
Returns
Response object containing the result of the operation (initially passed in by reference).