Show / Hide Table of Contents

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

Constructors

Rbacv1Subject()

Declaration
public Rbacv1Subject()

Rbacv1Subject(Rbacv1Subject)

Declaration
protected Rbacv1Subject(Rbacv1Subject original)
Parameters
Type Name Description
Rbacv1Subject original

Properties

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
Type Description
string

EqualityContract

Declaration
protected virtual Type EqualityContract { get; }
Property Value
Type Description
Type

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
Type Description
string

Name

Name of the object being referenced.

Declaration
[JsonPropertyName("name")]
public string Name { get; set; }
Property Value
Type Description
string

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
Type Description
string

Methods

Equals(object?)

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool
Overrides
object.Equals(object)

Equals(Rbacv1Subject?)

Declaration
public virtual bool Equals(Rbacv1Subject? other)
Parameters
Type Name Description
Rbacv1Subject other
Returns
Type Description
bool

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
object.GetHashCode()

PrintMembers(StringBuilder)

Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Type Name Description
StringBuilder builder
Returns
Type Description
bool

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Operators

operator ==(Rbacv1Subject?, Rbacv1Subject?)

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

operator !=(Rbacv1Subject?, Rbacv1Subject?)

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

Implements

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