GPUdb C++ API  Version 7.2.2.4
alter_credential.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 __ALTER_CREDENTIAL_H__
7 #define __ALTER_CREDENTIAL_H__
8 
9 namespace gpudb
10 {
20  {
25  credentialName(std::string()),
26  credentialUpdatesMap(std::map<std::string, std::string>()),
27  options(std::map<std::string, std::string>())
28  {
29  }
30 
108  AlterCredentialRequest(const std::string& credentialName_, const std::map<std::string, std::string>& credentialUpdatesMap_, const std::map<std::string, std::string>& options_):
109  credentialName( credentialName_ ),
110  credentialUpdatesMap( credentialUpdatesMap_ ),
111  options( options_ )
112  {
113  }
114 
119  std::string credentialName;
120 
165  std::map<std::string, std::string> credentialUpdatesMap;
166 
170  std::map<std::string, std::string> options;
171  };
172 } // end namespace gpudb
173 
174 namespace avro
175 {
176  template<> struct codec_traits<gpudb::AlterCredentialRequest>
177  {
178  static void encode(Encoder& e, const gpudb::AlterCredentialRequest& v)
179  {
180  ::avro::encode(e, v.credentialName);
181  ::avro::encode(e, v.credentialUpdatesMap);
182  ::avro::encode(e, v.options);
183  }
184 
185  static void decode(Decoder& d, gpudb::AlterCredentialRequest& 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.credentialName);
197  break;
198 
199  case 1:
200  ::avro::decode(d, v.credentialUpdatesMap);
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.credentialName);
215  ::avro::decode(d, v.credentialUpdatesMap);
216  ::avro::decode(d, v.options);
217  }
218  }
219  };
220 } // end namespace avro
221 
222 namespace gpudb
223 {
230  {
236  credentialName(std::string()),
237  info(std::map<std::string, std::string>())
238  {
239  }
240 
245  std::string credentialName;
246 
250  std::map<std::string, std::string> info;
251  };
252 } // end namespace gpudb
253 
254 namespace avro
255 {
256  template<> struct codec_traits<gpudb::AlterCredentialResponse>
257  {
258  static void encode(Encoder& e, const gpudb::AlterCredentialResponse& v)
259  {
260  ::avro::encode(e, v.credentialName);
261  ::avro::encode(e, v.info);
262  }
263 
264  static void decode(Decoder& d, gpudb::AlterCredentialResponse& v)
265  {
266  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
267  {
268  const std::vector<size_t> fo = rd->fieldOrder();
269 
270  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
271  {
272  switch (*it)
273  {
274  case 0:
275  ::avro::decode(d, v.credentialName);
276  break;
277 
278  case 1:
279  ::avro::decode(d, v.info);
280  break;
281 
282  default:
283  break;
284  }
285  }
286  }
287  else
288  {
289  ::avro::decode(d, v.credentialName);
290  ::avro::decode(d, v.info);
291  }
292  }
293  };
294 } // end namespace avro
295 
296 #endif // __ALTER_CREDENTIAL_H__
std::map< std::string, std::string > options
Optional parameters.
AlterCredentialResponse()
Constructs an AlterCredentialResponse object with default parameters.
std::string credentialName
Value of credentialName.
A set of results returned by GPUdb::alterCredential.
std::map< std::string, std::string > credentialUpdatesMap
Map containing the properties of the credential to be updated.
A set of parameters for GPUdb::alterCredential.
AlterCredentialRequest()
Constructs an AlterCredentialRequest object with default parameters.
std::string credentialName
Name of the credential to be altered.
std::map< std::string, std::string > info
Additional information.
AlterCredentialRequest(const std::string &credentialName_, const std::map< std::string, std::string > &credentialUpdatesMap_, const std::map< std::string, std::string > &options_)
Constructs an AlterCredentialRequest object with the specified parameters.