Class ISCSIVolumeSource
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.core.v1.ISCSIVolumeSource
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class ISCSIVolumeSource extends java.lang.Object implements com.marcnuri.yakc.model.Model
Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ISCSIVolumeSource.Builder
-
Constructor Summary
Constructors Constructor Description ISCSIVolumeSource()
ISCSIVolumeSource(java.lang.Boolean chapAuthDiscovery, java.lang.Boolean chapAuthSession, java.lang.String fsType, java.lang.String initiatorName, @NonNull java.lang.String iqn, java.lang.String iscsiInterface, @NonNull java.lang.Number lun, java.util.List<java.lang.String> portals, java.lang.Boolean readOnly, LocalObjectReference secretRef, @NonNull java.lang.String targetPortal)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ISCSIVolumeSource.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.Boolean
getChapAuthDiscovery()
chapAuthDiscovery defines whether support iSCSI Discovery CHAP authenticationjava.lang.Boolean
getChapAuthSession()
chapAuthSession defines whether support iSCSI Session CHAP authenticationjava.lang.String
getFsType()
fsType is the filesystem type of the volume that you want to mount.java.lang.String
getInitiatorName()
initiatorName is the custom iSCSI Initiator Name.@NonNull java.lang.String
getIqn()
iqn is the target iSCSI Qualified Name.java.lang.String
getIscsiInterface()
iscsiInterface is the interface Name that uses an iSCSI transport.@NonNull java.lang.Number
getLun()
lun represents iSCSI Target Lun number.java.util.List<java.lang.String>
getPortals()
portals is the iSCSI Target Portal List.java.lang.Boolean
getReadOnly()
readOnly here will force the ReadOnly setting in VolumeMounts.LocalObjectReference
getSecretRef()
@NonNull java.lang.String
getTargetPortal()
targetPortal is iSCSI Target Portal.int
hashCode()
void
setChapAuthDiscovery(java.lang.Boolean chapAuthDiscovery)
chapAuthDiscovery defines whether support iSCSI Discovery CHAP authenticationvoid
setChapAuthSession(java.lang.Boolean chapAuthSession)
chapAuthSession defines whether support iSCSI Session CHAP authenticationvoid
setFsType(java.lang.String fsType)
fsType is the filesystem type of the volume that you want to mount.void
setInitiatorName(java.lang.String initiatorName)
initiatorName is the custom iSCSI Initiator Name.void
setIqn(@NonNull java.lang.String iqn)
iqn is the target iSCSI Qualified Name.void
setIscsiInterface(java.lang.String iscsiInterface)
iscsiInterface is the interface Name that uses an iSCSI transport.void
setLun(@NonNull java.lang.Number lun)
lun represents iSCSI Target Lun number.void
setPortals(java.util.List<java.lang.String> portals)
portals is the iSCSI Target Portal List.void
setReadOnly(java.lang.Boolean readOnly)
readOnly here will force the ReadOnly setting in VolumeMounts.void
setSecretRef(LocalObjectReference secretRef)
void
setTargetPortal(@NonNull java.lang.String targetPortal)
targetPortal is iSCSI Target Portal.ISCSIVolumeSource.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Constructor Detail
-
ISCSIVolumeSource
public ISCSIVolumeSource(java.lang.Boolean chapAuthDiscovery, java.lang.Boolean chapAuthSession, java.lang.String fsType, java.lang.String initiatorName, @NonNull @NonNull java.lang.String iqn, java.lang.String iscsiInterface, @NonNull @NonNull java.lang.Number lun, java.util.List<java.lang.String> portals, java.lang.Boolean readOnly, LocalObjectReference secretRef, @NonNull @NonNull java.lang.String targetPortal)
-
ISCSIVolumeSource
public ISCSIVolumeSource()
-
-
Method Detail
-
builder
public static ISCSIVolumeSource.Builder builder()
-
toBuilder
public ISCSIVolumeSource.Builder toBuilder()
-
getChapAuthDiscovery
public java.lang.Boolean getChapAuthDiscovery()
chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication
-
getChapAuthSession
public java.lang.Boolean getChapAuthSession()
chapAuthSession defines whether support iSCSI Session CHAP authentication
-
getFsType
public java.lang.String getFsType()
fsType is the 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
-
getInitiatorName
public java.lang.String getInitiatorName()
initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface <target portal>:<volume name> will be created for the connection.
-
getIqn
@NonNull public @NonNull java.lang.String getIqn()
iqn is the target iSCSI Qualified Name.
-
getIscsiInterface
public java.lang.String getIscsiInterface()
iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).
-
getLun
@NonNull public @NonNull java.lang.Number getLun()
lun represents iSCSI Target Lun number.
-
getPortals
public java.util.List<java.lang.String> getPortals()
portals is the 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).
-
getReadOnly
public java.lang.Boolean getReadOnly()
readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.
-
getSecretRef
public LocalObjectReference getSecretRef()
-
getTargetPortal
@NonNull public @NonNull java.lang.String getTargetPortal()
targetPortal is 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).
-
setChapAuthDiscovery
public void setChapAuthDiscovery(java.lang.Boolean chapAuthDiscovery)
chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication
-
setChapAuthSession
public void setChapAuthSession(java.lang.Boolean chapAuthSession)
chapAuthSession defines whether support iSCSI Session CHAP authentication
-
setFsType
public void setFsType(java.lang.String fsType)
fsType is the 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
-
setInitiatorName
public void setInitiatorName(java.lang.String initiatorName)
initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface <target portal>:<volume name> will be created for the connection.
-
setIqn
public void setIqn(@NonNull @NonNull java.lang.String iqn)
iqn is the target iSCSI Qualified Name.
-
setIscsiInterface
public void setIscsiInterface(java.lang.String iscsiInterface)
iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).
-
setLun
public void setLun(@NonNull @NonNull java.lang.Number lun)
lun represents iSCSI Target Lun number.
-
setPortals
public void setPortals(java.util.List<java.lang.String> portals)
portals is the 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).
-
setReadOnly
public void setReadOnly(java.lang.Boolean readOnly)
readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.
-
setSecretRef
public void setSecretRef(LocalObjectReference secretRef)
-
setTargetPortal
public void setTargetPortal(@NonNull @NonNull java.lang.String targetPortal)
targetPortal is 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).
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-