Show / Hide Table of Contents

Class V1PolicyRule

PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.

Inheritance
object
V1PolicyRule
Implements
IEquatable<V1PolicyRule>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: k8s.Models
Assembly: KubernetesClient.dll
Syntax
public record V1PolicyRule : IEquatable<V1PolicyRule>

Constructors

View Source

V1PolicyRule()

Declaration
public V1PolicyRule()
View Source

V1PolicyRule(V1PolicyRule)

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

Properties

View Source

ApiGroups

APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. " " represents the core API group and "*" represents all API groups.

Declaration
[JsonPropertyName("apiGroups")]
public IList<string> ApiGroups { get; set; }
Property Value
Type Description
IList<string>
View Source

EqualityContract

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

NonResourceURLs

NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both.

Declaration
[JsonPropertyName("nonResourceURLs")]
public IList<string> NonResourceURLs { get; set; }
Property Value
Type Description
IList<string>
View Source

ResourceNames

ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.

Declaration
[JsonPropertyName("resourceNames")]
public IList<string> ResourceNames { get; set; }
Property Value
Type Description
IList<string>
View Source

Resources

Resources is a list of resources this rule applies to. '*' represents all resources.

Declaration
[JsonPropertyName("resources")]
public IList<string> Resources { get; set; }
Property Value
Type Description
IList<string>
View Source

Verbs

Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.

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(V1PolicyRule?)

Declaration
public virtual bool Equals(V1PolicyRule? other)
Parameters
Type Name Description
V1PolicyRule 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 ==(V1PolicyRule?, V1PolicyRule?)

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

operator !=(V1PolicyRule?, V1PolicyRule?)

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

Implements

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