Google Cloud Orchestration Airflow V1 Client - Class WorkloadsConfig (1.0.4)

Reference documentation and code samples for the Google Cloud Orchestration Airflow V1 Client class WorkloadsConfig.

The Kubernetes workloads configuration for GKE cluster associated with the Cloud Composer environment. Supported for Cloud Composer environments in versions composer-2..-airflow-..* and newer.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ scheduler Google\Cloud\Orchestration\Airflow\Service\V1\WorkloadsConfig\SchedulerResource

Optional. Resources used by Airflow schedulers.

↳ web_server Google\Cloud\Orchestration\Airflow\Service\V1\WorkloadsConfig\WebServerResource

Optional. Resources used by Airflow web server.

↳ worker Google\Cloud\Orchestration\Airflow\Service\V1\WorkloadsConfig\WorkerResource

Optional. Resources used by Airflow workers.

getScheduler

Optional. Resources used by Airflow schedulers.

Returns
TypeDescription
Google\Cloud\Orchestration\Airflow\Service\V1\WorkloadsConfig\SchedulerResource|null

hasScheduler

clearScheduler

setScheduler

Optional. Resources used by Airflow schedulers.

Parameter
NameDescription
var Google\Cloud\Orchestration\Airflow\Service\V1\WorkloadsConfig\SchedulerResource
Returns
TypeDescription
$this

getWebServer

Optional. Resources used by Airflow web server.

Returns
TypeDescription
Google\Cloud\Orchestration\Airflow\Service\V1\WorkloadsConfig\WebServerResource|null

hasWebServer

clearWebServer

setWebServer

Optional. Resources used by Airflow web server.

Parameter
NameDescription
var Google\Cloud\Orchestration\Airflow\Service\V1\WorkloadsConfig\WebServerResource
Returns
TypeDescription
$this

getWorker

Optional. Resources used by Airflow workers.

Returns
TypeDescription
Google\Cloud\Orchestration\Airflow\Service\V1\WorkloadsConfig\WorkerResource|null

hasWorker

clearWorker

setWorker

Optional. Resources used by Airflow workers.

Parameter
NameDescription
var Google\Cloud\Orchestration\Airflow\Service\V1\WorkloadsConfig\WorkerResource
Returns
TypeDescription
$this