Class V1alpha3DeviceClassSpec
java.lang.Object
io.kubernetes.client.openapi.models.V1alpha3DeviceClassSpec
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-04T19:05:53.712211Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1alpha3DeviceClassSpec
extends Object
DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddConfigItem
(V1alpha3DeviceClassConfiguration configItem) addSelectorsItem
(V1alpha3DeviceSelector selectorsItem) config
(List<V1alpha3DeviceClassConfiguration> config) boolean
static V1alpha3DeviceClassSpec
Create an instance of V1alpha3DeviceClassSpec given an JSON stringConfig defines configuration parameters that apply to each device that is claimed via this class.Each selector must be satisfied by a device which is claimed via this class.Get suitableNodesint
hashCode()
selectors
(List<V1alpha3DeviceSelector> selectors) void
void
setSelectors
(List<V1alpha3DeviceSelector> selectors) void
setSuitableNodes
(V1NodeSelector suitableNodes) suitableNodes
(V1NodeSelector suitableNodes) toJson()
Convert an instance of V1alpha3DeviceClassSpec 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_CONFIG
- See Also:
-
SERIALIZED_NAME_SELECTORS
- See Also:
-
SERIALIZED_NAME_SUITABLE_NODES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1alpha3DeviceClassSpec
public V1alpha3DeviceClassSpec()
-
-
Method Details
-
config
-
addConfigItem
-
getConfig
Config defines configuration parameters that apply to each device that is claimed via this class. Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor configuration applies to exactly one driver. They are passed to the driver, but are not considered while allocating the claim.- Returns:
- config
-
setConfig
-
selectors
-
addSelectorsItem
-
getSelectors
Each selector must be satisfied by a device which is claimed via this class.- Returns:
- selectors
-
setSelectors
-
suitableNodes
-
getSuitableNodes
Get suitableNodes- Returns:
- suitableNodes
-
setSuitableNodes
-
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 V1alpha3DeviceClassSpec
-
fromJson
Create an instance of V1alpha3DeviceClassSpec given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1alpha3DeviceClassSpec
- Throws:
IOException
- if the JSON string is invalid with respect to V1alpha3DeviceClassSpec
-
toJson
Convert an instance of V1alpha3DeviceClassSpec to an JSON string- Returns:
- JSON string
-