Class InspectPodData
java.lang.Object
io.github.alersrt.pod4j.openapi.model.InspectPodData
@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 InspectPodData
extends Object
InspectPodData contains detailed information on a pod's configuration and state. It is used as the output of Inspect on pods.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddBlkioWeightDeviceItem(InspectBlkioWeightDevice blkioWeightDeviceItem) addContainersItem(InspectPodContainerInfo containersItem) addCreateCommandItem(String createCommandItem) addDeviceReadBpsItem(InspectBlkioThrottleDevice deviceReadBpsItem) addDevicesItem(InspectDevice devicesItem) addDeviceWriteBpsItem(InspectBlkioThrottleDevice deviceWriteBpsItem) addMountsItem(InspectMount mountsItem) addSecurityOptItem(String securityOptItem) addSharedNamespacesItem(String sharedNamespacesItem) addVolumesFromItem(String volumesFromItem) blkioWeight(Integer blkioWeight) blkioWeightDevice(List<@Valid InspectBlkioWeightDevice> blkioWeightDevice) cgroupParent(String cgroupParent) cgroupPath(String cgroupPath) containers(List<@Valid InspectPodContainerInfo> containers) cpusetCpus(String cpusetCpus) cpusetMems(String cpusetMems) createCgroup(Boolean createCgroup) createCommand(List<String> createCommand) created(OffsetDateTime created) createInfra(Boolean createInfra) deviceReadBps(List<@Valid InspectBlkioThrottleDevice> deviceReadBps) devices(List<@Valid InspectDevice> devices) deviceWriteBps(List<@Valid InspectBlkioThrottleDevice> deviceWriteBps) booleanexitPolicy(String exitPolicy) static InspectPodDataCreate an instance of InspectPodData given an JSON stringBlkioWeight contains the blkio weight limit for the pod@Valid List<@Valid InspectBlkioWeightDevice>BlkioWeightDevice contains the blkio weight device limits for the podCgroupParent is the parent of the pod's Cgroup.CgroupPath is the path to the pod's Cgroup.@Valid List<@Valid InspectPodContainerInfo>Containers gives a brief summary of all containers in the pod and their current status.CPUPeriod contains the CPU period of the podCPUQuota contains the CPU quota of the podCPUSetCPUs contains linux specific CPU data for the podCPUSetMems contains linux specific CPU data for the podCPUShares contains the cpu shares for the podCreateCgroup is whether this pod will create its own Cgroup to group containers under.CreateCommand is the full command plus arguments of the process the container has been created with.@Valid OffsetDateTimeCreated is the time when the pod was created.CreateInfra is whether this pod will create an infra container to share namespaces.@Valid List<@Valid InspectBlkioThrottleDevice>BlkioDeviceReadBps contains the Read/Access limit for the pod's devices@Valid List<@Valid InspectDevice>Devices contains the specified host devices@Valid List<@Valid InspectBlkioThrottleDevice>BlkioDeviceReadBps contains the Read/Access limit for the pod's devicesExitPolicy of the pod.Hostname is the hostname that the pod will set.getId()ID is the ID of the pod.@Valid InspectPodInfraConfigGet infraConfigInfraContainerID is the ID of the pod's infra container, if one is present.Labels is a set of key-value labels that have been applied to the pod.Number of the pod's Libpod lock.MemoryLimit contains the specified cgroup memory limit for the podMemorySwap contains the specified memory swap limit for the pod@Valid List<@Valid InspectMount>Mounts contains volume related information for the podgetName()Name is the name of the pod.Namespace is the Libpod namespace the pod is placed in.NumContainers is the number of containers in the pod, including the infra container.RestartPolicy of the pod.SecurityOpt contains the specified security labels and related SELinux informationSharedNamespaces contains a list of namespaces that will be shared by containers within the pod.getState()State represents the current state of the pod.VolumesFrom contains the containers that the pod inherits mounts frominthashCode()infraConfig(InspectPodInfraConfig infraConfig) infraContainerID(String infraContainerID) lockNumber(Integer lockNumber) memoryLimit(Integer memoryLimit) memorySwap(Integer memorySwap) mounts(List<@Valid InspectMount> mounts) numContainers(Integer numContainers) putLabelsItem(String key, String labelsItem) restartPolicy(String restartPolicy) securityOpt(List<String> securityOpt) voidsetBlkioWeight(Integer blkioWeight) voidsetBlkioWeightDevice(List<@Valid InspectBlkioWeightDevice> blkioWeightDevice) voidsetCgroupParent(String cgroupParent) voidsetCgroupPath(String cgroupPath) voidsetContainers(List<@Valid InspectPodContainerInfo> containers) voidsetCpuPeriod(Integer cpuPeriod) voidsetCpuQuota(Long cpuQuota) voidsetCpusetCpus(String cpusetCpus) voidsetCpusetMems(String cpusetMems) voidsetCpuShares(Integer cpuShares) voidsetCreateCgroup(Boolean createCgroup) voidsetCreateCommand(List<String> createCommand) voidsetCreated(OffsetDateTime created) voidsetCreateInfra(Boolean createInfra) voidsetDeviceReadBps(List<@Valid InspectBlkioThrottleDevice> deviceReadBps) voidsetDevices(List<@Valid InspectDevice> devices) voidsetDeviceWriteBps(List<@Valid InspectBlkioThrottleDevice> deviceWriteBps) voidsetExitPolicy(String exitPolicy) voidsetHostname(String hostname) voidvoidsetInfraConfig(InspectPodInfraConfig infraConfig) voidsetInfraContainerID(String infraContainerID) voidvoidsetLockNumber(Integer lockNumber) voidsetMemoryLimit(Integer memoryLimit) voidsetMemorySwap(Integer memorySwap) voidsetMounts(List<@Valid InspectMount> mounts) voidvoidsetNamespace(String namespace) voidsetNumContainers(Integer numContainers) voidsetRestartPolicy(String restartPolicy) voidsetSecurityOpt(List<String> securityOpt) voidsetSharedNamespaces(List<String> sharedNamespaces) voidvoidsetVolumesFrom(List<String> volumesFrom) sharedNamespaces(List<String> sharedNamespaces) toJson()Convert an instance of InspectPodData to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundvolumesFrom(List<String> volumesFrom)
-
Field Details
-
SERIALIZED_NAME_CGROUP_PARENT
- See Also:
-
SERIALIZED_NAME_CGROUP_PATH
- See Also:
-
SERIALIZED_NAME_CONTAINERS
- See Also:
-
SERIALIZED_NAME_CREATE_CGROUP
- See Also:
-
SERIALIZED_NAME_CREATE_COMMAND
- See Also:
-
SERIALIZED_NAME_CREATE_INFRA
- See Also:
-
SERIALIZED_NAME_CREATED
- See Also:
-
SERIALIZED_NAME_EXIT_POLICY
- See Also:
-
SERIALIZED_NAME_HOSTNAME
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_INFRA_CONFIG
- See Also:
-
SERIALIZED_NAME_INFRA_CONTAINER_I_D
- See Also:
-
SERIALIZED_NAME_LABELS
- See Also:
-
SERIALIZED_NAME_LOCK_NUMBER
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_NAMESPACE
- See Also:
-
SERIALIZED_NAME_NUM_CONTAINERS
- See Also:
-
SERIALIZED_NAME_RESTART_POLICY
- See Also:
-
SERIALIZED_NAME_SHARED_NAMESPACES
- See Also:
-
SERIALIZED_NAME_STATE
- See Also:
-
SERIALIZED_NAME_BLKIO_WEIGHT
- See Also:
-
SERIALIZED_NAME_BLKIO_WEIGHT_DEVICE
- See Also:
-
SERIALIZED_NAME_CPU_PERIOD
- See Also:
-
SERIALIZED_NAME_CPU_QUOTA
- See Also:
-
SERIALIZED_NAME_CPU_SHARES
- See Also:
-
SERIALIZED_NAME_CPUSET_CPUS
- See Also:
-
SERIALIZED_NAME_CPUSET_MEMS
- See Also:
-
SERIALIZED_NAME_DEVICE_READ_BPS
- See Also:
-
SERIALIZED_NAME_DEVICE_WRITE_BPS
- See Also:
-
SERIALIZED_NAME_DEVICES
- See Also:
-
SERIALIZED_NAME_MEMORY_LIMIT
- See Also:
-
SERIALIZED_NAME_MEMORY_SWAP
- See Also:
-
SERIALIZED_NAME_MOUNTS
- See Also:
-
SERIALIZED_NAME_SECURITY_OPT
- See Also:
-
SERIALIZED_NAME_VOLUMES_FROM
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
InspectPodData
public InspectPodData()
-
-
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 InspectPodData
-
fromJson
Create an instance of InspectPodData given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of InspectPodData
- Throws:
IOException- if the JSON string is invalid with respect to InspectPodData
-
cgroupParent
-
getCgroupParent
CgroupParent is the parent of the pod's Cgroup.- Returns:
- cgroupParent
-
setCgroupParent
-
cgroupPath
-
getCgroupPath
CgroupPath is the path to the pod's Cgroup.- Returns:
- cgroupPath
-
setCgroupPath
-
containers
-
addContainersItem
-
getContainers
Containers gives a brief summary of all containers in the pod and their current status.- Returns:
- containers
-
setContainers
-
createCgroup
-
getCreateCgroup
CreateCgroup is whether this pod will create its own Cgroup to group containers under.- Returns:
- createCgroup
-
setCreateCgroup
-
createCommand
-
addCreateCommandItem
-
getCreateCommand
CreateCommand is the full command plus arguments of the process the container has been created with.- Returns:
- createCommand
-
setCreateCommand
-
createInfra
-
getCreateInfra
CreateInfra is whether this pod will create an infra container to share namespaces.- Returns:
- createInfra
-
setCreateInfra
-
created
-
getCreated
Created is the time when the pod was created.- Returns:
- created
-
setCreated
-
exitPolicy
-
getExitPolicy
ExitPolicy of the pod.- Returns:
- exitPolicy
-
setExitPolicy
-
hostname
-
getHostname
Hostname is the hostname that the pod will set.- Returns:
- hostname
-
setHostname
-
id
-
getId
ID is the ID of the pod.- Returns:
- id
-
setId
-
infraConfig
-
getInfraConfig
Get infraConfig- Returns:
- infraConfig
-
setInfraConfig
-
infraContainerID
-
getInfraContainerID
InfraContainerID is the ID of the pod's infra container, if one is present.- Returns:
- infraContainerID
-
setInfraContainerID
-
labels
-
putLabelsItem
-
getLabels
Labels is a set of key-value labels that have been applied to the pod.- Returns:
- labels
-
setLabels
-
lockNumber
-
getLockNumber
Number of the pod's Libpod lock.- Returns:
- lockNumber
-
setLockNumber
-
name
-
getName
Name is the name of the pod.- Returns:
- name
-
setName
-
namespace
-
getNamespace
Namespace is the Libpod namespace the pod is placed in.- Returns:
- namespace
-
setNamespace
-
numContainers
-
getNumContainers
NumContainers is the number of containers in the pod, including the infra container.- Returns:
- numContainers
-
setNumContainers
-
restartPolicy
-
getRestartPolicy
RestartPolicy of the pod.- Returns:
- restartPolicy
-
setRestartPolicy
-
state
-
getState
State represents the current state of the pod.- Returns:
- state
-
setState
-
blkioWeight
-
getBlkioWeight
BlkioWeight contains the blkio weight limit for the pod- Returns:
- blkioWeight
-
setBlkioWeight
-
blkioWeightDevice
-
addBlkioWeightDeviceItem
-
getBlkioWeightDevice
BlkioWeightDevice contains the blkio weight device limits for the pod- Returns:
- blkioWeightDevice
-
setBlkioWeightDevice
-
cpuPeriod
-
getCpuPeriod
CPUPeriod contains the CPU period of the pod- Returns:
- cpuPeriod
-
setCpuPeriod
-
cpuQuota
-
getCpuQuota
CPUQuota contains the CPU quota of the pod- Returns:
- cpuQuota
-
setCpuQuota
-
cpusetCpus
-
getCpusetCpus
CPUSetCPUs contains linux specific CPU data for the pod- Returns:
- cpusetCpus
-
setCpusetCpus
-
cpusetMems
-
getCpusetMems
CPUSetMems contains linux specific CPU data for the pod- Returns:
- cpusetMems
-
setCpusetMems
-
deviceReadBps
-
addDeviceReadBpsItem
-
getDeviceReadBps
BlkioDeviceReadBps contains the Read/Access limit for the pod's devices- Returns:
- deviceReadBps
-
setDeviceReadBps
-
deviceWriteBps
-
addDeviceWriteBpsItem
-
getDeviceWriteBps
BlkioDeviceReadBps contains the Read/Access limit for the pod's devices- Returns:
- deviceWriteBps
-
setDeviceWriteBps
-
devices
-
addDevicesItem
-
getDevices
Devices contains the specified host devices- Returns:
- devices
-
setDevices
-
memoryLimit
-
getMemoryLimit
MemoryLimit contains the specified cgroup memory limit for the pod- Returns:
- memoryLimit
-
setMemoryLimit
-
memorySwap
-
getMemorySwap
MemorySwap contains the specified memory swap limit for the pod- Returns:
- memorySwap
-
setMemorySwap
-
mounts
-
addMountsItem
-
getMounts
Mounts contains volume related information for the pod- Returns:
- mounts
-
setMounts
-
securityOpt
-
addSecurityOptItem
-
getSecurityOpt
SecurityOpt contains the specified security labels and related SELinux information- Returns:
- securityOpt
-
setSecurityOpt
-
volumesFrom
-
addVolumesFromItem
-
getVolumesFrom
VolumesFrom contains the containers that the pod inherits mounts from- Returns:
- volumesFrom
-
setVolumesFrom
-
equals
-
hashCode
public int hashCode() -
toString
-
toJson
Convert an instance of InspectPodData to an JSON string- Returns:
- JSON string
-