Class V1beta1DeviceClassSpec
java.lang.Object
io.kubernetes.client.openapi.models.V1beta1DeviceClassSpec
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-09-11T18:00:16.154662Z[Etc/UTC]",
comments="Generator version: 7.13.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) booleanextendedResourceName(String extendedResourceName) static V1beta1DeviceClassSpecCreate an instance of V1beta1DeviceClassSpec given an JSON stringConfig defines configuration parameters that apply to each device that is claimed via this class.ExtendedResourceName is the extended resource name for the devices of this class.Each selector must be satisfied by a device which is claimed via this class.inthashCode()selectors(List<V1beta1DeviceSelector> selectors) voidsetConfig(List<V1beta1DeviceClassConfiguration> config) voidsetExtendedResourceName(String extendedResourceName) voidsetSelectors(List<V1beta1DeviceSelector> selectors) toJson()Convert an instance of V1beta1DeviceClassSpec to an JSON stringtoString()static voidvalidateJsonElement(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_EXTENDED_RESOURCE_NAME
- 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
-
extendedResourceName
-
getExtendedResourceName
ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. This is an alpha field.- Returns:
- extendedResourceName
-
setExtendedResourceName
-
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
-