GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
alter_resource_group.h
Go to the documentation of this file.
1 /*
2  * This file was autogenerated by the GPUdb schema processor.
3  *
4  * DO NOT EDIT DIRECTLY.
5  */
6 #ifndef __ALTER_RESOURCE_GROUP_H__
7 #define __ALTER_RESOURCE_GROUP_H__
8 
9 namespace gpudb
10 {
11 
20  {
21 
27  name(std::string()),
28  tierAttributes(std::map<std::string, std::map<std::string, std::string> >()),
29  ranking(std::string()),
30  adjoiningResourceGroup(std::string()),
31  options(std::map<std::string, std::string>())
32  {
33  }
34 
129  AlterResourceGroupRequest(const std::string& name_, const std::map<std::string, std::map<std::string, std::string> >& tierAttributes_, const std::string& ranking_, const std::string& adjoiningResourceGroup_, const std::map<std::string, std::string>& options_):
130  name( name_ ),
131  tierAttributes( tierAttributes_ ),
132  ranking( ranking_ ),
133  adjoiningResourceGroup( adjoiningResourceGroup_ ),
134  options( options_ )
135  {
136  }
137 
138  std::string name;
139  std::map<std::string, std::map<std::string, std::string> > tierAttributes;
140  std::string ranking;
142  std::map<std::string, std::string> options;
143  };
144 }
145 
146 namespace avro
147 {
148  template<> struct codec_traits<gpudb::AlterResourceGroupRequest>
149  {
150  static void encode(Encoder& e, const gpudb::AlterResourceGroupRequest& v)
151  {
152  ::avro::encode(e, v.name);
153  ::avro::encode(e, v.tierAttributes);
154  ::avro::encode(e, v.ranking);
155  ::avro::encode(e, v.adjoiningResourceGroup);
156  ::avro::encode(e, v.options);
157  }
158 
159  static void decode(Decoder& d, gpudb::AlterResourceGroupRequest& v)
160  {
161  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
162  {
163  const std::vector<size_t> fo = rd->fieldOrder();
164 
165  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
166  {
167  switch (*it)
168  {
169  case 0:
170  ::avro::decode(d, v.name);
171  break;
172 
173  case 1:
174  ::avro::decode(d, v.tierAttributes);
175  break;
176 
177  case 2:
178  ::avro::decode(d, v.ranking);
179  break;
180 
181  case 3:
182  ::avro::decode(d, v.adjoiningResourceGroup);
183  break;
184 
185  case 4:
186  ::avro::decode(d, v.options);
187  break;
188 
189  default:
190  break;
191  }
192  }
193  }
194  else
195  {
196  ::avro::decode(d, v.name);
197  ::avro::decode(d, v.tierAttributes);
198  ::avro::decode(d, v.ranking);
199  ::avro::decode(d, v.adjoiningResourceGroup);
200  ::avro::decode(d, v.options);
201  }
202  }
203  };
204 }
205 
206 namespace gpudb
207 {
208 
217  {
218 
224  name(std::string()),
225  info(std::map<std::string, std::string>())
226  {
227  }
228 
229  std::string name;
230  std::map<std::string, std::string> info;
231  };
232 }
233 
234 namespace avro
235 {
236  template<> struct codec_traits<gpudb::AlterResourceGroupResponse>
237  {
238  static void encode(Encoder& e, const gpudb::AlterResourceGroupResponse& v)
239  {
240  ::avro::encode(e, v.name);
241  ::avro::encode(e, v.info);
242  }
243 
244  static void decode(Decoder& d, gpudb::AlterResourceGroupResponse& v)
245  {
246  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
247  {
248  const std::vector<size_t> fo = rd->fieldOrder();
249 
250  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
251  {
252  switch (*it)
253  {
254  case 0:
255  ::avro::decode(d, v.name);
256  break;
257 
258  case 1:
259  ::avro::decode(d, v.info);
260  break;
261 
262  default:
263  break;
264  }
265  }
266  }
267  else
268  {
269  ::avro::decode(d, v.name);
270  ::avro::decode(d, v.info);
271  }
272  }
273  };
274 }
275 
276 #endif
std::map< std::string, std::map< std::string, std::string > > tierAttributes
AlterResourceGroupRequest()
Constructs an AlterResourceGroupRequest object with default parameter values.
std::map< std::string, std::string > options
AlterResourceGroupResponse()
Constructs an AlterResourceGroupResponse object with default parameter values.
AlterResourceGroupRequest(const std::string &name_, const std::map< std::string, std::map< std::string, std::string > > &tierAttributes_, const std::string &ranking_, const std::string &adjoiningResourceGroup_, const std::map< std::string, std::string > &options_)
Constructs an AlterResourceGroupRequest object with the specified parameters.
A set of input parameters for const.
std::map< std::string, std::string > info
A set of output parameters for const.