public sealed class KubernetesResource : IMessage<KubernetesResource>, IEquatable<KubernetesResource>, IDeepCloneable<KubernetesResource>, IBufferMessage, IMessage
Reference documentation and code samples for the GKE Hub v1beta1 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 page provides reference documentation for the \u003ccode\u003eKubernetesResource\u003c/code\u003e class within the GKE Hub v1beta1 API, with the latest version being 2.0.0-beta07.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eKubernetesResource\u003c/code\u003e manages YAML manifests and configurations for Membership Kubernetes resources in a cluster, which should be re-applied following CreateMembership or UpdateMembership actions.\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits from \u003ccode\u003eobject\u003c/code\u003e and 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, providing functionalities like message handling and deep cloning.\u003c/p\u003e\n"],["\u003cp\u003eKey properties include \u003ccode\u003eConnectResources\u003c/code\u003e, \u003ccode\u003eMembershipCrManifest\u003c/code\u003e, \u003ccode\u003eMembershipResources\u003c/code\u003e, and \u003ccode\u003eResourceOptions\u003c/code\u003e, which manage resource manifests and configurations, including GKE Connect agent resources and options for Kubernetes resource generation.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eKubernetesResource\u003c/code\u003e has two constructors, one being default and the other accepting a \u003ccode\u003eKubernetesResource\u003c/code\u003e parameter to copy an existing object.\u003c/p\u003e\n"]]],[],null,["# GKE Hub v1beta1 API - Class KubernetesResource (2.0.0-beta07)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.0-beta07 (latest)](/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.KubernetesResource)\n- [2.0.0-beta06](/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/2.0.0-beta06/Google.Cloud.GkeHub.V1Beta1.KubernetesResource)\n- [1.0.0-beta04](/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/1.0.0-beta04/Google.Cloud.GkeHub.V1Beta1.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 v1beta1 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.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.KubernetesResource), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[KubernetesResource](/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.KubernetesResource), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[KubernetesResource](/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.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.V1Beta1](/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1)\n\nAssembly\n--------\n\nGoogle.Cloud.GkeHub.V1Beta1.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."]]