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
V1ScopedResourceSelectorRequirement
Assembly: KubernetesClient.dll
Syntax
public record V1ScopedResourceSelectorRequirement : IEquatable<V1ScopedResourceSelectorRequirement>
Constructors
View Source
V1ScopedResourceSelectorRequirement()
Declaration
public V1ScopedResourceSelectorRequirement()
View Source
V1ScopedResourceSelectorRequirement(V1ScopedResourceSelectorRequirement)
Declaration
protected V1ScopedResourceSelectorRequirement(V1ScopedResourceSelectorRequirement original)
Parameters
Properties
View Source
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
View Source
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
View Source
ScopeName
The name of the scope that the selector applies to.
Declaration
[JsonPropertyName("scopeName")]
public string ScopeName { get; set; }
Property Value
View Source
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
Methods
View Source
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
View Source
Equals(V1ScopedResourceSelectorRequirement?)
Declaration
public virtual bool Equals(V1ScopedResourceSelectorRequirement? 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 ==(V1ScopedResourceSelectorRequirement?, V1ScopedResourceSelectorRequirement?)
Declaration
public static bool operator ==(V1ScopedResourceSelectorRequirement? left, V1ScopedResourceSelectorRequirement? right)
Parameters
Returns
View Source
operator !=(V1ScopedResourceSelectorRequirement?, V1ScopedResourceSelectorRequirement?)
Declaration
public static bool operator !=(V1ScopedResourceSelectorRequirement? left, V1ScopedResourceSelectorRequirement? right)
Parameters
Returns
Implements