GPUdb C++ API  Version 7.2.2.4
revoke_permission_system.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_SYSTEM_H__
7 #define __REVOKE_PERMISSION_SYSTEM_H__
8 
9 namespace gpudb
10 {
19  {
25  name(std::string()),
26  permission(std::string()),
27  options(std::map<std::string, std::string>())
28  {
29  }
30 
63  RevokePermissionSystemRequest(const std::string& name_, const std::string& permission_, const std::map<std::string, std::string>& options_):
64  name( name_ ),
65  permission( permission_ ),
66  options( options_ )
67  {
68  }
69 
74  std::string name;
75 
95  std::string permission;
96 
100  std::map<std::string, std::string> options;
101  };
102 } // end namespace gpudb
103 
104 namespace avro
105 {
106  template<> struct codec_traits<gpudb::RevokePermissionSystemRequest>
107  {
108  static void encode(Encoder& e, const gpudb::RevokePermissionSystemRequest& v)
109  {
110  ::avro::encode(e, v.name);
111  ::avro::encode(e, v.permission);
112  ::avro::encode(e, v.options);
113  }
114 
115  static void decode(Decoder& d, gpudb::RevokePermissionSystemRequest& v)
116  {
117  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
118  {
119  const std::vector<size_t> fo = rd->fieldOrder();
120 
121  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
122  {
123  switch (*it)
124  {
125  case 0:
126  ::avro::decode(d, v.name);
127  break;
128 
129  case 1:
130  ::avro::decode(d, v.permission);
131  break;
132 
133  case 2:
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.options);
147  }
148  }
149  };
150 } // end namespace avro
151 
152 namespace gpudb
153 {
160  {
166  name(std::string()),
167  permission(std::string()),
168  info(std::map<std::string, std::string>())
169  {
170  }
171 
175  std::string name;
176 
181  std::string permission;
182 
186  std::map<std::string, std::string> info;
187  };
188 } // end namespace gpudb
189 
190 namespace avro
191 {
192  template<> struct codec_traits<gpudb::RevokePermissionSystemResponse>
193  {
194  static void encode(Encoder& e, const gpudb::RevokePermissionSystemResponse& v)
195  {
196  ::avro::encode(e, v.name);
197  ::avro::encode(e, v.permission);
198  ::avro::encode(e, v.info);
199  }
200 
201  static void decode(Decoder& d, gpudb::RevokePermissionSystemResponse& v)
202  {
203  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
204  {
205  const std::vector<size_t> fo = rd->fieldOrder();
206 
207  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
208  {
209  switch (*it)
210  {
211  case 0:
212  ::avro::decode(d, v.name);
213  break;
214 
215  case 1:
216  ::avro::decode(d, v.permission);
217  break;
218 
219  case 2:
220  ::avro::decode(d, v.info);
221  break;
222 
223  default:
224  break;
225  }
226  }
227  }
228  else
229  {
230  ::avro::decode(d, v.name);
231  ::avro::decode(d, v.permission);
232  ::avro::decode(d, v.info);
233  }
234  }
235  };
236 } // end namespace avro
237 
238 #endif // __REVOKE_PERMISSION_SYSTEM_H__
std::string permission
Permission to revoke from the user or role.
A set of results returned by GPUdb::revokePermissionSystem.
std::map< std::string, std::string > info
Additional information.
std::string permission
Value of permission.
RevokePermissionSystemResponse()
Constructs a RevokePermissionSystemResponse object with default parameters.
std::string name
Name of the user or role from which the permission will be revoked.
RevokePermissionSystemRequest()
Constructs a RevokePermissionSystemRequest object with default parameters.
std::map< std::string, std::string > options
Optional parameters.
A set of parameters for GPUdb::revokePermissionSystem.
RevokePermissionSystemRequest(const std::string &name_, const std::string &permission_, const std::map< std::string, std::string > &options_)
Constructs a RevokePermissionSystemRequest object with the specified parameters.