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>())
121 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_):
211 template<>
struct codec_traits<
gpudb::CreateResourceGroupRequest>
215 ::avro::encode(e, v.
name);
224 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
226 const std::vector<size_t> fo = rd->fieldOrder();
228 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
233 ::avro::decode(d, v.
name);
259 ::avro::decode(d, v.
name);
284 info(std::map<std::string, std::string>())
296 std::map<std::string, std::string>
info;
302 template<>
struct codec_traits<
gpudb::CreateResourceGroupResponse>
306 ::avro::encode(e, v.
name);
307 ::avro::encode(e, v.
info);
312 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
314 const std::vector<size_t> fo = rd->fieldOrder();
316 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
321 ::avro::decode(d, v.
name);
325 ::avro::decode(d, v.
info);
335 ::avro::decode(d, v.
name);
336 ::avro::decode(d, v.
info);
342 #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...