Class V1CSIPersistentVolumeSource

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-02T17:56:12.287571Z[Etc/UTC]") public class V1CSIPersistentVolumeSource extends Object
Represents storage that is managed by an external CSI volume driver (Beta feature)
  • Field Details

  • Constructor Details

    • V1CSIPersistentVolumeSource

      public V1CSIPersistentVolumeSource()
  • Method Details

    • controllerExpandSecretRef

      public V1CSIPersistentVolumeSource controllerExpandSecretRef(V1SecretReference controllerExpandSecretRef)
    • getControllerExpandSecretRef

      @Nullable public V1SecretReference getControllerExpandSecretRef()
      Get controllerExpandSecretRef
      Returns:
      controllerExpandSecretRef
    • setControllerExpandSecretRef

      public void setControllerExpandSecretRef(V1SecretReference controllerExpandSecretRef)
    • controllerPublishSecretRef

      public V1CSIPersistentVolumeSource controllerPublishSecretRef(V1SecretReference controllerPublishSecretRef)
    • getControllerPublishSecretRef

      @Nullable public V1SecretReference getControllerPublishSecretRef()
      Get controllerPublishSecretRef
      Returns:
      controllerPublishSecretRef
    • setControllerPublishSecretRef

      public void setControllerPublishSecretRef(V1SecretReference controllerPublishSecretRef)
    • driver

      public V1CSIPersistentVolumeSource driver(String driver)
    • getDriver

      @Nonnull public String getDriver()
      driver is the name of the driver to use for this volume. Required.
      Returns:
      driver
    • setDriver

      public void setDriver(String driver)
    • fsType

      public V1CSIPersistentVolumeSource fsType(String fsType)
    • getFsType

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

      public void setFsType(String fsType)
    • nodeExpandSecretRef

      public V1CSIPersistentVolumeSource nodeExpandSecretRef(V1SecretReference nodeExpandSecretRef)
    • getNodeExpandSecretRef

      @Nullable public V1SecretReference getNodeExpandSecretRef()
      Get nodeExpandSecretRef
      Returns:
      nodeExpandSecretRef
    • setNodeExpandSecretRef

      public void setNodeExpandSecretRef(V1SecretReference nodeExpandSecretRef)
    • nodePublishSecretRef

      public V1CSIPersistentVolumeSource nodePublishSecretRef(V1SecretReference nodePublishSecretRef)
    • getNodePublishSecretRef

      @Nullable public V1SecretReference getNodePublishSecretRef()
      Get nodePublishSecretRef
      Returns:
      nodePublishSecretRef
    • setNodePublishSecretRef

      public void setNodePublishSecretRef(V1SecretReference nodePublishSecretRef)
    • nodeStageSecretRef

      public V1CSIPersistentVolumeSource nodeStageSecretRef(V1SecretReference nodeStageSecretRef)
    • getNodeStageSecretRef

      @Nullable public V1SecretReference getNodeStageSecretRef()
      Get nodeStageSecretRef
      Returns:
      nodeStageSecretRef
    • setNodeStageSecretRef

      public void setNodeStageSecretRef(V1SecretReference nodeStageSecretRef)
    • readOnly

      public V1CSIPersistentVolumeSource readOnly(Boolean readOnly)
    • getReadOnly

      @Nullable public Boolean getReadOnly()
      readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write).
      Returns:
      readOnly
    • setReadOnly

      public void setReadOnly(Boolean readOnly)
    • volumeAttributes

      public V1CSIPersistentVolumeSource volumeAttributes(Map<String,String> volumeAttributes)
    • putVolumeAttributesItem

      public V1CSIPersistentVolumeSource putVolumeAttributesItem(String key, String volumeAttributesItem)
    • getVolumeAttributes

      @Nullable public Map<String,String> getVolumeAttributes()
      volumeAttributes of the volume to publish.
      Returns:
      volumeAttributes
    • setVolumeAttributes

      public void setVolumeAttributes(Map<String,String> volumeAttributes)
    • volumeHandle

      public V1CSIPersistentVolumeSource volumeHandle(String volumeHandle)
    • getVolumeHandle

      @Nonnull public String getVolumeHandle()
      volumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required.
      Returns:
      volumeHandle
    • setVolumeHandle

      public void setVolumeHandle(String volumeHandle)
    • 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
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      Validates the JSON Object and throws an exception if issues found
      Parameters:
      jsonObj - JSON Object
      Throws:
      IOException - if the JSON Object is invalid with respect to V1CSIPersistentVolumeSource
    • fromJson

      public static V1CSIPersistentVolumeSource fromJson(String jsonString) throws IOException
      Create an instance of V1CSIPersistentVolumeSource given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of V1CSIPersistentVolumeSource
      Throws:
      IOException - if the JSON string is invalid with respect to V1CSIPersistentVolumeSource
    • toJson

      public String toJson()
      Convert an instance of V1CSIPersistentVolumeSource to an JSON string
      Returns:
      JSON string