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:
  • Field Details

  • Constructor Details

    • UpdateEntities

      public UpdateEntities()
  • Method Details

    • blkIOWeightDevice

      public UpdateEntities blkIOWeightDevice(List<WeightDevice> blkIOWeightDevice)
    • addBlkIOWeightDeviceItem

      public UpdateEntities addBlkIOWeightDeviceItem(WeightDevice blkIOWeightDeviceItem)
    • getBlkIOWeightDevice

      @Nullable @Valid public @Valid List<WeightDevice> getBlkIOWeightDevice()
      Block IO weight (relative device weight) in the form: ```[{\"Path\": \"device_path\", \"Weight\": weight}]```
      Returns:
      blkIOWeightDevice
    • setBlkIOWeightDevice

      public void setBlkIOWeightDevice(List<WeightDevice> blkIOWeightDevice)
    • deviceReadBPs

      public UpdateEntities deviceReadBPs(List<ThrottleDevice> deviceReadBPs)
    • addDeviceReadBPsItem

      public UpdateEntities addDeviceReadBPsItem(ThrottleDevice deviceReadBPsItem)
    • getDeviceReadBPs

      @Nullable @Valid public @Valid List<ThrottleDevice> getDeviceReadBPs()
      Limit read rate (bytes per second) from a device, in the form: ```[{\"Path\": \"device_path\", \"Rate\": rate}]```
      Returns:
      deviceReadBPs
    • setDeviceReadBPs

      public void setDeviceReadBPs(List<ThrottleDevice> deviceReadBPs)
    • deviceReadIOPs

      public UpdateEntities deviceReadIOPs(List<ThrottleDevice> deviceReadIOPs)
    • addDeviceReadIOPsItem

      public UpdateEntities addDeviceReadIOPsItem(ThrottleDevice deviceReadIOPsItem)
    • getDeviceReadIOPs

      @Nullable @Valid public @Valid List<ThrottleDevice> getDeviceReadIOPs()
      Limit read rate (IO per second) from a device, in the form: ```[{\"Path\": \"device_path\", \"Rate\": rate}]```
      Returns:
      deviceReadIOPs
    • setDeviceReadIOPs

      public void setDeviceReadIOPs(List<ThrottleDevice> deviceReadIOPs)
    • deviceWriteBPs

      public UpdateEntities deviceWriteBPs(List<ThrottleDevice> deviceWriteBPs)
    • addDeviceWriteBPsItem

      public UpdateEntities addDeviceWriteBPsItem(ThrottleDevice deviceWriteBPsItem)
    • getDeviceWriteBPs

      @Nullable @Valid public @Valid List<ThrottleDevice> getDeviceWriteBPs()
      Limit write rate (bytes per second) to a device, in the form: ```[{\"Path\": \"device_path\", \"Rate\": rate}]```
      Returns:
      deviceWriteBPs
    • setDeviceWriteBPs

      public void setDeviceWriteBPs(List<ThrottleDevice> deviceWriteBPs)
    • deviceWriteIOPs

      public UpdateEntities deviceWriteIOPs(List<ThrottleDevice> deviceWriteIOPs)
    • addDeviceWriteIOPsItem

      public UpdateEntities addDeviceWriteIOPsItem(ThrottleDevice deviceWriteIOPsItem)
    • getDeviceWriteIOPs

      @Nullable @Valid public @Valid List<ThrottleDevice> getDeviceWriteIOPs()
      Limit write rate (IO per second) to a device, in the form: ```[{\"Path\": \"device_path\", \"Rate\": rate}]```
      Returns:
      deviceWriteIOPs
    • setDeviceWriteIOPs

      public void setDeviceWriteIOPs(List<ThrottleDevice> deviceWriteIOPs)
    • blockIO

      public UpdateEntities blockIO(LinuxBlockIO blockIO)
    • getBlockIO

      @Nullable @Valid public @Valid LinuxBlockIO getBlockIO()
      Get blockIO
      Returns:
      blockIO
    • setBlockIO

      public void setBlockIO(LinuxBlockIO blockIO)
    • cpu

      public UpdateEntities cpu(LinuxCPU cpu)
    • getCpu

      @Nullable @Valid public @Valid LinuxCPU getCpu()
      Get cpu
      Returns:
      cpu
    • setCpu

      public void setCpu(LinuxCPU cpu)
    • devices

      public UpdateEntities devices(List<LinuxDeviceCgroup> devices)
    • addDevicesItem

      public UpdateEntities addDevicesItem(LinuxDeviceCgroup devicesItem)
    • getDevices

      @Nullable @Valid public @Valid List<LinuxDeviceCgroup> getDevices()
      Devices configures the device allowlist.
      Returns:
      devices
    • setDevices

      public void setDevices(List<LinuxDeviceCgroup> devices)
    • healthCmd

      public UpdateEntities healthCmd(String healthCmd)
    • getHealthCmd

      @Nullable public String getHealthCmd()
      HealthCmd set a healthcheck command for the container. ('none' disables the existing healthcheck)
      Returns:
      healthCmd
    • setHealthCmd

      public void setHealthCmd(String healthCmd)
    • healthInterval

      public UpdateEntities healthInterval(String healthInterval)
    • getHealthInterval

      @Nullable public String 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

      public void setHealthInterval(String healthInterval)
    • healthLogDestination

      public UpdateEntities healthLogDestination(String healthLogDestination)
    • getHealthLogDestination

      @Nullable public String 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

      public void setHealthLogDestination(String healthLogDestination)
    • healthMaxLogCount

      public UpdateEntities healthMaxLogCount(Integer healthMaxLogCount)
    • getHealthMaxLogCount

      @Nullable public Integer 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

      public void setHealthMaxLogCount(Integer healthMaxLogCount)
    • healthMaxLogSize

      public UpdateEntities healthMaxLogSize(Integer healthMaxLogSize)
    • getHealthMaxLogSize

      @Nullable public Integer getHealthMaxLogSize()
      HealthMaxLogSize set maximum length in characters of stored HealthCheck log. ('0' value means an infinite log length)
      Returns:
      healthMaxLogSize
    • setHealthMaxLogSize

      public void setHealthMaxLogSize(Integer healthMaxLogSize)
    • healthOnFailure

      public UpdateEntities healthOnFailure(String healthOnFailure)
    • getHealthOnFailure

      @Nullable public String getHealthOnFailure()
      HealthOnFailure set the action to take once the container turns unhealthy.
      Returns:
      healthOnFailure
    • setHealthOnFailure

      public void setHealthOnFailure(String healthOnFailure)
    • healthRetries

      public UpdateEntities healthRetries(Integer healthRetries)
    • getHealthRetries

      @Nullable public Integer getHealthRetries()
      HealthRetries set the number of retries allowed before a healthcheck is considered to be unhealthy.
      Returns:
      healthRetries
    • setHealthRetries

      public void setHealthRetries(Integer healthRetries)
    • healthStartPeriod

      public UpdateEntities healthStartPeriod(String healthStartPeriod)
    • getHealthStartPeriod

      @Nullable public String getHealthStartPeriod()
      HealthStartPeriod set the initialization time needed for a container to bootstrap.
      Returns:
      healthStartPeriod
    • setHealthStartPeriod

      public void setHealthStartPeriod(String healthStartPeriod)
    • healthStartupCmd

      public UpdateEntities healthStartupCmd(String healthStartupCmd)
    • getHealthStartupCmd

      @Nullable public String getHealthStartupCmd()
      HealthStartupCmd set a startup healthcheck command for the container.
      Returns:
      healthStartupCmd
    • setHealthStartupCmd

      public void setHealthStartupCmd(String healthStartupCmd)
    • healthStartupInterval

      public UpdateEntities healthStartupInterval(String healthStartupInterval)
    • getHealthStartupInterval

      @Nullable public String 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

      public void setHealthStartupInterval(String healthStartupInterval)
    • healthStartupRetries

      public UpdateEntities healthStartupRetries(Integer healthStartupRetries)
    • getHealthStartupRetries

      @Nullable public Integer getHealthStartupRetries()
      HealthStartupRetries set the maximum number of retries before the startup healthcheck will restart the container.
      Returns:
      healthStartupRetries
    • setHealthStartupRetries

      public void setHealthStartupRetries(Integer healthStartupRetries)
    • healthStartupSuccess

      public UpdateEntities healthStartupSuccess(Integer healthStartupSuccess)
    • getHealthStartupSuccess

      @Nullable public Integer 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

      public void setHealthStartupSuccess(Integer healthStartupSuccess)
    • healthStartupTimeout

      public UpdateEntities healthStartupTimeout(String healthStartupTimeout)
    • getHealthStartupTimeout

      @Nullable public String getHealthStartupTimeout()
      HealthStartupTimeout set the maximum amount of time that the startup healthcheck may take before it is considered failed.
      Returns:
      healthStartupTimeout
    • setHealthStartupTimeout

      public void setHealthStartupTimeout(String healthStartupTimeout)
    • healthTimeout

      public UpdateEntities healthTimeout(String healthTimeout)
    • getHealthTimeout

      @Nullable public String getHealthTimeout()
      HealthTimeout set the maximum time allowed to complete the healthcheck before an interval is considered failed.
      Returns:
      healthTimeout
    • setHealthTimeout

      public void setHealthTimeout(String healthTimeout)
    • hugepageLimits

      public UpdateEntities hugepageLimits(List<LinuxHugepageLimit> hugepageLimits)
    • addHugepageLimitsItem

      public UpdateEntities addHugepageLimitsItem(LinuxHugepageLimit hugepageLimitsItem)
    • getHugepageLimits

      @Nullable @Valid public @Valid List<LinuxHugepageLimit> getHugepageLimits()
      Hugetlb limits (in bytes). Default to reservation limits if supported.
      Returns:
      hugepageLimits
    • setHugepageLimits

      public void setHugepageLimits(List<LinuxHugepageLimit> hugepageLimits)
    • memory

      public UpdateEntities memory(LinuxMemory memory)
    • getMemory

      @Nullable @Valid public @Valid LinuxMemory getMemory()
      Get memory
      Returns:
      memory
    • setMemory

      public void setMemory(LinuxMemory memory)
    • network

      public UpdateEntities network(LinuxNetwork network)
    • getNetwork

      @Nullable @Valid public @Valid LinuxNetwork getNetwork()
      Get network
      Returns:
      network
    • setNetwork

      public void setNetwork(LinuxNetwork network)
    • noHealthcheck

      public UpdateEntities noHealthcheck(Boolean noHealthcheck)
    • getNoHealthcheck

      @Nullable public Boolean getNoHealthcheck()
      Disable healthchecks on container.
      Returns:
      noHealthcheck
    • setNoHealthcheck

      public void setNoHealthcheck(Boolean noHealthcheck)
    • pids

      public UpdateEntities pids(LinuxPids pids)
    • getPids

      @Nullable @Valid public @Valid LinuxPids getPids()
      Get pids
      Returns:
      pids
    • setPids

      public void setPids(LinuxPids pids)
    • rdma

      public UpdateEntities rdma(Map<String,LinuxRdma> rdma)
    • putRdmaItem

      public UpdateEntities putRdmaItem(String key, LinuxRdma rdmaItem)
    • getRdma

      @Nullable @Valid public @Valid Map<String,LinuxRdma> 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

      public void setRdma(Map<String,LinuxRdma> rdma)
    • unified

      public UpdateEntities unified(Map<String,String> unified)
    • putUnifiedItem

      public UpdateEntities putUnifiedItem(String key, String unifiedItem)
    • getUnified

      @Nullable public Map<String,String> getUnified()
      Unified resources.
      Returns:
      unified
    • setUnified

      public void setUnified(Map<String,String> unified)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      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

      public static UpdateEntities fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of UpdateEntities to an JSON string
      Returns:
      JSON string