Class V1beta2DeviceRequest

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-05-22T21:20:49.874193Z[Etc/UTC]") public class V1beta2DeviceRequest extends Object
DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices. With FirstAvailable it is also possible to provide a prioritized list of requests.
  • Field Details

  • Constructor Details

    • V1beta2DeviceRequest

      public V1beta2DeviceRequest()
  • Method Details

    • exactly

    • getExactly

      @Nullable public V1beta2ExactDeviceRequest getExactly()
      Get exactly
      Returns:
      exactly
    • setExactly

      public void setExactly(V1beta2ExactDeviceRequest exactly)
    • firstAvailable

      public V1beta2DeviceRequest firstAvailable(List<V1beta2DeviceSubRequest> firstAvailable)
    • addFirstAvailableItem

      public V1beta2DeviceRequest addFirstAvailableItem(V1beta2DeviceSubRequest firstAvailableItem)
    • getFirstAvailable

      @Nullable public List<V1beta2DeviceSubRequest> getFirstAvailable()
      FirstAvailable contains subrequests, of which exactly one will be selected by the scheduler. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one can not be used. DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later.
      Returns:
      firstAvailable
    • setFirstAvailable

      public void setFirstAvailable(List<V1beta2DeviceSubRequest> firstAvailable)
    • name

      public V1beta2DeviceRequest name(String name)
    • getName

      public String getName()
      Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim. References using the name in the DeviceRequest will uniquely identify a request when the Exactly field is set. When the FirstAvailable field is set, a reference to the name of the DeviceRequest will match whatever subrequest is chosen by the scheduler. Must be a DNS label.
      Returns:
      name
    • setName

      public void setName(String name)
    • 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