GPUdb C++ API  Version 7.2.2.4
alter_environment.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 __ALTER_ENVIRONMENT_H__
7 #define __ALTER_ENVIRONMENT_H__
8 
9 namespace gpudb
10 {
21  {
27  environmentName(std::string()),
28  action(std::string()),
29  value(std::string()),
30  options(std::map<std::string, std::string>())
31  {
32  }
33 
100  AlterEnvironmentRequest(const std::string& environmentName_, const std::string& action_, const std::string& value_, const std::map<std::string, std::string>& options_):
101  environmentName( environmentName_ ),
102  action( action_ ),
103  value( value_ ),
104  options( options_ )
105  {
106  }
107 
111  std::string environmentName;
112 
139  std::string action;
140 
158  std::string value;
159 
170  std::map<std::string, std::string> options;
171  };
172 } // end namespace gpudb
173 
174 namespace avro
175 {
176  template<> struct codec_traits<gpudb::AlterEnvironmentRequest>
177  {
178  static void encode(Encoder& e, const gpudb::AlterEnvironmentRequest& v)
179  {
180  ::avro::encode(e, v.environmentName);
181  ::avro::encode(e, v.action);
182  ::avro::encode(e, v.value);
183  ::avro::encode(e, v.options);
184  }
185 
186  static void decode(Decoder& d, gpudb::AlterEnvironmentRequest& v)
187  {
188  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
189  {
190  const std::vector<size_t> fo = rd->fieldOrder();
191 
192  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
193  {
194  switch (*it)
195  {
196  case 0:
197  ::avro::decode(d, v.environmentName);
198  break;
199 
200  case 1:
201  ::avro::decode(d, v.action);
202  break;
203 
204  case 2:
205  ::avro::decode(d, v.value);
206  break;
207 
208  case 3:
209  ::avro::decode(d, v.options);
210  break;
211 
212  default:
213  break;
214  }
215  }
216  }
217  else
218  {
219  ::avro::decode(d, v.environmentName);
220  ::avro::decode(d, v.action);
221  ::avro::decode(d, v.value);
222  ::avro::decode(d, v.options);
223  }
224  }
225  };
226 } // end namespace avro
227 
228 namespace gpudb
229 {
236  {
242  environmentName(std::string()),
243  info(std::map<std::string, std::string>())
244  {
245  }
246 
251  std::string environmentName;
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::AlterEnvironmentResponse>
263  {
264  static void encode(Encoder& e, const gpudb::AlterEnvironmentResponse& v)
265  {
266  ::avro::encode(e, v.environmentName);
267  ::avro::encode(e, v.info);
268  }
269 
270  static void decode(Decoder& d, gpudb::AlterEnvironmentResponse& v)
271  {
272  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
273  {
274  const std::vector<size_t> fo = rd->fieldOrder();
275 
276  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
277  {
278  switch (*it)
279  {
280  case 0:
281  ::avro::decode(d, v.environmentName);
282  break;
283 
284  case 1:
285  ::avro::decode(d, v.info);
286  break;
287 
288  default:
289  break;
290  }
291  }
292  }
293  else
294  {
295  ::avro::decode(d, v.environmentName);
296  ::avro::decode(d, v.info);
297  }
298  }
299  };
300 } // end namespace avro
301 
302 #endif // __ALTER_ENVIRONMENT_H__
A set of parameters for GPUdb::alterEnvironment.
A set of results returned by GPUdb::alterEnvironment.
std::string value
The value of the modification, depending on action.
std::string environmentName
Name of the environment to be altered.
std::string environmentName
Value of environmentName.
std::map< std::string, std::string > info
Additional information.
std::string action
Modification operation to be applied.
AlterEnvironmentRequest(const std::string &environmentName_, const std::string &action_, const std::string &value_, const std::map< std::string, std::string > &options_)
Constructs an AlterEnvironmentRequest object with the specified parameters.
AlterEnvironmentRequest()
Constructs an AlterEnvironmentRequest object with default parameters.
std::map< std::string, std::string > options
Optional parameters.
AlterEnvironmentResponse()
Constructs an AlterEnvironmentResponse object with default parameters.