kubernetes_asyncio.client.models.v1beta2_capacity_request_policy 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_capacity_request_policy.V1beta2CapacityRequestPolicy(default=None, valid_range=None, valid_values=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 = {'default': 'default', 'valid_range': 'validRange', 'valid_values': 'validValues'}
property default

Gets the default of this V1beta2CapacityRequestPolicy. # noqa: E501

Default specifies how much of this capacity is consumed by a request that does not contain an entry for it in DeviceRequest’s Capacity. # noqa: E501

Returns:

The default of this V1beta2CapacityRequestPolicy. # noqa: E501

Return type:

str

openapi_types = {'default': 'str', 'valid_range': 'V1beta2CapacityRequestPolicyRange', 'valid_values': 'list[str]'}
to_dict(serialize=False)

Returns the model properties as a dict

to_str()

Returns the string representation of the model

property valid_range

Gets the valid_range of this V1beta2CapacityRequestPolicy. # noqa: E501

Returns:

The valid_range of this V1beta2CapacityRequestPolicy. # noqa: E501

Return type:

V1beta2CapacityRequestPolicyRange

property valid_values

Gets the valid_values of this V1beta2CapacityRequestPolicy. # noqa: E501

ValidValues defines a set of acceptable quantity values in consuming requests. Must not contain more than 10 entries. Must be sorted in ascending order. If this field is set, Default must be defined and it must be included in ValidValues list. If the requested amount does not match any valid value but smaller than some valid values, the scheduler calculates the smallest valid value that is greater than or equal to the request. That is: min(ceil(requestedValue) ∈ validValues), where requestedValue ≤ max(validValues). If the requested amount exceeds all valid values, the request violates the policy, and this device cannot be allocated. # noqa: E501

Returns:

The valid_values of this V1beta2CapacityRequestPolicy. # noqa: E501

Return type:

list[str]