Class V1CinderVolumeSource
java.lang.Object
io.kubernetes.client.openapi.models.V1CinderVolumeSource
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V1CinderVolumeSource
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 Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic V1CinderVolumeSourceCreate an instance of V1CinderVolumeSource given an JSON stringfsType is the filesystem type to mount.readOnly defaults to false (read/write).Get secretRefvolumeID used to identify the volume in cinder.inthashCode()secretRef(V1LocalObjectReference secretRef) voidvoidsetReadOnly(Boolean readOnly) voidsetSecretRef(V1LocalObjectReference secretRef) voidsetVolumeID(String volumeID) toJson()Convert an instance of V1CinderVolumeSource to an JSON stringtoString()static voidvalidateJsonObject(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
-
V1CinderVolumeSource
public V1CinderVolumeSource()
-
-
Method Details
-
fsType
-
getFsType
fsType is the 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 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 V1CinderVolumeSource
-
fromJson
Create an instance of V1CinderVolumeSource given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of V1CinderVolumeSource
- Throws:
IOException- if the JSON string is invalid with respect to V1CinderVolumeSource
-
toJson
Convert an instance of V1CinderVolumeSource to an JSON string- Returns:
- JSON string
-