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
V1ScopedResourceSelectorRequirement()
Declaration
public V1ScopedResourceSelectorRequirement()
V1ScopedResourceSelectorRequirement(V1ScopedResourceSelectorRequirement)
Declaration
protected V1ScopedResourceSelectorRequirement(V1ScopedResourceSelectorRequirement original)
Parameters
Properties
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
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
ScopeName
The name of the scope that the selector applies to.
Declaration
[JsonPropertyName("scopeName")]
public string ScopeName { get; set; }
Property Value
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
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
Equals(V1ScopedResourceSelectorRequirement?)
Declaration
public virtual bool Equals(V1ScopedResourceSelectorRequirement? other)
Parameters
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
PrintMembers(StringBuilder)
Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
operator ==(V1ScopedResourceSelectorRequirement?, V1ScopedResourceSelectorRequirement?)
Declaration
public static bool operator ==(V1ScopedResourceSelectorRequirement? left, V1ScopedResourceSelectorRequirement? right)
Parameters
Returns
operator !=(V1ScopedResourceSelectorRequirement?, V1ScopedResourceSelectorRequirement?)
Declaration
public static bool operator !=(V1ScopedResourceSelectorRequirement? left, V1ScopedResourceSelectorRequirement? right)
Parameters
Returns
Implements