Cloud Spanner V1 Client - Class AsymmetricAutoscalingOption (1.86.0)

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

AsymmetricAutoscalingOption specifies the scaling of replicas identified by the given selection.

Generated from protobuf message google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption

Namespace

Google \ Cloud \ Spanner \ Admin \ Instance \ V1 \ AutoscalingConfig

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. Selects the replicas to which this AsymmetricAutoscalingOption applies. Only read-only replicas are supported.

↳ overrides Google\Cloud\Spanner\Admin\Instance\V1\AutoscalingConfig\AsymmetricAutoscalingOption\AutoscalingConfigOverrides

Optional. Overrides applied to the top-level autoscaling configuration for the selected replicas.

getReplicaSelection

Required. Selects the replicas to which this AsymmetricAutoscalingOption applies. Only read-only replicas are supported.

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

hasReplicaSelection

clearReplicaSelection

setReplicaSelection

Required. Selects the replicas to which this AsymmetricAutoscalingOption applies. Only read-only replicas are supported.

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

getOverrides

Optional. Overrides applied to the top-level autoscaling configuration for the selected replicas.

Returns
Type Description
Google\Cloud\Spanner\Admin\Instance\V1\AutoscalingConfig\AsymmetricAutoscalingOption\AutoscalingConfigOverrides|null

hasOverrides

clearOverrides

setOverrides

Optional. Overrides applied to the top-level autoscaling configuration for the selected replicas.

Parameter
Name Description
var Google\Cloud\Spanner\Admin\Instance\V1\AutoscalingConfig\AsymmetricAutoscalingOption\AutoscalingConfigOverrides
Returns
Type Description
$this