Class V1CSIVolumeSource
java.lang.Object
io.kubernetes.client.openapi.models.V1CSIVolumeSource
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-04-23T13:45:09.091597Z[Etc/UTC]")
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 TypeMethodDescriptionbooleanstatic V1CSIVolumeSourceCreate 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.inthashCode()nodePublishSecretRef(V1LocalObjectReference nodePublishSecretRef) putVolumeAttributesItem(String key, String volumeAttributesItem) voidvoidvoidsetNodePublishSecretRef(V1LocalObjectReference nodePublishSecretRef) voidsetReadOnly(Boolean readOnly) voidsetVolumeAttributes(Map<String, String> volumeAttributes) toJson()Convert an instance of V1CSIVolumeSource to an JSON stringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object 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
-
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 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
-