# Google Cloud Orchestration Airflow V1 Client - Class WebServerResource (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 WebServerResource.

Configuration for resources used by Airflow web server.

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

## 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 Airflow web server. |
| `↳ memory_gb` | `float` Optional. Memory (GB) request and limit for Airflow web server. |
| `↳ storage_gb` | `float` Optional. Storage (GB) request and limit for Airflow web server. |

### getCpu

Optional. CPU request and limit for Airflow web server.

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

### setCpu

Optional. CPU request and limit for Airflow web server.

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

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

### getMemoryGb

Optional. Memory (GB) request and limit for Airflow web server.

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

### setMemoryGb

Optional. Memory (GB) request and limit for Airflow web server.

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

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

### getStorageGb

Optional. Storage (GB) request and limit for Airflow web server.

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

### setStorageGb

Optional. Storage (GB) request and limit for Airflow web server.

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

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