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