Class V1DeviceClassSpec
java.lang.Object
io.kubernetes.client.openapi.models.V1DeviceClassSpec
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-09-12T23:11:52.603861Z[Etc/UTC]")
public class V1DeviceClassSpec
extends Object
DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddConfigItem(V1DeviceClassConfiguration configItem) addSelectorsItem(V1DeviceSelector selectorsItem) config(List<V1DeviceClassConfiguration> config) booleanextendedResourceName(String extendedResourceName) Config 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<V1DeviceSelector> selectors) voidsetConfig(List<V1DeviceClassConfiguration> config) voidsetExtendedResourceName(String extendedResourceName) voidsetSelectors(List<V1DeviceSelector> selectors) toString()
-
Field Details
-
SERIALIZED_NAME_CONFIG
- See Also:
-
SERIALIZED_NAME_EXTENDED_RESOURCE_NAME
- See Also:
-
SERIALIZED_NAME_SELECTORS
- See Also:
-
-
Constructor Details
-
V1DeviceClassSpec
public V1DeviceClassSpec()
-
-
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
-