6 #ifndef __REVOKE_ROLE_H__ 7 #define __REVOKE_ROLE_H__ 25 options(std::map<std::string, std::string>())
40 RevokeRoleRequest(
const std::string& role_,
const std::string& member_,
const std::map<std::string, std::string>& options_):
62 std::map<std::string, std::string>
options;
68 template<>
struct codec_traits<
gpudb::RevokeRoleRequest>
72 ::avro::encode(e, v.
role);
73 ::avro::encode(e, v.
member);
79 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
81 const std::vector<size_t> fo = rd->fieldOrder();
83 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
88 ::avro::decode(d, v.
role);
92 ::avro::decode(d, v.
member);
106 ::avro::decode(d, v.
role);
107 ::avro::decode(d, v.
member);
128 info(std::map<std::string, std::string>())
145 std::map<std::string, std::string>
info;
151 template<>
struct codec_traits<
gpudb::RevokeRoleResponse>
155 ::avro::encode(e, v.
role);
156 ::avro::encode(e, v.
member);
157 ::avro::encode(e, v.
info);
162 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
164 const std::vector<size_t> fo = rd->fieldOrder();
166 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
171 ::avro::decode(d, v.
role);
175 ::avro::decode(d, v.
member);
179 ::avro::decode(d, v.
info);
189 ::avro::decode(d, v.
role);
190 ::avro::decode(d, v.
member);
191 ::avro::decode(d, v.
info);
197 #endif // __REVOKE_ROLE_H__
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 results returned by GPUdb::revokeRole.
std::string member
Name of the user or role that will be revoked membership in role.
std::map< std::string, std::string > info
Additional information.
std::map< std::string, std::string > options
Optional parameters.
RevokeRoleRequest()
Constructs a RevokeRoleRequest object with default parameters.
std::string role
Value of role.
std::string member
Value of member.
RevokeRoleResponse()
Constructs a RevokeRoleResponse object with default parameters.
std::string role
Name of the role in which membership will be revoked.
A set of parameters for GPUdb::revokeRole.