Class V1LocalVolumeSource
java.lang.Object
io.kubernetes.client.openapi.models.V1LocalVolumeSource
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-04-23T13:45:09.091597Z[Etc/UTC]")
public class V1LocalVolumeSource
extends Object
Local represents directly-attached storage with node affinity (Beta feature)
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static V1LocalVolumeSource
Create an instance of V1LocalVolumeSource given an JSON stringfsType is the filesystem type to mount.getPath()
path of the full path to the volume on the node.int
hashCode()
void
void
toJson()
Convert an instance of V1LocalVolumeSource 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_FS_TYPE
- See Also:
-
SERIALIZED_NAME_PATH
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1LocalVolumeSource
public V1LocalVolumeSource()
-
-
Method Details
-
fsType
-
getFsType
fsType is the filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default value is to auto-select a filesystem if unspecified.- Returns:
- fsType
-
setFsType
-
path
-
getPath
path of the full path to the volume on the node. It can be either a directory or block device (disk, partition, ...).- Returns:
- path
-
setPath
-
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 V1LocalVolumeSource
-
fromJson
Create an instance of V1LocalVolumeSource given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1LocalVolumeSource
- Throws:
IOException
- if the JSON string is invalid with respect to V1LocalVolumeSource
-
toJson
Convert an instance of V1LocalVolumeSource to an JSON string- Returns:
- JSON string
-