-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
233 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
...o/src/main/java/com/aliyuncs/bpstudio/model/v20210931/GetApplicationVariablesRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
} |
123 changes: 123 additions & 0 deletions
123
.../src/main/java/com/aliyuncs/bpstudio/model/v20210931/GetApplicationVariablesResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
55 changes: 55 additions & 0 deletions
55
...om/aliyuncs/bpstudio/transform/v20210931/GetApplicationVariablesResponseUnmarshaller.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |