Show / Hide Table of Contents

Class V1beta2ResourcePool

ResourcePool describes the pool that ResourceSlices belong to.

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

Constructors

View Source

V1beta2ResourcePool()

Declaration
public V1beta2ResourcePool()
View Source

V1beta2ResourcePool(V1beta2ResourcePool)

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

Properties

View Source

EqualityContract

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

Generation

Generation tracks the change in a pool over time. Whenever a driver changes something about one or more of the resources in a pool, it must change the generation in all ResourceSlices which are part of that pool. Consumers of ResourceSlices should only consider resources from the pool with the highest generation number. The generation may be reset by drivers, which should be fine for consumers, assuming that all ResourceSlices in a pool are updated to match or deleted.

Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.

Declaration
[JsonPropertyName("generation")]
public long Generation { get; set; }
Property Value
Type Description
long
View Source

Name

Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.

It must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.

Declaration
[JsonPropertyName("name")]
public string Name { get; set; }
Property Value
Type Description
string
View Source

ResourceSliceCount

ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero.

Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.

Declaration
[JsonPropertyName("resourceSliceCount")]
public long ResourceSliceCount { get; set; }
Property Value
Type Description
long

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(V1beta2ResourcePool?)

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

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

operator !=(V1beta2ResourcePool?, V1beta2ResourcePool?)

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

Implements

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