Show / Hide Table of Contents

Class V1beta1DeviceCounterConsumption

DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet.

Inheritance
object
V1beta1DeviceCounterConsumption
Implements
IEquatable<V1beta1DeviceCounterConsumption>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: k8s.Models
Assembly: KubernetesClient.dll
Syntax
public record V1beta1DeviceCounterConsumption : IEquatable<V1beta1DeviceCounterConsumption>

Constructors

V1beta1DeviceCounterConsumption()

Declaration
public V1beta1DeviceCounterConsumption()

V1beta1DeviceCounterConsumption(V1beta1DeviceCounterConsumption)

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

Properties

CompatibilityGroups

CompatibilityGroups is a list of opaque group names for this counter set consumption.

Devices that consume counters from the same counter set may only be allocated at the same time ("co-allocated") if they all share at least one common group: the intersection of the CompatibilityGroups of all co-allocated devices on that counter set must be non-empty. Devices that consume from different counter sets are never compared via this field.

An unset field, an explicit nil, and an empty list are equivalent and mean "no groups": such a device is only co-allocatable with sibling devices on the same counter set that also have no groups, and is never co-allocatable with a device that declares one or more groups.

Group names are opaque and meaningful only within the publishing driver's pool.

The maximum number of groups is 2, and the names must be unique.

Declaration
[JsonPropertyName("compatibilityGroups")]
public IList<string> CompatibilityGroups { get; set; }
Property Value
Type Description
IList<string>

CounterSet

CounterSet is the name of the set from which the counters defined will be consumed.

Declaration
[JsonPropertyName("counterSet")]
public string CounterSet { get; set; }
Property Value
Type Description
string

Counters

Counters defines the counters that will be consumed by the device.

The maximum number of counters is 32.

Declaration
[JsonPropertyName("counters")]
public IDictionary<string, V1beta1Counter> Counters { get; set; }
Property Value
Type Description
IDictionary<string, V1beta1Counter>

EqualityContract

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

Methods

Equals(object?)

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

Equals(V1beta1DeviceCounterConsumption?)

Declaration
public virtual bool Equals(V1beta1DeviceCounterConsumption? other)
Parameters
Type Name Description
V1beta1DeviceCounterConsumption other
Returns
Type Description
bool

GetHashCode()

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

PrintMembers(StringBuilder)

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

ToString()

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

Operators

operator ==(V1beta1DeviceCounterConsumption?, V1beta1DeviceCounterConsumption?)

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

operator !=(V1beta1DeviceCounterConsumption?, V1beta1DeviceCounterConsumption?)

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

Implements

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