Class UpdateEntities
java.lang.Object
io.github.alersrt.pod4j.openapi.model.UpdateEntities
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class UpdateEntities
extends Object
implements Serializable
UpdateEntities used to wrap the oci resource spec in a swagger model
- See Also:
-
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 String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddBlkIOWeightDeviceItem(WeightDevice blkIOWeightDeviceItem) addDeviceReadBPsItem(ThrottleDevice deviceReadBPsItem) addDeviceReadIOPsItem(ThrottleDevice deviceReadIOPsItem) addDevicesItem(LinuxDeviceCgroup devicesItem) addDeviceWriteBPsItem(ThrottleDevice deviceWriteBPsItem) addDeviceWriteIOPsItem(ThrottleDevice deviceWriteIOPsItem) addHugepageLimitsItem(LinuxHugepageLimit hugepageLimitsItem) blkIOWeightDevice(List<WeightDevice> blkIOWeightDevice) blockIO(LinuxBlockIO blockIO) deviceReadBPs(List<ThrottleDevice> deviceReadBPs) deviceReadIOPs(List<ThrottleDevice> deviceReadIOPs) devices(List<LinuxDeviceCgroup> devices) deviceWriteBPs(List<ThrottleDevice> deviceWriteBPs) deviceWriteIOPs(List<ThrottleDevice> deviceWriteIOPs) booleanstatic UpdateEntitiesCreate an instance of UpdateEntities given an JSON string@Valid List<WeightDevice>Block IO weight (relative device weight) in the form: ```[{\"Path\": \"device_path\", \"Weight\": weight}]```@Valid LinuxBlockIOGet blockIO@Valid LinuxCPUgetCpu()Get cpu@Valid List<ThrottleDevice>Limit read rate (bytes per second) from a device, in the form: ```[{\"Path\": \"device_path\", \"Rate\": rate}]```@Valid List<ThrottleDevice>Limit read rate (IO per second) from a device, in the form: ```[{\"Path\": \"device_path\", \"Rate\": rate}]```@Valid List<LinuxDeviceCgroup>Devices configures the device allowlist.@Valid List<ThrottleDevice>Limit write rate (bytes per second) to a device, in the form: ```[{\"Path\": \"device_path\", \"Rate\": rate}]```@Valid List<ThrottleDevice>Limit write rate (IO per second) to a device, in the form: ```[{\"Path\": \"device_path\", \"Rate\": rate}]```HealthCmd set a healthcheck command for the container.HealthInterval set an interval for the healthcheck.HealthLogDestination set the destination of the HealthCheck log.HealthMaxLogCount set maximum number of attempts in the HealthCheck log file.HealthMaxLogSize set maximum length in characters of stored HealthCheck log.HealthOnFailure set the action to take once the container turns unhealthy.HealthRetries set the number of retries allowed before a healthcheck is considered to be unhealthy.HealthStartPeriod set the initialization time needed for a container to bootstrap.HealthStartupCmd set a startup healthcheck command for the container.HealthStartupInterval set an interval for the startup healthcheck.HealthStartupRetries set the maximum number of retries before the startup healthcheck will restart the container.HealthStartupSuccess set the number of consecutive successes before the startup healthcheck is marked as successful and the normal healthcheck begins (0 indicates any success will start the regular healthcheck)HealthStartupTimeout set the maximum amount of time that the startup healthcheck may take before it is considered failed.HealthTimeout set the maximum time allowed to complete the healthcheck before an interval is considered failed.@Valid List<LinuxHugepageLimit>Hugetlb limits (in bytes).@Valid LinuxMemoryGet memory@Valid LinuxNetworkGet networkDisable healthchecks on container.@Valid LinuxPidsgetPids()Get pidsgetRdma()Rdma resource restriction configuration.Unified resources.inthashCode()healthInterval(String healthInterval) healthLogDestination(String healthLogDestination) healthMaxLogCount(Integer healthMaxLogCount) healthMaxLogSize(Integer healthMaxLogSize) healthOnFailure(String healthOnFailure) healthRetries(Integer healthRetries) healthStartPeriod(String healthStartPeriod) healthStartupCmd(String healthStartupCmd) healthStartupInterval(String healthStartupInterval) healthStartupRetries(Integer healthStartupRetries) healthStartupSuccess(Integer healthStartupSuccess) healthStartupTimeout(String healthStartupTimeout) healthTimeout(String healthTimeout) hugepageLimits(List<LinuxHugepageLimit> hugepageLimits) memory(LinuxMemory memory) network(LinuxNetwork network) noHealthcheck(Boolean noHealthcheck) putRdmaItem(String key, LinuxRdma rdmaItem) putUnifiedItem(String key, String unifiedItem) voidsetBlkIOWeightDevice(List<WeightDevice> blkIOWeightDevice) voidsetBlockIO(LinuxBlockIO blockIO) voidvoidsetDeviceReadBPs(List<ThrottleDevice> deviceReadBPs) voidsetDeviceReadIOPs(List<ThrottleDevice> deviceReadIOPs) voidsetDevices(List<LinuxDeviceCgroup> devices) voidsetDeviceWriteBPs(List<ThrottleDevice> deviceWriteBPs) voidsetDeviceWriteIOPs(List<ThrottleDevice> deviceWriteIOPs) voidsetHealthCmd(String healthCmd) voidsetHealthInterval(String healthInterval) voidsetHealthLogDestination(String healthLogDestination) voidsetHealthMaxLogCount(Integer healthMaxLogCount) voidsetHealthMaxLogSize(Integer healthMaxLogSize) voidsetHealthOnFailure(String healthOnFailure) voidsetHealthRetries(Integer healthRetries) voidsetHealthStartPeriod(String healthStartPeriod) voidsetHealthStartupCmd(String healthStartupCmd) voidsetHealthStartupInterval(String healthStartupInterval) voidsetHealthStartupRetries(Integer healthStartupRetries) voidsetHealthStartupSuccess(Integer healthStartupSuccess) voidsetHealthStartupTimeout(String healthStartupTimeout) voidsetHealthTimeout(String healthTimeout) voidsetHugepageLimits(List<LinuxHugepageLimit> hugepageLimits) voidsetMemory(LinuxMemory memory) voidsetNetwork(LinuxNetwork network) voidsetNoHealthcheck(Boolean noHealthcheck) voidvoidvoidsetUnified(Map<String, String> unified) toJson()Convert an instance of UpdateEntities to an JSON stringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_BLK_I_O_WEIGHT_DEVICE
- See Also:
-
SERIALIZED_NAME_DEVICE_READ_B_PS
- See Also:
-
SERIALIZED_NAME_DEVICE_READ_I_O_PS
- See Also:
-
SERIALIZED_NAME_DEVICE_WRITE_B_PS
- See Also:
-
SERIALIZED_NAME_DEVICE_WRITE_I_O_PS
- See Also:
-
SERIALIZED_NAME_BLOCK_I_O
- See Also:
-
SERIALIZED_NAME_CPU
- See Also:
-
SERIALIZED_NAME_DEVICES
- See Also:
-
SERIALIZED_NAME_HEALTH_CMD
- See Also:
-
SERIALIZED_NAME_HEALTH_INTERVAL
- See Also:
-
SERIALIZED_NAME_HEALTH_LOG_DESTINATION
- See Also:
-
SERIALIZED_NAME_HEALTH_MAX_LOG_COUNT
- See Also:
-
SERIALIZED_NAME_HEALTH_MAX_LOG_SIZE
- See Also:
-
SERIALIZED_NAME_HEALTH_ON_FAILURE
- See Also:
-
SERIALIZED_NAME_HEALTH_RETRIES
- See Also:
-
SERIALIZED_NAME_HEALTH_START_PERIOD
- See Also:
-
SERIALIZED_NAME_HEALTH_STARTUP_CMD
- See Also:
-
SERIALIZED_NAME_HEALTH_STARTUP_INTERVAL
- See Also:
-
SERIALIZED_NAME_HEALTH_STARTUP_RETRIES
- See Also:
-
SERIALIZED_NAME_HEALTH_STARTUP_SUCCESS
- See Also:
-
SERIALIZED_NAME_HEALTH_STARTUP_TIMEOUT
- See Also:
-
SERIALIZED_NAME_HEALTH_TIMEOUT
- See Also:
-
SERIALIZED_NAME_HUGEPAGE_LIMITS
- See Also:
-
SERIALIZED_NAME_MEMORY
- See Also:
-
SERIALIZED_NAME_NETWORK
- See Also:
-
SERIALIZED_NAME_NO_HEALTHCHECK
- See Also:
-
SERIALIZED_NAME_PIDS
- See Also:
-
SERIALIZED_NAME_RDMA
- See Also:
-
SERIALIZED_NAME_UNIFIED
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
UpdateEntities
public UpdateEntities()
-
-
Method Details
-
blkIOWeightDevice
-
addBlkIOWeightDeviceItem
-
getBlkIOWeightDevice
Block IO weight (relative device weight) in the form: ```[{\"Path\": \"device_path\", \"Weight\": weight}]```- Returns:
- blkIOWeightDevice
-
setBlkIOWeightDevice
-
deviceReadBPs
-
addDeviceReadBPsItem
-
getDeviceReadBPs
Limit read rate (bytes per second) from a device, in the form: ```[{\"Path\": \"device_path\", \"Rate\": rate}]```- Returns:
- deviceReadBPs
-
setDeviceReadBPs
-
deviceReadIOPs
-
addDeviceReadIOPsItem
-
getDeviceReadIOPs
Limit read rate (IO per second) from a device, in the form: ```[{\"Path\": \"device_path\", \"Rate\": rate}]```- Returns:
- deviceReadIOPs
-
setDeviceReadIOPs
-
deviceWriteBPs
-
addDeviceWriteBPsItem
-
getDeviceWriteBPs
Limit write rate (bytes per second) to a device, in the form: ```[{\"Path\": \"device_path\", \"Rate\": rate}]```- Returns:
- deviceWriteBPs
-
setDeviceWriteBPs
-
deviceWriteIOPs
-
addDeviceWriteIOPsItem
-
getDeviceWriteIOPs
Limit write rate (IO per second) to a device, in the form: ```[{\"Path\": \"device_path\", \"Rate\": rate}]```- Returns:
- deviceWriteIOPs
-
setDeviceWriteIOPs
-
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
-
healthCmd
-
getHealthCmd
HealthCmd set a healthcheck command for the container. ('none' disables the existing healthcheck)- Returns:
- healthCmd
-
setHealthCmd
-
healthInterval
-
getHealthInterval
HealthInterval set an interval for the healthcheck. (a value of disable results in no automatic timer setup) Changing this setting resets timer.- Returns:
- healthInterval
-
setHealthInterval
-
healthLogDestination
-
getHealthLogDestination
HealthLogDestination set the destination of the HealthCheck log. Directory path, local or events_logger (local use container state file) Warning: Changing this setting may cause the loss of previous logs!- Returns:
- healthLogDestination
-
setHealthLogDestination
-
healthMaxLogCount
-
getHealthMaxLogCount
HealthMaxLogCount set maximum number of attempts in the HealthCheck log file. ('0' value means an infinite number of attempts in the log file)- Returns:
- healthMaxLogCount
-
setHealthMaxLogCount
-
healthMaxLogSize
-
getHealthMaxLogSize
HealthMaxLogSize set maximum length in characters of stored HealthCheck log. ('0' value means an infinite log length)- Returns:
- healthMaxLogSize
-
setHealthMaxLogSize
-
healthOnFailure
-
getHealthOnFailure
HealthOnFailure set the action to take once the container turns unhealthy.- Returns:
- healthOnFailure
-
setHealthOnFailure
-
healthRetries
-
getHealthRetries
HealthRetries set the number of retries allowed before a healthcheck is considered to be unhealthy.- Returns:
- healthRetries
-
setHealthRetries
-
healthStartPeriod
-
getHealthStartPeriod
HealthStartPeriod set the initialization time needed for a container to bootstrap.- Returns:
- healthStartPeriod
-
setHealthStartPeriod
-
healthStartupCmd
-
getHealthStartupCmd
HealthStartupCmd set a startup healthcheck command for the container.- Returns:
- healthStartupCmd
-
setHealthStartupCmd
-
healthStartupInterval
-
getHealthStartupInterval
HealthStartupInterval set an interval for the startup healthcheck. Changing this setting resets the timer, depending on the state of the container.- Returns:
- healthStartupInterval
-
setHealthStartupInterval
-
healthStartupRetries
-
getHealthStartupRetries
HealthStartupRetries set the maximum number of retries before the startup healthcheck will restart the container.- Returns:
- healthStartupRetries
-
setHealthStartupRetries
-
healthStartupSuccess
-
getHealthStartupSuccess
HealthStartupSuccess set the number of consecutive successes before the startup healthcheck is marked as successful and the normal healthcheck begins (0 indicates any success will start the regular healthcheck)- Returns:
- healthStartupSuccess
-
setHealthStartupSuccess
-
healthStartupTimeout
-
getHealthStartupTimeout
HealthStartupTimeout set the maximum amount of time that the startup healthcheck may take before it is considered failed.- Returns:
- healthStartupTimeout
-
setHealthStartupTimeout
-
healthTimeout
-
getHealthTimeout
HealthTimeout set the maximum time allowed to complete the healthcheck before an interval is considered failed.- Returns:
- healthTimeout
-
setHealthTimeout
-
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
-
noHealthcheck
-
getNoHealthcheck
Disable healthchecks on container.- Returns:
- noHealthcheck
-
setNoHealthcheck
-
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
-
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 UpdateEntities
-
fromJson
Create an instance of UpdateEntities given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of UpdateEntities
- Throws:
IOException- if the JSON string is invalid with respect to UpdateEntities
-
toJson
Convert an instance of UpdateEntities to an JSON string- Returns:
- JSON string
-