GPUdb C++ API  Version 7.2.2.4
revoke_permission_table.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 __REVOKE_PERMISSION_TABLE_H__
7 #define __REVOKE_PERMISSION_TABLE_H__
8 
9 namespace gpudb
10 {
19  {
25  name(std::string()),
26  permission(std::string()),
27  tableName(std::string()),
28  options(std::map<std::string, std::string>())
29  {
30  }
31 
80  RevokePermissionTableRequest(const std::string& name_, const std::string& permission_, const std::string& tableName_, const std::map<std::string, std::string>& options_):
81  name( name_ ),
82  permission( permission_ ),
83  tableName( tableName_ ),
84  options( options_ )
85  {
86  }
87 
92  std::string name;
93 
115  std::string permission;
116 
124  std::string tableName;
125 
135  std::map<std::string, std::string> options;
136  };
137 } // end namespace gpudb
138 
139 namespace avro
140 {
141  template<> struct codec_traits<gpudb::RevokePermissionTableRequest>
142  {
143  static void encode(Encoder& e, const gpudb::RevokePermissionTableRequest& v)
144  {
145  ::avro::encode(e, v.name);
146  ::avro::encode(e, v.permission);
147  ::avro::encode(e, v.tableName);
148  ::avro::encode(e, v.options);
149  }
150 
151  static void decode(Decoder& d, gpudb::RevokePermissionTableRequest& v)
152  {
153  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
154  {
155  const std::vector<size_t> fo = rd->fieldOrder();
156 
157  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
158  {
159  switch (*it)
160  {
161  case 0:
162  ::avro::decode(d, v.name);
163  break;
164 
165  case 1:
166  ::avro::decode(d, v.permission);
167  break;
168 
169  case 2:
170  ::avro::decode(d, v.tableName);
171  break;
172 
173  case 3:
174  ::avro::decode(d, v.options);
175  break;
176 
177  default:
178  break;
179  }
180  }
181  }
182  else
183  {
184  ::avro::decode(d, v.name);
185  ::avro::decode(d, v.permission);
186  ::avro::decode(d, v.tableName);
187  ::avro::decode(d, v.options);
188  }
189  }
190  };
191 } // end namespace avro
192 
193 namespace gpudb
194 {
201  {
207  name(std::string()),
208  permission(std::string()),
209  tableName(std::string()),
210  info(std::map<std::string, std::string>())
211  {
212  }
213 
217  std::string name;
218 
223  std::string permission;
224 
229  std::string tableName;
230 
234  std::map<std::string, std::string> info;
235  };
236 } // end namespace gpudb
237 
238 namespace avro
239 {
240  template<> struct codec_traits<gpudb::RevokePermissionTableResponse>
241  {
242  static void encode(Encoder& e, const gpudb::RevokePermissionTableResponse& v)
243  {
244  ::avro::encode(e, v.name);
245  ::avro::encode(e, v.permission);
246  ::avro::encode(e, v.tableName);
247  ::avro::encode(e, v.info);
248  }
249 
250  static void decode(Decoder& d, gpudb::RevokePermissionTableResponse& v)
251  {
252  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
253  {
254  const std::vector<size_t> fo = rd->fieldOrder();
255 
256  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
257  {
258  switch (*it)
259  {
260  case 0:
261  ::avro::decode(d, v.name);
262  break;
263 
264  case 1:
265  ::avro::decode(d, v.permission);
266  break;
267 
268  case 2:
269  ::avro::decode(d, v.tableName);
270  break;
271 
272  case 3:
273  ::avro::decode(d, v.info);
274  break;
275 
276  default:
277  break;
278  }
279  }
280  }
281  else
282  {
283  ::avro::decode(d, v.name);
284  ::avro::decode(d, v.permission);
285  ::avro::decode(d, v.tableName);
286  ::avro::decode(d, v.info);
287  }
288  }
289  };
290 } // end namespace avro
291 
292 #endif // __REVOKE_PERMISSION_TABLE_H__
std::map< std::string, std::string > info
Additional information.
std::string permission
Permission to revoke from the user or role.
std::map< std::string, std::string > options
Optional parameters.
RevokePermissionTableRequest()
Constructs a RevokePermissionTableRequest object with default parameters.
std::string tableName
Value of tableName.
std::string tableName
Name of the table to which the permission grants access, in [ schema_name. ]table_name format,...
std::string permission
Value of permission.
std::string name
Name of the user or role from which the permission will be revoked.
RevokePermissionTableResponse()
Constructs a RevokePermissionTableResponse object with default parameters.
A set of parameters for GPUdb::revokePermissionTable.
RevokePermissionTableRequest(const std::string &name_, const std::string &permission_, const std::string &tableName_, const std::map< std::string, std::string > &options_)
Constructs a RevokePermissionTableRequest object with the specified parameters.
A set of results returned by GPUdb::revokePermissionTable.