GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
revoke_permission_datasource.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 __REVOKE_PERMISSION_DATASOURCE_H__
7 #define __REVOKE_PERMISSION_DATASOURCE_H__
8 
9 namespace gpudb
10 {
11 
20  {
21 
27  name(std::string()),
28  permission(std::string()),
29  datasourceName(std::string()),
30  options(std::map<std::string, std::string>())
31  {
32  }
33 
57  RevokePermissionDatasourceRequest(const std::string& name_, const std::string& permission_, const std::string& datasourceName_, const std::map<std::string, std::string>& options_):
58  name( name_ ),
59  permission( permission_ ),
60  datasourceName( datasourceName_ ),
61  options( options_ )
62  {
63  }
64 
65  std::string name;
66  std::string permission;
67  std::string datasourceName;
68  std::map<std::string, std::string> options;
69  };
70 }
71 
72 namespace avro
73 {
74  template<> struct codec_traits<gpudb::RevokePermissionDatasourceRequest>
75  {
76  static void encode(Encoder& e, const gpudb::RevokePermissionDatasourceRequest& v)
77  {
78  ::avro::encode(e, v.name);
79  ::avro::encode(e, v.permission);
80  ::avro::encode(e, v.datasourceName);
81  ::avro::encode(e, v.options);
82  }
83 
84  static void decode(Decoder& d, gpudb::RevokePermissionDatasourceRequest& v)
85  {
86  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
87  {
88  const std::vector<size_t> fo = rd->fieldOrder();
89 
90  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
91  {
92  switch (*it)
93  {
94  case 0:
95  ::avro::decode(d, v.name);
96  break;
97 
98  case 1:
99  ::avro::decode(d, v.permission);
100  break;
101 
102  case 2:
103  ::avro::decode(d, v.datasourceName);
104  break;
105 
106  case 3:
107  ::avro::decode(d, v.options);
108  break;
109 
110  default:
111  break;
112  }
113  }
114  }
115  else
116  {
117  ::avro::decode(d, v.name);
118  ::avro::decode(d, v.permission);
119  ::avro::decode(d, v.datasourceName);
120  ::avro::decode(d, v.options);
121  }
122  }
123  };
124 }
125 
126 namespace gpudb
127 {
128 
137  {
138 
144  name(std::string()),
145  permission(std::string()),
146  datasourceName(std::string()),
147  info(std::map<std::string, std::string>())
148  {
149  }
150 
151  std::string name;
152  std::string permission;
153  std::string datasourceName;
154  std::map<std::string, std::string> info;
155  };
156 }
157 
158 namespace avro
159 {
160  template<> struct codec_traits<gpudb::RevokePermissionDatasourceResponse>
161  {
162  static void encode(Encoder& e, const gpudb::RevokePermissionDatasourceResponse& v)
163  {
164  ::avro::encode(e, v.name);
165  ::avro::encode(e, v.permission);
166  ::avro::encode(e, v.datasourceName);
167  ::avro::encode(e, v.info);
168  }
169 
170  static void decode(Decoder& d, gpudb::RevokePermissionDatasourceResponse& v)
171  {
172  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
173  {
174  const std::vector<size_t> fo = rd->fieldOrder();
175 
176  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
177  {
178  switch (*it)
179  {
180  case 0:
181  ::avro::decode(d, v.name);
182  break;
183 
184  case 1:
185  ::avro::decode(d, v.permission);
186  break;
187 
188  case 2:
189  ::avro::decode(d, v.datasourceName);
190  break;
191 
192  case 3:
193  ::avro::decode(d, v.info);
194  break;
195 
196  default:
197  break;
198  }
199  }
200  }
201  else
202  {
203  ::avro::decode(d, v.name);
204  ::avro::decode(d, v.permission);
205  ::avro::decode(d, v.datasourceName);
206  ::avro::decode(d, v.info);
207  }
208  }
209  };
210 }
211 
212 #endif
RevokePermissionDatasourceResponse()
Constructs a RevokePermissionDatasourceResponse object with default parameter values.
RevokePermissionDatasourceRequest()
Constructs a RevokePermissionDatasourceRequest object with default parameter values.
std::map< std::string, std::string > options
A set of input parameters for const.
RevokePermissionDatasourceRequest(const std::string &name_, const std::string &permission_, const std::string &datasourceName_, const std::map< std::string, std::string > &options_)
Constructs a RevokePermissionDatasourceRequest object with the specified parameters.
A set of output parameters for const.