Skip to content

Commit 1f7f272

Browse files
committed
Generated java 2019-05-06 for sae.
1 parent 358e498 commit 1f7f272

File tree

9 files changed

+578
-1
lines changed

9 files changed

+578
-1
lines changed

sae-20190506/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-12-05 Version: 2.11.2
2+
- Generated java 2019-05-06 for sae.
3+
14
2025-12-05 Version: 2.11.1
25
- Update API ListApplications: add response parameters Body.Data.Applications.$.ResourceType.
36
- Update API ListApplications: add response parameters Body.Data.Applications.$.Children.$.ResourceType.

sae-20190506/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>com.aliyun</groupId>
55
<artifactId>sae20190506</artifactId>
6-
<version>2.11.1</version>
6+
<version>2.11.2</version>
77
<packaging>jar</packaging>
88
<name>sae20190506</name>
99
<description>Alibaba Cloud Serverless App Engine (20190506) SDK for Java

sae-20190506/src/main/java/com/aliyun/sae20190506/Client.java

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7696,6 +7696,57 @@ public RestartInstancesResponse restartInstances(RestartInstancesRequest request
76967696
return this.restartInstancesWithOptions(request, headers, runtime);
76977697
}
76987698

7699+
/**
7700+
* <b>summary</b> :
7701+
* <p>恢复实例的流量</p>
7702+
*
7703+
* @param request ResumeTrafficRequest
7704+
* @param headers map
7705+
* @param runtime runtime options for this request RuntimeOptions
7706+
* @return ResumeTrafficResponse
7707+
*/
7708+
public ResumeTrafficResponse resumeTrafficWithOptions(ResumeTrafficRequest request, java.util.Map<String, String> headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
7709+
com.aliyun.teautil.Common.validateModel(request);
7710+
java.util.Map<String, Object> query = new java.util.HashMap<>();
7711+
if (!com.aliyun.teautil.Common.isUnset(request.appId)) {
7712+
query.put("AppId", request.appId);
7713+
}
7714+
7715+
if (!com.aliyun.teautil.Common.isUnset(request.instanceIds)) {
7716+
query.put("InstanceIds", request.instanceIds);
7717+
}
7718+
7719+
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
7720+
new TeaPair("headers", headers),
7721+
new TeaPair("query", com.aliyun.openapiutil.Client.query(query))
7722+
));
7723+
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
7724+
new TeaPair("action", "ResumeTraffic"),
7725+
new TeaPair("version", "2019-05-06"),
7726+
new TeaPair("protocol", "HTTPS"),
7727+
new TeaPair("pathname", "/pop/v1/sam/app/instanceTrafficResume"),
7728+
new TeaPair("method", "PUT"),
7729+
new TeaPair("authType", "AK"),
7730+
new TeaPair("style", "ROA"),
7731+
new TeaPair("reqBodyType", "json"),
7732+
new TeaPair("bodyType", "json")
7733+
));
7734+
return TeaModel.toModel(this.callApi(params, req, runtime), new ResumeTrafficResponse());
7735+
}
7736+
7737+
/**
7738+
* <b>summary</b> :
7739+
* <p>恢复实例的流量</p>
7740+
*
7741+
* @param request ResumeTrafficRequest
7742+
* @return ResumeTrafficResponse
7743+
*/
7744+
public ResumeTrafficResponse resumeTraffic(ResumeTrafficRequest request) throws Exception {
7745+
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
7746+
java.util.Map<String, String> headers = new java.util.HashMap<>();
7747+
return this.resumeTrafficWithOptions(request, headers, runtime);
7748+
}
7749+
76997750
/**
77007751
* <b>summary</b> :
77017752
* <p>Rolls back an application.</p>
@@ -8018,6 +8069,57 @@ public SuspendJobResponse suspendJob(SuspendJobRequest request) throws Exception
80188069
return this.suspendJobWithOptions(request, headers, runtime);
80198070
}
80208071

8072+
/**
8073+
* <b>summary</b> :
8074+
* <p>将流量从实例中摘除</p>
8075+
*
8076+
* @param request SuspendTrafficRequest
8077+
* @param headers map
8078+
* @param runtime runtime options for this request RuntimeOptions
8079+
* @return SuspendTrafficResponse
8080+
*/
8081+
public SuspendTrafficResponse suspendTrafficWithOptions(SuspendTrafficRequest request, java.util.Map<String, String> headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
8082+
com.aliyun.teautil.Common.validateModel(request);
8083+
java.util.Map<String, Object> query = new java.util.HashMap<>();
8084+
if (!com.aliyun.teautil.Common.isUnset(request.appId)) {
8085+
query.put("AppId", request.appId);
8086+
}
8087+
8088+
if (!com.aliyun.teautil.Common.isUnset(request.instanceIds)) {
8089+
query.put("InstanceIds", request.instanceIds);
8090+
}
8091+
8092+
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
8093+
new TeaPair("headers", headers),
8094+
new TeaPair("query", com.aliyun.openapiutil.Client.query(query))
8095+
));
8096+
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
8097+
new TeaPair("action", "SuspendTraffic"),
8098+
new TeaPair("version", "2019-05-06"),
8099+
new TeaPair("protocol", "HTTPS"),
8100+
new TeaPair("pathname", "/pop/v1/sam/app/instanceTrafficSuspend"),
8101+
new TeaPair("method", "PUT"),
8102+
new TeaPair("authType", "AK"),
8103+
new TeaPair("style", "ROA"),
8104+
new TeaPair("reqBodyType", "json"),
8105+
new TeaPair("bodyType", "json")
8106+
));
8107+
return TeaModel.toModel(this.callApi(params, req, runtime), new SuspendTrafficResponse());
8108+
}
8109+
8110+
/**
8111+
* <b>summary</b> :
8112+
* <p>将流量从实例中摘除</p>
8113+
*
8114+
* @param request SuspendTrafficRequest
8115+
* @return SuspendTrafficResponse
8116+
*/
8117+
public SuspendTrafficResponse suspendTraffic(SuspendTrafficRequest request) throws Exception {
8118+
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
8119+
java.util.Map<String, String> headers = new java.util.HashMap<>();
8120+
return this.suspendTrafficWithOptions(request, headers, runtime);
8121+
}
8122+
80218123
/**
80228124
* <b>summary</b> :
80238125
* <p>Adds tags to resources.</p>
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.sae20190506.models;
3+
4+
import com.aliyun.tea.*;
5+
6+
public class ResumeTrafficRequest extends TeaModel {
7+
/**
8+
* <strong>example:</strong>
9+
* <p>017f39b8-dfa4-4e16-a84b-1dcee4b1****</p>
10+
*/
11+
@NameInMap("AppId")
12+
public String appId;
13+
14+
/**
15+
* <strong>example:</strong>
16+
* <p>c-668727a8-17d86664-41e5bb******,c-668727a8-17d86664-7e4958******</p>
17+
*/
18+
@NameInMap("InstanceIds")
19+
public String instanceIds;
20+
21+
public static ResumeTrafficRequest build(java.util.Map<String, ?> map) throws Exception {
22+
ResumeTrafficRequest self = new ResumeTrafficRequest();
23+
return TeaModel.build(map, self);
24+
}
25+
26+
public ResumeTrafficRequest setAppId(String appId) {
27+
this.appId = appId;
28+
return this;
29+
}
30+
public String getAppId() {
31+
return this.appId;
32+
}
33+
34+
public ResumeTrafficRequest setInstanceIds(String instanceIds) {
35+
this.instanceIds = instanceIds;
36+
return this;
37+
}
38+
public String getInstanceIds() {
39+
return this.instanceIds;
40+
}
41+
42+
}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.sae20190506.models;
3+
4+
import com.aliyun.tea.*;
5+
6+
public class ResumeTrafficResponse extends TeaModel {
7+
@NameInMap("headers")
8+
public java.util.Map<String, String> headers;
9+
10+
@NameInMap("statusCode")
11+
public Integer statusCode;
12+
13+
@NameInMap("body")
14+
public ResumeTrafficResponseBody body;
15+
16+
public static ResumeTrafficResponse build(java.util.Map<String, ?> map) throws Exception {
17+
ResumeTrafficResponse self = new ResumeTrafficResponse();
18+
return TeaModel.build(map, self);
19+
}
20+
21+
public ResumeTrafficResponse setHeaders(java.util.Map<String, String> headers) {
22+
this.headers = headers;
23+
return this;
24+
}
25+
public java.util.Map<String, String> getHeaders() {
26+
return this.headers;
27+
}
28+
29+
public ResumeTrafficResponse setStatusCode(Integer statusCode) {
30+
this.statusCode = statusCode;
31+
return this;
32+
}
33+
public Integer getStatusCode() {
34+
return this.statusCode;
35+
}
36+
37+
public ResumeTrafficResponse setBody(ResumeTrafficResponseBody body) {
38+
this.body = body;
39+
return this;
40+
}
41+
public ResumeTrafficResponseBody getBody() {
42+
return this.body;
43+
}
44+
45+
}
Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.sae20190506.models;
3+
4+
import com.aliyun.tea.*;
5+
6+
public class ResumeTrafficResponseBody extends TeaModel {
7+
/**
8+
* <strong>example:</strong>
9+
* <p>200</p>
10+
*/
11+
@NameInMap("Code")
12+
public String code;
13+
14+
@NameInMap("Data")
15+
public ResumeTrafficResponseBodyData data;
16+
17+
@NameInMap("ErrorCode")
18+
public String errorCode;
19+
20+
/**
21+
* <strong>example:</strong>
22+
* <p>success</p>
23+
*/
24+
@NameInMap("Message")
25+
public String message;
26+
27+
/**
28+
* <p>Id of the request</p>
29+
*
30+
* <strong>example:</strong>
31+
* <p>91F93257-7A4A-4BD3-9A7E-2F6EAE6D****</p>
32+
*/
33+
@NameInMap("RequestId")
34+
public String requestId;
35+
36+
/**
37+
* <strong>example:</strong>
38+
* <p>True</p>
39+
*/
40+
@NameInMap("Success")
41+
public String success;
42+
43+
/**
44+
* <strong>example:</strong>
45+
* <p>ac1a0b2215622920113732501e****</p>
46+
*/
47+
@NameInMap("TraceId")
48+
public String traceId;
49+
50+
public static ResumeTrafficResponseBody build(java.util.Map<String, ?> map) throws Exception {
51+
ResumeTrafficResponseBody self = new ResumeTrafficResponseBody();
52+
return TeaModel.build(map, self);
53+
}
54+
55+
public ResumeTrafficResponseBody setCode(String code) {
56+
this.code = code;
57+
return this;
58+
}
59+
public String getCode() {
60+
return this.code;
61+
}
62+
63+
public ResumeTrafficResponseBody setData(ResumeTrafficResponseBodyData data) {
64+
this.data = data;
65+
return this;
66+
}
67+
public ResumeTrafficResponseBodyData getData() {
68+
return this.data;
69+
}
70+
71+
public ResumeTrafficResponseBody setErrorCode(String errorCode) {
72+
this.errorCode = errorCode;
73+
return this;
74+
}
75+
public String getErrorCode() {
76+
return this.errorCode;
77+
}
78+
79+
public ResumeTrafficResponseBody setMessage(String message) {
80+
this.message = message;
81+
return this;
82+
}
83+
public String getMessage() {
84+
return this.message;
85+
}
86+
87+
public ResumeTrafficResponseBody setRequestId(String requestId) {
88+
this.requestId = requestId;
89+
return this;
90+
}
91+
public String getRequestId() {
92+
return this.requestId;
93+
}
94+
95+
public ResumeTrafficResponseBody setSuccess(String success) {
96+
this.success = success;
97+
return this;
98+
}
99+
public String getSuccess() {
100+
return this.success;
101+
}
102+
103+
public ResumeTrafficResponseBody setTraceId(String traceId) {
104+
this.traceId = traceId;
105+
return this;
106+
}
107+
public String getTraceId() {
108+
return this.traceId;
109+
}
110+
111+
public static class ResumeTrafficResponseBodyData extends TeaModel {
112+
/**
113+
* <strong>example:</strong>
114+
* <p>succeed in handling request</p>
115+
*/
116+
@NameInMap("msg")
117+
public String msg;
118+
119+
/**
120+
* <strong>example:</strong>
121+
* <p>True</p>
122+
*/
123+
@NameInMap("success")
124+
public Boolean success;
125+
126+
public static ResumeTrafficResponseBodyData build(java.util.Map<String, ?> map) throws Exception {
127+
ResumeTrafficResponseBodyData self = new ResumeTrafficResponseBodyData();
128+
return TeaModel.build(map, self);
129+
}
130+
131+
public ResumeTrafficResponseBodyData setMsg(String msg) {
132+
this.msg = msg;
133+
return this;
134+
}
135+
public String getMsg() {
136+
return this.msg;
137+
}
138+
139+
public ResumeTrafficResponseBodyData setSuccess(Boolean success) {
140+
this.success = success;
141+
return this;
142+
}
143+
public Boolean getSuccess() {
144+
return this.success;
145+
}
146+
147+
}
148+
149+
}

0 commit comments

Comments
 (0)