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 Aug 29, 2024
1 parent ee78a8b commit a3bd105
Show file tree
Hide file tree
Showing 9 changed files with 408 additions and 4 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-08-29 Version: 2.0.5
- Fix bug asyncExecute Error.

2024-08-07 Version: 2.0.4
- 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.4</version>
<version>2.0.5</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 @@ -29,7 +29,7 @@ public class CreateApplicationRequest extends RpcAcsRequest<CreateApplicationRes


@SerializedName("variables")
private Map<String,String> variables;
private Map<String,Object> variables;

private String clientToken;

Expand All @@ -51,11 +51,11 @@ public CreateApplicationRequest() {
setMethod(MethodType.POST);
}

public Map<String,String> getVariables() {
public Map<String,Object> getVariables() {
return this.variables;
}

public void setVariables(Map<String,String> variables) {
public void setVariables(Map<String,Object> variables) {
this.variables = variables;
if (variables != null) {
putBodyParameter("Variables" , new Gson().toJson(variables));
Expand Down
Original file line number Diff line number Diff line change
@@ -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 GetApplicationVariables4FailRequest extends RpcAcsRequest<GetApplicationVariables4FailResponse> {


private String appId;
public GetApplicationVariables4FailRequest() {
super("BPStudio", "2021-09-31", "GetApplicationVariables4Fail", "bpstudio");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
}

public String getAppId() {
return this.appId;
}

public void setAppId(String appId) {
this.appId = appId;
if(appId != null){
putQueryParameter("AppId", appId);
}
}

@Override
public Class<GetApplicationVariables4FailResponse> getResponseClass() {
return GetApplicationVariables4FailResponse.class;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
/*
* 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.GetApplicationVariables4FailResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;

/**
* @author auto create
* @version
*/
public class GetApplicationVariables4FailResponse extends AcsResponse {

private String requestId;

private String message;

private Integer code;

private List<Items> 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<Items> getData() {
return this.data;
}

public void setData(List<Items> data) {
this.data = data;
}

public static class Items {

private String region;

private String attribute;

private String variable;

private String placeHolder;

private String value;

private String defaultValue;

public String getRegion() {
return this.region;
}

public void setRegion(String region) {
this.region = region;
}

public String getAttribute() {
return this.attribute;
}

public void setAttribute(String attribute) {
this.attribute = attribute;
}

public String getVariable() {
return this.variable;
}

public void setVariable(String variable) {
this.variable = variable;
}

public String getPlaceHolder() {
return this.placeHolder;
}

public void setPlaceHolder(String placeHolder) {
this.placeHolder = placeHolder;
}

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

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

public String getDefaultValue() {
return this.defaultValue;
}

public void setDefaultValue(String defaultValue) {
this.defaultValue = defaultValue;
}
}

@Override
public GetApplicationVariables4FailResponse getInstance(UnmarshallerContext context) {
return GetApplicationVariables4FailResponseUnmarshaller.unmarshall(this, context);
}

@Override
public boolean checkShowJsonItemName() {
return false;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
/*
* 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 ReConfigApplicationRequest extends RpcAcsRequest<ReConfigApplicationResponse> {


private String variables;

private String appId;
public ReConfigApplicationRequest() {
super("BPStudio", "2021-09-31", "ReConfigApplication", "bpstudio");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
}

public String getVariables() {
return this.variables;
}

public void setVariables(String variables) {
this.variables = variables;
if(variables != null){
putBodyParameter("Variables", variables);
}
}

public String getAppId() {
return this.appId;
}

public void setAppId(String appId) {
this.appId = appId;
if(appId != null){
putBodyParameter("AppId", appId);
}
}

@Override
public Class<ReConfigApplicationResponse> getResponseClass() {
return ReConfigApplicationResponse.class;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
/*
* 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.ReConfigApplicationResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;

/**
* @author auto create
* @version
*/
public class ReConfigApplicationResponse extends AcsResponse {

private String requestId;

private String message;

private Integer code;

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;
}

@Override
public ReConfigApplicationResponse getInstance(UnmarshallerContext context) {
return ReConfigApplicationResponseUnmarshaller.unmarshall(this, context);
}

@Override
public boolean checkShowJsonItemName() {
return false;
}
}
Loading

0 comments on commit a3bd105

Please sign in to comment.