Class V1CinderPersistentVolumeSource

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-02T17:56:12.287571Z[Etc/UTC]") public class V1CinderPersistentVolumeSource extends Object
Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.
  • Field Details

  • Constructor Details

    • V1CinderPersistentVolumeSource

      public V1CinderPersistentVolumeSource()
  • Method Details

    • fsType

      public V1CinderPersistentVolumeSource fsType(String fsType)
    • getFsType

      @Nullable public String getFsType()
      fsType Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md
      Returns:
      fsType
    • setFsType

      public void setFsType(String fsType)
    • readOnly

      public V1CinderPersistentVolumeSource readOnly(Boolean readOnly)
    • getReadOnly

      @Nullable public Boolean getReadOnly()
      readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md
      Returns:
      readOnly
    • setReadOnly

      public void setReadOnly(Boolean readOnly)
    • secretRef

      public V1CinderPersistentVolumeSource secretRef(V1SecretReference secretRef)
    • getSecretRef

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

      public void setSecretRef(V1SecretReference secretRef)
    • volumeID

      public V1CinderPersistentVolumeSource volumeID(String volumeID)
    • getVolumeID

      @Nonnull public String getVolumeID()
      volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md
      Returns:
      volumeID
    • setVolumeID

      public void setVolumeID(String volumeID)
    • 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 V1CinderPersistentVolumeSource
    • fromJson

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

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