GPUdb C++ API  Version 7.2.2.4
show_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 __SHOW_ENVIRONMENT_H__
7 #define __SHOW_ENVIRONMENT_H__
8 
9 namespace gpudb
10 {
22  {
27  environmentName(std::string()),
28  options(std::map<std::string, std::string>())
29  {
30  }
31 
90  ShowEnvironmentRequest(const std::string& environmentName_, const std::map<std::string, std::string>& options_):
91  environmentName( environmentName_ ),
92  options( options_ )
93  {
94  }
95 
102  std::string environmentName;
103 
139  std::map<std::string, std::string> options;
140  };
141 } // end namespace gpudb
142 
143 namespace avro
144 {
145  template<> struct codec_traits<gpudb::ShowEnvironmentRequest>
146  {
147  static void encode(Encoder& e, const gpudb::ShowEnvironmentRequest& v)
148  {
149  ::avro::encode(e, v.environmentName);
150  ::avro::encode(e, v.options);
151  }
152 
153  static void decode(Decoder& d, gpudb::ShowEnvironmentRequest& v)
154  {
155  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
156  {
157  const std::vector<size_t> fo = rd->fieldOrder();
158 
159  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
160  {
161  switch (*it)
162  {
163  case 0:
164  ::avro::decode(d, v.environmentName);
165  break;
166 
167  case 1:
168  ::avro::decode(d, v.options);
169  break;
170 
171  default:
172  break;
173  }
174  }
175  }
176  else
177  {
178  ::avro::decode(d, v.environmentName);
179  ::avro::decode(d, v.options);
180  }
181  }
182  };
183 } // end namespace avro
184 
185 namespace gpudb
186 {
193  {
198  environmentNames(std::vector<std::string>()),
199  packages(std::vector<std::vector<std::string> >()),
200  info(std::map<std::string, std::string>())
201  {
202  }
203 
207  std::vector<std::string> environmentNames;
208 
213  std::vector<std::vector<std::string> > packages;
214 
218  std::map<std::string, std::string> info;
219  };
220 } // end namespace gpudb
221 
222 namespace avro
223 {
224  template<> struct codec_traits<gpudb::ShowEnvironmentResponse>
225  {
226  static void encode(Encoder& e, const gpudb::ShowEnvironmentResponse& v)
227  {
228  ::avro::encode(e, v.environmentNames);
229  ::avro::encode(e, v.packages);
230  ::avro::encode(e, v.info);
231  }
232 
233  static void decode(Decoder& d, gpudb::ShowEnvironmentResponse& v)
234  {
235  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
236  {
237  const std::vector<size_t> fo = rd->fieldOrder();
238 
239  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
240  {
241  switch (*it)
242  {
243  case 0:
244  ::avro::decode(d, v.environmentNames);
245  break;
246 
247  case 1:
248  ::avro::decode(d, v.packages);
249  break;
250 
251  case 2:
252  ::avro::decode(d, v.info);
253  break;
254 
255  default:
256  break;
257  }
258  }
259  }
260  else
261  {
262  ::avro::decode(d, v.environmentNames);
263  ::avro::decode(d, v.packages);
264  ::avro::decode(d, v.info);
265  }
266  }
267  };
268 } // end namespace avro
269 
270 #endif // __SHOW_ENVIRONMENT_H__
A set of parameters for GPUdb::showEnvironment.
std::vector< std::string > environmentNames
A list of all credential names.
std::map< std::string, std::string > info
Additional information.
std::map< std::string, std::string > options
Optional parameters.
A set of results returned by GPUdb::showEnvironment.
ShowEnvironmentRequest()
Constructs a ShowEnvironmentRequest object with default parameters.
std::string environmentName
Name of the environment on which to retrieve information.
ShowEnvironmentRequest(const std::string &environmentName_, const std::map< std::string, std::string > &options_)
Constructs a ShowEnvironmentRequest object with the specified parameters.
ShowEnvironmentResponse()
Constructs a ShowEnvironmentResponse object with default parameters.
std::vector< std::vector< std::string > > packages
Information about the installed packages in the respective environments in environmentNames.