# Google Cloud Orchestration Airflow V1 Client - Class SchedulerResource (2.2.3)

2.2.3 (latest) 2.2.2 2.1.8 2.0.1 1.6.4 1.5.0 1.4.2 1.3.0 1.2.0 1.1.0 1.0.4 Reference documentation and code samples for the Google Cloud Orchestration Airflow V1 Client class SchedulerResource.

Configuration for resources used by Airflow schedulers.

Generated from protobuf message `google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource`

## Namespace

Google \\ Cloud \\ Orchestration \\ Airflow \\ Service \\ V1 \\ WorkloadsConfig

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ cpu` | `float` Optional. CPU request and limit for a single Airflow scheduler replica. |
| `↳ memory_gb` | `float` Optional. Memory (GB) request and limit for a single Airflow scheduler replica. |
| `↳ storage_gb` | `float` Optional. Storage (GB) request and limit for a single Airflow scheduler replica. |
| `↳ count` | `int` Optional. The number of schedulers. |

### getCpu

Optional. CPU request and limit for a single Airflow scheduler replica.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### setCpu

Optional. CPU request and limit for a single Airflow scheduler replica.

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

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

### getMemoryGb

Optional. Memory (GB) request and limit for a single Airflow scheduler
replica.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### setMemoryGb

Optional. Memory (GB) request and limit for a single Airflow scheduler
replica.

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

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

### getStorageGb

Optional. Storage (GB) request and limit for a single Airflow scheduler
replica.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### setStorageGb

Optional. Storage (GB) request and limit for a single Airflow scheduler
replica.

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

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

### getCount

Optional. The number of schedulers.

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

### setCount

Optional. The number of schedulers.

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

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