Skip to content

Commit 3fb3495

Browse files
committed
Generated java-async 2022-08-09 for Cloudauth-intl.
1 parent 50e490d commit 3fb3495

File tree

7 files changed

+423
-1
lines changed

7 files changed

+423
-1
lines changed

cloudauth-intl-20220809/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-07-11 Version: 3.0.17
2+
- Generated java-async 2022-08-09 for Cloudauth-intl.
3+
14
2025-07-10 Version: 3.0.16
25
- Generated java-async 2022-08-09 for Cloudauth-intl.
36

cloudauth-intl-20220809/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-cloudauth_intl20220809</artifactId>
6-
<version>3.0.16</version>
6+
<version>3.0.17</version>
77
<packaging>jar</packaging>
88
<name>alibabacloud-cloudauth_intl20220809</name>
99
<description>Alibaba Cloud Cloudauth-intl (20220809) Async SDK for Java

cloudauth-intl-20220809/src/main/java/com/aliyun/sdk/service/cloudauth_intl20220809/AsyncClient.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,12 @@ static AsyncClient create() {
122122
*/
123123
CompletableFuture<InitializeResponse> initialize(InitializeRequest request);
124124

125+
/**
126+
* @param request the request parameters of KeepaliveIntl KeepaliveIntlRequest
127+
* @return KeepaliveIntlResponse
128+
*/
129+
CompletableFuture<KeepaliveIntlResponse> keepaliveIntl(KeepaliveIntlRequest request);
130+
125131
/**
126132
* @param request the request parameters of Mobile3MetaVerifyIntl Mobile3MetaVerifyIntlRequest
127133
* @return Mobile3MetaVerifyIntlResponse

cloudauth-intl-20220809/src/main/java/com/aliyun/sdk/service/cloudauth_intl20220809/DefaultAsyncClient.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,24 @@ public CompletableFuture<InitializeResponse> initialize(InitializeRequest reques
346346
}
347347
}
348348

349+
/**
350+
* @param request the request parameters of KeepaliveIntl KeepaliveIntlRequest
351+
* @return KeepaliveIntlResponse
352+
*/
353+
@Override
354+
public CompletableFuture<KeepaliveIntlResponse> keepaliveIntl(KeepaliveIntlRequest request) {
355+
try {
356+
this.handler.validateRequestModel(request);
357+
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("KeepaliveIntl").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
358+
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(KeepaliveIntlResponse.create());
359+
return this.handler.execute(params);
360+
} catch (Exception e) {
361+
CompletableFuture<KeepaliveIntlResponse> future = new CompletableFuture<>();
362+
future.completeExceptionally(e);
363+
return future;
364+
}
365+
}
366+
349367
/**
350368
* @param request the request parameters of Mobile3MetaVerifyIntl Mobile3MetaVerifyIntlRequest
351369
* @return Mobile3MetaVerifyIntlResponse
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.sdk.service.cloudauth_intl20220809.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 KeepaliveIntlRequest} extends {@link RequestModel}
16+
*
17+
* <p>KeepaliveIntlRequest</p>
18+
*/
19+
public class KeepaliveIntlRequest extends Request {
20+
@com.aliyun.core.annotation.Host
21+
@com.aliyun.core.annotation.NameInMap("RegionId")
22+
private String regionId;
23+
24+
private KeepaliveIntlRequest(Builder builder) {
25+
super(builder);
26+
this.regionId = builder.regionId;
27+
}
28+
29+
public static Builder builder() {
30+
return new Builder();
31+
}
32+
33+
public static KeepaliveIntlRequest create() {
34+
return builder().build();
35+
}
36+
37+
@Override
38+
public Builder toBuilder() {
39+
return new Builder(this);
40+
}
41+
42+
/**
43+
* @return regionId
44+
*/
45+
public String getRegionId() {
46+
return this.regionId;
47+
}
48+
49+
public static final class Builder extends Request.Builder<KeepaliveIntlRequest, Builder> {
50+
private String regionId;
51+
52+
private Builder() {
53+
super();
54+
}
55+
56+
private Builder(KeepaliveIntlRequest request) {
57+
super(request);
58+
this.regionId = request.regionId;
59+
}
60+
61+
/**
62+
* RegionId.
63+
*/
64+
public Builder regionId(String regionId) {
65+
this.putHostParameter("RegionId", regionId);
66+
this.regionId = regionId;
67+
return this;
68+
}
69+
70+
@Override
71+
public KeepaliveIntlRequest build() {
72+
return new KeepaliveIntlRequest(this);
73+
}
74+
75+
}
76+
77+
}
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.cloudauth_intl20220809.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 KeepaliveIntlResponse} extends {@link TeaModel}
16+
*
17+
* <p>KeepaliveIntlResponse</p>
18+
*/
19+
public class KeepaliveIntlResponse 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 KeepaliveIntlResponseBody body;
28+
29+
private KeepaliveIntlResponse(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 KeepaliveIntlResponse 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 KeepaliveIntlResponseBody getBody() {
63+
return this.body;
64+
}
65+
66+
public interface Builder extends Response.Builder<KeepaliveIntlResponse, Builder> {
67+
68+
Builder headers(java.util.Map<String, String> headers);
69+
70+
Builder statusCode(Integer statusCode);
71+
72+
Builder body(KeepaliveIntlResponseBody body);
73+
74+
@Override
75+
KeepaliveIntlResponse build();
76+
77+
}
78+
79+
private static final class BuilderImpl
80+
extends Response.BuilderImpl<KeepaliveIntlResponse, Builder>
81+
implements Builder {
82+
private java.util.Map<String, String> headers;
83+
private Integer statusCode;
84+
private KeepaliveIntlResponseBody body;
85+
86+
private BuilderImpl() {
87+
super();
88+
}
89+
90+
private BuilderImpl(KeepaliveIntlResponse 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(KeepaliveIntlResponseBody body) {
120+
this.body = body;
121+
return this;
122+
}
123+
124+
@Override
125+
public KeepaliveIntlResponse build() {
126+
return new KeepaliveIntlResponse(this);
127+
}
128+
129+
}
130+
131+
}

0 commit comments

Comments
 (0)