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 
71  ShowEnvironmentRequest(const std::string& environmentName_, const std::map<std::string, std::string>& options_):
72  environmentName( environmentName_ ),
73  options( options_ )
74  {
75  }
76 
83  std::string environmentName;
84 
107  std::map<std::string, std::string> options;
108  };
109 } // end namespace gpudb
110 
111 namespace avro
112 {
113  template<> struct codec_traits<gpudb::ShowEnvironmentRequest>
114  {
115  static void encode(Encoder& e, const gpudb::ShowEnvironmentRequest& v)
116  {
117  ::avro::encode(e, v.environmentName);
118  ::avro::encode(e, v.options);
119  }
120 
121  static void decode(Decoder& d, gpudb::ShowEnvironmentRequest& v)
122  {
123  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
124  {
125  const std::vector<size_t> fo = rd->fieldOrder();
126 
127  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
128  {
129  switch (*it)
130  {
131  case 0:
132  ::avro::decode(d, v.environmentName);
133  break;
134 
135  case 1:
136  ::avro::decode(d, v.options);
137  break;
138 
139  default:
140  break;
141  }
142  }
143  }
144  else
145  {
146  ::avro::decode(d, v.environmentName);
147  ::avro::decode(d, v.options);
148  }
149  }
150  };
151 } // end namespace avro
152 
153 namespace gpudb
154 {
161  {
166  environmentNames(std::vector<std::string>()),
167  packages(std::vector<std::vector<std::string> >()),
168  info(std::map<std::string, std::string>())
169  {
170  }
171 
175  std::vector<std::string> environmentNames;
176 
181  std::vector<std::vector<std::string> > packages;
182 
186  std::map<std::string, std::string> info;
187  };
188 } // end namespace gpudb
189 
190 namespace avro
191 {
192  template<> struct codec_traits<gpudb::ShowEnvironmentResponse>
193  {
194  static void encode(Encoder& e, const gpudb::ShowEnvironmentResponse& v)
195  {
196  ::avro::encode(e, v.environmentNames);
197  ::avro::encode(e, v.packages);
198  ::avro::encode(e, v.info);
199  }
200 
201  static void decode(Decoder& d, gpudb::ShowEnvironmentResponse& v)
202  {
203  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
204  {
205  const std::vector<size_t> fo = rd->fieldOrder();
206 
207  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
208  {
209  switch (*it)
210  {
211  case 0:
212  ::avro::decode(d, v.environmentNames);
213  break;
214 
215  case 1:
216  ::avro::decode(d, v.packages);
217  break;
218 
219  case 2:
220  ::avro::decode(d, v.info);
221  break;
222 
223  default:
224  break;
225  }
226  }
227  }
228  else
229  {
230  ::avro::decode(d, v.environmentNames);
231  ::avro::decode(d, v.packages);
232  ::avro::decode(d, v.info);
233  }
234  }
235  };
236 } // end namespace avro
237 
238 #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.