Class V1HostPathVolumeSource
java.lang.Object
io.kubernetes.client.openapi.models.V1HostPathVolumeSource
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V1HostPathVolumeSource
extends Object
Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic V1HostPathVolumeSourceCreate an instance of V1HostPathVolumeSource given an JSON stringgetPath()path of the directory on the host.getType()type for HostPath Volume Defaults to \"\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpathinthashCode()voidvoidtoJson()Convert an instance of V1HostPathVolumeSource 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_PATH
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1HostPathVolumeSource
public V1HostPathVolumeSource()
-
-
Method Details
-
path
-
getPath
path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath- Returns:
- path
-
setPath
-
type
-
getType
type for HostPath Volume Defaults to \"\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath- Returns:
- type
-
setType
-
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 V1HostPathVolumeSource
-
fromJson
Create an instance of V1HostPathVolumeSource given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of V1HostPathVolumeSource
- Throws:
IOException- if the JSON string is invalid with respect to V1HostPathVolumeSource
-
toJson
Convert an instance of V1HostPathVolumeSource to an JSON string- Returns:
- JSON string
-