Show / Hide Table of Contents

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
object
V1ResourceRule
Implements
IEquatable<V1ResourceRule>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: k8s.Models
Assembly: KubernetesClient.dll
Syntax
public record V1ResourceRule : IEquatable<V1ResourceRule>

Constructors

View Source

V1ResourceRule()

Declaration
public V1ResourceRule()
View Source

V1ResourceRule(V1ResourceRule)

Declaration
protected V1ResourceRule(V1ResourceRule original)
Parameters
Type Name Description
V1ResourceRule 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. "*" means all.

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

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
Type Description
IList<string>
View Source

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
Type Description
IList<string>
View Source

Verbs

Verb 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
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(V1ResourceRule?)

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

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

operator !=(V1ResourceRule?, V1ResourceRule?)

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

Implements

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