# Memorystore V1 API - Class Google::Cloud::Memorystore::V1::CrossInstanceReplicationConfig::Membership (v1.9.0)

1.9.0 (latest) 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.1 1.0.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Memorystore V1 API class Google::Cloud::Memorystore::V1::CrossInstanceReplicationConfig::Membership.

An output only view of all the member instances participating in the cross
instance replication.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #primary_instance

    def primary_instance() -> ::Google::Cloud::Memorystore::V1::CrossInstanceReplicationConfig::RemoteInstance

**Returns**

- ([::Google::Cloud::Memorystore::V1::CrossInstanceReplicationConfig::RemoteInstance](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memorystore-v1/latest/Google-Cloud-Memorystore-V1-CrossInstanceReplicationConfig-RemoteInstance)) --- Output only. The primary instance that acts as the source of replication for the secondary instances.

### #secondary_instances

    def secondary_instances() -> ::Array<::Google::Cloud::Memorystore::V1::CrossInstanceReplicationConfig::RemoteInstance>

**Returns**

- (::Array\<[::Google::Cloud::Memorystore::V1::CrossInstanceReplicationConfig::RemoteInstance](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memorystore-v1/latest/Google-Cloud-Memorystore-V1-CrossInstanceReplicationConfig-RemoteInstance)\>) --- Output only. The list of secondary instances replicating from the primary instance.