
io.kubernetes.client.models.V1ISCSIPersistentVolumeSource 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.kubernetes.client.models.V1SecretReference;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
/**
* ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.
*/
@ApiModel(description = "ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.")
public class V1ISCSIPersistentVolumeSource {
@SerializedName("chapAuthDiscovery")
private Boolean chapAuthDiscovery = null;
@SerializedName("chapAuthSession")
private Boolean chapAuthSession = null;
@SerializedName("fsType")
private String fsType = null;
@SerializedName("initiatorName")
private String initiatorName = null;
@SerializedName("iqn")
private String iqn = null;
@SerializedName("iscsiInterface")
private String iscsiInterface = null;
@SerializedName("lun")
private Integer lun = null;
@SerializedName("portals")
private List portals = null;
@SerializedName("readOnly")
private Boolean readOnly = null;
@SerializedName("secretRef")
private V1SecretReference secretRef = null;
@SerializedName("targetPortal")
private String targetPortal = null;
public V1ISCSIPersistentVolumeSource chapAuthDiscovery(Boolean chapAuthDiscovery) {
this.chapAuthDiscovery = chapAuthDiscovery;
return this;
}
/**
* whether support iSCSI Discovery CHAP authentication
* @return chapAuthDiscovery
**/
@ApiModelProperty(value = "whether support iSCSI Discovery CHAP authentication")
public Boolean isChapAuthDiscovery() {
return chapAuthDiscovery;
}
public void setChapAuthDiscovery(Boolean chapAuthDiscovery) {
this.chapAuthDiscovery = chapAuthDiscovery;
}
public V1ISCSIPersistentVolumeSource chapAuthSession(Boolean chapAuthSession) {
this.chapAuthSession = chapAuthSession;
return this;
}
/**
* whether support iSCSI Session CHAP authentication
* @return chapAuthSession
**/
@ApiModelProperty(value = "whether support iSCSI Session CHAP authentication")
public Boolean isChapAuthSession() {
return chapAuthSession;
}
public void setChapAuthSession(Boolean chapAuthSession) {
this.chapAuthSession = chapAuthSession;
}
public V1ISCSIPersistentVolumeSource fsType(String fsType) {
this.fsType = fsType;
return this;
}
/**
* Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi
* @return fsType
**/
@ApiModelProperty(value = "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi")
public String getFsType() {
return fsType;
}
public void setFsType(String fsType) {
this.fsType = fsType;
}
public V1ISCSIPersistentVolumeSource initiatorName(String initiatorName) {
this.initiatorName = initiatorName;
return this;
}
/**
* Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface <target portal>:<volume name> will be created for the connection.
* @return initiatorName
**/
@ApiModelProperty(value = "Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection.")
public String getInitiatorName() {
return initiatorName;
}
public void setInitiatorName(String initiatorName) {
this.initiatorName = initiatorName;
}
public V1ISCSIPersistentVolumeSource iqn(String iqn) {
this.iqn = iqn;
return this;
}
/**
* Target iSCSI Qualified Name.
* @return iqn
**/
@ApiModelProperty(required = true, value = "Target iSCSI Qualified Name.")
public String getIqn() {
return iqn;
}
public void setIqn(String iqn) {
this.iqn = iqn;
}
public V1ISCSIPersistentVolumeSource iscsiInterface(String iscsiInterface) {
this.iscsiInterface = iscsiInterface;
return this;
}
/**
* iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).
* @return iscsiInterface
**/
@ApiModelProperty(value = "iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).")
public String getIscsiInterface() {
return iscsiInterface;
}
public void setIscsiInterface(String iscsiInterface) {
this.iscsiInterface = iscsiInterface;
}
public V1ISCSIPersistentVolumeSource lun(Integer lun) {
this.lun = lun;
return this;
}
/**
* iSCSI Target Lun number.
* @return lun
**/
@ApiModelProperty(required = true, value = "iSCSI Target Lun number.")
public Integer getLun() {
return lun;
}
public void setLun(Integer lun) {
this.lun = lun;
}
public V1ISCSIPersistentVolumeSource portals(List portals) {
this.portals = portals;
return this;
}
public V1ISCSIPersistentVolumeSource addPortalsItem(String portalsItem) {
if (this.portals == null) {
this.portals = new ArrayList();
}
this.portals.add(portalsItem);
return this;
}
/**
* iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).
* @return portals
**/
@ApiModelProperty(value = "iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).")
public List getPortals() {
return portals;
}
public void setPortals(List portals) {
this.portals = portals;
}
public V1ISCSIPersistentVolumeSource readOnly(Boolean readOnly) {
this.readOnly = readOnly;
return this;
}
/**
* ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.
* @return readOnly
**/
@ApiModelProperty(value = "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.")
public Boolean isReadOnly() {
return readOnly;
}
public void setReadOnly(Boolean readOnly) {
this.readOnly = readOnly;
}
public V1ISCSIPersistentVolumeSource secretRef(V1SecretReference secretRef) {
this.secretRef = secretRef;
return this;
}
/**
* CHAP Secret for iSCSI target and initiator authentication
* @return secretRef
**/
@ApiModelProperty(value = "CHAP Secret for iSCSI target and initiator authentication")
public V1SecretReference getSecretRef() {
return secretRef;
}
public void setSecretRef(V1SecretReference secretRef) {
this.secretRef = secretRef;
}
public V1ISCSIPersistentVolumeSource targetPortal(String targetPortal) {
this.targetPortal = targetPortal;
return this;
}
/**
* iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).
* @return targetPortal
**/
@ApiModelProperty(required = true, value = "iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).")
public String getTargetPortal() {
return targetPortal;
}
public void setTargetPortal(String targetPortal) {
this.targetPortal = targetPortal;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1ISCSIPersistentVolumeSource v1ISCSIPersistentVolumeSource = (V1ISCSIPersistentVolumeSource) o;
return Objects.equals(this.chapAuthDiscovery, v1ISCSIPersistentVolumeSource.chapAuthDiscovery) &&
Objects.equals(this.chapAuthSession, v1ISCSIPersistentVolumeSource.chapAuthSession) &&
Objects.equals(this.fsType, v1ISCSIPersistentVolumeSource.fsType) &&
Objects.equals(this.initiatorName, v1ISCSIPersistentVolumeSource.initiatorName) &&
Objects.equals(this.iqn, v1ISCSIPersistentVolumeSource.iqn) &&
Objects.equals(this.iscsiInterface, v1ISCSIPersistentVolumeSource.iscsiInterface) &&
Objects.equals(this.lun, v1ISCSIPersistentVolumeSource.lun) &&
Objects.equals(this.portals, v1ISCSIPersistentVolumeSource.portals) &&
Objects.equals(this.readOnly, v1ISCSIPersistentVolumeSource.readOnly) &&
Objects.equals(this.secretRef, v1ISCSIPersistentVolumeSource.secretRef) &&
Objects.equals(this.targetPortal, v1ISCSIPersistentVolumeSource.targetPortal);
}
@Override
public int hashCode() {
return Objects.hash(chapAuthDiscovery, chapAuthSession, fsType, initiatorName, iqn, iscsiInterface, lun, portals, readOnly, secretRef, targetPortal);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1ISCSIPersistentVolumeSource {\n");
sb.append(" chapAuthDiscovery: ").append(toIndentedString(chapAuthDiscovery)).append("\n");
sb.append(" chapAuthSession: ").append(toIndentedString(chapAuthSession)).append("\n");
sb.append(" fsType: ").append(toIndentedString(fsType)).append("\n");
sb.append(" initiatorName: ").append(toIndentedString(initiatorName)).append("\n");
sb.append(" iqn: ").append(toIndentedString(iqn)).append("\n");
sb.append(" iscsiInterface: ").append(toIndentedString(iscsiInterface)).append("\n");
sb.append(" lun: ").append(toIndentedString(lun)).append("\n");
sb.append(" portals: ").append(toIndentedString(portals)).append("\n");
sb.append(" readOnly: ").append(toIndentedString(readOnly)).append("\n");
sb.append(" secretRef: ").append(toIndentedString(secretRef)).append("\n");
sb.append(" targetPortal: ").append(toIndentedString(targetPortal)).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