Class LinuxResources
java.lang.Object
io.github.alersrt.pod4j.openapi.model.LinuxResources
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-11-19T11:19:05.435500352+07:00[Asia/Barnaul]",
comments="Generator version: 7.7.0")
public class LinuxResources
extends Object
LinuxResources has container runtime resource constraints
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDevicesItem(LinuxDeviceCgroup devicesItem) addHugepageLimitsItem(LinuxHugepageLimit hugepageLimitsItem) blockIO(LinuxBlockIO blockIO) devices(List<LinuxDeviceCgroup> devices) booleanstatic LinuxResourcesCreate an instance of LinuxResources given an JSON stringGet blockIOgetCpu()Get cpuDevices configures the device allowlist.Hugetlb limits (in bytes).Get memoryGet networkgetPids()Get pidsgetRdma()Rdma resource restriction configuration.Unified resources.inthashCode()hugepageLimits(List<LinuxHugepageLimit> hugepageLimits) memory(LinuxMemory memory) network(LinuxNetwork network) putRdmaItem(String key, LinuxRdma rdmaItem) putUnifiedItem(String key, String unifiedItem) voidsetBlockIO(LinuxBlockIO blockIO) voidvoidsetDevices(List<LinuxDeviceCgroup> devices) voidsetHugepageLimits(List<LinuxHugepageLimit> hugepageLimits) voidsetMemory(LinuxMemory memory) voidsetNetwork(LinuxNetwork network) voidvoidvoidsetUnified(Map<String, String> unified) toJson()Convert an instance of LinuxResources 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_BLOCK_I_O
- See Also:
-
SERIALIZED_NAME_CPU
- See Also:
-
SERIALIZED_NAME_DEVICES
- See Also:
-
SERIALIZED_NAME_HUGEPAGE_LIMITS
- See Also:
-
SERIALIZED_NAME_MEMORY
- See Also:
-
SERIALIZED_NAME_NETWORK
- See Also:
-
SERIALIZED_NAME_PIDS
- See Also:
-
SERIALIZED_NAME_RDMA
- See Also:
-
SERIALIZED_NAME_UNIFIED
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
LinuxResources
public LinuxResources()
-
-
Method Details
-
blockIO
-
getBlockIO
Get blockIO- Returns:
- blockIO
-
setBlockIO
-
cpu
-
getCpu
Get cpu- Returns:
- cpu
-
setCpu
-
devices
-
addDevicesItem
-
getDevices
Devices configures the device allowlist.- Returns:
- devices
-
setDevices
-
hugepageLimits
-
addHugepageLimitsItem
-
getHugepageLimits
Hugetlb limits (in bytes). Default to reservation limits if supported.- Returns:
- hugepageLimits
-
setHugepageLimits
-
memory
-
getMemory
Get memory- Returns:
- memory
-
setMemory
-
network
-
getNetwork
Get network- Returns:
- network
-
setNetwork
-
pids
-
getPids
Get pids- Returns:
- pids
-
setPids
-
rdma
-
putRdmaItem
-
getRdma
Rdma resource restriction configuration. Limits are a set of key value pairs that define RDMA resource limits, where the key is device name and value is resource limits.- Returns:
- rdma
-
setRdma
-
unified
-
putUnifiedItem
-
getUnified
Unified resources.- Returns:
- unified
-
setUnified
-
equals
-
hashCode
public int hashCode() -
toString
-
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 LinuxResources
-
fromJson
Create an instance of LinuxResources given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LinuxResources
- Throws:
IOException- if the JSON string is invalid with respect to LinuxResources
-
toJson
Convert an instance of LinuxResources to an JSON string- Returns:
- JSON string
-