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