GPUdb C++ API  Version 7.2.2.4
delete_resource_group.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 __DELETE_RESOURCE_GROUP_H__
7 #define __DELETE_RESOURCE_GROUP_H__
8 
9 namespace gpudb
10 {
19  {
25  name(std::string()),
26  options(std::map<std::string, std::string>())
27  {
28  }
29 
61  DeleteResourceGroupRequest(const std::string& name_, const std::map<std::string, std::string>& options_):
62  name( name_ ),
63  options( options_ )
64  {
65  }
66 
70  std::string name;
71 
92  std::map<std::string, std::string> options;
93  };
94 } // end namespace gpudb
95 
96 namespace avro
97 {
98  template<> struct codec_traits<gpudb::DeleteResourceGroupRequest>
99  {
100  static void encode(Encoder& e, const gpudb::DeleteResourceGroupRequest& v)
101  {
102  ::avro::encode(e, v.name);
103  ::avro::encode(e, v.options);
104  }
105 
106  static void decode(Decoder& d, gpudb::DeleteResourceGroupRequest& v)
107  {
108  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
109  {
110  const std::vector<size_t> fo = rd->fieldOrder();
111 
112  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
113  {
114  switch (*it)
115  {
116  case 0:
117  ::avro::decode(d, v.name);
118  break;
119 
120  case 1:
121  ::avro::decode(d, v.options);
122  break;
123 
124  default:
125  break;
126  }
127  }
128  }
129  else
130  {
131  ::avro::decode(d, v.name);
132  ::avro::decode(d, v.options);
133  }
134  }
135  };
136 } // end namespace avro
137 
138 namespace gpudb
139 {
146  {
152  name(std::string()),
153  info(std::map<std::string, std::string>())
154  {
155  }
156 
160  std::string name;
161 
165  std::map<std::string, std::string> info;
166  };
167 } // end namespace gpudb
168 
169 namespace avro
170 {
171  template<> struct codec_traits<gpudb::DeleteResourceGroupResponse>
172  {
173  static void encode(Encoder& e, const gpudb::DeleteResourceGroupResponse& v)
174  {
175  ::avro::encode(e, v.name);
176  ::avro::encode(e, v.info);
177  }
178 
179  static void decode(Decoder& d, gpudb::DeleteResourceGroupResponse& v)
180  {
181  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
182  {
183  const std::vector<size_t> fo = rd->fieldOrder();
184 
185  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
186  {
187  switch (*it)
188  {
189  case 0:
190  ::avro::decode(d, v.name);
191  break;
192 
193  case 1:
194  ::avro::decode(d, v.info);
195  break;
196 
197  default:
198  break;
199  }
200  }
201  }
202  else
203  {
204  ::avro::decode(d, v.name);
205  ::avro::decode(d, v.info);
206  }
207  }
208  };
209 } // end namespace avro
210 
211 #endif // __DELETE_RESOURCE_GROUP_H__
DeleteResourceGroupRequest()
Constructs a DeleteResourceGroupRequest object with default parameters.
std::map< std::string, std::string > info
Additional information.
DeleteResourceGroupRequest(const std::string &name_, const std::map< std::string, std::string > &options_)
Constructs a DeleteResourceGroupRequest object with the specified parameters.
std::map< std::string, std::string > options
Optional parameters.
DeleteResourceGroupResponse()
Constructs a DeleteResourceGroupResponse object with default parameters.
std::string name
Name of the resource group to be deleted.
A set of parameters for GPUdb::deleteResourceGroup.
A set of results returned by GPUdb::deleteResourceGroup.