GPUdb C++ API  Version 7.2.2.4
show_credential.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 __SHOW_CREDENTIAL_H__
7 #define __SHOW_CREDENTIAL_H__
8 
9 namespace gpudb
10 {
21  {
26  credentialName(std::string()),
27  options(std::map<std::string, std::string>())
28  {
29  }
30 
44  ShowCredentialRequest(const std::string& credentialName_, const std::map<std::string, std::string>& options_):
45  credentialName( credentialName_ ),
46  options( options_ )
47  {
48  }
49 
55  std::string credentialName;
56 
60  std::map<std::string, std::string> options;
61  };
62 } // end namespace gpudb
63 
64 namespace avro
65 {
66  template<> struct codec_traits<gpudb::ShowCredentialRequest>
67  {
68  static void encode(Encoder& e, const gpudb::ShowCredentialRequest& v)
69  {
70  ::avro::encode(e, v.credentialName);
71  ::avro::encode(e, v.options);
72  }
73 
74  static void decode(Decoder& d, gpudb::ShowCredentialRequest& v)
75  {
76  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
77  {
78  const std::vector<size_t> fo = rd->fieldOrder();
79 
80  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
81  {
82  switch (*it)
83  {
84  case 0:
85  ::avro::decode(d, v.credentialName);
86  break;
87 
88  case 1:
89  ::avro::decode(d, v.options);
90  break;
91 
92  default:
93  break;
94  }
95  }
96  }
97  else
98  {
99  ::avro::decode(d, v.credentialName);
100  ::avro::decode(d, v.options);
101  }
102  }
103  };
104 } // end namespace avro
105 
106 namespace gpudb
107 {
114  {
119  credentialNames(std::vector<std::string>()),
120  credentialTypes(std::vector<std::string>()),
121  credentialIdentities(std::vector<std::string>()),
122  credentials(std::vector<std::string>()),
123  additionalInfo(std::vector<std::map<std::string, std::string> >()),
124  info(std::map<std::string, std::string>())
125  {
126  }
127 
131  std::vector<std::string> credentialNames;
132 
136  std::vector<std::string> credentialTypes;
137 
141  std::vector<std::string> credentialIdentities;
142 
147  std::vector<std::string> credentials;
148 
153  std::vector<std::map<std::string, std::string> > additionalInfo;
154 
158  std::map<std::string, std::string> info;
159  };
160 } // end namespace gpudb
161 
162 namespace avro
163 {
164  template<> struct codec_traits<gpudb::ShowCredentialResponse>
165  {
166  static void encode(Encoder& e, const gpudb::ShowCredentialResponse& v)
167  {
168  ::avro::encode(e, v.credentialNames);
169  ::avro::encode(e, v.credentialTypes);
170  ::avro::encode(e, v.credentialIdentities);
171  ::avro::encode(e, v.credentials);
172  ::avro::encode(e, v.additionalInfo);
173  ::avro::encode(e, v.info);
174  }
175 
176  static void decode(Decoder& d, gpudb::ShowCredentialResponse& v)
177  {
178  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
179  {
180  const std::vector<size_t> fo = rd->fieldOrder();
181 
182  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
183  {
184  switch (*it)
185  {
186  case 0:
187  ::avro::decode(d, v.credentialNames);
188  break;
189 
190  case 1:
191  ::avro::decode(d, v.credentialTypes);
192  break;
193 
194  case 2:
195  ::avro::decode(d, v.credentialIdentities);
196  break;
197 
198  case 3:
199  ::avro::decode(d, v.credentials);
200  break;
201 
202  case 4:
203  ::avro::decode(d, v.additionalInfo);
204  break;
205 
206  case 5:
207  ::avro::decode(d, v.info);
208  break;
209 
210  default:
211  break;
212  }
213  }
214  }
215  else
216  {
217  ::avro::decode(d, v.credentialNames);
218  ::avro::decode(d, v.credentialTypes);
219  ::avro::decode(d, v.credentialIdentities);
220  ::avro::decode(d, v.credentials);
221  ::avro::decode(d, v.additionalInfo);
222  ::avro::decode(d, v.info);
223  }
224  }
225  };
226 } // end namespace avro
227 
228 #endif // __SHOW_CREDENTIAL_H__
A set of results returned by GPUdb::showCredential.
A set of parameters for GPUdb::showCredential.
ShowCredentialRequest()
Constructs a ShowCredentialRequest object with default parameters.
std::vector< std::string > credentialTypes
A list of each credential's type.
std::vector< std::map< std::string, std::string > > additionalInfo
Additional information about the respective credential in credentialNames.
std::vector< std::string > credentialIdentities
A list of each credential's identity.
std::vector< std::string > credentialNames
A list of all credential names.
std::map< std::string, std::string > info
Additional information.
std::vector< std::string > credentials
A list of each credential's create_credential_request JSON encoded structure.
std::string credentialName
Name of the credential on which to retrieve information.
ShowCredentialResponse()
Constructs a ShowCredentialResponse object with default parameters.
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
Optional parameters.