6 #ifndef __CREATE_RESOURCE_GROUP_H__ 7 #define __CREATE_RESOURCE_GROUP_H__ 26 tierAttributes(std::map<std::string, std::map<std::string, std::string> >()),
29 options(std::map<std::string, std::string>())
131 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_):
228 template<>
struct codec_traits<
gpudb::CreateResourceGroupRequest>
232 ::avro::encode(e, v.
name);
241 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
243 const std::vector<size_t> fo = rd->fieldOrder();
245 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
250 ::avro::decode(d, v.
name);
276 ::avro::decode(d, v.
name);
301 info(std::map<std::string, std::string>())
313 std::map<std::string, std::string>
info;
319 template<>
struct codec_traits<
gpudb::CreateResourceGroupResponse>
323 ::avro::encode(e, v.
name);
324 ::avro::encode(e, v.
info);
329 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
331 const std::vector<size_t> fo = rd->fieldOrder();
333 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
338 ::avro::decode(d, v.
name);
342 ::avro::decode(d, v.
info);
352 ::avro::decode(d, v.
name);
353 ::avro::decode(d, v.
info);
359 #endif // __CREATE_RESOURCE_GROUP_H__
CreateResourceGroupResponse()
Constructs a CreateResourceGroupResponse object with default parameters.
std::map< std::string, std::string > info
Additional information.
A set of results returned by GPUdb::createResourceGroup.
std::map< std::string, std::map< std::string, std::string > > tierAttributes
Optional map containing tier names and their respective attribute group limits.
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
If ranking is before or after, this field indicates the resource group before or after which the curr...
CreateResourceGroupRequest()
Constructs a CreateResourceGroupRequest object with default parameters.
std::map< std::string, std::string > options
Optional parameters.
std::string name
Value of name.
std::string name
Name of the group to be created.
A set of parameters for GPUdb::createResourceGroup.
std::string ranking
Indicates the relative ranking among existing resource groups where this new resource group will be p...