public sealed class KubernetesSecret : IMessage<KubernetesSecret>, IEquatable<KubernetesSecret>, IDeepCloneable<KubernetesSecret>, IBufferMessage, IMessage
Reference documentation and code samples for the Anthos Multi-Cloud v1 API class KubernetesSecret.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThis webpage provides reference documentation for the \u003ccode\u003eKubernetesSecret\u003c/code\u003e class within the Anthos Multi-Cloud v1 API, detailing its properties and functionality.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eKubernetesSecret\u003c/code\u003e class, which provides information about a Kubernetes Secret, implements interfaces such as \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\u003eAvailable versions for this documentation range from 1.0.0-beta01 up to the latest version 2.8.0, with links to each specific version's documentation.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eKubernetesSecret\u003c/code\u003e class include \u003ccode\u003eName\u003c/code\u003e and \u003ccode\u003eNamespace\u003c/code\u003e, both of which are strings that describe the name and storage namespace of the secret.\u003c/p\u003e\n"],["\u003cp\u003eThe class can be constructed using the default \u003ccode\u003eKubernetesSecret()\u003c/code\u003e constructor or by copying an existing \u003ccode\u003eKubernetesSecret\u003c/code\u003e object via \u003ccode\u003eKubernetesSecret(KubernetesSecret other)\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Anthos Multi-Cloud v1 API - Class KubernetesSecret (2.8.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.8.0 (latest)](/dotnet/docs/reference/Google.Cloud.GkeMultiCloud.V1/latest/Google.Cloud.GkeMultiCloud.V1.KubernetesSecret)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.GkeMultiCloud.V1/2.7.0/Google.Cloud.GkeMultiCloud.V1.KubernetesSecret)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.GkeMultiCloud.V1/2.6.0/Google.Cloud.GkeMultiCloud.V1.KubernetesSecret)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.GkeMultiCloud.V1/2.5.0/Google.Cloud.GkeMultiCloud.V1.KubernetesSecret)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.GkeMultiCloud.V1/2.4.0/Google.Cloud.GkeMultiCloud.V1.KubernetesSecret)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.GkeMultiCloud.V1/2.3.0/Google.Cloud.GkeMultiCloud.V1.KubernetesSecret)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.GkeMultiCloud.V1/2.2.0/Google.Cloud.GkeMultiCloud.V1.KubernetesSecret)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.GkeMultiCloud.V1/2.1.0/Google.Cloud.GkeMultiCloud.V1.KubernetesSecret)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.GkeMultiCloud.V1/2.0.0/Google.Cloud.GkeMultiCloud.V1.KubernetesSecret)\n- [1.0.0-beta01](/dotnet/docs/reference/Google.Cloud.GkeMultiCloud.V1/1.0.0-beta01/Google.Cloud.GkeMultiCloud.V1.KubernetesSecret) \n\n public sealed class KubernetesSecret : IMessage\u003cKubernetesSecret\u003e, IEquatable\u003cKubernetesSecret\u003e, IDeepCloneable\u003cKubernetesSecret\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Anthos Multi-Cloud v1 API class KubernetesSecret.\n\nInformation about a Kubernetes Secret \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e KubernetesSecret \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[KubernetesSecret](/dotnet/docs/reference/Google.Cloud.GkeMultiCloud.V1/latest/Google.Cloud.GkeMultiCloud.V1.KubernetesSecret), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[KubernetesSecret](/dotnet/docs/reference/Google.Cloud.GkeMultiCloud.V1/latest/Google.Cloud.GkeMultiCloud.V1.KubernetesSecret), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[KubernetesSecret](/dotnet/docs/reference/Google.Cloud.GkeMultiCloud.V1/latest/Google.Cloud.GkeMultiCloud.V1.KubernetesSecret), [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.GkeMultiCloud.V1](/dotnet/docs/reference/Google.Cloud.GkeMultiCloud.V1/latest/Google.Cloud.GkeMultiCloud.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.GkeMultiCloud.V1.dll\n\nConstructors\n------------\n\n### KubernetesSecret()\n\n public KubernetesSecret()\n\n### KubernetesSecret(KubernetesSecret)\n\n public KubernetesSecret(KubernetesSecret other)\n\nProperties\n----------\n\n### Name\n\n public string Name { get; set; }\n\nName of the kubernetes secret.\n\n### Namespace\n\n public string Namespace { get; set; }\n\nNamespace in which the kubernetes secret is stored."]]