Skip to content

Commit 49dbc69

Browse files
author
BitsAdmin
committed
Merge branch 'vefaas-Java-2024-06-06-online-1494-2025_08_28_15_53_21' into 'integration_2025-08-28_1042083431682'
feat: [development task] vefaas-1494-Java (1602212) See merge request iaasng/volcengine-java-sdk!630
2 parents 2660db1 + 65d193c commit 49dbc69

39 files changed

+5895
-79
lines changed

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

Lines changed: 1072 additions & 64 deletions
Large diffs are not rendered by default.
Lines changed: 232 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,232 @@
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 io.swagger.v3.oas.annotations.media.Schema;
23+
import java.io.IOException;
24+
import javax.validation.constraints.*;
25+
import javax.validation.Valid;
26+
/**
27+
* AccountResourceForGetFunctionResourceOutput
28+
*/
29+
30+
31+
32+
public class AccountResourceForGetFunctionResourceOutput {
33+
@SerializedName("Aailable")
34+
private Long aailable = null;
35+
36+
@SerializedName("AccountId")
37+
private String accountId = null;
38+
39+
@SerializedName("Allocated")
40+
private Long allocated = null;
41+
42+
@SerializedName("GpuMemoryAailable")
43+
private Long gpuMemoryAailable = null;
44+
45+
@SerializedName("GpuMemoryAllocated")
46+
private Long gpuMemoryAllocated = null;
47+
48+
@SerializedName("GpuMemoryTotal")
49+
private Long gpuMemoryTotal = null;
50+
51+
@SerializedName("Total")
52+
private Long total = null;
53+
54+
public AccountResourceForGetFunctionResourceOutput aailable(Long aailable) {
55+
this.aailable = aailable;
56+
return this;
57+
}
58+
59+
/**
60+
* Get aailable
61+
* @return aailable
62+
**/
63+
@Schema(description = "")
64+
public Long getAailable() {
65+
return aailable;
66+
}
67+
68+
public void setAailable(Long aailable) {
69+
this.aailable = aailable;
70+
}
71+
72+
public AccountResourceForGetFunctionResourceOutput accountId(String accountId) {
73+
this.accountId = accountId;
74+
return this;
75+
}
76+
77+
/**
78+
* Get accountId
79+
* @return accountId
80+
**/
81+
@Schema(description = "")
82+
public String getAccountId() {
83+
return accountId;
84+
}
85+
86+
public void setAccountId(String accountId) {
87+
this.accountId = accountId;
88+
}
89+
90+
public AccountResourceForGetFunctionResourceOutput allocated(Long allocated) {
91+
this.allocated = allocated;
92+
return this;
93+
}
94+
95+
/**
96+
* Get allocated
97+
* @return allocated
98+
**/
99+
@Schema(description = "")
100+
public Long getAllocated() {
101+
return allocated;
102+
}
103+
104+
public void setAllocated(Long allocated) {
105+
this.allocated = allocated;
106+
}
107+
108+
public AccountResourceForGetFunctionResourceOutput gpuMemoryAailable(Long gpuMemoryAailable) {
109+
this.gpuMemoryAailable = gpuMemoryAailable;
110+
return this;
111+
}
112+
113+
/**
114+
* Get gpuMemoryAailable
115+
* @return gpuMemoryAailable
116+
**/
117+
@Schema(description = "")
118+
public Long getGpuMemoryAailable() {
119+
return gpuMemoryAailable;
120+
}
121+
122+
public void setGpuMemoryAailable(Long gpuMemoryAailable) {
123+
this.gpuMemoryAailable = gpuMemoryAailable;
124+
}
125+
126+
public AccountResourceForGetFunctionResourceOutput gpuMemoryAllocated(Long gpuMemoryAllocated) {
127+
this.gpuMemoryAllocated = gpuMemoryAllocated;
128+
return this;
129+
}
130+
131+
/**
132+
* Get gpuMemoryAllocated
133+
* @return gpuMemoryAllocated
134+
**/
135+
@Schema(description = "")
136+
public Long getGpuMemoryAllocated() {
137+
return gpuMemoryAllocated;
138+
}
139+
140+
public void setGpuMemoryAllocated(Long gpuMemoryAllocated) {
141+
this.gpuMemoryAllocated = gpuMemoryAllocated;
142+
}
143+
144+
public AccountResourceForGetFunctionResourceOutput gpuMemoryTotal(Long gpuMemoryTotal) {
145+
this.gpuMemoryTotal = gpuMemoryTotal;
146+
return this;
147+
}
148+
149+
/**
150+
* Get gpuMemoryTotal
151+
* @return gpuMemoryTotal
152+
**/
153+
@Schema(description = "")
154+
public Long getGpuMemoryTotal() {
155+
return gpuMemoryTotal;
156+
}
157+
158+
public void setGpuMemoryTotal(Long gpuMemoryTotal) {
159+
this.gpuMemoryTotal = gpuMemoryTotal;
160+
}
161+
162+
public AccountResourceForGetFunctionResourceOutput total(Long total) {
163+
this.total = total;
164+
return this;
165+
}
166+
167+
/**
168+
* Get total
169+
* @return total
170+
**/
171+
@Schema(description = "")
172+
public Long getTotal() {
173+
return total;
174+
}
175+
176+
public void setTotal(Long total) {
177+
this.total = total;
178+
}
179+
180+
181+
@Override
182+
public boolean equals(java.lang.Object o) {
183+
if (this == o) {
184+
return true;
185+
}
186+
if (o == null || getClass() != o.getClass()) {
187+
return false;
188+
}
189+
AccountResourceForGetFunctionResourceOutput accountResourceForGetFunctionResourceOutput = (AccountResourceForGetFunctionResourceOutput) o;
190+
return Objects.equals(this.aailable, accountResourceForGetFunctionResourceOutput.aailable) &&
191+
Objects.equals(this.accountId, accountResourceForGetFunctionResourceOutput.accountId) &&
192+
Objects.equals(this.allocated, accountResourceForGetFunctionResourceOutput.allocated) &&
193+
Objects.equals(this.gpuMemoryAailable, accountResourceForGetFunctionResourceOutput.gpuMemoryAailable) &&
194+
Objects.equals(this.gpuMemoryAllocated, accountResourceForGetFunctionResourceOutput.gpuMemoryAllocated) &&
195+
Objects.equals(this.gpuMemoryTotal, accountResourceForGetFunctionResourceOutput.gpuMemoryTotal) &&
196+
Objects.equals(this.total, accountResourceForGetFunctionResourceOutput.total);
197+
}
198+
199+
@Override
200+
public int hashCode() {
201+
return Objects.hash(aailable, accountId, allocated, gpuMemoryAailable, gpuMemoryAllocated, gpuMemoryTotal, total);
202+
}
203+
204+
205+
@Override
206+
public String toString() {
207+
StringBuilder sb = new StringBuilder();
208+
sb.append("class AccountResourceForGetFunctionResourceOutput {\n");
209+
210+
sb.append(" aailable: ").append(toIndentedString(aailable)).append("\n");
211+
sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n");
212+
sb.append(" allocated: ").append(toIndentedString(allocated)).append("\n");
213+
sb.append(" gpuMemoryAailable: ").append(toIndentedString(gpuMemoryAailable)).append("\n");
214+
sb.append(" gpuMemoryAllocated: ").append(toIndentedString(gpuMemoryAllocated)).append("\n");
215+
sb.append(" gpuMemoryTotal: ").append(toIndentedString(gpuMemoryTotal)).append("\n");
216+
sb.append(" total: ").append(toIndentedString(total)).append("\n");
217+
sb.append("}");
218+
return sb.toString();
219+
}
220+
221+
/**
222+
* Convert the given object to string with each line indented by 4 spaces
223+
* (except the first line).
224+
*/
225+
private String toIndentedString(java.lang.Object o) {
226+
if (o == null) {
227+
return "null";
228+
}
229+
return o.toString().replace("\n", "\n ");
230+
}
231+
232+
}

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

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ public class CreateFunctionRequest {
8484
@SerializedName("RequestTimeout")
8585
private Integer requestTimeout = null;
8686

87+
@SerializedName("Role")
88+
private String role = null;
89+
8790
@SerializedName("Runtime")
8891
private String runtime = null;
8992

@@ -389,6 +392,24 @@ public void setRequestTimeout(Integer requestTimeout) {
389392
this.requestTimeout = requestTimeout;
390393
}
391394

395+
public CreateFunctionRequest role(String role) {
396+
this.role = role;
397+
return this;
398+
}
399+
400+
/**
401+
* Get role
402+
* @return role
403+
**/
404+
@Schema(description = "")
405+
public String getRole() {
406+
return role;
407+
}
408+
409+
public void setRole(String role) {
410+
this.role = role;
411+
}
412+
392413
public CreateFunctionRequest runtime(String runtime) {
393414
this.runtime = runtime;
394415
return this;
@@ -572,6 +593,7 @@ public boolean equals(java.lang.Object o) {
572593
Objects.equals(this.nasStorage, createFunctionRequest.nasStorage) &&
573594
Objects.equals(this.projectName, createFunctionRequest.projectName) &&
574595
Objects.equals(this.requestTimeout, createFunctionRequest.requestTimeout) &&
596+
Objects.equals(this.role, createFunctionRequest.role) &&
575597
Objects.equals(this.runtime, createFunctionRequest.runtime) &&
576598
Objects.equals(this.source, createFunctionRequest.source) &&
577599
Objects.equals(this.sourceAccessConfig, createFunctionRequest.sourceAccessConfig) &&
@@ -584,7 +606,7 @@ public boolean equals(java.lang.Object o) {
584606

585607
@Override
586608
public int hashCode() {
587-
return Objects.hash(cell, command, cpuMilli, cpuStrategy, description, envs, exclusiveMode, initializerSec, instanceType, maxConcurrency, memoryMB, name, nasStorage, projectName, requestTimeout, runtime, source, sourceAccessConfig, sourceType, tags, tlsConfig, tosMountConfig, vpcConfig);
609+
return Objects.hash(cell, command, cpuMilli, cpuStrategy, description, envs, exclusiveMode, initializerSec, instanceType, maxConcurrency, memoryMB, name, nasStorage, projectName, requestTimeout, role, runtime, source, sourceAccessConfig, sourceType, tags, tlsConfig, tosMountConfig, vpcConfig);
588610
}
589611

590612

@@ -608,6 +630,7 @@ public String toString() {
608630
sb.append(" nasStorage: ").append(toIndentedString(nasStorage)).append("\n");
609631
sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n");
610632
sb.append(" requestTimeout: ").append(toIndentedString(requestTimeout)).append("\n");
633+
sb.append(" role: ").append(toIndentedString(role)).append("\n");
611634
sb.append(" runtime: ").append(toIndentedString(runtime)).append("\n");
612635
sb.append(" source: ").append(toIndentedString(source)).append("\n");
613636
sb.append(" sourceAccessConfig: ").append(toIndentedString(sourceAccessConfig)).append("\n");

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

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ public class CreateFunctionResponse extends com.volcengine.model.AbstractRespons
9898
@SerializedName("RequestTimeout")
9999
private Integer requestTimeout = null;
100100

101+
@SerializedName("Role")
102+
private String role = null;
103+
101104
@SerializedName("Runtime")
102105
private String runtime = null;
103106

@@ -492,6 +495,24 @@ public void setRequestTimeout(Integer requestTimeout) {
492495
this.requestTimeout = requestTimeout;
493496
}
494497

498+
public CreateFunctionResponse role(String role) {
499+
this.role = role;
500+
return this;
501+
}
502+
503+
/**
504+
* Get role
505+
* @return role
506+
**/
507+
@Schema(description = "")
508+
public String getRole() {
509+
return role;
510+
}
511+
512+
public void setRole(String role) {
513+
this.role = role;
514+
}
515+
495516
public CreateFunctionResponse runtime(String runtime) {
496517
this.runtime = runtime;
497518
return this;
@@ -678,6 +699,7 @@ public boolean equals(java.lang.Object o) {
678699
Objects.equals(this.owner, createFunctionResponse.owner) &&
679700
Objects.equals(this.projectName, createFunctionResponse.projectName) &&
680701
Objects.equals(this.requestTimeout, createFunctionResponse.requestTimeout) &&
702+
Objects.equals(this.role, createFunctionResponse.role) &&
681703
Objects.equals(this.runtime, createFunctionResponse.runtime) &&
682704
Objects.equals(this.sourceLocation, createFunctionResponse.sourceLocation) &&
683705
Objects.equals(this.sourceType, createFunctionResponse.sourceType) &&
@@ -690,7 +712,7 @@ public boolean equals(java.lang.Object o) {
690712

691713
@Override
692714
public int hashCode() {
693-
return Objects.hash(cell, codeSize, codeSizeLimit, command, creationTime, description, envs, exclusiveMode, functionType, id, initializerSec, instanceType, lastUpdateTime, maxConcurrency, memoryMB, name, nasStorage, owner, projectName, requestTimeout, runtime, sourceLocation, sourceType, tags, tlsConfig, tosMountConfig, triggersCount, vpcConfig);
715+
return Objects.hash(cell, codeSize, codeSizeLimit, command, creationTime, description, envs, exclusiveMode, functionType, id, initializerSec, instanceType, lastUpdateTime, maxConcurrency, memoryMB, name, nasStorage, owner, projectName, requestTimeout, role, runtime, sourceLocation, sourceType, tags, tlsConfig, tosMountConfig, triggersCount, vpcConfig);
694716
}
695717

696718

@@ -719,6 +741,7 @@ public String toString() {
719741
sb.append(" owner: ").append(toIndentedString(owner)).append("\n");
720742
sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n");
721743
sb.append(" requestTimeout: ").append(toIndentedString(requestTimeout)).append("\n");
744+
sb.append(" role: ").append(toIndentedString(role)).append("\n");
722745
sb.append(" runtime: ").append(toIndentedString(runtime)).append("\n");
723746
sb.append(" sourceLocation: ").append(toIndentedString(sourceLocation)).append("\n");
724747
sb.append(" sourceType: ").append(toIndentedString(sourceType)).append("\n");

0 commit comments

Comments
 (0)