public sealed class KubernetesResource : IMessage<KubernetesResource>, IEquatable<KubernetesResource>, IDeepCloneable<KubernetesResource>, IBufferMessage, IMessage
Reference documentation and code samples for the GKE Hub v1 API class KubernetesResource.
KubernetesResource contains the YAML manifests and configuration for
Membership Kubernetes resources in the cluster. After CreateMembership or
UpdateMembership, these resources should be re-applied in the cluster.
public RepeatedField<ResourceManifest> ConnectResources { get; }
Output only. The Kubernetes resources for installing the GKE Connect agent
This field is only populated in the Membership returned from a successful
long-running operation from CreateMembership or UpdateMembership. It is not
populated during normal GetMembership or ListMemberships requests. To get
the resource manifest after the initial registration, the caller should
make a UpdateMembership call with an empty field mask.
Input only. The YAML representation of the Membership CR. This field is
ignored for GKE clusters where Hub can read the CR directly.
Callers should provide the CR that is currently present in the cluster
during CreateMembership or UpdateMembership, or leave this field empty if
none exists. The CR manifest is used to validate the cluster has not been
registered with another Membership.
public RepeatedField<ResourceManifest> MembershipResources { get; }
Output only. Additional Kubernetes resources that need to be applied to the
cluster after Membership creation, and after every update.
This field is only populated in the Membership returned from a successful
long-running operation from CreateMembership or UpdateMembership. It is not
populated during normal GetMembership or ListMemberships requests. To get
the resource manifest after the initial registration, the caller should
make a UpdateMembership call with an empty field mask.
[[["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 webpage provides reference documentation for the \u003ccode\u003eKubernetesResource\u003c/code\u003e class within the Google Cloud GKE Hub v1 API, detailing its use for managing Kubernetes resources within a cluster.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eKubernetesResource\u003c/code\u003e class includes properties like \u003ccode\u003eConnectResources\u003c/code\u003e, \u003ccode\u003eMembershipCrManifest\u003c/code\u003e, \u003ccode\u003eMembershipResources\u003c/code\u003e, and \u003ccode\u003eResourceOptions\u003c/code\u003e, allowing interaction and configuration of resources.\u003c/p\u003e\n"],["\u003cp\u003eIt also outlines the different versions of this class, from version 1.0.0 up to the latest version 2.5.0, and notes that it is designed for re-applying resources in a cluster after \u003ccode\u003eCreateMembership\u003c/code\u003e or \u003ccode\u003eUpdateMembership\u003c/code\u003e actions.\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, indicating its role in data management and manipulation within the API.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eConnectResources\u003c/code\u003e and \u003ccode\u003eMembershipResources\u003c/code\u003e properties provide read-only access to resource manifests, which are populated only after successful create or update operations, requiring an \u003ccode\u003eUpdateMembership\u003c/code\u003e call to get the resource manifest after initial registration.\u003c/p\u003e\n"]]],[],null,["# GKE Hub v1 API - Class KubernetesResource (2.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/latest/Google.Cloud.GkeHub.V1.KubernetesResource)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/2.4.0/Google.Cloud.GkeHub.V1.KubernetesResource)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/2.3.0/Google.Cloud.GkeHub.V1.KubernetesResource)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/2.2.0/Google.Cloud.GkeHub.V1.KubernetesResource)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/2.1.0/Google.Cloud.GkeHub.V1.KubernetesResource)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/2.0.0/Google.Cloud.GkeHub.V1.KubernetesResource)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/1.2.0/Google.Cloud.GkeHub.V1.KubernetesResource)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/1.1.0/Google.Cloud.GkeHub.V1.KubernetesResource)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/1.0.0/Google.Cloud.GkeHub.V1.KubernetesResource) \n\n public sealed class KubernetesResource : IMessage\u003cKubernetesResource\u003e, IEquatable\u003cKubernetesResource\u003e, IDeepCloneable\u003cKubernetesResource\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the GKE Hub v1 API class KubernetesResource.\n\nKubernetesResource contains the YAML manifests and configuration for\nMembership Kubernetes resources in the cluster. After CreateMembership or\nUpdateMembership, these resources should be re-applied in the cluster. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e KubernetesResource \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[KubernetesResource](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/latest/Google.Cloud.GkeHub.V1.KubernetesResource), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[KubernetesResource](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/latest/Google.Cloud.GkeHub.V1.KubernetesResource), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[KubernetesResource](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/latest/Google.Cloud.GkeHub.V1.KubernetesResource), [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.GkeHub.V1](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/latest/Google.Cloud.GkeHub.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.GkeHub.V1.dll\n\nConstructors\n------------\n\n### KubernetesResource()\n\n public KubernetesResource()\n\n### KubernetesResource(KubernetesResource)\n\n public KubernetesResource(KubernetesResource other)\n\nProperties\n----------\n\n### ConnectResources\n\n public RepeatedField\u003cResourceManifest\u003e ConnectResources { get; }\n\nOutput only. The Kubernetes resources for installing the GKE Connect agent\n\nThis field is only populated in the Membership returned from a successful\nlong-running operation from CreateMembership or UpdateMembership. It is not\npopulated during normal GetMembership or ListMemberships requests. To get\nthe resource manifest after the initial registration, the caller should\nmake a UpdateMembership call with an empty field mask.\n\n### MembershipCrManifest\n\n public string MembershipCrManifest { get; set; }\n\nInput only. The YAML representation of the Membership CR. This field is\nignored for GKE clusters where Hub can read the CR directly.\n\nCallers should provide the CR that is currently present in the cluster\nduring CreateMembership or UpdateMembership, or leave this field empty if\nnone exists. The CR manifest is used to validate the cluster has not been\nregistered with another Membership.\n\n### MembershipResources\n\n public RepeatedField\u003cResourceManifest\u003e MembershipResources { get; }\n\nOutput only. Additional Kubernetes resources that need to be applied to the\ncluster after Membership creation, and after every update.\n\nThis field is only populated in the Membership returned from a successful\nlong-running operation from CreateMembership or UpdateMembership. It is not\npopulated during normal GetMembership or ListMemberships requests. To get\nthe resource manifest after the initial registration, the caller should\nmake a UpdateMembership call with an empty field mask.\n\n### ResourceOptions\n\n public ResourceOptions ResourceOptions { get; set; }\n\nOptional. Options for Kubernetes resource generation."]]