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 {
18  {
23  backupName(std::string()),
24  datasinkName(std::string()),
25  options(std::map<std::string, std::string>())
26  {
27  }
28 
88  DropBackupRequest(const std::string& backupName_, const std::string& datasinkName_, const std::map<std::string, std::string>& options_):
89  backupName( backupName_ ),
90  datasinkName( datasinkName_ ),
91  options( options_ )
92  {
93  }
94 
99  std::string backupName;
100 
104  std::string datasinkName;
105 
143  std::map<std::string, std::string> options;
144  };
145 } // end namespace gpudb
146 
147 namespace avro
148 {
149  template<> struct codec_traits<gpudb::DropBackupRequest>
150  {
151  static void encode(Encoder& e, const gpudb::DropBackupRequest& v)
152  {
153  ::avro::encode(e, v.backupName);
154  ::avro::encode(e, v.datasinkName);
155  ::avro::encode(e, v.options);
156  }
157 
158  static void decode(Decoder& d, gpudb::DropBackupRequest& v)
159  {
160  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
161  {
162  const std::vector<size_t> fo = rd->fieldOrder();
163 
164  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
165  {
166  switch (*it)
167  {
168  case 0:
169  ::avro::decode(d, v.backupName);
170  break;
171 
172  case 1:
173  ::avro::decode(d, v.datasinkName);
174  break;
175 
176  case 2:
177  ::avro::decode(d, v.options);
178  break;
179 
180  default:
181  break;
182  }
183  }
184  }
185  else
186  {
187  ::avro::decode(d, v.backupName);
188  ::avro::decode(d, v.datasinkName);
189  ::avro::decode(d, v.options);
190  }
191  }
192  };
193 } // end namespace avro
194 
195 namespace gpudb
196 {
202  {
207  backupName(std::string()),
208  backupNames(std::vector<std::string>()),
209  info(std::map<std::string, std::string>())
210  {
211  }
212 
216  std::string backupName;
217 
221  std::vector<std::string> backupNames;
222 
226  std::map<std::string, std::string> info;
227  };
228 } // end namespace gpudb
229 
230 namespace avro
231 {
232  template<> struct codec_traits<gpudb::DropBackupResponse>
233  {
234  static void encode(Encoder& e, const gpudb::DropBackupResponse& v)
235  {
236  ::avro::encode(e, v.backupName);
237  ::avro::encode(e, v.backupNames);
238  ::avro::encode(e, v.info);
239  }
240 
241  static void decode(Decoder& d, gpudb::DropBackupResponse& v)
242  {
243  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
244  {
245  const std::vector<size_t> fo = rd->fieldOrder();
246 
247  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
248  {
249  switch (*it)
250  {
251  case 0:
252  ::avro::decode(d, v.backupName);
253  break;
254 
255  case 1:
256  ::avro::decode(d, v.backupNames);
257  break;
258 
259  case 2:
260  ::avro::decode(d, v.info);
261  break;
262 
263  default:
264  break;
265  }
266  }
267  }
268  else
269  {
270  ::avro::decode(d, v.backupName);
271  ::avro::decode(d, v.backupNames);
272  ::avro::decode(d, v.info);
273  }
274  }
275  };
276 } // end namespace avro
277 
278 #endif // __DROP_BACKUP_H__
std::string backupName
Value of backupName.
Definition: drop_backup.h:216
std::map< std::string, std::string > info
Additional information.
Definition: drop_backup.h:226
A set of results returned by GPUdb::dropBackup.
Definition: drop_backup.h:201
std::string backupName
Name of the backup object to be deleted.
Definition: drop_backup.h:99
std::vector< std::string > backupNames
Backups that were deleted.
Definition: drop_backup.h:221
DropBackupRequest()
Constructs a DropBackupRequest object with default parameters.
Definition: drop_backup.h:22
std::string datasinkName
Datasink where backup is stored.
Definition: drop_backup.h:104
DropBackupResponse()
Constructs a DropBackupResponse object with default parameters.
Definition: drop_backup.h:206
A set of parameters for GPUdb::dropBackup.
Definition: drop_backup.h:17
std::map< std::string, std::string > options
Optional parameters.
Definition: drop_backup.h:143
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:88