Skip to content

Commit

Permalink
Generated 2021-09-31 for BPStudio.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Sep 24, 2024
1 parent 7d3dac0 commit ff00a60
Show file tree
Hide file tree
Showing 6 changed files with 111 additions and 21 deletions.
3 changes: 3 additions & 0 deletions aliyun-java-sdk-bpstudio/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2024-09-24 Version: 2.0.9
- Generated 2021-09-31 for `BPStudio`.

2024-09-24 Version: 2.0.8
- Generated 2021-09-31 for `BPStudio`.

Expand Down
2 changes: 1 addition & 1 deletion aliyun-java-sdk-bpstudio/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-bpstudio</artifactId>
<packaging>jar</packaging>
<version>2.0.8</version>
<version>2.0.9</version>
<name>aliyun-java-sdk-bpstudio</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 @@ -121,7 +121,7 @@ public static class Item {

private String promotionName;

private String eRROR;
private String error;

public String getNodeType() {
return this.nodeType;
Expand Down Expand Up @@ -171,12 +171,12 @@ public void setPromotionName(String promotionName) {
this.promotionName = promotionName;
}

public String getERROR() {
return this.eRROR;
public String getError() {
return this.error;
}

public void setERROR(String eRROR) {
this.eRROR = eRROR;
public void setError(String error) {
this.error = error;
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
*/

package com.aliyuncs.bpstudio.model.v20210931;


import java.util.List;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.bpstudio.transform.v20210931.QueryInstanceSpec4ModifyResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
Expand All @@ -30,12 +31,12 @@ public class QueryInstanceSpec4ModifyResponse extends AcsResponse {

private String message;

private String data;

private String requestId;

private String accessDeniedDetail;

private Data data;

public Boolean getSuccess() {
return this.success;
}
Expand All @@ -60,14 +61,6 @@ public void setMessage(String message) {
this.message = message;
}

public String getData() {
return this.data;
}

public void setData(String data) {
this.data = data;
}

public String getRequestId() {
return this.requestId;
}
Expand All @@ -84,6 +77,80 @@ public void setAccessDeniedDetail(String accessDeniedDetail) {
this.accessDeniedDetail = accessDeniedDetail;
}

public Data getData() {
return this.data;
}

public void setData(Data data) {
this.data = data;
}

public static class Data {

private List<Item> optionalValues;

public List<Item> getOptionalValues() {
return this.optionalValues;
}

public void setOptionalValues(List<Item> optionalValues) {
this.optionalValues = optionalValues;
}

public static class Item {

private String label;

private String value;

private Double min;

private Double max;

private Double step;

public String getLabel() {
return this.label;
}

public void setLabel(String label) {
this.label = label;
}

public String getValue() {
return this.value;
}

public void setValue(String value) {
this.value = value;
}

public Double getMin() {
return this.min;
}

public void setMin(Double min) {
this.min = min;
}

public Double getMax() {
return this.max;
}

public void setMax(Double max) {
this.max = max;
}

public Double getStep() {
return this.step;
}

public void setStep(Double step) {
this.step = step;
}
}
}

@Override
public QueryInstanceSpec4ModifyResponse getInstance(UnmarshallerContext context) {
return QueryInstanceSpec4ModifyResponseUnmarshaller.unmarshall(this, context);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public static GetResult4QueryInstancePrice4ModifyResponse unmarshall(GetResult4Q
item.setOriginalAmount(_ctx.doubleValue("GetResult4QueryInstancePrice4ModifyResponse.Data.PriceList["+ i +"].OriginalAmount"));
item.setPriceUnit(_ctx.stringValue("GetResult4QueryInstancePrice4ModifyResponse.Data.PriceList["+ i +"].PriceUnit"));
item.setPromotionName(_ctx.stringValue("GetResult4QueryInstancePrice4ModifyResponse.Data.PriceList["+ i +"].PromotionName"));
item.setERROR(_ctx.stringValue("GetResult4QueryInstancePrice4ModifyResponse.Data.PriceList["+ i +"].ERROR"));
item.setError(_ctx.stringValue("GetResult4QueryInstancePrice4ModifyResponse.Data.PriceList["+ i +"].Error"));

priceList.add(item);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@

package com.aliyuncs.bpstudio.transform.v20210931;

import com.aliyuncs.bpstudio.model.v20210931.QueryInstanceSpec4ModifyResponse;
import java.util.ArrayList;
import java.util.List;

import com.aliyuncs.bpstudio.model.v20210931.QueryInstanceSpec4ModifyResponse;
import com.aliyuncs.bpstudio.model.v20210931.QueryInstanceSpec4ModifyResponse.Data;
import com.aliyuncs.bpstudio.model.v20210931.QueryInstanceSpec4ModifyResponse.Data.Item;
import com.aliyuncs.transform.UnmarshallerContext;


Expand All @@ -26,8 +31,23 @@ public static QueryInstanceSpec4ModifyResponse unmarshall(QueryInstanceSpec4Modi
queryInstanceSpec4ModifyResponse.setSuccess(_ctx.booleanValue("QueryInstanceSpec4ModifyResponse.Success"));
queryInstanceSpec4ModifyResponse.setCode(_ctx.stringValue("QueryInstanceSpec4ModifyResponse.Code"));
queryInstanceSpec4ModifyResponse.setMessage(_ctx.stringValue("QueryInstanceSpec4ModifyResponse.Message"));
queryInstanceSpec4ModifyResponse.setData(_ctx.stringValue("QueryInstanceSpec4ModifyResponse.Data"));
queryInstanceSpec4ModifyResponse.setAccessDeniedDetail(_ctx.stringValue("QueryInstanceSpec4ModifyResponse.AccessDeniedDetail"));
queryInstanceSpec4ModifyResponse.setAccessDeniedDetail(_ctx.stringValue("QueryInstanceSpec4ModifyResponse.AccessDeniedDetail"));

Data data = new Data();

List<Item> optionalValues = new ArrayList<Item>();
for (int i = 0; i < _ctx.lengthValue("QueryInstanceSpec4ModifyResponse.Data.OptionalValues.Length"); i++) {
Item item = new Item();
item.setLabel(_ctx.stringValue("QueryInstanceSpec4ModifyResponse.Data.OptionalValues["+ i +"].Label"));
item.setValue(_ctx.stringValue("QueryInstanceSpec4ModifyResponse.Data.OptionalValues["+ i +"].Value"));
item.setMin(_ctx.doubleValue("QueryInstanceSpec4ModifyResponse.Data.OptionalValues["+ i +"].Min"));
item.setMax(_ctx.doubleValue("QueryInstanceSpec4ModifyResponse.Data.OptionalValues["+ i +"].Max"));
item.setStep(_ctx.doubleValue("QueryInstanceSpec4ModifyResponse.Data.OptionalValues["+ i +"].Step"));

optionalValues.add(item);
}
data.setOptionalValues(optionalValues);
queryInstanceSpec4ModifyResponse.setData(data);

return queryInstanceSpec4ModifyResponse;
}
Expand Down

0 comments on commit ff00a60

Please sign in to comment.