Class V1DeviceClassSpec
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1DeviceClassSpec
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
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) Add an item to the config property in a chainable fashion.addSelectorsItem(V1DeviceSelector selectorsItem) Add an item to the selectors property in a chainable fashion.config(List<@Valid V1DeviceClassConfiguration> config) Set config in a chainable fashion.booleanextendedResourceName(String extendedResourceName) Set extendedResourceName in a chainable fashion.List<@Valid V1DeviceClassConfiguration> 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.List<@Valid V1DeviceSelector> Each selector must be satisfied by a device which is claimed via this class.inthashCode()selectors(List<@Valid V1DeviceSelector> selectors) Set selectors in a chainable fashion.voidsetConfig(List<@Valid V1DeviceClassConfiguration> config) Set the config property valuevoidsetExtendedResourceName(String extendedResourceName) Set the extendedResourceName property valuevoidsetSelectors(List<@Valid V1DeviceSelector> selectors) Set the selectors property valuetoString()
-
Field Details
-
JSON_PROPERTY_CONFIG
- See Also:
-
JSON_PROPERTY_EXTENDED_RESOURCE_NAME
- See Also:
-
JSON_PROPERTY_SELECTORS
- See Also:
-
-
Constructor Details
-
V1DeviceClassSpec
public V1DeviceClassSpec()
-
-
Method Details
-
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:
- the config property value
-
setConfig
Set the config property value- Parameters:
config- property value to set
-
config
Set config in a chainable fashion.- Returns:
- The same instance of V1DeviceClassSpec for chaining.
-
addConfigItem
Add an item to the config property in a chainable fashion.- Returns:
- The same instance of V1DeviceClassSpec for chaining.
-
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:
- the extendedResourceName property value
-
setExtendedResourceName
Set the extendedResourceName property value- Parameters:
extendedResourceName- property value to set
-
extendedResourceName
Set extendedResourceName in a chainable fashion.- Returns:
- The same instance of V1DeviceClassSpec for chaining.
-
getSelectors
Each selector must be satisfied by a device which is claimed via this class.- Returns:
- the selectors property value
-
setSelectors
Set the selectors property value- Parameters:
selectors- property value to set
-
selectors
Set selectors in a chainable fashion.- Returns:
- The same instance of V1DeviceClassSpec for chaining.
-
addSelectorsItem
Add an item to the selectors property in a chainable fashion.- Returns:
- The same instance of V1DeviceClassSpec for chaining.
-
equals
-
hashCode
-
toString
-