-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
9 changed files
with
1,862 additions
and
0 deletions.
There are no files selected for viewing
378 changes: 378 additions & 0 deletions
378
volcengine-java-sdk-filenas/src/main/java/com/volcengine/filenas/FilenasApi.java
Large diffs are not rendered by default.
Oops, something went wrong.
184 changes: 184 additions & 0 deletions
184
...ne-java-sdk-filenas/src/main/java/com/volcengine/filenas/model/CancelDirQuotaRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,184 @@ | ||
/* | ||
* filenas | ||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) | ||
* | ||
* OpenAPI spec version: common-version | ||
* | ||
* | ||
* NOTE: This class is auto generated by the swagger code generator program. | ||
* https://github.com/swagger-api/swagger-codegen.git | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
package com.volcengine.filenas.model; | ||
|
||
import java.util.Objects; | ||
import java.util.Arrays; | ||
import com.google.gson.TypeAdapter; | ||
import com.google.gson.annotations.JsonAdapter; | ||
import com.google.gson.annotations.SerializedName; | ||
import com.google.gson.stream.JsonReader; | ||
import com.google.gson.stream.JsonWriter; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import java.io.IOException; | ||
import javax.validation.constraints.*; | ||
import javax.validation.Valid; | ||
/** | ||
* CancelDirQuotaRequest | ||
*/ | ||
|
||
|
||
|
||
public class CancelDirQuotaRequest { | ||
@SerializedName("FileSystemId") | ||
private String fileSystemId = null; | ||
|
||
@SerializedName("Path") | ||
private String path = null; | ||
|
||
/** | ||
* Gets or Sets userType | ||
*/ | ||
@JsonAdapter(UserTypeEnum.Adapter.class) | ||
public enum UserTypeEnum { | ||
@SerializedName("AllUsers") | ||
ALLUSERS("AllUsers"); | ||
|
||
private String value; | ||
|
||
UserTypeEnum(String value) { | ||
this.value = value; | ||
} | ||
public String getValue() { | ||
return value; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return String.valueOf(value); | ||
} | ||
public static UserTypeEnum fromValue(String input) { | ||
for (UserTypeEnum b : UserTypeEnum.values()) { | ||
if (b.value.equals(input)) { | ||
return b; | ||
} | ||
} | ||
return null; | ||
} | ||
public static class Adapter extends TypeAdapter<UserTypeEnum> { | ||
@Override | ||
public void write(final JsonWriter jsonWriter, final UserTypeEnum enumeration) throws IOException { | ||
jsonWriter.value(String.valueOf(enumeration.getValue())); | ||
} | ||
|
||
@Override | ||
public UserTypeEnum read(final JsonReader jsonReader) throws IOException { | ||
Object value = jsonReader.nextString(); | ||
return UserTypeEnum.fromValue((String)(value)); | ||
} | ||
} | ||
} @SerializedName("UserType") | ||
private UserTypeEnum userType = null; | ||
|
||
public CancelDirQuotaRequest fileSystemId(String fileSystemId) { | ||
this.fileSystemId = fileSystemId; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get fileSystemId | ||
* @return fileSystemId | ||
**/ | ||
@NotNull | ||
@Schema(required = true, description = "") | ||
public String getFileSystemId() { | ||
return fileSystemId; | ||
} | ||
|
||
public void setFileSystemId(String fileSystemId) { | ||
this.fileSystemId = fileSystemId; | ||
} | ||
|
||
public CancelDirQuotaRequest path(String path) { | ||
this.path = path; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get path | ||
* @return path | ||
**/ | ||
@NotNull | ||
@Schema(required = true, description = "") | ||
public String getPath() { | ||
return path; | ||
} | ||
|
||
public void setPath(String path) { | ||
this.path = path; | ||
} | ||
|
||
public CancelDirQuotaRequest userType(UserTypeEnum userType) { | ||
this.userType = userType; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get userType | ||
* @return userType | ||
**/ | ||
@NotNull | ||
@Schema(required = true, description = "") | ||
public UserTypeEnum getUserType() { | ||
return userType; | ||
} | ||
|
||
public void setUserType(UserTypeEnum userType) { | ||
this.userType = userType; | ||
} | ||
|
||
|
||
@Override | ||
public boolean equals(java.lang.Object o) { | ||
if (this == o) { | ||
return true; | ||
} | ||
if (o == null || getClass() != o.getClass()) { | ||
return false; | ||
} | ||
CancelDirQuotaRequest cancelDirQuotaRequest = (CancelDirQuotaRequest) o; | ||
return Objects.equals(this.fileSystemId, cancelDirQuotaRequest.fileSystemId) && | ||
Objects.equals(this.path, cancelDirQuotaRequest.path) && | ||
Objects.equals(this.userType, cancelDirQuotaRequest.userType); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(fileSystemId, path, userType); | ||
} | ||
|
||
|
||
@Override | ||
public String toString() { | ||
StringBuilder sb = new StringBuilder(); | ||
sb.append("class CancelDirQuotaRequest {\n"); | ||
|
||
sb.append(" fileSystemId: ").append(toIndentedString(fileSystemId)).append("\n"); | ||
sb.append(" path: ").append(toIndentedString(path)).append("\n"); | ||
sb.append(" userType: ").append(toIndentedString(userType)).append("\n"); | ||
sb.append("}"); | ||
return sb.toString(); | ||
} | ||
|
||
/** | ||
* Convert the given object to string with each line indented by 4 spaces | ||
* (except the first line). | ||
*/ | ||
private String toIndentedString(java.lang.Object o) { | ||
if (o == null) { | ||
return "null"; | ||
} | ||
return o.toString().replace("\n", "\n "); | ||
} | ||
|
||
} |
64 changes: 64 additions & 0 deletions
64
...e-java-sdk-filenas/src/main/java/com/volcengine/filenas/model/CancelDirQuotaResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/* | ||
* filenas | ||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) | ||
* | ||
* OpenAPI spec version: common-version | ||
* | ||
* | ||
* NOTE: This class is auto generated by the swagger code generator program. | ||
* https://github.com/swagger-api/swagger-codegen.git | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
package com.volcengine.filenas.model; | ||
|
||
import java.util.Objects; | ||
import java.util.Arrays; | ||
import javax.validation.constraints.*; | ||
import javax.validation.Valid; | ||
/** | ||
* CancelDirQuotaResponse | ||
*/ | ||
|
||
|
||
|
||
public class CancelDirQuotaResponse extends com.volcengine.model.AbstractResponse { | ||
|
||
@Override | ||
public boolean equals(java.lang.Object o) { | ||
if (this == o) { | ||
return true; | ||
} | ||
if (o == null || getClass() != o.getClass()) { | ||
return false; | ||
} | ||
return true; | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(); | ||
} | ||
|
||
|
||
@Override | ||
public String toString() { | ||
StringBuilder sb = new StringBuilder(); | ||
sb.append("class CancelDirQuotaResponse {\n"); | ||
|
||
sb.append("}"); | ||
return sb.toString(); | ||
} | ||
|
||
/** | ||
* Convert the given object to string with each line indented by 4 spaces | ||
* (except the first line). | ||
*/ | ||
private String toIndentedString(java.lang.Object o) { | ||
if (o == null) { | ||
return "null"; | ||
} | ||
return o.toString().replace("\n", "\n "); | ||
} | ||
|
||
} |
Oops, something went wrong.