QuerySavingsPlansInstance api add rest pool value query param.
This commit is contained in:
@@ -44,6 +44,8 @@ public:
|
||||
void setDuration(const std::string &duration);
|
||||
std::string getSpecType() const;
|
||||
void setSpecType(const std::string &specType);
|
||||
std::map<std::string, std::string> getExtendMap() const;
|
||||
void setExtendMap(const std::map<std::string, std::string> &extendMap);
|
||||
std::string getPayMode() const;
|
||||
void setPayMode(const std::string &payMode);
|
||||
std::string getRegion() const;
|
||||
@@ -59,6 +61,7 @@ private:
|
||||
std::string effectiveDate_;
|
||||
std::string duration_;
|
||||
std::string specType_;
|
||||
std::map<std::string, std::string> extendMap_;
|
||||
std::string payMode_;
|
||||
std::string region_;
|
||||
std::string pricingCycle_;
|
||||
|
||||
@@ -62,6 +62,7 @@ namespace AlibabaCloud
|
||||
std::vector<SavingsPlansDetailResponse::Tag> tags;
|
||||
std::string savingsType;
|
||||
std::string deductCycleType;
|
||||
std::string restPoolValue;
|
||||
};
|
||||
int totalCount;
|
||||
int pageNum;
|
||||
|
||||
@@ -88,6 +88,17 @@ void CreateSavingsPlansInstanceRequest::setSpecType(const std::string &specType)
|
||||
setParameter(std::string("SpecType"), specType);
|
||||
}
|
||||
|
||||
std::map<std::string, std::string> CreateSavingsPlansInstanceRequest::getExtendMap() const {
|
||||
return extendMap_;
|
||||
}
|
||||
|
||||
void CreateSavingsPlansInstanceRequest::setExtendMap(const std::map<std::string, std::string> &extendMap) {
|
||||
extendMap_ = extendMap;
|
||||
for(auto const &iter1 : extendMap) {
|
||||
setParameter(std::string("ExtendMap") + "." + iter1.first, iter1.second);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateSavingsPlansInstanceRequest::getPayMode() const {
|
||||
return payMode_;
|
||||
}
|
||||
|
||||
@@ -90,6 +90,8 @@ void QuerySavingsPlansInstanceResult::parse(const std::string &payload)
|
||||
savingsPlansDetailResponseObject.payMode = dataNodeItemsSavingsPlansDetailResponse["PayMode"].asString();
|
||||
if(!dataNodeItemsSavingsPlansDetailResponse["DeductCycleType"].isNull())
|
||||
savingsPlansDetailResponseObject.deductCycleType = dataNodeItemsSavingsPlansDetailResponse["DeductCycleType"].asString();
|
||||
if(!dataNodeItemsSavingsPlansDetailResponse["RestPoolValue"].isNull())
|
||||
savingsPlansDetailResponseObject.restPoolValue = dataNodeItemsSavingsPlansDetailResponse["RestPoolValue"].asString();
|
||||
auto allTagsNode = dataNodeItemsSavingsPlansDetailResponse["Tags"]["Tag"];
|
||||
for (auto dataNodeItemsSavingsPlansDetailResponseTagsTag : allTagsNode)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user