Class PodStorageConfig
java.lang.Object
io.github.alersrt.pod4j.openapi.model.PodStorageConfig
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class PodStorageConfig
extends Object
implements Serializable
PodStorageConfig
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddImageVolumesItem(ImageVolume imageVolumesItem) addMountsItem(Mount mountsItem) addOverlayVolumesItem(OverlayVolume overlayVolumesItem) addVolumesFromItem(String volumesFromItem) addVolumesItem(NamedVolume volumesItem) booleanstatic PodStorageConfigCreate an instance of PodStorageConfig given an JSON string@Valid List<ImageVolume>Image volumes bind-mount a container-image mount into the pod's infra container.Mounts are mounts that will be added to the pod.@Valid List<OverlayVolume>Overlay volumes are named volumes that will be added to the pod.ShmSize is the size of the tmpfs to mount in at /dev/shm, in bytes.ShmSizeSystemd is the size of systemd-specific tmpfs mounts specifically /run, /run/lock, /var/log/journal and /tmp.@Valid List<NamedVolume>Volumes are named volumes that will be added to the pod.VolumesFrom is a set of containers whose volumes will be added to this pod.inthashCode()imageVolumes(List<ImageVolume> imageVolumes) overlayVolumes(List<OverlayVolume> overlayVolumes) voidsetImageVolumes(List<ImageVolume> imageVolumes) voidvoidsetOverlayVolumes(List<OverlayVolume> overlayVolumes) voidsetShmSize(Long shmSize) voidsetShmSizeSystemd(Long shmSizeSystemd) voidsetVolumes(List<NamedVolume> volumes) voidsetVolumesFrom(List<String> volumesFrom) shmSizeSystemd(Long shmSizeSystemd) toJson()Convert an instance of PodStorageConfig to an JSON stringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues foundvolumes(List<NamedVolume> volumes) volumesFrom(List<String> volumesFrom)
-
Field Details
-
SERIALIZED_NAME_IMAGE_VOLUMES
- See Also:
-
SERIALIZED_NAME_MOUNTS
- See Also:
-
SERIALIZED_NAME_OVERLAY_VOLUMES
- See Also:
-
SERIALIZED_NAME_SHM_SIZE
- See Also:
-
SERIALIZED_NAME_SHM_SIZE_SYSTEMD
- See Also:
-
SERIALIZED_NAME_VOLUMES
- See Also:
-
SERIALIZED_NAME_VOLUMES_FROM
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
PodStorageConfig
public PodStorageConfig()
-
-
Method Details
-
imageVolumes
-
addImageVolumesItem
-
getImageVolumes
Image volumes bind-mount a container-image mount into the pod's infra container. Optional.- Returns:
- imageVolumes
-
setImageVolumes
-
mounts
-
addMountsItem
-
getMounts
Mounts are mounts that will be added to the pod. These will supersede Image Volumes and VolumesFrom volumes where there are conflicts. Optional.- Returns:
- mounts
-
setMounts
-
overlayVolumes
-
addOverlayVolumesItem
-
getOverlayVolumes
Overlay volumes are named volumes that will be added to the pod. Optional.- Returns:
- overlayVolumes
-
setOverlayVolumes
-
shmSize
-
getShmSize
ShmSize is the size of the tmpfs to mount in at /dev/shm, in bytes. Conflicts with ShmSize if IpcNS is not private. Optional.- Returns:
- shmSize
-
setShmSize
-
shmSizeSystemd
-
getShmSizeSystemd
ShmSizeSystemd is the size of systemd-specific tmpfs mounts specifically /run, /run/lock, /var/log/journal and /tmp. Optional- Returns:
- shmSizeSystemd
-
setShmSizeSystemd
-
volumes
-
addVolumesItem
-
getVolumes
Volumes are named volumes that will be added to the pod. These will supersede Image Volumes and VolumesFrom volumes where there are conflicts. Optional.- Returns:
- volumes
-
setVolumes
-
volumesFrom
-
addVolumesFromItem
-
getVolumesFrom
VolumesFrom is a set of containers whose volumes will be added to this pod. The name or ID of the container must be provided, and may optionally be followed by a : and then one or more comma-separated options. Valid options are 'ro', 'rw', and 'z'. Options will be used for all volumes sourced from the container.- Returns:
- volumesFrom
-
setVolumesFrom
-
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 PodStorageConfig
-
fromJson
Create an instance of PodStorageConfig given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PodStorageConfig
- Throws:
IOException- if the JSON string is invalid with respect to PodStorageConfig
-
toJson
Convert an instance of PodStorageConfig to an JSON string- Returns:
- JSON string
-