Class V1CSIVolumeSource
java.lang.Object
io.kubernetes.client.openapi.models.V1CSIVolumeSource
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-04T19:05:53.712211Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1CSIVolumeSource
extends Object
Represents a source location of a volume to mount, managed by an external CSI driver
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static V1CSIVolumeSource
Create an instance of V1CSIVolumeSource given an JSON stringdriver is the name of the CSI driver that handles this volume.fsType to mount.Get nodePublishSecretRefreadOnly specifies a read-only configuration for the volume.volumeAttributes stores driver-specific properties that are passed to the CSI driver.int
hashCode()
nodePublishSecretRef
(V1LocalObjectReference nodePublishSecretRef) putVolumeAttributesItem
(String key, String volumeAttributesItem) void
void
void
setNodePublishSecretRef
(V1LocalObjectReference nodePublishSecretRef) void
setReadOnly
(Boolean readOnly) void
setVolumeAttributes
(Map<String, String> volumeAttributes) toJson()
Convert an instance of V1CSIVolumeSource to an JSON stringtoString()
static void
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundvolumeAttributes
(Map<String, String> volumeAttributes)
-
Field Details
-
SERIALIZED_NAME_DRIVER
- See Also:
-
SERIALIZED_NAME_FS_TYPE
- See Also:
-
SERIALIZED_NAME_NODE_PUBLISH_SECRET_REF
- See Also:
-
SERIALIZED_NAME_READ_ONLY
- See Also:
-
SERIALIZED_NAME_VOLUME_ATTRIBUTES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1CSIVolumeSource
public V1CSIVolumeSource()
-
-
Method Details
-
driver
-
getDriver
driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.- Returns:
- driver
-
setDriver
-
fsType
-
getFsType
fsType to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply.- Returns:
- fsType
-
setFsType
-
nodePublishSecretRef
-
getNodePublishSecretRef
Get nodePublishSecretRef- Returns:
- nodePublishSecretRef
-
setNodePublishSecretRef
-
readOnly
-
getReadOnly
readOnly specifies a read-only configuration for the volume. Defaults to false (read/write).- Returns:
- readOnly
-
setReadOnly
-
volumeAttributes
-
putVolumeAttributesItem
-
getVolumeAttributes
volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.- Returns:
- volumeAttributes
-
setVolumeAttributes
-
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 V1CSIVolumeSource
-
fromJson
Create an instance of V1CSIVolumeSource given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1CSIVolumeSource
- Throws:
IOException
- if the JSON string is invalid with respect to V1CSIVolumeSource
-
toJson
Convert an instance of V1CSIVolumeSource to an JSON string- Returns:
- JSON string
-