Skip to content

Commit 4b0923a

Browse files
committed
Generated java-async 2020-12-09 for Tablestore.
1 parent d5e48c4 commit 4b0923a

19 files changed

Lines changed: 2911 additions & 5 deletions

tablestore-20201209/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2026-06-29 Version: 3.0.1
2+
- Generated java-async 2020-12-09 for Tablestore.
3+
14
2026-01-30 Version: 3.0.0
25
- Generated java-async 2020-12-09 for Tablestore.
36

tablestore-20201209/pom.xml

Lines changed: 3 additions & 3 deletions
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-tablestore20201209</artifactId>
6-
<version>3.0.0</version>
6+
<version>3.0.1</version>
77
<packaging>jar</packaging>
88
<name>alibabacloud-tablestore20201209</name>
99
<description>Alibaba Cloud Tablestore (20201209) Async SDK for Java
@@ -41,7 +41,7 @@
4141
<java.version>1.8</java.version>
4242
<maven.compiler.source>8</maven.compiler.source>
4343
<maven.compiler.target>8</maven.compiler.target>
44-
<service.version>0.3.5-beta</service.version>
44+
<service.version>0.4.0</service.version>
4545
</properties>
4646
<dependencies>
4747
<dependency>
@@ -104,7 +104,7 @@
104104
<plugin>
105105
<groupId>org.sonatype.central</groupId>
106106
<artifactId>central-publishing-maven-plugin</artifactId>
107-
<version>0.9.0</version>
107+
<version>0.10.0</version>
108108
<extensions>true</extensions>
109109
<configuration>
110110
<publishingServerId>central</publishingServerId>

tablestore-20201209/src/main/java/com/aliyun/sdk/service/tablestore20201209/AsyncClient.java

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ static AsyncClient create() {
3737
*/
3838
CompletableFuture<CheckInstancePolicyResponse> checkInstancePolicy(CheckInstancePolicyRequest request);
3939

40+
/**
41+
* @param request the request parameters of CreateAgentStorage CreateAgentStorageRequest
42+
* @return CreateAgentStorageResponse
43+
*/
44+
CompletableFuture<CreateAgentStorageResponse> createAgentStorage(CreateAgentStorageRequest request);
45+
4046
/**
4147
* <b>description</b> :
4248
* <p> <strong>Before you call this operation, you must understand the billing and pricing of Tablestore. For more information, see <a href="https://help.aliyun.com/document_detail/27291.html">Billing overview</a>.</strong></p>
@@ -56,6 +62,12 @@ static AsyncClient create() {
5662
*/
5763
CompletableFuture<CreateVCUInstanceResponse> createVCUInstance(CreateVCUInstanceRequest request);
5864

65+
/**
66+
* @param request the request parameters of DeleteAgentStorage DeleteAgentStorageRequest
67+
* @return DeleteAgentStorageResponse
68+
*/
69+
CompletableFuture<DeleteAgentStorageResponse> deleteAgentStorage(DeleteAgentStorageRequest request);
70+
5971
/**
6072
* <b>description</b> :
6173
* <p> Before you delete an instance, make sure that all data tables and time series tables in the instance are deleted and virtual private clouds (VPCs) are unbound from the instance.</p>
@@ -93,12 +105,24 @@ static AsyncClient create() {
93105
*/
94106
CompletableFuture<DescribeRegionsResponse> describeRegions(DescribeRegionsRequest request);
95107

108+
/**
109+
* @param request the request parameters of GetAgentStorage GetAgentStorageRequest
110+
* @return GetAgentStorageResponse
111+
*/
112+
CompletableFuture<GetAgentStorageResponse> getAgentStorage(GetAgentStorageRequest request);
113+
96114
/**
97115
* @param request the request parameters of GetInstance GetInstanceRequest
98116
* @return GetInstanceResponse
99117
*/
100118
CompletableFuture<GetInstanceResponse> getInstance(GetInstanceRequest request);
101119

120+
/**
121+
* @param request the request parameters of ListAgentStorages ListAgentStoragesRequest
122+
* @return ListAgentStoragesResponse
123+
*/
124+
CompletableFuture<ListAgentStoragesResponse> listAgentStorages(ListAgentStoragesRequest request);
125+
102126
/**
103127
* @param request the request parameters of ListClusterType ListClusterTypeRequest
104128
* @return ListClusterTypeResponse
@@ -150,6 +174,12 @@ static AsyncClient create() {
150174
*/
151175
CompletableFuture<UntagResourcesResponse> untagResources(UntagResourcesRequest request);
152176

177+
/**
178+
* @param request the request parameters of UpdateAgentStorage UpdateAgentStorageRequest
179+
* @return UpdateAgentStorageResponse
180+
*/
181+
CompletableFuture<UpdateAgentStorageResponse> updateAgentStorage(UpdateAgentStorageRequest request);
182+
153183
/**
154184
* @param request the request parameters of UpdateInstance UpdateInstanceRequest
155185
* @return UpdateInstanceResponse

tablestore-20201209/src/main/java/com/aliyun/sdk/service/tablestore20201209/DefaultAsyncClient.java

Lines changed: 119 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,35 @@ protected DefaultAsyncClient(ClientConfiguration configuration) {
2929
this.handler = new TeaAsyncHandler(configuration);
3030
this.product = "Tablestore";
3131
this.version = "2020-12-09";
32-
this.endpointRule = "";
33-
this.endpointMap = new java.util.HashMap<>();
32+
this.endpointRule = "regional";
33+
this.endpointMap = CommonUtil.buildMap(
34+
new TeaPair("us-west-1", "tablestore.us-west-1.aliyuncs.com"),
35+
new TeaPair("us-east-1", "tablestore.us-east-1.aliyuncs.com"),
36+
new TeaPair("me-east-1", "tablestore.me-east-1.aliyuncs.com"),
37+
new TeaPair("me-central-1", "tablestore.me-central-1.aliyuncs.com"),
38+
new TeaPair("eu-west-1", "tablestore.eu-west-1.aliyuncs.com"),
39+
new TeaPair("eu-central-1", "tablestore.eu-central-1.aliyuncs.com"),
40+
new TeaPair("cn-zhangjiakou", "tablestore.cn-zhangjiakou.aliyuncs.com"),
41+
new TeaPair("cn-wulanchabu", "tablestore.cn-wulanchabu.aliyuncs.com"),
42+
new TeaPair("cn-shenzhen", "tablestore.cn-shenzhen.aliyuncs.com"),
43+
new TeaPair("cn-shanghai-finance-1", "tablestore.cn-shanghai-finance-1.aliyuncs.com"),
44+
new TeaPair("cn-shanghai", "tablestore.cn-shanghai.aliyuncs.com"),
45+
new TeaPair("cn-qingdao", "tablestore.cn-qingdao.aliyuncs.com"),
46+
new TeaPair("cn-huhehaote", "tablestore.cn-huhehaote.aliyuncs.com"),
47+
new TeaPair("cn-hongkong", "tablestore.cn-hongkong.aliyuncs.com"),
48+
new TeaPair("cn-hangzhou", "tablestore.cn-hangzhou.aliyuncs.com"),
49+
new TeaPair("cn-guangzhou", "tablestore.cn-guangzhou.aliyuncs.com"),
50+
new TeaPair("cn-chengdu", "tablestore.cn-chengdu.aliyuncs.com"),
51+
new TeaPair("cn-beijing", "tablestore.cn-beijing.aliyuncs.com"),
52+
new TeaPair("ap-southeast-7", "tablestore.ap-southeast-7.aliyuncs.com"),
53+
new TeaPair("ap-southeast-6", "tablestore.ap-southeast-6.aliyuncs.com"),
54+
new TeaPair("ap-southeast-5", "tablestore.ap-southeast-5.aliyuncs.com"),
55+
new TeaPair("ap-southeast-3", "tablestore.ap-southeast-3.aliyuncs.com"),
56+
new TeaPair("ap-southeast-2", "tablestore.ap-southeast-2.aliyuncs.com"),
57+
new TeaPair("ap-southeast-1", "tablestore.ap-southeast-1.aliyuncs.com"),
58+
new TeaPair("ap-south-1", "tablestore.ap-south-1.aliyuncs.com"),
59+
new TeaPair("ap-northeast-1", "tablestore.ap-northeast-1.aliyuncs.com")
60+
);
3461
this.REQUEST = TeaRequest.create().setProduct(product).setEndpointRule(endpointRule).setEndpointMap(endpointMap).setVersion(version);
3562
}
3663

@@ -93,6 +120,24 @@ public CompletableFuture<CheckInstancePolicyResponse> checkInstancePolicy(CheckI
93120
}
94121
}
95122

123+
/**
124+
* @param request the request parameters of CreateAgentStorage CreateAgentStorageRequest
125+
* @return CreateAgentStorageResponse
126+
*/
127+
@Override
128+
public CompletableFuture<CreateAgentStorageResponse> createAgentStorage(CreateAgentStorageRequest request) {
129+
try {
130+
this.handler.validateRequestModel(request);
131+
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("CreateAgentStorage").setMethod(HttpMethod.POST).setPathRegex("/v2/openapi/createagentstorage").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
132+
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(CreateAgentStorageResponse.create());
133+
return this.handler.execute(params);
134+
} catch (Exception e) {
135+
CompletableFuture<CreateAgentStorageResponse> future = new CompletableFuture<>();
136+
future.completeExceptionally(e);
137+
return future;
138+
}
139+
}
140+
96141
/**
97142
* <b>description</b> :
98143
* <p> <strong>Before you call this operation, you must understand the billing and pricing of Tablestore. For more information, see <a href="https://help.aliyun.com/document_detail/27291.html">Billing overview</a>.</strong></p>
@@ -136,6 +181,24 @@ public CompletableFuture<CreateVCUInstanceResponse> createVCUInstance(CreateVCUI
136181
}
137182
}
138183

184+
/**
185+
* @param request the request parameters of DeleteAgentStorage DeleteAgentStorageRequest
186+
* @return DeleteAgentStorageResponse
187+
*/
188+
@Override
189+
public CompletableFuture<DeleteAgentStorageResponse> deleteAgentStorage(DeleteAgentStorageRequest request) {
190+
try {
191+
this.handler.validateRequestModel(request);
192+
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("DeleteAgentStorage").setMethod(HttpMethod.POST).setPathRegex("/v2/openapi/deleteagentstorage").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
193+
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(DeleteAgentStorageResponse.create());
194+
return this.handler.execute(params);
195+
} catch (Exception e) {
196+
CompletableFuture<DeleteAgentStorageResponse> future = new CompletableFuture<>();
197+
future.completeExceptionally(e);
198+
return future;
199+
}
200+
}
201+
139202
/**
140203
* <b>description</b> :
141204
* <p> Before you delete an instance, make sure that all data tables and time series tables in the instance are deleted and virtual private clouds (VPCs) are unbound from the instance.</p>
@@ -221,6 +284,24 @@ public CompletableFuture<DescribeRegionsResponse> describeRegions(DescribeRegion
221284
}
222285
}
223286

287+
/**
288+
* @param request the request parameters of GetAgentStorage GetAgentStorageRequest
289+
* @return GetAgentStorageResponse
290+
*/
291+
@Override
292+
public CompletableFuture<GetAgentStorageResponse> getAgentStorage(GetAgentStorageRequest request) {
293+
try {
294+
this.handler.validateRequestModel(request);
295+
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("GetAgentStorage").setMethod(HttpMethod.GET).setPathRegex("/v2/openapi/getagentstorage").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
296+
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetAgentStorageResponse.create());
297+
return this.handler.execute(params);
298+
} catch (Exception e) {
299+
CompletableFuture<GetAgentStorageResponse> future = new CompletableFuture<>();
300+
future.completeExceptionally(e);
301+
return future;
302+
}
303+
}
304+
224305
/**
225306
* @param request the request parameters of GetInstance GetInstanceRequest
226307
* @return GetInstanceResponse
@@ -239,6 +320,24 @@ public CompletableFuture<GetInstanceResponse> getInstance(GetInstanceRequest req
239320
}
240321
}
241322

323+
/**
324+
* @param request the request parameters of ListAgentStorages ListAgentStoragesRequest
325+
* @return ListAgentStoragesResponse
326+
*/
327+
@Override
328+
public CompletableFuture<ListAgentStoragesResponse> listAgentStorages(ListAgentStoragesRequest request) {
329+
try {
330+
this.handler.validateRequestModel(request);
331+
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("ListAgentStorages").setMethod(HttpMethod.GET).setPathRegex("/v2/openapi/listagentstorages").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
332+
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListAgentStoragesResponse.create());
333+
return this.handler.execute(params);
334+
} catch (Exception e) {
335+
CompletableFuture<ListAgentStoragesResponse> future = new CompletableFuture<>();
336+
future.completeExceptionally(e);
337+
return future;
338+
}
339+
}
340+
242341
/**
243342
* @param request the request parameters of ListClusterType ListClusterTypeRequest
244343
* @return ListClusterTypeResponse
@@ -386,6 +485,24 @@ public CompletableFuture<UntagResourcesResponse> untagResources(UntagResourcesRe
386485
}
387486
}
388487

488+
/**
489+
* @param request the request parameters of UpdateAgentStorage UpdateAgentStorageRequest
490+
* @return UpdateAgentStorageResponse
491+
*/
492+
@Override
493+
public CompletableFuture<UpdateAgentStorageResponse> updateAgentStorage(UpdateAgentStorageRequest request) {
494+
try {
495+
this.handler.validateRequestModel(request);
496+
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("UpdateAgentStorage").setMethod(HttpMethod.POST).setPathRegex("/v2/openapi/updateagentstorage").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
497+
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateAgentStorageResponse.create());
498+
return this.handler.execute(params);
499+
} catch (Exception e) {
500+
CompletableFuture<UpdateAgentStorageResponse> future = new CompletableFuture<>();
501+
future.completeExceptionally(e);
502+
return future;
503+
}
504+
}
505+
389506
/**
390507
* @param request the request parameters of UpdateInstance UpdateInstanceRequest
391508
* @return UpdateInstanceResponse

0 commit comments

Comments
 (0)