Class V1LabelSelectorRequirement
A label selector requirement is a selector that contains values, a key, and an
operator that relates the key and values.
Inheritance
V1LabelSelectorRequirement
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
Properties
View Source
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
View Source
Key
key is the label key that the selector applies to.
Declaration
[JsonPropertyName("key")]
public string Key { get; set; }
Property Value
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
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
Methods
View Source
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
View Source
Equals(V1LabelSelectorRequirement?)
Declaration
public virtual bool Equals(V1LabelSelectorRequirement? other)
Parameters
Returns
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
View Source
PrintMembers(StringBuilder)
Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Returns
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
View Source
operator ==(V1LabelSelectorRequirement?, V1LabelSelectorRequirement?)
Declaration
public static bool operator ==(V1LabelSelectorRequirement? left, V1LabelSelectorRequirement? right)
Parameters
Returns
View Source
operator !=(V1LabelSelectorRequirement?, V1LabelSelectorRequirement?)
Declaration
public static bool operator !=(V1LabelSelectorRequirement? left, V1LabelSelectorRequirement? right)
Parameters
Returns
Implements