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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Create 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.int
hashCode()
secretRef
(V1SecretReference secretRef) void
void
setReadOnly
(Boolean readOnly) void
setSecretRef
(V1SecretReference secretRef) void
setVolumeID
(String volumeID) toJson()
Convert an instance of V1CinderPersistentVolumeSource to an JSON stringtoString()
static void
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object 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
-
validateJsonObject
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
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
-