Skip to content

Commit c698f15

Browse files
committed
Generated java-async 2022-03-01 for pds.
1 parent 3952c5a commit c698f15

File tree

10 files changed

+415
-11
lines changed

10 files changed

+415
-11
lines changed

pds-20220301/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-03-24 Version: 2.0.5
2+
- Generated java-async 2022-03-01 for pds.
3+
14
2025-03-10 Version: 2.0.4
25
- Generated java-async 2022-03-01 for pds.
36

pds-20220301/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-pds20220301</artifactId>
6-
<version>2.0.4</version>
6+
<version>2.0.5</version>
77
<packaging>jar</packaging>
88
<name>alibabacloud-pds20220301</name>
99
<description>Alibaba Cloud pds (20220301) Async SDK for Java

pds-20220301/src/main/java/com/aliyun/sdk/service/pds20220301/AsyncClient.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ static AsyncClient create() {
4040
*/
4141
CompletableFuture<AssignRoleResponse> assignRole(AssignRoleRequest request);
4242

43+
/**
44+
* @param request the request parameters of AuditLogExport AuditLogExportRequest
45+
* @return AuditLogExportResponse
46+
*/
47+
CompletableFuture<AuditLogExportResponse> auditLogExport(AuditLogExportRequest request);
48+
4349
/**
4450
* <b>description</b> :
4551
* <p>For more information, see &quot;OAuth 2.0 For Web Server Applications&quot; at <a href="https://www.alibabacloud.com/help/en/pds/drive-and-photo-service-dev/user-guide/oauth-2-0-access-process-for-web-server-applications">OAuth 2.0 For Web Server Applications</a> in User Guide.</p>

pds-20220301/src/main/java/com/aliyun/sdk/service/pds20220301/DefaultAsyncClient.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,24 @@ public CompletableFuture<AssignRoleResponse> assignRole(AssignRoleRequest reques
9696
}
9797
}
9898

99+
/**
100+
* @param request the request parameters of AuditLogExport AuditLogExportRequest
101+
* @return AuditLogExportResponse
102+
*/
103+
@Override
104+
public CompletableFuture<AuditLogExportResponse> auditLogExport(AuditLogExportRequest request) {
105+
try {
106+
this.handler.validateRequestModel(request);
107+
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("AuditLogExport").setMethod(HttpMethod.POST).setPathRegex("/v2/audit_log/export").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
108+
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(AuditLogExportResponse.create());
109+
return this.handler.execute(params);
110+
} catch (Exception e) {
111+
CompletableFuture<AuditLogExportResponse> future = new CompletableFuture<>();
112+
future.completeExceptionally(e);
113+
return future;
114+
}
115+
}
116+
99117
/**
100118
* <b>description</b> :
101119
* <p>For more information, see &quot;OAuth 2.0 For Web Server Applications&quot; at <a href="https://www.alibabacloud.com/help/en/pds/drive-and-photo-service-dev/user-guide/oauth-2-0-access-process-for-web-server-applications">OAuth 2.0 For Web Server Applications</a> in User Guide.</p>
Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,169 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.sdk.service.pds20220301.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 AuditLogExportRequest} extends {@link RequestModel}
16+
*
17+
* <p>AuditLogExportRequest</p>
18+
*/
19+
public class AuditLogExportRequest extends Request {
20+
@com.aliyun.core.annotation.Host
21+
@com.aliyun.core.annotation.NameInMap("domain_id")
22+
private String domainId;
23+
24+
@com.aliyun.core.annotation.Body
25+
@com.aliyun.core.annotation.NameInMap("file_name")
26+
private String fileName;
27+
28+
@com.aliyun.core.annotation.Body
29+
@com.aliyun.core.annotation.NameInMap("language")
30+
private String language;
31+
32+
@com.aliyun.core.annotation.Body
33+
@com.aliyun.core.annotation.NameInMap("order_by")
34+
private String orderBy;
35+
36+
@com.aliyun.core.annotation.Body
37+
@com.aliyun.core.annotation.NameInMap("query")
38+
private String query;
39+
40+
private AuditLogExportRequest(Builder builder) {
41+
super(builder);
42+
this.domainId = builder.domainId;
43+
this.fileName = builder.fileName;
44+
this.language = builder.language;
45+
this.orderBy = builder.orderBy;
46+
this.query = builder.query;
47+
}
48+
49+
public static Builder builder() {
50+
return new Builder();
51+
}
52+
53+
public static AuditLogExportRequest create() {
54+
return builder().build();
55+
}
56+
57+
@Override
58+
public Builder toBuilder() {
59+
return new Builder(this);
60+
}
61+
62+
/**
63+
* @return domainId
64+
*/
65+
public String getDomainId() {
66+
return this.domainId;
67+
}
68+
69+
/**
70+
* @return fileName
71+
*/
72+
public String getFileName() {
73+
return this.fileName;
74+
}
75+
76+
/**
77+
* @return language
78+
*/
79+
public String getLanguage() {
80+
return this.language;
81+
}
82+
83+
/**
84+
* @return orderBy
85+
*/
86+
public String getOrderBy() {
87+
return this.orderBy;
88+
}
89+
90+
/**
91+
* @return query
92+
*/
93+
public String getQuery() {
94+
return this.query;
95+
}
96+
97+
public static final class Builder extends Request.Builder<AuditLogExportRequest, Builder> {
98+
private String domainId;
99+
private String fileName;
100+
private String language;
101+
private String orderBy;
102+
private String query;
103+
104+
private Builder() {
105+
super();
106+
}
107+
108+
private Builder(AuditLogExportRequest request) {
109+
super(request);
110+
this.domainId = request.domainId;
111+
this.fileName = request.fileName;
112+
this.language = request.language;
113+
this.orderBy = request.orderBy;
114+
this.query = request.query;
115+
}
116+
117+
/**
118+
* <p>A short description of struct</p>
119+
*/
120+
public Builder domainId(String domainId) {
121+
this.putHostParameter("domain_id", domainId);
122+
this.domainId = domainId;
123+
return this;
124+
}
125+
126+
/**
127+
* file_name.
128+
*/
129+
public Builder fileName(String fileName) {
130+
this.putBodyParameter("file_name", fileName);
131+
this.fileName = fileName;
132+
return this;
133+
}
134+
135+
/**
136+
* language.
137+
*/
138+
public Builder language(String language) {
139+
this.putBodyParameter("language", language);
140+
this.language = language;
141+
return this;
142+
}
143+
144+
/**
145+
* order_by.
146+
*/
147+
public Builder orderBy(String orderBy) {
148+
this.putBodyParameter("order_by", orderBy);
149+
this.orderBy = orderBy;
150+
return this;
151+
}
152+
153+
/**
154+
* query.
155+
*/
156+
public Builder query(String query) {
157+
this.putBodyParameter("query", query);
158+
this.query = query;
159+
return this;
160+
}
161+
162+
@Override
163+
public AuditLogExportRequest build() {
164+
return new AuditLogExportRequest(this);
165+
}
166+
167+
}
168+
169+
}
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.pds20220301.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 AuditLogExportResponse} extends {@link TeaModel}
16+
*
17+
* <p>AuditLogExportResponse</p>
18+
*/
19+
public class AuditLogExportResponse 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 AuditLogExportResponseBody body;
28+
29+
private AuditLogExportResponse(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 AuditLogExportResponse 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 AuditLogExportResponseBody getBody() {
63+
return this.body;
64+
}
65+
66+
public interface Builder extends Response.Builder<AuditLogExportResponse, Builder> {
67+
68+
Builder headers(java.util.Map<String, String> headers);
69+
70+
Builder statusCode(Integer statusCode);
71+
72+
Builder body(AuditLogExportResponseBody body);
73+
74+
@Override
75+
AuditLogExportResponse build();
76+
77+
}
78+
79+
private static final class BuilderImpl
80+
extends Response.BuilderImpl<AuditLogExportResponse, Builder>
81+
implements Builder {
82+
private java.util.Map<String, String> headers;
83+
private Integer statusCode;
84+
private AuditLogExportResponseBody body;
85+
86+
private BuilderImpl() {
87+
super();
88+
}
89+
90+
private BuilderImpl(AuditLogExportResponse 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(AuditLogExportResponseBody body) {
120+
this.body = body;
121+
return this;
122+
}
123+
124+
@Override
125+
public AuditLogExportResponse build() {
126+
return new AuditLogExportResponse(this);
127+
}
128+
129+
}
130+
131+
}

0 commit comments

Comments
 (0)