Show / Hide Table of Contents

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
object
V1NonResourcePolicyRule
Implements
IEquatable<V1NonResourcePolicyRule>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: k8s.Models
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
Type Name Description
V1NonResourcePolicyRule original

Properties

View Source

EqualityContract

Declaration
protected virtual Type EqualityContract { get; }
Property Value
Type Description
Type
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
Type Description
IList<string>
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
Type Description
IList<string>

Methods

View Source

Equals(object?)

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

Equals(V1NonResourcePolicyRule?)

Declaration
public virtual bool Equals(V1NonResourcePolicyRule? other)
Parameters
Type Name Description
V1NonResourcePolicyRule other
Returns
Type Description
bool
View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
object.GetHashCode()
View Source

PrintMembers(StringBuilder)

Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Type Name Description
StringBuilder builder
Returns
Type Description
bool
View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Operators

View Source

operator ==(V1NonResourcePolicyRule?, V1NonResourcePolicyRule?)

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

operator !=(V1NonResourcePolicyRule?, V1NonResourcePolicyRule?)

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

Implements

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