Skip to content

Commit

Permalink
Merge branch 'filenas-Java-2022-01-01-online-793-2024_11_20_15_32_02'…
Browse files Browse the repository at this point in the history
… into 'integration_2024-11-21_605223123202'

feat: [development task] FileNAS-793-Java (867152)

See merge request iaasng/volcengine-java-sdk!298
  • Loading branch information
BitsAdmin committed Nov 21, 2024
2 parents a08409b + 53235b0 commit 2155d02
Show file tree
Hide file tree
Showing 9 changed files with 1,862 additions and 0 deletions.

Large diffs are not rendered by default.

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 ");
}

}
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 ");
}

}
Loading

0 comments on commit 2155d02

Please sign in to comment.