Google Cloud Gke Hub V1 Client - Class MembershipState (1.0.0)

Reference documentation and code samples for the Google Cloud Gke Hub V1 Client class MembershipState.

Anthos Config Management: State for a single cluster.

Generated from protobuf message google.cloud.gkehub.configmanagement.v1.MembershipState

Namespace

Google \ Cloud \ GkeHub \ ConfigManagement \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ cluster_name string

This field is set to the cluster_name field of the Membership Spec if it is not empty. Otherwise, it is set to the cluster's fleet membership name.

↳ membership_spec Google\Cloud\GkeHub\ConfigManagement\V1\MembershipSpec

Membership configuration in the cluster. This represents the actual state in the cluster, while the MembershipSpec in the FeatureSpec represents the intended state

↳ operator_state Google\Cloud\GkeHub\ConfigManagement\V1\OperatorState

Current install status of ACM's Operator

↳ config_sync_state Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncState

Current sync status

↳ policy_controller_state Google\Cloud\GkeHub\ConfigManagement\V1\PolicyControllerState

PolicyController status

↳ hierarchy_controller_state Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerState

Hierarchy Controller status

getClusterName

This field is set to the cluster_name field 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 the cluster_name field 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

Returns
Type Description
Google\Cloud\GkeHub\ConfigManagement\V1\MembershipSpec|null

hasMembershipSpec

clearMembershipSpec

setMembershipSpec

Membership configuration in the cluster. This represents the actual state in the cluster, while the MembershipSpec in the FeatureSpec represents the intended state

Parameter
Name Description
var Google\Cloud\GkeHub\ConfigManagement\V1\MembershipSpec
Returns
Type Description
$this

getOperatorState

Current install status of ACM's Operator

Returns
Type Description
Google\Cloud\GkeHub\ConfigManagement\V1\OperatorState|null

hasOperatorState

clearOperatorState

setOperatorState

Current install status of ACM's Operator

Parameter
Name Description
var Google\Cloud\GkeHub\ConfigManagement\V1\OperatorState
Returns
Type Description
$this

getConfigSyncState

Current sync status

Returns
Type Description
Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncState|null

hasConfigSyncState

clearConfigSyncState

setConfigSyncState

Current sync status

Parameter
Name Description
var Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncState
Returns
Type Description
$this

getPolicyControllerState

PolicyController status

Returns
Type Description
Google\Cloud\GkeHub\ConfigManagement\V1\PolicyControllerState|null

hasPolicyControllerState

clearPolicyControllerState

setPolicyControllerState

PolicyController status

Parameter
Name Description
var Google\Cloud\GkeHub\ConfigManagement\V1\PolicyControllerState
Returns
Type Description
$this

getHierarchyControllerState

Hierarchy Controller status

Returns
Type Description
Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerState|null

hasHierarchyControllerState

clearHierarchyControllerState

setHierarchyControllerState

Hierarchy Controller status

Parameter
Name Description
var Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerState
Returns
Type Description
$this