Class V1alpha2DriverRequests
java.lang.Object
io.kubernetes.client.openapi.models.V1alpha2DriverRequests
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-04-23T13:45:09.091597Z[Etc/UTC]")
public class V1alpha2DriverRequests
extends Object
DriverRequests describes all resources that are needed from one particular driver.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddRequestsItem
(V1alpha2ResourceRequest requestsItem) driverName
(String driverName) boolean
static V1alpha2DriverRequests
Create an instance of V1alpha2DriverRequests given an JSON stringDriverName is the name used by the DRA driver kubelet plugin.Requests describes all resources that are needed from the driver.VendorParameters are arbitrary setup parameters for all requests of the claim.int
hashCode()
requests
(List<V1alpha2ResourceRequest> requests) void
setDriverName
(String driverName) void
setRequests
(List<V1alpha2ResourceRequest> requests) void
setVendorParameters
(Object vendorParameters) toJson()
Convert an instance of V1alpha2DriverRequests to an JSON stringtoString()
static void
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues foundvendorParameters
(Object vendorParameters)
-
Field Details
-
SERIALIZED_NAME_DRIVER_NAME
- See Also:
-
SERIALIZED_NAME_REQUESTS
- See Also:
-
SERIALIZED_NAME_VENDOR_PARAMETERS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1alpha2DriverRequests
public V1alpha2DriverRequests()
-
-
Method Details
-
driverName
-
getDriverName
DriverName is the name used by the DRA driver kubelet plugin.- Returns:
- driverName
-
setDriverName
-
requests
-
addRequestsItem
-
getRequests
Requests describes all resources that are needed from the driver.- Returns:
- requests
-
setRequests
-
vendorParameters
-
getVendorParameters
VendorParameters are arbitrary setup parameters for all requests of the claim. They are ignored while allocating the claim.- Returns:
- vendorParameters
-
setVendorParameters
-
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 V1alpha2DriverRequests
-
fromJson
Create an instance of V1alpha2DriverRequests given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1alpha2DriverRequests
- Throws:
IOException
- if the JSON string is invalid with respect to V1alpha2DriverRequests
-
toJson
Convert an instance of V1alpha2DriverRequests to an JSON string- Returns:
- JSON string
-