GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
show_security.h
Go to the documentation of this file.
1 /*
2  * This file was autogenerated by the GPUdb schema processor.
3  *
4  * DO NOT EDIT DIRECTLY.
5  */
6 #ifndef __SHOW_SECURITY_H__
7 #define __SHOW_SECURITY_H__
8 
9 namespace gpudb
10 {
11 
21  {
22 
28  names(std::vector<std::string>()),
29  options(std::map<std::string, std::string>())
30  {
31  }
32 
56  ShowSecurityRequest(const std::vector<std::string>& names_, const std::map<std::string, std::string>& options_):
57  names( names_ ),
58  options( options_ )
59  {
60  }
61 
62  std::vector<std::string> names;
63  std::map<std::string, std::string> options;
64  };
65 }
66 
67 namespace avro
68 {
69  template<> struct codec_traits<gpudb::ShowSecurityRequest>
70  {
71  static void encode(Encoder& e, const gpudb::ShowSecurityRequest& v)
72  {
73  ::avro::encode(e, v.names);
74  ::avro::encode(e, v.options);
75  }
76 
77  static void decode(Decoder& d, gpudb::ShowSecurityRequest& v)
78  {
79  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
80  {
81  const std::vector<size_t> fo = rd->fieldOrder();
82 
83  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
84  {
85  switch (*it)
86  {
87  case 0:
88  ::avro::decode(d, v.names);
89  break;
90 
91  case 1:
92  ::avro::decode(d, v.options);
93  break;
94 
95  default:
96  break;
97  }
98  }
99  }
100  else
101  {
102  ::avro::decode(d, v.names);
103  ::avro::decode(d, v.options);
104  }
105  }
106  };
107 }
108 
109 namespace gpudb
110 {
111 
121  {
122 
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> > >()),
131  resourceGroups(std::map<std::string, std::string>()),
132  info(std::map<std::string, std::string>())
133  {
134  }
135 
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;
139  std::map<std::string, std::string> resourceGroups;
140  std::map<std::string, std::string> info;
141  };
142 }
143 
144 namespace avro
145 {
146  template<> struct codec_traits<gpudb::ShowSecurityResponse>
147  {
148  static void encode(Encoder& e, const gpudb::ShowSecurityResponse& v)
149  {
150  ::avro::encode(e, v.types);
151  ::avro::encode(e, v.roles);
152  ::avro::encode(e, v.permissions);
153  ::avro::encode(e, v.resourceGroups);
154  ::avro::encode(e, v.info);
155  }
156 
157  static void decode(Decoder& d, gpudb::ShowSecurityResponse& v)
158  {
159  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
160  {
161  const std::vector<size_t> fo = rd->fieldOrder();
162 
163  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
164  {
165  switch (*it)
166  {
167  case 0:
168  ::avro::decode(d, v.types);
169  break;
170 
171  case 1:
172  ::avro::decode(d, v.roles);
173  break;
174 
175  case 2:
176  ::avro::decode(d, v.permissions);
177  break;
178 
179  case 3:
180  ::avro::decode(d, v.resourceGroups);
181  break;
182 
183  case 4:
184  ::avro::decode(d, v.info);
185  break;
186 
187  default:
188  break;
189  }
190  }
191  }
192  else
193  {
194  ::avro::decode(d, v.types);
195  ::avro::decode(d, v.roles);
196  ::avro::decode(d, v.permissions);
197  ::avro::decode(d, v.resourceGroups);
198  ::avro::decode(d, v.info);
199  }
200  }
201  };
202 }
203 
204 #endif
std::map< std::string, std::vector< std::map< std::string, std::string > > > permissions
std::map< std::string, std::string > options
Definition: show_security.h:63
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.
Definition: show_security.h:20
ShowSecurityRequest()
Constructs a ShowSecurityRequest object with default parameter values.
Definition: show_security.h:27
ShowSecurityRequest(const std::vector< std::string > &names_, const std::map< std::string, std::string > &options_)
Constructs a ShowSecurityRequest object with the specified parameters.
Definition: show_security.h:56
std::vector< std::string > names
Definition: show_security.h:62