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

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

Configuration for resources used by Airflow workers.

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

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 worker replica.

↳ memory_gb float

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

↳ storage_gb float

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

↳ min_count int

Optional. Minimum number of workers for autoscaling.

↳ max_count int

Optional. Maximum number of workers for autoscaling.

getCpu

Optional. CPU request and limit for a single Airflow worker replica.

Returns
Type Description
float

setCpu

Optional. CPU request and limit for a single Airflow worker replica.

Parameter
Name Description
var float
Returns
Type Description
$this

getMemoryGb

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

Returns
Type Description
float

setMemoryGb

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

Parameter
Name Description
var float
Returns
Type Description
$this

getStorageGb

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

Returns
Type Description
float

setStorageGb

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

Parameter
Name Description
var float
Returns
Type Description
$this

getMinCount

Optional. Minimum number of workers for autoscaling.

Returns
Type Description
int

setMinCount

Optional. Minimum number of workers for autoscaling.

Parameter
Name Description
var int
Returns
Type Description
$this

getMaxCount

Optional. Maximum number of workers for autoscaling.

Returns
Type Description
int

setMaxCount

Optional. Maximum number of workers for autoscaling.

Parameter
Name Description
var int
Returns
Type Description
$this