Skip to content

Commit 8ea431c

Browse files
committed
Generated java-async 2018-08-13 for cas.
1 parent b7e89f2 commit 8ea431c

File tree

11 files changed

+1003
-0
lines changed

11 files changed

+1003
-0
lines changed

cas-20180813/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2025-06-12 Version: 1.0.0
2+
- Generated java-async 2018-08-13 for cas.
3+

cas-20180813/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.

cas-20180813/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 cas SDK for Java
6+
7+
## 安装
8+
9+
```xml
10+
<dependency>
11+
<groupId>com.aliyun</groupId>
12+
<artifactId>alibabacloud-cas20180813</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.

cas-20180813/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 cas SDK for Java
5+
6+
## Installation
7+
8+
```xml
9+
<dependency>
10+
<groupId>com.aliyun</groupId>
11+
<artifactId>alibabacloud-cas20180813</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.

cas-20180813/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-cas20180813</artifactId>
6+
<version>1.0.0</version>
7+
<packaging>jar</packaging>
8+
<name>alibabacloud-cas20180813</name>
9+
<description>Alibaba Cloud cas (20180813) 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.15-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>3.1.0</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: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.sdk.service.cas20180813;
3+
4+
import com.aliyun.core.utils.SdkAutoCloseable;
5+
import com.aliyun.sdk.service.cas20180813.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+
/**
23+
* @param request the request parameters of ListPCAInstance ListPCAInstanceRequest
24+
* @return ListPCAInstanceResponse
25+
*/
26+
CompletableFuture<ListPCAInstanceResponse> listPCAInstance(ListPCAInstanceRequest request);
27+
28+
}
Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.sdk.service.cas20180813;
3+
4+
import com.aliyun.core.http.*;
5+
import com.aliyun.sdk.service.cas20180813.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 = "cas";
31+
this.version = "2018-08-13";
32+
this.endpointRule = "regional";
33+
this.endpointMap = CommonUtil.buildMap(
34+
new TeaPair("cn-hangzhou", "cas.aliyuncs.com"),
35+
new TeaPair("ap-northeast-2-pop", "cas.aliyuncs.com"),
36+
new TeaPair("ap-southeast-3", "cas.aliyuncs.com"),
37+
new TeaPair("ap-southeast-5", "cas.aliyuncs.com"),
38+
new TeaPair("cn-beijing", "cas.aliyuncs.com"),
39+
new TeaPair("cn-beijing-finance-1", "cas.aliyuncs.com"),
40+
new TeaPair("cn-beijing-finance-pop", "cas.aliyuncs.com"),
41+
new TeaPair("cn-beijing-gov-1", "cas.aliyuncs.com"),
42+
new TeaPair("cn-beijing-nu16-b01", "cas.aliyuncs.com"),
43+
new TeaPair("cn-chengdu", "cas.aliyuncs.com"),
44+
new TeaPair("cn-edge-1", "cas.aliyuncs.com"),
45+
new TeaPair("cn-fujian", "cas.aliyuncs.com"),
46+
new TeaPair("cn-haidian-cm12-c01", "cas.aliyuncs.com"),
47+
new TeaPair("cn-hangzhou-bj-b01", "cas.aliyuncs.com"),
48+
new TeaPair("cn-hangzhou-finance", "cas.aliyuncs.com"),
49+
new TeaPair("cn-hangzhou-internal-prod-1", "cas.aliyuncs.com"),
50+
new TeaPair("cn-hangzhou-internal-test-1", "cas.aliyuncs.com"),
51+
new TeaPair("cn-hangzhou-internal-test-2", "cas.aliyuncs.com"),
52+
new TeaPair("cn-hangzhou-internal-test-3", "cas.aliyuncs.com"),
53+
new TeaPair("cn-hangzhou-test-306", "cas.aliyuncs.com"),
54+
new TeaPair("cn-hongkong", "cas.aliyuncs.com"),
55+
new TeaPair("cn-hongkong-finance-pop", "cas.aliyuncs.com"),
56+
new TeaPair("cn-huhehaote", "cas.aliyuncs.com"),
57+
new TeaPair("cn-huhehaote-nebula-1", "cas.aliyuncs.com"),
58+
new TeaPair("cn-north-2-gov-1", "cas.aliyuncs.com"),
59+
new TeaPair("cn-qingdao", "cas.aliyuncs.com"),
60+
new TeaPair("cn-qingdao-nebula", "cas.aliyuncs.com"),
61+
new TeaPair("cn-shanghai", "cas.aliyuncs.com"),
62+
new TeaPair("cn-shanghai-et15-b01", "cas.aliyuncs.com"),
63+
new TeaPair("cn-shanghai-et2-b01", "cas.aliyuncs.com"),
64+
new TeaPair("cn-shanghai-finance-1", "cas.aliyuncs.com"),
65+
new TeaPair("cn-shanghai-inner", "cas.aliyuncs.com"),
66+
new TeaPair("cn-shanghai-internal-test-1", "cas.aliyuncs.com"),
67+
new TeaPair("cn-shenzhen", "cas.aliyuncs.com"),
68+
new TeaPair("cn-shenzhen-finance-1", "cas.aliyuncs.com"),
69+
new TeaPair("cn-shenzhen-inner", "cas.aliyuncs.com"),
70+
new TeaPair("cn-shenzhen-st4-d01", "cas.aliyuncs.com"),
71+
new TeaPair("cn-shenzhen-su18-b01", "cas.aliyuncs.com"),
72+
new TeaPair("cn-wuhan", "cas.aliyuncs.com"),
73+
new TeaPair("cn-wulanchabu", "cas.aliyuncs.com"),
74+
new TeaPair("cn-yushanfang", "cas.aliyuncs.com"),
75+
new TeaPair("cn-zhangbei", "cas.aliyuncs.com"),
76+
new TeaPair("cn-zhangbei-na61-b01", "cas.aliyuncs.com"),
77+
new TeaPair("cn-zhangjiakou", "cas.aliyuncs.com"),
78+
new TeaPair("cn-zhangjiakou-na62-a01", "cas.aliyuncs.com"),
79+
new TeaPair("cn-zhengzhou-nebula-1", "cas.aliyuncs.com"),
80+
new TeaPair("eu-west-1", "cas.aliyuncs.com"),
81+
new TeaPair("eu-west-1-oxs", "cas.aliyuncs.com"),
82+
new TeaPair("rus-west-1-pop", "cas.aliyuncs.com"),
83+
new TeaPair("us-east-1", "cas.aliyuncs.com"),
84+
new TeaPair("us-west-1", "cas.aliyuncs.com")
85+
);
86+
this.REQUEST = TeaRequest.create().setProduct(product).setEndpointRule(endpointRule).setEndpointMap(endpointMap).setVersion(version);
87+
}
88+
89+
@Override
90+
public void close() {
91+
this.handler.close();
92+
}
93+
94+
/**
95+
* @param request the request parameters of ListPCAInstance ListPCAInstanceRequest
96+
* @return ListPCAInstanceResponse
97+
*/
98+
@Override
99+
public CompletableFuture<ListPCAInstanceResponse> listPCAInstance(ListPCAInstanceRequest request) {
100+
try {
101+
this.handler.validateRequestModel(request);
102+
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListPCAInstance").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
103+
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListPCAInstanceResponse.create());
104+
return this.handler.execute(params);
105+
} catch (Exception e) {
106+
CompletableFuture<ListPCAInstanceResponse> future = new CompletableFuture<>();
107+
future.completeExceptionally(e);
108+
return future;
109+
}
110+
}
111+
112+
}
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.cas20180813;
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 "cas20180813";
11+
}
12+
13+
@Override
14+
protected final AsyncClient buildClient() {
15+
return new DefaultAsyncClient(super.applyClientConfiguration());
16+
}
17+
18+
}

0 commit comments

Comments
 (0)