public sealed class Kubernetes.Types.Subject : IMessage<Kubernetes.Types.Subject>, IEquatable<Kubernetes.Types.Subject>, IDeepCloneable<Kubernetes.Types.Subject>, IBufferMessage, IMessage
Reference documentation and code samples for the Security Command Center v2 API class Kubernetes.Types.Subject.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides reference information for the \u003ccode\u003eKubernetes.Types.Subject\u003c/code\u003e class, a part of the Security Command Center v2 API within the Google Cloud .NET library.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eKubernetes.Types.Subject\u003c/code\u003e class represents a subject within Kubernetes and inherits from the \u003ccode\u003eobject\u003c/code\u003e class while implementing several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two constructors, one being a default constructor, and the other being a copy constructor that accepts another \u003ccode\u003eKubernetes.Types.Subject\u003c/code\u003e object as a parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes three properties: \u003ccode\u003eKind\u003c/code\u003e which specifies the authentication type, \u003ccode\u003eName\u003c/code\u003e which provides the name of the subject, and \u003ccode\u003eNs\u003c/code\u003e which specifies the namespace.\u003c/p\u003e\n"],["\u003cp\u003eThis documentation is available for two versions of the API, version 1.1.0, which is the latest version, and version 1.0.0.\u003c/p\u003e\n"]]],[],null,["# Security Command Center v2 API - Class Kubernetes.Types.Subject (1.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.0 (latest)](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.Kubernetes.Types.Subject)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.1.0/Google.Cloud.SecurityCenter.V2.Kubernetes.Types.Subject)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.0.0/Google.Cloud.SecurityCenter.V2.Kubernetes.Types.Subject) \n\n public sealed class Kubernetes.Types.Subject : IMessage\u003cKubernetes.Types.Subject\u003e, IEquatable\u003cKubernetes.Types.Subject\u003e, IDeepCloneable\u003cKubernetes.Types.Subject\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Security Command Center v2 API class Kubernetes.Types.Subject.\n\nRepresents a Kubernetes subject. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Kubernetes.Types.Subject \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Kubernetes](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.Kubernetes)[Types](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.Kubernetes.Types)[Subject](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.Kubernetes.Types.Subject), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Kubernetes](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.Kubernetes)[Types](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.Kubernetes.Types)[Subject](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.Kubernetes.Types.Subject), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Kubernetes](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.Kubernetes)[Types](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.Kubernetes.Types)[Subject](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.Kubernetes.Types.Subject), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.SecurityCenter.V2](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.SecurityCenter.V2.dll\n\nConstructors\n------------\n\n### Subject()\n\n public Subject()\n\n### Subject(Subject)\n\n public Subject(Kubernetes.Types.Subject other)\n\nProperties\n----------\n\n### Kind\n\n public Kubernetes.Types.Subject.Types.AuthType Kind { get; set; }\n\nAuthentication type for the subject.\n\n### Name\n\n public string Name { get; set; }\n\nName for the subject.\n\n### Ns\n\n public string Ns { get; set; }\n\nNamespace for the subject."]]