
io.kubernetes.client.models.ExtensionsV1beta1AllowedHostPath Maven / Gradle / Ivy
/*
* Kubernetes
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: v1.11.1
*
*
* 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 io.kubernetes.client.models;
import java.util.Objects;
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;
/**
* AllowedHostPath defines the host volume conditions that will be enabled by a policy for pods to use. It requires the path prefix to be defined. Deprecated: use AllowedHostPath from policy API Group instead.
*/
@ApiModel(description = "AllowedHostPath defines the host volume conditions that will be enabled by a policy for pods to use. It requires the path prefix to be defined. Deprecated: use AllowedHostPath from policy API Group instead.")
public class ExtensionsV1beta1AllowedHostPath {
@SerializedName("pathPrefix")
private String pathPrefix = null;
@SerializedName("readOnly")
private Boolean readOnly = null;
public ExtensionsV1beta1AllowedHostPath pathPrefix(String pathPrefix) {
this.pathPrefix = pathPrefix;
return this;
}
/**
* pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo`
* @return pathPrefix
**/
@ApiModelProperty(value = "pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo`")
public String getPathPrefix() {
return pathPrefix;
}
public void setPathPrefix(String pathPrefix) {
this.pathPrefix = pathPrefix;
}
public ExtensionsV1beta1AllowedHostPath readOnly(Boolean readOnly) {
this.readOnly = readOnly;
return this;
}
/**
* when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.
* @return readOnly
**/
@ApiModelProperty(value = "when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.")
public Boolean isReadOnly() {
return readOnly;
}
public void setReadOnly(Boolean readOnly) {
this.readOnly = readOnly;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ExtensionsV1beta1AllowedHostPath extensionsV1beta1AllowedHostPath = (ExtensionsV1beta1AllowedHostPath) o;
return Objects.equals(this.pathPrefix, extensionsV1beta1AllowedHostPath.pathPrefix) &&
Objects.equals(this.readOnly, extensionsV1beta1AllowedHostPath.readOnly);
}
@Override
public int hashCode() {
return Objects.hash(pathPrefix, readOnly);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ExtensionsV1beta1AllowedHostPath {\n");
sb.append(" pathPrefix: ").append(toIndentedString(pathPrefix)).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(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy