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 3, 2024
1 parent a95a435 commit 180e45a
Show file tree
Hide file tree
Showing 5 changed files with 233 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-09-03 Version: 2.0.7
- Generated 2021-09-31 for `BPStudio`.

2024-08-30 Version: 2.0.6
- 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.6</version>
<version>2.0.7</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
@@ -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<GetApplicationVariablesResponse> {


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

}
Original file line number Diff line number Diff line change
@@ -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<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 instanceId;

private List<Variables> variableList;

public String getInstanceId() {
return this.instanceId;
}

public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
}

public List<Variables> getVariableList() {
return this.variableList;
}

public void setVariableList(List<Variables> 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;
}
}
Original file line number Diff line number Diff line change
@@ -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<Items> data = new ArrayList<Items>();
for (int i = 0; i < _ctx.lengthValue("GetApplicationVariablesResponse.Data.Length"); i++) {
Items items = new Items();
items.setInstanceId(_ctx.stringValue("GetApplicationVariablesResponse.Data["+ i +"].InstanceId"));

List<Variables> variableList = new ArrayList<Variables>();
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;
}
}

0 comments on commit 180e45a

Please sign in to comment.