Class V1alpha2ResourceHandle
java.lang.Object
io.kubernetes.client.openapi.models.V1alpha2ResourceHandle
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V1alpha2ResourceHandle
extends Object
ResourceHandle holds opaque resource data for processing by a specific kubelet plugin.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondriverName
(String driverName) boolean
static V1alpha2ResourceHandle
Create an instance of V1alpha2ResourceHandle given an JSON stringgetData()
Data contains the opaque data associated with this ResourceHandle.DriverName specifies the name of the resource driver whose kubelet plugin should be invoked to process this ResourceHandle's data once it lands on a node.int
hashCode()
void
void
setDriverName
(String driverName) toJson()
Convert an instance of V1alpha2ResourceHandle 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_DATA
- See Also:
-
SERIALIZED_NAME_DRIVER_NAME
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1alpha2ResourceHandle
public V1alpha2ResourceHandle()
-
-
Method Details
-
data
-
getData
Data contains the opaque data associated with this ResourceHandle. It is set by the controller component of the resource driver whose name matches the DriverName set in the ResourceClaimStatus this ResourceHandle is embedded in. It is set at allocation time and is intended for processing by the kubelet plugin whose name matches the DriverName set in this ResourceHandle. The maximum size of this field is 16KiB. This may get increased in the future, but not reduced.- Returns:
- data
-
setData
-
driverName
-
getDriverName
DriverName specifies the name of the resource driver whose kubelet plugin should be invoked to process this ResourceHandle's data once it lands on a node. This may differ from the DriverName set in ResourceClaimStatus this ResourceHandle is embedded in.- Returns:
- driverName
-
setDriverName
-
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 V1alpha2ResourceHandle
-
fromJson
Create an instance of V1alpha2ResourceHandle given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1alpha2ResourceHandle
- Throws:
IOException
- if the JSON string is invalid with respect to V1alpha2ResourceHandle
-
toJson
Convert an instance of V1alpha2ResourceHandle to an JSON string- Returns:
- JSON string
-