6 #ifndef __REVOKE_ROLE_H__
7 #define __REVOKE_ROLE_H__
27 options(std::map<std::string, std::string>())
42 RevokeRoleRequest(
const std::string& role_,
const std::string& member_,
const std::map<std::string, std::string>& options_):
51 std::map<std::string, std::string>
options;
57 template<>
struct codec_traits<gpudb::RevokeRoleRequest>
61 ::avro::encode(e, v.
role);
62 ::avro::encode(e, v.
member);
68 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
70 const std::vector<size_t> fo = rd->fieldOrder();
72 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
77 ::avro::decode(d, v.
role);
81 ::avro::decode(d, v.
member);
95 ::avro::decode(d, v.
role);
96 ::avro::decode(d, v.
member);
122 info(std::map<std::string, std::string>())
128 std::map<std::string, std::string>
info;
134 template<>
struct codec_traits<gpudb::RevokeRoleResponse>
138 ::avro::encode(e, v.
role);
139 ::avro::encode(e, v.
member);
140 ::avro::encode(e, v.
info);
145 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
147 const std::vector<size_t> fo = rd->fieldOrder();
149 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
154 ::avro::decode(d, v.
role);
158 ::avro::decode(d, v.
member);
162 ::avro::decode(d, v.
info);
172 ::avro::decode(d, v.
role);
173 ::avro::decode(d, v.
member);
174 ::avro::decode(d, v.
info);
RevokeRoleRequest(const std::string &role_, const std::string &member_, const std::map< std::string, std::string > &options_)
Constructs a RevokeRoleRequest object with the specified parameters.
A set of output parameters for const.
std::map< std::string, std::string > info
std::map< std::string, std::string > options
RevokeRoleRequest()
Constructs a RevokeRoleRequest object with default parameter values.
RevokeRoleResponse()
Constructs a RevokeRoleResponse object with default parameter values.
A set of input parameters for const.