Skip to content

Commit 8c98365

Browse files
author
BitsAdmin
committed
Merge branch 'vefaas-Java-2024-06-06-online-1235-2025_05_29_15_07_27' into 'integration_2025-05-29_924616531202'
feat: [development task] vefaas-1235-Java (1273659) See merge request iaasng/volcengine-java-sdk!500
2 parents d127992 + a49945f commit 8c98365

19 files changed

+3153
-46
lines changed

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

Lines changed: 928 additions & 46 deletions
Large diffs are not rendered by default.
Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
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.MetadataForCreateSandboxInput;
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+
* CreateSandboxRequest
29+
*/
30+
31+
32+
33+
public class CreateSandboxRequest {
34+
@SerializedName("FunctionId")
35+
private String functionId = null;
36+
37+
@SerializedName("Metadata")
38+
private MetadataForCreateSandboxInput metadata = null;
39+
40+
@SerializedName("Timeout")
41+
private Integer timeout = null;
42+
43+
public CreateSandboxRequest functionId(String functionId) {
44+
this.functionId = functionId;
45+
return this;
46+
}
47+
48+
/**
49+
* Get functionId
50+
* @return functionId
51+
**/
52+
@NotNull
53+
@Schema(required = true, description = "")
54+
public String getFunctionId() {
55+
return functionId;
56+
}
57+
58+
public void setFunctionId(String functionId) {
59+
this.functionId = functionId;
60+
}
61+
62+
public CreateSandboxRequest metadata(MetadataForCreateSandboxInput metadata) {
63+
this.metadata = metadata;
64+
return this;
65+
}
66+
67+
/**
68+
* Get metadata
69+
* @return metadata
70+
**/
71+
@Valid
72+
@Schema(description = "")
73+
public MetadataForCreateSandboxInput getMetadata() {
74+
return metadata;
75+
}
76+
77+
public void setMetadata(MetadataForCreateSandboxInput metadata) {
78+
this.metadata = metadata;
79+
}
80+
81+
public CreateSandboxRequest timeout(Integer timeout) {
82+
this.timeout = timeout;
83+
return this;
84+
}
85+
86+
/**
87+
* Get timeout
88+
* @return timeout
89+
**/
90+
@Schema(description = "")
91+
public Integer getTimeout() {
92+
return timeout;
93+
}
94+
95+
public void setTimeout(Integer timeout) {
96+
this.timeout = timeout;
97+
}
98+
99+
100+
@Override
101+
public boolean equals(java.lang.Object o) {
102+
if (this == o) {
103+
return true;
104+
}
105+
if (o == null || getClass() != o.getClass()) {
106+
return false;
107+
}
108+
CreateSandboxRequest createSandboxRequest = (CreateSandboxRequest) o;
109+
return Objects.equals(this.functionId, createSandboxRequest.functionId) &&
110+
Objects.equals(this.metadata, createSandboxRequest.metadata) &&
111+
Objects.equals(this.timeout, createSandboxRequest.timeout);
112+
}
113+
114+
@Override
115+
public int hashCode() {
116+
return Objects.hash(functionId, metadata, timeout);
117+
}
118+
119+
120+
@Override
121+
public String toString() {
122+
StringBuilder sb = new StringBuilder();
123+
sb.append("class CreateSandboxRequest {\n");
124+
125+
sb.append(" functionId: ").append(toIndentedString(functionId)).append("\n");
126+
sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n");
127+
sb.append(" timeout: ").append(toIndentedString(timeout)).append("\n");
128+
sb.append("}");
129+
return sb.toString();
130+
}
131+
132+
/**
133+
* Convert the given object to string with each line indented by 4 spaces
134+
* (except the first line).
135+
*/
136+
private String toIndentedString(java.lang.Object o) {
137+
if (o == null) {
138+
return "null";
139+
}
140+
return o.toString().replace("\n", "\n ");
141+
}
142+
143+
}
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
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+
* CreateSandboxResponse
28+
*/
29+
30+
31+
32+
public class CreateSandboxResponse extends com.volcengine.model.AbstractResponse {
33+
@SerializedName("SandboxId")
34+
private String sandboxId = null;
35+
36+
public CreateSandboxResponse sandboxId(String sandboxId) {
37+
this.sandboxId = sandboxId;
38+
return this;
39+
}
40+
41+
/**
42+
* Get sandboxId
43+
* @return sandboxId
44+
**/
45+
@Schema(description = "")
46+
public String getSandboxId() {
47+
return sandboxId;
48+
}
49+
50+
public void setSandboxId(String sandboxId) {
51+
this.sandboxId = sandboxId;
52+
}
53+
54+
55+
@Override
56+
public boolean equals(java.lang.Object o) {
57+
if (this == o) {
58+
return true;
59+
}
60+
if (o == null || getClass() != o.getClass()) {
61+
return false;
62+
}
63+
CreateSandboxResponse createSandboxResponse = (CreateSandboxResponse) o;
64+
return Objects.equals(this.sandboxId, createSandboxResponse.sandboxId);
65+
}
66+
67+
@Override
68+
public int hashCode() {
69+
return Objects.hash(sandboxId);
70+
}
71+
72+
73+
@Override
74+
public String toString() {
75+
StringBuilder sb = new StringBuilder();
76+
sb.append("class CreateSandboxResponse {\n");
77+
78+
sb.append(" sandboxId: ").append(toIndentedString(sandboxId)).append("\n");
79+
sb.append("}");
80+
return sb.toString();
81+
}
82+
83+
/**
84+
* Convert the given object to string with each line indented by 4 spaces
85+
* (except the first line).
86+
*/
87+
private String toIndentedString(java.lang.Object o) {
88+
if (o == null) {
89+
return "null";
90+
}
91+
return o.toString().replace("\n", "\n ");
92+
}
93+
94+
}
Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
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+
* GetCodeUploadAddressRequest
28+
*/
29+
30+
31+
32+
public class GetCodeUploadAddressRequest {
33+
@SerializedName("ContentLength")
34+
private Long contentLength = null;
35+
36+
@SerializedName("FunctionId")
37+
private String functionId = null;
38+
39+
public GetCodeUploadAddressRequest contentLength(Long contentLength) {
40+
this.contentLength = contentLength;
41+
return this;
42+
}
43+
44+
/**
45+
* Get contentLength
46+
* @return contentLength
47+
**/
48+
@NotNull
49+
@Schema(required = true, description = "")
50+
public Long getContentLength() {
51+
return contentLength;
52+
}
53+
54+
public void setContentLength(Long contentLength) {
55+
this.contentLength = contentLength;
56+
}
57+
58+
public GetCodeUploadAddressRequest functionId(String functionId) {
59+
this.functionId = functionId;
60+
return this;
61+
}
62+
63+
/**
64+
* Get functionId
65+
* @return functionId
66+
**/
67+
@NotNull
68+
@Schema(required = true, description = "")
69+
public String getFunctionId() {
70+
return functionId;
71+
}
72+
73+
public void setFunctionId(String functionId) {
74+
this.functionId = functionId;
75+
}
76+
77+
78+
@Override
79+
public boolean equals(java.lang.Object o) {
80+
if (this == o) {
81+
return true;
82+
}
83+
if (o == null || getClass() != o.getClass()) {
84+
return false;
85+
}
86+
GetCodeUploadAddressRequest getCodeUploadAddressRequest = (GetCodeUploadAddressRequest) o;
87+
return Objects.equals(this.contentLength, getCodeUploadAddressRequest.contentLength) &&
88+
Objects.equals(this.functionId, getCodeUploadAddressRequest.functionId);
89+
}
90+
91+
@Override
92+
public int hashCode() {
93+
return Objects.hash(contentLength, functionId);
94+
}
95+
96+
97+
@Override
98+
public String toString() {
99+
StringBuilder sb = new StringBuilder();
100+
sb.append("class GetCodeUploadAddressRequest {\n");
101+
102+
sb.append(" contentLength: ").append(toIndentedString(contentLength)).append("\n");
103+
sb.append(" functionId: ").append(toIndentedString(functionId)).append("\n");
104+
sb.append("}");
105+
return sb.toString();
106+
}
107+
108+
/**
109+
* Convert the given object to string with each line indented by 4 spaces
110+
* (except the first line).
111+
*/
112+
private String toIndentedString(java.lang.Object o) {
113+
if (o == null) {
114+
return "null";
115+
}
116+
return o.toString().replace("\n", "\n ");
117+
}
118+
119+
}

0 commit comments

Comments
 (0)