6 #ifndef __CREATE_RESOURCE_GROUP_H__
7 #define __CREATE_RESOURCE_GROUP_H__
27 tierAttributes(std::map<std::string, std::map<std::string, std::string> >()),
30 options(std::map<std::string, std::string>())
98 CreateResourceGroupRequest(
const std::string& name_,
const std::map<std::string, std::map<std::string, std::string> >& tierAttributes_,
const std::string& ranking_,
const std::string& adjoiningResourceGroup_,
const std::map<std::string, std::string>& options_):
117 template<>
struct codec_traits<gpudb::CreateResourceGroupRequest>
121 ::avro::encode(e, v.
name);
130 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
132 const std::vector<size_t> fo = rd->fieldOrder();
134 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
139 ::avro::decode(d, v.
name);
165 ::avro::decode(d, v.
name);
193 info(std::map<std::string, std::string>())
198 std::map<std::string, std::string>
info;
204 template<>
struct codec_traits<gpudb::CreateResourceGroupResponse>
208 ::avro::encode(e, v.
name);
209 ::avro::encode(e, v.
info);
214 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
216 const std::vector<size_t> fo = rd->fieldOrder();
218 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
223 ::avro::decode(d, v.
name);
227 ::avro::decode(d, v.
info);
237 ::avro::decode(d, v.
name);
238 ::avro::decode(d, v.
info);
CreateResourceGroupResponse()
Constructs a CreateResourceGroupResponse object with default parameter values.
std::map< std::string, std::string > info
A set of output parameters for const.
std::map< std::string, std::map< std::string, std::string > > tierAttributes
CreateResourceGroupRequest(const std::string &name_, const std::map< std::string, std::map< std::string, std::string > > &tierAttributes_, const std::string &ranking_, const std::string &adjoiningResourceGroup_, const std::map< std::string, std::string > &options_)
Constructs a CreateResourceGroupRequest object with the specified parameters.
std::string adjoiningResourceGroup
CreateResourceGroupRequest()
Constructs a CreateResourceGroupRequest object with default parameter values.
std::map< std::string, std::string > options
A set of input parameters for const.