From c8acc9fff1f44c6291328c9688f0a468ab6f8994 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Mon, 29 Jul 2024 01:50:47 +0000 Subject: [PATCH] Fix bug asyncExecute Error. --- aliyun-java-sdk-bpstudio/ChangeLog.txt | 3 + aliyun-java-sdk-bpstudio/pom.xml | 2 +- .../v20210931/DeployApplicationRequest.java | 13 ++ .../ExecuteOperationASyncRequest.java | 13 ++ .../ExecuteOperationSyncRequest.java | 114 ++++++++++++++++++ .../ExecuteOperationSyncResponse.java | 76 ++++++++++++ .../v20210931/ReleaseApplicationRequest.java | 13 ++ .../v20210931/ValidateApplicationRequest.java | 13 ++ .../v20210931/ValuateApplicationRequest.java | 13 ++ ...cuteOperationSyncResponseUnmarshaller.java | 32 +++++ 10 files changed, 291 insertions(+), 1 deletion(-) create mode 100644 aliyun-java-sdk-bpstudio/src/main/java/com/aliyuncs/bpstudio/model/v20210931/ExecuteOperationSyncRequest.java create mode 100644 aliyun-java-sdk-bpstudio/src/main/java/com/aliyuncs/bpstudio/model/v20210931/ExecuteOperationSyncResponse.java create mode 100644 aliyun-java-sdk-bpstudio/src/main/java/com/aliyuncs/bpstudio/transform/v20210931/ExecuteOperationSyncResponseUnmarshaller.java diff --git a/aliyun-java-sdk-bpstudio/ChangeLog.txt b/aliyun-java-sdk-bpstudio/ChangeLog.txt index 90159fda39..dd20db4cb8 100644 --- a/aliyun-java-sdk-bpstudio/ChangeLog.txt +++ b/aliyun-java-sdk-bpstudio/ChangeLog.txt @@ -1,3 +1,6 @@ +2024-07-29 Version: 2.0.3 +- Fix bug asyncExecute Error. + 2024-01-25 Version: 2.0.2 - Fix bug asyncExecute Error. diff --git a/aliyun-java-sdk-bpstudio/pom.xml b/aliyun-java-sdk-bpstudio/pom.xml index 41982d3a69..12f9f57ad2 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.2 + 2.0.3 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/DeployApplicationRequest.java b/aliyun-java-sdk-bpstudio/src/main/java/com/aliyuncs/bpstudio/model/v20210931/DeployApplicationRequest.java index 714af0088a..24c72ddb9a 100644 --- a/aliyun-java-sdk-bpstudio/src/main/java/com/aliyuncs/bpstudio/model/v20210931/DeployApplicationRequest.java +++ b/aliyun-java-sdk-bpstudio/src/main/java/com/aliyuncs/bpstudio/model/v20210931/DeployApplicationRequest.java @@ -24,6 +24,8 @@ public class DeployApplicationRequest extends RpcAcsRequest { + private String clientToken; + private String resourceGroupId; private String applicationId; @@ -32,6 +34,17 @@ public DeployApplicationRequest() { setMethod(MethodType.POST); } + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putBodyParameter("ClientToken", clientToken); + } + } + public String getResourceGroupId() { return this.resourceGroupId; } diff --git a/aliyun-java-sdk-bpstudio/src/main/java/com/aliyuncs/bpstudio/model/v20210931/ExecuteOperationASyncRequest.java b/aliyun-java-sdk-bpstudio/src/main/java/com/aliyuncs/bpstudio/model/v20210931/ExecuteOperationASyncRequest.java index 2229f37fb4..b8d9886ede 100644 --- a/aliyun-java-sdk-bpstudio/src/main/java/com/aliyuncs/bpstudio/model/v20210931/ExecuteOperationASyncRequest.java +++ b/aliyun-java-sdk-bpstudio/src/main/java/com/aliyuncs/bpstudio/model/v20210931/ExecuteOperationASyncRequest.java @@ -24,6 +24,8 @@ public class ExecuteOperationASyncRequest extends RpcAcsRequest { + private String clientToken; + private String resourceGroupId; private String serviceType; @@ -38,6 +40,17 @@ public ExecuteOperationASyncRequest() { setMethod(MethodType.POST); } + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putBodyParameter("ClientToken", clientToken); + } + } + public String getResourceGroupId() { return this.resourceGroupId; } diff --git a/aliyun-java-sdk-bpstudio/src/main/java/com/aliyuncs/bpstudio/model/v20210931/ExecuteOperationSyncRequest.java b/aliyun-java-sdk-bpstudio/src/main/java/com/aliyuncs/bpstudio/model/v20210931/ExecuteOperationSyncRequest.java new file mode 100644 index 0000000000..7908221fce --- /dev/null +++ b/aliyun-java-sdk-bpstudio/src/main/java/com/aliyuncs/bpstudio/model/v20210931/ExecuteOperationSyncRequest.java @@ -0,0 +1,114 @@ +/* + * 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.MethodType; + +/** + * @author auto create + * @version + */ +public class ExecuteOperationSyncRequest extends RpcAcsRequest { + + + private String clientToken; + + private String resourceGroupId; + + private String serviceType; + + private String attributes; + + private String applicationId; + + private String operation; + public ExecuteOperationSyncRequest() { + super("BPStudio", "2021-09-31", "ExecuteOperationSync", "bpstudio"); + setMethod(MethodType.POST); + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putBodyParameter("ClientToken", clientToken); + } + } + + public String getResourceGroupId() { + return this.resourceGroupId; + } + + public void setResourceGroupId(String resourceGroupId) { + this.resourceGroupId = resourceGroupId; + if(resourceGroupId != null){ + putBodyParameter("ResourceGroupId", resourceGroupId); + } + } + + public String getServiceType() { + return this.serviceType; + } + + public void setServiceType(String serviceType) { + this.serviceType = serviceType; + if(serviceType != null){ + putBodyParameter("ServiceType", serviceType); + } + } + + public String getAttributes() { + return this.attributes; + } + + public void setAttributes(String attributes) { + this.attributes = attributes; + if(attributes != null){ + putBodyParameter("Attributes", attributes); + } + } + + public String getApplicationId() { + return this.applicationId; + } + + public void setApplicationId(String applicationId) { + this.applicationId = applicationId; + if(applicationId != null){ + putBodyParameter("ApplicationId", applicationId); + } + } + + public String getOperation() { + return this.operation; + } + + public void setOperation(String operation) { + this.operation = operation; + if(operation != null){ + putBodyParameter("Operation", operation); + } + } + + @Override + public Class getResponseClass() { + return ExecuteOperationSyncResponse.class; + } + +} diff --git a/aliyun-java-sdk-bpstudio/src/main/java/com/aliyuncs/bpstudio/model/v20210931/ExecuteOperationSyncResponse.java b/aliyun-java-sdk-bpstudio/src/main/java/com/aliyuncs/bpstudio/model/v20210931/ExecuteOperationSyncResponse.java new file mode 100644 index 0000000000..d94c257bad --- /dev/null +++ b/aliyun-java-sdk-bpstudio/src/main/java/com/aliyuncs/bpstudio/model/v20210931/ExecuteOperationSyncResponse.java @@ -0,0 +1,76 @@ +/* + * 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.AcsResponse; +import com.aliyuncs.bpstudio.transform.v20210931.ExecuteOperationSyncResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ExecuteOperationSyncResponse extends AcsResponse { + + private String message; + + private String requestId; + + private String data; + + private Integer code; + + public String getMessage() { + return this.message; + } + + public void setMessage(String message) { + this.message = message; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getData() { + return this.data; + } + + public void setData(String data) { + this.data = data; + } + + public Integer getCode() { + return this.code; + } + + public void setCode(Integer code) { + this.code = code; + } + + @Override + public ExecuteOperationSyncResponse getInstance(UnmarshallerContext context) { + return ExecuteOperationSyncResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-bpstudio/src/main/java/com/aliyuncs/bpstudio/model/v20210931/ReleaseApplicationRequest.java b/aliyun-java-sdk-bpstudio/src/main/java/com/aliyuncs/bpstudio/model/v20210931/ReleaseApplicationRequest.java index 8cc0234c94..bb98f3464f 100644 --- a/aliyun-java-sdk-bpstudio/src/main/java/com/aliyuncs/bpstudio/model/v20210931/ReleaseApplicationRequest.java +++ b/aliyun-java-sdk-bpstudio/src/main/java/com/aliyuncs/bpstudio/model/v20210931/ReleaseApplicationRequest.java @@ -24,6 +24,8 @@ public class ReleaseApplicationRequest extends RpcAcsRequest { + private String clientToken; + private String resourceGroupId; private String applicationId; @@ -32,6 +34,17 @@ public ReleaseApplicationRequest() { setMethod(MethodType.POST); } + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putBodyParameter("ClientToken", clientToken); + } + } + public String getResourceGroupId() { return this.resourceGroupId; } diff --git a/aliyun-java-sdk-bpstudio/src/main/java/com/aliyuncs/bpstudio/model/v20210931/ValidateApplicationRequest.java b/aliyun-java-sdk-bpstudio/src/main/java/com/aliyuncs/bpstudio/model/v20210931/ValidateApplicationRequest.java index 02bcb25673..657bb85123 100644 --- a/aliyun-java-sdk-bpstudio/src/main/java/com/aliyuncs/bpstudio/model/v20210931/ValidateApplicationRequest.java +++ b/aliyun-java-sdk-bpstudio/src/main/java/com/aliyuncs/bpstudio/model/v20210931/ValidateApplicationRequest.java @@ -24,6 +24,8 @@ public class ValidateApplicationRequest extends RpcAcsRequest { + private String clientToken; + private String resourceGroupId; private String applicationId; @@ -32,6 +34,17 @@ public ValidateApplicationRequest() { setMethod(MethodType.POST); } + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putBodyParameter("ClientToken", clientToken); + } + } + public String getResourceGroupId() { return this.resourceGroupId; } diff --git a/aliyun-java-sdk-bpstudio/src/main/java/com/aliyuncs/bpstudio/model/v20210931/ValuateApplicationRequest.java b/aliyun-java-sdk-bpstudio/src/main/java/com/aliyuncs/bpstudio/model/v20210931/ValuateApplicationRequest.java index ee44657818..b0dc643879 100644 --- a/aliyun-java-sdk-bpstudio/src/main/java/com/aliyuncs/bpstudio/model/v20210931/ValuateApplicationRequest.java +++ b/aliyun-java-sdk-bpstudio/src/main/java/com/aliyuncs/bpstudio/model/v20210931/ValuateApplicationRequest.java @@ -24,6 +24,8 @@ public class ValuateApplicationRequest extends RpcAcsRequest { + private String clientToken; + private String resourceGroupId; private String applicationId; @@ -32,6 +34,17 @@ public ValuateApplicationRequest() { setMethod(MethodType.POST); } + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putBodyParameter("ClientToken", clientToken); + } + } + public String getResourceGroupId() { return this.resourceGroupId; } diff --git a/aliyun-java-sdk-bpstudio/src/main/java/com/aliyuncs/bpstudio/transform/v20210931/ExecuteOperationSyncResponseUnmarshaller.java b/aliyun-java-sdk-bpstudio/src/main/java/com/aliyuncs/bpstudio/transform/v20210931/ExecuteOperationSyncResponseUnmarshaller.java new file mode 100644 index 0000000000..afe47d97c9 --- /dev/null +++ b/aliyun-java-sdk-bpstudio/src/main/java/com/aliyuncs/bpstudio/transform/v20210931/ExecuteOperationSyncResponseUnmarshaller.java @@ -0,0 +1,32 @@ +/* + * 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 com.aliyuncs.bpstudio.model.v20210931.ExecuteOperationSyncResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ExecuteOperationSyncResponseUnmarshaller { + + public static ExecuteOperationSyncResponse unmarshall(ExecuteOperationSyncResponse executeOperationSyncResponse, UnmarshallerContext _ctx) { + + executeOperationSyncResponse.setRequestId(_ctx.stringValue("ExecuteOperationSyncResponse.RequestId")); + executeOperationSyncResponse.setMessage(_ctx.stringValue("ExecuteOperationSyncResponse.Message")); + executeOperationSyncResponse.setData(_ctx.stringValue("ExecuteOperationSyncResponse.Data")); + executeOperationSyncResponse.setCode(_ctx.integerValue("ExecuteOperationSyncResponse.Code")); + + return executeOperationSyncResponse; + } +} \ No newline at end of file