Skip to content

Commit

Permalink
Generated java-async 2024-08-01 for QuanMiaoLightApp.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Jan 23, 2025
1 parent f46c555 commit ac033ab
Show file tree
Hide file tree
Showing 9 changed files with 1,053 additions and 7 deletions.
3 changes: 3 additions & 0 deletions quanmiaolightapp-20240801/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2025-01-23 Version: 2.0.6
- Generated java-async 2024-08-01 for QuanMiaoLightApp.

2025-01-16 Version: 2.0.5
- Generated java-async 2024-08-01 for QuanMiaoLightApp.

Expand Down
2 changes: 1 addition & 1 deletion quanmiaolightapp-20240801/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.aliyun</groupId>
<artifactId>alibabacloud-quanmiaolightapp20240801</artifactId>
<version>2.0.5</version>
<version>2.0.6</version>
<packaging>jar</packaging>
<name>alibabacloud-quanmiaolightapp20240801</name>
<description>Alibaba Cloud QuanMiaoLightApp (20240801) Async SDK for Java
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,16 @@ static AsyncClient create() {

ResponseIterable<RunMarketingInformationWritingResponseBody> runMarketingInformationWritingWithResponseIterable(RunMarketingInformationWritingRequest request);

/**
* @param request the request parameters of RunNetworkContentAudit RunNetworkContentAuditRequest
* @return RunNetworkContentAuditResponse
*/
CompletableFuture<RunNetworkContentAuditResponse> runNetworkContentAudit(RunNetworkContentAuditRequest request);

<ReturnT> CompletableFuture<ReturnT> runNetworkContentAuditWithAsyncResponseHandler(RunNetworkContentAuditRequest request, AsyncResponseHandler<RunNetworkContentAuditResponse, ReturnT> responseHandler);

ResponseIterable<RunNetworkContentAuditResponseBody> runNetworkContentAuditWithResponseIterable(RunNetworkContentAuditRequest request);

/**
* @param request the request parameters of RunScriptChat RunScriptChatRequest
* @return RunScriptChatResponse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,49 @@ public ResponseIterable<RunMarketingInformationWritingResponseBody> runMarketing
return new ResponseIterable<>(iterator);
}

/**
* @param request the request parameters of RunNetworkContentAudit RunNetworkContentAuditRequest
* @return RunNetworkContentAuditResponse
*/
@Override
public CompletableFuture<RunNetworkContentAuditResponse> runNetworkContentAudit(RunNetworkContentAuditRequest request) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("RunNetworkContentAudit").setMethod(HttpMethod.POST).setPathRegex("/{workspaceId}/quanmiao/lightapp/runNetworkContentAudit").setBodyType(BodyType.JSON).setBodyIsForm(true).setReqBodyType(BodyType.FORM).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(RunNetworkContentAuditResponse.create());
return this.handler.execute(params);
} catch (Exception e) {
CompletableFuture<RunNetworkContentAuditResponse> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}

@Override
public <ReturnT> CompletableFuture<ReturnT> runNetworkContentAuditWithAsyncResponseHandler(RunNetworkContentAuditRequest request, AsyncResponseHandler<RunNetworkContentAuditResponse, ReturnT> responseHandler) {
try {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("RunNetworkContentAudit").setMethod(HttpMethod.POST).setPathRegex("/{workspaceId}/quanmiao/lightapp/runNetworkContentAudit").setBodyType(BodyType.JSON).setBodyIsForm(true).setReqBodyType(BodyType.FORM).formModel(request);
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withResponseHandler(responseHandler).withOutput(RunNetworkContentAuditResponse.create());
return this.handler.execute(params)
.thenCompose((output) -> CompletableFuture.completedFuture(responseHandler.transform((RunNetworkContentAuditResponse)output)));
} catch (Exception e) {
CompletableFuture<ReturnT> future = new CompletableFuture<>();
future.completeExceptionally(e);
return future;
}
}

@Override
public ResponseIterable<RunNetworkContentAuditResponseBody> runNetworkContentAuditWithResponseIterable(RunNetworkContentAuditRequest request) {
this.handler.validateRequestModel(request);
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.SSE).setAction("RunNetworkContentAudit").setMethod(HttpMethod.POST).setPathRegex("/{workspaceId}/quanmiao/lightapp/runNetworkContentAudit").setBodyType(BodyType.JSON).setBodyIsForm(true).setReqBodyType(BodyType.FORM).formModel(request);
RunNetworkContentAuditResponseBodyIterator iterator = RunNetworkContentAuditResponseBodyIterator.create();
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withHttpResponseHandler(new SSEHttpResponseHandler(iterator));
this.handler.execute(params);
return new ResponseIterable<>(iterator);
}

/**
* @param request the request parameters of RunScriptChat RunScriptChatRequest
* @return RunScriptChatResponse
Expand Down
Loading

0 comments on commit ac033ab

Please sign in to comment.