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

View Source

V1ResourceQuotaSpec()

Declaration
public V1ResourceQuotaSpec()
View Source

V1ResourceQuotaSpec(V1ResourceQuotaSpec)

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

Properties

View Source

EqualityContract

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

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>
View Source

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
View Source

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

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

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

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

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>
  • View Source
In this article
Back to top Generated by DocFX