6 #ifndef __REVOKE_PERMISSION_DATASOURCE_H__
7 #define __REVOKE_PERMISSION_DATASOURCE_H__
30 options(std::map<std::string, std::string>())
57 RevokePermissionDatasourceRequest(
const std::string& name_,
const std::string& permission_,
const std::string& datasourceName_,
const std::map<std::string, std::string>& options_):
68 std::map<std::string, std::string>
options;
74 template<>
struct codec_traits<gpudb::RevokePermissionDatasourceRequest>
78 ::avro::encode(e, v.
name);
86 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
88 const std::vector<size_t> fo = rd->fieldOrder();
90 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
95 ::avro::decode(d, v.
name);
117 ::avro::decode(d, v.
name);
147 info(std::map<std::string, std::string>())
154 std::map<std::string, std::string>
info;
160 template<>
struct codec_traits<gpudb::RevokePermissionDatasourceResponse>
164 ::avro::encode(e, v.
name);
167 ::avro::encode(e, v.
info);
172 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
174 const std::vector<size_t> fo = rd->fieldOrder();
176 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
181 ::avro::decode(d, v.
name);
193 ::avro::decode(d, v.
info);
203 ::avro::decode(d, v.
name);
206 ::avro::decode(d, v.
info);
RevokePermissionDatasourceResponse()
Constructs a RevokePermissionDatasourceResponse object with default parameter values.
RevokePermissionDatasourceRequest()
Constructs a RevokePermissionDatasourceRequest object with default parameter values.
std::map< std::string, std::string > options
A set of input parameters for const.
std::map< std::string, std::string > info
std::string datasourceName
RevokePermissionDatasourceRequest(const std::string &name_, const std::string &permission_, const std::string &datasourceName_, const std::map< std::string, std::string > &options_)
Constructs a RevokePermissionDatasourceRequest object with the specified parameters.
A set of output parameters for const.
std::string datasourceName