# Google Cloud Orchestration Airflow V1 Client - Class ExecuteAirflowCommandRequest (2.2.3)

2.2.3 (latest) 2.2.2 2.1.8 2.0.1 1.6.4 1.5.0 1.4.2 1.3.0 1.2.0 1.1.0 1.0.4 Reference documentation and code samples for the Google Cloud Orchestration Airflow V1 Client class ExecuteAirflowCommandRequest.

Execute Airflow Command request.

Generated from protobuf message `google.cloud.orchestration.airflow.service.v1.ExecuteAirflowCommandRequest`

## Namespace

Google \\ Cloud \\ Orchestration \\ Airflow \\ Service \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ environment` | `string` The resource name of the environment in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}". |
| `↳ command` | `string` Airflow command. |
| `↳ subcommand` | `string` Airflow subcommand. |
| `↳ parameters` | `string[]` Parameters for the Airflow command/subcommand as an array of arguments. It may contain positional arguments like `["my-dag-id"]`, key-value parameters like `["--foo=bar"]` or `["--foo","bar"]`, or other flags like `["-f"]`. |

### getEnvironment

The resource name of the environment in the form:
"projects/{projectId}/locations/{locationId}/environments/{environmentId}".

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setEnvironment

The resource name of the environment in the form:
"projects/{projectId}/locations/{locationId}/environments/{environmentId}".

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCommand

Airflow command.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setCommand

Airflow command.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSubcommand

Airflow subcommand.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setSubcommand

Airflow subcommand.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getParameters

Parameters for the Airflow command/subcommand as an array of arguments.

It may contain positional arguments like `["my-dag-id"]`, key-value
parameters like `["--foo=bar"]` or `["--foo","bar"]`,
or other flags like `["-f"]`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setParameters

Parameters for the Airflow command/subcommand as an array of arguments.

It may contain positional arguments like `["my-dag-id"]`, key-value
parameters like `["--foo=bar"]` or `["--foo","bar"]`,
or other flags like `["-f"]`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |