6 #ifndef __ALTER_USER_H__ 7 #define __ALTER_USER_H__ 26 options(std::map<std::string, std::string>())
72 AlterUserRequest(
const std::string& name_,
const std::string& action_,
const std::string& value_,
const std::map<std::string, std::string>& options_):
127 template<>
struct codec_traits<
gpudb::AlterUserRequest>
131 ::avro::encode(e, v.
name);
132 ::avro::encode(e, v.
action);
133 ::avro::encode(e, v.
value);
139 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
141 const std::vector<size_t> fo = rd->fieldOrder();
143 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
148 ::avro::decode(d, v.
name);
152 ::avro::decode(d, v.
action);
156 ::avro::decode(d, v.
value);
170 ::avro::decode(d, v.
name);
171 ::avro::decode(d, v.
action);
172 ::avro::decode(d, v.
value);
192 info(std::map<std::string, std::string>())
204 std::map<std::string, std::string>
info;
210 template<>
struct codec_traits<
gpudb::AlterUserResponse>
214 ::avro::encode(e, v.
name);
215 ::avro::encode(e, v.
info);
220 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
222 const std::vector<size_t> fo = rd->fieldOrder();
224 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
229 ::avro::decode(d, v.
name);
233 ::avro::decode(d, v.
info);
243 ::avro::decode(d, v.
name);
244 ::avro::decode(d, v.
info);
250 #endif // __ALTER_USER_H__ std::map< std::string, std::string > info
Additional information.
std::string action
Modification operation to be applied to the user.
std::string name
Name of the user to be altered.
std::map< std::string, std::string > options
Optional parameters.
AlterUserRequest()
Constructs an AlterUserRequest object with default parameters.
A set of results returned by GPUdb::alterUser.
A set of parameters for GPUdb::alterUser.
AlterUserRequest(const std::string &name_, const std::string &action_, const std::string &value_, const std::map< std::string, std::string > &options_)
Constructs an AlterUserRequest object with the specified parameters.
std::string name
Value of name.
AlterUserResponse()
Constructs an AlterUserResponse object with default parameters.
std::string value
The value of the modification, depending on action.