Class V1NonResourcePolicyRule
NonResourcePolicyRule is a predicate that matches non-resource requests
according to their verb and the target non-resource URL. A NonResourcePolicyRule
matches a request if and only if both (a) at least one member of verbs matches
the request and (b) at least one member of nonResourceURLs matches the request.
Inheritance
V1NonResourcePolicyRule
Assembly: KubernetesClient.dll
Syntax
public record V1NonResourcePolicyRule : IEquatable<V1NonResourcePolicyRule>
Constructors
View Source
V1NonResourcePolicyRule()
Declaration
public V1NonResourcePolicyRule()
View Source
V1NonResourcePolicyRule(V1NonResourcePolicyRule)
Declaration
protected V1NonResourcePolicyRule(V1NonResourcePolicyRule original)
Parameters
Properties
View Source
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
View Source
NonResourceURLs
nonResourceURLs is a set of url prefixes that a user should have access to and
may not be empty. For example:
- "/healthz" is legal
- "/hea*" is illegal
- "/hea" is legal but matches nothing
- "/hea/*" also matches nothing
- "/healthz/" matches all per-component health checks.
"" matches all non-resource urls. if it is present, it must be the only entry.
Required.
Declaration
[JsonPropertyName("nonResourceURLs")]
public IList<string> NonResourceURLs { get; set; }
Property Value
View Source
Verbs
verbs is a list of matching verbs and may not be empty. "*" matches all verbs.
If it is present, it must be the only entry. Required.
Declaration
[JsonPropertyName("verbs")]
public IList<string> Verbs { 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(V1NonResourcePolicyRule?)
Declaration
public virtual bool Equals(V1NonResourcePolicyRule? 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 ==(V1NonResourcePolicyRule?, V1NonResourcePolicyRule?)
Declaration
public static bool operator ==(V1NonResourcePolicyRule? left, V1NonResourcePolicyRule? right)
Parameters
Returns
View Source
operator !=(V1NonResourcePolicyRule?, V1NonResourcePolicyRule?)
Declaration
public static bool operator !=(V1NonResourcePolicyRule? left, V1NonResourcePolicyRule? right)
Parameters
Returns
Implements