Class V1FlexVolumeSource
java.lang.Object
io.kubernetes.client.openapi.models.V1FlexVolumeSource
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V1FlexVolumeSource
extends Object
FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static V1FlexVolumeSource
Create an instance of V1FlexVolumeSource 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 secretRefint
hashCode()
putOptionsItem
(String key, String optionsItem) secretRef
(V1LocalObjectReference secretRef) void
void
void
setOptions
(Map<String, String> options) void
setReadOnly
(Boolean readOnly) void
setSecretRef
(V1LocalObjectReference secretRef) toJson()
Convert an instance of V1FlexVolumeSource to an JSON stringtoString()
static void
validateJsonObject
(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
-
V1FlexVolumeSource
public V1FlexVolumeSource()
-
-
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 V1FlexVolumeSource
-
fromJson
Create an instance of V1FlexVolumeSource given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1FlexVolumeSource
- Throws:
IOException
- if the JSON string is invalid with respect to V1FlexVolumeSource
-
toJson
Convert an instance of V1FlexVolumeSource to an JSON string- Returns:
- JSON string
-