Class V1RBDPersistentVolumeSource
java.lang.Object
io.kubernetes.client.openapi.models.V1RBDPersistentVolumeSource
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V1RBDPersistentVolumeSource
extends Object
Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddMonitorsItem
(String monitorsItem) boolean
static V1RBDPersistentVolumeSource
Create an instance of V1RBDPersistentVolumeSource given an JSON stringfsType is the filesystem type of the volume that you want to mount.getImage()
image is the rados image name.keyring is the path to key ring for RBDUser.monitors is a collection of Ceph monitors.getPool()
pool is the rados pool name.readOnly here will force the ReadOnly setting in VolumeMounts.Get secretRefgetUser()
user is the rados user name.int
hashCode()
secretRef
(V1SecretReference secretRef) void
void
void
setKeyring
(String keyring) void
setMonitors
(List<String> monitors) void
void
setReadOnly
(Boolean readOnly) void
setSecretRef
(V1SecretReference secretRef) void
toJson()
Convert an instance of V1RBDPersistentVolumeSource 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_IMAGE
- See Also:
-
SERIALIZED_NAME_KEYRING
- See Also:
-
SERIALIZED_NAME_MONITORS
- See Also:
-
SERIALIZED_NAME_POOL
- See Also:
-
SERIALIZED_NAME_READ_ONLY
- See Also:
-
SERIALIZED_NAME_SECRET_REF
- See Also:
-
SERIALIZED_NAME_USER
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1RBDPersistentVolumeSource
public V1RBDPersistentVolumeSource()
-
-
Method Details
-
fsType
-
getFsType
fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd- Returns:
- fsType
-
setFsType
-
image
-
getImage
image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it- Returns:
- image
-
setImage
-
keyring
-
getKeyring
keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it- Returns:
- keyring
-
setKeyring
-
monitors
-
addMonitorsItem
-
getMonitors
monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it- Returns:
- monitors
-
setMonitors
-
pool
-
getPool
pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it- Returns:
- pool
-
setPool
-
readOnly
-
getReadOnly
readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it- Returns:
- readOnly
-
setReadOnly
-
secretRef
-
getSecretRef
Get secretRef- Returns:
- secretRef
-
setSecretRef
-
user
-
getUser
user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/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 V1RBDPersistentVolumeSource
-
fromJson
Create an instance of V1RBDPersistentVolumeSource given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1RBDPersistentVolumeSource
- Throws:
IOException
- if the JSON string is invalid with respect to V1RBDPersistentVolumeSource
-
toJson
Convert an instance of V1RBDPersistentVolumeSource to an JSON string- Returns:
- JSON string
-