由谦正发起的EHPC SDK自动发布, 版本号:1.11.0
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
@@ -40,97 +40,97 @@ void GetAutoScaleConfigResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Uid"].isNull())
|
||||
uid_ = value["Uid"].asString();
|
||||
if(!value["ClusterId"].isNull())
|
||||
clusterId_ = value["ClusterId"].asString();
|
||||
if(!value["ClusterType"].isNull())
|
||||
clusterType_ = value["ClusterType"].asString();
|
||||
if(!value["EnableAutoGrow"].isNull())
|
||||
enableAutoGrow_ = value["EnableAutoGrow"].asString() == "true";
|
||||
if(!value["EnableAutoShrink"].isNull())
|
||||
enableAutoShrink_ = value["EnableAutoShrink"].asString() == "true";
|
||||
if(!value["GrowIntervalInMinutes"].isNull())
|
||||
growIntervalInMinutes_ = std::stoi(value["GrowIntervalInMinutes"].asString());
|
||||
if(!value["ShrinkIntervalInMinutes"].isNull())
|
||||
shrinkIntervalInMinutes_ = std::stoi(value["ShrinkIntervalInMinutes"].asString());
|
||||
if(!value["ShrinkIdleTimes"].isNull())
|
||||
shrinkIdleTimes_ = std::stoi(value["ShrinkIdleTimes"].asString());
|
||||
if(!value["GrowTimeoutInMinutes"].isNull())
|
||||
growTimeoutInMinutes_ = std::stoi(value["GrowTimeoutInMinutes"].asString());
|
||||
if(!value["ExtraNodesGrowRatio"].isNull())
|
||||
extraNodesGrowRatio_ = std::stoi(value["ExtraNodesGrowRatio"].asString());
|
||||
if(!value["GrowRatio"].isNull())
|
||||
growRatio_ = std::stoi(value["GrowRatio"].asString());
|
||||
if(!value["MaxNodesInCluster"].isNull())
|
||||
maxNodesInCluster_ = std::stoi(value["MaxNodesInCluster"].asString());
|
||||
if(!value["ExcludeNodes"].isNull())
|
||||
excludeNodes_ = value["ExcludeNodes"].asString();
|
||||
if(!value["Uid"].isNull())
|
||||
uid_ = value["Uid"].asString();
|
||||
if(!value["ClusterId"].isNull())
|
||||
clusterId_ = value["ClusterId"].asString();
|
||||
if(!value["ClusterType"].isNull())
|
||||
clusterType_ = value["ClusterType"].asString();
|
||||
if(!value["EnableAutoGrow"].isNull())
|
||||
enableAutoGrow_ = value["EnableAutoGrow"].asString() == "true";
|
||||
if(!value["EnableAutoShrink"].isNull())
|
||||
enableAutoShrink_ = value["EnableAutoShrink"].asString() == "true";
|
||||
if(!value["GrowIntervalInMinutes"].isNull())
|
||||
growIntervalInMinutes_ = std::stoi(value["GrowIntervalInMinutes"].asString());
|
||||
if(!value["ShrinkIntervalInMinutes"].isNull())
|
||||
shrinkIntervalInMinutes_ = std::stoi(value["ShrinkIntervalInMinutes"].asString());
|
||||
if(!value["ShrinkIdleTimes"].isNull())
|
||||
shrinkIdleTimes_ = std::stoi(value["ShrinkIdleTimes"].asString());
|
||||
if(!value["GrowTimeoutInMinutes"].isNull())
|
||||
growTimeoutInMinutes_ = std::stoi(value["GrowTimeoutInMinutes"].asString());
|
||||
if(!value["ExtraNodesGrowRatio"].isNull())
|
||||
extraNodesGrowRatio_ = std::stoi(value["ExtraNodesGrowRatio"].asString());
|
||||
if(!value["GrowRatio"].isNull())
|
||||
growRatio_ = std::stoi(value["GrowRatio"].asString());
|
||||
if(!value["MaxNodesInCluster"].isNull())
|
||||
maxNodesInCluster_ = std::stoi(value["MaxNodesInCluster"].asString());
|
||||
if(!value["ExcludeNodes"].isNull())
|
||||
excludeNodes_ = value["ExcludeNodes"].asString();
|
||||
|
||||
}
|
||||
|
||||
int GetAutoScaleConfigResult::getExtraNodesGrowRatio()const
|
||||
{
|
||||
return extraNodesGrowRatio_;
|
||||
}
|
||||
|
||||
bool GetAutoScaleConfigResult::getEnableAutoGrow()const
|
||||
{
|
||||
return enableAutoGrow_;
|
||||
}
|
||||
|
||||
std::string GetAutoScaleConfigResult::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
int GetAutoScaleConfigResult::getShrinkIdleTimes()const
|
||||
{
|
||||
return shrinkIdleTimes_;
|
||||
}
|
||||
|
||||
int GetAutoScaleConfigResult::getMaxNodesInCluster()const
|
||||
{
|
||||
return maxNodesInCluster_;
|
||||
}
|
||||
|
||||
std::string GetAutoScaleConfigResult::getClusterType()const
|
||||
{
|
||||
return clusterType_;
|
||||
}
|
||||
|
||||
bool GetAutoScaleConfigResult::getEnableAutoShrink()const
|
||||
{
|
||||
return enableAutoShrink_;
|
||||
}
|
||||
|
||||
int GetAutoScaleConfigResult::getGrowRatio()const
|
||||
{
|
||||
return growRatio_;
|
||||
}
|
||||
|
||||
int GetAutoScaleConfigResult::getGrowIntervalInMinutes()const
|
||||
{
|
||||
return growIntervalInMinutes_;
|
||||
}
|
||||
|
||||
std::string GetAutoScaleConfigResult::getUid()const
|
||||
{
|
||||
return uid_;
|
||||
}
|
||||
|
||||
int GetAutoScaleConfigResult::getGrowTimeoutInMinutes()const
|
||||
{
|
||||
return growTimeoutInMinutes_;
|
||||
}
|
||||
|
||||
int GetAutoScaleConfigResult::getShrinkIntervalInMinutes()const
|
||||
{
|
||||
return shrinkIntervalInMinutes_;
|
||||
}
|
||||
|
||||
std::string GetAutoScaleConfigResult::getExcludeNodes()const
|
||||
{
|
||||
return excludeNodes_;
|
||||
}
|
||||
|
||||
int GetAutoScaleConfigResult::getExtraNodesGrowRatio()const
|
||||
{
|
||||
return extraNodesGrowRatio_;
|
||||
}
|
||||
|
||||
bool GetAutoScaleConfigResult::getEnableAutoGrow()const
|
||||
{
|
||||
return enableAutoGrow_;
|
||||
}
|
||||
|
||||
std::string GetAutoScaleConfigResult::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
int GetAutoScaleConfigResult::getShrinkIdleTimes()const
|
||||
{
|
||||
return shrinkIdleTimes_;
|
||||
}
|
||||
|
||||
int GetAutoScaleConfigResult::getMaxNodesInCluster()const
|
||||
{
|
||||
return maxNodesInCluster_;
|
||||
}
|
||||
|
||||
std::string GetAutoScaleConfigResult::getClusterType()const
|
||||
{
|
||||
return clusterType_;
|
||||
}
|
||||
|
||||
bool GetAutoScaleConfigResult::getEnableAutoShrink()const
|
||||
{
|
||||
return enableAutoShrink_;
|
||||
}
|
||||
|
||||
int GetAutoScaleConfigResult::getGrowRatio()const
|
||||
{
|
||||
return growRatio_;
|
||||
}
|
||||
|
||||
int GetAutoScaleConfigResult::getGrowIntervalInMinutes()const
|
||||
{
|
||||
return growIntervalInMinutes_;
|
||||
}
|
||||
|
||||
std::string GetAutoScaleConfigResult::getUid()const
|
||||
{
|
||||
return uid_;
|
||||
}
|
||||
|
||||
int GetAutoScaleConfigResult::getGrowTimeoutInMinutes()const
|
||||
{
|
||||
return growTimeoutInMinutes_;
|
||||
}
|
||||
|
||||
int GetAutoScaleConfigResult::getShrinkIntervalInMinutes()const
|
||||
{
|
||||
return shrinkIntervalInMinutes_;
|
||||
}
|
||||
|
||||
std::string GetAutoScaleConfigResult::getExcludeNodes()const
|
||||
{
|
||||
return excludeNodes_;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user