25 options(std::map<std::string, std::string>())
79 HasRoleRequest(
const std::string& principal_,
const std::string& role_,
const std::map<std::string, std::string>& options_):
136 template<>
struct codec_traits<
gpudb::HasRoleRequest>
141 ::avro::encode(e, v.
role);
147 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
149 const std::vector<size_t> fo = rd->fieldOrder();
151 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
160 ::avro::decode(d, v.
role);
175 ::avro::decode(d, v.
role);
197 info(std::map<std::string, std::string>())
239 std::map<std::string, std::string>
info;
245 template<>
struct codec_traits<
gpudb::HasRoleResponse>
250 ::avro::encode(e, v.
role);
252 ::avro::encode(e, v.
info);
257 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
259 const std::vector<size_t> fo = rd->fieldOrder();
261 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
270 ::avro::decode(d, v.
role);
278 ::avro::decode(d, v.
info);
289 ::avro::decode(d, v.
role);
291 ::avro::decode(d, v.
info);
297 #endif // __HAS_ROLE_H__ A set of results returned by GPUdb::hasRole.
A set of parameters for GPUdb::hasRole.
std::string principal
Value of principal.
HasRoleRequest()
Constructs a HasRoleRequest object with default parameters.
std::string role
role for which membership is being checked
std::string principal
Name of the user for which role membersih is being checked.
HasRoleResponse()
Constructs a HasRoleResponse object with default parameters.
bool hasRole
Indicates whether the specified user has membership in the specified target role.
std::string role
Name of role to check for membership.
std::map< std::string, std::string > info
Additional information.
std::map< std::string, std::string > options
Optional parameters.
HasRoleRequest(const std::string &principal_, const std::string &role_, const std::map< std::string, std::string > &options_)
Constructs a HasRoleRequest object with the specified parameters.