Class V1ClusterRole
ClusterRole is a cluster level, logical grouping of PolicyRules that can be
referenced as a unit by a RoleBinding or ClusterRoleBinding.
Inheritance
V1ClusterRole
Assembly: KubernetesClient.dll
Syntax
[KubernetesEntity(Group = "rbac.authorization.k8s.io", Kind = "ClusterRole", ApiVersion = "v1", PluralName = "clusterroles")]
public record V1ClusterRole : IKubernetesObject<V1ObjectMeta>, IKubernetesObject, IMetadata<V1ObjectMeta>, IEquatable<V1ClusterRole>
Constructors
View Source
V1ClusterRole()
Declaration
View Source
V1ClusterRole(V1ClusterRole)
Declaration
protected V1ClusterRole(V1ClusterRole original)
Parameters
Fields
View Source
KubeApiVersion
Declaration
public const string KubeApiVersion = "v1"
Field Value
View Source
KubeGroup
Declaration
public const string KubeGroup = "rbac.authorization.k8s.io"
Field Value
View Source
KubeKind
Declaration
public const string KubeKind = "ClusterRole"
Field Value
View Source
KubePluralName
Declaration
public const string KubePluralName = "clusterroles"
Field Value
Properties
View Source
AggregationRule
AggregationRule is an optional field that describes how to build the Rules for
this ClusterRole. If AggregationRule is set, then the Rules are controller
managed and direct changes to Rules will be stomped by the controller.
Declaration
[JsonPropertyName("aggregationRule")]
public V1AggregationRule AggregationRule { get; set; }
Property Value
View Source
ApiVersion
Declaration
[JsonPropertyName("apiVersion")]
public string ApiVersion { get; set; }
Property Value
View Source
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
View Source
Kind
Declaration
[JsonPropertyName("kind")]
public string Kind { get; set; }
Property Value
View Source
Standard object's metadata.
Declaration
[JsonPropertyName("metadata")]
public V1ObjectMeta Metadata { get; set; }
Property Value
View Source
Rules
Rules holds all the PolicyRules for this ClusterRole
Declaration
[JsonPropertyName("rules")]
public IList<V1PolicyRule> Rules { 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(V1ClusterRole?)
Declaration
public virtual bool Equals(V1ClusterRole? 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 ==(V1ClusterRole?, V1ClusterRole?)
Declaration
public static bool operator ==(V1ClusterRole? left, V1ClusterRole? right)
Parameters
Returns
View Source
operator !=(V1ClusterRole?, V1ClusterRole?)
Declaration
public static bool operator !=(V1ClusterRole? left, V1ClusterRole? right)
Parameters
Returns
Implements
Extension Methods