GPUdb C++ API  Version 7.2.2.4
create_user_internal.h
Go to the documentation of this file.
1 /*
2  * This file was autogenerated by the Kinetica schema processor.
3  *
4  * DO NOT EDIT DIRECTLY.
5  */
6 #ifndef __CREATE_USER_INTERNAL_H__
7 #define __CREATE_USER_INTERNAL_H__
8 
9 namespace gpudb
10 {
20  {
26  name(std::string()),
27  password(std::string()),
28  options(std::map<std::string, std::string>())
29  {
30  }
31 
105  CreateUserInternalRequest(const std::string& name_, const std::string& password_, const std::map<std::string, std::string>& options_):
106  name( name_ ),
107  password( password_ ),
108  options( options_ )
109  {
110  }
111 
117  std::string name;
118 
123  std::string password;
124 
170  std::map<std::string, std::string> options;
171  };
172 } // end namespace gpudb
173 
174 namespace avro
175 {
176  template<> struct codec_traits<gpudb::CreateUserInternalRequest>
177  {
178  static void encode(Encoder& e, const gpudb::CreateUserInternalRequest& v)
179  {
180  ::avro::encode(e, v.name);
181  ::avro::encode(e, v.password);
182  ::avro::encode(e, v.options);
183  }
184 
185  static void decode(Decoder& d, gpudb::CreateUserInternalRequest& v)
186  {
187  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
188  {
189  const std::vector<size_t> fo = rd->fieldOrder();
190 
191  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
192  {
193  switch (*it)
194  {
195  case 0:
196  ::avro::decode(d, v.name);
197  break;
198 
199  case 1:
200  ::avro::decode(d, v.password);
201  break;
202 
203  case 2:
204  ::avro::decode(d, v.options);
205  break;
206 
207  default:
208  break;
209  }
210  }
211  }
212  else
213  {
214  ::avro::decode(d, v.name);
215  ::avro::decode(d, v.password);
216  ::avro::decode(d, v.options);
217  }
218  }
219  };
220 } // end namespace avro
221 
222 namespace gpudb
223 {
230  {
236  name(std::string()),
237  info(std::map<std::string, std::string>())
238  {
239  }
240 
244  std::string name;
245 
249  std::map<std::string, std::string> info;
250  };
251 } // end namespace gpudb
252 
253 namespace avro
254 {
255  template<> struct codec_traits<gpudb::CreateUserInternalResponse>
256  {
257  static void encode(Encoder& e, const gpudb::CreateUserInternalResponse& v)
258  {
259  ::avro::encode(e, v.name);
260  ::avro::encode(e, v.info);
261  }
262 
263  static void decode(Decoder& d, gpudb::CreateUserInternalResponse& v)
264  {
265  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
266  {
267  const std::vector<size_t> fo = rd->fieldOrder();
268 
269  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
270  {
271  switch (*it)
272  {
273  case 0:
274  ::avro::decode(d, v.name);
275  break;
276 
277  case 1:
278  ::avro::decode(d, v.info);
279  break;
280 
281  default:
282  break;
283  }
284  }
285  }
286  else
287  {
288  ::avro::decode(d, v.name);
289  ::avro::decode(d, v.info);
290  }
291  }
292  };
293 } // end namespace avro
294 
295 #endif // __CREATE_USER_INTERNAL_H__
A set of parameters for GPUdb::createUserInternal.
std::string password
Initial password of the user to be created.
std::string name
Name of the user to be created.
A set of results returned by GPUdb::createUserInternal.
std::map< std::string, std::string > options
Optional parameters.
CreateUserInternalResponse()
Constructs a CreateUserInternalResponse object with default parameters.
std::map< std::string, std::string > info
Additional information.
CreateUserInternalRequest()
Constructs a CreateUserInternalRequest object with default parameters.
CreateUserInternalRequest(const std::string &name_, const std::string &password_, const std::map< std::string, std::string > &options_)
Constructs a CreateUserInternalRequest object with the specified parameters.