kubernetes.aio.client.models.v1beta1_basic_device module¶
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: release-1.36 Generated by: https://openapi-generator.tech
- class kubernetes.aio.client.models.v1beta1_basic_device.V1beta1BasicDevice(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, node_allocatable_resource_mappings=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 V1beta1BasicDevice. # 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 V1beta1BasicDevice. # noqa: E501
- Return type:
- property allow_multiple_allocations¶
Gets the allow_multiple_allocations of this V1beta1BasicDevice. # 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 V1beta1BasicDevice. # noqa: E501
- Return type:
- 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', 'node_allocatable_resource_mappings': 'nodeAllocatableResourceMappings', 'node_name': 'nodeName', 'node_selector': 'nodeSelector', 'taints': 'taints'}¶
- property attributes¶
Gets the attributes of this V1beta1BasicDevice. # 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 V1beta1BasicDevice. # noqa: E501
- Return type:
dict[str, V1beta1DeviceAttribute]
- property binding_conditions¶
Gets the binding_conditions of this V1beta1BasicDevice. # 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 a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. # noqa: E501
- Returns:
The binding_conditions of this V1beta1BasicDevice. # noqa: E501
- Return type:
list[str]
- property binding_failure_conditions¶
Gets the binding_failure_conditions of this V1beta1BasicDevice. # noqa: E501
BindingFailureConditions defines the conditions for binding failure. They may be set in the per-device status conditions. If any is 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 a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. # noqa: E501
- Returns:
The binding_failure_conditions of this V1beta1BasicDevice. # noqa: E501
- Return type:
list[str]
- property binds_to_node¶
Gets the binds_to_node of this V1beta1BasicDevice. # 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 a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. # noqa: E501
- Returns:
The binds_to_node of this V1beta1BasicDevice. # noqa: E501
- Return type:
- property capacity¶
Gets the capacity of this V1beta1BasicDevice. # 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 V1beta1BasicDevice. # noqa: E501
- Return type:
dict[str, V1beta1DeviceCapacity]
- property consumes_counters¶
Gets the consumes_counters of this V1beta1BasicDevice. # 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 maximum number of device counter consumptions per device is 2. # noqa: E501
- Returns:
The consumes_counters of this V1beta1BasicDevice. # noqa: E501
- Return type:
- property node_allocatable_resource_mappings¶
Gets the node_allocatable_resource_mappings of this V1beta1BasicDevice. # noqa: E501
NodeAllocatableResourceMappings defines the mapping of node resources that are managed by the DRA driver exposing this device. This includes resources currently reported in v1.Node status.allocatable that are not extended resources (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources). Examples include “cpu”, “memory”, “ephemeral-storage”, and hugepages. In addition to standard requests made through the Pod spec, these resources can also be requested through claims and allocated by the DRA driver. For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory dependencies of an accelerator device. The keys of this map are the node-allocatable resource names (e.g., “cpu”, “memory”). Extended resource names are not permitted as keys. # noqa: E501
- Returns:
The node_allocatable_resource_mappings of this V1beta1BasicDevice. # noqa: E501
- Return type:
dict[str, V1beta1NodeAllocatableResourceMapping]
- property node_name¶
Gets the node_name of this V1beta1BasicDevice. # 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 V1beta1BasicDevice. # noqa: E501
- Return type:
str
- property node_selector¶
Gets the node_selector of this V1beta1BasicDevice. # noqa: E501
- Returns:
The node_selector of this V1beta1BasicDevice. # noqa: E501
- Return type:
- openapi_types = {'all_nodes': 'bool', 'allow_multiple_allocations': 'bool', 'attributes': 'dict[str, V1beta1DeviceAttribute]', 'binding_conditions': 'list[str]', 'binding_failure_conditions': 'list[str]', 'binds_to_node': 'bool', 'capacity': 'dict[str, V1beta1DeviceCapacity]', 'consumes_counters': 'list[V1beta1DeviceCounterConsumption]', 'node_allocatable_resource_mappings': 'dict[str, V1beta1NodeAllocatableResourceMapping]', 'node_name': 'str', 'node_selector': 'V1NodeSelector', 'taints': 'list[V1beta1DeviceTaint]'}¶
- property taints¶
Gets the taints of this V1beta1BasicDevice. # noqa: E501
If specified, these are the driver-defined taints. The maximum number of taints is 16. If taints are set for any device in a ResourceSlice, then the maximum number of allowed devices per ResourceSlice is 64 instead of 128. This is a beta field and requires enabling the DRADeviceTaints feature gate. # noqa: E501
- Returns:
The taints of this V1beta1BasicDevice. # noqa: E501
- Return type:
list[V1beta1DeviceTaint]
- to_dict(serialize=False)¶
Returns the model properties as a dict
- to_str()¶
Returns the string representation of the model