6 #ifndef __SHOW_SECURITY_H__
7 #define __SHOW_SECURITY_H__
28 names(std::vector<std::string>()),
29 options(std::map<std::string, std::string>())
44 ShowSecurityRequest(
const std::vector<std::string>& names_,
const std::map<std::string, std::string>& options_):
51 std::map<std::string, std::string>
options;
57 template<>
struct codec_traits<gpudb::ShowSecurityRequest>
61 ::avro::encode(e, v.
names);
67 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
69 const std::vector<size_t> fo = rd->fieldOrder();
71 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
76 ::avro::decode(d, v.
names);
90 ::avro::decode(d, v.
names);
116 types(std::map<std::string, std::string>()),
117 roles(std::map<std::string, std::vector<std::string> >()),
118 permissions(std::map<std::string, std::vector<std::map<std::string, std::string> > >()),
120 info(std::map<std::string, std::string>())
124 std::map<std::string, std::string>
types;
125 std::map<std::string, std::vector<std::string> >
roles;
126 std::map<std::string, std::vector<std::map<std::string, std::string> > >
permissions;
128 std::map<std::string, std::string>
info;
134 template<>
struct codec_traits<gpudb::ShowSecurityResponse>
138 ::avro::encode(e, v.
types);
139 ::avro::encode(e, v.
roles);
142 ::avro::encode(e, v.
info);
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)
156 ::avro::decode(d, v.
types);
160 ::avro::decode(d, v.
roles);
172 ::avro::decode(d, v.
info);
182 ::avro::decode(d, v.
types);
183 ::avro::decode(d, v.
roles);
186 ::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