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

V1NonResourcePolicyRule()

Declaration
public V1NonResourcePolicyRule()

V1NonResourcePolicyRule(V1NonResourcePolicyRule)

Declaration
protected V1NonResourcePolicyRule(V1NonResourcePolicyRule original)
Parameters
Type Name Description
V1NonResourcePolicyRule original

Properties

EqualityContract

Declaration
protected virtual Type EqualityContract { get; }
Property Value
Type Description
Type

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>

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

Equals(object?)

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

Equals(V1NonResourcePolicyRule?)

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

GetHashCode()

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

PrintMembers(StringBuilder)

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

ToString()

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

Operators

operator ==(V1NonResourcePolicyRule?, V1NonResourcePolicyRule?)

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

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>
In this article
Back to top Generated by DocFX