Support more error Codes.
This commit is contained in:
@@ -68,8 +68,8 @@ namespace AlibabaCloud
|
||||
void setZoneInfos(const std::vector<ZoneInfos>& zoneInfos);
|
||||
std::string getHostNamePrefix()const;
|
||||
void setHostNamePrefix(const std::string& hostNamePrefix);
|
||||
std::string getComputeSpotPriceLimit()const;
|
||||
void setComputeSpotPriceLimit(const std::string& computeSpotPriceLimit);
|
||||
float getComputeSpotPriceLimit()const;
|
||||
void setComputeSpotPriceLimit(float computeSpotPriceLimit);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
std::string getComputeSpotStrategy()const;
|
||||
@@ -80,8 +80,6 @@ namespace AlibabaCloud
|
||||
void setPriorityStrategy(const std::string& priorityStrategy);
|
||||
std::string getInstanceFamilyLevel()const;
|
||||
void setInstanceFamilyLevel(const std::string& instanceFamilyLevel);
|
||||
std::string getEcsChargeType()const;
|
||||
void setEcsChargeType(const std::string& ecsChargeType);
|
||||
std::string getInternetChargeType()const;
|
||||
void setInternetChargeType(const std::string& internetChargeType);
|
||||
std::vector<InstanceTypeModel> getInstanceTypeModel()const;
|
||||
@@ -105,13 +103,12 @@ namespace AlibabaCloud
|
||||
int systemDiskSize_;
|
||||
std::vector<ZoneInfos> zoneInfos_;
|
||||
std::string hostNamePrefix_;
|
||||
std::string computeSpotPriceLimit_;
|
||||
float computeSpotPriceLimit_;
|
||||
std::string clusterId_;
|
||||
std::string computeSpotStrategy_;
|
||||
std::string hostNameSuffix_;
|
||||
std::string priorityStrategy_;
|
||||
std::string instanceFamilyLevel_;
|
||||
std::string ecsChargeType_;
|
||||
std::string internetChargeType_;
|
||||
std::vector<InstanceTypeModel> instanceTypeModel_;
|
||||
int internetMaxBandWidthIn_;
|
||||
|
||||
@@ -37,12 +37,14 @@ namespace AlibabaCloud
|
||||
ApplyNodesResult();
|
||||
explicit ApplyNodesResult(const std::string &payload);
|
||||
~ApplyNodesResult();
|
||||
int getSatisfiedAmount()const;
|
||||
std::vector<std::string> getInstanceIds()const;
|
||||
std::string getDetail()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int satisfiedAmount_;
|
||||
std::vector<std::string> instanceIds_;
|
||||
std::string detail_;
|
||||
|
||||
|
||||
@@ -153,15 +153,15 @@ void ApplyNodesRequest::setHostNamePrefix(const std::string& hostNamePrefix)
|
||||
setParameter("HostNamePrefix", hostNamePrefix);
|
||||
}
|
||||
|
||||
std::string ApplyNodesRequest::getComputeSpotPriceLimit()const
|
||||
float ApplyNodesRequest::getComputeSpotPriceLimit()const
|
||||
{
|
||||
return computeSpotPriceLimit_;
|
||||
}
|
||||
|
||||
void ApplyNodesRequest::setComputeSpotPriceLimit(const std::string& computeSpotPriceLimit)
|
||||
void ApplyNodesRequest::setComputeSpotPriceLimit(float computeSpotPriceLimit)
|
||||
{
|
||||
computeSpotPriceLimit_ = computeSpotPriceLimit;
|
||||
setParameter("ComputeSpotPriceLimit", computeSpotPriceLimit);
|
||||
setParameter("ComputeSpotPriceLimit", std::to_string(computeSpotPriceLimit));
|
||||
}
|
||||
|
||||
std::string ApplyNodesRequest::getClusterId()const
|
||||
@@ -219,17 +219,6 @@ void ApplyNodesRequest::setInstanceFamilyLevel(const std::string& instanceFamily
|
||||
setParameter("InstanceFamilyLevel", instanceFamilyLevel);
|
||||
}
|
||||
|
||||
std::string ApplyNodesRequest::getEcsChargeType()const
|
||||
{
|
||||
return ecsChargeType_;
|
||||
}
|
||||
|
||||
void ApplyNodesRequest::setEcsChargeType(const std::string& ecsChargeType)
|
||||
{
|
||||
ecsChargeType_ = ecsChargeType;
|
||||
setParameter("EcsChargeType", ecsChargeType);
|
||||
}
|
||||
|
||||
std::string ApplyNodesRequest::getInternetChargeType()const
|
||||
{
|
||||
return internetChargeType_;
|
||||
|
||||
@@ -44,9 +44,16 @@ void ApplyNodesResult::parse(const std::string &payload)
|
||||
instanceIds_.push_back(item.asString());
|
||||
if(!value["Detail"].isNull())
|
||||
detail_ = value["Detail"].asString();
|
||||
if(!value["SatisfiedAmount"].isNull())
|
||||
satisfiedAmount_ = std::stoi(value["SatisfiedAmount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int ApplyNodesResult::getSatisfiedAmount()const
|
||||
{
|
||||
return satisfiedAmount_;
|
||||
}
|
||||
|
||||
std::vector<std::string> ApplyNodesResult::getInstanceIds()const
|
||||
{
|
||||
return instanceIds_;
|
||||
|
||||
Reference in New Issue
Block a user