GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
delete_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 __DELETE_RESOURCE_GROUP_H__
7 #define __DELETE_RESOURCE_GROUP_H__
8 
9 namespace gpudb
10 {
11 
19  {
20 
26  name(std::string()),
27  options(std::map<std::string, std::string>())
28  {
29  }
30 
52  DeleteResourceGroupRequest(const std::string& name_, const std::map<std::string, std::string>& options_):
53  name( name_ ),
54  options( options_ )
55  {
56  }
57 
58  std::string name;
59  std::map<std::string, std::string> options;
60  };
61 }
62 
63 namespace avro
64 {
65  template<> struct codec_traits<gpudb::DeleteResourceGroupRequest>
66  {
67  static void encode(Encoder& e, const gpudb::DeleteResourceGroupRequest& v)
68  {
69  ::avro::encode(e, v.name);
70  ::avro::encode(e, v.options);
71  }
72 
73  static void decode(Decoder& d, gpudb::DeleteResourceGroupRequest& v)
74  {
75  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
76  {
77  const std::vector<size_t> fo = rd->fieldOrder();
78 
79  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
80  {
81  switch (*it)
82  {
83  case 0:
84  ::avro::decode(d, v.name);
85  break;
86 
87  case 1:
88  ::avro::decode(d, v.options);
89  break;
90 
91  default:
92  break;
93  }
94  }
95  }
96  else
97  {
98  ::avro::decode(d, v.name);
99  ::avro::decode(d, v.options);
100  }
101  }
102  };
103 }
104 
105 namespace gpudb
106 {
107 
115  {
116 
122  name(std::string()),
123  info(std::map<std::string, std::string>())
124  {
125  }
126 
127  std::string name;
128  std::map<std::string, std::string> info;
129  };
130 }
131 
132 namespace avro
133 {
134  template<> struct codec_traits<gpudb::DeleteResourceGroupResponse>
135  {
136  static void encode(Encoder& e, const gpudb::DeleteResourceGroupResponse& v)
137  {
138  ::avro::encode(e, v.name);
139  ::avro::encode(e, v.info);
140  }
141 
142  static void decode(Decoder& d, gpudb::DeleteResourceGroupResponse& v)
143  {
144  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
145  {
146  const std::vector<size_t> fo = rd->fieldOrder();
147 
148  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
149  {
150  switch (*it)
151  {
152  case 0:
153  ::avro::decode(d, v.name);
154  break;
155 
156  case 1:
157  ::avro::decode(d, v.info);
158  break;
159 
160  default:
161  break;
162  }
163  }
164  }
165  else
166  {
167  ::avro::decode(d, v.name);
168  ::avro::decode(d, v.info);
169  }
170  }
171  };
172 }
173 
174 #endif
DeleteResourceGroupRequest()
Constructs a DeleteResourceGroupRequest object with default parameter values.
std::map< std::string, std::string > info
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
DeleteResourceGroupResponse()
Constructs a DeleteResourceGroupResponse object with default parameter values.
A set of input parameters for const.
A set of output parameters for const.