Skip to content

Commit b87a569

Browse files
author
BitsAdmin
committed
Merge 'filenas-Java-2022-01-01-online-2428-2026_03_26_16_31_47' into 'integration_2026-04-02_1133415429890'
feat: [development task] FileNAS-2428-Java (2246438) See merge request: !944
2 parents 9e80a0e + 00f8a94 commit b87a569

36 files changed

Lines changed: 5413 additions & 57 deletions

File tree

volcengine-java-sdk-filenas/src/main/java/com/volcengine/filenas/FilenasApi.java

Lines changed: 660 additions & 30 deletions
Large diffs are not rendered by default.

volcengine-java-sdk-filenas/src/main/java/com/volcengine/filenas/model/AccessPointForDescribeAccessPointsOutput.java

Lines changed: 560 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 183 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,183 @@
1+
/*
2+
* filenas
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.filenas.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+
* ClientForDescribeMountedClientsOutput
28+
*/
29+
30+
31+
32+
public class ClientForDescribeMountedClientsOutput {
33+
@SerializedName("Ip")
34+
private String ip = null;
35+
36+
/**
37+
* Gets or Sets protocolVersion
38+
*/
39+
@JsonAdapter(ProtocolVersionEnum.Adapter.class)
40+
public enum ProtocolVersionEnum {
41+
@SerializedName("NFSv3")
42+
NFSV3("NFSv3"),
43+
@SerializedName("NFSv4")
44+
NFSV4("NFSv4");
45+
46+
private String value;
47+
48+
ProtocolVersionEnum(String value) {
49+
this.value = value;
50+
}
51+
public String getValue() {
52+
return value;
53+
}
54+
55+
@Override
56+
public String toString() {
57+
return String.valueOf(value);
58+
}
59+
public static ProtocolVersionEnum fromValue(String input) {
60+
for (ProtocolVersionEnum b : ProtocolVersionEnum.values()) {
61+
if (b.value.equals(input)) {
62+
return b;
63+
}
64+
}
65+
return null;
66+
}
67+
public static class Adapter extends TypeAdapter<ProtocolVersionEnum> {
68+
@Override
69+
public void write(final JsonWriter jsonWriter, final ProtocolVersionEnum enumeration) throws IOException {
70+
jsonWriter.value(String.valueOf(enumeration.getValue()));
71+
}
72+
73+
@Override
74+
public ProtocolVersionEnum read(final JsonReader jsonReader) throws IOException {
75+
Object value = jsonReader.nextString();
76+
return ProtocolVersionEnum.fromValue((String)(value));
77+
}
78+
}
79+
} @SerializedName("ProtocolVersion")
80+
private ProtocolVersionEnum protocolVersion = null;
81+
82+
@SerializedName("VpcName")
83+
private String vpcName = null;
84+
85+
public ClientForDescribeMountedClientsOutput ip(String ip) {
86+
this.ip = ip;
87+
return this;
88+
}
89+
90+
/**
91+
* Get ip
92+
* @return ip
93+
**/
94+
@Schema(description = "")
95+
public String getIp() {
96+
return ip;
97+
}
98+
99+
public void setIp(String ip) {
100+
this.ip = ip;
101+
}
102+
103+
public ClientForDescribeMountedClientsOutput protocolVersion(ProtocolVersionEnum protocolVersion) {
104+
this.protocolVersion = protocolVersion;
105+
return this;
106+
}
107+
108+
/**
109+
* Get protocolVersion
110+
* @return protocolVersion
111+
**/
112+
@Schema(description = "")
113+
public ProtocolVersionEnum getProtocolVersion() {
114+
return protocolVersion;
115+
}
116+
117+
public void setProtocolVersion(ProtocolVersionEnum protocolVersion) {
118+
this.protocolVersion = protocolVersion;
119+
}
120+
121+
public ClientForDescribeMountedClientsOutput vpcName(String vpcName) {
122+
this.vpcName = vpcName;
123+
return this;
124+
}
125+
126+
/**
127+
* Get vpcName
128+
* @return vpcName
129+
**/
130+
@Schema(description = "")
131+
public String getVpcName() {
132+
return vpcName;
133+
}
134+
135+
public void setVpcName(String vpcName) {
136+
this.vpcName = vpcName;
137+
}
138+
139+
140+
@Override
141+
public boolean equals(java.lang.Object o) {
142+
if (this == o) {
143+
return true;
144+
}
145+
if (o == null || getClass() != o.getClass()) {
146+
return false;
147+
}
148+
ClientForDescribeMountedClientsOutput clientForDescribeMountedClientsOutput = (ClientForDescribeMountedClientsOutput) o;
149+
return Objects.equals(this.ip, clientForDescribeMountedClientsOutput.ip) &&
150+
Objects.equals(this.protocolVersion, clientForDescribeMountedClientsOutput.protocolVersion) &&
151+
Objects.equals(this.vpcName, clientForDescribeMountedClientsOutput.vpcName);
152+
}
153+
154+
@Override
155+
public int hashCode() {
156+
return Objects.hash(ip, protocolVersion, vpcName);
157+
}
158+
159+
160+
@Override
161+
public String toString() {
162+
StringBuilder sb = new StringBuilder();
163+
sb.append("class ClientForDescribeMountedClientsOutput {\n");
164+
165+
sb.append(" ip: ").append(toIndentedString(ip)).append("\n");
166+
sb.append(" protocolVersion: ").append(toIndentedString(protocolVersion)).append("\n");
167+
sb.append(" vpcName: ").append(toIndentedString(vpcName)).append("\n");
168+
sb.append("}");
169+
return sb.toString();
170+
}
171+
172+
/**
173+
* Convert the given object to string with each line indented by 4 spaces
174+
* (except the first line).
175+
*/
176+
private String toIndentedString(java.lang.Object o) {
177+
if (o == null) {
178+
return "null";
179+
}
180+
return o.toString().replace("\n", "\n ");
181+
}
182+
183+
}

volcengine-java-sdk-filenas/src/main/java/com/volcengine/filenas/model/ConvertMountPointForDescribeMountPointsOutput.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ public class ConvertMountPointForDescribeMountPointsOutput {
5454
*/
5555
@JsonAdapter(StatusEnum.Adapter.class)
5656
public enum StatusEnum {
57-
@SerializedName("Unknown")
58-
UNKNOWN("Unknown"),
5957
@SerializedName("Creating")
6058
CREATING("Creating"),
6159
@SerializedName("Running")

0 commit comments

Comments
 (0)