6 #ifndef __ALTER_RESOURCE_GROUP_H__ 7 #define __ALTER_RESOURCE_GROUP_H__ 27 tierAttributes(std::map<std::string, std::map<std::string, std::string> >()),
30 options(std::map<std::string, std::string>())
175 AlterResourceGroupRequest(
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_):
301 template<>
struct codec_traits<
gpudb::AlterResourceGroupRequest>
305 ::avro::encode(e, v.
name);
314 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
316 const std::vector<size_t> fo = rd->fieldOrder();
318 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
323 ::avro::decode(d, v.
name);
349 ::avro::decode(d, v.
name);
374 info(std::map<std::string, std::string>())
386 std::map<std::string, std::string>
info;
392 template<>
struct codec_traits<
gpudb::AlterResourceGroupResponse>
396 ::avro::encode(e, v.
name);
397 ::avro::encode(e, v.
info);
402 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
404 const std::vector<size_t> fo = rd->fieldOrder();
406 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
411 ::avro::decode(d, v.
name);
415 ::avro::decode(d, v.
info);
425 ::avro::decode(d, v.
name);
426 ::avro::decode(d, v.
info);
432 #endif // __ALTER_RESOURCE_GROUP_H__ std::map< std::string, std::map< std::string, std::string > > tierAttributes
Optional map containing tier names and their respective attribute group limits.
std::string name
Value of name.
std::string name
Name of the group to be altered.
AlterResourceGroupRequest()
Constructs an AlterResourceGroupRequest object with default parameters.
std::map< std::string, std::string > options
Optional parameters.
AlterResourceGroupResponse()
Constructs an AlterResourceGroupResponse object with default parameters.
AlterResourceGroupRequest(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 an AlterResourceGroupRequest 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...
A set of parameters for GPUdb::alterResourceGroup.
std::string ranking
If the resource group ranking is to be updated, this indicates the relative ranking among existing re...
std::map< std::string, std::string > info
Additional information.
A set of results returned by GPUdb::alterResourceGroup.