io.lakefs.clients.api.model.Repository Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api-client Show documentation
Show all versions of api-client Show documentation
lakeFS OpenAPI Java client legacy SDK
/*
* lakeFS API
* lakeFS HTTP API
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package io.lakefs.clients.api.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.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* Repository
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class Repository {
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
private String id;
public static final String SERIALIZED_NAME_CREATION_DATE = "creation_date";
@SerializedName(SERIALIZED_NAME_CREATION_DATE)
private Long creationDate;
public static final String SERIALIZED_NAME_DEFAULT_BRANCH = "default_branch";
@SerializedName(SERIALIZED_NAME_DEFAULT_BRANCH)
private String defaultBranch;
public static final String SERIALIZED_NAME_STORAGE_NAMESPACE = "storage_namespace";
@SerializedName(SERIALIZED_NAME_STORAGE_NAMESPACE)
private String storageNamespace;
public static final String SERIALIZED_NAME_READ_ONLY = "read_only";
@SerializedName(SERIALIZED_NAME_READ_ONLY)
private Boolean readOnly;
public Repository id(String id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public Repository creationDate(Long creationDate) {
this.creationDate = creationDate;
return this;
}
/**
* Unix Epoch in seconds
* @return creationDate
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "Unix Epoch in seconds")
public Long getCreationDate() {
return creationDate;
}
public void setCreationDate(Long creationDate) {
this.creationDate = creationDate;
}
public Repository defaultBranch(String defaultBranch) {
this.defaultBranch = defaultBranch;
return this;
}
/**
* Get defaultBranch
* @return defaultBranch
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
public String getDefaultBranch() {
return defaultBranch;
}
public void setDefaultBranch(String defaultBranch) {
this.defaultBranch = defaultBranch;
}
public Repository storageNamespace(String storageNamespace) {
this.storageNamespace = storageNamespace;
return this;
}
/**
* Filesystem URI to store the underlying data in (e.g. \"s3://my-bucket/some/path/\")
* @return storageNamespace
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "Filesystem URI to store the underlying data in (e.g. \"s3://my-bucket/some/path/\")")
public String getStorageNamespace() {
return storageNamespace;
}
public void setStorageNamespace(String storageNamespace) {
this.storageNamespace = storageNamespace;
}
public Repository readOnly(Boolean readOnly) {
this.readOnly = readOnly;
return this;
}
/**
* Whether the repository is a read-only repository- not relevant for bare repositories
* @return readOnly
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Whether the repository is a read-only repository- not relevant for bare repositories")
public Boolean getReadOnly() {
return readOnly;
}
public void setReadOnly(Boolean readOnly) {
this.readOnly = readOnly;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Repository repository = (Repository) o;
return Objects.equals(this.id, repository.id) &&
Objects.equals(this.creationDate, repository.creationDate) &&
Objects.equals(this.defaultBranch, repository.defaultBranch) &&
Objects.equals(this.storageNamespace, repository.storageNamespace) &&
Objects.equals(this.readOnly, repository.readOnly);
}
@Override
public int hashCode() {
return Objects.hash(id, creationDate, defaultBranch, storageNamespace, readOnly);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Repository {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" creationDate: ").append(toIndentedString(creationDate)).append("\n");
sb.append(" defaultBranch: ").append(toIndentedString(defaultBranch)).append("\n");
sb.append(" storageNamespace: ").append(toIndentedString(storageNamespace)).append("\n");
sb.append(" readOnly: ").append(toIndentedString(readOnly)).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(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}