diff --git a/quanmiaolightapp-20240801/ChangeLog.txt b/quanmiaolightapp-20240801/ChangeLog.txt index f9713d4496..cded3cc0d2 100644 --- a/quanmiaolightapp-20240801/ChangeLog.txt +++ b/quanmiaolightapp-20240801/ChangeLog.txt @@ -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. diff --git a/quanmiaolightapp-20240801/pom.xml b/quanmiaolightapp-20240801/pom.xml index 9a8cf12682..dcb0345f23 100644 --- a/quanmiaolightapp-20240801/pom.xml +++ b/quanmiaolightapp-20240801/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.aliyun alibabacloud-quanmiaolightapp20240801 - 2.0.5 + 2.0.6 jar alibabacloud-quanmiaolightapp20240801 Alibaba Cloud QuanMiaoLightApp (20240801) Async SDK for Java diff --git a/quanmiaolightapp-20240801/src/main/java/com/aliyun/sdk/service/quanmiaolightapp20240801/AsyncClient.java b/quanmiaolightapp-20240801/src/main/java/com/aliyun/sdk/service/quanmiaolightapp20240801/AsyncClient.java index 7c641a9982..8223b38411 100644 --- a/quanmiaolightapp-20240801/src/main/java/com/aliyun/sdk/service/quanmiaolightapp20240801/AsyncClient.java +++ b/quanmiaolightapp-20240801/src/main/java/com/aliyun/sdk/service/quanmiaolightapp20240801/AsyncClient.java @@ -89,6 +89,16 @@ static AsyncClient create() { ResponseIterable runMarketingInformationWritingWithResponseIterable(RunMarketingInformationWritingRequest request); + /** + * @param request the request parameters of RunNetworkContentAudit RunNetworkContentAuditRequest + * @return RunNetworkContentAuditResponse + */ + CompletableFuture runNetworkContentAudit(RunNetworkContentAuditRequest request); + + CompletableFuture runNetworkContentAuditWithAsyncResponseHandler(RunNetworkContentAuditRequest request, AsyncResponseHandler responseHandler); + + ResponseIterable runNetworkContentAuditWithResponseIterable(RunNetworkContentAuditRequest request); + /** * @param request the request parameters of RunScriptChat RunScriptChatRequest * @return RunScriptChatResponse diff --git a/quanmiaolightapp-20240801/src/main/java/com/aliyun/sdk/service/quanmiaolightapp20240801/DefaultAsyncClient.java b/quanmiaolightapp-20240801/src/main/java/com/aliyun/sdk/service/quanmiaolightapp20240801/DefaultAsyncClient.java index 8132f6c674..fe78de0613 100644 --- a/quanmiaolightapp-20240801/src/main/java/com/aliyun/sdk/service/quanmiaolightapp20240801/DefaultAsyncClient.java +++ b/quanmiaolightapp-20240801/src/main/java/com/aliyun/sdk/service/quanmiaolightapp20240801/DefaultAsyncClient.java @@ -302,6 +302,49 @@ public ResponseIterable runMarketing return new ResponseIterable<>(iterator); } + /** + * @param request the request parameters of RunNetworkContentAudit RunNetworkContentAuditRequest + * @return RunNetworkContentAuditResponse + */ + @Override + public CompletableFuture 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 future = new CompletableFuture<>(); + future.completeExceptionally(e); + return future; + } + } + + @Override + public CompletableFuture runNetworkContentAuditWithAsyncResponseHandler(RunNetworkContentAuditRequest request, AsyncResponseHandler 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 future = new CompletableFuture<>(); + future.completeExceptionally(e); + return future; + } + } + + @Override + public ResponseIterable 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 diff --git a/quanmiaolightapp-20240801/src/main/java/com/aliyun/sdk/service/quanmiaolightapp20240801/models/RunNetworkContentAuditRequest.java b/quanmiaolightapp-20240801/src/main/java/com/aliyun/sdk/service/quanmiaolightapp20240801/models/RunNetworkContentAuditRequest.java new file mode 100644 index 0000000000..e1afdf9a86 --- /dev/null +++ b/quanmiaolightapp-20240801/src/main/java/com/aliyun/sdk/service/quanmiaolightapp20240801/models/RunNetworkContentAuditRequest.java @@ -0,0 +1,337 @@ +// This file is auto-generated, don't edit it. Thanks. +package com.aliyun.sdk.service.quanmiaolightapp20240801.models; + +import com.aliyun.sdk.gateway.pop.*; +import darabonba.core.*; +import darabonba.core.async.*; +import darabonba.core.sync.*; +import darabonba.core.client.*; +import darabonba.core.RequestModel; +import darabonba.core.TeaModel; +import com.aliyun.sdk.gateway.pop.models.*; + +/** + * + * {@link RunNetworkContentAuditRequest} extends {@link RequestModel} + * + *

RunNetworkContentAuditRequest

+ */ +public class RunNetworkContentAuditRequest extends Request { + @com.aliyun.core.annotation.Host + @com.aliyun.core.annotation.NameInMap("regionId") + private String regionId; + + @com.aliyun.core.annotation.Path + @com.aliyun.core.annotation.NameInMap("workspaceId") + @com.aliyun.core.annotation.Validation(required = true) + private String workspaceId; + + @com.aliyun.core.annotation.Body + @com.aliyun.core.annotation.NameInMap("businessType") + private String businessType; + + @com.aliyun.core.annotation.Body + @com.aliyun.core.annotation.NameInMap("content") + @com.aliyun.core.annotation.Validation(required = true) + private String content; + + @com.aliyun.core.annotation.Body + @com.aliyun.core.annotation.NameInMap("extraInfo") + private String extraInfo; + + @com.aliyun.core.annotation.Body + @com.aliyun.core.annotation.NameInMap("modelId") + private String modelId; + + @com.aliyun.core.annotation.Body + @com.aliyun.core.annotation.NameInMap("outputFormat") + private String outputFormat; + + @com.aliyun.core.annotation.Body + @com.aliyun.core.annotation.NameInMap("tags") + private java.util.List tags; + + @com.aliyun.core.annotation.Body + @com.aliyun.core.annotation.NameInMap("taskDescription") + private String taskDescription; + + private RunNetworkContentAuditRequest(Builder builder) { + super(builder); + this.regionId = builder.regionId; + this.workspaceId = builder.workspaceId; + this.businessType = builder.businessType; + this.content = builder.content; + this.extraInfo = builder.extraInfo; + this.modelId = builder.modelId; + this.outputFormat = builder.outputFormat; + this.tags = builder.tags; + this.taskDescription = builder.taskDescription; + } + + public static Builder builder() { + return new Builder(); + } + + public static RunNetworkContentAuditRequest create() { + return builder().build(); + } + + @Override + public Builder toBuilder() { + return new Builder(this); + } + + /** + * @return regionId + */ + public String getRegionId() { + return this.regionId; + } + + /** + * @return workspaceId + */ + public String getWorkspaceId() { + return this.workspaceId; + } + + /** + * @return businessType + */ + public String getBusinessType() { + return this.businessType; + } + + /** + * @return content + */ + public String getContent() { + return this.content; + } + + /** + * @return extraInfo + */ + public String getExtraInfo() { + return this.extraInfo; + } + + /** + * @return modelId + */ + public String getModelId() { + return this.modelId; + } + + /** + * @return outputFormat + */ + public String getOutputFormat() { + return this.outputFormat; + } + + /** + * @return tags + */ + public java.util.List getTags() { + return this.tags; + } + + /** + * @return taskDescription + */ + public String getTaskDescription() { + return this.taskDescription; + } + + public static final class Builder extends Request.Builder { + private String regionId; + private String workspaceId; + private String businessType; + private String content; + private String extraInfo; + private String modelId; + private String outputFormat; + private java.util.List tags; + private String taskDescription; + + private Builder() { + super(); + } + + private Builder(RunNetworkContentAuditRequest request) { + super(request); + this.regionId = request.regionId; + this.workspaceId = request.workspaceId; + this.businessType = request.businessType; + this.content = request.content; + this.extraInfo = request.extraInfo; + this.modelId = request.modelId; + this.outputFormat = request.outputFormat; + this.tags = request.tags; + this.taskDescription = request.taskDescription; + } + + /** + * regionId. + */ + public Builder regionId(String regionId) { + this.putHostParameter("regionId", regionId); + this.regionId = regionId; + return this; + } + + /** + *

This parameter is required.

+ * + * example: + *

llm-xx

+ */ + public Builder workspaceId(String workspaceId) { + this.putPathParameter("workspaceId", workspaceId); + this.workspaceId = workspaceId; + return this; + } + + /** + * businessType. + */ + public Builder businessType(String businessType) { + this.putBodyParameter("businessType", businessType); + this.businessType = businessType; + return this; + } + + /** + *

This parameter is required.

+ * + * example: + *

待分析文本

+ */ + public Builder content(String content) { + this.putBodyParameter("content", content); + this.content = content; + return this; + } + + /** + * extraInfo. + */ + public Builder extraInfo(String extraInfo) { + this.putBodyParameter("extraInfo", extraInfo); + this.extraInfo = extraInfo; + return this; + } + + /** + * modelId. + */ + public Builder modelId(String modelId) { + this.putBodyParameter("modelId", modelId); + this.modelId = modelId; + return this; + } + + /** + * outputFormat. + */ + public Builder outputFormat(String outputFormat) { + this.putBodyParameter("outputFormat", outputFormat); + this.outputFormat = outputFormat; + return this; + } + + /** + * tags. + */ + public Builder tags(java.util.List tags) { + String tagsShrink = shrink(tags, "tags", "json"); + this.putBodyParameter("tags", tagsShrink); + this.tags = tags; + return this; + } + + /** + * taskDescription. + */ + public Builder taskDescription(String taskDescription) { + this.putBodyParameter("taskDescription", taskDescription); + this.taskDescription = taskDescription; + return this; + } + + @Override + public RunNetworkContentAuditRequest build() { + return new RunNetworkContentAuditRequest(this); + } + + } + + /** + * + * {@link RunNetworkContentAuditRequest} extends {@link TeaModel} + * + *

RunNetworkContentAuditRequest

+ */ + public static class Tags extends TeaModel { + @com.aliyun.core.annotation.NameInMap("tagDefinePrompt") + private String tagDefinePrompt; + + @com.aliyun.core.annotation.NameInMap("tagName") + private String tagName; + + private Tags(Builder builder) { + this.tagDefinePrompt = builder.tagDefinePrompt; + this.tagName = builder.tagName; + } + + public static Builder builder() { + return new Builder(); + } + + public static Tags create() { + return builder().build(); + } + + /** + * @return tagDefinePrompt + */ + public String getTagDefinePrompt() { + return this.tagDefinePrompt; + } + + /** + * @return tagName + */ + public String getTagName() { + return this.tagName; + } + + public static final class Builder { + private String tagDefinePrompt; + private String tagName; + + /** + * tagDefinePrompt. + */ + public Builder tagDefinePrompt(String tagDefinePrompt) { + this.tagDefinePrompt = tagDefinePrompt; + return this; + } + + /** + * tagName. + */ + public Builder tagName(String tagName) { + this.tagName = tagName; + return this; + } + + public Tags build() { + return new Tags(this); + } + + } + + } +} diff --git a/quanmiaolightapp-20240801/src/main/java/com/aliyun/sdk/service/quanmiaolightapp20240801/models/RunNetworkContentAuditResponse.java b/quanmiaolightapp-20240801/src/main/java/com/aliyun/sdk/service/quanmiaolightapp20240801/models/RunNetworkContentAuditResponse.java new file mode 100644 index 0000000000..a9e81bb68e --- /dev/null +++ b/quanmiaolightapp-20240801/src/main/java/com/aliyun/sdk/service/quanmiaolightapp20240801/models/RunNetworkContentAuditResponse.java @@ -0,0 +1,131 @@ +// This file is auto-generated, don't edit it. Thanks. +package com.aliyun.sdk.service.quanmiaolightapp20240801.models; + +import com.aliyun.sdk.gateway.pop.*; +import darabonba.core.*; +import darabonba.core.async.*; +import darabonba.core.sync.*; +import darabonba.core.client.*; +import darabonba.core.RequestModel; +import darabonba.core.TeaModel; +import com.aliyun.sdk.gateway.pop.models.*; + +/** + * + * {@link RunNetworkContentAuditResponse} extends {@link TeaModel} + * + *

RunNetworkContentAuditResponse

+ */ +public class RunNetworkContentAuditResponse extends Response { + @com.aliyun.core.annotation.NameInMap("headers") + private java.util.Map headers; + + @com.aliyun.core.annotation.NameInMap("statusCode") + private Integer statusCode; + + @com.aliyun.core.annotation.NameInMap("body") + private RunNetworkContentAuditResponseBody body; + + private RunNetworkContentAuditResponse(BuilderImpl builder) { + super(builder); + this.headers = builder.headers; + this.statusCode = builder.statusCode; + this.body = builder.body; + } + + public static RunNetworkContentAuditResponse create() { + return new BuilderImpl().build(); + } + + @Override + public Builder toBuilder() { + return new BuilderImpl(this); + } + + /** + * @return headers + */ + public java.util.Map getHeaders() { + return this.headers; + } + + /** + * @return statusCode + */ + public Integer getStatusCode() { + return this.statusCode; + } + + /** + * @return body + */ + public RunNetworkContentAuditResponseBody getBody() { + return this.body; + } + + public interface Builder extends Response.Builder { + + Builder headers(java.util.Map headers); + + Builder statusCode(Integer statusCode); + + Builder body(RunNetworkContentAuditResponseBody body); + + @Override + RunNetworkContentAuditResponse build(); + + } + + private static final class BuilderImpl + extends Response.BuilderImpl + implements Builder { + private java.util.Map headers; + private Integer statusCode; + private RunNetworkContentAuditResponseBody body; + + private BuilderImpl() { + super(); + } + + private BuilderImpl(RunNetworkContentAuditResponse response) { + super(response); + this.headers = response.headers; + this.statusCode = response.statusCode; + this.body = response.body; + } + + /** + * headers. + */ + @Override + public Builder headers(java.util.Map headers) { + this.headers = headers; + return this; + } + + /** + * statusCode. + */ + @Override + public Builder statusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * body. + */ + @Override + public Builder body(RunNetworkContentAuditResponseBody body) { + this.body = body; + return this; + } + + @Override + public RunNetworkContentAuditResponse build() { + return new RunNetworkContentAuditResponse(this); + } + + } + +} diff --git a/quanmiaolightapp-20240801/src/main/java/com/aliyun/sdk/service/quanmiaolightapp20240801/models/RunNetworkContentAuditResponseBody.java b/quanmiaolightapp-20240801/src/main/java/com/aliyun/sdk/service/quanmiaolightapp20240801/models/RunNetworkContentAuditResponseBody.java new file mode 100644 index 0000000000..09d2288f18 --- /dev/null +++ b/quanmiaolightapp-20240801/src/main/java/com/aliyun/sdk/service/quanmiaolightapp20240801/models/RunNetworkContentAuditResponseBody.java @@ -0,0 +1,450 @@ +// This file is auto-generated, don't edit it. Thanks. +package com.aliyun.sdk.service.quanmiaolightapp20240801.models; + +import com.aliyun.sdk.gateway.pop.*; +import darabonba.core.*; +import darabonba.core.async.*; +import darabonba.core.sync.*; +import darabonba.core.client.*; +import darabonba.core.RequestModel; +import darabonba.core.TeaModel; +import com.aliyun.sdk.gateway.pop.models.*; + +/** + * + * {@link RunNetworkContentAuditResponseBody} extends {@link TeaModel} + * + *

RunNetworkContentAuditResponseBody

+ */ +public class RunNetworkContentAuditResponseBody extends TeaModel { + @com.aliyun.core.annotation.NameInMap("header") + private RunNetworkContentAuditResponseBodyHeader header; + + @com.aliyun.core.annotation.NameInMap("payload") + private Payload payload; + + @com.aliyun.core.annotation.NameInMap("requestId") + private String requestId; + + private RunNetworkContentAuditResponseBody(Builder builder) { + this.header = builder.header; + this.payload = builder.payload; + this.requestId = builder.requestId; + } + + public static Builder builder() { + return new Builder(); + } + + public static RunNetworkContentAuditResponseBody create() { + return builder().build(); + } + + /** + * @return header + */ + public RunNetworkContentAuditResponseBodyHeader getHeader() { + return this.header; + } + + /** + * @return payload + */ + public Payload getPayload() { + return this.payload; + } + + /** + * @return requestId + */ + public String getRequestId() { + return this.requestId; + } + + public static final class Builder { + private RunNetworkContentAuditResponseBodyHeader header; + private Payload payload; + private String requestId; + + /** + * header. + */ + public Builder header(RunNetworkContentAuditResponseBodyHeader header) { + this.header = header; + return this; + } + + /** + * payload. + */ + public Builder payload(Payload payload) { + this.payload = payload; + return this; + } + + /** + *

Id of the request

+ * + * example: + *

5D0E915E-655D-59A8-894F-93873F73AAE5

+ */ + public Builder requestId(String requestId) { + this.requestId = requestId; + return this; + } + + public RunNetworkContentAuditResponseBody build() { + return new RunNetworkContentAuditResponseBody(this); + } + + } + + /** + * + * {@link RunNetworkContentAuditResponseBody} extends {@link TeaModel} + * + *

RunNetworkContentAuditResponseBody

+ */ + public static class RunNetworkContentAuditResponseBodyHeader extends TeaModel { + @com.aliyun.core.annotation.NameInMap("errorCode") + private String errorCode; + + @com.aliyun.core.annotation.NameInMap("errorMessage") + private String errorMessage; + + @com.aliyun.core.annotation.NameInMap("event") + private String event; + + @com.aliyun.core.annotation.NameInMap("sessionId") + private String sessionId; + + @com.aliyun.core.annotation.NameInMap("taskId") + private String taskId; + + @com.aliyun.core.annotation.NameInMap("traceId") + private String traceId; + + private RunNetworkContentAuditResponseBodyHeader(Builder builder) { + this.errorCode = builder.errorCode; + this.errorMessage = builder.errorMessage; + this.event = builder.event; + this.sessionId = builder.sessionId; + this.taskId = builder.taskId; + this.traceId = builder.traceId; + } + + public static Builder builder() { + return new Builder(); + } + + public static RunNetworkContentAuditResponseBodyHeader create() { + return builder().build(); + } + + /** + * @return errorCode + */ + public String getErrorCode() { + return this.errorCode; + } + + /** + * @return errorMessage + */ + public String getErrorMessage() { + return this.errorMessage; + } + + /** + * @return event + */ + public String getEvent() { + return this.event; + } + + /** + * @return sessionId + */ + public String getSessionId() { + return this.sessionId; + } + + /** + * @return taskId + */ + public String getTaskId() { + return this.taskId; + } + + /** + * @return traceId + */ + public String getTraceId() { + return this.traceId; + } + + public static final class Builder { + private String errorCode; + private String errorMessage; + private String event; + private String sessionId; + private String taskId; + private String traceId; + + /** + * errorCode. + */ + public Builder errorCode(String errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * errorMessage. + */ + public Builder errorMessage(String errorMessage) { + this.errorMessage = errorMessage; + return this; + } + + /** + * event. + */ + public Builder event(String event) { + this.event = event; + return this; + } + + /** + * sessionId. + */ + public Builder sessionId(String sessionId) { + this.sessionId = sessionId; + return this; + } + + /** + * taskId. + */ + public Builder taskId(String taskId) { + this.taskId = taskId; + return this; + } + + /** + * traceId. + */ + public Builder traceId(String traceId) { + this.traceId = traceId; + return this; + } + + public RunNetworkContentAuditResponseBodyHeader build() { + return new RunNetworkContentAuditResponseBodyHeader(this); + } + + } + + } + /** + * + * {@link RunNetworkContentAuditResponseBody} extends {@link TeaModel} + * + *

RunNetworkContentAuditResponseBody

+ */ + public static class Output extends TeaModel { + @com.aliyun.core.annotation.NameInMap("text") + private String text; + + private Output(Builder builder) { + this.text = builder.text; + } + + public static Builder builder() { + return new Builder(); + } + + public static Output create() { + return builder().build(); + } + + /** + * @return text + */ + public String getText() { + return this.text; + } + + public static final class Builder { + private String text; + + /** + * text. + */ + public Builder text(String text) { + this.text = text; + return this; + } + + public Output build() { + return new Output(this); + } + + } + + } + /** + * + * {@link RunNetworkContentAuditResponseBody} extends {@link TeaModel} + * + *

RunNetworkContentAuditResponseBody

+ */ + public static class Usage extends TeaModel { + @com.aliyun.core.annotation.NameInMap("inputTokens") + private Long inputTokens; + + @com.aliyun.core.annotation.NameInMap("outputTokens") + private Long outputTokens; + + @com.aliyun.core.annotation.NameInMap("totalTokens") + private Long totalTokens; + + private Usage(Builder builder) { + this.inputTokens = builder.inputTokens; + this.outputTokens = builder.outputTokens; + this.totalTokens = builder.totalTokens; + } + + public static Builder builder() { + return new Builder(); + } + + public static Usage create() { + return builder().build(); + } + + /** + * @return inputTokens + */ + public Long getInputTokens() { + return this.inputTokens; + } + + /** + * @return outputTokens + */ + public Long getOutputTokens() { + return this.outputTokens; + } + + /** + * @return totalTokens + */ + public Long getTotalTokens() { + return this.totalTokens; + } + + public static final class Builder { + private Long inputTokens; + private Long outputTokens; + private Long totalTokens; + + /** + * inputTokens. + */ + public Builder inputTokens(Long inputTokens) { + this.inputTokens = inputTokens; + return this; + } + + /** + * outputTokens. + */ + public Builder outputTokens(Long outputTokens) { + this.outputTokens = outputTokens; + return this; + } + + /** + * totalTokens. + */ + public Builder totalTokens(Long totalTokens) { + this.totalTokens = totalTokens; + return this; + } + + public Usage build() { + return new Usage(this); + } + + } + + } + /** + * + * {@link RunNetworkContentAuditResponseBody} extends {@link TeaModel} + * + *

RunNetworkContentAuditResponseBody

+ */ + public static class Payload extends TeaModel { + @com.aliyun.core.annotation.NameInMap("output") + private Output output; + + @com.aliyun.core.annotation.NameInMap("usage") + private Usage usage; + + private Payload(Builder builder) { + this.output = builder.output; + this.usage = builder.usage; + } + + public static Builder builder() { + return new Builder(); + } + + public static Payload create() { + return builder().build(); + } + + /** + * @return output + */ + public Output getOutput() { + return this.output; + } + + /** + * @return usage + */ + public Usage getUsage() { + return this.usage; + } + + public static final class Builder { + private Output output; + private Usage usage; + + /** + * output. + */ + public Builder output(Output output) { + this.output = output; + return this; + } + + /** + * usage. + */ + public Builder usage(Usage usage) { + this.usage = usage; + return this; + } + + public Payload build() { + return new Payload(this); + } + + } + + } +} diff --git a/quanmiaolightapp-20240801/src/main/java/com/aliyun/sdk/service/quanmiaolightapp20240801/models/RunNetworkContentAuditResponseBodyIterator.java b/quanmiaolightapp-20240801/src/main/java/com/aliyun/sdk/service/quanmiaolightapp20240801/models/RunNetworkContentAuditResponseBodyIterator.java new file mode 100644 index 0000000000..0928b05e39 --- /dev/null +++ b/quanmiaolightapp-20240801/src/main/java/com/aliyun/sdk/service/quanmiaolightapp20240801/models/RunNetworkContentAuditResponseBodyIterator.java @@ -0,0 +1,28 @@ +// This file is auto-generated, don't edit it. Thanks. +package com.aliyun.sdk.service.quanmiaolightapp20240801.models; + +import com.aliyun.core.utils.ParseUtil; +import darabonba.core.sse.SSEResponseIterator; +import darabonba.core.TeaModel; +import darabonba.core.utils.CommonUtil; + +import java.util.*; + +public class RunNetworkContentAuditResponseBodyIterator extends SSEResponseIterator { + + RunNetworkContentAuditResponseBodyIterator() { + } + + public static RunNetworkContentAuditResponseBodyIterator create() { + return new RunNetworkContentAuditResponseBodyIterator(); + } + + @Override + protected RunNetworkContentAuditResponseBody toModel(String data) { + RunNetworkContentAuditResponseBody result = RunNetworkContentAuditResponseBody.create(); + Map object = CommonUtil.assertAsMap(ParseUtil.parseJSON(data)); + TeaModel.toModel(object, result); + return result; + } + +} diff --git a/quanmiaolightapp-20240801/src/main/java/com/aliyun/sdk/service/quanmiaolightapp20240801/models/RunStyleWritingRequest.java b/quanmiaolightapp-20240801/src/main/java/com/aliyun/sdk/service/quanmiaolightapp20240801/models/RunStyleWritingRequest.java index 29f2726c31..77347918d0 100644 --- a/quanmiaolightapp-20240801/src/main/java/com/aliyun/sdk/service/quanmiaolightapp20240801/models/RunStyleWritingRequest.java +++ b/quanmiaolightapp-20240801/src/main/java/com/aliyun/sdk/service/quanmiaolightapp20240801/models/RunStyleWritingRequest.java @@ -28,12 +28,14 @@ public class RunStyleWritingRequest extends Request { @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("learningSamples") - @com.aliyun.core.annotation.Validation(required = true) private java.util.List learningSamples; + @com.aliyun.core.annotation.Body + @com.aliyun.core.annotation.NameInMap("processStage") + private String processStage; + @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("referenceMaterials") - @com.aliyun.core.annotation.Validation(required = true) private java.util.List referenceMaterials; @com.aliyun.core.annotation.Body @@ -41,9 +43,13 @@ public class RunStyleWritingRequest extends Request { @com.aliyun.core.annotation.Validation(maxLength = 1000) private String styleFeature; + @com.aliyun.core.annotation.Body + @com.aliyun.core.annotation.NameInMap("useSearch") + private Boolean useSearch; + @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("writingTheme") - @com.aliyun.core.annotation.Validation(required = true, maxLength = 1000) + @com.aliyun.core.annotation.Validation(maxLength = 2000) private String writingTheme; private RunStyleWritingRequest(Builder builder) { @@ -51,8 +57,10 @@ private RunStyleWritingRequest(Builder builder) { this.workspaceId = builder.workspaceId; this.regionId = builder.regionId; this.learningSamples = builder.learningSamples; + this.processStage = builder.processStage; this.referenceMaterials = builder.referenceMaterials; this.styleFeature = builder.styleFeature; + this.useSearch = builder.useSearch; this.writingTheme = builder.writingTheme; } @@ -90,6 +98,13 @@ public java.util.List getLearningSamples() { return this.learningSamples; } + /** + * @return processStage + */ + public String getProcessStage() { + return this.processStage; + } + /** * @return referenceMaterials */ @@ -104,6 +119,13 @@ public String getStyleFeature() { return this.styleFeature; } + /** + * @return useSearch + */ + public Boolean getUseSearch() { + return this.useSearch; + } + /** * @return writingTheme */ @@ -115,8 +137,10 @@ public static final class Builder extends Request.Builder learningSamples; + private String processStage; private java.util.List referenceMaterials; private String styleFeature; + private Boolean useSearch; private String writingTheme; private Builder() { @@ -128,8 +152,10 @@ private Builder(RunStyleWritingRequest request) { this.workspaceId = request.workspaceId; this.regionId = request.regionId; this.learningSamples = request.learningSamples; + this.processStage = request.processStage; this.referenceMaterials = request.referenceMaterials; this.styleFeature = request.styleFeature; + this.useSearch = request.useSearch; this.writingTheme = request.writingTheme; } @@ -155,7 +181,7 @@ public Builder regionId(String regionId) { } /** - *

This parameter is required.

+ * learningSamples. */ public Builder learningSamples(java.util.List learningSamples) { String learningSamplesShrink = shrink(learningSamples, "learningSamples", "json"); @@ -165,7 +191,16 @@ public Builder learningSamples(java.util.List learningSamples) { } /** - *

This parameter is required.

+ * processStage. + */ + public Builder processStage(String processStage) { + this.putBodyParameter("processStage", processStage); + this.processStage = processStage; + return this; + } + + /** + * referenceMaterials. */ public Builder referenceMaterials(java.util.List referenceMaterials) { String referenceMaterialsShrink = shrink(referenceMaterials, "referenceMaterials", "json"); @@ -184,7 +219,16 @@ public Builder styleFeature(String styleFeature) { } /** - *

This parameter is required.

+ * useSearch. + */ + public Builder useSearch(Boolean useSearch) { + this.putBodyParameter("useSearch", useSearch); + this.useSearch = useSearch; + return this; + } + + /** + * writingTheme. */ public Builder writingTheme(String writingTheme) { this.putBodyParameter("writingTheme", writingTheme);