Class V1StorageOSVolumeSource

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-06-18T15:05:57.863601Z[Etc/UTC]") public class V1StorageOSVolumeSource extends Object
Represents a StorageOS persistent volume resource.
  • Field Details

  • Constructor Details

    • V1StorageOSVolumeSource

      public V1StorageOSVolumeSource()
  • Method Details

    • fsType

      public V1StorageOSVolumeSource fsType(String fsType)
    • getFsType

      @Nullable public String getFsType()
      fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.
      Returns:
      fsType
    • setFsType

      public void setFsType(String fsType)
    • readOnly

      public V1StorageOSVolumeSource readOnly(Boolean readOnly)
    • getReadOnly

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

      public void setReadOnly(Boolean readOnly)
    • secretRef

      public V1StorageOSVolumeSource secretRef(V1LocalObjectReference secretRef)
    • getSecretRef

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

      public void setSecretRef(V1LocalObjectReference secretRef)
    • volumeName

      public V1StorageOSVolumeSource volumeName(String volumeName)
    • getVolumeName

      @Nullable public String getVolumeName()
      volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.
      Returns:
      volumeName
    • setVolumeName

      public void setVolumeName(String volumeName)
    • volumeNamespace

      public V1StorageOSVolumeSource volumeNamespace(String volumeNamespace)
    • getVolumeNamespace

      @Nullable public String getVolumeNamespace()
      volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.
      Returns:
      volumeNamespace
    • setVolumeNamespace

      public void setVolumeNamespace(String volumeNamespace)
    • 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