Skip to content

Commit 622a140

Browse files
committed
Generated java-async 2023-01-01 for Dytnsapi.
1 parent 6be070a commit 622a140

14 files changed

+1375
-0
lines changed

dytnsapi-20230101/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2024-03-12 Version: 1.0.0
2+
- Generated java-async 2023-01-01 for Dytnsapi.
3+

dytnsapi-20230101/LICENSE

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

dytnsapi-20230101/README-CN.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
[English](README.md) | 简体中文
2+
3+
![](https://aliyunsdk-pages.alicdn.com/icons/AlibabaCloud.svg)
4+
5+
## Alibaba Cloud Dytnsapi SDK for Java
6+
7+
## 安装
8+
9+
```xml
10+
<dependency>
11+
<groupId>com.aliyun</groupId>
12+
<artifactId>alibabacloud-dytnsapi20230101</artifactId>
13+
<version>使用maven标签所示版本</version>
14+
</dependency>
15+
```
16+
17+
## 问题
18+
19+
[提交 Issue](https://github.com/aliyun/alibabacloud-java-async-sdk/issues/new),不符合指南的问题可能会立即关闭。
20+
21+
## 发行说明
22+
23+
每个版本的详细更改记录在[发行说明](./ChangeLog.txt)中。
24+
25+
## 相关
26+
27+
- [最新源码](https://github.com/aliyun/alibabacloud-async-java-sdk/)
28+
29+
## 许可证
30+
31+
[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0)
32+
33+
Copyright (c) 2009-present, Alibaba Cloud All rights reserved.

dytnsapi-20230101/README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
English | [简体中文](README-CN.md)
2+
![](https://aliyunsdk-pages.alicdn.com/icons/AlibabaCloud.svg)
3+
4+
## Alibaba Cloud Dytnsapi SDK for Java
5+
6+
## Installation
7+
8+
```xml
9+
<dependency>
10+
<groupId>com.aliyun</groupId>
11+
<artifactId>alibabacloud-dytnsapi20230101</artifactId>
12+
<version>Use the version shown in the maven badge</version>
13+
</dependency>
14+
```
15+
16+
## Issues
17+
[Opening an Issue](https://github.com/aliyun/alibabacloud-java-async-sdk/issues/new), Issues not conforming to the guidelines may be closed immediately.
18+
19+
## Changelog
20+
Detailed changes for each release are documented in the [release notes](./ChangeLog.txt).
21+
22+
## References
23+
* [Latest Release](https://github.com/aliyun/alibabacloud-async-java-sdk/)
24+
25+
## License
26+
[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0)
27+
28+
Copyright (c) 2009-present, Alibaba Cloud All rights reserved.

dytnsapi-20230101/pom.xml

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<groupId>com.aliyun</groupId>
5+
<artifactId>alibabacloud-dytnsapi20230101</artifactId>
6+
<version>1.0.0</version>
7+
<packaging>jar</packaging>
8+
<name>alibabacloud-dytnsapi20230101</name>
9+
<description>Alibaba Cloud Dytnsapi (20230101) Async SDK for Java
10+
</description>
11+
<url>https://github.com/aliyun/alibabacloud-java-async-sdk</url>
12+
<licenses>
13+
<license>
14+
<name>The Apache License, Version 2.0</name>
15+
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
16+
</license>
17+
</licenses>
18+
<developers>
19+
<developer>
20+
<id>aliyunproducts</id>
21+
<name>Aliyun SDK</name>
22+
<email>aliyunsdk@aliyun.com</email>
23+
</developer>
24+
</developers>
25+
<distributionManagement>
26+
<snapshotRepository>
27+
<id>sonatype-nexus-snapshots</id>
28+
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
29+
</snapshotRepository>
30+
<repository>
31+
<id>sonatype-nexus-staging</id>
32+
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
33+
</repository>
34+
</distributionManagement>
35+
<scm>
36+
<connection/>
37+
<developerConnection/>
38+
<url/>
39+
</scm>
40+
<properties>
41+
<java.version>1.8</java.version>
42+
<maven.compiler.source>8</maven.compiler.source>
43+
<maven.compiler.target>8</maven.compiler.target>
44+
<service.version>0.2.7-beta</service.version>
45+
</properties>
46+
<dependencies>
47+
<dependency>
48+
<groupId>com.github.tomakehurst</groupId>
49+
<artifactId>wiremock-standalone</artifactId>
50+
<version>2.24.1</version>
51+
<scope>test</scope>
52+
</dependency>
53+
<dependency>
54+
<groupId>junit</groupId>
55+
<artifactId>junit</artifactId>
56+
<version>4.13.1</version>
57+
<scope>test</scope>
58+
</dependency>
59+
<dependency>
60+
<groupId>com.aliyun</groupId>
61+
<artifactId>aliyun-gateway-pop</artifactId>
62+
<version>${service.version}</version>
63+
</dependency>
64+
</dependencies>
65+
<build>
66+
<plugins>
67+
<plugin>
68+
<groupId>org.apache.maven.plugins</groupId>
69+
<artifactId>maven-compiler-plugin</artifactId>
70+
<version>3.6.1</version>
71+
<configuration>
72+
<source>${maven.compiler.source}</source>
73+
<target>${maven.compiler.target}</target>
74+
</configuration>
75+
</plugin>
76+
<plugin>
77+
<groupId>org.apache.maven.plugins</groupId>
78+
<artifactId>maven-gpg-plugin</artifactId>
79+
<version>1.6</version>
80+
<executions>
81+
<execution>
82+
<id>sign-artifacts</id>
83+
<phase>verify</phase>
84+
<goals>
85+
<goal>sign</goal>
86+
</goals>
87+
</execution>
88+
</executions>
89+
</plugin>
90+
<plugin>
91+
<groupId>org.sonatype.plugins</groupId>
92+
<artifactId>nexus-staging-maven-plugin</artifactId>
93+
<version>1.6.3</version>
94+
<extensions>true</extensions>
95+
<configuration>
96+
<serverId>sonatype-nexus-staging</serverId>
97+
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
98+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
99+
</configuration>
100+
</plugin>
101+
<plugin>
102+
<groupId>org.apache.maven.plugins</groupId>
103+
<artifactId>maven-javadoc-plugin</artifactId>
104+
<version>3.1.1</version>
105+
<configuration>
106+
<encoding>UTF-8</encoding>
107+
<doclint>none</doclint>
108+
</configuration>
109+
</plugin>
110+
<plugin>
111+
<groupId>org.apache.maven.plugins</groupId>
112+
<artifactId>maven-surefire-plugin</artifactId>
113+
<version>2.22.1</version>
114+
</plugin>
115+
</plugins>
116+
</build>
117+
</project>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.sdk.service.dytnsapi20230101;
3+
4+
import com.aliyun.core.utils.SdkAutoCloseable;
5+
import com.aliyun.sdk.service.dytnsapi20230101.models.*;
6+
import darabonba.core.*;
7+
import darabonba.core.async.*;
8+
import darabonba.core.sync.*;
9+
10+
import java.util.concurrent.CompletableFuture;
11+
12+
public interface AsyncClient extends SdkAutoCloseable {
13+
14+
static DefaultAsyncClientBuilder builder() {
15+
return new DefaultAsyncClientBuilder();
16+
}
17+
18+
static AsyncClient create() {
19+
return builder().build();
20+
}
21+
22+
CompletableFuture<GetPhoneNumberIdentificationResultResponse> getPhoneNumberIdentificationResult(GetPhoneNumberIdentificationResultRequest request);
23+
24+
CompletableFuture<GetPhoneNumberIdentificationUrlResponse> getPhoneNumberIdentificationUrl(GetPhoneNumberIdentificationUrlRequest request);
25+
26+
}
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.dytnsapi20230101;
3+
4+
import com.aliyun.core.http.*;
5+
import com.aliyun.sdk.service.dytnsapi20230101.models.*;
6+
import darabonba.core.utils.*;
7+
import com.aliyun.sdk.gateway.pop.*;
8+
import darabonba.core.*;
9+
import darabonba.core.async.*;
10+
import darabonba.core.sync.*;
11+
import darabonba.core.client.*;
12+
13+
import java.util.concurrent.CompletableFuture;
14+
15+
16+
/**
17+
* <p>Main client.</p>
18+
*/
19+
public final class DefaultAsyncClient implements AsyncClient {
20+
21+
protected final String product;
22+
protected final String version;
23+
protected final String endpointRule;
24+
protected final java.util.Map<String, String> endpointMap;
25+
protected final TeaRequest REQUEST;
26+
protected final TeaAsyncHandler handler;
27+
28+
protected DefaultAsyncClient(ClientConfiguration configuration) {
29+
this.handler = new TeaAsyncHandler(configuration);
30+
this.product = "Dytnsapi";
31+
this.version = "2023-01-01";
32+
this.endpointRule = "central";
33+
this.endpointMap = new java.util.HashMap<>();
34+
this.REQUEST = TeaRequest.create().setProduct(product).setEndpointRule(endpointRule).setEndpointMap(endpointMap).setVersion(version);
35+
}
36+
37+
@Override
38+
public void close() {
39+
this.handler.close();
40+
}
41+
42+
@Override
43+
public CompletableFuture<GetPhoneNumberIdentificationResultResponse> getPhoneNumberIdentificationResult(GetPhoneNumberIdentificationResultRequest request) {
44+
try {
45+
this.handler.validateRequestModel(request);
46+
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetPhoneNumberIdentificationResult").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
47+
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetPhoneNumberIdentificationResultResponse.create());
48+
return this.handler.execute(params);
49+
} catch (Exception e) {
50+
CompletableFuture<GetPhoneNumberIdentificationResultResponse> future = new CompletableFuture<>();
51+
future.completeExceptionally(e);
52+
return future;
53+
}
54+
}
55+
56+
@Override
57+
public CompletableFuture<GetPhoneNumberIdentificationUrlResponse> getPhoneNumberIdentificationUrl(GetPhoneNumberIdentificationUrlRequest request) {
58+
try {
59+
this.handler.validateRequestModel(request);
60+
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetPhoneNumberIdentificationUrl").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
61+
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetPhoneNumberIdentificationUrlResponse.create());
62+
return this.handler.execute(params);
63+
} catch (Exception e) {
64+
CompletableFuture<GetPhoneNumberIdentificationUrlResponse> future = new CompletableFuture<>();
65+
future.completeExceptionally(e);
66+
return future;
67+
}
68+
}
69+
70+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.sdk.service.dytnsapi20230101;
3+
4+
import com.aliyun.sdk.gateway.pop.BaseClientBuilder;
5+
6+
public final class DefaultAsyncClientBuilder extends BaseClientBuilder<DefaultAsyncClientBuilder, AsyncClient> {
7+
8+
@Override
9+
protected String serviceName() {
10+
return "dytnsapi20230101";
11+
}
12+
13+
@Override
14+
protected final AsyncClient buildClient() {
15+
return new DefaultAsyncClient(super.applyClientConfiguration());
16+
}
17+
18+
}

0 commit comments

Comments
 (0)