public sealed class MembershipState : IMessage<MembershipState>, IEquatable<MembershipState>, IDeepCloneable<MembershipState>, IBufferMessage, IMessage
Reference documentation and code samples for the GKE Hub v1 API class MembershipState.
Anthos Config Management: State for a single cluster.
The user-defined name for the cluster used by ClusterSelectors to group
clusters together. This should match Membership's membership_name,
unless the user installed ACM on the cluster manually prior to enabling
the ACM hub feature.
Unique within a Anthos Config Management installation.
public MembershipSpec MembershipSpec { get; set; }
Membership configuration in the cluster. This represents the actual state
in the cluster, while the MembershipSpec in the FeatureSpec represents
the intended state
[[["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 documentation for the \u003ccode\u003eMembershipState\u003c/code\u003e class within the GKE Hub v1 API, which is used to represent the state of a single cluster in Anthos Config Management.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMembershipState\u003c/code\u003e class includes properties like \u003ccode\u003eClusterName\u003c/code\u003e, \u003ccode\u003eConfigSyncState\u003c/code\u003e, \u003ccode\u003eHierarchyControllerState\u003c/code\u003e, \u003ccode\u003eMembershipSpec\u003c/code\u003e, \u003ccode\u003eOperatorState\u003c/code\u003e, and \u003ccode\u003ePolicyControllerState\u003c/code\u003e, each offering details on different aspects of the cluster's status and configuration.\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple versions of the \u003ccode\u003eMembershipState\u003c/code\u003e available, ranging from version 1.0.0 to 2.5.0, with 2.5.0 being the latest version.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMembershipState\u003c/code\u003e class implements various interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from the \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eIt includes constructors for creating new instances, either default or based on another \u003ccode\u003eMembershipState\u003c/code\u003e object, allowing for copying and modification.\u003c/p\u003e\n"]]],[],null,["# GKE Hub v1 API - Class MembershipState (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.ConfigManagement.MembershipState)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/2.4.0/Google.Cloud.GkeHub.V1.ConfigManagement.MembershipState)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/2.3.0/Google.Cloud.GkeHub.V1.ConfigManagement.MembershipState)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/2.2.0/Google.Cloud.GkeHub.V1.ConfigManagement.MembershipState)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/2.1.0/Google.Cloud.GkeHub.V1.ConfigManagement.MembershipState)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/2.0.0/Google.Cloud.GkeHub.V1.ConfigManagement.MembershipState)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/1.2.0/Google.Cloud.GkeHub.V1.ConfigManagement.MembershipState)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/1.1.0/Google.Cloud.GkeHub.V1.ConfigManagement.MembershipState)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/1.0.0/Google.Cloud.GkeHub.V1.ConfigManagement.MembershipState) \n\n public sealed class MembershipState : IMessage\u003cMembershipState\u003e, IEquatable\u003cMembershipState\u003e, IDeepCloneable\u003cMembershipState\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the GKE Hub v1 API class MembershipState.\n\n**Anthos Config Management**: State for a single cluster. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e MembershipState \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[MembershipState](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/latest/Google.Cloud.GkeHub.V1.ConfigManagement.MembershipState), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[MembershipState](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/latest/Google.Cloud.GkeHub.V1.ConfigManagement.MembershipState), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[MembershipState](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/latest/Google.Cloud.GkeHub.V1.ConfigManagement.MembershipState), [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.ConfigManagement](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/latest/Google.Cloud.GkeHub.V1.ConfigManagement)\n\nAssembly\n--------\n\nGoogle.Cloud.GkeHub.V1.dll\n\nConstructors\n------------\n\n### MembershipState()\n\n public MembershipState()\n\n### MembershipState(MembershipState)\n\n public MembershipState(MembershipState other)\n\nProperties\n----------\n\n### ClusterName\n\n public string ClusterName { get; set; }\n\nThe user-defined name for the cluster used by ClusterSelectors to group\nclusters together. This should match Membership's membership_name,\nunless the user installed ACM on the cluster manually prior to enabling\nthe ACM hub feature.\nUnique within a Anthos Config Management installation.\n\n### ConfigSyncState\n\n public ConfigSyncState ConfigSyncState { get; set; }\n\nCurrent sync status\n\n### HierarchyControllerState\n\n public HierarchyControllerState HierarchyControllerState { get; set; }\n\nHierarchy Controller status\n\n### MembershipSpec\n\n public MembershipSpec MembershipSpec { get; set; }\n\nMembership configuration in the cluster. This represents the actual state\nin the cluster, while the MembershipSpec in the FeatureSpec represents\nthe intended state\n\n### OperatorState\n\n public OperatorState OperatorState { get; set; }\n\nCurrent install status of ACM's Operator\n\n### PolicyControllerState\n\n public PolicyControllerState PolicyControllerState { get; set; }\n\nPolicyController status"]]