6 #ifndef __CREATE_CREDENTIAL_H__ 7 #define __CREATE_CREDENTIAL_H__ 29 options(std::map<std::string, std::string>())
89 CreateCredentialRequest(
const std::string& credentialName_,
const std::string& type_,
const std::string& identity_,
const std::string& secret_,
const std::map<std::string, std::string>& options_):
161 template<>
struct codec_traits<
gpudb::CreateCredentialRequest>
166 ::avro::encode(e, v.
type);
168 ::avro::encode(e, v.
secret);
174 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
176 const std::vector<size_t> fo = rd->fieldOrder();
178 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
187 ::avro::decode(d, v.
type);
195 ::avro::decode(d, v.
secret);
210 ::avro::decode(d, v.
type);
212 ::avro::decode(d, v.
secret);
234 info(std::map<std::string, std::string>())
247 std::map<std::string, std::string>
info;
253 template<>
struct codec_traits<
gpudb::CreateCredentialResponse>
258 ::avro::encode(e, v.
info);
263 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
265 const std::vector<size_t> fo = rd->fieldOrder();
267 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
276 ::avro::decode(d, v.
info);
287 ::avro::decode(d, v.
info);
293 #endif // __CREATE_CREDENTIAL_H__ std::string credentialName
Value of credentialName.
CreateCredentialRequest()
Constructs a CreateCredentialRequest object with default parameters.
std::map< std::string, std::string > options
Optional parameters.
std::string type
Type of the credential to be created.
std::map< std::string, std::string > info
Additional information.
A set of parameters for GPUdb::createCredential.
std::string secret
Password of the credential to be created.
std::string credentialName
Name of the credential to be created.
CreateCredentialRequest(const std::string &credentialName_, const std::string &type_, const std::string &identity_, const std::string &secret_, const std::map< std::string, std::string > &options_)
Constructs a CreateCredentialRequest object with the specified parameters.
A set of results returned by GPUdb::createCredential.
std::string identity
User of the credential to be created.
CreateCredentialResponse()
Constructs a CreateCredentialResponse object with default parameters.