Class V1alpha3ResourceSliceSpec
java.lang.Object
io.kubernetes.client.openapi.models.V1alpha3ResourceSliceSpec
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-12T21:15:49.397498Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1alpha3ResourceSliceSpec
extends Object
ResourceSliceSpec contains the information published by the driver in one ResourceSlice.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDevicesItem
(V1alpha3Device devicesItem) devices
(List<V1alpha3Device> devices) boolean
static V1alpha3ResourceSliceSpec
Create an instance of V1alpha3ResourceSliceSpec given an JSON stringAllNodes indicates that all nodes have access to the resources in the pool.Devices lists some or all of the devices in this pool.Driver identifies the DRA driver providing the capacity information.NodeName identifies the node which provides the resources in this pool.Get nodeSelectorgetPool()
Get poolint
hashCode()
nodeSelector
(V1NodeSelector nodeSelector) pool
(V1alpha3ResourcePool pool) void
setAllNodes
(Boolean allNodes) void
setDevices
(List<V1alpha3Device> devices) void
void
setNodeName
(String nodeName) void
setNodeSelector
(V1NodeSelector nodeSelector) void
setPool
(V1alpha3ResourcePool pool) toJson()
Convert an instance of V1alpha3ResourceSliceSpec 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_ALL_NODES
- See Also:
-
SERIALIZED_NAME_DEVICES
- See Also:
-
SERIALIZED_NAME_DRIVER
- See Also:
-
SERIALIZED_NAME_NODE_NAME
- See Also:
-
SERIALIZED_NAME_NODE_SELECTOR
- See Also:
-
SERIALIZED_NAME_POOL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1alpha3ResourceSliceSpec
public V1alpha3ResourceSliceSpec()
-
-
Method Details
-
allNodes
-
getAllNodes
AllNodes indicates that all nodes have access to the resources in the pool. Exactly one of NodeName, NodeSelector and AllNodes must be set.- Returns:
- allNodes
-
setAllNodes
-
devices
-
addDevicesItem
-
getDevices
Devices lists some or all of the devices in this pool. Must not have more than 128 entries.- Returns:
- devices
-
setDevices
-
driver
-
getDriver
Driver identifies the DRA driver providing the capacity information. A field selector can be used to list only ResourceSlice objects with a certain driver name. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable.- Returns:
- driver
-
setDriver
-
nodeName
-
getNodeName
NodeName identifies the node which provides the resources in this pool. A field selector can be used to list only ResourceSlice objects belonging to a certain node. This field can be used to limit access from nodes to ResourceSlices with the same node name. It also indicates to autoscalers that adding new nodes of the same type as some old node might also make new resources available. Exactly one of NodeName, NodeSelector and AllNodes must be set. This field is immutable.- Returns:
- nodeName
-
setNodeName
-
nodeSelector
-
getNodeSelector
Get nodeSelector- Returns:
- nodeSelector
-
setNodeSelector
-
pool
-
getPool
Get pool- Returns:
- pool
-
setPool
-
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 V1alpha3ResourceSliceSpec
-
fromJson
Create an instance of V1alpha3ResourceSliceSpec given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1alpha3ResourceSliceSpec
- Throws:
IOException
- if the JSON string is invalid with respect to V1alpha3ResourceSliceSpec
-
toJson
Convert an instance of V1alpha3ResourceSliceSpec to an JSON string- Returns:
- JSON string
-