Skip to content

Commit 41df9df

Browse files
committed
Generated java-async 2024-12-09 for AccountCenter.
1 parent f321b92 commit 41df9df

14 files changed

+1518
-0
lines changed

accountcenter-20241209/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2025-05-27 Version: 1.0.0
2+
- Generated java-async 2024-12-09 for AccountCenter.
3+

accountcenter-20241209/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.

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

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

accountcenter-20241209/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-accountcenter20241209</artifactId>
6+
<version>1.0.0</version>
7+
<packaging>jar</packaging>
8+
<name>alibabacloud-accountcenter20241209</name>
9+
<description>Alibaba Cloud AccountCenter (20241209) 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>[email protected]</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: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.sdk.service.accountcenter20241209;
3+
4+
import com.aliyun.core.utils.SdkAutoCloseable;
5+
import com.aliyun.sdk.service.accountcenter20241209.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 EnterpriseOrgQueryLoadTree EnterpriseOrgQueryLoadTreeRequest
24+
* @return EnterpriseOrgQueryLoadTreeResponse
25+
*/
26+
CompletableFuture<EnterpriseOrgQueryLoadTreeResponse> enterpriseOrgQueryLoadTree(EnterpriseOrgQueryLoadTreeRequest request);
27+
28+
/**
29+
* @param request the request parameters of EnterpriseRegisterAccount EnterpriseRegisterAccountRequest
30+
* @return EnterpriseRegisterAccountResponse
31+
*/
32+
CompletableFuture<EnterpriseRegisterAccountResponse> enterpriseRegisterAccount(EnterpriseRegisterAccountRequest request);
33+
34+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.sdk.service.accountcenter20241209;
3+
4+
import com.aliyun.core.http.*;
5+
import com.aliyun.sdk.service.accountcenter20241209.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 = "AccountCenter";
31+
this.version = "2024-12-09";
32+
this.endpointRule = "";
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+
/**
43+
* @param request the request parameters of EnterpriseOrgQueryLoadTree EnterpriseOrgQueryLoadTreeRequest
44+
* @return EnterpriseOrgQueryLoadTreeResponse
45+
*/
46+
@Override
47+
public CompletableFuture<EnterpriseOrgQueryLoadTreeResponse> enterpriseOrgQueryLoadTree(EnterpriseOrgQueryLoadTreeRequest request) {
48+
try {
49+
this.handler.validateRequestModel(request);
50+
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("EnterpriseOrgQueryLoadTree").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(true).setReqBodyType(BodyType.FORM).formModel(request);
51+
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(EnterpriseOrgQueryLoadTreeResponse.create());
52+
return this.handler.execute(params);
53+
} catch (Exception e) {
54+
CompletableFuture<EnterpriseOrgQueryLoadTreeResponse> future = new CompletableFuture<>();
55+
future.completeExceptionally(e);
56+
return future;
57+
}
58+
}
59+
60+
/**
61+
* @param request the request parameters of EnterpriseRegisterAccount EnterpriseRegisterAccountRequest
62+
* @return EnterpriseRegisterAccountResponse
63+
*/
64+
@Override
65+
public CompletableFuture<EnterpriseRegisterAccountResponse> enterpriseRegisterAccount(EnterpriseRegisterAccountRequest request) {
66+
try {
67+
this.handler.validateRequestModel(request);
68+
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("EnterpriseRegisterAccount").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(true).setReqBodyType(BodyType.FORM).formModel(request);
69+
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(EnterpriseRegisterAccountResponse.create());
70+
return this.handler.execute(params);
71+
} catch (Exception e) {
72+
CompletableFuture<EnterpriseRegisterAccountResponse> future = new CompletableFuture<>();
73+
future.completeExceptionally(e);
74+
return future;
75+
}
76+
}
77+
78+
}
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.accountcenter20241209;
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 "accountcenter20241209";
11+
}
12+
13+
@Override
14+
protected final AsyncClient buildClient() {
15+
return new DefaultAsyncClient(super.applyClientConfiguration());
16+
}
17+
18+
}

0 commit comments

Comments
 (0)