1.7.0 (latest) 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public sealed class AutoscalingSettings.Types.AutoscalingPolicy : IMessage<AutoscalingSettings.Types.AutoscalingPolicy>, IEquatable<AutoscalingSettings.Types.AutoscalingPolicy>, IDeepCloneable<AutoscalingSettings.Types.AutoscalingPolicy>, IBufferMessage, IMessage

Reference documentation and code samples for the VMware Engine v1 API class AutoscalingSettings.Types.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.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> AutoscalingSettings.Types.AutoscalingPolicy

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[AutoscalingSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VmwareEngine.V1/latest/Google.Cloud.VmwareEngine.V1.AutoscalingSettings.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VmwareEngine.V1/latest/Google.Cloud.VmwareEngine.V1.AutoscalingSettings.Types.md.txt)[AutoscalingPolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VmwareEngine.V1/latest/Google.Cloud.VmwareEngine.V1.AutoscalingSettings.Types.AutoscalingPolicy.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AutoscalingSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VmwareEngine.V1/latest/Google.Cloud.VmwareEngine.V1.AutoscalingSettings.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VmwareEngine.V1/latest/Google.Cloud.VmwareEngine.V1.AutoscalingSettings.Types.md.txt)[AutoscalingPolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VmwareEngine.V1/latest/Google.Cloud.VmwareEngine.V1.AutoscalingSettings.Types.AutoscalingPolicy.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[AutoscalingSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VmwareEngine.V1/latest/Google.Cloud.VmwareEngine.V1.AutoscalingSettings.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VmwareEngine.V1/latest/Google.Cloud.VmwareEngine.V1.AutoscalingSettings.Types.md.txt)[AutoscalingPolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VmwareEngine.V1/latest/Google.Cloud.VmwareEngine.V1.AutoscalingSettings.Types.AutoscalingPolicy.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.VmwareEngine.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VmwareEngine.V1/latest/Google.Cloud.VmwareEngine.V1.md.txt)

## Assembly

Google.Cloud.VmwareEngine.V1.dll

## Constructors

### AutoscalingPolicy()

    public AutoscalingPolicy()

### AutoscalingPolicy(AutoscalingPolicy)

    public AutoscalingPolicy(AutoscalingSettings.Types.AutoscalingPolicy other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `AutoscalingSettingsTypesAutoscalingPolicy` |

## Properties

### ConsumedMemoryThresholds

    public AutoscalingSettings.Types.Thresholds ConsumedMemoryThresholds { get; set; }

Optional. Utilization thresholds pertaining to amount of consumed memory.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `AutoscalingSettingsTypesThresholds` |   |

### CpuThresholds

    public AutoscalingSettings.Types.Thresholds CpuThresholds { get; set; }

Optional. Utilization thresholds pertaining to CPU utilization.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `AutoscalingSettingsTypesThresholds` |   |

### GrantedMemoryThresholds

    public AutoscalingSettings.Types.Thresholds GrantedMemoryThresholds { get; set; }

Optional. Utilization thresholds pertaining to amount of granted memory.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `AutoscalingSettingsTypesThresholds` |   |

### NodeTypeId

    public string NodeTypeId { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### ScaleOutSize

    public int ScaleOutSize { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### StorageThresholds

    public AutoscalingSettings.Types.Thresholds StorageThresholds { get; set; }

Optional. Utilization thresholds pertaining to amount of consumed
storage.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `AutoscalingSettingsTypesThresholds` |   |