Show / Hide Table of Contents

Class V1beta1DeviceCapacity

DeviceCapacity describes a quantity associated with a device.

Inheritance
object
V1beta1DeviceCapacity
Implements
IEquatable<V1beta1DeviceCapacity>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: k8s.Models
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
Type Name Description
V1beta1DeviceCapacity original

Properties

View Source

EqualityContract

Declaration
protected virtual Type EqualityContract { get; }
Property Value
Type Description
Type
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
Type Description
V1beta1CapacityRequestPolicy
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
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(V1beta1DeviceCapacity?)

Declaration
public virtual bool Equals(V1beta1DeviceCapacity? other)
Parameters
Type Name Description
V1beta1DeviceCapacity 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 ==(V1beta1DeviceCapacity?, V1beta1DeviceCapacity?)

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

operator !=(V1beta1DeviceCapacity?, V1beta1DeviceCapacity?)

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

Implements

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