# Google Cloud Sql Admin V1 Client - Class ReadPoolAutoScaleConfig (1.9.0)

1.9.0 (latest) 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.1 1.2.6 1.1.0 1.0.0 0.19.0 0.18.0 0.17.1 0.16.1 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.1 0.3.1 0.2.12 Reference documentation and code samples for the Google Cloud Sql Admin V1 Client class ReadPoolAutoScaleConfig.

The read pool auto-scale configuration.

Generated from protobuf message `google.cloud.sql.v1.ReadPoolAutoScaleConfig`

## Namespace

Google \\ Cloud \\ Sql \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ enabled` | `bool` Indicates whether read pool auto scaling is enabled. |
| `↳ min_node_count` | `int` Minimum number of read pool nodes to be maintained. |
| `↳ max_node_count` | `int` Maximum number of read pool nodes to be maintained. |
| `↳ target_metrics` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-sql-admin/latest/V1.ReadPoolAutoScaleConfig.TargetMetric>` Optional. Target metrics for read pool auto scaling. |
| `↳ disable_scale_in` | `bool` Indicates whether read pool auto scaling supports scale in operations (removing nodes). |
| `↳ scale_in_cooldown_seconds` | `int` The cooldown period for scale-in operations. |
| `↳ scale_out_cooldown_seconds` | `int` The cooldown period for scale-out operations. |

### getEnabled

Indicates whether read pool auto scaling is enabled.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasEnabled

### clearEnabled

### setEnabled

Indicates whether read pool auto scaling is enabled.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

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

### getMinNodeCount

Minimum number of read pool nodes to be maintained.

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

### hasMinNodeCount

### clearMinNodeCount

### setMinNodeCount

Minimum number of read pool nodes to be maintained.

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

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

### getMaxNodeCount

Maximum number of read pool nodes to be maintained.

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

### hasMaxNodeCount

### clearMaxNodeCount

### setMaxNodeCount

Maximum number of read pool nodes to be maintained.

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

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

### getTargetMetrics

Optional. Target metrics for read pool auto scaling.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-sql-admin/latest/V1.ReadPoolAutoScaleConfig.TargetMetric>` |   |

### setTargetMetrics

Optional. Target metrics for read pool auto scaling.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-sql-admin/latest/V1.ReadPoolAutoScaleConfig.TargetMetric>` |

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

### getDisableScaleIn

Indicates whether read pool auto scaling supports scale in operations
(removing nodes).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasDisableScaleIn

### clearDisableScaleIn

### setDisableScaleIn

Indicates whether read pool auto scaling supports scale in operations
(removing nodes).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

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

### getScaleInCooldownSeconds

The cooldown period for scale-in operations.

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

### hasScaleInCooldownSeconds

### clearScaleInCooldownSeconds

### setScaleInCooldownSeconds

The cooldown period for scale-in operations.

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

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

### getScaleOutCooldownSeconds

The cooldown period for scale-out operations.

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

### hasScaleOutCooldownSeconds

### clearScaleOutCooldownSeconds

### setScaleOutCooldownSeconds

The cooldown period for scale-out operations.

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

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