kubernetes_asyncio.client.models.v1beta1_capacity_requirements 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.v1beta1_capacity_requirements.V1beta1CapacityRequirements(requests=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.
- attribute_map = {'requests': 'requests'}
- openapi_types = {'requests': 'dict(str, str)'}
- property requests
Gets the requests of this V1beta1CapacityRequirements. # noqa: E501
Requests represent individual device resource requests for distinct resources, all of which must be provided by the device. This value is used as an additional filtering condition against the available capacity on the device. This is semantically equivalent to a CEL selector with device.capacity[<domain>].<name>.compareTo(quantity(<request quantity>)) >= 0. For example, device.capacity[‘test-driver.cdi.k8s.io’].counters.compareTo(quantity(‘2’)) >= 0. When a requestPolicy is defined, the requested amount is adjusted upward to the nearest valid value based on the policy. If the requested amount cannot be adjusted to a valid value—because it exceeds what the requestPolicy allows— the device is considered ineligible for allocation. For any capacity that is not explicitly requested: - If no requestPolicy is set, the default consumed capacity is equal to the full device capacity (i.e., the whole device is claimed). - If a requestPolicy is set, the default consumed capacity is determined according to that policy. If the device allows multiple allocation, the aggregated amount across all requests must not exceed the capacity value. The consumed capacity, which may be adjusted based on the requestPolicy if defined, is recorded in the resource claim’s status.devices[*].consumedCapacity field. # noqa: E501
- Returns:
The requests of this V1beta1CapacityRequirements. # noqa: E501
- Return type:
dict(str, str)
- to_dict(serialize=False)
Returns the model properties as a dict
- to_str()
Returns the string representation of the model