# Google Cloud Orchestration Airflow V1 Client - Class CreateEnvironmentRequest (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 CreateEnvironmentRequest.

Create a new environment.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` The parent must be of the form "projects/{projectId}/locations/{locationId}". |
| `↳ environment` | `https://docs.cloud.google.com/php/docs/reference/cloud-orchestration-airflow/latest/V1.Environment` The environment to create. |

### getParent

The parent must be of the form
"projects/{projectId}/locations/{locationId}".

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

### setParent

The parent must be of the form
"projects/{projectId}/locations/{locationId}".

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

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

### getEnvironment

The environment to create.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-orchestration-airflow/latest/V1.Environment|null` |   |

### hasEnvironment

### clearEnvironment

### setEnvironment

The environment to create.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-orchestration-airflow/latest/V1.Environment` |

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` The parent must be of the form "projects/{projectId}/locations/{locationId}". |
| `environment` | `https://docs.cloud.google.com/php/docs/reference/cloud-orchestration-airflow/latest/V1.Environment` The environment to create. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-orchestration-airflow/latest/V1.CreateEnvironmentRequest` |   |