GPUdb C++ API  Version 7.2.3.0
show_backup.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 __SHOW_BACKUP_H__
7 #define __SHOW_BACKUP_H__
8 
9 namespace gpudb
10 {
22  {
27  backupName(std::string()),
28  datasourceName(std::string()),
29  options(std::map<std::string, std::string>())
30  {
31  }
32 
117  ShowBackupRequest(const std::string& backupName_, const std::string& datasourceName_, const std::map<std::string, std::string>& options_):
118  backupName( backupName_ ),
119  datasourceName( datasourceName_ ),
120  options( options_ )
121  {
122  }
123 
129  std::string backupName;
130 
134  std::string datasourceName;
135 
192  std::map<std::string, std::string> options;
193  };
194 } // end namespace gpudb
195 
196 namespace avro
197 {
198  template<> struct codec_traits<gpudb::ShowBackupRequest>
199  {
200  static void encode(Encoder& e, const gpudb::ShowBackupRequest& v)
201  {
202  ::avro::encode(e, v.backupName);
203  ::avro::encode(e, v.datasourceName);
204  ::avro::encode(e, v.options);
205  }
206 
207  static void decode(Decoder& d, gpudb::ShowBackupRequest& v)
208  {
209  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
210  {
211  const std::vector<size_t> fo = rd->fieldOrder();
212 
213  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
214  {
215  switch (*it)
216  {
217  case 0:
218  ::avro::decode(d, v.backupName);
219  break;
220 
221  case 1:
222  ::avro::decode(d, v.datasourceName);
223  break;
224 
225  case 2:
226  ::avro::decode(d, v.options);
227  break;
228 
229  default:
230  break;
231  }
232  }
233  }
234  else
235  {
236  ::avro::decode(d, v.backupName);
237  ::avro::decode(d, v.datasourceName);
238  ::avro::decode(d, v.options);
239  }
240  }
241  };
242 } // end namespace avro
243 
244 namespace gpudb
245 {
251  {
256  backupName(std::string()),
257  backupDescription(std::vector<std::map<std::string, std::string> >()),
258  backupIds(std::vector<std::map<std::string, std::string> >()),
259  backupContents(std::vector<std::map<std::string, std::string> >()),
260  deletedBackupIds(std::vector<std::map<std::string, std::string> >()),
261  info(std::map<std::string, std::string>())
262  {
263  }
264 
268  std::string backupName;
269 
273  std::vector<std::map<std::string, std::string> > backupDescription;
274 
279  std::vector<std::map<std::string, std::string> > backupIds;
280 
289  std::vector<std::map<std::string, std::string> > backupContents;
290 
295  std::vector<std::map<std::string, std::string> > deletedBackupIds;
296 
300  std::map<std::string, std::string> info;
301  };
302 } // end namespace gpudb
303 
304 namespace avro
305 {
306  template<> struct codec_traits<gpudb::ShowBackupResponse>
307  {
308  static void encode(Encoder& e, const gpudb::ShowBackupResponse& v)
309  {
310  ::avro::encode(e, v.backupName);
311  ::avro::encode(e, v.backupDescription);
312  ::avro::encode(e, v.backupIds);
313  ::avro::encode(e, v.backupContents);
314  ::avro::encode(e, v.deletedBackupIds);
315  ::avro::encode(e, v.info);
316  }
317 
318  static void decode(Decoder& d, gpudb::ShowBackupResponse& v)
319  {
320  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
321  {
322  const std::vector<size_t> fo = rd->fieldOrder();
323 
324  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
325  {
326  switch (*it)
327  {
328  case 0:
329  ::avro::decode(d, v.backupName);
330  break;
331 
332  case 1:
333  ::avro::decode(d, v.backupDescription);
334  break;
335 
336  case 2:
337  ::avro::decode(d, v.backupIds);
338  break;
339 
340  case 3:
341  ::avro::decode(d, v.backupContents);
342  break;
343 
344  case 4:
345  ::avro::decode(d, v.deletedBackupIds);
346  break;
347 
348  case 5:
349  ::avro::decode(d, v.info);
350  break;
351 
352  default:
353  break;
354  }
355  }
356  }
357  else
358  {
359  ::avro::decode(d, v.backupName);
360  ::avro::decode(d, v.backupDescription);
361  ::avro::decode(d, v.backupIds);
362  ::avro::decode(d, v.backupContents);
363  ::avro::decode(d, v.deletedBackupIds);
364  ::avro::decode(d, v.info);
365  }
366  }
367  };
368 } // end namespace avro
369 
370 #endif // __SHOW_BACKUP_H__
std::vector< std::map< std::string, std::string > > backupDescription
Details about the overall backup(s).
Definition: show_backup.h:273
std::vector< std::map< std::string, std::string > > deletedBackupIds
IDs of any snapshots that have been deleted from the containing backup(s).
Definition: show_backup.h:295
std::vector< std::map< std::string, std::string > > backupContents
When show_contents is object_names, the names of the backed-up objects as well as sizing detail of an...
Definition: show_backup.h:289
std::string backupName
Value of backupName.
Definition: show_backup.h:268
std::map< std::string, std::string > options
Optional parameters.
Definition: show_backup.h:192
std::string datasourceName
Data source through which the backup is accessible.
Definition: show_backup.h:134
ShowBackupRequest()
Constructs a ShowBackupRequest object with default parameters.
Definition: show_backup.h:26
std::string backupName
Name of the backup.
Definition: show_backup.h:129
A set of results returned by GPUdb::showBackup.
Definition: show_backup.h:250
A set of parameters for GPUdb::showBackup.
Definition: show_backup.h:21
ShowBackupResponse()
Constructs a ShowBackupResponse object with default parameters.
Definition: show_backup.h:255
ShowBackupRequest(const std::string &backupName_, const std::string &datasourceName_, const std::map< std::string, std::string > &options_)
Constructs a ShowBackupRequest object with the specified parameters.
Definition: show_backup.h:117
std::map< std::string, std::string > info
Additional information.
Definition: show_backup.h:300
std::vector< std::map< std::string, std::string > > backupIds
Details about the individual snapshots contained within the backup(s).
Definition: show_backup.h:279