0.6.0 (latest) 0.5.0 0.4.4 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud Ces V1 Client class CreateDeploymentRequest.

Request message for
[AgentService.CreateDeployment](https://docs.cloud.google.com/php/docs/reference/cloud-ces/latest/V1.Client.AgentServiceClient.md.txt#_Google_Cloud_Ces_V1_Client_AgentServiceClient__createDeployment__).

Generated from protobuf message `google.cloud.ces.v1.CreateDeploymentRequest`

## Namespace

Google \\ Cloud \\ Ces \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The parent app. Format: `projects/{project}/locations/{location}/apps/{app}` |
| `↳ deployment_id` | `string` Optional. The ID to use for the deployment, which will become the final component of the deployment's resource name. If not provided, a unique ID will be automatically assigned for the deployment. |
| `↳ deployment` | `Deployment` Required. The deployment to create. |

### getParent

Required. The parent app.

Format:
`projects/{project}/locations/{location}/apps/{app}`

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

### setParent

Required. The parent app.

Format:
`projects/{project}/locations/{location}/apps/{app}`

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

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

### getDeploymentId

Optional. The ID to use for the deployment, which will become the final
component of the deployment's resource name. If not provided, a unique ID
will be automatically assigned for the deployment.

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

### setDeploymentId

Optional. The ID to use for the deployment, which will become the final
component of the deployment's resource name. If not provided, a unique ID
will be automatically assigned for the deployment.

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

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

### getDeployment

Required. The deployment to create.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Deployment|null` |   |

### hasDeployment

### clearDeployment

### setDeployment

Required. The deployment to create.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent app. Format: `projects/{project}/locations/{location}/apps/{app}` Please see AgentServiceClient::appName() for help formatting this field. |
| `deployment` | `Deployment` Required. The deployment to create. |
| `deploymentId` | `string` Optional. The ID to use for the deployment, which will become the final component of the deployment's resource name. If not provided, a unique ID will be automatically assigned for the deployment. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `CreateDeploymentRequest` |   |

### static::buildFromParentDeployment

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent app. Format: `projects/{project}/locations/{location}/apps/{app}` Please see AgentServiceClient::appName() for help formatting this field. |
| `deployment` | `Deployment` Required. The deployment to create. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `CreateDeploymentRequest` |   |