Class V1beta1DeviceClassSpec
java.lang.Object
io.kubernetes.client.openapi.models.V1beta1DeviceClassSpec
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-12T21:15:49.397498Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1beta1DeviceClassSpec
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
(V1beta1DeviceClassConfiguration configItem) addSelectorsItem
(V1beta1DeviceSelector selectorsItem) config
(List<V1beta1DeviceClassConfiguration> config) boolean
static V1beta1DeviceClassSpec
Create an instance of V1beta1DeviceClassSpec 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.int
hashCode()
selectors
(List<V1beta1DeviceSelector> selectors) void
setConfig
(List<V1beta1DeviceClassConfiguration> config) void
setSelectors
(List<V1beta1DeviceSelector> selectors) toJson()
Convert an instance of V1beta1DeviceClassSpec 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:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1beta1DeviceClassSpec
public V1beta1DeviceClassSpec()
-
-
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
-
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 V1beta1DeviceClassSpec
-
fromJson
Create an instance of V1beta1DeviceClassSpec given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1beta1DeviceClassSpec
- Throws:
IOException
- if the JSON string is invalid with respect to V1beta1DeviceClassSpec
-
toJson
Convert an instance of V1beta1DeviceClassSpec to an JSON string- Returns:
- JSON string
-