Skip to content

Commit 2155d02

Browse files
author
BitsAdmin
committed
Merge branch 'filenas-Java-2022-01-01-online-793-2024_11_20_15_32_02' into 'integration_2024-11-21_605223123202'
feat: [development task] FileNAS-793-Java (867152) See merge request iaasng/volcengine-java-sdk!298
2 parents a08409b + 53235b0 commit 2155d02

File tree

9 files changed

+1862
-0
lines changed

9 files changed

+1862
-0
lines changed

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

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

0 commit comments

Comments
 (0)