6 #ifndef __SHOW_SECURITY_H__
7 #define __SHOW_SECURITY_H__
28 names(std::vector<std::string>()),
29 options(std::map<std::string, std::string>())
56 ShowSecurityRequest(
const std::vector<std::string>& names_,
const std::map<std::string, std::string>& options_):
63 std::map<std::string, std::string>
options;
69 template<>
struct codec_traits<gpudb::ShowSecurityRequest>
73 ::avro::encode(e, v.
names);
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.
names);
102 ::avro::decode(d, v.
names);
128 types(std::map<std::string, std::string>()),
129 roles(std::map<std::string, std::vector<std::string> >()),
130 permissions(std::map<std::string, std::vector<std::map<std::string, std::string> > >()),
132 info(std::map<std::string, std::string>())
136 std::map<std::string, std::string>
types;
137 std::map<std::string, std::vector<std::string> >
roles;
138 std::map<std::string, std::vector<std::map<std::string, std::string> > >
permissions;
140 std::map<std::string, std::string>
info;
146 template<>
struct codec_traits<gpudb::ShowSecurityResponse>
150 ::avro::encode(e, v.
types);
151 ::avro::encode(e, v.
roles);
154 ::avro::encode(e, v.
info);
159 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
161 const std::vector<size_t> fo = rd->fieldOrder();
163 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
168 ::avro::decode(d, v.
types);
172 ::avro::decode(d, v.
roles);
184 ::avro::decode(d, v.
info);
194 ::avro::decode(d, v.
types);
195 ::avro::decode(d, v.
roles);
198 ::avro::decode(d, v.
info);
std::map< std::string, std::vector< std::map< std::string, std::string > > > permissions
std::map< std::string, std::string > options
A set of output parameters for const.
std::map< std::string, std::vector< std::string > > roles
std::map< std::string, std::string > resourceGroups
ShowSecurityResponse()
Constructs a ShowSecurityResponse object with default parameter values.
std::map< std::string, std::string > types
std::map< std::string, std::string > info
A set of input parameters for const.
ShowSecurityRequest()
Constructs a ShowSecurityRequest object with default parameter values.
ShowSecurityRequest(const std::vector< std::string > &names_, const std::map< std::string, std::string > &options_)
Constructs a ShowSecurityRequest object with the specified parameters.
std::vector< std::string > names