6 #ifndef __CREATE_CREDENTIAL_H__
7 #define __CREATE_CREDENTIAL_H__
31 options(std::map<std::string, std::string>())
69 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_):
82 std::map<std::string, std::string>
options;
88 template<>
struct codec_traits<gpudb::CreateCredentialRequest>
93 ::avro::encode(e, v.
type);
95 ::avro::encode(e, v.
secret);
101 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
103 const std::vector<size_t> fo = rd->fieldOrder();
105 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
114 ::avro::decode(d, v.
type);
122 ::avro::decode(d, v.
secret);
137 ::avro::decode(d, v.
type);
139 ::avro::decode(d, v.
secret);
165 info(std::map<std::string, std::string>())
170 std::map<std::string, std::string>
info;
176 template<>
struct codec_traits<gpudb::CreateCredentialResponse>
181 ::avro::encode(e, v.
info);
186 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
188 const std::vector<size_t> fo = rd->fieldOrder();
190 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
199 ::avro::decode(d, v.
info);
210 ::avro::decode(d, v.
info);
std::string credentialName
CreateCredentialRequest()
Constructs a CreateCredentialRequest object with default parameter values.
std::map< std::string, std::string > options
std::map< std::string, std::string > info
A set of input parameters for const.
std::string credentialName
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 output parameters for const.
CreateCredentialResponse()
Constructs a CreateCredentialResponse object with default parameter values.