# Cloud Spanner Instance Admin V1 API - Class Google::Cloud::Spanner::Admin::Instance::V1::ReplicaInfo (v2.8.0)

2.8.0 (latest) 2.7.1 2.6.0 2.5.0 2.4.0 2.3.1 2.2.0 2.1.0 2.0.1 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.1 1.0.0 0.16.0 0.15.0 0.14.0 0.13.2 0.12.0 0.11.0 0.10.2 0.9.0 0.8.0 0.7.0 0.6.0 0.5.5 Reference documentation and code samples for the Cloud Spanner Instance Admin V1 API class Google::Cloud::Spanner::Admin::Instance::V1::ReplicaInfo.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #default_leader_location

    def default_leader_location() -> ::Boolean

**Returns**

- (::Boolean) --- If true, this location is designated as the default leader location where leader replicas are placed. See the [region types
  documentation](https://cloud.google.com/spanner/docs/instances#region_types) for more details.

### #default_leader_location=

    def default_leader_location=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- If true, this location is designated as the default leader location where leader replicas are placed. See the [region types
  documentation](https://cloud.google.com/spanner/docs/instances#region_types) for more details.
**Returns**

- (::Boolean) --- If true, this location is designated as the default leader location where leader replicas are placed. See the [region types
  documentation](https://cloud.google.com/spanner/docs/instances#region_types) for more details.

### #location

    def location() -> ::String

**Returns**

- (::String) --- The location of the serving resources, e.g., "us-central1".

### #location=

    def location=(value) -> ::String

**Parameter**

- **value** (::String) --- The location of the serving resources, e.g., "us-central1".
**Returns**

- (::String) --- The location of the serving resources, e.g., "us-central1".

### #type

    def type() -> ::Google::Cloud::Spanner::Admin::Instance::V1::ReplicaInfo::ReplicaType

**Returns**

- ([::Google::Cloud::Spanner::Admin::Instance::V1::ReplicaInfo::ReplicaType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/latest/Google-Cloud-Spanner-Admin-Instance-V1-ReplicaInfo-ReplicaType)) --- The type of replica.

### #type=

    def type=(value) -> ::Google::Cloud::Spanner::Admin::Instance::V1::ReplicaInfo::ReplicaType

**Parameter**

- **value** ([::Google::Cloud::Spanner::Admin::Instance::V1::ReplicaInfo::ReplicaType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/latest/Google-Cloud-Spanner-Admin-Instance-V1-ReplicaInfo-ReplicaType)) --- The type of replica.
**Returns**

- ([::Google::Cloud::Spanner::Admin::Instance::V1::ReplicaInfo::ReplicaType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/latest/Google-Cloud-Spanner-Admin-Instance-V1-ReplicaInfo-ReplicaType)) --- The type of replica.