Class 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.
    • 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 authentication
      java.lang.Boolean getChapAuthSession()
      chapAuthSession defines whether support iSCSI Session CHAP authentication
      java.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 authentication
      void setChapAuthSession​(java.lang.Boolean chapAuthSession)
      chapAuthSession defines whether support iSCSI Session CHAP authentication
      void 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()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • 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

      • 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.
      • 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.
      • 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 class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object