Class V1beta2DeviceRequestAllocationResult

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-09-11T18:00:16.154662Z[Etc/UTC]", comments="Generator version: 7.13.0") public class V1beta2DeviceRequestAllocationResult extends Object
DeviceRequestAllocationResult contains the allocation result for one request.
  • Field Details

  • Constructor Details

    • V1beta2DeviceRequestAllocationResult

      public V1beta2DeviceRequestAllocationResult()
  • Method Details

    • adminAccess

      public V1beta2DeviceRequestAllocationResult adminAccess(@Nullable Boolean adminAccess)
    • getAdminAccess

      @Nullable 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.
      Returns:
      adminAccess
    • setAdminAccess

      public void setAdminAccess(@Nullable Boolean adminAccess)
    • bindingConditions

      public V1beta2DeviceRequestAllocationResult bindingConditions(@Nullable List<String> bindingConditions)
    • addBindingConditionsItem

      public V1beta2DeviceRequestAllocationResult addBindingConditionsItem(String bindingConditionsItem)
    • getBindingConditions

      @Nullable 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.
      Returns:
      bindingConditions
    • setBindingConditions

      public void setBindingConditions(@Nullable List<String> bindingConditions)
    • bindingFailureConditions

      public V1beta2DeviceRequestAllocationResult bindingFailureConditions(@Nullable List<String> bindingFailureConditions)
    • addBindingFailureConditionsItem

      public V1beta2DeviceRequestAllocationResult addBindingFailureConditionsItem(String bindingFailureConditionsItem)
    • getBindingFailureConditions

      @Nullable 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.
      Returns:
      bindingFailureConditions
    • setBindingFailureConditions

      public void setBindingFailureConditions(@Nullable List<String> bindingFailureConditions)
    • consumedCapacity

      public V1beta2DeviceRequestAllocationResult consumedCapacity(@Nullable Map<String,Quantity> consumedCapacity)
    • putConsumedCapacityItem

      public V1beta2DeviceRequestAllocationResult putConsumedCapacityItem(String key, Quantity consumedCapacityItem)
    • getConsumedCapacity

      @Nullable public Map<String,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.
      Returns:
      consumedCapacity
    • setConsumedCapacity

      public void setConsumedCapacity(@Nullable Map<String,Quantity> consumedCapacity)
    • device

      public V1beta2DeviceRequestAllocationResult device(@Nonnull String device)
    • getDevice

      @Nonnull public String getDevice()
      Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
      Returns:
      device
    • setDevice

      public void setDevice(@Nonnull String device)
    • driver

      public V1beta2DeviceRequestAllocationResult driver(@Nonnull String driver)
    • getDriver

      @Nonnull 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.
      Returns:
      driver
    • setDriver

      public void setDriver(@Nonnull String driver)
    • pool

      public V1beta2DeviceRequestAllocationResult pool(@Nonnull String pool)
    • getPool

      @Nonnull 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.
      Returns:
      pool
    • setPool

      public void setPool(@Nonnull String pool)
    • request

      public V1beta2DeviceRequestAllocationResult request(@Nonnull String request)
    • getRequest

      @Nonnull 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.
      Returns:
      request
    • setRequest

      public void setRequest(@Nonnull String request)
    • shareID

      public V1beta2DeviceRequestAllocationResult shareID(@Nullable String shareID)
    • getShareID

      @Nullable 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.
      Returns:
      shareID
    • setShareID

      public void setShareID(@Nullable String shareID)
    • tolerations

      public V1beta2DeviceRequestAllocationResult tolerations(@Nullable List<V1beta2DeviceToleration> tolerations)
    • addTolerationsItem

      public V1beta2DeviceRequestAllocationResult addTolerationsItem(V1beta2DeviceToleration tolerationsItem)
    • getTolerations

      @Nullable public List<V1beta2DeviceToleration> 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

      public void setTolerations(@Nullable List<V1beta2DeviceToleration> tolerations)
    • 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 V1beta2DeviceRequestAllocationResult
    • fromJson

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

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