Class V1alpha2AllocationResult
java.lang.Object
io.kubernetes.client.openapi.models.V1alpha2AllocationResult
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V1alpha2AllocationResult
extends Object
AllocationResult contains attributes of an allocated resource.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddResourceHandlesItem
(V1alpha2ResourceHandle resourceHandlesItem) availableOnNodes
(V1NodeSelector availableOnNodes) boolean
static V1alpha2AllocationResult
Create an instance of V1alpha2AllocationResult given an JSON stringGet availableOnNodesResourceHandles contain the state associated with an allocation that should be maintained throughout the lifetime of a claim.Shareable determines whether the resource supports more than one consumer at a time.int
hashCode()
resourceHandles
(List<V1alpha2ResourceHandle> resourceHandles) void
setAvailableOnNodes
(V1NodeSelector availableOnNodes) void
setResourceHandles
(List<V1alpha2ResourceHandle> resourceHandles) void
setShareable
(Boolean shareable) toJson()
Convert an instance of V1alpha2AllocationResult to an JSON stringtoString()
static void
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_AVAILABLE_ON_NODES
- See Also:
-
SERIALIZED_NAME_RESOURCE_HANDLES
- See Also:
-
SERIALIZED_NAME_SHAREABLE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1alpha2AllocationResult
public V1alpha2AllocationResult()
-
-
Method Details
-
availableOnNodes
-
getAvailableOnNodes
Get availableOnNodes- Returns:
- availableOnNodes
-
setAvailableOnNodes
-
resourceHandles
-
addResourceHandlesItem
-
getResourceHandles
ResourceHandles contain the state associated with an allocation that should be maintained throughout the lifetime of a claim. Each ResourceHandle contains data that should be passed to a specific kubelet plugin once it lands on a node. This data is returned by the driver after a successful allocation and is opaque to Kubernetes. Driver documentation may explain to users how to interpret this data if needed. Setting this field is optional. It has a maximum size of 32 entries. If null (or empty), it is assumed this allocation will be processed by a single kubelet plugin with no ResourceHandle data attached. The name of the kubelet plugin invoked will match the DriverName set in the ResourceClaimStatus this AllocationResult is embedded in.- Returns:
- resourceHandles
-
setResourceHandles
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj
- JSON Object- Throws:
IOException
- if the JSON Object is invalid with respect to V1alpha2AllocationResult
-
fromJson
Create an instance of V1alpha2AllocationResult given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1alpha2AllocationResult
- Throws:
IOException
- if the JSON string is invalid with respect to V1alpha2AllocationResult
-
toJson
Convert an instance of V1alpha2AllocationResult to an JSON string- Returns:
- JSON string
-