Class V1ResourceRule
ResourceRule is the list of actions the subject is allowed to perform on
resources. The list ordering isn't significant, may contain duplicates, and
possibly be incomplete.
Inheritance
V1ResourceRule
Assembly: KubernetesClient.dll
Syntax
public record V1ResourceRule : IEquatable<V1ResourceRule>
Constructors
V1ResourceRule()
Declaration
V1ResourceRule(V1ResourceRule)
Declaration
protected V1ResourceRule(V1ResourceRule 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. "*" means all.
Declaration
[JsonPropertyName("apiGroups")]
public IList<string> ApiGroups { get; set; }
Property Value
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
ResourceNames
resourceNames is an optional white list of names that the rule applies to. An
empty set means that everything is allowed. "*" means all.
Declaration
[JsonPropertyName("resourceNames")]
public IList<string> ResourceNames { get; set; }
Property Value
Resources
resources is a list of resources this rule applies to. "" means all in the
specified apiGroups.
"/foo" represents the subresource 'foo' for all resources in the specified
apiGroups.
Declaration
[JsonPropertyName("resources")]
public IList<string> Resources { get; set; }
Property Value
Verbs
verbs is a list of kubernetes resource API verbs, like: get, list, watch,
create, update, delete, proxy. "*" means all.
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(V1ResourceRule?)
Declaration
public virtual bool Equals(V1ResourceRule? 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 ==(V1ResourceRule?, V1ResourceRule?)
Declaration
public static bool operator ==(V1ResourceRule? left, V1ResourceRule? right)
Parameters
Returns
operator !=(V1ResourceRule?, V1ResourceRule?)
Declaration
public static bool operator !=(V1ResourceRule? left, V1ResourceRule? right)
Parameters
Returns
Implements