Class V1beta1DeviceRequestAllocationResult
java.lang.Object
io.kubernetes.client.openapi.models.V1beta1DeviceRequestAllocationResult
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-05-22T21:20:49.874193Z[Etc/UTC]")
public class V1beta1DeviceRequestAllocationResult
extends Object
DeviceRequestAllocationResult contains the allocation result for one request.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddTolerationsItem
(V1beta1DeviceToleration tolerationsItem) adminAccess
(Boolean adminAccess) boolean
AdminAccess indicates that this device was allocated for administrative access.Device references one device instance via its name in the driver's resource pool.Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node.getPool()
This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`).Request is the name of the request in the claim which caused this device to be allocated.A copy of all tolerations specified in the request at the time when the device got allocated.int
hashCode()
void
setAdminAccess
(Boolean adminAccess) void
void
void
void
setRequest
(String request) void
setTolerations
(List<V1beta1DeviceToleration> tolerations) tolerations
(List<V1beta1DeviceToleration> tolerations) toString()
-
Field Details
-
SERIALIZED_NAME_ADMIN_ACCESS
- See Also:
-
SERIALIZED_NAME_DEVICE
- See Also:
-
SERIALIZED_NAME_DRIVER
- See Also:
-
SERIALIZED_NAME_POOL
- See Also:
-
SERIALIZED_NAME_REQUEST
- See Also:
-
SERIALIZED_NAME_TOLERATIONS
- See Also:
-
-
Constructor Details
-
V1beta1DeviceRequestAllocationResult
public V1beta1DeviceRequestAllocationResult()
-
-
Method Details
-
adminAccess
-
getAdminAccess
AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled.- Returns:
- adminAccess
-
setAdminAccess
-
device
-
getDevice
Device references one device instance via its name in the driver's resource pool. It must be a DNS label.- Returns:
- device
-
setDevice
-
driver
-
getDriver
Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.- Returns:
- driver
-
setDriver
-
pool
-
getPool
This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.- Returns:
- pool
-
setPool
-
request
-
getRequest
Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format <main request>/<subrequest>. Multiple devices may have been allocated per request.- Returns:
- request
-
setRequest
-
tolerations
-
addTolerationsItem
public V1beta1DeviceRequestAllocationResult addTolerationsItem(V1beta1DeviceToleration tolerationsItem) -
getTolerations
A copy of all tolerations specified in the request at the time when the device got allocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate.- Returns:
- tolerations
-
setTolerations
-
equals
-
hashCode
public int hashCode() -
toString
-