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