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
V1NonResourcePolicyRule()
Declaration
public V1NonResourcePolicyRule()
V1NonResourcePolicyRule(V1NonResourcePolicyRule)
Declaration
protected V1NonResourcePolicyRule(V1NonResourcePolicyRule original)
Parameters
Properties
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
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
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
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
Equals(V1NonResourcePolicyRule?)
Declaration
public virtual bool Equals(V1NonResourcePolicyRule? 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 ==(V1NonResourcePolicyRule?, V1NonResourcePolicyRule?)
Declaration
public static bool operator ==(V1NonResourcePolicyRule? left, V1NonResourcePolicyRule? right)
Parameters
Returns
operator !=(V1NonResourcePolicyRule?, V1NonResourcePolicyRule?)
Declaration
public static bool operator !=(V1NonResourcePolicyRule? left, V1NonResourcePolicyRule? right)
Parameters
Returns
Implements