Class Rbacv1Subject
Subject contains a reference to the object or user identities a role binding
applies to. This can either hold a direct API object reference, or a value for
non-objects such as user and group names.
Inheritance
Rbacv1Subject
Assembly: KubernetesClient.dll
Syntax
public record Rbacv1Subject : IEquatable<Rbacv1Subject>
Constructors
View Source
Rbacv1Subject()
Declaration
View Source
Rbacv1Subject(Rbacv1Subject)
Declaration
protected Rbacv1Subject(Rbacv1Subject original)
Parameters
Properties
View Source
ApiGroup
APIGroup holds the API group of the referenced subject. Defaults to " " for
ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and
Group subjects.
Declaration
[JsonPropertyName("apiGroup")]
public string ApiGroup { get; set; }
Property Value
View Source
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
View Source
Kind
Kind of object being referenced. Values defined by this API group are "User",
"Group", and "ServiceAccount". If the Authorizer does not recognized the kind
value, the Authorizer should report an error.
Declaration
[JsonPropertyName("kind")]
public string Kind { get; set; }
Property Value
View Source
Name
Name of the object being referenced.
Declaration
[JsonPropertyName("name")]
public string Name { get; set; }
Property Value
View Source
NamespaceProperty
Namespace of the referenced object. If the object kind is non-namespace, such
as "User" or "Group", and this value is not empty the Authorizer should report
an error.
Declaration
[JsonPropertyName("namespace")]
public string NamespaceProperty { 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(Rbacv1Subject?)
Declaration
public virtual bool Equals(Rbacv1Subject? 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 ==(Rbacv1Subject?, Rbacv1Subject?)
Declaration
public static bool operator ==(Rbacv1Subject? left, Rbacv1Subject? right)
Parameters
Returns
View Source
operator !=(Rbacv1Subject?, Rbacv1Subject?)
Declaration
public static bool operator !=(Rbacv1Subject? left, Rbacv1Subject? right)
Parameters
Returns
Implements