Class V1ISCSIVolumeSource

java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1ISCSIVolumeSource

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1ISCSIVolumeSource extends Object
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

    • V1ISCSIVolumeSource

      public V1ISCSIVolumeSource(String iqn, Integer lun, String targetPortal)
  • Method Details

    • getChapAuthDiscovery

      public Boolean getChapAuthDiscovery()
      chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication
      Returns:
      the chapAuthDiscovery property value
    • setChapAuthDiscovery

      public void setChapAuthDiscovery(Boolean chapAuthDiscovery)
      Set the chapAuthDiscovery property value
    • chapAuthDiscovery

      public V1ISCSIVolumeSource chapAuthDiscovery(Boolean chapAuthDiscovery)
      Set chapAuthDiscovery in a chainable fashion.
      Returns:
      The same instance of V1ISCSIVolumeSource for chaining.
    • getChapAuthSession

      public Boolean getChapAuthSession()
      chapAuthSession defines whether support iSCSI Session CHAP authentication
      Returns:
      the chapAuthSession property value
    • setChapAuthSession

      public void setChapAuthSession(Boolean chapAuthSession)
      Set the chapAuthSession property value
    • chapAuthSession

      public V1ISCSIVolumeSource chapAuthSession(Boolean chapAuthSession)
      Set chapAuthSession in a chainable fashion.
      Returns:
      The same instance of V1ISCSIVolumeSource for chaining.
    • getFsType

      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:
      the fsType property value
    • setFsType

      public void setFsType(String fsType)
      Set the fsType property value
    • fsType

      public V1ISCSIVolumeSource fsType(String fsType)
      Set fsType in a chainable fashion.
      Returns:
      The same instance of V1ISCSIVolumeSource for chaining.
    • getInitiatorName

      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:
      the initiatorName property value
    • setInitiatorName

      public void setInitiatorName(String initiatorName)
      Set the initiatorName property value
    • initiatorName

      public V1ISCSIVolumeSource initiatorName(String initiatorName)
      Set initiatorName in a chainable fashion.
      Returns:
      The same instance of V1ISCSIVolumeSource for chaining.
    • getIqn

      public String getIqn()
      iqn is the target iSCSI Qualified Name.
      Returns:
      the iqn property value
    • setIqn

      public void setIqn(String iqn)
      Set the iqn property value
    • iqn

      public V1ISCSIVolumeSource iqn(String iqn)
      Set iqn in a chainable fashion.
      Returns:
      The same instance of V1ISCSIVolumeSource for chaining.
    • getIscsiInterface

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

      public void setIscsiInterface(String iscsiInterface)
      Set the iscsiInterface property value
    • iscsiInterface

      public V1ISCSIVolumeSource iscsiInterface(String iscsiInterface)
      Set iscsiInterface in a chainable fashion.
      Returns:
      The same instance of V1ISCSIVolumeSource for chaining.
    • getLun

      public Integer getLun()
      lun represents iSCSI Target Lun number.
      Returns:
      the lun property value
    • setLun

      public void setLun(Integer lun)
      Set the lun property value
    • lun

      public V1ISCSIVolumeSource lun(Integer lun)
      Set lun in a chainable fashion.
      Returns:
      The same instance of V1ISCSIVolumeSource for chaining.
    • getPortals

      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:
      the portals property value
    • setPortals

      public void setPortals(List<String> portals)
      Set the portals property value
    • portals

      public V1ISCSIVolumeSource portals(List<String> portals)
      Set portals in a chainable fashion.
      Returns:
      The same instance of V1ISCSIVolumeSource for chaining.
    • addportalsItem

      public V1ISCSIVolumeSource addportalsItem(String portalsItem)
      Add an item to the portals property in a chainable fashion.
      Returns:
      The same instance of V1ISCSIVolumeSource for chaining.
    • getReadOnly

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

      public void setReadOnly(Boolean readOnly)
      Set the readOnly property value
    • readOnly

      public V1ISCSIVolumeSource readOnly(Boolean readOnly)
      Set readOnly in a chainable fashion.
      Returns:
      The same instance of V1ISCSIVolumeSource for chaining.
    • getSecretRef

      public V1LocalObjectReference getSecretRef()
      Returns:
      the secretRef property value
    • setSecretRef

      public void setSecretRef(V1LocalObjectReference secretRef)
      Set the secretRef property value
    • secretRef

      public V1ISCSIVolumeSource secretRef(V1LocalObjectReference secretRef)
      Set secretRef in a chainable fashion.
      Returns:
      The same instance of V1ISCSIVolumeSource for chaining.
    • 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:
      the targetPortal property value
    • setTargetPortal

      public void setTargetPortal(String targetPortal)
      Set the targetPortal property value
    • targetPortal

      public V1ISCSIVolumeSource targetPortal(String targetPortal)
      Set targetPortal in a chainable fashion.
      Returns:
      The same instance of V1ISCSIVolumeSource for chaining.
    • 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