Class V1CephFSPersistentVolumeSource
java.lang.Object
io.kubernetes.client.openapi.models.V1CephFSPersistentVolumeSource
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V1CephFSPersistentVolumeSource
extends Object
Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddMonitorsItem
(String monitorsItem) boolean
Create an instance of V1CephFSPersistentVolumeSource given an JSON stringmonitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-itgetPath()
path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /readOnly is Optional: Defaults to false (read/write).secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-itGet secretRefgetUser()
user is Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-itint
hashCode()
secretFile
(String secretFile) secretRef
(V1SecretReference secretRef) void
setMonitors
(List<String> monitors) void
void
setReadOnly
(Boolean readOnly) void
setSecretFile
(String secretFile) void
setSecretRef
(V1SecretReference secretRef) void
toJson()
Convert an instance of V1CephFSPersistentVolumeSource 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_MONITORS
- See Also:
-
SERIALIZED_NAME_PATH
- See Also:
-
SERIALIZED_NAME_READ_ONLY
- See Also:
-
SERIALIZED_NAME_SECRET_FILE
- See Also:
-
SERIALIZED_NAME_SECRET_REF
- See Also:
-
SERIALIZED_NAME_USER
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1CephFSPersistentVolumeSource
public V1CephFSPersistentVolumeSource()
-
-
Method Details
-
monitors
-
addMonitorsItem
-
getMonitors
monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it- Returns:
- monitors
-
setMonitors
-
path
-
getPath
path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /- Returns:
- path
-
setPath
-
readOnly
-
getReadOnly
readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it- Returns:
- readOnly
-
setReadOnly
-
secretFile
-
getSecretFile
secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it- Returns:
- secretFile
-
setSecretFile
-
secretRef
-
getSecretRef
Get secretRef- Returns:
- secretRef
-
setSecretRef
-
user
-
getUser
user is Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it- Returns:
- user
-
setUser
-
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 V1CephFSPersistentVolumeSource
-
fromJson
Create an instance of V1CephFSPersistentVolumeSource given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1CephFSPersistentVolumeSource
- Throws:
IOException
- if the JSON string is invalid with respect to V1CephFSPersistentVolumeSource
-
toJson
Convert an instance of V1CephFSPersistentVolumeSource to an JSON string- Returns:
- JSON string
-