6 #ifndef __REVOKE_PERMISSION_DATASOURCE_H__ 7 #define __REVOKE_PERMISSION_DATASOURCE_H__ 29 options(std::map<std::string, std::string>())
61 RevokePermissionDatasourceRequest(
const std::string& name_,
const std::string& permission_,
const std::string& datasourceName_,
const std::map<std::string, std::string>& options_):
99 std::map<std::string, std::string>
options;
105 template<>
struct codec_traits<
gpudb::RevokePermissionDatasourceRequest>
109 ::avro::encode(e, v.
name);
117 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
119 const std::vector<size_t> fo = rd->fieldOrder();
121 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
126 ::avro::decode(d, v.
name);
148 ::avro::decode(d, v.
name);
174 info(std::map<std::string, std::string>())
199 std::map<std::string, std::string>
info;
205 template<>
struct codec_traits<
gpudb::RevokePermissionDatasourceResponse>
209 ::avro::encode(e, v.
name);
212 ::avro::encode(e, v.
info);
217 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
219 const std::vector<size_t> fo = rd->fieldOrder();
221 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
226 ::avro::decode(d, v.
name);
238 ::avro::decode(d, v.
info);
248 ::avro::decode(d, v.
name);
251 ::avro::decode(d, v.
info);
257 #endif // __REVOKE_PERMISSION_DATASOURCE_H__
RevokePermissionDatasourceResponse()
Constructs a RevokePermissionDatasourceResponse object with default parameters.
std::string name
Name of the user or role from which the permission will be revoked.
RevokePermissionDatasourceRequest()
Constructs a RevokePermissionDatasourceRequest object with default parameters.
std::string permission
Permission to revoke from the user or role.
std::map< std::string, std::string > options
Optional parameters.
A set of parameters for GPUdb::revokePermissionDatasource.
std::map< std::string, std::string > info
Additional information.
std::string datasourceName
Value of datasourceName.
std::string permission
Value of permission.
std::string name
Value of name.
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 results returned by GPUdb::revokePermissionDatasource.
std::string datasourceName
Name of the data source on which the permission will be revoked.