Class V1alpha3BasicDevice
java.lang.Object
io.kubernetes.client.openapi.models.V1alpha3BasicDevice
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-05-22T21:20:49.874193Z[Etc/UTC]")
public class V1alpha3BasicDevice
extends Object
BasicDevice defines one device instance.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddConsumesCountersItem
(V1alpha3DeviceCounterConsumption consumesCountersItem) addTaintsItem
(V1alpha3DeviceTaint taintsItem) attributes
(Map<String, V1alpha3DeviceAttribute> attributes) consumesCounters
(List<V1alpha3DeviceCounterConsumption> consumesCounters) boolean
AllNodes indicates that all nodes have access to the device.Attributes defines the set of attributes for this device.Capacity defines the set of capacities for this device.ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets.NodeName identifies the node where the device is available.Get nodeSelectorIf specified, these are the driver-defined taints.int
hashCode()
nodeSelector
(V1NodeSelector nodeSelector) putAttributesItem
(String key, V1alpha3DeviceAttribute attributesItem) putCapacityItem
(String key, Quantity capacityItem) void
setAllNodes
(Boolean allNodes) void
setAttributes
(Map<String, V1alpha3DeviceAttribute> attributes) void
setCapacity
(Map<String, Quantity> capacity) void
setConsumesCounters
(List<V1alpha3DeviceCounterConsumption> consumesCounters) void
setNodeName
(String nodeName) void
setNodeSelector
(V1NodeSelector nodeSelector) void
setTaints
(List<V1alpha3DeviceTaint> taints) taints
(List<V1alpha3DeviceTaint> taints) toString()
-
Field Details
-
SERIALIZED_NAME_ALL_NODES
- See Also:
-
SERIALIZED_NAME_ATTRIBUTES
- See Also:
-
SERIALIZED_NAME_CAPACITY
- See Also:
-
SERIALIZED_NAME_CONSUMES_COUNTERS
- See Also:
-
SERIALIZED_NAME_NODE_NAME
- See Also:
-
SERIALIZED_NAME_NODE_SELECTOR
- See Also:
-
SERIALIZED_NAME_TAINTS
- See Also:
-
-
Constructor Details
-
V1alpha3BasicDevice
public V1alpha3BasicDevice()
-
-
Method Details
-
allNodes
-
getAllNodes
AllNodes indicates that all nodes have access to the device. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.- Returns:
- allNodes
-
setAllNodes
-
attributes
-
putAttributesItem
-
getAttributes
Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set. The maximum number of attributes and capacities combined is 32.- Returns:
- attributes
-
setAttributes
-
capacity
-
putCapacityItem
-
getCapacity
Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set. The maximum number of attributes and capacities combined is 32.- Returns:
- capacity
-
setCapacity
-
consumesCounters
public V1alpha3BasicDevice consumesCounters(List<V1alpha3DeviceCounterConsumption> consumesCounters) -
addConsumesCountersItem
public V1alpha3BasicDevice addConsumesCountersItem(V1alpha3DeviceCounterConsumption consumesCountersItem) -
getConsumesCounters
ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets. There can only be a single entry per counterSet. The total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each).- Returns:
- consumesCounters
-
setConsumesCounters
-
nodeName
-
getNodeName
NodeName identifies the node where the device is available. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.- Returns:
- nodeName
-
setNodeName
-
nodeSelector
-
getNodeSelector
Get nodeSelector- Returns:
- nodeSelector
-
setNodeSelector
-
taints
-
addTaintsItem
-
getTaints
If specified, these are the driver-defined taints. The maximum number of taints is 4. This is an alpha field and requires enabling the DRADeviceTaints feature gate.- Returns:
- taints
-
setTaints
-
equals
-
hashCode
public int hashCode() -
toString
-