# Google Cloud VMware Engine V1 API - Class Google::Cloud::VmwareEngine::V1::AutoscalingSettings::AutoscalingPolicy (v1.5.0)

1.5.0 (latest) 1.4.1 1.3.1 1.2.0 1.1.0 1.0.1 0.11.0 0.10.0 0.9.2 0.8.0 0.7.1 0.6.1 0.5.0 0.4.0 0.3.1 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud VMware Engine V1 API class Google::Cloud::VmwareEngine::V1::AutoscalingSettings::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.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #consumed_memory_thresholds

    def consumed_memory_thresholds() -> ::Google::Cloud::VmwareEngine::V1::AutoscalingSettings::Thresholds

**Returns**

- ([::Google::Cloud::VmwareEngine::V1::AutoscalingSettings::Thresholds](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vmware_engine-v1/latest/Google-Cloud-VmwareEngine-V1-AutoscalingSettings-Thresholds)) --- Optional. Utilization thresholds pertaining to amount of consumed memory.

### #consumed_memory_thresholds=

    def consumed_memory_thresholds=(value) -> ::Google::Cloud::VmwareEngine::V1::AutoscalingSettings::Thresholds

**Parameter**

- **value** ([::Google::Cloud::VmwareEngine::V1::AutoscalingSettings::Thresholds](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vmware_engine-v1/latest/Google-Cloud-VmwareEngine-V1-AutoscalingSettings-Thresholds)) --- Optional. Utilization thresholds pertaining to amount of consumed memory.
**Returns**

- ([::Google::Cloud::VmwareEngine::V1::AutoscalingSettings::Thresholds](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vmware_engine-v1/latest/Google-Cloud-VmwareEngine-V1-AutoscalingSettings-Thresholds)) --- Optional. Utilization thresholds pertaining to amount of consumed memory.

### #cpu_thresholds

    def cpu_thresholds() -> ::Google::Cloud::VmwareEngine::V1::AutoscalingSettings::Thresholds

**Returns**

- ([::Google::Cloud::VmwareEngine::V1::AutoscalingSettings::Thresholds](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vmware_engine-v1/latest/Google-Cloud-VmwareEngine-V1-AutoscalingSettings-Thresholds)) --- Optional. Utilization thresholds pertaining to CPU utilization.

### #cpu_thresholds=

    def cpu_thresholds=(value) -> ::Google::Cloud::VmwareEngine::V1::AutoscalingSettings::Thresholds

**Parameter**

- **value** ([::Google::Cloud::VmwareEngine::V1::AutoscalingSettings::Thresholds](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vmware_engine-v1/latest/Google-Cloud-VmwareEngine-V1-AutoscalingSettings-Thresholds)) --- Optional. Utilization thresholds pertaining to CPU utilization.
**Returns**

- ([::Google::Cloud::VmwareEngine::V1::AutoscalingSettings::Thresholds](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vmware_engine-v1/latest/Google-Cloud-VmwareEngine-V1-AutoscalingSettings-Thresholds)) --- Optional. Utilization thresholds pertaining to CPU utilization.

### #granted_memory_thresholds

    def granted_memory_thresholds() -> ::Google::Cloud::VmwareEngine::V1::AutoscalingSettings::Thresholds

**Returns**

- ([::Google::Cloud::VmwareEngine::V1::AutoscalingSettings::Thresholds](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vmware_engine-v1/latest/Google-Cloud-VmwareEngine-V1-AutoscalingSettings-Thresholds)) --- Optional. Utilization thresholds pertaining to amount of granted memory.

### #granted_memory_thresholds=

    def granted_memory_thresholds=(value) -> ::Google::Cloud::VmwareEngine::V1::AutoscalingSettings::Thresholds

**Parameter**

- **value** ([::Google::Cloud::VmwareEngine::V1::AutoscalingSettings::Thresholds](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vmware_engine-v1/latest/Google-Cloud-VmwareEngine-V1-AutoscalingSettings-Thresholds)) --- Optional. Utilization thresholds pertaining to amount of granted memory.
**Returns**

- ([::Google::Cloud::VmwareEngine::V1::AutoscalingSettings::Thresholds](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vmware_engine-v1/latest/Google-Cloud-VmwareEngine-V1-AutoscalingSettings-Thresholds)) --- Optional. Utilization thresholds pertaining to amount of granted memory.

### #node_type_id

    def node_type_id() -> ::String

**Returns**

- (::String) --- Required. The canonical identifier of the node type to add or remove. Corresponds to the `NodeType`.

### #node_type_id=

    def node_type_id=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The canonical identifier of the node type to add or remove. Corresponds to the `NodeType`.
**Returns**

- (::String) --- Required. The canonical identifier of the node type to add or remove. Corresponds to the `NodeType`.

### #scale_out_size

    def scale_out_size() -> ::Integer

**Returns**

- (::Integer) --- 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.

### #scale_out_size=

    def scale_out_size=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- 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**

- (::Integer) --- 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.

### #storage_thresholds

    def storage_thresholds() -> ::Google::Cloud::VmwareEngine::V1::AutoscalingSettings::Thresholds

**Returns**

- ([::Google::Cloud::VmwareEngine::V1::AutoscalingSettings::Thresholds](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vmware_engine-v1/latest/Google-Cloud-VmwareEngine-V1-AutoscalingSettings-Thresholds)) --- Optional. Utilization thresholds pertaining to amount of consumed storage.

### #storage_thresholds=

    def storage_thresholds=(value) -> ::Google::Cloud::VmwareEngine::V1::AutoscalingSettings::Thresholds

**Parameter**

- **value** ([::Google::Cloud::VmwareEngine::V1::AutoscalingSettings::Thresholds](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vmware_engine-v1/latest/Google-Cloud-VmwareEngine-V1-AutoscalingSettings-Thresholds)) --- Optional. Utilization thresholds pertaining to amount of consumed storage.
**Returns**

- ([::Google::Cloud::VmwareEngine::V1::AutoscalingSettings::Thresholds](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vmware_engine-v1/latest/Google-Cloud-VmwareEngine-V1-AutoscalingSettings-Thresholds)) --- Optional. Utilization thresholds pertaining to amount of consumed storage.