6 #ifndef __GRANT_PERMISSION_PROC_H__ 7 #define __GRANT_PERMISSION_PROC_H__ 28 options(std::map<std::string, std::string>())
56 GrantPermissionProcRequest(
const std::string& name_,
const std::string& permission_,
const std::string& procName_,
const std::map<std::string, std::string>& options_):
93 std::map<std::string, std::string>
options;
99 template<>
struct codec_traits<
gpudb::GrantPermissionProcRequest>
103 ::avro::encode(e, v.
name);
111 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
113 const std::vector<size_t> fo = rd->fieldOrder();
115 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
120 ::avro::decode(d, v.
name);
142 ::avro::decode(d, v.
name);
168 info(std::map<std::string, std::string>())
192 std::map<std::string, std::string>
info;
198 template<>
struct codec_traits<
gpudb::GrantPermissionProcResponse>
202 ::avro::encode(e, v.
name);
205 ::avro::encode(e, v.
info);
210 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
212 const std::vector<size_t> fo = rd->fieldOrder();
214 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
219 ::avro::decode(d, v.
name);
231 ::avro::decode(d, v.
info);
241 ::avro::decode(d, v.
name);
244 ::avro::decode(d, v.
info);
250 #endif // __GRANT_PERMISSION_PROC_H__ A set of parameters for GPUdb::grantPermissionProc.
GrantPermissionProcRequest(const std::string &name_, const std::string &permission_, const std::string &procName_, const std::map< std::string, std::string > &options_)
Constructs a GrantPermissionProcRequest object with the specified parameters.
GrantPermissionProcResponse()
Constructs a GrantPermissionProcResponse object with default parameters.
std::string name
Name of the user or role to which the permission will be granted.
std::string procName
Name of the proc to which the permission grants access.
std::string permission
Value of permission.
std::string permission
Permission to grant to the user or role.
A set of results returned by GPUdb::grantPermissionProc.
std::map< std::string, std::string > info
Additional information.
std::map< std::string, std::string > options
Optional parameters.
GrantPermissionProcRequest()
Constructs a GrantPermissionProcRequest object with default parameters.
std::string procName
Value of procName.
std::string name
Value of name.