Skip to content

Commit 36453a7

Browse files
committed
Generated java-async 2021-07-01 for eas.
1 parent 46cce57 commit 36453a7

File tree

10 files changed

+372
-5
lines changed

10 files changed

+372
-5
lines changed

eas-20210701/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-05-12 Version: 7.0.5
2+
- Generated java-async 2021-07-01 for eas.
3+
14
2025-04-27 Version: 7.0.4
25
- Generated java-async 2021-07-01 for eas.
36

eas-20210701/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-eas20210701</artifactId>
6-
<version>7.0.4</version>
6+
<version>7.0.5</version>
77
<packaging>jar</packaging>
88
<name>alibabacloud-eas20210701</name>
99
<description>Alibaba Cloud eas (20210701) Async SDK for Java

eas-20210701/src/main/java/com/aliyun/sdk/service/eas20210701/AsyncClient.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,12 @@ static AsyncClient create() {
542542
*/
543543
CompletableFuture<UpdateGatewayResponse> updateGateway(UpdateGatewayRequest request);
544544

545+
/**
546+
* @param request the request parameters of UpdateGroup UpdateGroupRequest
547+
* @return UpdateGroupResponse
548+
*/
549+
CompletableFuture<UpdateGroupResponse> updateGroup(UpdateGroupRequest request);
550+
545551
/**
546552
* @param request the request parameters of UpdateResource UpdateResourceRequest
547553
* @return UpdateResourceResponse

eas-20210701/src/main/java/com/aliyun/sdk/service/eas20210701/DefaultAsyncClient.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1610,6 +1610,24 @@ public CompletableFuture<UpdateGatewayResponse> updateGateway(UpdateGatewayReque
16101610
}
16111611
}
16121612

1613+
/**
1614+
* @param request the request parameters of UpdateGroup UpdateGroupRequest
1615+
* @return UpdateGroupResponse
1616+
*/
1617+
@Override
1618+
public CompletableFuture<UpdateGroupResponse> updateGroup(UpdateGroupRequest request) {
1619+
try {
1620+
this.handler.validateRequestModel(request);
1621+
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("UpdateGroup").setMethod(HttpMethod.PUT).setPathRegex("/api/v2/groups/{ClusterId}/{GroupName}").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
1622+
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateGroupResponse.create());
1623+
return this.handler.execute(params);
1624+
} catch (Exception e) {
1625+
CompletableFuture<UpdateGroupResponse> future = new CompletableFuture<>();
1626+
future.completeExceptionally(e);
1627+
return future;
1628+
}
1629+
}
1630+
16131631
/**
16141632
* @param request the request parameters of UpdateResource UpdateResourceRequest
16151633
* @return UpdateResourceResponse

eas-20210701/src/main/java/com/aliyun/sdk/service/eas20210701/models/CreateResourceRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ public Builder ecsInstanceType(String ecsInstanceType) {
251251
}
252252

253253
/**
254-
* <p>The custom tag.</p>
254+
* <p>The labels.</p>
255255
*/
256256
public Builder labels(java.util.Map<String, String> labels) {
257257
this.putBodyParameter("Labels", labels);
@@ -406,7 +406,7 @@ private Builder(NodeTolerations model) {
406406
}
407407

408408
/**
409-
* <p>The result.</p>
409+
* <p>The effect.</p>
410410
* <p>Valid values:</p>
411411
* <ul>
412412
* <li>PreferNoSchedule</li>

eas-20210701/src/main/java/com/aliyun/sdk/service/eas20210701/models/ListServiceVersionsRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ private Builder(ListServiceVersionsRequest request) {
103103
}
104104

105105
/**
106-
* <p>The region ID of the service.</p>
106+
* <p>The ID of the region in which the service resides.</p>
107107
* <p>This parameter is required.</p>
108108
*
109109
* <strong>example:</strong>

eas-20210701/src/main/java/com/aliyun/sdk/service/eas20210701/models/RestartServiceRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ private Builder(RestartServiceRequest request) {
7575
}
7676

7777
/**
78-
* <p>The ID of the region where the service is deployed.</p>
78+
* <p>The ID of the region in which the service resides.</p>
7979
* <p>This parameter is required.</p>
8080
*
8181
* <strong>example:</strong>
Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.sdk.service.eas20210701.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 UpdateGroupRequest} extends {@link RequestModel}
16+
*
17+
* <p>UpdateGroupRequest</p>
18+
*/
19+
public class UpdateGroupRequest extends Request {
20+
@com.aliyun.core.annotation.Path
21+
@com.aliyun.core.annotation.NameInMap("ClusterId")
22+
@com.aliyun.core.annotation.Validation(required = true)
23+
private String clusterId;
24+
25+
@com.aliyun.core.annotation.Path
26+
@com.aliyun.core.annotation.NameInMap("GroupName")
27+
@com.aliyun.core.annotation.Validation(required = true)
28+
private String groupName;
29+
30+
@com.aliyun.core.annotation.Body
31+
@com.aliyun.core.annotation.NameInMap("TrafficMode")
32+
private String trafficMode;
33+
34+
private UpdateGroupRequest(Builder builder) {
35+
super(builder);
36+
this.clusterId = builder.clusterId;
37+
this.groupName = builder.groupName;
38+
this.trafficMode = builder.trafficMode;
39+
}
40+
41+
public static Builder builder() {
42+
return new Builder();
43+
}
44+
45+
public static UpdateGroupRequest create() {
46+
return builder().build();
47+
}
48+
49+
@Override
50+
public Builder toBuilder() {
51+
return new Builder(this);
52+
}
53+
54+
/**
55+
* @return clusterId
56+
*/
57+
public String getClusterId() {
58+
return this.clusterId;
59+
}
60+
61+
/**
62+
* @return groupName
63+
*/
64+
public String getGroupName() {
65+
return this.groupName;
66+
}
67+
68+
/**
69+
* @return trafficMode
70+
*/
71+
public String getTrafficMode() {
72+
return this.trafficMode;
73+
}
74+
75+
public static final class Builder extends Request.Builder<UpdateGroupRequest, Builder> {
76+
private String clusterId;
77+
private String groupName;
78+
private String trafficMode;
79+
80+
private Builder() {
81+
super();
82+
}
83+
84+
private Builder(UpdateGroupRequest request) {
85+
super(request);
86+
this.clusterId = request.clusterId;
87+
this.groupName = request.groupName;
88+
this.trafficMode = request.trafficMode;
89+
}
90+
91+
/**
92+
* <p>The ID of the region in which the service group resides.</p>
93+
* <p>This parameter is required.</p>
94+
*
95+
* <strong>example:</strong>
96+
* <p>cn-wulanchabu</p>
97+
*/
98+
public Builder clusterId(String clusterId) {
99+
this.putPathParameter("ClusterId", clusterId);
100+
this.clusterId = clusterId;
101+
return this;
102+
}
103+
104+
/**
105+
* <p>The service group name. For more information about how to obtain the service group name, see ListServices.</p>
106+
* <p>This parameter is required.</p>
107+
*
108+
* <strong>example:</strong>
109+
* <p>foo</p>
110+
*/
111+
public Builder groupName(String groupName) {
112+
this.putPathParameter("GroupName", groupName);
113+
this.groupName = groupName;
114+
return this;
115+
}
116+
117+
/**
118+
* <p>The traffic mode. Valid values: auto and customized. auto: The traffic is automatically allocated based on the proportion of the number of instances to the total number of instances. customized: The traffic is allocated based on a custom weight.</p>
119+
*
120+
* <strong>example:</strong>
121+
* <p>auto</p>
122+
*/
123+
public Builder trafficMode(String trafficMode) {
124+
this.putBodyParameter("TrafficMode", trafficMode);
125+
this.trafficMode = trafficMode;
126+
return this;
127+
}
128+
129+
@Override
130+
public UpdateGroupRequest build() {
131+
return new UpdateGroupRequest(this);
132+
}
133+
134+
}
135+
136+
}
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.eas20210701.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 UpdateGroupResponse} extends {@link TeaModel}
16+
*
17+
* <p>UpdateGroupResponse</p>
18+
*/
19+
public class UpdateGroupResponse 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 UpdateGroupResponseBody body;
28+
29+
private UpdateGroupResponse(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 UpdateGroupResponse 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 UpdateGroupResponseBody getBody() {
63+
return this.body;
64+
}
65+
66+
public interface Builder extends Response.Builder<UpdateGroupResponse, Builder> {
67+
68+
Builder headers(java.util.Map<String, String> headers);
69+
70+
Builder statusCode(Integer statusCode);
71+
72+
Builder body(UpdateGroupResponseBody body);
73+
74+
@Override
75+
UpdateGroupResponse build();
76+
77+
}
78+
79+
private static final class BuilderImpl
80+
extends Response.BuilderImpl<UpdateGroupResponse, Builder>
81+
implements Builder {
82+
private java.util.Map<String, String> headers;
83+
private Integer statusCode;
84+
private UpdateGroupResponseBody body;
85+
86+
private BuilderImpl() {
87+
super();
88+
}
89+
90+
private BuilderImpl(UpdateGroupResponse 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(UpdateGroupResponseBody body) {
120+
this.body = body;
121+
return this;
122+
}
123+
124+
@Override
125+
public UpdateGroupResponse build() {
126+
return new UpdateGroupResponse(this);
127+
}
128+
129+
}
130+
131+
}

0 commit comments

Comments
 (0)