GPUdb C++ API  Version 7.2.2.4
revoke_permission_proc.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_PROC_H__
7 #define __REVOKE_PERMISSION_PROC_H__
8 
9 namespace gpudb
10 {
19  {
25  name(std::string()),
26  permission(std::string()),
27  procName(std::string()),
28  options(std::map<std::string, std::string>())
29  {
30  }
31 
57  RevokePermissionProcRequest(const std::string& name_, const std::string& permission_, const std::string& procName_, const std::map<std::string, std::string>& options_):
58  name( name_ ),
59  permission( permission_ ),
60  procName( procName_ ),
61  options( options_ )
62  {
63  }
64 
69  std::string name;
70 
83  std::string permission;
84 
90  std::string procName;
91 
95  std::map<std::string, std::string> options;
96  };
97 } // end namespace gpudb
98 
99 namespace avro
100 {
101  template<> struct codec_traits<gpudb::RevokePermissionProcRequest>
102  {
103  static void encode(Encoder& e, const gpudb::RevokePermissionProcRequest& v)
104  {
105  ::avro::encode(e, v.name);
106  ::avro::encode(e, v.permission);
107  ::avro::encode(e, v.procName);
108  ::avro::encode(e, v.options);
109  }
110 
111  static void decode(Decoder& d, gpudb::RevokePermissionProcRequest& v)
112  {
113  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
114  {
115  const std::vector<size_t> fo = rd->fieldOrder();
116 
117  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
118  {
119  switch (*it)
120  {
121  case 0:
122  ::avro::decode(d, v.name);
123  break;
124 
125  case 1:
126  ::avro::decode(d, v.permission);
127  break;
128 
129  case 2:
130  ::avro::decode(d, v.procName);
131  break;
132 
133  case 3:
134  ::avro::decode(d, v.options);
135  break;
136 
137  default:
138  break;
139  }
140  }
141  }
142  else
143  {
144  ::avro::decode(d, v.name);
145  ::avro::decode(d, v.permission);
146  ::avro::decode(d, v.procName);
147  ::avro::decode(d, v.options);
148  }
149  }
150  };
151 } // end namespace avro
152 
153 namespace gpudb
154 {
161  {
167  name(std::string()),
168  permission(std::string()),
169  procName(std::string()),
170  info(std::map<std::string, std::string>())
171  {
172  }
173 
177  std::string name;
178 
183  std::string permission;
184 
189  std::string procName;
190 
194  std::map<std::string, std::string> info;
195  };
196 } // end namespace gpudb
197 
198 namespace avro
199 {
200  template<> struct codec_traits<gpudb::RevokePermissionProcResponse>
201  {
202  static void encode(Encoder& e, const gpudb::RevokePermissionProcResponse& v)
203  {
204  ::avro::encode(e, v.name);
205  ::avro::encode(e, v.permission);
206  ::avro::encode(e, v.procName);
207  ::avro::encode(e, v.info);
208  }
209 
210  static void decode(Decoder& d, gpudb::RevokePermissionProcResponse& v)
211  {
212  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
213  {
214  const std::vector<size_t> fo = rd->fieldOrder();
215 
216  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
217  {
218  switch (*it)
219  {
220  case 0:
221  ::avro::decode(d, v.name);
222  break;
223 
224  case 1:
225  ::avro::decode(d, v.permission);
226  break;
227 
228  case 2:
229  ::avro::decode(d, v.procName);
230  break;
231 
232  case 3:
233  ::avro::decode(d, v.info);
234  break;
235 
236  default:
237  break;
238  }
239  }
240  }
241  else
242  {
243  ::avro::decode(d, v.name);
244  ::avro::decode(d, v.permission);
245  ::avro::decode(d, v.procName);
246  ::avro::decode(d, v.info);
247  }
248  }
249  };
250 } // end namespace avro
251 
252 #endif // __REVOKE_PERMISSION_PROC_H__
std::string name
Name of the user or role from which the permission will be revoked.
std::string procName
Name of the proc to which the permission grants access.
RevokePermissionProcRequest(const std::string &name_, const std::string &permission_, const std::string &procName_, const std::map< std::string, std::string > &options_)
Constructs a RevokePermissionProcRequest object with the specified parameters.
std::string permission
Value of permission.
RevokePermissionProcRequest()
Constructs a RevokePermissionProcRequest object with default parameters.
std::string procName
Value of procName.
std::map< std::string, std::string > options
Optional parameters.
A set of results returned by GPUdb::revokePermissionProc.
std::string permission
Permission to revoke from the user or role.
RevokePermissionProcResponse()
Constructs a RevokePermissionProcResponse object with default parameters.
std::map< std::string, std::string > info
Additional information.
A set of parameters for GPUdb::revokePermissionProc.