Show / Hide Table of Contents

Class V1ResourceRequirements

ResourceRequirements describes the compute resource requirements.

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

Constructors

View Source

V1ResourceRequirements()

Declaration
public V1ResourceRequirements()
View Source

V1ResourceRequirements(V1ResourceRequirements)

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

Properties

View Source

Claims

Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.

This field depends on the DynamicResourceAllocation feature gate.

This field is immutable. It can only be set for containers.

Declaration
[JsonPropertyName("claims")]
public IList<Corev1ResourceClaim> Claims { get; set; }
Property Value
Type Description
IList<Corev1ResourceClaim>
View Source

EqualityContract

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

Limits

Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/

Declaration
[JsonPropertyName("limits")]
public IDictionary<string, ResourceQuantity> Limits { get; set; }
Property Value
Type Description
IDictionary<string, ResourceQuantity>
View Source

Requests

Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/

Declaration
[JsonPropertyName("requests")]
public IDictionary<string, ResourceQuantity> Requests { get; set; }
Property Value
Type Description
IDictionary<string, 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(V1ResourceRequirements?)

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

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

operator !=(V1ResourceRequirements?, V1ResourceRequirements?)

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

Implements

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