Show / Hide Table of Contents

Class V1ScopedResourceSelectorRequirement

A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator that relates the scope name and values.

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

Constructors

V1ScopedResourceSelectorRequirement()

Declaration
public V1ScopedResourceSelectorRequirement()

V1ScopedResourceSelectorRequirement(V1ScopedResourceSelectorRequirement)

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

Properties

EqualityContract

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

OperatorProperty

Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist.

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

ScopeName

The name of the scope that the selector applies to.

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

Values

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

Equals(object?)

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool
Overrides
object.Equals(object)

Equals(V1ScopedResourceSelectorRequirement?)

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

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

operator !=(V1ScopedResourceSelectorRequirement?, V1ScopedResourceSelectorRequirement?)

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

Implements

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