Class V1alpha3DeviceRequestAllocationResult
java.lang.Object
io.kubernetes.client.openapi.models.V1alpha3DeviceRequestAllocationResult
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-04T19:05:53.712211Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1alpha3DeviceRequestAllocationResult
extends Object
DeviceRequestAllocationResult contains the allocation result for one request.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Create an instance of V1alpha3DeviceRequestAllocationResult given an JSON stringDevice 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 (`<driver name>/<pool name>/<device name>`).Request is the name of the request in the claim which caused this device to be allocated.int
hashCode()
void
void
void
void
setRequest
(String request) toJson()
Convert an instance of V1alpha3DeviceRequestAllocationResult to an JSON stringtoString()
static void
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_DEVICE
- See Also:
-
SERIALIZED_NAME_DRIVER
- See Also:
-
SERIALIZED_NAME_POOL
- See Also:
-
SERIALIZED_NAME_REQUEST
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1alpha3DeviceRequestAllocationResult
public V1alpha3DeviceRequestAllocationResult()
-
-
Method Details
-
device
-
getDevice
Device references one device instance via its name in the driver's resource pool. It must be a DNS label.- Returns:
- device
-
setDevice
-
driver
-
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
-
pool
-
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
-
request
-
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
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
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 V1alpha3DeviceRequestAllocationResult
-
fromJson
Create an instance of V1alpha3DeviceRequestAllocationResult given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1alpha3DeviceRequestAllocationResult
- Throws:
IOException
- if the JSON string is invalid with respect to V1alpha3DeviceRequestAllocationResult
-
toJson
Convert an instance of V1alpha3DeviceRequestAllocationResult to an JSON string- Returns:
- JSON string
-