Skip to content

Commit f2e0332

Browse files
committed
Generated java-async 2023-04-26 for aliding.
1 parent ca55a33 commit f2e0332

File tree

7 files changed

+710
-1
lines changed

7 files changed

+710
-1
lines changed

aliding-20230426/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-11-20 Version: 1.0.57
2+
- Generated java-async 2023-04-26 for aliding.
3+
14
2025-11-20 Version: 1.0.56
25
- Generated java-async 2023-04-26 for aliding.
36

aliding-20230426/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-aliding20230426</artifactId>
6-
<version>1.0.56</version>
6+
<version>1.0.57</version>
77
<packaging>jar</packaging>
88
<name>alibabacloud-aliding20230426</name>
99
<description>Alibaba Cloud aliding (20230426) Async SDK for Java

aliding-20230426/src/main/java/com/aliyun/sdk/service/aliding20230426/AsyncClient.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,12 @@ static AsyncClient create() {
193193
*/
194194
CompletableFuture<CopyDentryResponse> copyDentry(CopyDentryRequest request);
195195

196+
/**
197+
* @param request the request parameters of CopyDentryByNodeId CopyDentryByNodeIdRequest
198+
* @return CopyDentryByNodeIdResponse
199+
*/
200+
CompletableFuture<CopyDentryByNodeIdResponse> copyDentryByNodeId(CopyDentryByNodeIdRequest request);
201+
196202
/**
197203
* @param request the request parameters of CreateAlidingAssistant CreateAlidingAssistantRequest
198204
* @return CreateAlidingAssistantResponse

aliding-20230426/src/main/java/com/aliyun/sdk/service/aliding20230426/DefaultAsyncClient.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,24 @@ public CompletableFuture<CopyDentryResponse> copyDentry(CopyDentryRequest reques
562562
}
563563
}
564564

565+
/**
566+
* @param request the request parameters of CopyDentryByNodeId CopyDentryByNodeIdRequest
567+
* @return CopyDentryByNodeIdResponse
568+
*/
569+
@Override
570+
public CompletableFuture<CopyDentryByNodeIdResponse> copyDentryByNodeId(CopyDentryByNodeIdRequest request) {
571+
try {
572+
this.handler.validateRequestModel(request);
573+
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("CopyDentryByNodeId").setMethod(HttpMethod.POST).setPathRegex("/dingtalk/v2/documents/copyDentryByNodeId").setBodyType(BodyType.JSON).setBodyIsForm(true).setReqBodyType(BodyType.FORM).formModel(request);
574+
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CopyDentryByNodeIdResponse.create());
575+
return this.handler.execute(params);
576+
} catch (Exception e) {
577+
CompletableFuture<CopyDentryByNodeIdResponse> future = new CompletableFuture<>();
578+
future.completeExceptionally(e);
579+
return future;
580+
}
581+
}
582+
565583
/**
566584
* @param request the request parameters of CreateAlidingAssistant CreateAlidingAssistantRequest
567585
* @return CreateAlidingAssistantResponse
Lines changed: 334 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,334 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.sdk.service.aliding20230426.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 CopyDentryByNodeIdRequest} extends {@link RequestModel}
16+
*
17+
* <p>CopyDentryByNodeIdRequest</p>
18+
*/
19+
public class CopyDentryByNodeIdRequest extends Request {
20+
@com.aliyun.core.annotation.Header
21+
@com.aliyun.core.annotation.NameInMap("AccountContext")
22+
private AccountContext accountContext;
23+
24+
@com.aliyun.core.annotation.Body
25+
@com.aliyun.core.annotation.NameInMap("DentryUuid")
26+
@com.aliyun.core.annotation.Validation(required = true)
27+
private String dentryUuid;
28+
29+
@com.aliyun.core.annotation.Body
30+
@com.aliyun.core.annotation.NameInMap("Name")
31+
@com.aliyun.core.annotation.Validation(required = true)
32+
private String name;
33+
34+
@com.aliyun.core.annotation.Body
35+
@com.aliyun.core.annotation.NameInMap("TenantContext")
36+
private TenantContext tenantContext;
37+
38+
@com.aliyun.core.annotation.Body
39+
@com.aliyun.core.annotation.NameInMap("ToNextNodeId")
40+
private String toNextNodeId;
41+
42+
@com.aliyun.core.annotation.Body
43+
@com.aliyun.core.annotation.NameInMap("ToParentNodeId")
44+
private String toParentNodeId;
45+
46+
@com.aliyun.core.annotation.Body
47+
@com.aliyun.core.annotation.NameInMap("ToPrevNodeId")
48+
private String toPrevNodeId;
49+
50+
private CopyDentryByNodeIdRequest(Builder builder) {
51+
super(builder);
52+
this.accountContext = builder.accountContext;
53+
this.dentryUuid = builder.dentryUuid;
54+
this.name = builder.name;
55+
this.tenantContext = builder.tenantContext;
56+
this.toNextNodeId = builder.toNextNodeId;
57+
this.toParentNodeId = builder.toParentNodeId;
58+
this.toPrevNodeId = builder.toPrevNodeId;
59+
}
60+
61+
public static Builder builder() {
62+
return new Builder();
63+
}
64+
65+
public static CopyDentryByNodeIdRequest create() {
66+
return builder().build();
67+
}
68+
69+
@Override
70+
public Builder toBuilder() {
71+
return new Builder(this);
72+
}
73+
74+
/**
75+
* @return accountContext
76+
*/
77+
public AccountContext getAccountContext() {
78+
return this.accountContext;
79+
}
80+
81+
/**
82+
* @return dentryUuid
83+
*/
84+
public String getDentryUuid() {
85+
return this.dentryUuid;
86+
}
87+
88+
/**
89+
* @return name
90+
*/
91+
public String getName() {
92+
return this.name;
93+
}
94+
95+
/**
96+
* @return tenantContext
97+
*/
98+
public TenantContext getTenantContext() {
99+
return this.tenantContext;
100+
}
101+
102+
/**
103+
* @return toNextNodeId
104+
*/
105+
public String getToNextNodeId() {
106+
return this.toNextNodeId;
107+
}
108+
109+
/**
110+
* @return toParentNodeId
111+
*/
112+
public String getToParentNodeId() {
113+
return this.toParentNodeId;
114+
}
115+
116+
/**
117+
* @return toPrevNodeId
118+
*/
119+
public String getToPrevNodeId() {
120+
return this.toPrevNodeId;
121+
}
122+
123+
public static final class Builder extends Request.Builder<CopyDentryByNodeIdRequest, Builder> {
124+
private AccountContext accountContext;
125+
private String dentryUuid;
126+
private String name;
127+
private TenantContext tenantContext;
128+
private String toNextNodeId;
129+
private String toParentNodeId;
130+
private String toPrevNodeId;
131+
132+
private Builder() {
133+
super();
134+
}
135+
136+
private Builder(CopyDentryByNodeIdRequest request) {
137+
super(request);
138+
this.accountContext = request.accountContext;
139+
this.dentryUuid = request.dentryUuid;
140+
this.name = request.name;
141+
this.tenantContext = request.tenantContext;
142+
this.toNextNodeId = request.toNextNodeId;
143+
this.toParentNodeId = request.toParentNodeId;
144+
this.toPrevNodeId = request.toPrevNodeId;
145+
}
146+
147+
/**
148+
* AccountContext.
149+
*/
150+
public Builder accountContext(AccountContext accountContext) {
151+
String accountContextShrink = shrink(accountContext, "AccountContext", "json");
152+
this.putHeaderParameter("AccountContext", accountContextShrink);
153+
this.accountContext = accountContext;
154+
return this;
155+
}
156+
157+
/**
158+
* <p>This parameter is required.</p>
159+
*
160+
* <strong>example:</strong>
161+
* <p>P7QG4Yx2Jpx4OolYC1QPg5BaJ9dEq3XD</p>
162+
*/
163+
public Builder dentryUuid(String dentryUuid) {
164+
this.putBodyParameter("DentryUuid", dentryUuid);
165+
this.dentryUuid = dentryUuid;
166+
return this;
167+
}
168+
169+
/**
170+
* <p>This parameter is required.</p>
171+
*/
172+
public Builder name(String name) {
173+
this.putBodyParameter("Name", name);
174+
this.name = name;
175+
return this;
176+
}
177+
178+
/**
179+
* TenantContext.
180+
*/
181+
public Builder tenantContext(TenantContext tenantContext) {
182+
String tenantContextShrink = shrink(tenantContext, "TenantContext", "json");
183+
this.putBodyParameter("TenantContext", tenantContextShrink);
184+
this.tenantContext = tenantContext;
185+
return this;
186+
}
187+
188+
/**
189+
* ToNextNodeId.
190+
*/
191+
public Builder toNextNodeId(String toNextNodeId) {
192+
this.putBodyParameter("ToNextNodeId", toNextNodeId);
193+
this.toNextNodeId = toNextNodeId;
194+
return this;
195+
}
196+
197+
/**
198+
* ToParentNodeId.
199+
*/
200+
public Builder toParentNodeId(String toParentNodeId) {
201+
this.putBodyParameter("ToParentNodeId", toParentNodeId);
202+
this.toParentNodeId = toParentNodeId;
203+
return this;
204+
}
205+
206+
/**
207+
* ToPrevNodeId.
208+
*/
209+
public Builder toPrevNodeId(String toPrevNodeId) {
210+
this.putBodyParameter("ToPrevNodeId", toPrevNodeId);
211+
this.toPrevNodeId = toPrevNodeId;
212+
return this;
213+
}
214+
215+
@Override
216+
public CopyDentryByNodeIdRequest build() {
217+
return new CopyDentryByNodeIdRequest(this);
218+
}
219+
220+
}
221+
222+
/**
223+
*
224+
* {@link CopyDentryByNodeIdRequest} extends {@link TeaModel}
225+
*
226+
* <p>CopyDentryByNodeIdRequest</p>
227+
*/
228+
public static class AccountContext extends TeaModel {
229+
@com.aliyun.core.annotation.NameInMap("accountId")
230+
@com.aliyun.core.annotation.Validation(required = true)
231+
private String accountId;
232+
233+
private AccountContext(Builder builder) {
234+
this.accountId = builder.accountId;
235+
}
236+
237+
public static Builder builder() {
238+
return new Builder();
239+
}
240+
241+
public static AccountContext create() {
242+
return builder().build();
243+
}
244+
245+
/**
246+
* @return accountId
247+
*/
248+
public String getAccountId() {
249+
return this.accountId;
250+
}
251+
252+
public static final class Builder {
253+
private String accountId;
254+
255+
private Builder() {
256+
}
257+
258+
private Builder(AccountContext model) {
259+
this.accountId = model.accountId;
260+
}
261+
262+
/**
263+
* <p>This parameter is required.</p>
264+
*
265+
* <strong>example:</strong>
266+
* <p>012345</p>
267+
*/
268+
public Builder accountId(String accountId) {
269+
this.accountId = accountId;
270+
return this;
271+
}
272+
273+
public AccountContext build() {
274+
return new AccountContext(this);
275+
}
276+
277+
}
278+
279+
}
280+
/**
281+
*
282+
* {@link CopyDentryByNodeIdRequest} extends {@link TeaModel}
283+
*
284+
* <p>CopyDentryByNodeIdRequest</p>
285+
*/
286+
public static class TenantContext extends TeaModel {
287+
@com.aliyun.core.annotation.NameInMap("tenantId")
288+
private String tenantId;
289+
290+
private TenantContext(Builder builder) {
291+
this.tenantId = builder.tenantId;
292+
}
293+
294+
public static Builder builder() {
295+
return new Builder();
296+
}
297+
298+
public static TenantContext create() {
299+
return builder().build();
300+
}
301+
302+
/**
303+
* @return tenantId
304+
*/
305+
public String getTenantId() {
306+
return this.tenantId;
307+
}
308+
309+
public static final class Builder {
310+
private String tenantId;
311+
312+
private Builder() {
313+
}
314+
315+
private Builder(TenantContext model) {
316+
this.tenantId = model.tenantId;
317+
}
318+
319+
/**
320+
* tenantId.
321+
*/
322+
public Builder tenantId(String tenantId) {
323+
this.tenantId = tenantId;
324+
return this;
325+
}
326+
327+
public TenantContext build() {
328+
return new TenantContext(this);
329+
}
330+
331+
}
332+
333+
}
334+
}

0 commit comments

Comments
 (0)