Class V1CSIPersistentVolumeSource
java.lang.Object
io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSource
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V1CSIPersistentVolumeSource
extends Object
Represents storage that is managed by an external CSI volume driver (Beta feature)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontrollerExpandSecretRef
(V1SecretReference controllerExpandSecretRef) controllerPublishSecretRef
(V1SecretReference controllerPublishSecretRef) boolean
static V1CSIPersistentVolumeSource
Create an instance of V1CSIPersistentVolumeSource given an JSON stringGet controllerExpandSecretRefGet controllerPublishSecretRefdriver is the name of the driver to use for this volume.fsType to mount.Get nodeExpandSecretRefGet nodePublishSecretRefGet nodeStageSecretRefreadOnly value to pass to ControllerPublishVolumeRequest.volumeAttributes of the volume to publish.volumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls.int
hashCode()
nodeExpandSecretRef
(V1SecretReference nodeExpandSecretRef) nodePublishSecretRef
(V1SecretReference nodePublishSecretRef) nodeStageSecretRef
(V1SecretReference nodeStageSecretRef) putVolumeAttributesItem
(String key, String volumeAttributesItem) void
setControllerExpandSecretRef
(V1SecretReference controllerExpandSecretRef) void
setControllerPublishSecretRef
(V1SecretReference controllerPublishSecretRef) void
void
void
setNodeExpandSecretRef
(V1SecretReference nodeExpandSecretRef) void
setNodePublishSecretRef
(V1SecretReference nodePublishSecretRef) void
setNodeStageSecretRef
(V1SecretReference nodeStageSecretRef) void
setReadOnly
(Boolean readOnly) void
setVolumeAttributes
(Map<String, String> volumeAttributes) void
setVolumeHandle
(String volumeHandle) toJson()
Convert an instance of V1CSIPersistentVolumeSource to an JSON stringtoString()
static void
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues foundvolumeAttributes
(Map<String, String> volumeAttributes) volumeHandle
(String volumeHandle)
-
Field Details
-
SERIALIZED_NAME_CONTROLLER_EXPAND_SECRET_REF
- See Also:
-
SERIALIZED_NAME_CONTROLLER_PUBLISH_SECRET_REF
- See Also:
-
SERIALIZED_NAME_DRIVER
- See Also:
-
SERIALIZED_NAME_FS_TYPE
- See Also:
-
SERIALIZED_NAME_NODE_EXPAND_SECRET_REF
- See Also:
-
SERIALIZED_NAME_NODE_PUBLISH_SECRET_REF
- See Also:
-
SERIALIZED_NAME_NODE_STAGE_SECRET_REF
- See Also:
-
SERIALIZED_NAME_READ_ONLY
- See Also:
-
SERIALIZED_NAME_VOLUME_ATTRIBUTES
- See Also:
-
SERIALIZED_NAME_VOLUME_HANDLE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1CSIPersistentVolumeSource
public V1CSIPersistentVolumeSource()
-
-
Method Details
-
controllerExpandSecretRef
public V1CSIPersistentVolumeSource controllerExpandSecretRef(V1SecretReference controllerExpandSecretRef) -
getControllerExpandSecretRef
Get controllerExpandSecretRef- Returns:
- controllerExpandSecretRef
-
setControllerExpandSecretRef
-
controllerPublishSecretRef
public V1CSIPersistentVolumeSource controllerPublishSecretRef(V1SecretReference controllerPublishSecretRef) -
getControllerPublishSecretRef
Get controllerPublishSecretRef- Returns:
- controllerPublishSecretRef
-
setControllerPublishSecretRef
-
driver
-
getDriver
driver is the name of the driver to use for this volume. Required.- Returns:
- driver
-
setDriver
-
fsType
-
getFsType
fsType to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\".- Returns:
- fsType
-
setFsType
-
nodeExpandSecretRef
-
getNodeExpandSecretRef
Get nodeExpandSecretRef- Returns:
- nodeExpandSecretRef
-
setNodeExpandSecretRef
-
nodePublishSecretRef
-
getNodePublishSecretRef
Get nodePublishSecretRef- Returns:
- nodePublishSecretRef
-
setNodePublishSecretRef
-
nodeStageSecretRef
-
getNodeStageSecretRef
Get nodeStageSecretRef- Returns:
- nodeStageSecretRef
-
setNodeStageSecretRef
-
readOnly
-
getReadOnly
readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write).- Returns:
- readOnly
-
setReadOnly
-
volumeAttributes
-
putVolumeAttributesItem
-
getVolumeAttributes
volumeAttributes of the volume to publish.- Returns:
- volumeAttributes
-
setVolumeAttributes
-
volumeHandle
-
getVolumeHandle
volumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required.- Returns:
- volumeHandle
-
setVolumeHandle
-
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 V1CSIPersistentVolumeSource
-
fromJson
Create an instance of V1CSIPersistentVolumeSource given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1CSIPersistentVolumeSource
- Throws:
IOException
- if the JSON string is invalid with respect to V1CSIPersistentVolumeSource
-
toJson
Convert an instance of V1CSIPersistentVolumeSource to an JSON string- Returns:
- JSON string
-