Skip to content

Commit fcc1f91

Browse files
author
BitsAdmin
committed
Merge branch 'vepfs-Java-2022-01-01-online-1124-2025_04_23_17_59_00' into 'integration_2025-04-24_877340287234'
feat: [development task] vepfs-1124-Java (1181034) See merge request iaasng/volcengine-java-sdk!450
2 parents 4bc8ef1 + a75e198 commit fcc1f91

File tree

78 files changed

+6796
-1565
lines changed

Some content is hidden

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

78 files changed

+6796
-1565
lines changed

volcengine-java-sdk-vepfs/src/main/java/com/volcengine/vepfs/VepfsApi.java

Lines changed: 1310 additions & 176 deletions
Large diffs are not rendered by default.

volcengine-java-sdk-vepfs/src/main/java/com/volcengine/vepfs/model/AttachFileSystemForDescribeMountServicesOutput.java

Lines changed: 56 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
*/
2929

3030

31+
3132
public class AttachFileSystemForDescribeMountServicesOutput {
3233
@SerializedName("AccountId")
3334
private String accountId = null;
@@ -41,11 +42,57 @@ public class AttachFileSystemForDescribeMountServicesOutput {
4142
@SerializedName("FileSystemName")
4243
private String fileSystemName = null;
4344

44-
@SerializedName("Status")
45-
private String status = null;
45+
/**
46+
* Gets or Sets status
47+
*/
48+
@JsonAdapter(StatusEnum.Adapter.class)
49+
public enum StatusEnum {
50+
@SerializedName("Attaching")
51+
ATTACHING("Attaching"),
52+
@SerializedName("AttachError")
53+
ATTACHERROR("AttachError"),
54+
@SerializedName("Attached")
55+
ATTACHED("Attached"),
56+
@SerializedName("Detaching")
57+
DETACHING("Detaching"),
58+
@SerializedName("DetachError")
59+
DETACHERROR("DetachError");
60+
61+
private String value;
62+
63+
StatusEnum(String value) {
64+
this.value = value;
65+
}
66+
public String getValue() {
67+
return value;
68+
}
4669

47-
@SerializedName("Type")
48-
private String type = null;
70+
@Override
71+
public String toString() {
72+
return String.valueOf(value);
73+
}
74+
public static StatusEnum fromValue(String input) {
75+
for (StatusEnum b : StatusEnum.values()) {
76+
if (b.value.equals(input)) {
77+
return b;
78+
}
79+
}
80+
return null;
81+
}
82+
public static class Adapter extends TypeAdapter<StatusEnum> {
83+
@Override
84+
public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) throws IOException {
85+
jsonWriter.value(String.valueOf(enumeration.getValue()));
86+
}
87+
88+
@Override
89+
public StatusEnum read(final JsonReader jsonReader) throws IOException {
90+
Object value = jsonReader.nextString();
91+
return StatusEnum.fromValue((String)(value));
92+
}
93+
}
94+
} @SerializedName("Status")
95+
private StatusEnum status = null;
4996

5097
public AttachFileSystemForDescribeMountServicesOutput accountId(String accountId) {
5198
this.accountId = accountId;
@@ -119,7 +166,7 @@ public void setFileSystemName(String fileSystemName) {
119166
this.fileSystemName = fileSystemName;
120167
}
121168

122-
public AttachFileSystemForDescribeMountServicesOutput status(String status) {
169+
public AttachFileSystemForDescribeMountServicesOutput status(StatusEnum status) {
123170
this.status = status;
124171
return this;
125172
}
@@ -129,32 +176,14 @@ public AttachFileSystemForDescribeMountServicesOutput status(String status) {
129176
* @return status
130177
**/
131178
@Schema(description = "")
132-
public String getStatus() {
179+
public StatusEnum getStatus() {
133180
return status;
134181
}
135182

136-
public void setStatus(String status) {
183+
public void setStatus(StatusEnum status) {
137184
this.status = status;
138185
}
139186

140-
public AttachFileSystemForDescribeMountServicesOutput type(String type) {
141-
this.type = type;
142-
return this;
143-
}
144-
145-
/**
146-
* Get type
147-
* @return type
148-
**/
149-
@Schema(description = "")
150-
public String getType() {
151-
return type;
152-
}
153-
154-
public void setType(String type) {
155-
this.type = type;
156-
}
157-
158187

159188
@Override
160189
public boolean equals(java.lang.Object o) {
@@ -169,13 +198,12 @@ public boolean equals(java.lang.Object o) {
169198
Objects.equals(this.customerPath, attachFileSystemForDescribeMountServicesOutput.customerPath) &&
170199
Objects.equals(this.fileSystemId, attachFileSystemForDescribeMountServicesOutput.fileSystemId) &&
171200
Objects.equals(this.fileSystemName, attachFileSystemForDescribeMountServicesOutput.fileSystemName) &&
172-
Objects.equals(this.status, attachFileSystemForDescribeMountServicesOutput.status) &&
173-
Objects.equals(this.type, attachFileSystemForDescribeMountServicesOutput.type);
201+
Objects.equals(this.status, attachFileSystemForDescribeMountServicesOutput.status);
174202
}
175203

176204
@Override
177205
public int hashCode() {
178-
return Objects.hash(accountId, customerPath, fileSystemId, fileSystemName, status, type);
206+
return Objects.hash(accountId, customerPath, fileSystemId, fileSystemName, status);
179207
}
180208

181209

@@ -189,7 +217,6 @@ public String toString() {
189217
sb.append(" fileSystemId: ").append(toIndentedString(fileSystemId)).append("\n");
190218
sb.append(" fileSystemName: ").append(toIndentedString(fileSystemName)).append("\n");
191219
sb.append(" status: ").append(toIndentedString(status)).append("\n");
192-
sb.append(" type: ").append(toIndentedString(type)).append("\n");
193220
sb.append("}");
194221
return sb.toString();
195222
}

volcengine-java-sdk-vepfs/src/main/java/com/volcengine/vepfs/model/AttachMountServiceToSelfFileSystemRequest.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
*/
2929

3030

31+
3132
public class AttachMountServiceToSelfFileSystemRequest {
3233
@SerializedName("CustomerPath")
3334
private String customerPath = null;
@@ -65,7 +66,8 @@ public AttachMountServiceToSelfFileSystemRequest fileSystemId(String fileSystemI
6566
* Get fileSystemId
6667
* @return fileSystemId
6768
**/
68-
@Schema(description = "")
69+
@NotNull
70+
@Schema(required = true, description = "")
6971
public String getFileSystemId() {
7072
return fileSystemId;
7173
}
@@ -83,7 +85,8 @@ public AttachMountServiceToSelfFileSystemRequest mountServiceId(String mountServ
8385
* Get mountServiceId
8486
* @return mountServiceId
8587
**/
86-
@Schema(description = "")
88+
@NotNull
89+
@Schema(required = true, description = "")
8790
public String getMountServiceId() {
8891
return mountServiceId;
8992
}

volcengine-java-sdk-vepfs/src/main/java/com/volcengine/vepfs/model/AttachMountServiceToSelfFileSystemResponse.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
*/
2222

2323

24-
public class AttachMountServiceToSelfFileSystemResponse {
24+
25+
public class AttachMountServiceToSelfFileSystemResponse extends com.volcengine.model.AbstractResponse {
2526

2627
@Override
2728
public boolean equals(java.lang.Object o) {

volcengine-java-sdk-vepfs/src/main/java/com/volcengine/vepfs/model/CapacityInfoForDescribeFileSystemStatisticsOutput.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
*/
2929

3030

31+
3132
public class CapacityInfoForDescribeFileSystemStatisticsOutput {
3233
@SerializedName("TotalTiB")
3334
private Integer totalTiB = null;

volcengine-java-sdk-vepfs/src/main/java/com/volcengine/vepfs/model/CapacityInfoForDescribeFileSystemsOutput.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
*/
2929

3030

31+
3132
public class CapacityInfoForDescribeFileSystemsOutput {
3233
@SerializedName("TotalTiB")
3334
private Integer totalTiB = null;

0 commit comments

Comments
 (0)