# Filestore V1 API - Class Google::Cloud::Filestore::V1::Replication (v2.7.0)

2.7.0 (latest) 2.6.1 2.5.0 2.4.1 2.3.1 2.2.0 2.1.1 2.0.0 1.2.0 1.1.0 1.0.1 0.9.0 0.8.2 0.7.0 0.6.0 0.5.0 0.4.1 0.3.0 0.2.0 0.1.3 Reference documentation and code samples for the Filestore V1 API class Google::Cloud::Filestore::V1::Replication.

Replication specifications.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #replicas

    def replicas() -> ::Array<::Google::Cloud::Filestore::V1::ReplicaConfig>

**Returns**

- (::Array\<[::Google::Cloud::Filestore::V1::ReplicaConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-filestore-v1/latest/Google-Cloud-Filestore-V1-ReplicaConfig)\>) --- Optional. Replication configuration for the replica instance associated with this instance. Only a single replica is supported.

### #replicas=

    def replicas=(value) -> ::Array<::Google::Cloud::Filestore::V1::ReplicaConfig>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Filestore::V1::ReplicaConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-filestore-v1/latest/Google-Cloud-Filestore-V1-ReplicaConfig)\>) --- Optional. Replication configuration for the replica instance associated with this instance. Only a single replica is supported.
**Returns**

- (::Array\<[::Google::Cloud::Filestore::V1::ReplicaConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-filestore-v1/latest/Google-Cloud-Filestore-V1-ReplicaConfig)\>) --- Optional. Replication configuration for the replica instance associated with this instance. Only a single replica is supported.

### #role

    def role() -> ::Google::Cloud::Filestore::V1::Replication::Role

**Returns**

- ([::Google::Cloud::Filestore::V1::Replication::Role](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-filestore-v1/latest/Google-Cloud-Filestore-V1-Replication-Role)) --- Optional. The replication role.

### #role=

    def role=(value) -> ::Google::Cloud::Filestore::V1::Replication::Role

**Parameter**

- **value** ([::Google::Cloud::Filestore::V1::Replication::Role](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-filestore-v1/latest/Google-Cloud-Filestore-V1-Replication-Role)) --- Optional. The replication role.
**Returns**

- ([::Google::Cloud::Filestore::V1::Replication::Role](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-filestore-v1/latest/Google-Cloud-Filestore-V1-Replication-Role)) --- Optional. The replication role.