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

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
NameDescription
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
TypeDescription
float

setCpu

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

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getMemoryGb

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

Returns
TypeDescription
float

setMemoryGb

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

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getStorageGb

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

Returns
TypeDescription
float

setStorageGb

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

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getMinCount

Optional. Minimum number of workers for autoscaling.

Returns
TypeDescription
int

setMinCount

Optional. Minimum number of workers for autoscaling.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getMaxCount

Optional. Maximum number of workers for autoscaling.

Returns
TypeDescription
int

setMaxCount

Optional. Maximum number of workers for autoscaling.

Parameter
NameDescription
var int
Returns
TypeDescription
$this