Class V1CinderPersistentVolumeSource
java.lang.Object
io.kubernetes.client.openapi.models.V1CinderPersistentVolumeSource
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-04T19:05:53.712211Z[Etc/UTC]",
comments="Generator version: 7.6.0")
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of V1CinderPersistentVolumeSource given an JSON stringfsType Filesystem type to mount.readOnly is Optional: Defaults to false (read/write).Get secretRefvolumeID used to identify the volume in cinder.inthashCode()secretRef(V1SecretReference secretRef) voidvoidsetReadOnly(Boolean readOnly) voidsetSecretRef(V1SecretReference secretRef) voidsetVolumeID(String volumeID) toJson()Convert an instance of V1CinderPersistentVolumeSource to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_FS_TYPE
- See Also:
-
SERIALIZED_NAME_READ_ONLY
- See Also:
-
SERIALIZED_NAME_SECRET_REF
- See Also:
-
SERIALIZED_NAME_VOLUME_I_D
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1CinderPersistentVolumeSource
public V1CinderPersistentVolumeSource()
-
-
Method Details
-
fsType
-
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
-
readOnly
-
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
-
secretRef
-
getSecretRef
Get secretRef- Returns:
- secretRef
-
setSecretRef
-
volumeID
-
getVolumeID
volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md- Returns:
- volumeID
-
setVolumeID
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to V1CinderPersistentVolumeSource
-
fromJson
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
Convert an instance of V1CinderPersistentVolumeSource to an JSON string- Returns:
- JSON string
-