Skip to content

Commit 323549e

Browse files
committed
Generated java-async 2023-08-01 for AiMiaoBi.
1 parent bbae2d6 commit 323549e

17 files changed

+5243
-1
lines changed

aimiaobi-20230801/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-05-12 Version: 1.0.48
2+
- Generated java-async 2023-08-01 for AiMiaoBi.
3+
14
2025-05-12 Version: 1.0.47
25
- Generated java-async 2023-08-01 for AiMiaoBi.
36

aimiaobi-20230801/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-aimiaobi20230801</artifactId>
6-
<version>1.0.47</version>
6+
<version>1.0.48</version>
77
<packaging>jar</packaging>
88
<name>alibabacloud-aimiaobi20230801</name>
99
<description>Alibaba Cloud AiMiaoBi (20230801) Async SDK for Java

aimiaobi-20230801/src/main/java/com/aliyun/sdk/service/aimiaobi20230801/AsyncClient.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,12 @@ static AsyncClient create() {
289289
*/
290290
CompletableFuture<GetSmartClipTaskResponse> getSmartClipTask(GetSmartClipTaskRequest request);
291291

292+
/**
293+
* @param request the request parameters of GetStyleLearningResult GetStyleLearningResultRequest
294+
* @return GetStyleLearningResultResponse
295+
*/
296+
CompletableFuture<GetStyleLearningResultResponse> getStyleLearningResult(GetStyleLearningResultRequest request);
297+
292298
/**
293299
* @param request the request parameters of GetTopicById GetTopicByIdRequest
294300
* @return GetTopicByIdResponse
@@ -505,6 +511,12 @@ static AsyncClient create() {
505511
*/
506512
CompletableFuture<ListWebReviewPointsResponse> listWebReviewPoints(ListWebReviewPointsRequest request);
507513

514+
/**
515+
* @param request the request parameters of ListWritingStyles ListWritingStylesRequest
516+
* @return ListWritingStylesResponse
517+
*/
518+
CompletableFuture<ListWritingStylesResponse> listWritingStyles(ListWritingStylesRequest request);
519+
508520
/**
509521
* @param request the request parameters of QueryAsyncTask QueryAsyncTaskRequest
510522
* @return QueryAsyncTaskResponse
@@ -743,6 +755,14 @@ static AsyncClient create() {
743755

744756
ResponseIterable<RunWritingResponseBody> runWritingWithResponseIterable(RunWritingRequest request);
745757

758+
/**
759+
* @param request the request parameters of RunWritingV2 RunWritingV2Request
760+
* @return RunWritingV2Response
761+
*/
762+
CompletableFuture<RunWritingV2Response> runWritingV2(RunWritingV2Request request);
763+
764+
ResponseIterable<RunWritingV2ResponseBody> runWritingV2WithResponseIterable(RunWritingV2Request request);
765+
746766
/**
747767
* @param request the request parameters of SaveCustomText SaveCustomTextRequest
748768
* @return SaveCustomTextResponse

aimiaobi-20230801/src/main/java/com/aliyun/sdk/service/aimiaobi20230801/DefaultAsyncClient.java

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -850,6 +850,24 @@ public CompletableFuture<GetSmartClipTaskResponse> getSmartClipTask(GetSmartClip
850850
}
851851
}
852852

853+
/**
854+
* @param request the request parameters of GetStyleLearningResult GetStyleLearningResultRequest
855+
* @return GetStyleLearningResultResponse
856+
*/
857+
@Override
858+
public CompletableFuture<GetStyleLearningResultResponse> getStyleLearningResult(GetStyleLearningResultRequest request) {
859+
try {
860+
this.handler.validateRequestModel(request);
861+
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetStyleLearningResult").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(true).setReqBodyType(BodyType.FORM).formModel(request);
862+
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetStyleLearningResultResponse.create());
863+
return this.handler.execute(params);
864+
} catch (Exception e) {
865+
CompletableFuture<GetStyleLearningResultResponse> future = new CompletableFuture<>();
866+
future.completeExceptionally(e);
867+
return future;
868+
}
869+
}
870+
853871
/**
854872
* @param request the request parameters of GetTopicById GetTopicByIdRequest
855873
* @return GetTopicByIdResponse
@@ -1498,6 +1516,24 @@ public CompletableFuture<ListWebReviewPointsResponse> listWebReviewPoints(ListWe
14981516
}
14991517
}
15001518

1519+
/**
1520+
* @param request the request parameters of ListWritingStyles ListWritingStylesRequest
1521+
* @return ListWritingStylesResponse
1522+
*/
1523+
@Override
1524+
public CompletableFuture<ListWritingStylesResponse> listWritingStyles(ListWritingStylesRequest request) {
1525+
try {
1526+
this.handler.validateRequestModel(request);
1527+
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListWritingStyles").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(true).setReqBodyType(BodyType.FORM).formModel(request);
1528+
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListWritingStylesResponse.create());
1529+
return this.handler.execute(params);
1530+
} catch (Exception e) {
1531+
CompletableFuture<ListWritingStylesResponse> future = new CompletableFuture<>();
1532+
future.completeExceptionally(e);
1533+
return future;
1534+
}
1535+
}
1536+
15011537
/**
15021538
* @param request the request parameters of QueryAsyncTask QueryAsyncTaskRequest
15031539
* @return QueryAsyncTaskResponse
@@ -2328,6 +2364,34 @@ public ResponseIterable<RunWritingResponseBody> runWritingWithResponseIterable(R
23282364
return new ResponseIterable<>(iterator);
23292365
}
23302366

2367+
/**
2368+
* @param request the request parameters of RunWritingV2 RunWritingV2Request
2369+
* @return RunWritingV2Response
2370+
*/
2371+
@Override
2372+
public CompletableFuture<RunWritingV2Response> runWritingV2(RunWritingV2Request request) {
2373+
try {
2374+
this.handler.validateRequestModel(request);
2375+
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("RunWritingV2").setMethod(HttpMethod.POST).setPathRegex("/quanmiao/aimiaobi/runWritingV2").setBodyType(BodyType.JSON).setBodyIsForm(true).setReqBodyType(BodyType.FORM).formModel(request);
2376+
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(RunWritingV2Response.create());
2377+
return this.handler.execute(params);
2378+
} catch (Exception e) {
2379+
CompletableFuture<RunWritingV2Response> future = new CompletableFuture<>();
2380+
future.completeExceptionally(e);
2381+
return future;
2382+
}
2383+
}
2384+
2385+
@Override
2386+
public ResponseIterable<RunWritingV2ResponseBody> runWritingV2WithResponseIterable(RunWritingV2Request request) {
2387+
this.handler.validateRequestModel(request);
2388+
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.SSE).setAction("RunWritingV2").setMethod(HttpMethod.POST).setPathRegex("/quanmiao/aimiaobi/runWritingV2").setBodyType(BodyType.JSON).setBodyIsForm(true).setReqBodyType(BodyType.FORM).formModel(request);
2389+
RunWritingV2ResponseBodyIterator iterator = RunWritingV2ResponseBodyIterator.create();
2390+
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withHttpResponseHandler(new SSEHttpResponseHandler(iterator));
2391+
this.handler.execute(params);
2392+
return new ResponseIterable<>(iterator);
2393+
}
2394+
23312395
/**
23322396
* @param request the request parameters of SaveCustomText SaveCustomTextRequest
23332397
* @return SaveCustomTextResponse

aimiaobi-20230801/src/main/java/com/aliyun/sdk/service/aimiaobi20230801/models/GetPropertiesResponseBody.java

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,102 @@ public IntelligentSearchConfig build() {
768768

769769
}
770770

771+
}
772+
/**
773+
*
774+
* {@link GetPropertiesResponseBody} extends {@link TeaModel}
775+
*
776+
* <p>GetPropertiesResponseBody</p>
777+
*/
778+
public static class SearchSourceList extends TeaModel {
779+
@com.aliyun.core.annotation.NameInMap("Code")
780+
private String code;
781+
782+
@com.aliyun.core.annotation.NameInMap("DatasetName")
783+
private String datasetName;
784+
785+
@com.aliyun.core.annotation.NameInMap("Name")
786+
private String name;
787+
788+
private SearchSourceList(Builder builder) {
789+
this.code = builder.code;
790+
this.datasetName = builder.datasetName;
791+
this.name = builder.name;
792+
}
793+
794+
public static Builder builder() {
795+
return new Builder();
796+
}
797+
798+
public static SearchSourceList create() {
799+
return builder().build();
800+
}
801+
802+
/**
803+
* @return code
804+
*/
805+
public String getCode() {
806+
return this.code;
807+
}
808+
809+
/**
810+
* @return datasetName
811+
*/
812+
public String getDatasetName() {
813+
return this.datasetName;
814+
}
815+
816+
/**
817+
* @return name
818+
*/
819+
public String getName() {
820+
return this.name;
821+
}
822+
823+
public static final class Builder {
824+
private String code;
825+
private String datasetName;
826+
private String name;
827+
828+
private Builder() {
829+
}
830+
831+
private Builder(SearchSourceList model) {
832+
this.code = model.code;
833+
this.datasetName = model.datasetName;
834+
this.name = model.name;
835+
}
836+
837+
/**
838+
* Code.
839+
*/
840+
public Builder code(String code) {
841+
this.code = code;
842+
return this;
843+
}
844+
845+
/**
846+
* DatasetName.
847+
*/
848+
public Builder datasetName(String datasetName) {
849+
this.datasetName = datasetName;
850+
return this;
851+
}
852+
853+
/**
854+
* Name.
855+
*/
856+
public Builder name(String name) {
857+
this.name = name;
858+
return this;
859+
}
860+
861+
public SearchSourceList build() {
862+
return new SearchSourceList(this);
863+
}
864+
865+
}
866+
771867
}
772868
/**
773869
*
@@ -1151,6 +1247,9 @@ public static class Data extends TeaModel {
11511247
@com.aliyun.core.annotation.NameInMap("IntelligentSearchConfig")
11521248
private IntelligentSearchConfig intelligentSearchConfig;
11531249

1250+
@com.aliyun.core.annotation.NameInMap("SearchSourceList")
1251+
private java.util.List<SearchSourceList> searchSourceList;
1252+
11541253
@com.aliyun.core.annotation.NameInMap("SearchSources")
11551254
private java.util.List<DataSearchSources> searchSources;
11561255

@@ -1171,6 +1270,7 @@ private Data(Builder builder) {
11711270
this.consoleConfig = builder.consoleConfig;
11721271
this.generalConfigMap = builder.generalConfigMap;
11731272
this.intelligentSearchConfig = builder.intelligentSearchConfig;
1273+
this.searchSourceList = builder.searchSourceList;
11741274
this.searchSources = builder.searchSources;
11751275
this.slrAuthorized = builder.slrAuthorized;
11761276
this.userInfo = builder.userInfo;
@@ -1214,6 +1314,13 @@ public IntelligentSearchConfig getIntelligentSearchConfig() {
12141314
return this.intelligentSearchConfig;
12151315
}
12161316

1317+
/**
1318+
* @return searchSourceList
1319+
*/
1320+
public java.util.List<SearchSourceList> getSearchSourceList() {
1321+
return this.searchSourceList;
1322+
}
1323+
12171324
/**
12181325
* @return searchSources
12191326
*/
@@ -1254,6 +1361,7 @@ public static final class Builder {
12541361
private ConsoleConfig consoleConfig;
12551362
private java.util.Map<String, ?> generalConfigMap;
12561363
private IntelligentSearchConfig intelligentSearchConfig;
1364+
private java.util.List<SearchSourceList> searchSourceList;
12571365
private java.util.List<DataSearchSources> searchSources;
12581366
private Boolean slrAuthorized;
12591367
private UserInfo userInfo;
@@ -1268,6 +1376,7 @@ private Builder(Data model) {
12681376
this.consoleConfig = model.consoleConfig;
12691377
this.generalConfigMap = model.generalConfigMap;
12701378
this.intelligentSearchConfig = model.intelligentSearchConfig;
1379+
this.searchSourceList = model.searchSourceList;
12711380
this.searchSources = model.searchSources;
12721381
this.slrAuthorized = model.slrAuthorized;
12731382
this.userInfo = model.userInfo;
@@ -1307,6 +1416,14 @@ public Builder intelligentSearchConfig(IntelligentSearchConfig intelligentSearch
13071416
return this;
13081417
}
13091418

1419+
/**
1420+
* SearchSourceList.
1421+
*/
1422+
public Builder searchSourceList(java.util.List<SearchSourceList> searchSourceList) {
1423+
this.searchSourceList = searchSourceList;
1424+
return this;
1425+
}
1426+
13101427
/**
13111428
* SearchSources.
13121429
*/

0 commit comments

Comments
 (0)