Class V1FlexPersistentVolumeSource
java.lang.Object
io.kubernetes.client.openapi.models.V1FlexPersistentVolumeSource
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-04-23T13:45:09.091597Z[Etc/UTC]")
public class V1FlexPersistentVolumeSource
extends Object
FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic V1FlexPersistentVolumeSourceCreate an instance of V1FlexPersistentVolumeSource given an JSON stringdriver is the name of the driver to use for this volume.fsType is the Filesystem type to mount.options is Optional: this field holds extra command options if any.readOnly is Optional: defaults to false (read/write).Get secretRefinthashCode()putOptionsItem(String key, String optionsItem) secretRef(V1SecretReference secretRef) voidvoidvoidsetOptions(Map<String, String> options) voidsetReadOnly(Boolean readOnly) voidsetSecretRef(V1SecretReference secretRef) toJson()Convert an instance of V1FlexPersistentVolumeSource 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_DRIVER
- See Also:
-
SERIALIZED_NAME_FS_TYPE
- See Also:
-
SERIALIZED_NAME_OPTIONS
- See Also:
-
SERIALIZED_NAME_READ_ONLY
- See Also:
-
SERIALIZED_NAME_SECRET_REF
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1FlexPersistentVolumeSource
public V1FlexPersistentVolumeSource()
-
-
Method Details
-
driver
-
getDriver
driver is the name of the driver to use for this volume.- Returns:
- driver
-
setDriver
-
fsType
-
getFsType
fsType is the Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.- Returns:
- fsType
-
setFsType
-
options
-
putOptionsItem
-
getOptions
options is Optional: this field holds extra command options if any.- Returns:
- options
-
setOptions
-
readOnly
-
getReadOnly
readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.- Returns:
- readOnly
-
setReadOnly
-
secretRef
-
getSecretRef
Get secretRef- Returns:
- secretRef
-
setSecretRef
-
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 V1FlexPersistentVolumeSource
-
fromJson
Create an instance of V1FlexPersistentVolumeSource given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of V1FlexPersistentVolumeSource
- Throws:
IOException- if the JSON string is invalid with respect to V1FlexPersistentVolumeSource
-
toJson
Convert an instance of V1FlexPersistentVolumeSource to an JSON string- Returns:
- JSON string
-