Skip to content

Commit 2d1cc26

Browse files
committed
Generated 2025-07-07 for AnyTrans.
1 parent 84465b3 commit 2d1cc26

16 files changed

+1401
-85
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-11-26 Version: 1.0.1
2+
- Generated 2025-07-07 for `AnyTrans`.
3+
14
2025-09-22 Version: 1.0.0
25
- Generated 2025-07-07 for `AnyTrans`.
36

aliyun-java-sdk-anytrans/pom.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>com.aliyun</groupId>
55
<artifactId>aliyun-java-sdk-anytrans</artifactId>
66
<packaging>jar</packaging>
7-
<version>1.0.0</version>
7+
<version>1.0.1</version>
88
<name>aliyun-java-sdk-anytrans</name>
99
<url>http://www.aliyun.com</url>
1010
<description>Aliyun Open API SDK for Java
@@ -106,12 +106,11 @@ http://www.aliyun.com</description>
106106
<plugin>
107107
<groupId>org.sonatype.central</groupId>
108108
<artifactId>central-publishing-maven-plugin</artifactId>
109-
<version>0.8.0</version>
109+
<version>0.9.0</version>
110110
<extensions>true</extensions>
111111
<configuration>
112112
<publishingServerId>central</publishingServerId>
113113
<autoPublish>true</autoPublish>
114-
<waitUntil>published</waitUntil>
115114
</configuration>
116115
</plugin>
117116
</plugins>
Lines changed: 318 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,318 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.anytrans.model.v20250707;
16+
17+
import com.aliyuncs.RoaAcsRequest;
18+
import java.util.List;
19+
import java.util.Map;
20+
import com.google.gson.Gson;
21+
import com.google.gson.annotations.SerializedName;
22+
import com.aliyuncs.http.ProtocolType;
23+
import com.aliyuncs.http.MethodType;
24+
25+
/**
26+
* @author auto create
27+
* @version
28+
*/
29+
public class BatchTranslateForHtmlRequest extends RoaAcsRequest<BatchTranslateForHtmlResponse> {
30+
31+
32+
@SerializedName("ext")
33+
private Ext ext;
34+
35+
private String sourceLanguage;
36+
37+
private String format;
38+
39+
private String scene;
40+
41+
private String appName;
42+
43+
private String targetLanguage;
44+
45+
@SerializedName("text")
46+
private Map<String,String> text;
47+
48+
private String workspaceId;
49+
public BatchTranslateForHtmlRequest() {
50+
super("AnyTrans", "2025-07-07", "BatchTranslateForHtml");
51+
setProtocol(ProtocolType.HTTPS);
52+
setUriPattern("/anytrans/translate/batchForHtml");
53+
setMethod(MethodType.POST);
54+
}
55+
56+
public Ext getExt() {
57+
return this.ext;
58+
}
59+
60+
public void setExt(Ext ext) {
61+
this.ext = ext;
62+
if (ext != null) {
63+
putBodyParameter("ext" , new Gson().toJson(ext));
64+
}
65+
}
66+
67+
public String getSourceLanguage() {
68+
return this.sourceLanguage;
69+
}
70+
71+
public void setSourceLanguage(String sourceLanguage) {
72+
this.sourceLanguage = sourceLanguage;
73+
if(sourceLanguage != null){
74+
putBodyParameter("sourceLanguage", sourceLanguage);
75+
}
76+
}
77+
78+
public String getFormat() {
79+
return this.format;
80+
}
81+
82+
public void setFormat(String format) {
83+
this.format = format;
84+
if(format != null){
85+
putBodyParameter("format", format);
86+
}
87+
}
88+
89+
public String getScene() {
90+
return this.scene;
91+
}
92+
93+
public void setScene(String scene) {
94+
this.scene = scene;
95+
if(scene != null){
96+
putBodyParameter("scene", scene);
97+
}
98+
}
99+
100+
public String getAppName() {
101+
return this.appName;
102+
}
103+
104+
public void setAppName(String appName) {
105+
this.appName = appName;
106+
if(appName != null){
107+
putBodyParameter("appName", appName);
108+
}
109+
}
110+
111+
public String getTargetLanguage() {
112+
return this.targetLanguage;
113+
}
114+
115+
public void setTargetLanguage(String targetLanguage) {
116+
this.targetLanguage = targetLanguage;
117+
if(targetLanguage != null){
118+
putBodyParameter("targetLanguage", targetLanguage);
119+
}
120+
}
121+
122+
public Map<String,String> getText() {
123+
return this.text;
124+
}
125+
126+
public void setText(Map<String,String> text) {
127+
this.text = text;
128+
if (text != null) {
129+
putBodyParameter("text" , new Gson().toJson(text));
130+
}
131+
}
132+
133+
public String getWorkspaceId() {
134+
return this.workspaceId;
135+
}
136+
137+
public void setWorkspaceId(String workspaceId) {
138+
this.workspaceId = workspaceId;
139+
if(workspaceId != null){
140+
putBodyParameter("workspaceId", workspaceId);
141+
}
142+
}
143+
144+
public static class Ext {
145+
146+
@SerializedName("sensitives")
147+
private List<String> sensitives;
148+
149+
@SerializedName("terminologies")
150+
private List<TerminologiesItem> terminologies;
151+
152+
@SerializedName("textTransform")
153+
private TextTransform textTransform;
154+
155+
@SerializedName("examples")
156+
private List<ExamplesItem> examples;
157+
158+
@SerializedName("config")
159+
private Config config;
160+
161+
@SerializedName("domainHint")
162+
private String domainHint;
163+
164+
public List<String> getSensitives() {
165+
return this.sensitives;
166+
}
167+
168+
public void setSensitives(List<String> sensitives) {
169+
this.sensitives = sensitives;
170+
}
171+
172+
public List<TerminologiesItem> getTerminologies() {
173+
return this.terminologies;
174+
}
175+
176+
public void setTerminologies(List<TerminologiesItem> terminologies) {
177+
this.terminologies = terminologies;
178+
}
179+
180+
public TextTransform getTextTransform() {
181+
return this.textTransform;
182+
}
183+
184+
public void setTextTransform(TextTransform textTransform) {
185+
this.textTransform = textTransform;
186+
}
187+
188+
public List<ExamplesItem> getExamples() {
189+
return this.examples;
190+
}
191+
192+
public void setExamples(List<ExamplesItem> examples) {
193+
this.examples = examples;
194+
}
195+
196+
public Config getConfig() {
197+
return this.config;
198+
}
199+
200+
public void setConfig(Config config) {
201+
this.config = config;
202+
}
203+
204+
public String getDomainHint() {
205+
return this.domainHint;
206+
}
207+
208+
public void setDomainHint(String domainHint) {
209+
this.domainHint = domainHint;
210+
}
211+
212+
public static class TerminologiesItem {
213+
214+
@SerializedName("tgt")
215+
private String tgt;
216+
217+
@SerializedName("src")
218+
private String src;
219+
220+
public String getTgt() {
221+
return this.tgt;
222+
}
223+
224+
public void setTgt(String tgt) {
225+
this.tgt = tgt;
226+
}
227+
228+
public String getSrc() {
229+
return this.src;
230+
}
231+
232+
public void setSrc(String src) {
233+
this.src = src;
234+
}
235+
}
236+
237+
public static class TextTransform {
238+
239+
@SerializedName("toLower")
240+
private Boolean toLower;
241+
242+
@SerializedName("toUpper")
243+
private Boolean toUpper;
244+
245+
@SerializedName("toTitle")
246+
private Boolean toTitle;
247+
248+
public Boolean getToLower() {
249+
return this.toLower;
250+
}
251+
252+
public void setToLower(Boolean toLower) {
253+
this.toLower = toLower;
254+
}
255+
256+
public Boolean getToUpper() {
257+
return this.toUpper;
258+
}
259+
260+
public void setToUpper(Boolean toUpper) {
261+
this.toUpper = toUpper;
262+
}
263+
264+
public Boolean getToTitle() {
265+
return this.toTitle;
266+
}
267+
268+
public void setToTitle(Boolean toTitle) {
269+
this.toTitle = toTitle;
270+
}
271+
}
272+
273+
public static class ExamplesItem {
274+
275+
@SerializedName("tgt")
276+
private String tgt;
277+
278+
@SerializedName("src")
279+
private String src;
280+
281+
public String getTgt() {
282+
return this.tgt;
283+
}
284+
285+
public void setTgt(String tgt) {
286+
this.tgt = tgt;
287+
}
288+
289+
public String getSrc() {
290+
return this.src;
291+
}
292+
293+
public void setSrc(String src) {
294+
this.src = src;
295+
}
296+
}
297+
298+
public static class Config {
299+
300+
@SerializedName("skipCsiCheck")
301+
private Boolean skipCsiCheck;
302+
303+
public Boolean getSkipCsiCheck() {
304+
return this.skipCsiCheck;
305+
}
306+
307+
public void setSkipCsiCheck(Boolean skipCsiCheck) {
308+
this.skipCsiCheck = skipCsiCheck;
309+
}
310+
}
311+
}
312+
313+
@Override
314+
public Class<BatchTranslateForHtmlResponse> getResponseClass() {
315+
return BatchTranslateForHtmlResponse.class;
316+
}
317+
318+
}

0 commit comments

Comments
 (0)