Skip to content

Commit

Permalink
QuerySavingsPlansInstance add CommodityCode.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed May 26, 2023
1 parent f853b81 commit 37b0aa1
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 1 deletion.
4 changes: 4 additions & 0 deletions aliyun-java-sdk-bssopenapi/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2023-05-26 Version: 1.8.10
- QuerySavingsPlansInstance add CommodityCode.
- QuerySavingsPlansDiscount add RegionCode.

2023-05-19 Version: 1.8.9
- DescribeInstanceAmortizedCostByAmortizationPeriodDate

Expand Down
2 changes: 1 addition & 1 deletion aliyun-java-sdk-bssopenapi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-bssopenapi</artifactId>
<packaging>jar</packaging>
<version>1.8.9</version>
<version>1.8.10</version>
<name>aliyun-java-sdk-bssopenapi</name>
<url>http://www.aliyun.com</url>
<description>Aliyun Open API SDK for Java
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ public static class SavingsPlansDiscountResponse {

private String region;

private String regionCode;

private String spec;

private String discountRate;
Expand Down Expand Up @@ -165,6 +167,14 @@ public void setRegion(String region) {
this.region = region;
}

public String getRegionCode() {
return this.regionCode;
}

public void setRegionCode(String regionCode) {
this.regionCode = regionCode;
}

public String getSpec() {
return this.spec;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ public static class SavingsPlansDetailResponse {

private String restPoolValue;

private String commodityCode;

private List<Tag> tags;

public String getStatus() {
Expand Down Expand Up @@ -331,6 +333,14 @@ public void setRestPoolValue(String restPoolValue) {
this.restPoolValue = restPoolValue;
}

public String getCommodityCode() {
return this.commodityCode;
}

public void setCommodityCode(String commodityCode) {
this.commodityCode = commodityCode;
}

public List<Tag> getTags() {
return this.tags;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public static QuerySavingsPlansDiscountResponse unmarshall(QuerySavingsPlansDisc
savingsPlansDiscountResponse.setPayMode(_ctx.stringValue("QuerySavingsPlansDiscountResponse.Data.Items["+ i +"].PayMode"));
savingsPlansDiscountResponse.setCycle(_ctx.stringValue("QuerySavingsPlansDiscountResponse.Data.Items["+ i +"].Cycle"));
savingsPlansDiscountResponse.setRegion(_ctx.stringValue("QuerySavingsPlansDiscountResponse.Data.Items["+ i +"].Region"));
savingsPlansDiscountResponse.setRegionCode(_ctx.stringValue("QuerySavingsPlansDiscountResponse.Data.Items["+ i +"].RegionCode"));
savingsPlansDiscountResponse.setSpec(_ctx.stringValue("QuerySavingsPlansDiscountResponse.Data.Items["+ i +"].Spec"));
savingsPlansDiscountResponse.setDiscountRate(_ctx.stringValue("QuerySavingsPlansDiscountResponse.Data.Items["+ i +"].DiscountRate"));
savingsPlansDiscountResponse.setContractDiscountRate(_ctx.stringValue("QuerySavingsPlansDiscountResponse.Data.Items["+ i +"].ContractDiscountRate"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public static QuerySavingsPlansInstanceResponse unmarshall(QuerySavingsPlansInst
savingsPlansDetailResponse.setPayMode(_ctx.stringValue("QuerySavingsPlansInstanceResponse.Data.Items["+ i +"].PayMode"));
savingsPlansDetailResponse.setDeductCycleType(_ctx.stringValue("QuerySavingsPlansInstanceResponse.Data.Items["+ i +"].DeductCycleType"));
savingsPlansDetailResponse.setRestPoolValue(_ctx.stringValue("QuerySavingsPlansInstanceResponse.Data.Items["+ i +"].RestPoolValue"));
savingsPlansDetailResponse.setCommodityCode(_ctx.stringValue("QuerySavingsPlansInstanceResponse.Data.Items["+ i +"].CommodityCode"));

List<Tag> tags = new ArrayList<Tag>();
for (int j = 0; j < _ctx.lengthValue("QuerySavingsPlansInstanceResponse.Data.Items["+ i +"].Tags.Length"); j++) {
Expand Down

0 comments on commit 37b0aa1

Please sign in to comment.