Show / Hide Table of Contents

Class V1FieldSelectorRequirement

FieldSelectorRequirement is a selector that contains values, a key, and an operator that relates the key and values.

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

Constructors

V1FieldSelectorRequirement()

Declaration
public V1FieldSelectorRequirement()

V1FieldSelectorRequirement(V1FieldSelectorRequirement)

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

Properties

EqualityContract

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

Key

key is the field selector key that the requirement applies to.

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

OperatorProperty

operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. The list of operators may grow in the future.

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

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.

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

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

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

operator !=(V1FieldSelectorRequirement?, V1FieldSelectorRequirement?)

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

Implements

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