Show / Hide Table of Contents

Class V1ResourceQuotaSpec

ResourceQuotaSpec defines the desired hard limits to enforce for Quota.

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

Constructors

V1ResourceQuotaSpec()

Declaration
public V1ResourceQuotaSpec()

V1ResourceQuotaSpec(V1ResourceQuotaSpec)

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

Properties

EqualityContract

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

Hard

hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/

Declaration
[JsonPropertyName("hard")]
public IDictionary<string, ResourceQuantity> Hard { get; set; }
Property Value
Type Description
IDictionary<string, ResourceQuantity>

ScopeSelector

scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota but expressed using ScopeSelectorOperator in combination with possible values. For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched.

Declaration
[JsonPropertyName("scopeSelector")]
public V1ScopeSelector ScopeSelector { get; set; }
Property Value
Type Description
V1ScopeSelector

Scopes

A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects.

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

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

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

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

operator !=(V1ResourceQuotaSpec?, V1ResourceQuotaSpec?)

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

Implements

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