6 #ifndef __GRANT_ROLE_H__ 7 #define __GRANT_ROLE_H__ 25 options(std::map<std::string, std::string>())
40 GrantRoleRequest(
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::GrantRoleRequest>
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::GrantRoleResponse>
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 // __GRANT_ROLE_H__ std::string role
Value of role.
GrantRoleRequest()
Constructs a GrantRoleRequest object with default parameters.
std::map< std::string, std::string > options
Optional parameters.
std::string member
Name of the user or role that will be granted membership in role.
GrantRoleRequest(const std::string &role_, const std::string &member_, const std::map< std::string, std::string > &options_)
Constructs a GrantRoleRequest object with the specified parameters.
A set of results returned by GPUdb::grantRole.
std::string member
Value of member.
std::map< std::string, std::string > info
Additional information.
GrantRoleResponse()
Constructs a GrantRoleResponse object with default parameters.
std::string role
Name of the role in which membership will be granted.
A set of parameters for GPUdb::grantRole.