Skip to content

Commit da8beae

Browse files
committed
Generated java-async 2020-12-03 for pai-dlc.
1 parent 5d4e035 commit da8beae

File tree

7 files changed

+352
-1
lines changed

7 files changed

+352
-1
lines changed

pai-dlc-20201203/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-09-22 Version: 1.2.28
2+
- Generated java-async 2020-12-03 for pai-dlc.
3+
14
2025-09-15 Version: 1.2.27
25
- Generated java-async 2020-12-03 for pai-dlc.
36

pai-dlc-20201203/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-pai_dlc20201203</artifactId>
6-
<version>1.2.27</version>
6+
<version>1.2.28</version>
77
<packaging>jar</packaging>
88
<name>alibabacloud-pai_dlc20201203</name>
99
<description>Alibaba Cloud pai-dlc (20201203) Async SDK for Java

pai-dlc-20201203/src/main/java/com/aliyun/sdk/service/pai_dlc20201203/AsyncClient.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ static AsyncClient create() {
4646
*/
4747
CompletableFuture<DeleteTensorboardResponse> deleteTensorboard(DeleteTensorboardRequest request);
4848

49+
/**
50+
* @param request the request parameters of GetDashboard GetDashboardRequest
51+
* @return GetDashboardResponse
52+
*/
53+
CompletableFuture<GetDashboardResponse> getDashboard(GetDashboardRequest request);
54+
4955
/**
5056
* @param request the request parameters of GetJob GetJobRequest
5157
* @return GetJobResponse

pai-dlc-20201203/src/main/java/com/aliyun/sdk/service/pai_dlc20201203/DefaultAsyncClient.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,24 @@ public CompletableFuture<DeleteTensorboardResponse> deleteTensorboard(DeleteTens
158158
}
159159
}
160160

161+
/**
162+
* @param request the request parameters of GetDashboard GetDashboardRequest
163+
* @return GetDashboardResponse
164+
*/
165+
@Override
166+
public CompletableFuture<GetDashboardResponse> getDashboard(GetDashboardRequest request) {
167+
try {
168+
this.handler.validateRequestModel(request);
169+
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("GetDashboard").setMethod(HttpMethod.GET).setPathRegex("/api/v1/jobs/{jobId}/dashboard").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
170+
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetDashboardResponse.create());
171+
return this.handler.execute(params);
172+
} catch (Exception e) {
173+
CompletableFuture<GetDashboardResponse> future = new CompletableFuture<>();
174+
future.completeExceptionally(e);
175+
return future;
176+
}
177+
}
178+
161179
/**
162180
* @param request the request parameters of GetJob GetJobRequest
163181
* @return GetJobResponse
Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.sdk.service.pai_dlc20201203.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 GetDashboardRequest} extends {@link RequestModel}
16+
*
17+
* <p>GetDashboardRequest</p>
18+
*/
19+
public class GetDashboardRequest extends Request {
20+
@com.aliyun.core.annotation.Path
21+
@com.aliyun.core.annotation.NameInMap("jobId")
22+
private String jobId;
23+
24+
@com.aliyun.core.annotation.Query
25+
@com.aliyun.core.annotation.NameInMap("isShared")
26+
private Boolean isShared;
27+
28+
@com.aliyun.core.annotation.Query
29+
@com.aliyun.core.annotation.NameInMap("token")
30+
private String token;
31+
32+
private GetDashboardRequest(Builder builder) {
33+
super(builder);
34+
this.jobId = builder.jobId;
35+
this.isShared = builder.isShared;
36+
this.token = builder.token;
37+
}
38+
39+
public static Builder builder() {
40+
return new Builder();
41+
}
42+
43+
public static GetDashboardRequest create() {
44+
return builder().build();
45+
}
46+
47+
@Override
48+
public Builder toBuilder() {
49+
return new Builder(this);
50+
}
51+
52+
/**
53+
* @return jobId
54+
*/
55+
public String getJobId() {
56+
return this.jobId;
57+
}
58+
59+
/**
60+
* @return isShared
61+
*/
62+
public Boolean getIsShared() {
63+
return this.isShared;
64+
}
65+
66+
/**
67+
* @return token
68+
*/
69+
public String getToken() {
70+
return this.token;
71+
}
72+
73+
public static final class Builder extends Request.Builder<GetDashboardRequest, Builder> {
74+
private String jobId;
75+
private Boolean isShared;
76+
private String token;
77+
78+
private Builder() {
79+
super();
80+
}
81+
82+
private Builder(GetDashboardRequest request) {
83+
super(request);
84+
this.jobId = request.jobId;
85+
this.isShared = request.isShared;
86+
this.token = request.token;
87+
}
88+
89+
/**
90+
* jobId.
91+
*/
92+
public Builder jobId(String jobId) {
93+
this.putPathParameter("jobId", jobId);
94+
this.jobId = jobId;
95+
return this;
96+
}
97+
98+
/**
99+
* isShared.
100+
*/
101+
public Builder isShared(Boolean isShared) {
102+
this.putQueryParameter("isShared", isShared);
103+
this.isShared = isShared;
104+
return this;
105+
}
106+
107+
/**
108+
* token.
109+
*/
110+
public Builder token(String token) {
111+
this.putQueryParameter("token", token);
112+
this.token = token;
113+
return this;
114+
}
115+
116+
@Override
117+
public GetDashboardRequest build() {
118+
return new GetDashboardRequest(this);
119+
}
120+
121+
}
122+
123+
}
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.pai_dlc20201203.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 GetDashboardResponse} extends {@link TeaModel}
16+
*
17+
* <p>GetDashboardResponse</p>
18+
*/
19+
public class GetDashboardResponse 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 GetDashboardResponseBody body;
28+
29+
private GetDashboardResponse(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 GetDashboardResponse 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 GetDashboardResponseBody getBody() {
63+
return this.body;
64+
}
65+
66+
public interface Builder extends Response.Builder<GetDashboardResponse, Builder> {
67+
68+
Builder headers(java.util.Map<String, String> headers);
69+
70+
Builder statusCode(Integer statusCode);
71+
72+
Builder body(GetDashboardResponseBody body);
73+
74+
@Override
75+
GetDashboardResponse build();
76+
77+
}
78+
79+
private static final class BuilderImpl
80+
extends Response.BuilderImpl<GetDashboardResponse, Builder>
81+
implements Builder {
82+
private java.util.Map<String, String> headers;
83+
private Integer statusCode;
84+
private GetDashboardResponseBody body;
85+
86+
private BuilderImpl() {
87+
super();
88+
}
89+
90+
private BuilderImpl(GetDashboardResponse 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(GetDashboardResponseBody body) {
120+
this.body = body;
121+
return this;
122+
}
123+
124+
@Override
125+
public GetDashboardResponse build() {
126+
return new GetDashboardResponse(this);
127+
}
128+
129+
}
130+
131+
}
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.sdk.service.pai_dlc20201203.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 GetDashboardResponseBody} extends {@link TeaModel}
16+
*
17+
* <p>GetDashboardResponseBody</p>
18+
*/
19+
public class GetDashboardResponseBody extends TeaModel {
20+
@com.aliyun.core.annotation.NameInMap("url")
21+
private String url;
22+
23+
private GetDashboardResponseBody(Builder builder) {
24+
this.url = builder.url;
25+
}
26+
27+
public static Builder builder() {
28+
return new Builder();
29+
}
30+
31+
public static GetDashboardResponseBody create() {
32+
return builder().build();
33+
}
34+
35+
public Builder toBuilder() {
36+
return new Builder(this);
37+
}
38+
39+
/**
40+
* @return url
41+
*/
42+
public String getUrl() {
43+
return this.url;
44+
}
45+
46+
public static final class Builder {
47+
private String url;
48+
49+
private Builder() {
50+
}
51+
52+
private Builder(GetDashboardResponseBody model) {
53+
this.url = model.url;
54+
}
55+
56+
/**
57+
* url.
58+
*/
59+
public Builder url(String url) {
60+
this.url = url;
61+
return this;
62+
}
63+
64+
public GetDashboardResponseBody build() {
65+
return new GetDashboardResponseBody(this);
66+
}
67+
68+
}
69+
70+
}

0 commit comments

Comments
 (0)