kubernetes_asyncio.client.models.v1beta2_device_request 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.v1beta2_device_request.V1beta2DeviceRequest(exactly=None, first_available=None, name=None, local_vars_configuration=None)

Bases: object

NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech

Do not edit the class manually.

attribute_map = {'exactly': 'exactly', 'first_available': 'firstAvailable', 'name': 'name'}
property exactly

Gets the exactly of this V1beta2DeviceRequest. # noqa: E501

Returns:

The exactly of this V1beta2DeviceRequest. # noqa: E501

Return type:

V1beta2ExactDeviceRequest

property first_available

Gets the first_available of this V1beta2DeviceRequest. # noqa: E501

FirstAvailable contains subrequests, of which exactly one will be selected by the scheduler. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one can not be used. DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later. # noqa: E501

Returns:

The first_available of this V1beta2DeviceRequest. # noqa: E501

Return type:

list[V1beta2DeviceSubRequest]

property name

Gets the name of this V1beta2DeviceRequest. # noqa: E501

Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim. References using the name in the DeviceRequest will uniquely identify a request when the Exactly field is set. When the FirstAvailable field is set, a reference to the name of the DeviceRequest will match whatever subrequest is chosen by the scheduler. Must be a DNS label. # noqa: E501

Returns:

The name of this V1beta2DeviceRequest. # noqa: E501

Return type:

str

openapi_types = {'exactly': 'V1beta2ExactDeviceRequest', 'first_available': 'list[V1beta2DeviceSubRequest]', 'name': 'str'}
to_dict(serialize=False)

Returns the model properties as a dict

to_str()

Returns the string representation of the model