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>())
186 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_):
320 template<>
struct codec_traits<
gpudb::AlterResourceGroupRequest>
324 ::avro::encode(e, v.
name);
333 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
335 const std::vector<size_t> fo = rd->fieldOrder();
337 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
342 ::avro::decode(d, v.
name);
368 ::avro::decode(d, v.
name);
393 info(std::map<std::string, std::string>())
405 std::map<std::string, std::string>
info;
411 template<>
struct codec_traits<
gpudb::AlterResourceGroupResponse>
415 ::avro::encode(e, v.
name);
416 ::avro::encode(e, v.
info);
421 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
423 const std::vector<size_t> fo = rd->fieldOrder();
425 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
430 ::avro::decode(d, v.
name);
434 ::avro::decode(d, v.
info);
444 ::avro::decode(d, v.
name);
445 ::avro::decode(d, v.
info);
451 #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.