Class DeviceClassSpec
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.resource.v1beta1.DeviceClassSpec
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<DeviceClassSpecBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class DeviceClassSpec extends Object implements io.fabric8.kubernetes.api.builder.Editable<DeviceClassSpecBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DeviceClassSpec()No args constructor for use in serializationDeviceClassSpec(List<DeviceClassConfiguration> config, String extendedResourceName, List<DeviceSelector> selectors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeviceClassSpecBuilderedit()Map<String,Object>getAdditionalProperties()List<DeviceClassConfiguration>getConfig()Config defines configuration parameters that apply to each device that is claimed via this class.StringgetExtendedResourceName()ExtendedResourceName is the extended resource name for the devices of this class.List<DeviceSelector>getSelectors()Each selector must be satisfied by a device which is claimed via this class.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetConfig(List<DeviceClassConfiguration> config)Config defines configuration parameters that apply to each device that is claimed via this class.voidsetExtendedResourceName(String extendedResourceName)ExtendedResourceName is the extended resource name for the devices of this class.voidsetSelectors(List<DeviceSelector> selectors)Each selector must be satisfied by a device which is claimed via this class.DeviceClassSpecBuildertoBuilder()
-
-
-
Constructor Detail
-
DeviceClassSpec
public DeviceClassSpec()
No args constructor for use in serialization
-
DeviceClassSpec
public DeviceClassSpec(List<DeviceClassConfiguration> config, String extendedResourceName, List<DeviceSelector> selectors)
-
-
Method Detail
-
getConfig
public List<DeviceClassConfiguration> 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.
-
setConfig
public void setConfig(List<DeviceClassConfiguration> config)
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.
-
getExtendedResourceName
public String 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.
-
setExtendedResourceName
public void setExtendedResourceName(String extendedResourceName)
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.
-
getSelectors
public List<DeviceSelector> getSelectors()
Each selector must be satisfied by a device which is claimed via this class.
-
setSelectors
public void setSelectors(List<DeviceSelector> selectors)
Each selector must be satisfied by a device which is claimed via this class.
-
edit
public DeviceClassSpecBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<DeviceClassSpecBuilder>
-
toBuilder
public DeviceClassSpecBuilder toBuilder()
-
-