diff --git a/aliyun-java-sdk-bpstudio/ChangeLog.txt b/aliyun-java-sdk-bpstudio/ChangeLog.txt index 9f98d40700..120b13270c 100644 --- a/aliyun-java-sdk-bpstudio/ChangeLog.txt +++ b/aliyun-java-sdk-bpstudio/ChangeLog.txt @@ -1,3 +1,6 @@ +2024-09-03 Version: 2.0.7 +- Generated 2021-09-31 for `BPStudio`. + 2024-08-30 Version: 2.0.6 - Fix bug asyncExecute Error. diff --git a/aliyun-java-sdk-bpstudio/pom.xml b/aliyun-java-sdk-bpstudio/pom.xml index 13f87b75e9..b01885d2d9 100644 --- a/aliyun-java-sdk-bpstudio/pom.xml +++ b/aliyun-java-sdk-bpstudio/pom.xml @@ -4,7 +4,7 @@ com.aliyun aliyun-java-sdk-bpstudio jar - 2.0.6 + 2.0.7 aliyun-java-sdk-bpstudio http://www.aliyun.com Aliyun Open API SDK for Java diff --git a/aliyun-java-sdk-bpstudio/src/main/java/com/aliyuncs/bpstudio/model/v20210931/GetApplicationVariablesRequest.java b/aliyun-java-sdk-bpstudio/src/main/java/com/aliyuncs/bpstudio/model/v20210931/GetApplicationVariablesRequest.java new file mode 100644 index 0000000000..50e421b147 --- /dev/null +++ b/aliyun-java-sdk-bpstudio/src/main/java/com/aliyuncs/bpstudio/model/v20210931/GetApplicationVariablesRequest.java @@ -0,0 +1,51 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.bpstudio.model.v20210931; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class GetApplicationVariablesRequest extends RpcAcsRequest { + + + private String appId; + public GetApplicationVariablesRequest() { + super("BPStudio", "2021-09-31", "GetApplicationVariables", "bpstudio"); + setProtocol(ProtocolType.HTTPS); + setMethod(MethodType.POST); + } + + public String getAppId() { + return this.appId; + } + + public void setAppId(String appId) { + this.appId = appId; + if(appId != null){ + putBodyParameter("AppId", appId); + } + } + + @Override + public Class getResponseClass() { + return GetApplicationVariablesResponse.class; + } + +} diff --git a/aliyun-java-sdk-bpstudio/src/main/java/com/aliyuncs/bpstudio/model/v20210931/GetApplicationVariablesResponse.java b/aliyun-java-sdk-bpstudio/src/main/java/com/aliyuncs/bpstudio/model/v20210931/GetApplicationVariablesResponse.java new file mode 100644 index 0000000000..e912946f67 --- /dev/null +++ b/aliyun-java-sdk-bpstudio/src/main/java/com/aliyuncs/bpstudio/model/v20210931/GetApplicationVariablesResponse.java @@ -0,0 +1,123 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.bpstudio.model.v20210931; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.bpstudio.transform.v20210931.GetApplicationVariablesResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class GetApplicationVariablesResponse extends AcsResponse { + + private String requestId; + + private String message; + + private Integer code; + + private List data; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getMessage() { + return this.message; + } + + public void setMessage(String message) { + this.message = message; + } + + public Integer getCode() { + return this.code; + } + + public void setCode(Integer code) { + this.code = code; + } + + public List getData() { + return this.data; + } + + public void setData(List data) { + this.data = data; + } + + public static class Items { + + private String instanceId; + + private List variableList; + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public List getVariableList() { + return this.variableList; + } + + public void setVariableList(List variableList) { + this.variableList = variableList; + } + + public static class Variables { + + private String variable; + + private String value; + + public String getVariable() { + return this.variable; + } + + public void setVariable(String variable) { + this.variable = variable; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } + } + + @Override + public GetApplicationVariablesResponse getInstance(UnmarshallerContext context) { + return GetApplicationVariablesResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-bpstudio/src/main/java/com/aliyuncs/bpstudio/transform/v20210931/GetApplicationVariablesResponseUnmarshaller.java b/aliyun-java-sdk-bpstudio/src/main/java/com/aliyuncs/bpstudio/transform/v20210931/GetApplicationVariablesResponseUnmarshaller.java new file mode 100644 index 0000000000..1cc614422c --- /dev/null +++ b/aliyun-java-sdk-bpstudio/src/main/java/com/aliyuncs/bpstudio/transform/v20210931/GetApplicationVariablesResponseUnmarshaller.java @@ -0,0 +1,55 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.bpstudio.transform.v20210931; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.bpstudio.model.v20210931.GetApplicationVariablesResponse; +import com.aliyuncs.bpstudio.model.v20210931.GetApplicationVariablesResponse.Items; +import com.aliyuncs.bpstudio.model.v20210931.GetApplicationVariablesResponse.Items.Variables; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class GetApplicationVariablesResponseUnmarshaller { + + public static GetApplicationVariablesResponse unmarshall(GetApplicationVariablesResponse getApplicationVariablesResponse, UnmarshallerContext _ctx) { + + getApplicationVariablesResponse.setRequestId(_ctx.stringValue("GetApplicationVariablesResponse.RequestId")); + getApplicationVariablesResponse.setMessage(_ctx.stringValue("GetApplicationVariablesResponse.Message")); + getApplicationVariablesResponse.setCode(_ctx.integerValue("GetApplicationVariablesResponse.Code")); + + List data = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("GetApplicationVariablesResponse.Data.Length"); i++) { + Items items = new Items(); + items.setInstanceId(_ctx.stringValue("GetApplicationVariablesResponse.Data["+ i +"].InstanceId")); + + List variableList = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("GetApplicationVariablesResponse.Data["+ i +"].VariableList.Length"); j++) { + Variables variables = new Variables(); + variables.setVariable(_ctx.stringValue("GetApplicationVariablesResponse.Data["+ i +"].VariableList["+ j +"].Variable")); + variables.setValue(_ctx.stringValue("GetApplicationVariablesResponse.Data["+ i +"].VariableList["+ j +"].Value")); + + variableList.add(variables); + } + items.setVariableList(variableList); + + data.add(items); + } + getApplicationVariablesResponse.setData(data); + + return getApplicationVariablesResponse; + } +} \ No newline at end of file