Skip to content

Commit 59f46e3

Browse files
author
BitsAdmin
committed
Merge branch 'vefaas-Java-2024-06-06-online-1034-2025_03_18_18_00_53' into 'integration_2025-03-20_797631155970'
feat: [development task] vefaas-1034-Java (1094078) See merge request iaasng/volcengine-java-sdk!416
2 parents b4c88db + 6da176c commit 59f46e3

File tree

54 files changed

+7178
-1871
lines changed

Some content is hidden

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

54 files changed

+7178
-1871
lines changed

volcengine-java-sdk-vefaas/src/main/java/com/volcengine/vefaas/VefaasApi.java

Lines changed: 1265 additions & 257 deletions
Large diffs are not rendered by default.

volcengine-java-sdk-vefaas/src/main/java/com/volcengine/vefaas/model/CreateFunctionRequest.java

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import com.volcengine.vefaas.model.EnvForCreateFunctionInput;
2323
import com.volcengine.vefaas.model.NasStorageForCreateFunctionInput;
2424
import com.volcengine.vefaas.model.SourceAccessConfigForCreateFunctionInput;
25+
import com.volcengine.vefaas.model.TagForCreateFunctionInput;
2526
import com.volcengine.vefaas.model.TlsConfigForCreateFunctionInput;
2627
import com.volcengine.vefaas.model.TosMountConfigForCreateFunctionInput;
2728
import com.volcengine.vefaas.model.VpcConfigForCreateFunctionInput;
@@ -89,6 +90,9 @@ public class CreateFunctionRequest {
8990
@SerializedName("SourceType")
9091
private String sourceType = null;
9192

93+
@SerializedName("Tags")
94+
private List<TagForCreateFunctionInput> tags = null;
95+
9296
@SerializedName("TlsConfig")
9397
private TlsConfigForCreateFunctionInput tlsConfig = null;
9498

@@ -417,6 +421,33 @@ public void setSourceType(String sourceType) {
417421
this.sourceType = sourceType;
418422
}
419423

424+
public CreateFunctionRequest tags(List<TagForCreateFunctionInput> tags) {
425+
this.tags = tags;
426+
return this;
427+
}
428+
429+
public CreateFunctionRequest addTagsItem(TagForCreateFunctionInput tagsItem) {
430+
if (this.tags == null) {
431+
this.tags = new ArrayList<TagForCreateFunctionInput>();
432+
}
433+
this.tags.add(tagsItem);
434+
return this;
435+
}
436+
437+
/**
438+
* Get tags
439+
* @return tags
440+
**/
441+
@Valid
442+
@Schema(description = "")
443+
public List<TagForCreateFunctionInput> getTags() {
444+
return tags;
445+
}
446+
447+
public void setTags(List<TagForCreateFunctionInput> tags) {
448+
this.tags = tags;
449+
}
450+
420451
public CreateFunctionRequest tlsConfig(TlsConfigForCreateFunctionInput tlsConfig) {
421452
this.tlsConfig = tlsConfig;
422453
return this;
@@ -501,14 +532,15 @@ public boolean equals(java.lang.Object o) {
501532
Objects.equals(this.source, createFunctionRequest.source) &&
502533
Objects.equals(this.sourceAccessConfig, createFunctionRequest.sourceAccessConfig) &&
503534
Objects.equals(this.sourceType, createFunctionRequest.sourceType) &&
535+
Objects.equals(this.tags, createFunctionRequest.tags) &&
504536
Objects.equals(this.tlsConfig, createFunctionRequest.tlsConfig) &&
505537
Objects.equals(this.tosMountConfig, createFunctionRequest.tosMountConfig) &&
506538
Objects.equals(this.vpcConfig, createFunctionRequest.vpcConfig);
507539
}
508540

509541
@Override
510542
public int hashCode() {
511-
return Objects.hash(command, cpuStrategy, description, envs, exclusiveMode, initializerSec, instanceType, maxConcurrency, memoryMB, name, nasStorage, projectName, requestTimeout, runtime, source, sourceAccessConfig, sourceType, tlsConfig, tosMountConfig, vpcConfig);
543+
return Objects.hash(command, cpuStrategy, description, envs, exclusiveMode, initializerSec, instanceType, maxConcurrency, memoryMB, name, nasStorage, projectName, requestTimeout, runtime, source, sourceAccessConfig, sourceType, tags, tlsConfig, tosMountConfig, vpcConfig);
512544
}
513545

514546

@@ -534,6 +566,7 @@ public String toString() {
534566
sb.append(" source: ").append(toIndentedString(source)).append("\n");
535567
sb.append(" sourceAccessConfig: ").append(toIndentedString(sourceAccessConfig)).append("\n");
536568
sb.append(" sourceType: ").append(toIndentedString(sourceType)).append("\n");
569+
sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
537570
sb.append(" tlsConfig: ").append(toIndentedString(tlsConfig)).append("\n");
538571
sb.append(" tosMountConfig: ").append(toIndentedString(tosMountConfig)).append("\n");
539572
sb.append(" vpcConfig: ").append(toIndentedString(vpcConfig)).append("\n");
Lines changed: 284 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,284 @@
1+
/*
2+
* vefaas
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.vefaas.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.vefaas.model.KafkaCredentialsForCreateKafkaTriggerInput;
23+
import io.swagger.v3.oas.annotations.media.Schema;
24+
import java.io.IOException;
25+
import javax.validation.constraints.*;
26+
import javax.validation.Valid;
27+
/**
28+
* CreateKafkaTriggerRequest
29+
*/
30+
31+
32+
33+
public class CreateKafkaTriggerRequest {
34+
@SerializedName("Description")
35+
private String description = null;
36+
37+
@SerializedName("Enabled")
38+
private Boolean enabled = null;
39+
40+
@SerializedName("FunctionId")
41+
private String functionId = null;
42+
43+
@SerializedName("KafkaCredentials")
44+
private KafkaCredentialsForCreateKafkaTriggerInput kafkaCredentials = null;
45+
46+
@SerializedName("MaximumRetryAttempts")
47+
private Integer maximumRetryAttempts = null;
48+
49+
@SerializedName("MqInstanceId")
50+
private String mqInstanceId = null;
51+
52+
@SerializedName("Name")
53+
private String name = null;
54+
55+
@SerializedName("StartingPosition")
56+
private String startingPosition = null;
57+
58+
@SerializedName("TopicName")
59+
private String topicName = null;
60+
61+
public CreateKafkaTriggerRequest description(String description) {
62+
this.description = description;
63+
return this;
64+
}
65+
66+
/**
67+
* Get description
68+
* @return description
69+
**/
70+
@Schema(description = "")
71+
public String getDescription() {
72+
return description;
73+
}
74+
75+
public void setDescription(String description) {
76+
this.description = description;
77+
}
78+
79+
public CreateKafkaTriggerRequest enabled(Boolean enabled) {
80+
this.enabled = enabled;
81+
return this;
82+
}
83+
84+
/**
85+
* Get enabled
86+
* @return enabled
87+
**/
88+
@Schema(description = "")
89+
public Boolean isEnabled() {
90+
return enabled;
91+
}
92+
93+
public void setEnabled(Boolean enabled) {
94+
this.enabled = enabled;
95+
}
96+
97+
public CreateKafkaTriggerRequest functionId(String functionId) {
98+
this.functionId = functionId;
99+
return this;
100+
}
101+
102+
/**
103+
* Get functionId
104+
* @return functionId
105+
**/
106+
@NotNull
107+
@Schema(required = true, description = "")
108+
public String getFunctionId() {
109+
return functionId;
110+
}
111+
112+
public void setFunctionId(String functionId) {
113+
this.functionId = functionId;
114+
}
115+
116+
public CreateKafkaTriggerRequest kafkaCredentials(KafkaCredentialsForCreateKafkaTriggerInput kafkaCredentials) {
117+
this.kafkaCredentials = kafkaCredentials;
118+
return this;
119+
}
120+
121+
/**
122+
* Get kafkaCredentials
123+
* @return kafkaCredentials
124+
**/
125+
@Valid
126+
@Schema(description = "")
127+
public KafkaCredentialsForCreateKafkaTriggerInput getKafkaCredentials() {
128+
return kafkaCredentials;
129+
}
130+
131+
public void setKafkaCredentials(KafkaCredentialsForCreateKafkaTriggerInput kafkaCredentials) {
132+
this.kafkaCredentials = kafkaCredentials;
133+
}
134+
135+
public CreateKafkaTriggerRequest maximumRetryAttempts(Integer maximumRetryAttempts) {
136+
this.maximumRetryAttempts = maximumRetryAttempts;
137+
return this;
138+
}
139+
140+
/**
141+
* Get maximumRetryAttempts
142+
* @return maximumRetryAttempts
143+
**/
144+
@Schema(description = "")
145+
public Integer getMaximumRetryAttempts() {
146+
return maximumRetryAttempts;
147+
}
148+
149+
public void setMaximumRetryAttempts(Integer maximumRetryAttempts) {
150+
this.maximumRetryAttempts = maximumRetryAttempts;
151+
}
152+
153+
public CreateKafkaTriggerRequest mqInstanceId(String mqInstanceId) {
154+
this.mqInstanceId = mqInstanceId;
155+
return this;
156+
}
157+
158+
/**
159+
* Get mqInstanceId
160+
* @return mqInstanceId
161+
**/
162+
@NotNull
163+
@Schema(required = true, description = "")
164+
public String getMqInstanceId() {
165+
return mqInstanceId;
166+
}
167+
168+
public void setMqInstanceId(String mqInstanceId) {
169+
this.mqInstanceId = mqInstanceId;
170+
}
171+
172+
public CreateKafkaTriggerRequest name(String name) {
173+
this.name = name;
174+
return this;
175+
}
176+
177+
/**
178+
* Get name
179+
* @return name
180+
**/
181+
@NotNull
182+
@Schema(required = true, description = "")
183+
public String getName() {
184+
return name;
185+
}
186+
187+
public void setName(String name) {
188+
this.name = name;
189+
}
190+
191+
public CreateKafkaTriggerRequest startingPosition(String startingPosition) {
192+
this.startingPosition = startingPosition;
193+
return this;
194+
}
195+
196+
/**
197+
* Get startingPosition
198+
* @return startingPosition
199+
**/
200+
@Schema(description = "")
201+
public String getStartingPosition() {
202+
return startingPosition;
203+
}
204+
205+
public void setStartingPosition(String startingPosition) {
206+
this.startingPosition = startingPosition;
207+
}
208+
209+
public CreateKafkaTriggerRequest topicName(String topicName) {
210+
this.topicName = topicName;
211+
return this;
212+
}
213+
214+
/**
215+
* Get topicName
216+
* @return topicName
217+
**/
218+
@NotNull
219+
@Schema(required = true, description = "")
220+
public String getTopicName() {
221+
return topicName;
222+
}
223+
224+
public void setTopicName(String topicName) {
225+
this.topicName = topicName;
226+
}
227+
228+
229+
@Override
230+
public boolean equals(java.lang.Object o) {
231+
if (this == o) {
232+
return true;
233+
}
234+
if (o == null || getClass() != o.getClass()) {
235+
return false;
236+
}
237+
CreateKafkaTriggerRequest createKafkaTriggerRequest = (CreateKafkaTriggerRequest) o;
238+
return Objects.equals(this.description, createKafkaTriggerRequest.description) &&
239+
Objects.equals(this.enabled, createKafkaTriggerRequest.enabled) &&
240+
Objects.equals(this.functionId, createKafkaTriggerRequest.functionId) &&
241+
Objects.equals(this.kafkaCredentials, createKafkaTriggerRequest.kafkaCredentials) &&
242+
Objects.equals(this.maximumRetryAttempts, createKafkaTriggerRequest.maximumRetryAttempts) &&
243+
Objects.equals(this.mqInstanceId, createKafkaTriggerRequest.mqInstanceId) &&
244+
Objects.equals(this.name, createKafkaTriggerRequest.name) &&
245+
Objects.equals(this.startingPosition, createKafkaTriggerRequest.startingPosition) &&
246+
Objects.equals(this.topicName, createKafkaTriggerRequest.topicName);
247+
}
248+
249+
@Override
250+
public int hashCode() {
251+
return Objects.hash(description, enabled, functionId, kafkaCredentials, maximumRetryAttempts, mqInstanceId, name, startingPosition, topicName);
252+
}
253+
254+
255+
@Override
256+
public String toString() {
257+
StringBuilder sb = new StringBuilder();
258+
sb.append("class CreateKafkaTriggerRequest {\n");
259+
260+
sb.append(" description: ").append(toIndentedString(description)).append("\n");
261+
sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n");
262+
sb.append(" functionId: ").append(toIndentedString(functionId)).append("\n");
263+
sb.append(" kafkaCredentials: ").append(toIndentedString(kafkaCredentials)).append("\n");
264+
sb.append(" maximumRetryAttempts: ").append(toIndentedString(maximumRetryAttempts)).append("\n");
265+
sb.append(" mqInstanceId: ").append(toIndentedString(mqInstanceId)).append("\n");
266+
sb.append(" name: ").append(toIndentedString(name)).append("\n");
267+
sb.append(" startingPosition: ").append(toIndentedString(startingPosition)).append("\n");
268+
sb.append(" topicName: ").append(toIndentedString(topicName)).append("\n");
269+
sb.append("}");
270+
return sb.toString();
271+
}
272+
273+
/**
274+
* Convert the given object to string with each line indented by 4 spaces
275+
* (except the first line).
276+
*/
277+
private String toIndentedString(java.lang.Object o) {
278+
if (o == null) {
279+
return "null";
280+
}
281+
return o.toString().replace("\n", "\n ");
282+
}
283+
284+
}

0 commit comments

Comments
 (0)