Show / Hide Table of Contents

Class V1LabelSelectorRequirement

A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.

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

Constructors

View Source

V1LabelSelectorRequirement()

Declaration
public V1LabelSelectorRequirement()
View Source

V1LabelSelectorRequirement(V1LabelSelectorRequirement)

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

Properties

View Source

EqualityContract

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

Key

key is the label key that the selector applies to.

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

OperatorProperty

operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.

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

Values

values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.

Declaration
[JsonPropertyName("values")]
public IList<string> Values { 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(V1LabelSelectorRequirement?)

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

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

operator !=(V1LabelSelectorRequirement?, V1LabelSelectorRequirement?)

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

Implements

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