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.
Assembly: KubernetesClient.dll
Syntax
public record V1PolicyRule : IEquatable<V1PolicyRule>
Constructors
View Source
V1PolicyRule()
Declaration
View Source
V1PolicyRule(V1PolicyRule)
Declaration
protected V1PolicyRule(V1PolicyRule original)
Parameters
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
View Source
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
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
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
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
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
Methods
View Source
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
View Source
Equals(V1PolicyRule?)
Declaration
public virtual bool Equals(V1PolicyRule? 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 ==(V1PolicyRule?, V1PolicyRule?)
Declaration
public static bool operator ==(V1PolicyRule? left, V1PolicyRule? right)
Parameters
Returns
View Source
operator !=(V1PolicyRule?, V1PolicyRule?)
Declaration
public static bool operator !=(V1PolicyRule? left, V1PolicyRule? right)
Parameters
Returns
Implements