6 #ifndef __ALTER_ROLE_H__
7 #define __ALTER_ROLE_H__
28 options(std::map<std::string, std::string>())
52 AlterRoleRequest(
const std::string& name_,
const std::string& action_,
const std::string& value_,
const std::map<std::string, std::string>& options_):
63 std::map<std::string, std::string>
options;
69 template<>
struct codec_traits<gpudb::AlterRoleRequest>
73 ::avro::encode(e, v.
name);
74 ::avro::encode(e, v.
action);
75 ::avro::encode(e, v.
value);
81 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
83 const std::vector<size_t> fo = rd->fieldOrder();
85 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
90 ::avro::decode(d, v.
name);
94 ::avro::decode(d, v.
action);
98 ::avro::decode(d, v.
value);
112 ::avro::decode(d, v.
name);
113 ::avro::decode(d, v.
action);
114 ::avro::decode(d, v.
value);
139 info(std::map<std::string, std::string>())
144 std::map<std::string, std::string>
info;
150 template<>
struct codec_traits<gpudb::AlterRoleResponse>
154 ::avro::encode(e, v.
name);
155 ::avro::encode(e, v.
info);
160 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
162 const std::vector<size_t> fo = rd->fieldOrder();
164 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
169 ::avro::decode(d, v.
name);
173 ::avro::decode(d, v.
info);
183 ::avro::decode(d, v.
name);
184 ::avro::decode(d, v.
info);
A set of input parameters for const.
AlterRoleRequest(const std::string &name_, const std::string &action_, const std::string &value_, const std::map< std::string, std::string > &options_)
Constructs an AlterRoleRequest object with the specified parameters.
std::map< std::string, std::string > options
AlterRoleResponse()
Constructs an AlterRoleResponse object with default parameter values.
AlterRoleRequest()
Constructs an AlterRoleRequest object with default parameter values.
std::map< std::string, std::string > info
A set of output parameters for const.