6 #ifndef __CREATE_CREDENTIAL_H__ 7 #define __CREATE_CREDENTIAL_H__ 29 options(std::map<std::string, std::string>())
87 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_):
158 template<>
struct codec_traits<
gpudb::CreateCredentialRequest>
163 ::avro::encode(e, v.
type);
165 ::avro::encode(e, v.
secret);
171 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
173 const std::vector<size_t> fo = rd->fieldOrder();
175 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
184 ::avro::decode(d, v.
type);
192 ::avro::decode(d, v.
secret);
207 ::avro::decode(d, v.
type);
209 ::avro::decode(d, v.
secret);
231 info(std::map<std::string, std::string>())
244 std::map<std::string, std::string>
info;
250 template<>
struct codec_traits<
gpudb::CreateCredentialResponse>
255 ::avro::encode(e, v.
info);
260 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
262 const std::vector<size_t> fo = rd->fieldOrder();
264 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
273 ::avro::decode(d, v.
info);
284 ::avro::decode(d, v.
info);
290 #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.