Cloud Spanner V1 Client - Class ReplicaComputeCapacity (1.88.0)

Reference documentation and code samples for the Cloud Spanner V1 Client class ReplicaComputeCapacity.

ReplicaComputeCapacity describes the amount of server resources that are allocated to each replica identified by the replica selection.

Generated from protobuf message google.spanner.admin.instance.v1.ReplicaComputeCapacity

Namespace

Google \ Cloud \ Spanner \ Admin \ Instance \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ replica_selection 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.

↳ node_count int

The number of nodes allocated to each replica. This may be zero in API responses for instances that are not yet in state READY.

↳ processing_units int

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.

getReplicaSelection

Required. Identifies replicas by specified properties.

All replicas in the selection have the same amount of compute capacity.

Returns
Type Description
Google\Cloud\Spanner\Admin\Instance\V1\ReplicaSelection|null

hasReplicaSelection

clearReplicaSelection

setReplicaSelection

Required. Identifies replicas by specified properties.

All replicas in the selection have the same amount of compute capacity.

Parameter
Name Description
var Google\Cloud\Spanner\Admin\Instance\V1\ReplicaSelection
Returns
Type Description
$this

getNodeCount

The number of nodes allocated to each replica.

This may be zero in API responses for instances that are not yet in state READY.

Returns
Type Description
int

hasNodeCount

setNodeCount

The number of nodes allocated to each replica.

This may be zero in API responses for instances that are not yet in state READY.

Parameter
Name Description
var int
Returns
Type Description
$this

getProcessingUnits

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.

Returns
Type Description
int

hasProcessingUnits

setProcessingUnits

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.

Parameter
Name Description
var int
Returns
Type Description
$this

getComputeCapacity

Returns
Type Description
string