GPUdb C++ API  Version 7.2.2.4
delete_user.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 __DELETE_USER_H__
7 #define __DELETE_USER_H__
8 
9 namespace gpudb
10 {
18  {
23  name(std::string()),
24  options(std::map<std::string, std::string>())
25  {
26  }
27 
36  DeleteUserRequest(const std::string& name_, const std::map<std::string, std::string>& options_):
37  name( name_ ),
38  options( options_ )
39  {
40  }
41 
45  std::string name;
46 
50  std::map<std::string, std::string> options;
51  };
52 } // end namespace gpudb
53 
54 namespace avro
55 {
56  template<> struct codec_traits<gpudb::DeleteUserRequest>
57  {
58  static void encode(Encoder& e, const gpudb::DeleteUserRequest& v)
59  {
60  ::avro::encode(e, v.name);
61  ::avro::encode(e, v.options);
62  }
63 
64  static void decode(Decoder& d, gpudb::DeleteUserRequest& v)
65  {
66  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
67  {
68  const std::vector<size_t> fo = rd->fieldOrder();
69 
70  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
71  {
72  switch (*it)
73  {
74  case 0:
75  ::avro::decode(d, v.name);
76  break;
77 
78  case 1:
79  ::avro::decode(d, v.options);
80  break;
81 
82  default:
83  break;
84  }
85  }
86  }
87  else
88  {
89  ::avro::decode(d, v.name);
90  ::avro::decode(d, v.options);
91  }
92  }
93  };
94 } // end namespace avro
95 
96 namespace gpudb
97 {
103  {
108  name(std::string()),
109  info(std::map<std::string, std::string>())
110  {
111  }
112 
116  std::string name;
117 
121  std::map<std::string, std::string> info;
122  };
123 } // end namespace gpudb
124 
125 namespace avro
126 {
127  template<> struct codec_traits<gpudb::DeleteUserResponse>
128  {
129  static void encode(Encoder& e, const gpudb::DeleteUserResponse& v)
130  {
131  ::avro::encode(e, v.name);
132  ::avro::encode(e, v.info);
133  }
134 
135  static void decode(Decoder& d, gpudb::DeleteUserResponse& v)
136  {
137  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
138  {
139  const std::vector<size_t> fo = rd->fieldOrder();
140 
141  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
142  {
143  switch (*it)
144  {
145  case 0:
146  ::avro::decode(d, v.name);
147  break;
148 
149  case 1:
150  ::avro::decode(d, v.info);
151  break;
152 
153  default:
154  break;
155  }
156  }
157  }
158  else
159  {
160  ::avro::decode(d, v.name);
161  ::avro::decode(d, v.info);
162  }
163  }
164  };
165 } // end namespace avro
166 
167 #endif // __DELETE_USER_H__
A set of results returned by GPUdb::deleteUser.
Definition: delete_user.h:102
DeleteUserRequest()
Constructs a DeleteUserRequest object with default parameters.
Definition: delete_user.h:22
std::string name
Name of the user to be deleted.
Definition: delete_user.h:45
std::map< std::string, std::string > info
Additional information.
Definition: delete_user.h:121
A set of parameters for GPUdb::deleteUser.
Definition: delete_user.h:17
std::map< std::string, std::string > options
Optional parameters.
Definition: delete_user.h:50
std::string name
Value of name.
Definition: delete_user.h:116
DeleteUserRequest(const std::string &name_, const std::map< std::string, std::string > &options_)
Constructs a DeleteUserRequest object with the specified parameters.
Definition: delete_user.h:36
DeleteUserResponse()
Constructs a DeleteUserResponse object with default parameters.
Definition: delete_user.h:107