◆ grantPermission() [1/4]
| GrantPermissionResponse gpudb::GPUdb::grantPermission | ( | const GrantPermissionRequest & | request_ | ) | const |
◆ grantPermission() [2/4]
| GrantPermissionResponse & gpudb::GPUdb::grantPermission | ( | const GrantPermissionRequest & | request_, |
| GrantPermissionResponse & | response_ ) const |
Grant user or role the specified permission on the specified object.
Parameters
Returns
Response object containing the result of the operation (initially passed in by reference).
◆ grantPermission() [3/4]
| GrantPermissionResponse gpudb::GPUdb::grantPermission | ( | const std::string & | principal, |
| const std::string & | object, | ||
| const std::string & | objectType, | ||
| const std::string & | permission, | ||
| const std::map< std::string, std::string > & | options ) const |
Grant user or role the specified permission on the specified object.
Parameters
| [in] | principal | Name of the user or role for which the permission is being granted. Must be an existing user or role. The default value is ”. |
| [in] | object | Name of object permission is being granted to. It is recommended to use a fully-qualified name when possible. |
| [in] | objectType | The type of object being granted to. Supported values:
|
| [in] | permission | Permission being granted. Supported values:
|
| [in] | options | Optional parameters.
|
Returns
Response object containing the result of the operation.
◆ grantPermission() [4/4]
| GrantPermissionResponse & gpudb::GPUdb::grantPermission | ( | const std::string & | principal, |
| const std::string & | object, | ||
| const std::string & | objectType, | ||
| const std::string & | permission, | ||
| const std::map< std::string, std::string > & | options, | ||
| GrantPermissionResponse & | response_ ) const |
Grant user or role the specified permission on the specified object.
Parameters
| [in] | principal | Name of the user or role for which the permission is being granted. Must be an existing user or role. The default value is ”. |
| [in] | object | Name of object permission is being granted to. It is recommended to use a fully-qualified name when possible. |
| [in] | objectType | The type of object being granted to. Supported values:
|
| [in] | permission | Permission being granted. Supported values:
|
| [in] | options | Optional parameters.
|
| [out] | response_ | Response object containing the results of the operation. |
Returns
Response object containing the result of the operation (initially passed in by reference).