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
defdefault_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
for more details.
#default_leader_location=
defdefault_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
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
for more details.
#location
deflocation()->::String
Returns
(::String) — The location of the serving resources, e.g., "us-central1".
#location=
deflocation=(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".
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Cloud Spanner Instance Admin V1 API - Class Google::Cloud::Spanner::Admin::Instance::V1::ReplicaInfo (v2.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.0 (latest)](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/latest/Google-Cloud-Spanner-Admin-Instance-V1-ReplicaInfo)\n- [2.0.1](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/2.0.1/Google-Cloud-Spanner-Admin-Instance-V1-ReplicaInfo)\n- [1.6.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.6.0/Google-Cloud-Spanner-Admin-Instance-V1-ReplicaInfo)\n- [1.5.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.5.0/Google-Cloud-Spanner-Admin-Instance-V1-ReplicaInfo)\n- [1.4.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.4.0/Google-Cloud-Spanner-Admin-Instance-V1-ReplicaInfo)\n- [1.3.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.3.0/Google-Cloud-Spanner-Admin-Instance-V1-ReplicaInfo)\n- [1.2.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.2.0/Google-Cloud-Spanner-Admin-Instance-V1-ReplicaInfo)\n- [1.1.1](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.1.1/Google-Cloud-Spanner-Admin-Instance-V1-ReplicaInfo)\n- [1.0.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.0.0/Google-Cloud-Spanner-Admin-Instance-V1-ReplicaInfo)\n- [0.16.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.16.0/Google-Cloud-Spanner-Admin-Instance-V1-ReplicaInfo)\n- [0.15.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.15.0/Google-Cloud-Spanner-Admin-Instance-V1-ReplicaInfo)\n- [0.14.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.14.0/Google-Cloud-Spanner-Admin-Instance-V1-ReplicaInfo)\n- [0.13.2](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.13.2/Google-Cloud-Spanner-Admin-Instance-V1-ReplicaInfo)\n- [0.12.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.12.0/Google-Cloud-Spanner-Admin-Instance-V1-ReplicaInfo)\n- [0.11.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.11.0/Google-Cloud-Spanner-Admin-Instance-V1-ReplicaInfo)\n- [0.10.2](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.10.2/Google-Cloud-Spanner-Admin-Instance-V1-ReplicaInfo)\n- [0.9.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.9.0/Google-Cloud-Spanner-Admin-Instance-V1-ReplicaInfo)\n- [0.8.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.8.0/Google-Cloud-Spanner-Admin-Instance-V1-ReplicaInfo)\n- [0.7.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.7.0/Google-Cloud-Spanner-Admin-Instance-V1-ReplicaInfo)\n- [0.6.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.6.0/Google-Cloud-Spanner-Admin-Instance-V1-ReplicaInfo)\n- [0.5.5](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.5.5/Google-Cloud-Spanner-Admin-Instance-V1-ReplicaInfo) \nReference documentation and code samples for the Cloud Spanner Instance Admin V1 API class Google::Cloud::Spanner::Admin::Instance::V1::ReplicaInfo. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #default_leader_location\n\n def default_leader_location() -\u003e ::Boolean\n\n**Returns**\n\n- (::Boolean) --- If true, this location is designated as the default leader location where leader replicas are placed. See the [region types\n documentation](https://cloud.google.com/spanner/docs/instances#region_types) for more details.\n\n### #default_leader_location=\n\n def default_leader_location=(value) -\u003e ::Boolean\n\n**Parameter**\n\n- **value** (::Boolean) --- If true, this location is designated as the default leader location where leader replicas are placed. See the [region types\ndocumentation](https://cloud.google.com/spanner/docs/instances#region_types) for more details. \n**Returns**\n\n- (::Boolean) --- If true, this location is designated as the default leader location where leader replicas are placed. See the [region types\n documentation](https://cloud.google.com/spanner/docs/instances#region_types) for more details.\n\n### #location\n\n def location() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The location of the serving resources, e.g., \"us-central1\".\n\n### #location=\n\n def location=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The location of the serving resources, e.g., \"us-central1\". \n**Returns**\n\n- (::String) --- The location of the serving resources, e.g., \"us-central1\".\n\n### #type\n\n def type() -\u003e ::Google::Cloud::Spanner::Admin::Instance::V1::ReplicaInfo::ReplicaType\n\n**Returns**\n\n- ([::Google::Cloud::Spanner::Admin::Instance::V1::ReplicaInfo::ReplicaType](./Google-Cloud-Spanner-Admin-Instance-V1-ReplicaInfo-ReplicaType)) --- The type of replica.\n\n### #type=\n\n def type=(value) -\u003e ::Google::Cloud::Spanner::Admin::Instance::V1::ReplicaInfo::ReplicaType\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Spanner::Admin::Instance::V1::ReplicaInfo::ReplicaType](./Google-Cloud-Spanner-Admin-Instance-V1-ReplicaInfo-ReplicaType)) --- The type of replica. \n**Returns**\n\n- ([::Google::Cloud::Spanner::Admin::Instance::V1::ReplicaInfo::ReplicaType](./Google-Cloud-Spanner-Admin-Instance-V1-ReplicaInfo-ReplicaType)) --- The type of replica."]]