@@ -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