Skip to content

Commit 775a28f

Browse files
committed
Generated java-async 2019-05-06 for sae.
1 parent 7010421 commit 775a28f

11 files changed

+466
-7
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-06-17 Version: 2.0.13
2+
- Generated java-async 2019-05-06 for sae.
3+
14
2025-06-09 Version: 2.0.12
25
- Generated java-async 2019-05-06 for sae.
36

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>alibabacloud-sae20190506</artifactId>
6-
<version>2.0.12</version>
6+
<version>2.0.13</version>
77
<packaging>jar</packaging>
88
<name>alibabacloud-sae20190506</name>
99
<description>Alibaba Cloud sae (20190506) Async SDK for Java

sae-20190506/src/main/java/com/aliyun/sdk/service/sae20190506/AsyncClient.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -850,6 +850,12 @@ static AsyncClient create() {
850850
*/
851851
CompletableFuture<UntagResourcesResponse> untagResources(UntagResourcesRequest request);
852852

853+
/**
854+
* @param request the request parameters of UpdateAppMode UpdateAppModeRequest
855+
* @return UpdateAppModeResponse
856+
*/
857+
CompletableFuture<UpdateAppModeResponse> updateAppMode(UpdateAppModeRequest request);
858+
853859
/**
854860
* @param request the request parameters of UpdateAppSecurityGroup UpdateAppSecurityGroupRequest
855861
* @return UpdateAppSecurityGroupResponse

sae-20190506/src/main/java/com/aliyun/sdk/service/sae20190506/DefaultAsyncClient.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2370,6 +2370,24 @@ public CompletableFuture<UntagResourcesResponse> untagResources(UntagResourcesRe
23702370
}
23712371
}
23722372

2373+
/**
2374+
* @param request the request parameters of UpdateAppMode UpdateAppModeRequest
2375+
* @return UpdateAppModeResponse
2376+
*/
2377+
@Override
2378+
public CompletableFuture<UpdateAppModeResponse> updateAppMode(UpdateAppModeRequest request) {
2379+
try {
2380+
this.handler.validateRequestModel(request);
2381+
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("UpdateAppMode").setMethod(HttpMethod.PUT).setPathRegex("/pop/v1/sam/app/updateAppMode").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
2382+
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateAppModeResponse.create());
2383+
return this.handler.execute(params);
2384+
} catch (Exception e) {
2385+
CompletableFuture<UpdateAppModeResponse> future = new CompletableFuture<>();
2386+
future.completeExceptionally(e);
2387+
return future;
2388+
}
2389+
}
2390+
23732391
/**
23742392
* @param request the request parameters of UpdateAppSecurityGroup UpdateAppSecurityGroupRequest
23752393
* @return UpdateAppSecurityGroupResponse

sae-20190506/src/main/java/com/aliyun/sdk/service/sae20190506/models/ConfirmPipelineBatchRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public Builder confirm(Boolean confirm) {
8888
}
8989

9090
/**
91-
* <p>e2e-vds-feh-***</p>
91+
* <p>The ID of the batch. You can call the <a href="https://www.alibabacloud.com/help/zh/sae/serverless-app-engine-classic/developer-reference/api-sae-2019-05-06-describechangeorder-old?spm=a2c63.p38356.help-menu-search-118957.d_0">DescribeChangeOrder</a> operation to obtain the ID.</p>
9292
* <p>This parameter is required.</p>
9393
*
9494
* <strong>example:</strong>

sae-20190506/src/main/java/com/aliyun/sdk/service/sae20190506/models/DescribeApplicationScalingRuleResponseBody.java

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public Builder code(String code) {
140140
}
141141

142142
/**
143-
* <p>The returned data.</p>
143+
* <p>The data returned.</p>
144144
*/
145145
public Builder data(Data data) {
146146
this.data = data;
@@ -1658,15 +1658,35 @@ public Builder metric(Metric metric) {
16581658
}
16591659

16601660
/**
1661-
* MinReadyInstanceRatio.
1661+
* <p>The ratio of the minimum number of available instances to the current number of instances. Valid values:</p>
1662+
* <ul>
1663+
* <li><strong>-1</strong> (default value): The minimum number of available instances is not determined based on this parameter.</li>
1664+
* <li><strong>0 to 100</strong>: The minimum number of available instances is calculated by using the following formula: Number of existing instances × Value of MinReadyInstanceRatio × 100%. The calculation result is rounded up to the nearest integer. For example, if the number of existing instances is 5 and MinReadyInstanceRatio is set to 50, the minimum number of available instances is 3.</li>
1665+
* </ul>
1666+
* <blockquote>
1667+
* <p> If the <strong>MinReadyInstanceRatio</strong> and <strong>MinReadyInstanceRatio</strong> parameters are configured and the <strong>MinReadyInstanceRatio</strong> parameter is set to a number from 0 to 100, the value of the MinReadyInstanceRatio parameter takes precedence. For example, if the <strong>MinReadyInstances</strong> parameter is set to <strong>5</strong>, and the <strong>MinReadyInstanceRatio</strong> parameter is set to <strong>50</strong>, the minimum number of available instances is set to the nearest integer rounded up from the calculated result of the following formula: Nmber of existing instances × <strong>50</strong>.</p>
1668+
* </blockquote>
1669+
*
1670+
* <strong>example:</strong>
1671+
* <p>-1</p>
16621672
*/
16631673
public Builder minReadyInstanceRatio(Integer minReadyInstanceRatio) {
16641674
this.minReadyInstanceRatio = minReadyInstanceRatio;
16651675
return this;
16661676
}
16671677

16681678
/**
1669-
* MinReadyInstances.
1679+
* <p>The minimum number of available instances. Valid values:</p>
1680+
* <ul>
1681+
* <li>If you set the value to <strong>0</strong>, business is interrupted when the application is updated.</li>
1682+
* <li>If you set this property to -1, the system calculates a recommended value as the minimum number of available instances by using the following formula: Recommended value = Number of existing instances × 25%. The calculation result is rounded up to the nearest integer. For example, if the number of existing instances is 5, the recommended value is calculated by using the following formula: 5 × 25% = 1.25. In this case, the minimum number of available instances is 2.</li>
1683+
* </ul>
1684+
* <blockquote>
1685+
* <p> To ensure business continuity, make sure that at least one instance is available during application deployment and rollback.</p>
1686+
* </blockquote>
1687+
*
1688+
* <strong>example:</strong>
1689+
* <p>1</p>
16701690
*/
16711691
public Builder minReadyInstances(Integer minReadyInstances) {
16721692
this.minReadyInstances = minReadyInstances;

sae-20190506/src/main/java/com/aliyun/sdk/service/sae20190506/models/DescribeInstanceLogRequest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,10 @@ private Builder(DescribeInstanceLogRequest request) {
7474
}
7575

7676
/**
77-
* ContainerId.
77+
* <p>The ID of the sidecar container. You can call the <a href="https://help.aliyun.com/document_detail/2834847.html">DescribeApplicationInstances</a> to obtain the ID.</p>
78+
*
79+
* <strong>example:</strong>
80+
* <p>sidecar-test-01</p>
7881
*/
7982
public Builder containerId(String containerId) {
8083
this.putQueryParameter("ContainerId", containerId);

sae-20190506/src/main/java/com/aliyun/sdk/service/sae20190506/models/ListApplicationsResponseBody.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1497,7 +1497,7 @@ private Builder(Data model) {
14971497
}
14981498

14991499
/**
1500-
* <p>The applications.</p>
1500+
* <p>The queried applications.</p>
15011501
*/
15021502
public Builder applications(java.util.List<Applications> applications) {
15031503
this.applications = applications;
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.sdk.service.sae20190506.models;
3+
4+
import com.aliyun.sdk.gateway.pop.*;
5+
import darabonba.core.*;
6+
import darabonba.core.async.*;
7+
import darabonba.core.sync.*;
8+
import darabonba.core.client.*;
9+
import darabonba.core.RequestModel;
10+
import darabonba.core.TeaModel;
11+
import com.aliyun.sdk.gateway.pop.models.*;
12+
13+
/**
14+
*
15+
* {@link UpdateAppModeRequest} extends {@link RequestModel}
16+
*
17+
* <p>UpdateAppModeRequest</p>
18+
*/
19+
public class UpdateAppModeRequest extends Request {
20+
@com.aliyun.core.annotation.Query
21+
@com.aliyun.core.annotation.NameInMap("AppId")
22+
private String appId;
23+
24+
@com.aliyun.core.annotation.Query
25+
@com.aliyun.core.annotation.NameInMap("EnableIdle")
26+
private Boolean enableIdle;
27+
28+
private UpdateAppModeRequest(Builder builder) {
29+
super(builder);
30+
this.appId = builder.appId;
31+
this.enableIdle = builder.enableIdle;
32+
}
33+
34+
public static Builder builder() {
35+
return new Builder();
36+
}
37+
38+
public static UpdateAppModeRequest create() {
39+
return builder().build();
40+
}
41+
42+
@Override
43+
public Builder toBuilder() {
44+
return new Builder(this);
45+
}
46+
47+
/**
48+
* @return appId
49+
*/
50+
public String getAppId() {
51+
return this.appId;
52+
}
53+
54+
/**
55+
* @return enableIdle
56+
*/
57+
public Boolean getEnableIdle() {
58+
return this.enableIdle;
59+
}
60+
61+
public static final class Builder extends Request.Builder<UpdateAppModeRequest, Builder> {
62+
private String appId;
63+
private Boolean enableIdle;
64+
65+
private Builder() {
66+
super();
67+
}
68+
69+
private Builder(UpdateAppModeRequest request) {
70+
super(request);
71+
this.appId = request.appId;
72+
this.enableIdle = request.enableIdle;
73+
}
74+
75+
/**
76+
* AppId.
77+
*/
78+
public Builder appId(String appId) {
79+
this.putQueryParameter("AppId", appId);
80+
this.appId = appId;
81+
return this;
82+
}
83+
84+
/**
85+
* EnableIdle.
86+
*/
87+
public Builder enableIdle(Boolean enableIdle) {
88+
this.putQueryParameter("EnableIdle", enableIdle);
89+
this.enableIdle = enableIdle;
90+
return this;
91+
}
92+
93+
@Override
94+
public UpdateAppModeRequest build() {
95+
return new UpdateAppModeRequest(this);
96+
}
97+
98+
}
99+
100+
}
Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.sdk.service.sae20190506.models;
3+
4+
import com.aliyun.sdk.gateway.pop.*;
5+
import darabonba.core.*;
6+
import darabonba.core.async.*;
7+
import darabonba.core.sync.*;
8+
import darabonba.core.client.*;
9+
import darabonba.core.RequestModel;
10+
import darabonba.core.TeaModel;
11+
import com.aliyun.sdk.gateway.pop.models.*;
12+
13+
/**
14+
*
15+
* {@link UpdateAppModeResponse} extends {@link TeaModel}
16+
*
17+
* <p>UpdateAppModeResponse</p>
18+
*/
19+
public class UpdateAppModeResponse extends Response {
20+
@com.aliyun.core.annotation.NameInMap("headers")
21+
private java.util.Map<String, String> headers;
22+
23+
@com.aliyun.core.annotation.NameInMap("statusCode")
24+
private Integer statusCode;
25+
26+
@com.aliyun.core.annotation.NameInMap("body")
27+
private UpdateAppModeResponseBody body;
28+
29+
private UpdateAppModeResponse(BuilderImpl builder) {
30+
super(builder);
31+
this.headers = builder.headers;
32+
this.statusCode = builder.statusCode;
33+
this.body = builder.body;
34+
}
35+
36+
public static UpdateAppModeResponse create() {
37+
return new BuilderImpl().build();
38+
}
39+
40+
@Override
41+
public Builder toBuilder() {
42+
return new BuilderImpl(this);
43+
}
44+
45+
/**
46+
* @return headers
47+
*/
48+
public java.util.Map<String, String> getHeaders() {
49+
return this.headers;
50+
}
51+
52+
/**
53+
* @return statusCode
54+
*/
55+
public Integer getStatusCode() {
56+
return this.statusCode;
57+
}
58+
59+
/**
60+
* @return body
61+
*/
62+
public UpdateAppModeResponseBody getBody() {
63+
return this.body;
64+
}
65+
66+
public interface Builder extends Response.Builder<UpdateAppModeResponse, Builder> {
67+
68+
Builder headers(java.util.Map<String, String> headers);
69+
70+
Builder statusCode(Integer statusCode);
71+
72+
Builder body(UpdateAppModeResponseBody body);
73+
74+
@Override
75+
UpdateAppModeResponse build();
76+
77+
}
78+
79+
private static final class BuilderImpl
80+
extends Response.BuilderImpl<UpdateAppModeResponse, Builder>
81+
implements Builder {
82+
private java.util.Map<String, String> headers;
83+
private Integer statusCode;
84+
private UpdateAppModeResponseBody body;
85+
86+
private BuilderImpl() {
87+
super();
88+
}
89+
90+
private BuilderImpl(UpdateAppModeResponse response) {
91+
super(response);
92+
this.headers = response.headers;
93+
this.statusCode = response.statusCode;
94+
this.body = response.body;
95+
}
96+
97+
/**
98+
* headers.
99+
*/
100+
@Override
101+
public Builder headers(java.util.Map<String, String> headers) {
102+
this.headers = headers;
103+
return this;
104+
}
105+
106+
/**
107+
* statusCode.
108+
*/
109+
@Override
110+
public Builder statusCode(Integer statusCode) {
111+
this.statusCode = statusCode;
112+
return this;
113+
}
114+
115+
/**
116+
* body.
117+
*/
118+
@Override
119+
public Builder body(UpdateAppModeResponseBody body) {
120+
this.body = body;
121+
return this;
122+
}
123+
124+
@Override
125+
public UpdateAppModeResponse build() {
126+
return new UpdateAppModeResponse(this);
127+
}
128+
129+
}
130+
131+
}

0 commit comments

Comments
 (0)