6 #ifndef __GRANT_PERMISSION_CREDENTIAL_H__ 7 #define __GRANT_PERMISSION_CREDENTIAL_H__ 30 options(std::map<std::string, std::string>())
61 GrantPermissionCredentialRequest(
const std::string& name_,
const std::string& permission_,
const std::string& credentialName_,
const std::map<std::string, std::string>& options_):
99 std::map<std::string, std::string>
options;
105 template<>
struct codec_traits<
gpudb::GrantPermissionCredentialRequest>
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::GrantPermissionCredentialResponse>
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 // __GRANT_PERMISSION_CREDENTIAL_H__ std::string permission
Value of permission.
GrantPermissionCredentialResponse()
Constructs a GrantPermissionCredentialResponse object with default parameters.
std::string credentialName
Value of credentialName.
std::string name
Name of the user or role to which the permission will be granted.
std::string name
Value of name.
GrantPermissionCredentialRequest()
Constructs a GrantPermissionCredentialRequest object with default parameters.
GrantPermissionCredentialRequest(const std::string &name_, const std::string &permission_, const std::string &credentialName_, const std::map< std::string, std::string > &options_)
Constructs a GrantPermissionCredentialRequest object with the specified parameters.
std::map< std::string, std::string > options
Optional parameters.
std::map< std::string, std::string > info
Additional information.
A set of results returned by GPUdb::grantPermissionCredential.
std::string credentialName
Name of the credential on which the permission will be granted.
A set of parameters for GPUdb::grantPermissionCredential.
std::string permission
Permission to grant to the user or role.