Skip to content

Commit 4832356

Browse files
committed
Generated java-async 2016-05-03 for gpdb.
1 parent 593912d commit 4832356

File tree

7 files changed

+740
-1
lines changed

7 files changed

+740
-1
lines changed

gpdb-20160503/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-03-08 Version: 2.0.15
2+
- Generated java-async 2016-05-03 for gpdb.
3+
14
2025-03-07 Version: 2.0.14
25
- Generated java-async 2016-05-03 for gpdb.
36

gpdb-20160503/pom.xml

Lines changed: 1 addition & 1 deletion
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-gpdb20160503</artifactId>
6-
<version>2.0.14</version>
6+
<version>2.0.15</version>
77
<packaging>jar</packaging>
88
<name>alibabacloud-gpdb20160503</name>
99
<description>Alibaba Cloud gpdb (20160503) Async SDK for Java

gpdb-20160503/src/main/java/com/aliyun/sdk/service/gpdb20160503/AsyncClient.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -989,6 +989,12 @@ static AsyncClient create() {
989989
*/
990990
CompletableFuture<GetSecretValueResponse> getSecretValue(GetSecretValueRequest request);
991991

992+
/**
993+
* @param request the request parameters of GetStatementResult GetStatementResultRequest
994+
* @return GetStatementResultResponse
995+
*/
996+
CompletableFuture<GetStatementResultResponse> getStatementResult(GetStatementResultRequest request);
997+
992998
/**
993999
* <b>description</b> :
9941000
* <p>This operation is related to the UploadDocumentAsync operation. You can call the UploadDocumentAsync operation to create an upload job and obtain the job ID, and then call the GetUploadDocumentJob operation to query the execution information of the job.</p>

gpdb-20160503/src/main/java/com/aliyun/sdk/service/gpdb20160503/DefaultAsyncClient.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2511,6 +2511,24 @@ public CompletableFuture<GetSecretValueResponse> getSecretValue(GetSecretValueRe
25112511
}
25122512
}
25132513

2514+
/**
2515+
* @param request the request parameters of GetStatementResult GetStatementResultRequest
2516+
* @return GetStatementResultResponse
2517+
*/
2518+
@Override
2519+
public CompletableFuture<GetStatementResultResponse> getStatementResult(GetStatementResultRequest request) {
2520+
try {
2521+
this.handler.validateRequestModel(request);
2522+
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetStatementResult").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
2523+
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetStatementResultResponse.create());
2524+
return this.handler.execute(params);
2525+
} catch (Exception e) {
2526+
CompletableFuture<GetStatementResultResponse> future = new CompletableFuture<>();
2527+
future.completeExceptionally(e);
2528+
return future;
2529+
}
2530+
}
2531+
25142532
/**
25152533
* <b>description</b> :
25162534
* <p>This operation is related to the UploadDocumentAsync operation. You can call the UploadDocumentAsync operation to create an upload job and obtain the job ID, and then call the GetUploadDocumentJob operation to query the execution information of the job.</p>
Lines changed: 218 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,218 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.sdk.service.gpdb20160503.models;
3+
4+
import com.aliyun.sdk.gateway.pop.*;
5+
import darabonba.core.*;
6+
import darabonba.core.async.*;
7+
import darabonba.core.sync.*;
8+
import darabonba.core.client.*;
9+
import darabonba.core.RequestModel;
10+
import darabonba.core.TeaModel;
11+
import com.aliyun.sdk.gateway.pop.models.*;
12+
13+
/**
14+
*
15+
* {@link GetStatementResultRequest} extends {@link RequestModel}
16+
*
17+
* <p>GetStatementResultRequest</p>
18+
*/
19+
public class GetStatementResultRequest extends Request {
20+
@com.aliyun.core.annotation.Query
21+
@com.aliyun.core.annotation.NameInMap("DBInstanceId")
22+
@com.aliyun.core.annotation.Validation(required = true)
23+
private String DBInstanceId;
24+
25+
@com.aliyun.core.annotation.Query
26+
@com.aliyun.core.annotation.NameInMap("Database")
27+
private String database;
28+
29+
@com.aliyun.core.annotation.Query
30+
@com.aliyun.core.annotation.NameInMap("Id")
31+
@com.aliyun.core.annotation.Validation(required = true)
32+
private String id;
33+
34+
@com.aliyun.core.annotation.Query
35+
@com.aliyun.core.annotation.NameInMap("OwnerId")
36+
private Long ownerId;
37+
38+
@com.aliyun.core.annotation.Query
39+
@com.aliyun.core.annotation.NameInMap("RegionId")
40+
@com.aliyun.core.annotation.Validation(required = true)
41+
private String regionId;
42+
43+
@com.aliyun.core.annotation.Query
44+
@com.aliyun.core.annotation.NameInMap("SecretArn")
45+
@com.aliyun.core.annotation.Validation(required = true)
46+
private String secretArn;
47+
48+
private GetStatementResultRequest(Builder builder) {
49+
super(builder);
50+
this.DBInstanceId = builder.DBInstanceId;
51+
this.database = builder.database;
52+
this.id = builder.id;
53+
this.ownerId = builder.ownerId;
54+
this.regionId = builder.regionId;
55+
this.secretArn = builder.secretArn;
56+
}
57+
58+
public static Builder builder() {
59+
return new Builder();
60+
}
61+
62+
public static GetStatementResultRequest create() {
63+
return builder().build();
64+
}
65+
66+
@Override
67+
public Builder toBuilder() {
68+
return new Builder(this);
69+
}
70+
71+
/**
72+
* @return DBInstanceId
73+
*/
74+
public String getDBInstanceId() {
75+
return this.DBInstanceId;
76+
}
77+
78+
/**
79+
* @return database
80+
*/
81+
public String getDatabase() {
82+
return this.database;
83+
}
84+
85+
/**
86+
* @return id
87+
*/
88+
public String getId() {
89+
return this.id;
90+
}
91+
92+
/**
93+
* @return ownerId
94+
*/
95+
public Long getOwnerId() {
96+
return this.ownerId;
97+
}
98+
99+
/**
100+
* @return regionId
101+
*/
102+
public String getRegionId() {
103+
return this.regionId;
104+
}
105+
106+
/**
107+
* @return secretArn
108+
*/
109+
public String getSecretArn() {
110+
return this.secretArn;
111+
}
112+
113+
public static final class Builder extends Request.Builder<GetStatementResultRequest, Builder> {
114+
private String DBInstanceId;
115+
private String database;
116+
private String id;
117+
private Long ownerId;
118+
private String regionId;
119+
private String secretArn;
120+
121+
private Builder() {
122+
super();
123+
}
124+
125+
private Builder(GetStatementResultRequest request) {
126+
super(request);
127+
this.DBInstanceId = request.DBInstanceId;
128+
this.database = request.database;
129+
this.id = request.id;
130+
this.ownerId = request.ownerId;
131+
this.regionId = request.regionId;
132+
this.secretArn = request.secretArn;
133+
}
134+
135+
/**
136+
* <p>Instance ID. Can be obtained by calling DescribeDBInstances.</p>
137+
* <p>This parameter is required.</p>
138+
*
139+
* <strong>example:</strong>
140+
* <p>gp-xxxxxxxxx</p>
141+
*/
142+
public Builder DBInstanceId(String DBInstanceId) {
143+
this.putQueryParameter("DBInstanceId", DBInstanceId);
144+
this.DBInstanceId = DBInstanceId;
145+
return this;
146+
}
147+
148+
/**
149+
* <p>Database name.</p>
150+
*
151+
* <strong>example:</strong>
152+
* <p>test</p>
153+
*/
154+
public Builder database(String database) {
155+
this.putQueryParameter("Database", database);
156+
this.database = database;
157+
return this;
158+
}
159+
160+
/**
161+
* <p>Task ID for asynchronous SQL execution.</p>
162+
* <p>This parameter is required.</p>
163+
*
164+
* <strong>example:</strong>
165+
* <p>9A920F47-416A-4044-817C-7C2A72AD16D3</p>
166+
*/
167+
public Builder id(String id) {
168+
this.putQueryParameter("Id", id);
169+
this.id = id;
170+
return this;
171+
}
172+
173+
/**
174+
* OwnerId.
175+
*/
176+
public Builder ownerId(Long ownerId) {
177+
this.putQueryParameter("OwnerId", ownerId);
178+
this.ownerId = ownerId;
179+
return this;
180+
}
181+
182+
/**
183+
* <p>Region ID where the instance is located.</p>
184+
* <p>This parameter is required.</p>
185+
*
186+
* <strong>example:</strong>
187+
* <p>cn-beijing</p>
188+
*/
189+
public Builder regionId(String regionId) {
190+
this.putQueryParameter("RegionId", regionId);
191+
this.regionId = regionId;
192+
return this;
193+
}
194+
195+
/**
196+
* <p>Access credential. Created through the CreateSecret interface.</p>
197+
* <blockquote>
198+
* <p>When accessing this interface with a sub-account, the sub-account must have the UseSecret or GetSecretValue permission for this SecretArn.</p>
199+
* </blockquote>
200+
* <p>This parameter is required.</p>
201+
*
202+
* <strong>example:</strong>
203+
* <p>acs:gpdb:cn-beijing:1033**:secret/testsecret-eG2AQGRIwQ0zFp4VA7mYL3uiCXTfDQbQ</p>
204+
*/
205+
public Builder secretArn(String secretArn) {
206+
this.putQueryParameter("SecretArn", secretArn);
207+
this.secretArn = secretArn;
208+
return this;
209+
}
210+
211+
@Override
212+
public GetStatementResultRequest build() {
213+
return new GetStatementResultRequest(this);
214+
}
215+
216+
}
217+
218+
}

0 commit comments

Comments
 (0)