Google Cloud Redis Cluster V1 Client - Class Membership (0.4.0)

Reference documentation and code samples for the Google Cloud Redis Cluster V1 Client class Membership.

An output only view of all the member clusters participating in the cross cluster replication.

Generated from protobuf message google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership

Namespace

Google \ Cloud \ Redis \ Cluster \ V1 \ CrossClusterReplicationConfig

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ primary_cluster RemoteCluster

Output only. The primary cluster that acts as the source of replication for the secondary clusters.

↳ secondary_clusters array<RemoteCluster>

Output only. The list of secondary clusters replicating from the primary cluster.

getPrimaryCluster

Output only. The primary cluster that acts as the source of replication for the secondary clusters.

Returns
Type Description
RemoteCluster|null

hasPrimaryCluster

clearPrimaryCluster

setPrimaryCluster

Output only. The primary cluster that acts as the source of replication for the secondary clusters.

Parameter
Name Description
var RemoteCluster
Returns
Type Description
$this

getSecondaryClusters

Output only. The list of secondary clusters replicating from the primary cluster.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setSecondaryClusters

Output only. The list of secondary clusters replicating from the primary cluster.

Parameter
Name Description
var array<RemoteCluster>
Returns
Type Description
$this