Cloud Spanner V1 Client - Class AutoscalingConfig (1.67.0)

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

Autoscaling config for an instance.

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

Namespace

Google \ Cloud \ Spanner \ Admin \ Instance \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ autoscaling_limits Google\Cloud\Spanner\Admin\Instance\V1\AutoscalingConfig\AutoscalingLimits

Required. Autoscaling limits for an instance.

↳ autoscaling_targets Google\Cloud\Spanner\Admin\Instance\V1\AutoscalingConfig\AutoscalingTargets

Required. The autoscaling targets for an instance.

getAutoscalingLimits

Required. Autoscaling limits for an instance.

Returns
TypeDescription
Google\Cloud\Spanner\Admin\Instance\V1\AutoscalingConfig\AutoscalingLimits|null

hasAutoscalingLimits

clearAutoscalingLimits

setAutoscalingLimits

Required. Autoscaling limits for an instance.

Parameter
NameDescription
var Google\Cloud\Spanner\Admin\Instance\V1\AutoscalingConfig\AutoscalingLimits
Returns
TypeDescription
$this

getAutoscalingTargets

Required. The autoscaling targets for an instance.

Returns
TypeDescription
Google\Cloud\Spanner\Admin\Instance\V1\AutoscalingConfig\AutoscalingTargets|null

hasAutoscalingTargets

clearAutoscalingTargets

setAutoscalingTargets

Required. The autoscaling targets for an instance.

Parameter
NameDescription
var Google\Cloud\Spanner\Admin\Instance\V1\AutoscalingConfig\AutoscalingTargets
Returns
TypeDescription
$this