Class V1ISCSIPersistentVolumeSource

java.lang.Object
io.kubernetes.client.openapi.models.V1ISCSIPersistentVolumeSource

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-06-18T15:05:57.863601Z[Etc/UTC]") public class V1ISCSIPersistentVolumeSource extends Object
ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.
  • Field Details

  • Constructor Details

    • V1ISCSIPersistentVolumeSource

      public V1ISCSIPersistentVolumeSource()
  • Method Details

    • chapAuthDiscovery

      public V1ISCSIPersistentVolumeSource chapAuthDiscovery(Boolean chapAuthDiscovery)
    • getChapAuthDiscovery

      @Nullable public Boolean getChapAuthDiscovery()
      chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication
      Returns:
      chapAuthDiscovery
    • setChapAuthDiscovery

      public void setChapAuthDiscovery(Boolean chapAuthDiscovery)
    • chapAuthSession

      public V1ISCSIPersistentVolumeSource chapAuthSession(Boolean chapAuthSession)
    • getChapAuthSession

      @Nullable public Boolean getChapAuthSession()
      chapAuthSession defines whether support iSCSI Session CHAP authentication
      Returns:
      chapAuthSession
    • setChapAuthSession

      public void setChapAuthSession(Boolean chapAuthSession)
    • fsType

      public V1ISCSIPersistentVolumeSource fsType(String fsType)
    • getFsType

      @Nullable public 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
      Returns:
      fsType
    • setFsType

      public void setFsType(String fsType)
    • initiatorName

      public V1ISCSIPersistentVolumeSource initiatorName(String initiatorName)
    • getInitiatorName

      @Nullable public 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.
      Returns:
      initiatorName
    • setInitiatorName

      public void setInitiatorName(String initiatorName)
    • iqn

    • getIqn

      public String getIqn()
      iqn is Target iSCSI Qualified Name.
      Returns:
      iqn
    • setIqn

      public void setIqn(String iqn)
    • iscsiInterface

      public V1ISCSIPersistentVolumeSource iscsiInterface(String iscsiInterface)
    • getIscsiInterface

      @Nullable public String getIscsiInterface()
      iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).
      Returns:
      iscsiInterface
    • setIscsiInterface

      public void setIscsiInterface(String iscsiInterface)
    • lun

    • getLun

      public Integer getLun()
      lun is iSCSI Target Lun number.
      Returns:
      lun
    • setLun

      public void setLun(Integer lun)
    • portals

      public V1ISCSIPersistentVolumeSource portals(List<String> portals)
    • addPortalsItem

      public V1ISCSIPersistentVolumeSource addPortalsItem(String portalsItem)
    • getPortals

      @Nullable public List<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).
      Returns:
      portals
    • setPortals

      public void setPortals(List<String> portals)
    • readOnly

      public V1ISCSIPersistentVolumeSource readOnly(Boolean readOnly)
    • getReadOnly

      @Nullable public Boolean getReadOnly()
      readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.
      Returns:
      readOnly
    • setReadOnly

      public void setReadOnly(Boolean readOnly)
    • secretRef

      public V1ISCSIPersistentVolumeSource secretRef(V1SecretReference secretRef)
    • getSecretRef

      @Nullable public V1SecretReference getSecretRef()
      Get secretRef
      Returns:
      secretRef
    • setSecretRef

      public void setSecretRef(V1SecretReference secretRef)
    • targetPortal

      public V1ISCSIPersistentVolumeSource targetPortal(String targetPortal)
    • getTargetPortal

      public 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).
      Returns:
      targetPortal
    • setTargetPortal

      public void setTargetPortal(String targetPortal)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object