Google Cloud Orchestration Airflow V1 Client - Class DagProcessorResource (1.6.4)

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

Configuration for resources used by Airflow DAG processors.

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

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 DAG processor replica.

↳ memory_gb float

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

↳ storage_gb float

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

↳ count int

Optional. The number of DAG processors. If not provided or set to 0, a single DAG processor instance will be created.

getCpu

Optional. CPU request and limit for a single Airflow DAG processor replica.

Returns
Type Description
float

setCpu

Optional. CPU request and limit for a single Airflow DAG processor replica.

Parameter
Name Description
var float
Returns
Type Description
$this

getMemoryGb

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

Returns
Type Description
float

setMemoryGb

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

Parameter
Name Description
var float
Returns
Type Description
$this

getStorageGb

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

Returns
Type Description
float

setStorageGb

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

Parameter
Name Description
var float
Returns
Type Description
$this

getCount

Optional. The number of DAG processors. If not provided or set to 0, a single DAG processor instance will be created.

Returns
Type Description
int

setCount

Optional. The number of DAG processors. If not provided or set to 0, a single DAG processor instance will be created.

Parameter
Name Description
var int
Returns
Type Description
$this