Skip to content

Commit

Permalink
Fix bug asyncExecute Error.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Jul 29, 2024
1 parent 817e603 commit c8acc9f
Show file tree
Hide file tree
Showing 10 changed files with 291 additions and 1 deletion.
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-07-29 Version: 2.0.3
- Fix bug asyncExecute Error.

2024-01-25 Version: 2.0.2
- Fix bug asyncExecute Error.

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.2</version>
<version>2.0.3</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 @@ -24,6 +24,8 @@
public class DeployApplicationRequest extends RpcAcsRequest<DeployApplicationResponse> {


private String clientToken;

private String resourceGroupId;

private String applicationId;
Expand All @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
public class ExecuteOperationASyncRequest extends RpcAcsRequest<ExecuteOperationASyncResponse> {


private String clientToken;

private String resourceGroupId;

private String serviceType;
Expand All @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -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<ExecuteOperationSyncResponse> {


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<ExecuteOperationSyncResponse> getResponseClass() {
return ExecuteOperationSyncResponse.class;
}

}
Original file line number Diff line number Diff line change
@@ -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;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
public class ReleaseApplicationRequest extends RpcAcsRequest<ReleaseApplicationResponse> {


private String clientToken;

private String resourceGroupId;

private String applicationId;
Expand All @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
public class ValidateApplicationRequest extends RpcAcsRequest<ValidateApplicationResponse> {


private String clientToken;

private String resourceGroupId;

private String applicationId;
Expand All @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
public class ValuateApplicationRequest extends RpcAcsRequest<ValuateApplicationResponse> {


private String clientToken;

private String resourceGroupId;

private String applicationId;
Expand All @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
}
}

0 comments on commit c8acc9f

Please sign in to comment.