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 
92  ShowBackupRequest(const std::string& backupName_, const std::string& datasourceName_, const std::map<std::string, std::string>& options_):
93  backupName( backupName_ ),
94  datasourceName( datasourceName_ ),
95  options( options_ )
96  {
97  }
98 
104  std::string backupName;
105 
109  std::string datasourceName;
110 
148  std::map<std::string, std::string> options;
149  };
150 } // end namespace gpudb
151 
152 namespace avro
153 {
154  template<> struct codec_traits<gpudb::ShowBackupRequest>
155  {
156  static void encode(Encoder& e, const gpudb::ShowBackupRequest& v)
157  {
158  ::avro::encode(e, v.backupName);
159  ::avro::encode(e, v.datasourceName);
160  ::avro::encode(e, v.options);
161  }
162 
163  static void decode(Decoder& d, gpudb::ShowBackupRequest& v)
164  {
165  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
166  {
167  const std::vector<size_t> fo = rd->fieldOrder();
168 
169  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
170  {
171  switch (*it)
172  {
173  case 0:
174  ::avro::decode(d, v.backupName);
175  break;
176 
177  case 1:
178  ::avro::decode(d, v.datasourceName);
179  break;
180 
181  case 2:
182  ::avro::decode(d, v.options);
183  break;
184 
185  default:
186  break;
187  }
188  }
189  }
190  else
191  {
192  ::avro::decode(d, v.backupName);
193  ::avro::decode(d, v.datasourceName);
194  ::avro::decode(d, v.options);
195  }
196  }
197  };
198 } // end namespace avro
199 
200 namespace gpudb
201 {
207  {
212  backupName(std::string()),
213  backupDescription(std::vector<std::map<std::string, std::string> >()),
214  backupIds(std::vector<std::map<std::string, std::string> >()),
215  backupContents(std::vector<std::map<std::string, std::string> >()),
216  deletedBackupIds(std::vector<std::map<std::string, std::string> >()),
217  info(std::map<std::string, std::string>())
218  {
219  }
220 
224  std::string backupName;
225 
229  std::vector<std::map<std::string, std::string> > backupDescription;
230 
235  std::vector<std::map<std::string, std::string> > backupIds;
236 
245  std::vector<std::map<std::string, std::string> > backupContents;
246 
251  std::vector<std::map<std::string, std::string> > deletedBackupIds;
252 
256  std::map<std::string, std::string> info;
257  };
258 } // end namespace gpudb
259 
260 namespace avro
261 {
262  template<> struct codec_traits<gpudb::ShowBackupResponse>
263  {
264  static void encode(Encoder& e, const gpudb::ShowBackupResponse& v)
265  {
266  ::avro::encode(e, v.backupName);
267  ::avro::encode(e, v.backupDescription);
268  ::avro::encode(e, v.backupIds);
269  ::avro::encode(e, v.backupContents);
270  ::avro::encode(e, v.deletedBackupIds);
271  ::avro::encode(e, v.info);
272  }
273 
274  static void decode(Decoder& d, gpudb::ShowBackupResponse& v)
275  {
276  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
277  {
278  const std::vector<size_t> fo = rd->fieldOrder();
279 
280  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
281  {
282  switch (*it)
283  {
284  case 0:
285  ::avro::decode(d, v.backupName);
286  break;
287 
288  case 1:
289  ::avro::decode(d, v.backupDescription);
290  break;
291 
292  case 2:
293  ::avro::decode(d, v.backupIds);
294  break;
295 
296  case 3:
297  ::avro::decode(d, v.backupContents);
298  break;
299 
300  case 4:
301  ::avro::decode(d, v.deletedBackupIds);
302  break;
303 
304  case 5:
305  ::avro::decode(d, v.info);
306  break;
307 
308  default:
309  break;
310  }
311  }
312  }
313  else
314  {
315  ::avro::decode(d, v.backupName);
316  ::avro::decode(d, v.backupDescription);
317  ::avro::decode(d, v.backupIds);
318  ::avro::decode(d, v.backupContents);
319  ::avro::decode(d, v.deletedBackupIds);
320  ::avro::decode(d, v.info);
321  }
322  }
323  };
324 } // end namespace avro
325 
326 #endif // __SHOW_BACKUP_H__
std::vector< std::map< std::string, std::string > > backupDescription
Details about the overall backup(s).
Definition: show_backup.h:229
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:251
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:245
std::string backupName
Value of backupName.
Definition: show_backup.h:224
std::map< std::string, std::string > options
Optional parameters.
Definition: show_backup.h:148
std::string datasourceName
Data source through which the backup is accessible.
Definition: show_backup.h:109
ShowBackupRequest()
Constructs a ShowBackupRequest object with default parameters.
Definition: show_backup.h:26
std::string backupName
Name of the backup.
Definition: show_backup.h:104
A set of results returned by GPUdb::showBackup.
Definition: show_backup.h:206
A set of parameters for GPUdb::showBackup.
Definition: show_backup.h:21
ShowBackupResponse()
Constructs a ShowBackupResponse object with default parameters.
Definition: show_backup.h:211
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:92
std::map< std::string, std::string > info
Additional information.
Definition: show_backup.h:256
std::vector< std::map< std::string, std::string > > backupIds
Details about the individual snapshots contained within the backup(s).
Definition: show_backup.h:235