kubernetes_asyncio.client.models.v1_device module
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: v1.34.3 Generated by: https://openapi-generator.tech
- class kubernetes_asyncio.client.models.v1_device.V1Device(all_nodes=None, allow_multiple_allocations=None, attributes=None, binding_conditions=None, binding_failure_conditions=None, binds_to_node=None, capacity=None, consumes_counters=None, name=None, node_name=None, node_selector=None, taints=None, local_vars_configuration=None)
Bases:
objectNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech
Do not edit the class manually.
- property all_nodes
Gets the all_nodes of this V1Device. # noqa: E501
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. # noqa: E501
- Returns:
The all_nodes of this V1Device. # noqa: E501
- Return type:
bool
- property allow_multiple_allocations
Gets the allow_multiple_allocations of this V1Device. # noqa: E501
AllowMultipleAllocations marks whether the device is allowed to be allocated to multiple DeviceRequests. If AllowMultipleAllocations is set to true, the device can be allocated more than once, and all of its capacity is consumable, regardless of whether the requestPolicy is defined or not. # noqa: E501
- Returns:
The allow_multiple_allocations of this V1Device. # noqa: E501
- Return type:
bool
- attribute_map = {'all_nodes': 'allNodes', 'allow_multiple_allocations': 'allowMultipleAllocations', 'attributes': 'attributes', 'binding_conditions': 'bindingConditions', 'binding_failure_conditions': 'bindingFailureConditions', 'binds_to_node': 'bindsToNode', 'capacity': 'capacity', 'consumes_counters': 'consumesCounters', 'name': 'name', 'node_name': 'nodeName', 'node_selector': 'nodeSelector', 'taints': 'taints'}
- property attributes
Gets the attributes of this V1Device. # noqa: E501
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. # noqa: E501
- Returns:
The attributes of this V1Device. # noqa: E501
- Return type:
dict(str, V1DeviceAttribute)
- property binding_conditions
Gets the binding_conditions of this V1Device. # noqa: E501
BindingConditions defines the conditions for proceeding with binding. All of these conditions must be set in the per-device status conditions with a value of True to proceed with binding the pod to the node while scheduling the pod. The maximum number of binding conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. # noqa: E501
- Returns:
The binding_conditions of this V1Device. # noqa: E501
- Return type:
list[str]
- property binding_failure_conditions
Gets the binding_failure_conditions of this V1Device. # noqa: E501
BindingFailureConditions defines the conditions for binding failure. They may be set in the per-device status conditions. If any is set to “True”, a binding failure occurred. The maximum number of binding failure conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. # noqa: E501
- Returns:
The binding_failure_conditions of this V1Device. # noqa: E501
- Return type:
list[str]
- property binds_to_node
Gets the binds_to_node of this V1Device. # noqa: E501
BindsToNode indicates if the usage of an allocation involving this device has to be limited to exactly the node that was chosen when allocating the claim. If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector to match the node where the allocation was made. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. # noqa: E501
- Returns:
The binds_to_node of this V1Device. # noqa: E501
- Return type:
bool
- property capacity
Gets the capacity of this V1Device. # noqa: E501
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. # noqa: E501
- Returns:
The capacity of this V1Device. # noqa: E501
- Return type:
dict(str, V1DeviceCapacity)
- property consumes_counters
Gets the consumes_counters of this V1Device. # noqa: E501
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). # noqa: E501
- Returns:
The consumes_counters of this V1Device. # noqa: E501
- Return type:
- property name
Gets the name of this V1Device. # noqa: E501
Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label. # noqa: E501
- Returns:
The name of this V1Device. # noqa: E501
- Return type:
str
- property node_name
Gets the node_name of this V1Device. # noqa: E501
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. # noqa: E501
- Returns:
The node_name of this V1Device. # noqa: E501
- Return type:
str
- property node_selector
Gets the node_selector of this V1Device. # noqa: E501
- Returns:
The node_selector of this V1Device. # noqa: E501
- Return type:
- openapi_types = {'all_nodes': 'bool', 'allow_multiple_allocations': 'bool', 'attributes': 'dict(str, V1DeviceAttribute)', 'binding_conditions': 'list[str]', 'binding_failure_conditions': 'list[str]', 'binds_to_node': 'bool', 'capacity': 'dict(str, V1DeviceCapacity)', 'consumes_counters': 'list[V1DeviceCounterConsumption]', 'name': 'str', 'node_name': 'str', 'node_selector': 'V1NodeSelector', 'taints': 'list[V1DeviceTaint]'}
- property taints
Gets the taints of this V1Device. # noqa: E501
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. # noqa: E501
- Returns:
The taints of this V1Device. # noqa: E501
- Return type:
list[V1DeviceTaint]
- to_dict(serialize=False)
Returns the model properties as a dict
- to_str()
Returns the string representation of the model