Class V1Role
Role is a namespaced, logical grouping of PolicyRules that can be referenced as
a unit by a RoleBinding.
Assembly: KubernetesClient.dll
Syntax
[KubernetesEntity(Group = "rbac.authorization.k8s.io", Kind = "Role", ApiVersion = "v1", PluralName = "roles")]
public record V1Role : IKubernetesObject<V1ObjectMeta>, IKubernetesObject, IMetadata<V1ObjectMeta>, IEquatable<V1Role>
Constructors
View Source
V1Role()
Declaration
View Source
V1Role(V1Role)
Declaration
protected V1Role(V1Role original)
Parameters
| Type |
Name |
Description |
| V1Role |
original |
|
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 = "Role"
Field Value
View Source
KubePluralName
Declaration
public const string KubePluralName = "roles"
Field Value
Properties
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 Role
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(V1Role?)
Declaration
public virtual bool Equals(V1Role? other)
Parameters
| Type |
Name |
Description |
| V1Role |
other |
|
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 ==(V1Role?, V1Role?)
Declaration
public static bool operator ==(V1Role? left, V1Role? right)
Parameters
Returns
View Source
operator !=(V1Role?, V1Role?)
Declaration
public static bool operator !=(V1Role? left, V1Role? right)
Parameters
Returns
Implements
Extension Methods