GPUdb C++ API  Version 7.2.3.0
drop_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 __DROP_BACKUP_H__
7 #define __DROP_BACKUP_H__
8 
9 namespace gpudb
10 {
22  {
27  backupName(std::string()),
28  datasinkName(std::string()),
29  options(std::map<std::string, std::string>())
30  {
31  }
32 
97  DropBackupRequest(const std::string& backupName_, const std::string& datasinkName_, const std::map<std::string, std::string>& options_):
98  backupName( backupName_ ),
99  datasinkName( datasinkName_ ),
100  options( options_ )
101  {
102  }
103 
111  std::string backupName;
112 
116  std::string datasinkName;
117 
154  std::map<std::string, std::string> options;
155  };
156 } // end namespace gpudb
157 
158 namespace avro
159 {
160  template<> struct codec_traits<gpudb::DropBackupRequest>
161  {
162  static void encode(Encoder& e, const gpudb::DropBackupRequest& v)
163  {
164  ::avro::encode(e, v.backupName);
165  ::avro::encode(e, v.datasinkName);
166  ::avro::encode(e, v.options);
167  }
168 
169  static void decode(Decoder& d, gpudb::DropBackupRequest& v)
170  {
171  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
172  {
173  const std::vector<size_t> fo = rd->fieldOrder();
174 
175  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
176  {
177  switch (*it)
178  {
179  case 0:
180  ::avro::decode(d, v.backupName);
181  break;
182 
183  case 1:
184  ::avro::decode(d, v.datasinkName);
185  break;
186 
187  case 2:
188  ::avro::decode(d, v.options);
189  break;
190 
191  default:
192  break;
193  }
194  }
195  }
196  else
197  {
198  ::avro::decode(d, v.backupName);
199  ::avro::decode(d, v.datasinkName);
200  ::avro::decode(d, v.options);
201  }
202  }
203  };
204 } // end namespace avro
205 
206 namespace gpudb
207 {
213  {
218  backupName(std::string()),
219  backupNames(std::vector<std::string>()),
220  info(std::map<std::string, std::string>())
221  {
222  }
223 
227  std::string backupName;
228 
232  std::vector<std::string> backupNames;
233 
237  std::map<std::string, std::string> info;
238  };
239 } // end namespace gpudb
240 
241 namespace avro
242 {
243  template<> struct codec_traits<gpudb::DropBackupResponse>
244  {
245  static void encode(Encoder& e, const gpudb::DropBackupResponse& v)
246  {
247  ::avro::encode(e, v.backupName);
248  ::avro::encode(e, v.backupNames);
249  ::avro::encode(e, v.info);
250  }
251 
252  static void decode(Decoder& d, gpudb::DropBackupResponse& v)
253  {
254  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
255  {
256  const std::vector<size_t> fo = rd->fieldOrder();
257 
258  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
259  {
260  switch (*it)
261  {
262  case 0:
263  ::avro::decode(d, v.backupName);
264  break;
265 
266  case 1:
267  ::avro::decode(d, v.backupNames);
268  break;
269 
270  case 2:
271  ::avro::decode(d, v.info);
272  break;
273 
274  default:
275  break;
276  }
277  }
278  }
279  else
280  {
281  ::avro::decode(d, v.backupName);
282  ::avro::decode(d, v.backupNames);
283  ::avro::decode(d, v.info);
284  }
285  }
286  };
287 } // end namespace avro
288 
289 #endif // __DROP_BACKUP_H__
std::string backupName
Value of backupName.
Definition: drop_backup.h:227
std::map< std::string, std::string > info
Additional information.
Definition: drop_backup.h:237
A set of results returned by GPUdb::dropBackup.
Definition: drop_backup.h:212
std::string backupName
Name of the backup to be deleted.
Definition: drop_backup.h:111
std::vector< std::string > backupNames
Names of backups that were deleted.
Definition: drop_backup.h:232
DropBackupRequest()
Constructs a DropBackupRequest object with default parameters.
Definition: drop_backup.h:26
std::string datasinkName
Data sink through which the backup is accessible.
Definition: drop_backup.h:116
DropBackupResponse()
Constructs a DropBackupResponse object with default parameters.
Definition: drop_backup.h:217
A set of parameters for GPUdb::dropBackup.
Definition: drop_backup.h:21
std::map< std::string, std::string > options
Optional parameters.
Definition: drop_backup.h:154
DropBackupRequest(const std::string &backupName_, const std::string &datasinkName_, const std::map< std::string, std::string > &options_)
Constructs a DropBackupRequest object with the specified parameters.
Definition: drop_backup.h:97