Class V1beta1DeviceCapacity
DeviceCapacity describes a quantity associated with a device.
Inheritance
V1beta1DeviceCapacity
Assembly: KubernetesClient.dll
Syntax
public record V1beta1DeviceCapacity : IEquatable<V1beta1DeviceCapacity>
Constructors
View Source
V1beta1DeviceCapacity()
Declaration
public V1beta1DeviceCapacity()
View Source
V1beta1DeviceCapacity(V1beta1DeviceCapacity)
Declaration
protected V1beta1DeviceCapacity(V1beta1DeviceCapacity original)
Parameters
Properties
View Source
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
View Source
RequestPolicy
RequestPolicy defines how this DeviceCapacity must be consumed when the device
is allowed to be shared by multiple allocations.
The Device must have allowMultipleAllocations set to true in order to set a
requestPolicy.
If unset, capacity requests are unconstrained: requests can consume any amount
of capacity, as long as the total consumed across all allocations does not
exceed the device's defined capacity. If request is also unset, default is the
full capacity value.
Declaration
[JsonPropertyName("requestPolicy")]
public V1beta1CapacityRequestPolicy RequestPolicy { get; set; }
Property Value
View Source
Value
Value defines how much of a certain capacity that device has.
This field reflects the fixed total capacity and does not change. The consumed
amount is tracked separately by scheduler and does not affect this value.
Declaration
[JsonPropertyName("value")]
public ResourceQuantity Value { get; set; }
Property Value
Methods
View Source
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
View Source
Equals(V1beta1DeviceCapacity?)
Declaration
public virtual bool Equals(V1beta1DeviceCapacity? other)
Parameters
Returns
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
View Source
PrintMembers(StringBuilder)
Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Returns
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
View Source
operator ==(V1beta1DeviceCapacity?, V1beta1DeviceCapacity?)
Declaration
public static bool operator ==(V1beta1DeviceCapacity? left, V1beta1DeviceCapacity? right)
Parameters
Returns
View Source
operator !=(V1beta1DeviceCapacity?, V1beta1DeviceCapacity?)
Declaration
public static bool operator !=(V1beta1DeviceCapacity? left, V1beta1DeviceCapacity? right)
Parameters
Returns
Implements