CapacityRequestPolicy defines how requests consume device capacity. Must not set more than one ValidRequestValues.
| Name | Type | Description | Notes |
|---|---|---|---|
| default | str | Default specifies how much of this capacity is consumed by a request that does not contain an entry for it in DeviceRequest's Capacity. | [optional] |
| valid_range | V1CapacityRequestPolicyRange | [optional] | |
| valid_values | List[str] | 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. | [optional] |
from kubernetes.client.models.v1_capacity_request_policy import V1CapacityRequestPolicy
# TODO update the JSON string below
json = "{}"
# create an instance of V1CapacityRequestPolicy from a JSON string
v1_capacity_request_policy_instance = V1CapacityRequestPolicy.from_json(json)
# print the JSON string representation of the object
print(V1CapacityRequestPolicy.to_json())
# convert the object into a dict
v1_capacity_request_policy_dict = v1_capacity_request_policy_instance.to_dict()
# create an instance of V1CapacityRequestPolicy from a dict
v1_capacity_request_policy_from_dict = V1CapacityRequestPolicy.from_dict(v1_capacity_request_policy_dict)