GPUdb C++ API  Version 7.2.2.4
revoke_permission_directory.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_DIRECTORY_H__
7 #define __REVOKE_PERMISSION_DIRECTORY_H__
8 
9 namespace gpudb
10 {
20  {
26  name(std::string()),
27  permission(std::string()),
28  directoryName(std::string()),
29  options(std::map<std::string, std::string>())
30  {
31  }
32 
61  RevokePermissionDirectoryRequest(const std::string& name_, const std::string& permission_, const std::string& directoryName_, const std::map<std::string, std::string>& options_):
62  name( name_ ),
63  permission( permission_ ),
64  directoryName( directoryName_ ),
65  options( options_ )
66  {
67  }
68 
73  std::string name;
74 
89  std::string permission;
90 
94  std::string directoryName;
95 
99  std::map<std::string, std::string> options;
100  };
101 } // end namespace gpudb
102 
103 namespace avro
104 {
105  template<> struct codec_traits<gpudb::RevokePermissionDirectoryRequest>
106  {
107  static void encode(Encoder& e, const gpudb::RevokePermissionDirectoryRequest& v)
108  {
109  ::avro::encode(e, v.name);
110  ::avro::encode(e, v.permission);
111  ::avro::encode(e, v.directoryName);
112  ::avro::encode(e, v.options);
113  }
114 
115  static void decode(Decoder& d, gpudb::RevokePermissionDirectoryRequest& 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.directoryName);
135  break;
136 
137  case 3:
138  ::avro::decode(d, v.options);
139  break;
140 
141  default:
142  break;
143  }
144  }
145  }
146  else
147  {
148  ::avro::decode(d, v.name);
149  ::avro::decode(d, v.permission);
150  ::avro::decode(d, v.directoryName);
151  ::avro::decode(d, v.options);
152  }
153  }
154  };
155 } // end namespace avro
156 
157 namespace gpudb
158 {
165  {
171  name(std::string()),
172  permission(std::string()),
173  directoryName(std::string()),
174  info(std::map<std::string, std::string>())
175  {
176  }
177 
181  std::string name;
182 
187  std::string permission;
188 
193  std::string directoryName;
194 
198  std::map<std::string, std::string> info;
199  };
200 } // end namespace gpudb
201 
202 namespace avro
203 {
204  template<> struct codec_traits<gpudb::RevokePermissionDirectoryResponse>
205  {
206  static void encode(Encoder& e, const gpudb::RevokePermissionDirectoryResponse& v)
207  {
208  ::avro::encode(e, v.name);
209  ::avro::encode(e, v.permission);
210  ::avro::encode(e, v.directoryName);
211  ::avro::encode(e, v.info);
212  }
213 
214  static void decode(Decoder& d, gpudb::RevokePermissionDirectoryResponse& v)
215  {
216  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
217  {
218  const std::vector<size_t> fo = rd->fieldOrder();
219 
220  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
221  {
222  switch (*it)
223  {
224  case 0:
225  ::avro::decode(d, v.name);
226  break;
227 
228  case 1:
229  ::avro::decode(d, v.permission);
230  break;
231 
232  case 2:
233  ::avro::decode(d, v.directoryName);
234  break;
235 
236  case 3:
237  ::avro::decode(d, v.info);
238  break;
239 
240  default:
241  break;
242  }
243  }
244  }
245  else
246  {
247  ::avro::decode(d, v.name);
248  ::avro::decode(d, v.permission);
249  ::avro::decode(d, v.directoryName);
250  ::avro::decode(d, v.info);
251  }
252  }
253  };
254 } // end namespace avro
255 
256 #endif // __REVOKE_PERMISSION_DIRECTORY_H__
A set of results returned by GPUdb::revokePermissionDirectory.
std::string permission
Permission to revoke from the user or role.
RevokePermissionDirectoryRequest()
Constructs a RevokePermissionDirectoryRequest object with default parameters.
std::map< std::string, std::string > options
Optional parameters.
std::string directoryName
Value of directoryName.
std::string name
Name of the user or role from which the permission will be revoked.
std::map< std::string, std::string > info
Additional information.
RevokePermissionDirectoryResponse()
Constructs a RevokePermissionDirectoryResponse object with default parameters.
std::string directoryName
Name of the KiFS directory to which the permission revokes access.
RevokePermissionDirectoryRequest(const std::string &name_, const std::string &permission_, const std::string &directoryName_, const std::map< std::string, std::string > &options_)
Constructs a RevokePermissionDirectoryRequest object with the specified parameters.
A set of parameters for GPUdb::revokePermissionDirectory.