Show / Hide Table of Contents

Class V1CapacityRequestPolicyRange

CapacityRequestPolicyRange defines a valid range for consumable capacity values.

  • If the requested amount is less than Min, it is rounded up to the Min value.
  • If Step is set and the requested amount is between Min and Max but not aligned with Step, it will be rounded up to the next value equal to Min + (n * Step).
  • If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set).
  • If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy, and the device cannot be allocated.
Inheritance
object
V1CapacityRequestPolicyRange
Implements
IEquatable<V1CapacityRequestPolicyRange>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: k8s.Models
Assembly: KubernetesClient.dll
Syntax
public record V1CapacityRequestPolicyRange : IEquatable<V1CapacityRequestPolicyRange>

Constructors

View Source

V1CapacityRequestPolicyRange()

Declaration
public V1CapacityRequestPolicyRange()
View Source

V1CapacityRequestPolicyRange(V1CapacityRequestPolicyRange)

Declaration
protected V1CapacityRequestPolicyRange(V1CapacityRequestPolicyRange original)
Parameters
Type Name Description
V1CapacityRequestPolicyRange original

Properties

View Source

EqualityContract

Declaration
protected virtual Type EqualityContract { get; }
Property Value
Type Description
Type
View Source

Max

Max defines the upper limit for capacity that can be requested.

Max must be less than or equal to the capacity value. Min and requestPolicy.default must be less than or equal to the maximum.

Declaration
[JsonPropertyName("max")]
public ResourceQuantity Max { get; set; }
Property Value
Type Description
ResourceQuantity
View Source

Min

Min specifies the minimum capacity allowed for a consumption request.

Min must be greater than or equal to zero, and less than or equal to the capacity value. requestPolicy.default must be more than or equal to the minimum.

Declaration
[JsonPropertyName("min")]
public ResourceQuantity Min { get; set; }
Property Value
Type Description
ResourceQuantity
View Source

Step

Step defines the step size between valid capacity amounts within the range.

Max (if set) and requestPolicy.default must be a multiple of Step. Min + Step must be less than or equal to the capacity value.

Declaration
[JsonPropertyName("step")]
public ResourceQuantity Step { get; set; }
Property Value
Type Description
ResourceQuantity

Methods

View Source

Equals(object?)

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool
Overrides
object.Equals(object)
View Source

Equals(V1CapacityRequestPolicyRange?)

Declaration
public virtual bool Equals(V1CapacityRequestPolicyRange? other)
Parameters
Type Name Description
V1CapacityRequestPolicyRange other
Returns
Type Description
bool
View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
object.GetHashCode()
View Source

PrintMembers(StringBuilder)

Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Type Name Description
StringBuilder builder
Returns
Type Description
bool
View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Operators

View Source

operator ==(V1CapacityRequestPolicyRange?, V1CapacityRequestPolicyRange?)

Declaration
public static bool operator ==(V1CapacityRequestPolicyRange? left, V1CapacityRequestPolicyRange? right)
Parameters
Type Name Description
V1CapacityRequestPolicyRange left
V1CapacityRequestPolicyRange right
Returns
Type Description
bool
View Source

operator !=(V1CapacityRequestPolicyRange?, V1CapacityRequestPolicyRange?)

Declaration
public static bool operator !=(V1CapacityRequestPolicyRange? left, V1CapacityRequestPolicyRange? right)
Parameters
Type Name Description
V1CapacityRequestPolicyRange left
V1CapacityRequestPolicyRange right
Returns
Type Description
bool

Implements

IEquatable<T>
  • View Source
In this article
Back to top Generated by DocFX