Class V1alpha3PoolStatus

java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1alpha3PoolStatus

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1alpha3PoolStatus extends Object
PoolStatus contains status information for a single resource pool.
  • Field Details

  • Constructor Details

    • V1alpha3PoolStatus

      public V1alpha3PoolStatus(String driver, Long generation, String poolName)
  • Method Details

    • getDriver

      public String getDriver()
      Driver is the DRA driver name for this pool. Must be a DNS subdomain (e.g., \"gpu.example.com\").
      Returns:
      the driver property value
    • setDriver

      public void setDriver(String driver)
      Set the driver property value
      Parameters:
      driver - property value to set
    • driver

      public V1alpha3PoolStatus driver(String driver)
      Set driver in a chainable fashion.
      Returns:
      The same instance of V1alpha3PoolStatus for chaining.
    • getGeneration

      public Long getGeneration()
      Generation is the pool generation observed across all ResourceSlices in this pool. Only the latest generation is reported. During a generation rollout, if not all slices at the latest generation have been published, the pool is included with a validationError and device counts unset.
      Returns:
      the generation property value
    • setGeneration

      public void setGeneration(Long generation)
      Set the generation property value
      Parameters:
      generation - property value to set
    • generation

      public V1alpha3PoolStatus generation(Long generation)
      Set generation in a chainable fashion.
      Returns:
      The same instance of V1alpha3PoolStatus for chaining.
    • getPoolName

      public String getPoolName()
      PoolName is the name of the pool. Must be a valid resource pool name (DNS subdomains separated by \"/\").
      Returns:
      the poolName property value
    • setPoolName

      public void setPoolName(String poolName)
      Set the poolName property value
      Parameters:
      poolName - property value to set
    • poolName

      public V1alpha3PoolStatus poolName(String poolName)
      Set poolName in a chainable fashion.
      Returns:
      The same instance of V1alpha3PoolStatus for chaining.
    • getAllocatedDevices

      public Integer getAllocatedDevices()
      AllocatedDevices is the number of devices currently allocated to claims. A value of 0 means no devices are allocated. May be unset when validationError is set.
      Returns:
      the allocatedDevices property value
    • setAllocatedDevices

      public void setAllocatedDevices(Integer allocatedDevices)
      Set the allocatedDevices property value
      Parameters:
      allocatedDevices - property value to set
    • allocatedDevices

      public V1alpha3PoolStatus allocatedDevices(Integer allocatedDevices)
      Set allocatedDevices in a chainable fashion.
      Returns:
      The same instance of V1alpha3PoolStatus for chaining.
    • getAvailableDevices

      public Integer getAvailableDevices()
      AvailableDevices is the number of devices available for allocation. This equals TotalDevices - AllocatedDevices - UnavailableDevices. A value of 0 means no devices are currently available. May be unset when validationError is set.
      Returns:
      the availableDevices property value
    • setAvailableDevices

      public void setAvailableDevices(Integer availableDevices)
      Set the availableDevices property value
      Parameters:
      availableDevices - property value to set
    • availableDevices

      public V1alpha3PoolStatus availableDevices(Integer availableDevices)
      Set availableDevices in a chainable fashion.
      Returns:
      The same instance of V1alpha3PoolStatus for chaining.
    • getNodeName

      public String getNodeName()
      NodeName is the node this pool is associated with. When omitted, the pool is not associated with a specific node. Must be a valid DNS subdomain name (RFC1123).
      Returns:
      the nodeName property value
    • setNodeName

      public void setNodeName(String nodeName)
      Set the nodeName property value
      Parameters:
      nodeName - property value to set
    • nodeName

      public V1alpha3PoolStatus nodeName(String nodeName)
      Set nodeName in a chainable fashion.
      Returns:
      The same instance of V1alpha3PoolStatus for chaining.
    • getResourceSliceCount

      public Integer getResourceSliceCount()
      ResourceSliceCount is the number of ResourceSlices that make up this pool. May be unset when validationError is set.
      Returns:
      the resourceSliceCount property value
    • setResourceSliceCount

      public void setResourceSliceCount(Integer resourceSliceCount)
      Set the resourceSliceCount property value
      Parameters:
      resourceSliceCount - property value to set
    • resourceSliceCount

      public V1alpha3PoolStatus resourceSliceCount(Integer resourceSliceCount)
      Set resourceSliceCount in a chainable fashion.
      Returns:
      The same instance of V1alpha3PoolStatus for chaining.
    • getTotalDevices

      public Integer getTotalDevices()
      TotalDevices is the total number of devices in the pool across all slices. A value of 0 means the pool has no devices. May be unset when validationError is set.
      Returns:
      the totalDevices property value
    • setTotalDevices

      public void setTotalDevices(Integer totalDevices)
      Set the totalDevices property value
      Parameters:
      totalDevices - property value to set
    • totalDevices

      public V1alpha3PoolStatus totalDevices(Integer totalDevices)
      Set totalDevices in a chainable fashion.
      Returns:
      The same instance of V1alpha3PoolStatus for chaining.
    • getUnavailableDevices

      public Integer getUnavailableDevices()
      UnavailableDevices is the number of devices that are not available due to taints or other conditions, but are not allocated. A value of 0 means all unallocated devices are available. May be unset when validationError is set.
      Returns:
      the unavailableDevices property value
    • setUnavailableDevices

      public void setUnavailableDevices(Integer unavailableDevices)
      Set the unavailableDevices property value
      Parameters:
      unavailableDevices - property value to set
    • unavailableDevices

      public V1alpha3PoolStatus unavailableDevices(Integer unavailableDevices)
      Set unavailableDevices in a chainable fashion.
      Returns:
      The same instance of V1alpha3PoolStatus for chaining.
    • getValidationError

      public String getValidationError()
      ValidationError is set when the pool's data could not be fully validated (e.g., incomplete slice publication). When set, device count fields and ResourceSliceCount may be unset.
      Returns:
      the validationError property value
    • setValidationError

      public void setValidationError(String validationError)
      Set the validationError property value
      Parameters:
      validationError - property value to set
    • validationError

      public V1alpha3PoolStatus validationError(String validationError)
      Set validationError in a chainable fashion.
      Returns:
      The same instance of V1alpha3PoolStatus for chaining.
    • 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