3.40.0 (latest) 3.39.0 3.38.0 3.37.0 3.36.0 3.35.0 3.34.0 3.33.0 3.32.0 3.31.0 3.30.0 3.29.0 3.28.0 3.27.0 3.26.0 3.25.0 3.24.0 3.23.0 3.22.0 3.21.0 3.20.0 3.19.0 3.18.0 3.17.0 3.16.0 3.15.0 3.14.0 3.13.0 3.12.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0

    public sealed class ClusterAutoscaling : IMessage<ClusterAutoscaling>, IEquatable<ClusterAutoscaling>, IDeepCloneable<ClusterAutoscaling>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Kubernetes Engine v1 API class ClusterAutoscaling.

ClusterAutoscaling contains global, per-cluster information
required by Cluster Autoscaler to automatically adjust
the size of the cluster and create/delete
node pools based on the current needs.

## Inheritance

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

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[ClusterAutoscaling](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Container.V1/latest/Google.Cloud.Container.V1.ClusterAutoscaling.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ClusterAutoscaling](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Container.V1/latest/Google.Cloud.Container.V1.ClusterAutoscaling.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[ClusterAutoscaling](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Container.V1/latest/Google.Cloud.Container.V1.ClusterAutoscaling.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.Container.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Container.V1/latest/Google.Cloud.Container.V1.md.txt)

## Assembly

Google.Cloud.Container.V1.dll

## Constructors

### ClusterAutoscaling()

    public ClusterAutoscaling()

### ClusterAutoscaling(ClusterAutoscaling)

    public ClusterAutoscaling(ClusterAutoscaling other)

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

## Properties

### AutopilotGeneralProfile

    public ClusterAutoscaling.Types.AutopilotGeneralProfile AutopilotGeneralProfile { get; set; }

Autopilot general profile for the cluster, which defines the
configuration for the cluster.

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

### AutoprovisioningLocations

    public RepeatedField<string> AutoprovisioningLocations { get; }

The list of Google Compute Engine
[zones](https://cloud.google.com/compute/docs/zones#available)
in which the NodePool's nodes can be created by NAP.

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

### AutoprovisioningNodePoolDefaults

    public AutoprovisioningNodePoolDefaults AutoprovisioningNodePoolDefaults { get; set; }

AutoprovisioningNodePoolDefaults contains defaults for a node pool
created by NAP.

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

### AutoscalingProfile

    public ClusterAutoscaling.Types.AutoscalingProfile AutoscalingProfile { get; set; }

Defines autoscaling behaviour.

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

### DefaultComputeClassConfig

    public DefaultComputeClassConfig DefaultComputeClassConfig { get; set; }

Default compute class is a configuration for default compute class.

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

### EnableNodeAutoprovisioning

    public bool EnableNodeAutoprovisioning { get; set; }

Enables automatic node pool creation and deletion.

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

### ResourceLimits

    public RepeatedField<ResourceLimit> ResourceLimits { get; }

Contains global constraints regarding minimum and maximum
amount of resources in the cluster.

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