Class V1beta1DeviceRequestAllocationResult

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-02-12T21:15:49.397498Z[Etc/UTC]", comments="Generator version: 7.6.0") public class V1beta1DeviceRequestAllocationResult extends Object
DeviceRequestAllocationResult contains the allocation result for one request.
  • Field Details

  • Constructor Details

    • V1beta1DeviceRequestAllocationResult

      public V1beta1DeviceRequestAllocationResult()
  • Method Details

    • adminAccess

      public V1beta1DeviceRequestAllocationResult adminAccess(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(Boolean adminAccess)
    • 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(String device)
    • 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(String driver)
    • 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(String pool)
    • request

      public V1beta1DeviceRequestAllocationResult request(String request)
    • getRequest

      @Nonnull public String getRequest()
      Request is the name of the request in the claim which caused this device to be allocated. Multiple devices may have been allocated per request.
      Returns:
      request
    • setRequest

      public void setRequest(String request)
    • 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 V1beta1DeviceRequestAllocationResult
    • fromJson

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

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