Skip to content

Commit a330799

Browse files
committed
Generated java-async 2024-03-27 for APIG.
1 parent c324a8e commit a330799

File tree

8 files changed

+916
-1
lines changed

8 files changed

+916
-1
lines changed

apig-20240327/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-06-11 Version: 4.0.5
2+
- Generated java-async 2024-03-27 for APIG.
3+
14
2025-06-06 Version: 4.0.4
25
- Generated java-async 2024-03-27 for APIG.
36

apig-20240327/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-apig20240327</artifactId>
6-
<version>4.0.4</version>
6+
<version>4.0.5</version>
77
<packaging>jar</packaging>
88
<name>alibabacloud-apig20240327</name>
99
<description>Alibaba Cloud APIG (20240327) Async SDK for Java

apig-20240327/src/main/java/com/aliyun/sdk/service/apig20240327/AsyncClient.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,12 @@ static AsyncClient create() {
289289
*/
290290
CompletableFuture<ListHttpApisResponse> listHttpApis(ListHttpApisRequest request);
291291

292+
/**
293+
* @param request the request parameters of ListPluginAttachments ListPluginAttachmentsRequest
294+
* @return ListPluginAttachmentsResponse
295+
*/
296+
CompletableFuture<ListPluginAttachmentsResponse> listPluginAttachments(ListPluginAttachmentsRequest request);
297+
292298
/**
293299
* @param request the request parameters of ListPlugins ListPluginsRequest
294300
* @return ListPluginsResponse

apig-20240327/src/main/java/com/aliyun/sdk/service/apig20240327/DefaultAsyncClient.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -825,6 +825,24 @@ public CompletableFuture<ListHttpApisResponse> listHttpApis(ListHttpApisRequest
825825
}
826826
}
827827

828+
/**
829+
* @param request the request parameters of ListPluginAttachments ListPluginAttachmentsRequest
830+
* @return ListPluginAttachmentsResponse
831+
*/
832+
@Override
833+
public CompletableFuture<ListPluginAttachmentsResponse> listPluginAttachments(ListPluginAttachmentsRequest request) {
834+
try {
835+
this.handler.validateRequestModel(request);
836+
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("ListPluginAttachments").setMethod(HttpMethod.GET).setPathRegex("/v1/plugin-attachments").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
837+
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListPluginAttachmentsResponse.create());
838+
return this.handler.execute(params);
839+
} catch (Exception e) {
840+
CompletableFuture<ListPluginAttachmentsResponse> future = new CompletableFuture<>();
841+
future.completeExceptionally(e);
842+
return future;
843+
}
844+
}
845+
828846
/**
829847
* @param request the request parameters of ListPlugins ListPluginsRequest
830848
* @return ListPluginsResponse

apig-20240327/src/main/java/com/aliyun/sdk/service/apig20240327/models/GetGatewayResponseBody.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,6 +1126,9 @@ public static class Data extends TeaModel {
11261126
@com.aliyun.core.annotation.NameInMap("gatewayId")
11271127
private String gatewayId;
11281128

1129+
@com.aliyun.core.annotation.NameInMap("gatewayType")
1130+
private String gatewayType;
1131+
11291132
@com.aliyun.core.annotation.NameInMap("loadBalancers")
11301133
private java.util.List<LoadBalancers> loadBalancers;
11311134

@@ -1175,6 +1178,7 @@ private Data(Builder builder) {
11751178
this.environments = builder.environments;
11761179
this.expireTimestamp = builder.expireTimestamp;
11771180
this.gatewayId = builder.gatewayId;
1181+
this.gatewayType = builder.gatewayType;
11781182
this.loadBalancers = builder.loadBalancers;
11791183
this.name = builder.name;
11801184
this.replicas = builder.replicas;
@@ -1241,6 +1245,13 @@ public String getGatewayId() {
12411245
return this.gatewayId;
12421246
}
12431247

1248+
/**
1249+
* @return gatewayType
1250+
*/
1251+
public String getGatewayType() {
1252+
return this.gatewayType;
1253+
}
1254+
12441255
/**
12451256
* @return loadBalancers
12461257
*/
@@ -1346,6 +1357,7 @@ public static final class Builder {
13461357
private java.util.List<Environments> environments;
13471358
private Long expireTimestamp;
13481359
private String gatewayId;
1360+
private String gatewayType;
13491361
private java.util.List<LoadBalancers> loadBalancers;
13501362
private String name;
13511363
private String replicas;
@@ -1371,6 +1383,7 @@ private Builder(Data model) {
13711383
this.environments = model.environments;
13721384
this.expireTimestamp = model.expireTimestamp;
13731385
this.gatewayId = model.gatewayId;
1386+
this.gatewayType = model.gatewayType;
13741387
this.loadBalancers = model.loadBalancers;
13751388
this.name = model.name;
13761389
this.replicas = model.replicas;
@@ -1457,6 +1470,14 @@ public Builder gatewayId(String gatewayId) {
14571470
return this;
14581471
}
14591472

1473+
/**
1474+
* gatewayType.
1475+
*/
1476+
public Builder gatewayType(String gatewayType) {
1477+
this.gatewayType = gatewayType;
1478+
return this;
1479+
}
1480+
14601481
/**
14611482
* <p>List of entry addresses for the gateway.</p>
14621483
*/
Lines changed: 261 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,261 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.sdk.service.apig20240327.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 ListPluginAttachmentsRequest} extends {@link RequestModel}
16+
*
17+
* <p>ListPluginAttachmentsRequest</p>
18+
*/
19+
public class ListPluginAttachmentsRequest extends Request {
20+
@com.aliyun.core.annotation.Query
21+
@com.aliyun.core.annotation.NameInMap("attachResourceId")
22+
private String attachResourceId;
23+
24+
@com.aliyun.core.annotation.Query
25+
@com.aliyun.core.annotation.NameInMap("attachResourceType")
26+
private String attachResourceType;
27+
28+
@com.aliyun.core.annotation.Query
29+
@com.aliyun.core.annotation.NameInMap("attachResourceTypes")
30+
private String attachResourceTypes;
31+
32+
@com.aliyun.core.annotation.Query
33+
@com.aliyun.core.annotation.NameInMap("environmentId")
34+
private String environmentId;
35+
36+
@com.aliyun.core.annotation.Query
37+
@com.aliyun.core.annotation.NameInMap("gatewayId")
38+
private String gatewayId;
39+
40+
@com.aliyun.core.annotation.Query
41+
@com.aliyun.core.annotation.NameInMap("pageNumber")
42+
private Integer pageNumber;
43+
44+
@com.aliyun.core.annotation.Query
45+
@com.aliyun.core.annotation.NameInMap("pageSize")
46+
private Integer pageSize;
47+
48+
@com.aliyun.core.annotation.Query
49+
@com.aliyun.core.annotation.NameInMap("pluginId")
50+
private String pluginId;
51+
52+
@com.aliyun.core.annotation.Query
53+
@com.aliyun.core.annotation.NameInMap("withParentResource")
54+
private Boolean withParentResource;
55+
56+
private ListPluginAttachmentsRequest(Builder builder) {
57+
super(builder);
58+
this.attachResourceId = builder.attachResourceId;
59+
this.attachResourceType = builder.attachResourceType;
60+
this.attachResourceTypes = builder.attachResourceTypes;
61+
this.environmentId = builder.environmentId;
62+
this.gatewayId = builder.gatewayId;
63+
this.pageNumber = builder.pageNumber;
64+
this.pageSize = builder.pageSize;
65+
this.pluginId = builder.pluginId;
66+
this.withParentResource = builder.withParentResource;
67+
}
68+
69+
public static Builder builder() {
70+
return new Builder();
71+
}
72+
73+
public static ListPluginAttachmentsRequest create() {
74+
return builder().build();
75+
}
76+
77+
@Override
78+
public Builder toBuilder() {
79+
return new Builder(this);
80+
}
81+
82+
/**
83+
* @return attachResourceId
84+
*/
85+
public String getAttachResourceId() {
86+
return this.attachResourceId;
87+
}
88+
89+
/**
90+
* @return attachResourceType
91+
*/
92+
public String getAttachResourceType() {
93+
return this.attachResourceType;
94+
}
95+
96+
/**
97+
* @return attachResourceTypes
98+
*/
99+
public String getAttachResourceTypes() {
100+
return this.attachResourceTypes;
101+
}
102+
103+
/**
104+
* @return environmentId
105+
*/
106+
public String getEnvironmentId() {
107+
return this.environmentId;
108+
}
109+
110+
/**
111+
* @return gatewayId
112+
*/
113+
public String getGatewayId() {
114+
return this.gatewayId;
115+
}
116+
117+
/**
118+
* @return pageNumber
119+
*/
120+
public Integer getPageNumber() {
121+
return this.pageNumber;
122+
}
123+
124+
/**
125+
* @return pageSize
126+
*/
127+
public Integer getPageSize() {
128+
return this.pageSize;
129+
}
130+
131+
/**
132+
* @return pluginId
133+
*/
134+
public String getPluginId() {
135+
return this.pluginId;
136+
}
137+
138+
/**
139+
* @return withParentResource
140+
*/
141+
public Boolean getWithParentResource() {
142+
return this.withParentResource;
143+
}
144+
145+
public static final class Builder extends Request.Builder<ListPluginAttachmentsRequest, Builder> {
146+
private String attachResourceId;
147+
private String attachResourceType;
148+
private String attachResourceTypes;
149+
private String environmentId;
150+
private String gatewayId;
151+
private Integer pageNumber;
152+
private Integer pageSize;
153+
private String pluginId;
154+
private Boolean withParentResource;
155+
156+
private Builder() {
157+
super();
158+
}
159+
160+
private Builder(ListPluginAttachmentsRequest request) {
161+
super(request);
162+
this.attachResourceId = request.attachResourceId;
163+
this.attachResourceType = request.attachResourceType;
164+
this.attachResourceTypes = request.attachResourceTypes;
165+
this.environmentId = request.environmentId;
166+
this.gatewayId = request.gatewayId;
167+
this.pageNumber = request.pageNumber;
168+
this.pageSize = request.pageSize;
169+
this.pluginId = request.pluginId;
170+
this.withParentResource = request.withParentResource;
171+
}
172+
173+
/**
174+
* attachResourceId.
175+
*/
176+
public Builder attachResourceId(String attachResourceId) {
177+
this.putQueryParameter("attachResourceId", attachResourceId);
178+
this.attachResourceId = attachResourceId;
179+
return this;
180+
}
181+
182+
/**
183+
* attachResourceType.
184+
*/
185+
public Builder attachResourceType(String attachResourceType) {
186+
this.putQueryParameter("attachResourceType", attachResourceType);
187+
this.attachResourceType = attachResourceType;
188+
return this;
189+
}
190+
191+
/**
192+
* attachResourceTypes.
193+
*/
194+
public Builder attachResourceTypes(String attachResourceTypes) {
195+
this.putQueryParameter("attachResourceTypes", attachResourceTypes);
196+
this.attachResourceTypes = attachResourceTypes;
197+
return this;
198+
}
199+
200+
/**
201+
* environmentId.
202+
*/
203+
public Builder environmentId(String environmentId) {
204+
this.putQueryParameter("environmentId", environmentId);
205+
this.environmentId = environmentId;
206+
return this;
207+
}
208+
209+
/**
210+
* gatewayId.
211+
*/
212+
public Builder gatewayId(String gatewayId) {
213+
this.putQueryParameter("gatewayId", gatewayId);
214+
this.gatewayId = gatewayId;
215+
return this;
216+
}
217+
218+
/**
219+
* pageNumber.
220+
*/
221+
public Builder pageNumber(Integer pageNumber) {
222+
this.putQueryParameter("pageNumber", pageNumber);
223+
this.pageNumber = pageNumber;
224+
return this;
225+
}
226+
227+
/**
228+
* pageSize.
229+
*/
230+
public Builder pageSize(Integer pageSize) {
231+
this.putQueryParameter("pageSize", pageSize);
232+
this.pageSize = pageSize;
233+
return this;
234+
}
235+
236+
/**
237+
* pluginId.
238+
*/
239+
public Builder pluginId(String pluginId) {
240+
this.putQueryParameter("pluginId", pluginId);
241+
this.pluginId = pluginId;
242+
return this;
243+
}
244+
245+
/**
246+
* withParentResource.
247+
*/
248+
public Builder withParentResource(Boolean withParentResource) {
249+
this.putQueryParameter("withParentResource", withParentResource);
250+
this.withParentResource = withParentResource;
251+
return this;
252+
}
253+
254+
@Override
255+
public ListPluginAttachmentsRequest build() {
256+
return new ListPluginAttachmentsRequest(this);
257+
}
258+
259+
}
260+
261+
}

0 commit comments

Comments
 (0)