Class CapacityRequestPolicy

  • All Implemented Interfaces:
    io.fabric8.kubernetes.api.builder.Editable<CapacityRequestPolicyBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource, Serializable

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class CapacityRequestPolicy
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<CapacityRequestPolicyBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    CapacityRequestPolicy defines how requests consume device capacity.


    Must not set more than one ValidRequestValues.

    See Also:
    Serialized Form
    • Constructor Detail

      • CapacityRequestPolicy

        public CapacityRequestPolicy()
        No args constructor for use in serialization
      • CapacityRequestPolicy

        public CapacityRequestPolicy​(io.fabric8.kubernetes.api.model.Quantity _default,
                                     CapacityRequestPolicyRange validRange,
                                     List<io.fabric8.kubernetes.api.model.Quantity> validValues)
    • Method Detail

      • getDefault

        public io.fabric8.kubernetes.api.model.Quantity getDefault()
        CapacityRequestPolicy defines how requests consume device capacity.


        Must not set more than one ValidRequestValues.

      • setDefault

        public void setDefault​(io.fabric8.kubernetes.api.model.Quantity _default)
        CapacityRequestPolicy defines how requests consume device capacity.


        Must not set more than one ValidRequestValues.

      • getValidRange

        public CapacityRequestPolicyRange getValidRange()
        CapacityRequestPolicy defines how requests consume device capacity.


        Must not set more than one ValidRequestValues.

      • setValidRange

        public void setValidRange​(CapacityRequestPolicyRange validRange)
        CapacityRequestPolicy defines how requests consume device capacity.


        Must not set more than one ValidRequestValues.

      • getValidValues

        public List<io.fabric8.kubernetes.api.model.Quantity> getValidValues()
        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.

      • setValidValues

        public void setValidValues​(List<io.fabric8.kubernetes.api.model.Quantity> validValues)
        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.

      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)