GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
show_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 __SHOW_CREDENTIAL_H__
7 #define __SHOW_CREDENTIAL_H__
8 
9 namespace gpudb
10 {
11 
21  {
22 
28  credentialName(std::string()),
29  options(std::map<std::string, std::string>())
30  {
31  }
32 
46  ShowCredentialRequest(const std::string& credentialName_, const std::map<std::string, std::string>& options_):
47  credentialName( credentialName_ ),
48  options( options_ )
49  {
50  }
51 
52  std::string credentialName;
53  std::map<std::string, std::string> options;
54  };
55 }
56 
57 namespace avro
58 {
59  template<> struct codec_traits<gpudb::ShowCredentialRequest>
60  {
61  static void encode(Encoder& e, const gpudb::ShowCredentialRequest& v)
62  {
63  ::avro::encode(e, v.credentialName);
64  ::avro::encode(e, v.options);
65  }
66 
67  static void decode(Decoder& d, gpudb::ShowCredentialRequest& v)
68  {
69  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
70  {
71  const std::vector<size_t> fo = rd->fieldOrder();
72 
73  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
74  {
75  switch (*it)
76  {
77  case 0:
78  ::avro::decode(d, v.credentialName);
79  break;
80 
81  case 1:
82  ::avro::decode(d, v.options);
83  break;
84 
85  default:
86  break;
87  }
88  }
89  }
90  else
91  {
92  ::avro::decode(d, v.credentialName);
93  ::avro::decode(d, v.options);
94  }
95  }
96  };
97 }
98 
99 namespace gpudb
100 {
101 
111  {
112 
118  credentialNames(std::vector<std::string>()),
119  credentialTypes(std::vector<std::string>()),
120  credentialIdentities(std::vector<std::string>()),
121  credentials(std::vector<std::string>()),
122  additionalInfo(std::vector<std::map<std::string, std::string> >()),
123  info(std::map<std::string, std::string>())
124  {
125  }
126 
127  std::vector<std::string> credentialNames;
128  std::vector<std::string> credentialTypes;
129  std::vector<std::string> credentialIdentities;
130  std::vector<std::string> credentials;
131  std::vector<std::map<std::string, std::string> > additionalInfo;
132  std::map<std::string, std::string> info;
133  };
134 }
135 
136 namespace avro
137 {
138  template<> struct codec_traits<gpudb::ShowCredentialResponse>
139  {
140  static void encode(Encoder& e, const gpudb::ShowCredentialResponse& v)
141  {
142  ::avro::encode(e, v.credentialNames);
143  ::avro::encode(e, v.credentialTypes);
144  ::avro::encode(e, v.credentialIdentities);
145  ::avro::encode(e, v.credentials);
146  ::avro::encode(e, v.additionalInfo);
147  ::avro::encode(e, v.info);
148  }
149 
150  static void decode(Decoder& d, gpudb::ShowCredentialResponse& v)
151  {
152  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
153  {
154  const std::vector<size_t> fo = rd->fieldOrder();
155 
156  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
157  {
158  switch (*it)
159  {
160  case 0:
161  ::avro::decode(d, v.credentialNames);
162  break;
163 
164  case 1:
165  ::avro::decode(d, v.credentialTypes);
166  break;
167 
168  case 2:
169  ::avro::decode(d, v.credentialIdentities);
170  break;
171 
172  case 3:
173  ::avro::decode(d, v.credentials);
174  break;
175 
176  case 4:
177  ::avro::decode(d, v.additionalInfo);
178  break;
179 
180  case 5:
181  ::avro::decode(d, v.info);
182  break;
183 
184  default:
185  break;
186  }
187  }
188  }
189  else
190  {
191  ::avro::decode(d, v.credentialNames);
192  ::avro::decode(d, v.credentialTypes);
193  ::avro::decode(d, v.credentialIdentities);
194  ::avro::decode(d, v.credentials);
195  ::avro::decode(d, v.additionalInfo);
196  ::avro::decode(d, v.info);
197  }
198  }
199  };
200 }
201 
202 #endif
A set of output parameters for const.
A set of input parameters for const.
ShowCredentialRequest()
Constructs a ShowCredentialRequest object with default parameter values.
std::vector< std::string > credentialTypes
std::vector< std::map< std::string, std::string > > additionalInfo
std::vector< std::string > credentialIdentities
std::vector< std::string > credentialNames
std::map< std::string, std::string > info
std::vector< std::string > credentials
ShowCredentialResponse()
Constructs a ShowCredentialResponse object with default parameter values.
ShowCredentialRequest(const std::string &credentialName_, const std::map< std::string, std::string > &options_)
Constructs a ShowCredentialRequest object with the specified parameters.
std::map< std::string, std::string > options