GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
alter_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 __ALTER_CREDENTIAL_H__
7 #define __ALTER_CREDENTIAL_H__
8 
9 namespace gpudb
10 {
11 
20  {
21 
27  credentialName(std::string()),
28  credentialUpdatesMap(std::map<std::string, std::string>()),
29  options(std::map<std::string, std::string>())
30  {
31  }
32 
88  AlterCredentialRequest(const std::string& credentialName_, const std::map<std::string, std::string>& credentialUpdatesMap_, const std::map<std::string, std::string>& options_):
89  credentialName( credentialName_ ),
90  credentialUpdatesMap( credentialUpdatesMap_ ),
91  options( options_ )
92  {
93  }
94 
95  std::string credentialName;
96  std::map<std::string, std::string> credentialUpdatesMap;
97  std::map<std::string, std::string> options;
98  };
99 }
100 
101 namespace avro
102 {
103  template<> struct codec_traits<gpudb::AlterCredentialRequest>
104  {
105  static void encode(Encoder& e, const gpudb::AlterCredentialRequest& v)
106  {
107  ::avro::encode(e, v.credentialName);
108  ::avro::encode(e, v.credentialUpdatesMap);
109  ::avro::encode(e, v.options);
110  }
111 
112  static void decode(Decoder& d, gpudb::AlterCredentialRequest& v)
113  {
114  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
115  {
116  const std::vector<size_t> fo = rd->fieldOrder();
117 
118  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
119  {
120  switch (*it)
121  {
122  case 0:
123  ::avro::decode(d, v.credentialName);
124  break;
125 
126  case 1:
127  ::avro::decode(d, v.credentialUpdatesMap);
128  break;
129 
130  case 2:
131  ::avro::decode(d, v.options);
132  break;
133 
134  default:
135  break;
136  }
137  }
138  }
139  else
140  {
141  ::avro::decode(d, v.credentialName);
142  ::avro::decode(d, v.credentialUpdatesMap);
143  ::avro::decode(d, v.options);
144  }
145  }
146  };
147 }
148 
149 namespace gpudb
150 {
151 
160  {
161 
167  credentialName(std::string()),
168  info(std::map<std::string, std::string>())
169  {
170  }
171 
172  std::string credentialName;
173  std::map<std::string, std::string> info;
174  };
175 }
176 
177 namespace avro
178 {
179  template<> struct codec_traits<gpudb::AlterCredentialResponse>
180  {
181  static void encode(Encoder& e, const gpudb::AlterCredentialResponse& v)
182  {
183  ::avro::encode(e, v.credentialName);
184  ::avro::encode(e, v.info);
185  }
186 
187  static void decode(Decoder& d, gpudb::AlterCredentialResponse& v)
188  {
189  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
190  {
191  const std::vector<size_t> fo = rd->fieldOrder();
192 
193  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
194  {
195  switch (*it)
196  {
197  case 0:
198  ::avro::decode(d, v.credentialName);
199  break;
200 
201  case 1:
202  ::avro::decode(d, v.info);
203  break;
204 
205  default:
206  break;
207  }
208  }
209  }
210  else
211  {
212  ::avro::decode(d, v.credentialName);
213  ::avro::decode(d, v.info);
214  }
215  }
216  };
217 }
218 
219 #endif
std::map< std::string, std::string > options
AlterCredentialResponse()
Constructs an AlterCredentialResponse object with default parameter values.
A set of output parameters for const.
std::map< std::string, std::string > credentialUpdatesMap
A set of input parameters for const.
AlterCredentialRequest()
Constructs an AlterCredentialRequest object with default parameter values.
std::map< std::string, std::string > info
AlterCredentialRequest(const std::string &credentialName_, const std::map< std::string, std::string > &credentialUpdatesMap_, const std::map< std::string, std::string > &options_)
Constructs an AlterCredentialRequest object with the specified parameters.