Class V1alpha3PoolStatus

java.lang.Object
io.kubernetes.client.openapi.models.V1alpha3PoolStatus

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-06-26T22:35:15.319369Z[Etc/UTC]", comments="Generator version: 7.18.0") public class V1alpha3PoolStatus extends Object
PoolStatus contains status information for a single resource pool.
  • Field Details

  • Constructor Details

    • V1alpha3PoolStatus

      public V1alpha3PoolStatus()
  • Method Details

    • allocatedDevices

      public V1alpha3PoolStatus allocatedDevices(@Nullable Integer allocatedDevices)
    • getAllocatedDevices

      @Nullable 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:
      allocatedDevices
    • setAllocatedDevices

      public void setAllocatedDevices(@Nullable Integer allocatedDevices)
    • availableDevices

      public V1alpha3PoolStatus availableDevices(@Nullable Integer availableDevices)
    • getAvailableDevices

      @Nullable 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:
      availableDevices
    • setAvailableDevices

      public void setAvailableDevices(@Nullable Integer availableDevices)
    • driver

      public V1alpha3PoolStatus driver(@Nonnull String driver)
    • getDriver

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

      public void setDriver(@Nonnull String driver)
    • generation

      public V1alpha3PoolStatus generation(@Nonnull Long generation)
    • getGeneration

      @Nonnull 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:
      generation
    • setGeneration

      public void setGeneration(@Nonnull Long generation)
    • nodeName

      public V1alpha3PoolStatus nodeName(@Nullable String nodeName)
    • getNodeName

      @Nullable 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:
      nodeName
    • setNodeName

      public void setNodeName(@Nullable String nodeName)
    • poolName

      public V1alpha3PoolStatus poolName(@Nonnull String poolName)
    • getPoolName

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

      public void setPoolName(@Nonnull String poolName)
    • resourceSliceCount

      public V1alpha3PoolStatus resourceSliceCount(@Nullable Integer resourceSliceCount)
    • getResourceSliceCount

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

      public void setResourceSliceCount(@Nullable Integer resourceSliceCount)
    • totalDevices

      public V1alpha3PoolStatus totalDevices(@Nullable Integer totalDevices)
    • getTotalDevices

      @Nullable 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:
      totalDevices
    • setTotalDevices

      public void setTotalDevices(@Nullable Integer totalDevices)
    • unavailableDevices

      public V1alpha3PoolStatus unavailableDevices(@Nullable Integer unavailableDevices)
    • getUnavailableDevices

      @Nullable 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:
      unavailableDevices
    • setUnavailableDevices

      public void setUnavailableDevices(@Nullable Integer unavailableDevices)
    • validationError

      public V1alpha3PoolStatus validationError(@Nullable String validationError)
    • getValidationError

      @Nullable 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:
      validationError
    • setValidationError

      public void setValidationError(@Nullable String validationError)
    • 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
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      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 V1alpha3PoolStatus
    • fromJson

      public static V1alpha3PoolStatus fromJson(String jsonString) throws IOException
      Create an instance of V1alpha3PoolStatus given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of V1alpha3PoolStatus
      Throws:
      IOException - if the JSON string is invalid with respect to V1alpha3PoolStatus
    • toJson

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