Reference documentation and code samples for the Cloud Spanner Instance Admin V1 API class Google::Cloud::Spanner::Admin::Instance::V1::ReplicaComputeCapacity.
ReplicaComputeCapacity describes the amount of server resources that are
allocated to each replica identified by the replica selection.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#node_count
defnode_count()->::Integer
Returns
(::Integer) — The number of nodes allocated to each replica.
This may be zero in API responses for instances that are not yet in
state READY.
Note: The following fields are mutually exclusive: node_count, processing_units. If a field in that set is populated, all other fields in the set will automatically be cleared.
#node_count=
defnode_count=(value)->::Integer
Parameter
value (::Integer) — The number of nodes allocated to each replica.
This may be zero in API responses for instances that are not yet in
state READY.
Note: The following fields are mutually exclusive: node_count, processing_units. If a field in that set is populated, all other fields in the set will automatically be cleared.
Returns
(::Integer) — The number of nodes allocated to each replica.
This may be zero in API responses for instances that are not yet in
state READY.
Note: The following fields are mutually exclusive: node_count, processing_units. If a field in that set is populated, all other fields in the set will automatically be cleared.
#processing_units
defprocessing_units()->::Integer
Returns
(::Integer) — The number of processing units allocated to each replica.
This may be zero in API responses for instances that are not yet in
state READY.
Note: The following fields are mutually exclusive: processing_units, node_count. If a field in that set is populated, all other fields in the set will automatically be cleared.
#processing_units=
defprocessing_units=(value)->::Integer
Parameter
value (::Integer) — The number of processing units allocated to each replica.
This may be zero in API responses for instances that are not yet in
state READY.
Note: The following fields are mutually exclusive: processing_units, node_count. If a field in that set is populated, all other fields in the set will automatically be cleared.
Returns
(::Integer) — The number of processing units allocated to each replica.
This may be zero in API responses for instances that are not yet in
state READY.
Note: The following fields are mutually exclusive: processing_units, node_count. If a field in that set is populated, all other fields in the set will automatically be cleared.
[[["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::ReplicaComputeCapacity (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-ReplicaComputeCapacity)\n- [2.0.1](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/2.0.1/Google-Cloud-Spanner-Admin-Instance-V1-ReplicaComputeCapacity)\n- [1.6.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.6.0/Google-Cloud-Spanner-Admin-Instance-V1-ReplicaComputeCapacity)\n- [1.5.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.5.0/Google-Cloud-Spanner-Admin-Instance-V1-ReplicaComputeCapacity)\n- [1.4.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.4.0/Google-Cloud-Spanner-Admin-Instance-V1-ReplicaComputeCapacity)\n- [1.3.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.3.0/Google-Cloud-Spanner-Admin-Instance-V1-ReplicaComputeCapacity)\n- [1.2.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.2.0/Google-Cloud-Spanner-Admin-Instance-V1-ReplicaComputeCapacity)\n- [1.1.1](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.1.1/Google-Cloud-Spanner-Admin-Instance-V1-ReplicaComputeCapacity)\n- [1.0.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.0.0/Google-Cloud-Spanner-Admin-Instance-V1-ReplicaComputeCapacity)\n- [0.16.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.16.0/Google-Cloud-Spanner-Admin-Instance-V1-ReplicaComputeCapacity)\n- [0.15.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.15.0/Google-Cloud-Spanner-Admin-Instance-V1-ReplicaComputeCapacity)\n- [0.14.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.14.0/Google-Cloud-Spanner-Admin-Instance-V1-ReplicaComputeCapacity)\n- [0.13.2](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.13.2/Google-Cloud-Spanner-Admin-Instance-V1-ReplicaComputeCapacity)\n- [0.12.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.12.0/Google-Cloud-Spanner-Admin-Instance-V1-ReplicaComputeCapacity)\n- [0.11.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.11.0/Google-Cloud-Spanner-Admin-Instance-V1-ReplicaComputeCapacity)\n- [0.10.2](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.10.2/Google-Cloud-Spanner-Admin-Instance-V1-ReplicaComputeCapacity)\n- [0.9.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.9.0/Google-Cloud-Spanner-Admin-Instance-V1-ReplicaComputeCapacity)\n- [0.8.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.8.0/Google-Cloud-Spanner-Admin-Instance-V1-ReplicaComputeCapacity)\n- [0.7.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.7.0/Google-Cloud-Spanner-Admin-Instance-V1-ReplicaComputeCapacity)\n- [0.6.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.6.0/Google-Cloud-Spanner-Admin-Instance-V1-ReplicaComputeCapacity)\n- [0.5.5](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.5.5/Google-Cloud-Spanner-Admin-Instance-V1-ReplicaComputeCapacity) \nReference documentation and code samples for the Cloud Spanner Instance Admin V1 API class Google::Cloud::Spanner::Admin::Instance::V1::ReplicaComputeCapacity.\n\nReplicaComputeCapacity describes the amount of server resources that are\nallocated to each replica identified by the replica selection. \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### #node_count\n\n def node_count() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- The number of nodes allocated to each replica.\n\n This may be zero in API responses for instances that are not yet in\n state `READY`.\n\n Note: The following fields are mutually exclusive: `node_count`, `processing_units`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #node_count=\n\n def node_count=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- The number of nodes allocated to each replica.\n\n\n This may be zero in API responses for instances that are not yet in\n state `READY`.\n\nNote: The following fields are mutually exclusive: `node_count`, `processing_units`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- (::Integer) --- The number of nodes allocated to each replica.\n\n This may be zero in API responses for instances that are not yet in\n state `READY`.\n\n Note: The following fields are mutually exclusive: `node_count`, `processing_units`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #processing_units\n\n def processing_units() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- The number of processing units allocated to each replica.\n\n This may be zero in API responses for instances that are not yet in\n state `READY`.\n\n Note: The following fields are mutually exclusive: `processing_units`, `node_count`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #processing_units=\n\n def processing_units=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- The number of processing units allocated to each replica.\n\n\n This may be zero in API responses for instances that are not yet in\n state `READY`.\n\nNote: The following fields are mutually exclusive: `processing_units`, `node_count`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- (::Integer) --- The number of processing units allocated to each replica.\n\n This may be zero in API responses for instances that are not yet in\n state `READY`.\n\n Note: The following fields are mutually exclusive: `processing_units`, `node_count`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #replica_selection\n\n def replica_selection() -\u003e ::Google::Cloud::Spanner::Admin::Instance::V1::ReplicaSelection\n\n**Returns**\n\n- ([::Google::Cloud::Spanner::Admin::Instance::V1::ReplicaSelection](./Google-Cloud-Spanner-Admin-Instance-V1-ReplicaSelection)) --- Required. Identifies replicas by specified properties. All replicas in the selection have the same amount of compute capacity.\n\n### #replica_selection=\n\n def replica_selection=(value) -\u003e ::Google::Cloud::Spanner::Admin::Instance::V1::ReplicaSelection\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Spanner::Admin::Instance::V1::ReplicaSelection](./Google-Cloud-Spanner-Admin-Instance-V1-ReplicaSelection)) --- Required. Identifies replicas by specified properties. All replicas in the selection have the same amount of compute capacity. \n**Returns**\n\n- ([::Google::Cloud::Spanner::Admin::Instance::V1::ReplicaSelection](./Google-Cloud-Spanner-Admin-Instance-V1-ReplicaSelection)) --- Required. Identifies replicas by specified properties. All replicas in the selection have the same amount of compute capacity."]]