Class V1beta2DeviceRequestAllocationResult

java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1beta2DeviceRequestAllocationResult

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1beta2DeviceRequestAllocationResult extends Object
DeviceRequestAllocationResult contains the allocation result for one request.
  • Field Details

  • Constructor Details

    • V1beta2DeviceRequestAllocationResult

      public V1beta2DeviceRequestAllocationResult(String device, String driver, String pool, String request)
  • Method Details

    • getDevice

      public String 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

      public void setDevice(String device)
      Set the device property value
      Parameters:
      device - property value to set
    • device

      Set device in a chainable fashion.
      Returns:
      The same instance of V1beta2DeviceRequestAllocationResult for chaining.
    • 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.
      Returns:
      the driver property value
    • setDriver

      public void setDriver(String driver)
      Set the driver property value
      Parameters:
      driver - property value to set
    • driver

      Set driver in a chainable fashion.
      Returns:
      The same instance of V1beta2DeviceRequestAllocationResult for chaining.
    • 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.
      Returns:
      the pool property value
    • setPool

      public void setPool(String pool)
      Set the pool property value
      Parameters:
      pool - property value to set
    • pool

      Set pool in a chainable fashion.
      Returns:
      The same instance of V1beta2DeviceRequestAllocationResult for chaining.
    • 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.
      Returns:
      the request property value
    • setRequest

      public void setRequest(String request)
      Set the request property value
      Parameters:
      request - property value to set
    • request

      public V1beta2DeviceRequestAllocationResult request(String request)
      Set request in a chainable fashion.
      Returns:
      The same instance of V1beta2DeviceRequestAllocationResult for chaining.
    • 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.
      Returns:
      the adminAccess property value
    • setAdminAccess

      public void setAdminAccess(Boolean adminAccess)
      Set the adminAccess property value
      Parameters:
      adminAccess - property value to set
    • adminAccess

      public V1beta2DeviceRequestAllocationResult adminAccess(Boolean adminAccess)
      Set adminAccess in a chainable fashion.
      Returns:
      The same instance of V1beta2DeviceRequestAllocationResult for chaining.
    • getTolerations

      public List<@Valid 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:
      the tolerations property value
    • setTolerations

      public void setTolerations(List<@Valid V1beta2DeviceToleration> tolerations)
      Set the tolerations property value
      Parameters:
      tolerations - property value to set
    • tolerations

      public V1beta2DeviceRequestAllocationResult tolerations(List<@Valid V1beta2DeviceToleration> tolerations)
      Set tolerations in a chainable fashion.
      Returns:
      The same instance of V1beta2DeviceRequestAllocationResult for chaining.
    • addTolerationsItem

      public V1beta2DeviceRequestAllocationResult addTolerationsItem(V1beta2DeviceToleration tolerationsItem)
      Add an item to the tolerations property in a chainable fashion.
      Returns:
      The same instance of V1beta2DeviceRequestAllocationResult for chaining.
    • 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