Class V1DeviceAllocationResult
java.lang.Object
io.kubernetes.client.openapi.models.V1DeviceAllocationResult
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-09-11T18:00:16.154662Z[Etc/UTC]",
comments="Generator version: 7.13.0")
public class V1DeviceAllocationResult
extends Object
DeviceAllocationResult is the result of allocating devices.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddConfigItem(V1DeviceAllocationConfiguration configItem) addResultsItem(V1DeviceRequestAllocationResult resultsItem) config(List<V1DeviceAllocationConfiguration> config) booleanstatic V1DeviceAllocationResultCreate an instance of V1DeviceAllocationResult given an JSON stringThis field is a combination of all the claim and class configuration parameters.Results lists all allocated devices.inthashCode()results(List<V1DeviceRequestAllocationResult> results) voidsetConfig(List<V1DeviceAllocationConfiguration> config) voidsetResults(List<V1DeviceRequestAllocationResult> results) toJson()Convert an instance of V1DeviceAllocationResult to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_CONFIG
- See Also:
-
SERIALIZED_NAME_RESULTS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1DeviceAllocationResult
public V1DeviceAllocationResult()
-
-
Method Details
-
config
-
addConfigItem
-
getConfig
This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag. This includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters.- Returns:
- config
-
setConfig
-
results
-
addResultsItem
-
getResults
Results lists all allocated devices.- Returns:
- results
-
setResults
-
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 V1DeviceAllocationResult
-
fromJson
Create an instance of V1DeviceAllocationResult given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of V1DeviceAllocationResult
- Throws:
IOException- if the JSON string is invalid with respect to V1DeviceAllocationResult
-
toJson
Convert an instance of V1DeviceAllocationResult to an JSON string- Returns:
- JSON string
-