6 #ifndef __ALTER_ROLE_H__ 7 #define __ALTER_ROLE_H__ 26 options(std::map<std::string, std::string>())
55 AlterRoleRequest(
const std::string& name_,
const std::string& action_,
const std::string& value_,
const std::map<std::string, std::string>& options_):
91 std::map<std::string, std::string>
options;
97 template<>
struct codec_traits<
gpudb::AlterRoleRequest>
101 ::avro::encode(e, v.
name);
102 ::avro::encode(e, v.
action);
103 ::avro::encode(e, v.
value);
109 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
111 const std::vector<size_t> fo = rd->fieldOrder();
113 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
118 ::avro::decode(d, v.
name);
122 ::avro::decode(d, v.
action);
126 ::avro::decode(d, v.
value);
140 ::avro::decode(d, v.
name);
141 ::avro::decode(d, v.
action);
142 ::avro::decode(d, v.
value);
162 info(std::map<std::string, std::string>())
174 std::map<std::string, std::string>
info;
180 template<>
struct codec_traits<
gpudb::AlterRoleResponse>
184 ::avro::encode(e, v.
name);
185 ::avro::encode(e, v.
info);
190 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
192 const std::vector<size_t> fo = rd->fieldOrder();
194 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
199 ::avro::decode(d, v.
name);
203 ::avro::decode(d, v.
info);
213 ::avro::decode(d, v.
name);
214 ::avro::decode(d, v.
info);
220 #endif // __ALTER_ROLE_H__ std::string action
Modification operation to be applied to the role.
A set of parameters for GPUdb::alterRole.
std::string value
The value of the modification, depending on action.
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
Optional parameters.
AlterRoleResponse()
Constructs an AlterRoleResponse object with default parameters.
std::string name
Name of the role to be altered.
std::string name
Value of name.
AlterRoleRequest()
Constructs an AlterRoleRequest object with default parameters.
std::map< std::string, std::string > info
Additional information.
A set of results returned by GPUdb::alterRole.