# Google Cloud Vmware Engine V1 Client - Class AutoscalingSettings (1.3.0)

1.3.0 (latest) 1.2.2 1.1.4 1.0.0 0.5.6 0.4.0 0.3.3 0.2.1 0.1.4 Reference documentation and code samples for the Google Cloud Vmware Engine V1 Client class AutoscalingSettings.

Autoscaling settings define the rules used by VMware Engine to
automatically scale-out and scale-in the clusters in a private cloud.

Generated from protobuf message `google.cloud.vmwareengine.v1.AutoscalingSettings`

## Namespace

Google \\ Cloud \\ VmwareEngine \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ autoscaling_policies` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Required. The map with autoscaling policies applied to the cluster. The key is the identifier of the policy. It must meet the following requirements: \* \* Only contains 1-63 alphanumeric characters and hyphens \* \* Begins with an alphabetical character \* \* Ends with a non-hyphen character \* \* Not formatted as a UUID \* \* Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5) Currently there map must contain only one element that describes the autoscaling policy for compute nodes. |
| `↳ min_cluster_node_count` | `int` Optional. Minimum number of nodes of any type in a cluster. If not specified the default limits apply. |
| `↳ max_cluster_node_count` | `int` Optional. Maximum number of nodes of any type in a cluster. If not specified the default limits apply. |
| `↳ cool_down_period` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` Optional. The minimum duration between consecutive autoscale operations. It starts once addition or removal of nodes is fully completed. Defaults to 30 minutes if not specified. Cool down period must be in whole minutes (for example, 30, 31, 50, 180 minutes). |

### getAutoscalingPolicies

Required. The map with autoscaling policies applied to the cluster.

The key is the identifier of the policy.
It must meet the following requirements:

- Only contains 1-63 alphanumeric characters and hyphens
- Begins with an alphabetical character
- Ends with a non-hyphen character
- Not formatted as a UUID
- Complies with [RFC
  1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5) Currently there map must contain only one element that describes the autoscaling policy for compute nodes.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |   |

### setAutoscalingPolicies

Required. The map with autoscaling policies applied to the cluster.

The key is the identifier of the policy.
It must meet the following requirements:

- Only contains 1-63 alphanumeric characters and hyphens
- Begins with an alphabetical character
- Ends with a non-hyphen character
- Not formatted as a UUID
- Complies with [RFC
  1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5) Currently there map must contain only one element that describes the autoscaling policy for compute nodes.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |

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

### getMinClusterNodeCount

Optional. Minimum number of nodes of any type in a cluster.

If not specified the default limits apply.

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

### setMinClusterNodeCount

Optional. Minimum number of nodes of any type in a cluster.

If not specified the default limits apply.

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

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

### getMaxClusterNodeCount

Optional. Maximum number of nodes of any type in a cluster.

If not specified the default limits apply.

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

### setMaxClusterNodeCount

Optional. Maximum number of nodes of any type in a cluster.

If not specified the default limits apply.

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

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

### getCoolDownPeriod

Optional. The minimum duration between consecutive autoscale operations.

It starts once addition or removal of nodes is fully completed.
Defaults to 30 minutes if not specified. Cool down period must be in whole
minutes (for example, 30, 31, 50, 180 minutes).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration|null` |   |

### hasCoolDownPeriod

### clearCoolDownPeriod

### setCoolDownPeriod

Optional. The minimum duration between consecutive autoscale operations.

It starts once addition or removal of nodes is fully completed.
Defaults to 30 minutes if not specified. Cool down period must be in whole
minutes (for example, 30, 31, 50, 180 minutes).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` |

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