Class InspectMount
java.lang.Object
io.github.alersrt.pod4j.openapi.model.InspectMount
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-11-29T01:29:49.168634544+07:00[Asia/Barnaul]",
comments="Generator version: 7.7.0")
public class InspectMount
extends Object
InspectMount provides a record of a single mount in a container. It contains fields for both named and normal volumes. Only user-specified volumes will be included, and tmpfs volumes are not included even if the user specified them.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddOptionsItem(String optionsItem) destination(String destination) booleanstatic InspectMountCreate an instance of InspectMount given an JSON stringThe destination directory for the volume.The driver used for the named volume.getMode()Contains SELinux :z/:Z mount options.getName()The name of the volume.All remaining mount options.Mount propagation for the mount.getRW()Whether the volume is read-writeThe source directory for the volume.SubPath object from the volume.getType()Whether the mount is a volume or bind mount.inthashCode()propagation(String propagation) voidsetDestination(String destination) voidvoidvoidvoidsetOptions(List<String> options) voidsetPropagation(String propagation) voidvoidvoidsetSubPath(String subPath) voidtoJson()Convert an instance of InspectMount to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_DESTINATION
- See Also:
-
SERIALIZED_NAME_DRIVER
- See Also:
-
SERIALIZED_NAME_MODE
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_OPTIONS
- See Also:
-
SERIALIZED_NAME_PROPAGATION
- See Also:
-
SERIALIZED_NAME_R_W
- See Also:
-
SERIALIZED_NAME_SOURCE
- See Also:
-
SERIALIZED_NAME_SUB_PATH
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
InspectMount
public InspectMount()
-
-
Method Details
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to InspectMount
-
fromJson
Create an instance of InspectMount given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of InspectMount
- Throws:
IOException- if the JSON string is invalid with respect to InspectMount
-
destination
-
getDestination
The destination directory for the volume. Specified as a path within the container, as it would be passed into the OCI runtime.- Returns:
- destination
-
setDestination
-
driver
-
getDriver
The driver used for the named volume. Empty for bind mounts.- Returns:
- driver
-
setDriver
-
mode
-
getMode
Contains SELinux :z/:Z mount options. Unclear what, if anything, else goes in here.- Returns:
- mode
-
setMode
-
name
-
getName
The name of the volume. Empty for bind mounts.- Returns:
- name
-
setName
-
options
-
addOptionsItem
-
getOptions
All remaining mount options. Additional data, not present in the original output.- Returns:
- options
-
setOptions
-
propagation
-
getPropagation
Mount propagation for the mount. Can be empty if not specified, but is always printed - no omitempty.- Returns:
- propagation
-
setPropagation
-
RW
-
getRW
Whether the volume is read-write- Returns:
- RW
-
setRW
-
source
-
getSource
The source directory for the volume.- Returns:
- source
-
setSource
-
subPath
-
getSubPath
SubPath object from the volume. Specified as a path within the source volume to be mounted at the Destination.- Returns:
- subPath
-
setSubPath
-
type
-
getType
Whether the mount is a volume or bind mount. Allowed values are \"volume\" and \"bind\".- Returns:
- type
-
setType
-
equals
-
hashCode
public int hashCode() -
toString
-
toJson
Convert an instance of InspectMount to an JSON string- Returns:
- JSON string
-