Skip to content

Commit 8abbeda

Browse files
author
BitsAdmin
committed
Merge branch 'apig-Java-2021-03-03-online-1285-2025_06_13_10_19_04' into 'integration_2025-06-19_956533420802'
feat: [development task] apig-1285-Java (1359913) See merge request iaasng/volcengine-java-sdk!539
2 parents c159c96 + 7e79894 commit 8abbeda

File tree

235 files changed

+38824
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

235 files changed

+38824
-1
lines changed

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,5 +289,6 @@
289289
<module>volcengine-java-sdk-dbw</module>
290290
<module>volcengine-java-sdk-coze20250601</module>
291291
<module>volcengine-java-sdk-aiotvideo</module>
292+
<module>volcengine-java-sdk-apig</module>
292293
</modules>
293294
</project>

volcengine-java-sdk-apig/pom.xml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<parent>
4+
<artifactId>volcengine-java-sdk</artifactId>
5+
<groupId>com.volcengine</groupId>
6+
<version>0.2.18</version>
7+
<relativePath>../pom.xml</relativePath>
8+
</parent>
9+
<modelVersion>4.0.0</modelVersion>
10+
<artifactId>volcengine-java-sdk-apig</artifactId>
11+
<dependencies>
12+
<dependency>
13+
<groupId>com.volcengine</groupId>
14+
<artifactId>volcengine-java-sdk-core</artifactId>
15+
<version>${project.version}</version>
16+
</dependency>
17+
</dependencies>
18+
<build>
19+
<plugins>
20+
<plugin>
21+
<groupId>org.apache.maven.plugins</groupId>
22+
<artifactId>maven-source-plugin</artifactId>
23+
<configuration>
24+
<excludes>
25+
<exclude>com/volcengine/apig/examples/**</exclude>
26+
</excludes>
27+
</configuration>
28+
</plugin>
29+
<plugin>
30+
<groupId>org.apache.maven.plugins</groupId>
31+
<artifactId>maven-jar-plugin</artifactId>
32+
<configuration>
33+
<excludes>
34+
<exclude>com/volcengine/apig/examples/**</exclude>
35+
</excludes>
36+
</configuration>
37+
</plugin>
38+
</plugins>
39+
</build>
40+
</project>

volcengine-java-sdk-apig/src/main/java/com/volcengine/apig/ApigApi.java

Lines changed: 4592 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 215 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,215 @@
1+
/*
2+
* apig
3+
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
4+
*
5+
* OpenAPI spec version: common-version
6+
*
7+
*
8+
* NOTE: This class is auto generated by the swagger code generator program.
9+
* https://github.com/swagger-api/swagger-codegen.git
10+
* Do not edit the class manually.
11+
*/
12+
13+
package com.volcengine.apig.model;
14+
15+
import java.util.Objects;
16+
import java.util.Arrays;
17+
import com.google.gson.TypeAdapter;
18+
import com.google.gson.annotations.JsonAdapter;
19+
import com.google.gson.annotations.SerializedName;
20+
import com.google.gson.stream.JsonReader;
21+
import com.google.gson.stream.JsonWriter;
22+
import com.volcengine.apig.model.CustomBodyParamsForCreateUpstreamInput;
23+
import com.volcengine.apig.model.CustomHeaderParamsForCreateUpstreamInput;
24+
import com.volcengine.apig.model.CustomModelServiceForCreateUpstreamInput;
25+
import io.swagger.v3.oas.annotations.media.Schema;
26+
import java.io.IOException;
27+
import javax.validation.constraints.*;
28+
import javax.validation.Valid;
29+
/**
30+
* AIProviderForCreateUpstreamInput
31+
*/
32+
33+
34+
35+
public class AIProviderForCreateUpstreamInput {
36+
@SerializedName("BaseUrl")
37+
private String baseUrl = null;
38+
39+
@SerializedName("CustomBodyParams")
40+
private CustomBodyParamsForCreateUpstreamInput customBodyParams = null;
41+
42+
@SerializedName("CustomHeaderParams")
43+
private CustomHeaderParamsForCreateUpstreamInput customHeaderParams = null;
44+
45+
@SerializedName("CustomModelService")
46+
private CustomModelServiceForCreateUpstreamInput customModelService = null;
47+
48+
@SerializedName("Name")
49+
private String name = null;
50+
51+
@SerializedName("Token")
52+
private String token = null;
53+
54+
public AIProviderForCreateUpstreamInput baseUrl(String baseUrl) {
55+
this.baseUrl = baseUrl;
56+
return this;
57+
}
58+
59+
/**
60+
* Get baseUrl
61+
* @return baseUrl
62+
**/
63+
@Schema(description = "")
64+
public String getBaseUrl() {
65+
return baseUrl;
66+
}
67+
68+
public void setBaseUrl(String baseUrl) {
69+
this.baseUrl = baseUrl;
70+
}
71+
72+
public AIProviderForCreateUpstreamInput customBodyParams(CustomBodyParamsForCreateUpstreamInput customBodyParams) {
73+
this.customBodyParams = customBodyParams;
74+
return this;
75+
}
76+
77+
/**
78+
* Get customBodyParams
79+
* @return customBodyParams
80+
**/
81+
@Valid
82+
@Schema(description = "")
83+
public CustomBodyParamsForCreateUpstreamInput getCustomBodyParams() {
84+
return customBodyParams;
85+
}
86+
87+
public void setCustomBodyParams(CustomBodyParamsForCreateUpstreamInput customBodyParams) {
88+
this.customBodyParams = customBodyParams;
89+
}
90+
91+
public AIProviderForCreateUpstreamInput customHeaderParams(CustomHeaderParamsForCreateUpstreamInput customHeaderParams) {
92+
this.customHeaderParams = customHeaderParams;
93+
return this;
94+
}
95+
96+
/**
97+
* Get customHeaderParams
98+
* @return customHeaderParams
99+
**/
100+
@Valid
101+
@Schema(description = "")
102+
public CustomHeaderParamsForCreateUpstreamInput getCustomHeaderParams() {
103+
return customHeaderParams;
104+
}
105+
106+
public void setCustomHeaderParams(CustomHeaderParamsForCreateUpstreamInput customHeaderParams) {
107+
this.customHeaderParams = customHeaderParams;
108+
}
109+
110+
public AIProviderForCreateUpstreamInput customModelService(CustomModelServiceForCreateUpstreamInput customModelService) {
111+
this.customModelService = customModelService;
112+
return this;
113+
}
114+
115+
/**
116+
* Get customModelService
117+
* @return customModelService
118+
**/
119+
@Valid
120+
@Schema(description = "")
121+
public CustomModelServiceForCreateUpstreamInput getCustomModelService() {
122+
return customModelService;
123+
}
124+
125+
public void setCustomModelService(CustomModelServiceForCreateUpstreamInput customModelService) {
126+
this.customModelService = customModelService;
127+
}
128+
129+
public AIProviderForCreateUpstreamInput name(String name) {
130+
this.name = name;
131+
return this;
132+
}
133+
134+
/**
135+
* Get name
136+
* @return name
137+
**/
138+
@Schema(description = "")
139+
public String getName() {
140+
return name;
141+
}
142+
143+
public void setName(String name) {
144+
this.name = name;
145+
}
146+
147+
public AIProviderForCreateUpstreamInput token(String token) {
148+
this.token = token;
149+
return this;
150+
}
151+
152+
/**
153+
* Get token
154+
* @return token
155+
**/
156+
@Schema(description = "")
157+
public String getToken() {
158+
return token;
159+
}
160+
161+
public void setToken(String token) {
162+
this.token = token;
163+
}
164+
165+
166+
@Override
167+
public boolean equals(java.lang.Object o) {
168+
if (this == o) {
169+
return true;
170+
}
171+
if (o == null || getClass() != o.getClass()) {
172+
return false;
173+
}
174+
AIProviderForCreateUpstreamInput aiProviderForCreateUpstreamInput = (AIProviderForCreateUpstreamInput) o;
175+
return Objects.equals(this.baseUrl, aiProviderForCreateUpstreamInput.baseUrl) &&
176+
Objects.equals(this.customBodyParams, aiProviderForCreateUpstreamInput.customBodyParams) &&
177+
Objects.equals(this.customHeaderParams, aiProviderForCreateUpstreamInput.customHeaderParams) &&
178+
Objects.equals(this.customModelService, aiProviderForCreateUpstreamInput.customModelService) &&
179+
Objects.equals(this.name, aiProviderForCreateUpstreamInput.name) &&
180+
Objects.equals(this.token, aiProviderForCreateUpstreamInput.token);
181+
}
182+
183+
@Override
184+
public int hashCode() {
185+
return Objects.hash(baseUrl, customBodyParams, customHeaderParams, customModelService, name, token);
186+
}
187+
188+
189+
@Override
190+
public String toString() {
191+
StringBuilder sb = new StringBuilder();
192+
sb.append("class AIProviderForCreateUpstreamInput {\n");
193+
194+
sb.append(" baseUrl: ").append(toIndentedString(baseUrl)).append("\n");
195+
sb.append(" customBodyParams: ").append(toIndentedString(customBodyParams)).append("\n");
196+
sb.append(" customHeaderParams: ").append(toIndentedString(customHeaderParams)).append("\n");
197+
sb.append(" customModelService: ").append(toIndentedString(customModelService)).append("\n");
198+
sb.append(" name: ").append(toIndentedString(name)).append("\n");
199+
sb.append(" token: ").append(toIndentedString(token)).append("\n");
200+
sb.append("}");
201+
return sb.toString();
202+
}
203+
204+
/**
205+
* Convert the given object to string with each line indented by 4 spaces
206+
* (except the first line).
207+
*/
208+
private String toIndentedString(java.lang.Object o) {
209+
if (o == null) {
210+
return "null";
211+
}
212+
return o.toString().replace("\n", "\n ");
213+
}
214+
215+
}

0 commit comments

Comments
 (0)