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

The configuration of Cloud SQL instance that is used by the Apache Airflow
software.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ machine_type` | `string` Optional. Cloud SQL machine type used by Airflow database. It has to be one of: db-n1-standard-2, db-n1-standard-4, db-n1-standard-8 or db-n1-standard-16. If not specified, db-n1-standard-2 will be used. Supported for Cloud Composer environments in versions composer-1.*.* -airflow-*.*.\*. |
| `↳ zone` | `string` Optional. The Compute Engine zone where the Airflow database is created. If zone is provided, it must be in the region selected for the environment. If zone is not provided, a zone is automatically selected. The zone can only be set during environment creation. Supported for Cloud Composer environments in versions composer-2.*.* -airflow-*.*.\*. |

### getMachineType

Optional. Cloud SQL machine type used by Airflow database.

It has to be one of: db-n1-standard-2, db-n1-standard-4, db-n1-standard-8
or db-n1-standard-16. If not specified, db-n1-standard-2 will be used.
Supported for Cloud Composer environments in versions
composer-1.*.* -airflow-*.*.\*.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setMachineType

Optional. Cloud SQL machine type used by Airflow database.

It has to be one of: db-n1-standard-2, db-n1-standard-4, db-n1-standard-8
or db-n1-standard-16. If not specified, db-n1-standard-2 will be used.
Supported for Cloud Composer environments in versions
composer-1.*.* -airflow-*.*.\*.

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

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

### getZone

Optional. The Compute Engine zone where the Airflow database is created. If
zone is provided, it must be in the region selected for the environment. If
zone is not provided, a zone is automatically selected. The zone can only
be set during environment creation. Supported for Cloud Composer
environments in versions composer-2.*.* -airflow-*.*.\*.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setZone

Optional. The Compute Engine zone where the Airflow database is created. If
zone is provided, it must be in the region selected for the environment. If
zone is not provided, a zone is automatically selected. The zone can only
be set during environment creation. Supported for Cloud Composer
environments in versions composer-2.*.* -airflow-*.*.\*.

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

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