# Google Cloud Vmware Engine V1 Client - Class AutoscalingPolicy (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 AutoscalingPolicy.

Autoscaling policy describes the behavior of the autoscaling
with respect to the resource utilization.

The scale-out operation is initiated if the utilization
exceeds ANY of the respective thresholds.
The scale-in operation is initiated if the utilization
is below ALL of the respective thresholds.

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

## Namespace

Google \\ Cloud \\ VmwareEngine \\ V1 \\ AutoscalingSettings

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ node_type_id` | `string` Required. The canonical identifier of the node type to add or remove. Corresponds to the `NodeType`. |
| `↳ scale_out_size` | `int` Required. Number of nodes to add to a cluster during a scale-out operation. Must be divisible by 2 for stretched clusters. During a scale-in operation only one node (or 2 for stretched clusters) are removed in a single iteration. |
| `↳ cpu_thresholds` | `https://docs.cloud.google.com/php/docs/reference/cloud-vmware-engine/latest/V1.AutoscalingSettings.Thresholds` Optional. Utilization thresholds pertaining to CPU utilization. |
| `↳ granted_memory_thresholds` | `https://docs.cloud.google.com/php/docs/reference/cloud-vmware-engine/latest/V1.AutoscalingSettings.Thresholds` Optional. Utilization thresholds pertaining to amount of granted memory. |
| `↳ consumed_memory_thresholds` | `https://docs.cloud.google.com/php/docs/reference/cloud-vmware-engine/latest/V1.AutoscalingSettings.Thresholds` Optional. Utilization thresholds pertaining to amount of consumed memory. |
| `↳ storage_thresholds` | `https://docs.cloud.google.com/php/docs/reference/cloud-vmware-engine/latest/V1.AutoscalingSettings.Thresholds` Optional. Utilization thresholds pertaining to amount of consumed storage. |

### getNodeTypeId

Required. The canonical identifier of the node type to add or remove.

Corresponds to the `NodeType`.

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

### setNodeTypeId

Required. The canonical identifier of the node type to add or remove.

Corresponds to the `NodeType`.

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

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

### getScaleOutSize

Required. Number of nodes to add to a cluster during a scale-out
operation. Must be divisible by 2 for stretched clusters. During a
scale-in operation only one node (or 2 for stretched clusters) are
removed in a single iteration.

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

### setScaleOutSize

Required. Number of nodes to add to a cluster during a scale-out
operation. Must be divisible by 2 for stretched clusters. During a
scale-in operation only one node (or 2 for stretched clusters) are
removed in a single iteration.

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

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

### getCpuThresholds

Optional. Utilization thresholds pertaining to CPU utilization.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-vmware-engine/latest/V1.AutoscalingSettings.Thresholds|null` |   |

### hasCpuThresholds

### clearCpuThresholds

### setCpuThresholds

Optional. Utilization thresholds pertaining to CPU utilization.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-vmware-engine/latest/V1.AutoscalingSettings.Thresholds` |

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

### getGrantedMemoryThresholds

Optional. Utilization thresholds pertaining to amount of granted memory.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-vmware-engine/latest/V1.AutoscalingSettings.Thresholds|null` |   |

### hasGrantedMemoryThresholds

### clearGrantedMemoryThresholds

### setGrantedMemoryThresholds

Optional. Utilization thresholds pertaining to amount of granted memory.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-vmware-engine/latest/V1.AutoscalingSettings.Thresholds` |

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

### getConsumedMemoryThresholds

Optional. Utilization thresholds pertaining to amount of consumed memory.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-vmware-engine/latest/V1.AutoscalingSettings.Thresholds|null` |   |

### hasConsumedMemoryThresholds

### clearConsumedMemoryThresholds

### setConsumedMemoryThresholds

Optional. Utilization thresholds pertaining to amount of consumed memory.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-vmware-engine/latest/V1.AutoscalingSettings.Thresholds` |

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

### getStorageThresholds

Optional. Utilization thresholds pertaining to amount of consumed
storage.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-vmware-engine/latest/V1.AutoscalingSettings.Thresholds|null` |   |

### hasStorageThresholds

### clearStorageThresholds

### setStorageThresholds

Optional. Utilization thresholds pertaining to amount of consumed
storage.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-vmware-engine/latest/V1.AutoscalingSettings.Thresholds` |

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