Membership configuration in the cluster. This represents the actual state in the cluster, while the MembershipSpec in the FeatureSpec represents the intended state
This field is set to thecluster_namefield of the Membership Spec if it
is not empty. Otherwise, it is set to the cluster's fleet membership name.
Returns
Type
Description
string
setClusterName
This field is set to thecluster_namefield of the Membership Spec if it
is not empty. Otherwise, it is set to the cluster's fleet membership name.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getMembershipSpec
Membership configuration in the cluster. This represents the actual state
in the cluster, while the MembershipSpec in the FeatureSpec represents
the intended state
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"]],[["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."],[],[],null,["# Google Cloud Gke Hub V1 Client - Class MembershipState (1.0.6)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.6 (latest)](/php/docs/reference/cloud-gke-hub/latest/ConfigManagement.V1.MembershipState)\n- [1.0.5](/php/docs/reference/cloud-gke-hub/1.0.5/ConfigManagement.V1.MembershipState)\n- [0.10.0](/php/docs/reference/cloud-gke-hub/0.10.0/ConfigManagement.V1.MembershipState)\n- [0.9.5](/php/docs/reference/cloud-gke-hub/0.9.5/ConfigManagement.V1.MembershipState)\n- [0.8.2](/php/docs/reference/cloud-gke-hub/0.8.2/ConfigManagement.V1.MembershipState)\n- [0.7.1](/php/docs/reference/cloud-gke-hub/0.7.1/ConfigManagement.V1.MembershipState)\n- [0.6.3](/php/docs/reference/cloud-gke-hub/0.6.3/ConfigManagement.V1.MembershipState)\n- [0.5.6](/php/docs/reference/cloud-gke-hub/0.5.6/ConfigManagement.V1.MembershipState) \nReference documentation and code samples for the Google Cloud Gke Hub V1 Client class MembershipState.\n\n**Anthos Config Management**: State for a single cluster.\n\nGenerated from protobuf message `google.cloud.gkehub.configmanagement.v1.MembershipState`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ GkeHub \\\\ ConfigManagement \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getClusterName\n\nThis field is set to the `cluster_name` field of the Membership Spec if it\nis not empty. Otherwise, it is set to the cluster's fleet membership name.\n\n### setClusterName\n\nThis field is set to the `cluster_name` field of the Membership Spec if it\nis not empty. Otherwise, it is set to the cluster's fleet membership name.\n\n### getMembershipSpec\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### hasMembershipSpec\n\n### clearMembershipSpec\n\n### setMembershipSpec\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### getOperatorState\n\nCurrent install status of ACM's Operator\n\n### hasOperatorState\n\n### clearOperatorState\n\n### setOperatorState\n\nCurrent install status of ACM's Operator\n\n### getConfigSyncState\n\nCurrent sync status\n\n### hasConfigSyncState\n\n### clearConfigSyncState\n\n### setConfigSyncState\n\nCurrent sync status\n\n### getPolicyControllerState\n\nPolicyController status\n\n### hasPolicyControllerState\n\n### clearPolicyControllerState\n\n### setPolicyControllerState\n\nPolicyController status\n\n### getHierarchyControllerState\n\nHierarchy Controller status\n\n### hasHierarchyControllerState\n\n### clearHierarchyControllerState\n\n### setHierarchyControllerState\n\nHierarchy Controller status"]]