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-..*.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Google Cloud Orchestration Airflow V1 Client - Class DatabaseConfig (2.1.8)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.8 (latest)](/php/docs/reference/cloud-orchestration-airflow/latest/V1.DatabaseConfig)\n- [2.1.7](/php/docs/reference/cloud-orchestration-airflow/2.1.7/V1.DatabaseConfig)\n- [2.0.1](/php/docs/reference/cloud-orchestration-airflow/2.0.1/V1.DatabaseConfig)\n- [1.6.4](/php/docs/reference/cloud-orchestration-airflow/1.6.4/V1.DatabaseConfig)\n- [1.5.0](/php/docs/reference/cloud-orchestration-airflow/1.5.0/V1.DatabaseConfig)\n- [1.4.2](/php/docs/reference/cloud-orchestration-airflow/1.4.2/V1.DatabaseConfig)\n- [1.3.0](/php/docs/reference/cloud-orchestration-airflow/1.3.0/V1.DatabaseConfig)\n- [1.2.0](/php/docs/reference/cloud-orchestration-airflow/1.2.0/V1.DatabaseConfig)\n- [1.1.0](/php/docs/reference/cloud-orchestration-airflow/1.1.0/V1.DatabaseConfig)\n- [1.0.4](/php/docs/reference/cloud-orchestration-airflow/1.0.4/V1.DatabaseConfig) \nReference documentation and code samples for the Google Cloud Orchestration Airflow V1 Client class DatabaseConfig.\n\nThe configuration of Cloud SQL instance that is used by the Apache Airflow\nsoftware.\n\nGenerated from protobuf message `google.cloud.orchestration.airflow.service.v1.DatabaseConfig`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Orchestration \\\\ Airflow \\\\ Service \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getMachineType\n\nOptional. Cloud SQL machine type used by Airflow database.\n\nIt has to be one of: db-n1-standard-2, db-n1-standard-4, db-n1-standard-8\nor db-n1-standard-16. If not specified, db-n1-standard-2 will be used.\nSupported for Cloud Composer environments in versions\ncomposer-1.*.* -airflow-*.*.\\*.\n\n### setMachineType\n\nOptional. Cloud SQL machine type used by Airflow database.\n\nIt has to be one of: db-n1-standard-2, db-n1-standard-4, db-n1-standard-8\nor db-n1-standard-16. If not specified, db-n1-standard-2 will be used.\nSupported for Cloud Composer environments in versions\ncomposer-1.*.* -airflow-*.*.\\*.\n\n### getZone\n\nOptional. The Compute Engine zone where the Airflow database is created. If\nzone is provided, it must be in the region selected for the environment. If\nzone is not provided, a zone is automatically selected. The zone can only\nbe set during environment creation. Supported for Cloud Composer\nenvironments in versions composer-2.*.* -airflow-*.*.\\*.\n\n### setZone\n\nOptional. The Compute Engine zone where the Airflow database is created. If\nzone is provided, it must be in the region selected for the environment. If\nzone is not provided, a zone is automatically selected. The zone can only\nbe set during environment creation. Supported for Cloud Composer\nenvironments in versions composer-2.*.* -airflow-*.*.\\*."]]