Class V1DeviceRequestAllocationResult
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1DeviceRequestAllocationResult
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1DeviceRequestAllocationResult
extends Object
DeviceRequestAllocationResult contains the allocation result for one request.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionV1DeviceRequestAllocationResult(String device, String driver, String pool, String request) -
Method Summary
Modifier and TypeMethodDescriptionaddBindingConditionsItem(String bindingConditionsItem) Add an item to the bindingConditions property in a chainable fashion.addBindingFailureConditionsItem(String bindingFailureConditionsItem) Add an item to the bindingFailureConditions property in a chainable fashion.addTolerationsItem(V1DeviceToleration tolerationsItem) Add an item to the tolerations property in a chainable fashion.adminAccess(Boolean adminAccess) Set adminAccess in a chainable fashion.bindingConditions(List<@NotNull String> bindingConditions) Set bindingConditions in a chainable fashion.bindingFailureConditions(List<@NotNull String> bindingFailureConditions) Set bindingFailureConditions in a chainable fashion.consumedCapacity(Map<String, @NotNull String> consumedCapacity) Set consumedCapacity in a chainable fashion.Set device in a chainable fashion.Set driver in a chainable fashion.booleanAdminAccess indicates that this device was allocated for administrative access.BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation.BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation.ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request.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 (`/ / `). Request is the name of the request in the claim which caused this device to be allocated.ShareID uniquely identifies an individual allocation share of the device, used when the device supports multiple simultaneous allocations.List<@Valid V1DeviceToleration> A copy of all tolerations specified in the request at the time when the device got allocated.inthashCode()Set pool in a chainable fashion.putConsumedCapacityItem(String key, String consumedCapacityItem) Set the value for the key for the consumedCapacity map property in a chainable fashion.Set request in a chainable fashion.voidsetAdminAccess(Boolean adminAccess) Set the adminAccess property valuevoidsetBindingConditions(List<@NotNull String> bindingConditions) Set the bindingConditions property valuevoidsetBindingFailureConditions(List<@NotNull String> bindingFailureConditions) Set the bindingFailureConditions property valuevoidsetConsumedCapacity(Map<String, @NotNull String> consumedCapacity) Set the consumedCapacity property valuevoidSet the device property valuevoidSet the driver property valuevoidSet the pool property valuevoidsetRequest(String request) Set the request property valuevoidsetShareID(String shareID) Set the shareID property valuevoidsetTolerations(List<@Valid V1DeviceToleration> tolerations) Set the tolerations property valueSet shareID in a chainable fashion.tolerations(List<@Valid V1DeviceToleration> tolerations) Set tolerations in a chainable fashion.toString()
-
Field Details
-
JSON_PROPERTY_DEVICE
- See Also:
-
JSON_PROPERTY_DRIVER
- See Also:
-
JSON_PROPERTY_POOL
- See Also:
-
JSON_PROPERTY_REQUEST
- See Also:
-
JSON_PROPERTY_ADMIN_ACCESS
- See Also:
-
JSON_PROPERTY_BINDING_CONDITIONS
- See Also:
-
JSON_PROPERTY_BINDING_FAILURE_CONDITIONS
- See Also:
-
JSON_PROPERTY_CONSUMED_CAPACITY
- See Also:
-
JSON_PROPERTY_SHARE_I_D
- See Also:
-
JSON_PROPERTY_TOLERATIONS
- See Also:
-
-
Constructor Details
-
V1DeviceRequestAllocationResult
-
-
Method Details
-
getDevice
Device references one device instance via its name in the driver's resource pool. It must be a DNS label.- Returns:
- the device property value
-
setDevice
Set the device property value- Parameters:
device- property value to set
-
device
Set device in a chainable fashion.- Returns:
- The same instance of V1DeviceRequestAllocationResult for chaining.
-
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:
- the driver property value
-
setDriver
Set the driver property value- Parameters:
driver- property value to set
-
driver
Set driver in a chainable fashion.- Returns:
- The same instance of V1DeviceRequestAllocationResult for chaining.
-
getPool
This name together with the driver name and the device name field identify which device was allocated (`/ / `). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes. - Returns:
- the pool property value
-
setPool
Set the pool property value- Parameters:
pool- property value to set
-
pool
Set pool in a chainable fashion.- Returns:
- The same instance of V1DeviceRequestAllocationResult for chaining.
-
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/ . Multiple devices may have been allocated per request. - Returns:
- the request property value
-
setRequest
Set the request property value- Parameters:
request- property value to set
-
request
Set request in a chainable fashion.- Returns:
- The same instance of V1DeviceRequestAllocationResult for chaining.
-
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:
- the adminAccess property value
-
setAdminAccess
Set the adminAccess property value- Parameters:
adminAccess- property value to set
-
adminAccess
Set adminAccess in a chainable fashion.- Returns:
- The same instance of V1DeviceRequestAllocationResult for chaining.
-
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.- Returns:
- the bindingConditions property value
-
setBindingConditions
-
bindingConditions
Set bindingConditions in a chainable fashion.- Returns:
- The same instance of V1DeviceRequestAllocationResult for chaining.
-
addBindingConditionsItem
Add an item to the bindingConditions property in a chainable fashion.- Returns:
- The same instance of V1DeviceRequestAllocationResult for chaining.
-
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.- Returns:
- the bindingFailureConditions property value
-
setBindingFailureConditions
-
bindingFailureConditions
public V1DeviceRequestAllocationResult bindingFailureConditions(List<@NotNull String> bindingFailureConditions) Set bindingFailureConditions in a chainable fashion.- Returns:
- The same instance of V1DeviceRequestAllocationResult for chaining.
-
addBindingFailureConditionsItem
public V1DeviceRequestAllocationResult addBindingFailureConditionsItem(String bindingFailureConditionsItem) Add an item to the bindingFailureConditions property in a chainable fashion.- Returns:
- The same instance of V1DeviceRequestAllocationResult for chaining.
-
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.- Returns:
- the consumedCapacity property value
-
setConsumedCapacity
-
consumedCapacity
public V1DeviceRequestAllocationResult consumedCapacity(Map<String, @NotNull String> consumedCapacity) Set consumedCapacity in a chainable fashion.- Returns:
- The same instance of V1DeviceRequestAllocationResult for chaining.
-
putConsumedCapacityItem
public V1DeviceRequestAllocationResult putConsumedCapacityItem(String key, String consumedCapacityItem) Set the value for the key for the consumedCapacity map property in a chainable fashion.- Returns:
- The same instance of V1DeviceRequestAllocationResult for chaining.
-
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:
- the tolerations property value
-
setTolerations
Set the tolerations property value- Parameters:
tolerations- property value to set
-
tolerations
Set tolerations in a chainable fashion.- Returns:
- The same instance of V1DeviceRequestAllocationResult for chaining.
-
addTolerationsItem
Add an item to the tolerations property in a chainable fashion.- Returns:
- The same instance of V1DeviceRequestAllocationResult for chaining.
-
equals
-
hashCode
-
toString
-