Class DeviceRequestAllocationResult
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.resource.v1.DeviceRequestAllocationResult
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<DeviceRequestAllocationResultBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class DeviceRequestAllocationResult extends Object implements io.fabric8.kubernetes.api.builder.Editable<DeviceRequestAllocationResultBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
DeviceRequestAllocationResult contains the allocation result for one request.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DeviceRequestAllocationResult()No args constructor for use in serializationDeviceRequestAllocationResult(Boolean adminAccess, List<String> bindingConditions, List<String> bindingFailureConditions, Map<String,io.fabric8.kubernetes.api.model.Quantity> consumedCapacity, String device, String driver, String pool, String request, String shareID, List<DeviceToleration> tolerations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeviceRequestAllocationResultBuilderedit()Map<String,Object>getAdditionalProperties()BooleangetAdminAccess()AdminAccess indicates that this device was allocated for administrative access.List<String>getBindingConditions()BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation.List<String>getBindingFailureConditions()BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation.Map<String,io.fabric8.kubernetes.api.model.Quantity>getConsumedCapacity()ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request.StringgetDevice()Device references one device instance via its name in the driver's resource pool.StringgetDriver()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.StringgetPool()This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`).StringgetRequest()Request is the name of the request in the claim which caused this device to be allocated.StringgetShareID()ShareID uniquely identifies an individual allocation share of the device, used when the device supports multiple simultaneous allocations.List<DeviceToleration>getTolerations()A copy of all tolerations specified in the request at the time when the device got allocated.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAdminAccess(Boolean adminAccess)AdminAccess indicates that this device was allocated for administrative access.voidsetBindingConditions(List<String> bindingConditions)BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation.voidsetBindingFailureConditions(List<String> bindingFailureConditions)BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation.voidsetConsumedCapacity(Map<String,io.fabric8.kubernetes.api.model.Quantity> consumedCapacity)ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request.voidsetDevice(String device)Device references one device instance via its name in the driver's resource pool.voidsetDriver(String driver)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.voidsetPool(String pool)This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`).voidsetRequest(String request)Request is the name of the request in the claim which caused this device to be allocated.voidsetShareID(String shareID)ShareID uniquely identifies an individual allocation share of the device, used when the device supports multiple simultaneous allocations.voidsetTolerations(List<DeviceToleration> tolerations)A copy of all tolerations specified in the request at the time when the device got allocated.DeviceRequestAllocationResultBuildertoBuilder()
-
-
-
Constructor Detail
-
DeviceRequestAllocationResult
public DeviceRequestAllocationResult()
No args constructor for use in serialization
-
DeviceRequestAllocationResult
public DeviceRequestAllocationResult(Boolean adminAccess, List<String> bindingConditions, List<String> bindingFailureConditions, Map<String,io.fabric8.kubernetes.api.model.Quantity> consumedCapacity, String device, String driver, String pool, String request, String shareID, List<DeviceToleration> tolerations)
-
-
Method Detail
-
getAdminAccess
public Boolean 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.
-
setAdminAccess
public void setAdminAccess(Boolean adminAccess)
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.
-
getBindingConditions
public List<String> getBindingConditions()
BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation.This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.
-
setBindingConditions
public void setBindingConditions(List<String> bindingConditions)
BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation.This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.
-
getBindingFailureConditions
public List<String> getBindingFailureConditions()
BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation.This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.
-
setBindingFailureConditions
public void setBindingFailureConditions(List<String> bindingFailureConditions)
BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation.This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.
-
getConsumedCapacity
public Map<String,io.fabric8.kubernetes.api.model.Quantity> getConsumedCapacity()
ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request. The consumed amount may differ from the requested amount: it is rounded up to the nearest valid value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount).The total consumed capacity for each device must not exceed the DeviceCapacity's Value.
This field is populated only for devices that allow multiple allocations. All capacity entries are included, even if the consumed amount is zero.
-
setConsumedCapacity
public void setConsumedCapacity(Map<String,io.fabric8.kubernetes.api.model.Quantity> consumedCapacity)
ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request. The consumed amount may differ from the requested amount: it is rounded up to the nearest valid value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount).The total consumed capacity for each device must not exceed the DeviceCapacity's Value.
This field is populated only for devices that allow multiple allocations. All capacity entries are included, even if the consumed amount is zero.
-
getDevice
public String getDevice()
Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
-
setDevice
public void setDevice(String device)
Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
-
getDriver
public String 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.
-
setDriver
public void setDriver(String driver)
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.
-
getPool
public String 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.
-
setPool
public void setPool(String pool)
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.
-
getRequest
public String 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.
-
setRequest
public void setRequest(String request)
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.
-
getShareID
public String getShareID()
ShareID uniquely identifies an individual allocation share of the device, used when the device supports multiple simultaneous allocations. It serves as an additional map key to differentiate concurrent shares of the same device.
-
setShareID
public void setShareID(String shareID)
ShareID uniquely identifies an individual allocation share of the device, used when the device supports multiple simultaneous allocations. It serves as an additional map key to differentiate concurrent shares of the same device.
-
getTolerations
public List<DeviceToleration> 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.
-
setTolerations
public void setTolerations(List<DeviceToleration> tolerations)
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.
-
edit
public DeviceRequestAllocationResultBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<DeviceRequestAllocationResultBuilder>
-
toBuilder
public DeviceRequestAllocationResultBuilder toBuilder()
-
-