6 #ifndef __REVOKE_PERMISSION_PROC_H__ 7 #define __REVOKE_PERMISSION_PROC_H__ 28 options(std::map<std::string, std::string>())
57 RevokePermissionProcRequest(
const std::string& name_,
const std::string& permission_,
const std::string& procName_,
const std::map<std::string, std::string>& options_):
95 std::map<std::string, std::string>
options;
101 template<>
struct codec_traits<
gpudb::RevokePermissionProcRequest>
105 ::avro::encode(e, v.
name);
113 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
115 const std::vector<size_t> fo = rd->fieldOrder();
117 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
122 ::avro::decode(d, v.
name);
144 ::avro::decode(d, v.
name);
170 info(std::map<std::string, std::string>())
194 std::map<std::string, std::string>
info;
200 template<>
struct codec_traits<
gpudb::RevokePermissionProcResponse>
204 ::avro::encode(e, v.
name);
207 ::avro::encode(e, v.
info);
212 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
214 const std::vector<size_t> fo = rd->fieldOrder();
216 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
221 ::avro::decode(d, v.
name);
233 ::avro::decode(d, v.
info);
243 ::avro::decode(d, v.
name);
246 ::avro::decode(d, v.
info);
252 #endif // __REVOKE_PERMISSION_PROC_H__
std::string name
Name of the user or role from which the permission will be revoked.
std::string procName
Name of the proc to which the permission grants access.
RevokePermissionProcRequest(const std::string &name_, const std::string &permission_, const std::string &procName_, const std::map< std::string, std::string > &options_)
Constructs a RevokePermissionProcRequest object with the specified parameters.
std::string permission
Value of permission.
RevokePermissionProcRequest()
Constructs a RevokePermissionProcRequest object with default parameters.
std::string procName
Value of procName.
std::map< std::string, std::string > options
Optional parameters.
A set of results returned by GPUdb::revokePermissionProc.
std::string permission
Permission to revoke from the user or role.
std::string name
Value of name.
RevokePermissionProcResponse()
Constructs a RevokePermissionProcResponse object with default parameters.
std::map< std::string, std::string > info
Additional information.
A set of parameters for GPUdb::revokePermissionProc.