GPUdb C++ API  Version 7.2.2.4
drop_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 __DROP_CREDENTIAL_H__
7 #define __DROP_CREDENTIAL_H__
8 
9 namespace gpudb
10 {
20  {
25  credentialName(std::string()),
26  options(std::map<std::string, std::string>())
27  {
28  }
29 
39  DropCredentialRequest(const std::string& credentialName_, const std::map<std::string, std::string>& options_):
40  credentialName( credentialName_ ),
41  options( options_ )
42  {
43  }
44 
49  std::string credentialName;
50 
54  std::map<std::string, std::string> options;
55  };
56 } // end namespace gpudb
57 
58 namespace avro
59 {
60  template<> struct codec_traits<gpudb::DropCredentialRequest>
61  {
62  static void encode(Encoder& e, const gpudb::DropCredentialRequest& v)
63  {
64  ::avro::encode(e, v.credentialName);
65  ::avro::encode(e, v.options);
66  }
67 
68  static void decode(Decoder& d, gpudb::DropCredentialRequest& v)
69  {
70  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
71  {
72  const std::vector<size_t> fo = rd->fieldOrder();
73 
74  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
75  {
76  switch (*it)
77  {
78  case 0:
79  ::avro::decode(d, v.credentialName);
80  break;
81 
82  case 1:
83  ::avro::decode(d, v.options);
84  break;
85 
86  default:
87  break;
88  }
89  }
90  }
91  else
92  {
93  ::avro::decode(d, v.credentialName);
94  ::avro::decode(d, v.options);
95  }
96  }
97  };
98 } // end namespace avro
99 
100 namespace gpudb
101 {
108  {
113  credentialName(std::string()),
114  info(std::map<std::string, std::string>())
115  {
116  }
117 
122  std::string credentialName;
123 
127  std::map<std::string, std::string> info;
128  };
129 } // end namespace gpudb
130 
131 namespace avro
132 {
133  template<> struct codec_traits<gpudb::DropCredentialResponse>
134  {
135  static void encode(Encoder& e, const gpudb::DropCredentialResponse& v)
136  {
137  ::avro::encode(e, v.credentialName);
138  ::avro::encode(e, v.info);
139  }
140 
141  static void decode(Decoder& d, gpudb::DropCredentialResponse& v)
142  {
143  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
144  {
145  const std::vector<size_t> fo = rd->fieldOrder();
146 
147  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
148  {
149  switch (*it)
150  {
151  case 0:
152  ::avro::decode(d, v.credentialName);
153  break;
154 
155  case 1:
156  ::avro::decode(d, v.info);
157  break;
158 
159  default:
160  break;
161  }
162  }
163  }
164  else
165  {
166  ::avro::decode(d, v.credentialName);
167  ::avro::decode(d, v.info);
168  }
169  }
170  };
171 } // end namespace avro
172 
173 #endif // __DROP_CREDENTIAL_H__
std::map< std::string, std::string > options
Optional parameters.
A set of results returned by GPUdb::dropCredential.
DropCredentialRequest(const std::string &credentialName_, const std::map< std::string, std::string > &options_)
Constructs a DropCredentialRequest object with the specified parameters.
std::string credentialName
Value of credentialName.
A set of parameters for GPUdb::dropCredential.
std::string credentialName
Name of the credential to be dropped.
DropCredentialResponse()
Constructs a DropCredentialResponse object with default parameters.
DropCredentialRequest()
Constructs a DropCredentialRequest object with default parameters.
std::map< std::string, std::string > info
Additional information.