# Google Cloud Memorystore for Redis V1BETA1 API - Class Google::Cloud::Redis::Cluster::V1beta1::CrossClusterReplicationConfig (v0.11.0)

0.11.0 (latest) 0.10.0 0.9.1 0.8.0 0.7.1 0.6.0 0.5.0 0.4.1 0.3.0 0.2.0 0.1.2 Reference documentation and code samples for the Google Cloud Memorystore for Redis V1BETA1 API class Google::Cloud::Redis::Cluster::V1beta1::CrossClusterReplicationConfig.

Cross cluster replication config.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #cluster_role

    def cluster_role() -> ::Google::Cloud::Redis::Cluster::V1beta1::CrossClusterReplicationConfig::ClusterRole

**Returns**

- ([::Google::Cloud::Redis::Cluster::V1beta1::CrossClusterReplicationConfig::ClusterRole](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-redis-cluster-v1beta1/latest/Google-Cloud-Redis-Cluster-V1beta1-CrossClusterReplicationConfig-ClusterRole)) --- The role of the cluster in cross cluster replication.

### #cluster_role=

    def cluster_role=(value) -> ::Google::Cloud::Redis::Cluster::V1beta1::CrossClusterReplicationConfig::ClusterRole

**Parameter**

- **value** ([::Google::Cloud::Redis::Cluster::V1beta1::CrossClusterReplicationConfig::ClusterRole](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-redis-cluster-v1beta1/latest/Google-Cloud-Redis-Cluster-V1beta1-CrossClusterReplicationConfig-ClusterRole)) --- The role of the cluster in cross cluster replication.
**Returns**

- ([::Google::Cloud::Redis::Cluster::V1beta1::CrossClusterReplicationConfig::ClusterRole](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-redis-cluster-v1beta1/latest/Google-Cloud-Redis-Cluster-V1beta1-CrossClusterReplicationConfig-ClusterRole)) --- The role of the cluster in cross cluster replication.

### #membership

    def membership() -> ::Google::Cloud::Redis::Cluster::V1beta1::CrossClusterReplicationConfig::Membership

**Returns**

- ([::Google::Cloud::Redis::Cluster::V1beta1::CrossClusterReplicationConfig::Membership](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-redis-cluster-v1beta1/latest/Google-Cloud-Redis-Cluster-V1beta1-CrossClusterReplicationConfig-Membership)) --- Output only. An output only view of all the member clusters participating in the cross cluster replication. This view will be provided by every member cluster irrespective of its cluster role(primary or secondary).


  A primary cluster can provide information about all the secondary clusters
  replicating from it. However, a secondary cluster only knows about the
  primary cluster from which it is replicating. However, for scenarios, where
  the primary cluster is unavailable(e.g. regional outage), a GetCluster
  request can be sent to any other member cluster and this field will list
  all the member clusters participating in cross cluster replication.

### #primary_cluster

    def primary_cluster() -> ::Google::Cloud::Redis::Cluster::V1beta1::CrossClusterReplicationConfig::RemoteCluster

**Returns**

- ([::Google::Cloud::Redis::Cluster::V1beta1::CrossClusterReplicationConfig::RemoteCluster](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-redis-cluster-v1beta1/latest/Google-Cloud-Redis-Cluster-V1beta1-CrossClusterReplicationConfig-RemoteCluster)) --- Details of the primary cluster that is used as the replication source for this secondary cluster.


  This field is only set for a secondary cluster.

### #primary_cluster=

    def primary_cluster=(value) -> ::Google::Cloud::Redis::Cluster::V1beta1::CrossClusterReplicationConfig::RemoteCluster

**Parameter**

- **value** ([::Google::Cloud::Redis::Cluster::V1beta1::CrossClusterReplicationConfig::RemoteCluster](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-redis-cluster-v1beta1/latest/Google-Cloud-Redis-Cluster-V1beta1-CrossClusterReplicationConfig-RemoteCluster)) --- Details of the primary cluster that is used as the replication source for this secondary cluster.


  This field is only set for a secondary cluster.
**Returns**

- ([::Google::Cloud::Redis::Cluster::V1beta1::CrossClusterReplicationConfig::RemoteCluster](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-redis-cluster-v1beta1/latest/Google-Cloud-Redis-Cluster-V1beta1-CrossClusterReplicationConfig-RemoteCluster)) --- Details of the primary cluster that is used as the replication source for this secondary cluster.


  This field is only set for a secondary cluster.

### #secondary_clusters

    def secondary_clusters() -> ::Array<::Google::Cloud::Redis::Cluster::V1beta1::CrossClusterReplicationConfig::RemoteCluster>

**Returns**

- (::Array\<[::Google::Cloud::Redis::Cluster::V1beta1::CrossClusterReplicationConfig::RemoteCluster](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-redis-cluster-v1beta1/latest/Google-Cloud-Redis-Cluster-V1beta1-CrossClusterReplicationConfig-RemoteCluster)\>) --- List of secondary clusters that are replicating from this primary cluster.


  This field is only set for a primary cluster.

### #secondary_clusters=

    def secondary_clusters=(value) -> ::Array<::Google::Cloud::Redis::Cluster::V1beta1::CrossClusterReplicationConfig::RemoteCluster>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Redis::Cluster::V1beta1::CrossClusterReplicationConfig::RemoteCluster](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-redis-cluster-v1beta1/latest/Google-Cloud-Redis-Cluster-V1beta1-CrossClusterReplicationConfig-RemoteCluster)\>) --- List of secondary clusters that are replicating from this primary cluster.


  This field is only set for a primary cluster.
**Returns**

- (::Array\<[::Google::Cloud::Redis::Cluster::V1beta1::CrossClusterReplicationConfig::RemoteCluster](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-redis-cluster-v1beta1/latest/Google-Cloud-Redis-Cluster-V1beta1-CrossClusterReplicationConfig-RemoteCluster)\>) --- List of secondary clusters that are replicating from this primary cluster.


  This field is only set for a primary cluster.

### #update_time

    def update_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-redis-cluster-v1beta1/latest/Google-Protobuf-Timestamp)) --- Output only. The last time cross cluster replication config was updated.