Skip to content

Commit 26d2cdf

Browse files
committed
Generated java-async 2021-06-25 for devops.
1 parent ded0ff4 commit 26d2cdf

File tree

7 files changed

+539
-1
lines changed

7 files changed

+539
-1
lines changed

devops-20210625/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2023-10-27 Version: 4.0.8
2+
- Generated java-async 2021-06-25 for devops.
3+
14
2023-10-24 Version: 4.0.7
25
- Generated java-async 2021-06-25 for devops.
36

devops-20210625/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-devops20210625</artifactId>
6-
<version>4.0.7</version>
6+
<version>4.0.8</version>
77
<packaging>jar</packaging>
88
<name>alibabacloud-devops20210625</name>
99
<description>Alibaba Cloud devops (20210625) Async SDK for Java

devops-20210625/src/main/java/com/aliyun/sdk/service/devops20210625/AsyncClient.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,8 @@ static AsyncClient create() {
306306

307307
CompletableFuture<ListWorkItemWorkFlowStatusResponse> listWorkItemWorkFlowStatus(ListWorkItemWorkFlowStatusRequest request);
308308

309+
CompletableFuture<ListWorkitemAttachmentsResponse> listWorkitemAttachments(ListWorkitemAttachmentsRequest request);
310+
309311
CompletableFuture<ListWorkitemEstimateResponse> listWorkitemEstimate(ListWorkitemEstimateRequest request);
310312

311313
CompletableFuture<ListWorkitemTimeResponse> listWorkitemTime(ListWorkitemTimeRequest request);

devops-20210625/src/main/java/com/aliyun/sdk/service/devops20210625/DefaultAsyncClient.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2055,6 +2055,20 @@ public CompletableFuture<ListWorkItemWorkFlowStatusResponse> listWorkItemWorkFlo
20552055
}
20562056
}
20572057

2058+
@Override
2059+
public CompletableFuture<ListWorkitemAttachmentsResponse> listWorkitemAttachments(ListWorkitemAttachmentsRequest request) {
2060+
try {
2061+
this.handler.validateRequestModel(request);
2062+
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("ListWorkitemAttachments").setMethod(HttpMethod.GET).setPathRegex("/organization/{organizationId}/workitem/{workitemIdentifier}/attachments").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
2063+
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListWorkitemAttachmentsResponse.create());
2064+
return this.handler.execute(params);
2065+
} catch (Exception e) {
2066+
CompletableFuture<ListWorkitemAttachmentsResponse> future = new CompletableFuture<>();
2067+
future.completeExceptionally(e);
2068+
return future;
2069+
}
2070+
}
2071+
20582072
@Override
20592073
public CompletableFuture<ListWorkitemEstimateResponse> listWorkitemEstimate(ListWorkitemEstimateRequest request) {
20602074
try {
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.sdk.service.devops20210625.models;
3+
4+
import com.aliyun.core.annotation.*;
5+
import darabonba.core.RequestModel;
6+
import darabonba.core.TeaModel;
7+
import com.aliyun.sdk.gateway.pop.models.*;
8+
9+
/**
10+
* {@link ListWorkitemAttachmentsRequest} extends {@link RequestModel}
11+
*
12+
* <p>ListWorkitemAttachmentsRequest</p>
13+
*/
14+
public class ListWorkitemAttachmentsRequest extends Request {
15+
@Path
16+
@NameInMap("organizationId")
17+
private String organizationId;
18+
19+
@Path
20+
@NameInMap("workitemIdentifier")
21+
private String workitemIdentifier;
22+
23+
private ListWorkitemAttachmentsRequest(Builder builder) {
24+
super(builder);
25+
this.organizationId = builder.organizationId;
26+
this.workitemIdentifier = builder.workitemIdentifier;
27+
}
28+
29+
public static Builder builder() {
30+
return new Builder();
31+
}
32+
33+
public static ListWorkitemAttachmentsRequest create() {
34+
return builder().build();
35+
}
36+
37+
@Override
38+
public Builder toBuilder() {
39+
return new Builder(this);
40+
}
41+
42+
/**
43+
* @return organizationId
44+
*/
45+
public String getOrganizationId() {
46+
return this.organizationId;
47+
}
48+
49+
/**
50+
* @return workitemIdentifier
51+
*/
52+
public String getWorkitemIdentifier() {
53+
return this.workitemIdentifier;
54+
}
55+
56+
public static final class Builder extends Request.Builder<ListWorkitemAttachmentsRequest, Builder> {
57+
private String organizationId;
58+
private String workitemIdentifier;
59+
60+
private Builder() {
61+
super();
62+
}
63+
64+
private Builder(ListWorkitemAttachmentsRequest request) {
65+
super(request);
66+
this.organizationId = request.organizationId;
67+
this.workitemIdentifier = request.workitemIdentifier;
68+
}
69+
70+
/**
71+
* organizationId.
72+
*/
73+
public Builder organizationId(String organizationId) {
74+
this.putPathParameter("organizationId", organizationId);
75+
this.organizationId = organizationId;
76+
return this;
77+
}
78+
79+
/**
80+
* workitemIdentifier.
81+
*/
82+
public Builder workitemIdentifier(String workitemIdentifier) {
83+
this.putPathParameter("workitemIdentifier", workitemIdentifier);
84+
this.workitemIdentifier = workitemIdentifier;
85+
return this;
86+
}
87+
88+
@Override
89+
public ListWorkitemAttachmentsRequest build() {
90+
return new ListWorkitemAttachmentsRequest(this);
91+
}
92+
93+
}
94+
95+
}
Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.sdk.service.devops20210625.models;
3+
4+
import com.aliyun.core.annotation.*;
5+
import darabonba.core.RequestModel;
6+
import darabonba.core.TeaModel;
7+
import com.aliyun.sdk.gateway.pop.models.*;
8+
9+
/**
10+
* {@link ListWorkitemAttachmentsResponse} extends {@link TeaModel}
11+
*
12+
* <p>ListWorkitemAttachmentsResponse</p>
13+
*/
14+
public class ListWorkitemAttachmentsResponse extends Response {
15+
@NameInMap("headers")
16+
@Validation(required = true)
17+
private java.util.Map < String, String > headers;
18+
19+
@NameInMap("statusCode")
20+
@Validation(required = true)
21+
private Integer statusCode;
22+
23+
@NameInMap("body")
24+
@Validation(required = true)
25+
private ListWorkitemAttachmentsResponseBody body;
26+
27+
private ListWorkitemAttachmentsResponse(BuilderImpl builder) {
28+
super(builder);
29+
this.headers = builder.headers;
30+
this.statusCode = builder.statusCode;
31+
this.body = builder.body;
32+
}
33+
34+
public static ListWorkitemAttachmentsResponse create() {
35+
return new BuilderImpl().build();
36+
}
37+
38+
@Override
39+
public Builder toBuilder() {
40+
return new BuilderImpl(this);
41+
}
42+
43+
/**
44+
* @return headers
45+
*/
46+
public java.util.Map < String, String > getHeaders() {
47+
return this.headers;
48+
}
49+
50+
/**
51+
* @return statusCode
52+
*/
53+
public Integer getStatusCode() {
54+
return this.statusCode;
55+
}
56+
57+
/**
58+
* @return body
59+
*/
60+
public ListWorkitemAttachmentsResponseBody getBody() {
61+
return this.body;
62+
}
63+
64+
public interface Builder extends Response.Builder<ListWorkitemAttachmentsResponse, Builder> {
65+
66+
Builder headers(java.util.Map < String, String > headers);
67+
68+
Builder statusCode(Integer statusCode);
69+
70+
Builder body(ListWorkitemAttachmentsResponseBody body);
71+
72+
@Override
73+
ListWorkitemAttachmentsResponse build();
74+
75+
}
76+
77+
private static final class BuilderImpl
78+
extends Response.BuilderImpl<ListWorkitemAttachmentsResponse, Builder>
79+
implements Builder {
80+
private java.util.Map < String, String > headers;
81+
private Integer statusCode;
82+
private ListWorkitemAttachmentsResponseBody body;
83+
84+
private BuilderImpl() {
85+
super();
86+
}
87+
88+
private BuilderImpl(ListWorkitemAttachmentsResponse response) {
89+
super(response);
90+
this.headers = response.headers;
91+
this.statusCode = response.statusCode;
92+
this.body = response.body;
93+
}
94+
95+
/**
96+
* headers.
97+
*/
98+
@Override
99+
public Builder headers(java.util.Map < String, String > headers) {
100+
this.headers = headers;
101+
return this;
102+
}
103+
104+
/**
105+
* statusCode.
106+
*/
107+
@Override
108+
public Builder statusCode(Integer statusCode) {
109+
this.statusCode = statusCode;
110+
return this;
111+
}
112+
113+
/**
114+
* body.
115+
*/
116+
@Override
117+
public Builder body(ListWorkitemAttachmentsResponseBody body) {
118+
this.body = body;
119+
return this;
120+
}
121+
122+
@Override
123+
public ListWorkitemAttachmentsResponse build() {
124+
return new ListWorkitemAttachmentsResponse(this);
125+
}
126+
127+
}
128+
129+
}

0 commit comments

Comments
 (0)