6 #ifndef __GRANT_PERMISSION_TABLE_H__ 7 #define __GRANT_PERMISSION_TABLE_H__ 29 options(std::map<std::string, std::string>())
87 GrantPermissionTableRequest(
const std::string& name_,
const std::string& permission_,
const std::string& tableName_,
const std::string& filterExpression_,
const std::map<std::string, std::string>& options_):
156 template<>
struct codec_traits<
gpudb::GrantPermissionTableRequest>
160 ::avro::encode(e, v.
name);
169 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
171 const std::vector<size_t> fo = rd->fieldOrder();
173 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
178 ::avro::decode(d, v.
name);
204 ::avro::decode(d, v.
name);
232 info(std::map<std::string, std::string>())
262 std::map<std::string, std::string>
info;
268 template<>
struct codec_traits<
gpudb::GrantPermissionTableResponse>
272 ::avro::encode(e, v.
name);
276 ::avro::encode(e, v.
info);
281 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
283 const std::vector<size_t> fo = rd->fieldOrder();
285 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
290 ::avro::decode(d, v.
name);
306 ::avro::decode(d, v.
info);
316 ::avro::decode(d, v.
name);
320 ::avro::decode(d, v.
info);
326 #endif // __GRANT_PERMISSION_TABLE_H__ std::string filterExpression
Optional filter expression to apply to this grant.
GrantPermissionTableRequest()
Constructs a GrantPermissionTableRequest object with default parameters.
std::map< std::string, std::string > info
Additional information.
std::string name
Name of the user or role to which the permission will be granted.
A set of results returned by GPUdb::grantPermissionTable.
GrantPermissionTableRequest(const std::string &name_, const std::string &permission_, const std::string &tableName_, const std::string &filterExpression_, const std::map< std::string, std::string > &options_)
Constructs a GrantPermissionTableRequest object with the specified parameters.
std::map< std::string, std::string > options
Optional parameters.
std::string filterExpression
Value of filterExpression.
GrantPermissionTableResponse()
Constructs a GrantPermissionTableResponse object with default parameters.
std::string name
Value of name.
std::string tableName
Name of the table to which the permission grants access, in [ schema_name. ]table_name format,...
std::string tableName
Value of tableName.
std::string permission
Permission to grant to the user or role.
A set of parameters for GPUdb::grantPermissionTable.
std::string permission
Value of permission.