6 #ifndef __GRANT_PERMISSION_DATASOURCE_H__ 7 #define __GRANT_PERMISSION_DATASOURCE_H__ 29 options(std::map<std::string, std::string>())
60 GrantPermissionDatasourceRequest(
const std::string& name_,
const std::string& permission_,
const std::string& datasourceName_,
const std::map<std::string, std::string>& options_):
98 std::map<std::string, std::string>
options;
104 template<>
struct codec_traits<
gpudb::GrantPermissionDatasourceRequest>
108 ::avro::encode(e, v.
name);
116 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
118 const std::vector<size_t> fo = rd->fieldOrder();
120 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
125 ::avro::decode(d, v.
name);
147 ::avro::decode(d, v.
name);
173 info(std::map<std::string, std::string>())
198 std::map<std::string, std::string>
info;
204 template<>
struct codec_traits<
gpudb::GrantPermissionDatasourceResponse>
208 ::avro::encode(e, v.
name);
211 ::avro::encode(e, v.
info);
216 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
218 const std::vector<size_t> fo = rd->fieldOrder();
220 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
225 ::avro::decode(d, v.
name);
237 ::avro::decode(d, v.
info);
247 ::avro::decode(d, v.
name);
250 ::avro::decode(d, v.
info);
256 #endif // __GRANT_PERMISSION_DATASOURCE_H__
std::string datasourceName
Value of datasourceName.
std::string name
Name of the user or role to which the permission will be granted.
std::string datasourceName
Name of the data source on which the permission will be granted.
std::map< std::string, std::string > info
Additional information.
std::map< std::string, std::string > options
Optional parameters.
std::string name
Value of name.
A set of results returned by GPUdb::grantPermissionDatasource.
A set of parameters for GPUdb::grantPermissionDatasource.
GrantPermissionDatasourceRequest()
Constructs a GrantPermissionDatasourceRequest object with default parameters.
std::string permission
Value of permission.
GrantPermissionDatasourceResponse()
Constructs a GrantPermissionDatasourceResponse object with default parameters.
std::string permission
Permission to grant to the user or role.
GrantPermissionDatasourceRequest(const std::string &name_, const std::string &permission_, const std::string &datasourceName_, const std::map< std::string, std::string > &options_)
Constructs a GrantPermissionDatasourceRequest object with the specified parameters.