2.11.0 (latest) 2.10.3 2.7.0 2.6.2 2.5.0 2.4.0 2.3.0 2.2.1 2.1.2 2.0.2 1.3.5 1.2.3 1.1.2 1.0.3 Reference documentation and code samples for the Google BigQuery Reservation V1 Client class Autoscale.

Auto scaling settings.

Generated from protobuf message `google.cloud.bigquery.reservation.v1.Reservation.Autoscale`

## Namespace

Google \\ Cloud \\ BigQuery \\ Reservation \\ V1 \\ Reservation

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ current_slots` | `int|string` Output only. The slot capacity added to this reservation when autoscale happens. Will be between \[0, max_slots\]. Note: after users reduce max_slots, it may take a while before it can be propagated, so current_slots may stay in the original value and could be larger than max_slots for that brief period (less than one minute) |
| `↳ max_slots` | `int|string` Optional. Number of slots to be scaled when needed. |

### getCurrentSlots

Output only. The slot capacity added to this reservation when autoscale
happens. Will be between \[0, max_slots\]. Note: after users reduce
max_slots, it may take a while before it can be propagated, so
current_slots may stay in the original value and could be larger than
max_slots for that brief period (less than one minute)

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int|string` |   |

### setCurrentSlots

Output only. The slot capacity added to this reservation when autoscale
happens. Will be between \[0, max_slots\]. Note: after users reduce
max_slots, it may take a while before it can be propagated, so
current_slots may stay in the original value and could be larger than
max_slots for that brief period (less than one minute)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int|string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getMaxSlots

Optional. Number of slots to be scaled when needed.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int|string` |   |

### setMaxSlots

Optional. Number of slots to be scaled when needed.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int|string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |