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.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallocatedDevices(Integer allocatedDevices) availableDevices(Integer availableDevices) booleanstatic V1alpha3PoolStatusCreate an instance of V1alpha3PoolStatus given an JSON stringgeneration(Long generation) AllocatedDevices is the number of devices currently allocated to claims.AvailableDevices is the number of devices available for allocation.Driver is the DRA driver name for this pool.Generation is the pool generation observed across all ResourceSlices in this pool.NodeName is the node this pool is associated with.PoolName is the name of the pool.ResourceSliceCount is the number of ResourceSlices that make up this pool.TotalDevices is the total number of devices in the pool across all slices.UnavailableDevices is the number of devices that are not available due to taints or other conditions, but are not allocated.ValidationError is set when the pool's data could not be fully validated (e.g., incomplete slice publication).inthashCode()resourceSliceCount(Integer resourceSliceCount) voidsetAllocatedDevices(Integer allocatedDevices) voidsetAvailableDevices(Integer availableDevices) voidvoidsetGeneration(Long generation) voidsetNodeName(String nodeName) voidsetPoolName(String poolName) voidsetResourceSliceCount(Integer resourceSliceCount) voidsetTotalDevices(Integer totalDevices) voidsetUnavailableDevices(Integer unavailableDevices) voidsetValidationError(String validationError) toJson()Convert an instance of V1alpha3PoolStatus to an JSON stringtoString()totalDevices(Integer totalDevices) unavailableDevices(Integer unavailableDevices) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundvalidationError(String validationError)
-
Field Details
-
SERIALIZED_NAME_ALLOCATED_DEVICES
- See Also:
-
SERIALIZED_NAME_AVAILABLE_DEVICES
- See Also:
-
SERIALIZED_NAME_DRIVER
- See Also:
-
SERIALIZED_NAME_GENERATION
- See Also:
-
SERIALIZED_NAME_NODE_NAME
- See Also:
-
SERIALIZED_NAME_POOL_NAME
- See Also:
-
SERIALIZED_NAME_RESOURCE_SLICE_COUNT
- See Also:
-
SERIALIZED_NAME_TOTAL_DEVICES
- See Also:
-
SERIALIZED_NAME_UNAVAILABLE_DEVICES
- See Also:
-
SERIALIZED_NAME_VALIDATION_ERROR
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1alpha3PoolStatus
public V1alpha3PoolStatus()
-
-
Method Details
-
allocatedDevices
-
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
-
availableDevices
-
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
-
driver
-
getDriver
Driver is the DRA driver name for this pool. Must be a DNS subdomain (e.g., \"gpu.example.com\").- Returns:
- driver
-
setDriver
-
generation
-
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
-
nodeName
-
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
-
poolName
-
getPoolName
PoolName is the name of the pool. Must be a valid resource pool name (DNS subdomains separated by \"/\").- Returns:
- poolName
-
setPoolName
-
resourceSliceCount
-
getResourceSliceCount
ResourceSliceCount is the number of ResourceSlices that make up this pool. May be unset when validationError is set.- Returns:
- resourceSliceCount
-
setResourceSliceCount
-
totalDevices
-
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
-
validationError
-
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
-
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 V1alpha3PoolStatus
-
fromJson
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
Convert an instance of V1alpha3PoolStatus to an JSON string- Returns:
- JSON string
-