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 {
19  {
24  backupName(std::string()),
25  datasourceName(std::string()),
26  options(std::map<std::string, std::string>())
27  {
28  }
29 
86  ShowBackupRequest(const std::string& backupName_, const std::string& datasourceName_, const std::map<std::string, std::string>& options_):
87  backupName( backupName_ ),
88  datasourceName( datasourceName_ ),
89  options( options_ )
90  {
91  }
92 
97  std::string backupName;
98 
102  std::string datasourceName;
103 
141  std::map<std::string, std::string> options;
142  };
143 } // end namespace gpudb
144 
145 namespace avro
146 {
147  template<> struct codec_traits<gpudb::ShowBackupRequest>
148  {
149  static void encode(Encoder& e, const gpudb::ShowBackupRequest& v)
150  {
151  ::avro::encode(e, v.backupName);
152  ::avro::encode(e, v.datasourceName);
153  ::avro::encode(e, v.options);
154  }
155 
156  static void decode(Decoder& d, gpudb::ShowBackupRequest& v)
157  {
158  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
159  {
160  const std::vector<size_t> fo = rd->fieldOrder();
161 
162  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
163  {
164  switch (*it)
165  {
166  case 0:
167  ::avro::decode(d, v.backupName);
168  break;
169 
170  case 1:
171  ::avro::decode(d, v.datasourceName);
172  break;
173 
174  case 2:
175  ::avro::decode(d, v.options);
176  break;
177 
178  default:
179  break;
180  }
181  }
182  }
183  else
184  {
185  ::avro::decode(d, v.backupName);
186  ::avro::decode(d, v.datasourceName);
187  ::avro::decode(d, v.options);
188  }
189  }
190  };
191 } // end namespace avro
192 
193 namespace gpudb
194 {
200  {
205  backupName(std::string()),
206  backupDescription(std::vector<std::map<std::string, std::string> >()),
207  backupIds(std::vector<std::map<std::string, std::string> >()),
208  backupContents(std::vector<std::map<std::string, std::string> >()),
209  deletedBackupIds(std::vector<std::map<std::string, std::string> >()),
210  info(std::map<std::string, std::string>())
211  {
212  }
213 
217  std::string backupName;
218 
222  std::vector<std::map<std::string, std::string> > backupDescription;
223 
227  std::vector<std::map<std::string, std::string> > backupIds;
228 
232  std::vector<std::map<std::string, std::string> > backupContents;
233 
237  std::vector<std::map<std::string, std::string> > deletedBackupIds;
238 
242  std::map<std::string, std::string> info;
243  };
244 } // end namespace gpudb
245 
246 namespace avro
247 {
248  template<> struct codec_traits<gpudb::ShowBackupResponse>
249  {
250  static void encode(Encoder& e, const gpudb::ShowBackupResponse& v)
251  {
252  ::avro::encode(e, v.backupName);
253  ::avro::encode(e, v.backupDescription);
254  ::avro::encode(e, v.backupIds);
255  ::avro::encode(e, v.backupContents);
256  ::avro::encode(e, v.deletedBackupIds);
257  ::avro::encode(e, v.info);
258  }
259 
260  static void decode(Decoder& d, gpudb::ShowBackupResponse& v)
261  {
262  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
263  {
264  const std::vector<size_t> fo = rd->fieldOrder();
265 
266  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
267  {
268  switch (*it)
269  {
270  case 0:
271  ::avro::decode(d, v.backupName);
272  break;
273 
274  case 1:
275  ::avro::decode(d, v.backupDescription);
276  break;
277 
278  case 2:
279  ::avro::decode(d, v.backupIds);
280  break;
281 
282  case 3:
283  ::avro::decode(d, v.backupContents);
284  break;
285 
286  case 4:
287  ::avro::decode(d, v.deletedBackupIds);
288  break;
289 
290  case 5:
291  ::avro::decode(d, v.info);
292  break;
293 
294  default:
295  break;
296  }
297  }
298  }
299  else
300  {
301  ::avro::decode(d, v.backupName);
302  ::avro::decode(d, v.backupDescription);
303  ::avro::decode(d, v.backupIds);
304  ::avro::decode(d, v.backupContents);
305  ::avro::decode(d, v.deletedBackupIds);
306  ::avro::decode(d, v.info);
307  }
308  }
309  };
310 } // end namespace avro
311 
312 #endif // __SHOW_BACKUP_H__
std::vector< std::map< std::string, std::string > > backupDescription
Backup description.
Definition: show_backup.h:222
std::vector< std::map< std::string, std::string > > deletedBackupIds
Backup instances that have been deleted from this backup object.
Definition: show_backup.h:237
std::vector< std::map< std::string, std::string > > backupContents
Backup contents.
Definition: show_backup.h:232
std::string backupName
Value of backupName.
Definition: show_backup.h:217
std::map< std::string, std::string > options
Optional parameters.
Definition: show_backup.h:141
std::string datasourceName
Datasource where backup is located.
Definition: show_backup.h:102
ShowBackupRequest()
Constructs a ShowBackupRequest object with default parameters.
Definition: show_backup.h:23
std::string backupName
Name of the backup object.
Definition: show_backup.h:97
A set of results returned by GPUdb::showBackup.
Definition: show_backup.h:199
A set of parameters for GPUdb::showBackup.
Definition: show_backup.h:18
ShowBackupResponse()
Constructs a ShowBackupResponse object with default parameters.
Definition: show_backup.h:204
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:86
std::map< std::string, std::string > info
Additional information.
Definition: show_backup.h:242
std::vector< std::map< std::string, std::string > > backupIds
Backup instances in this backup.
Definition: show_backup.h:227