Class V1GlusterfsVolumeSource
java.lang.Object
io.kubernetes.client.openapi.models.V1GlusterfsVolumeSource
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V1GlusterfsVolumeSource
extends Object
Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static V1GlusterfsVolumeSource
Create an instance of V1GlusterfsVolumeSource given an JSON stringendpoints is the endpoint name that details Glusterfs topology.getPath()
path is the Glusterfs volume path.readOnly here will force the Glusterfs volume to be mounted with read-only permissions.int
hashCode()
void
setEndpoints
(String endpoints) void
void
setReadOnly
(Boolean readOnly) toJson()
Convert an instance of V1GlusterfsVolumeSource 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_ENDPOINTS
- See Also:
-
SERIALIZED_NAME_PATH
- See Also:
-
SERIALIZED_NAME_READ_ONLY
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1GlusterfsVolumeSource
public V1GlusterfsVolumeSource()
-
-
Method Details
-
endpoints
-
getEndpoints
endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod- Returns:
- endpoints
-
setEndpoints
-
path
-
getPath
path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod- Returns:
- path
-
setPath
-
readOnly
-
getReadOnly
readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod- Returns:
- readOnly
-
setReadOnly
-
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 V1GlusterfsVolumeSource
-
fromJson
Create an instance of V1GlusterfsVolumeSource given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1GlusterfsVolumeSource
- Throws:
IOException
- if the JSON string is invalid with respect to V1GlusterfsVolumeSource
-
toJson
Convert an instance of V1GlusterfsVolumeSource to an JSON string- Returns:
- JSON string
-