# Google Workspace Add-ons V1 Client - Class CreateDeploymentRequest (1.1.3)

1.1.3 (latest) 1.1.2 1.0.4 0.3.5 0.2.3 0.1.6 Reference documentation and code samples for the Google Workspace Add-ons V1 Client class CreateDeploymentRequest.

Request message to create a deployment.

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

## Namespace

Google \\ Cloud \\ GSuiteAddOns \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. Name of the project in which to create the deployment. Example: `projects/my_project`. |
| `↳ deployment_id` | `string` Required. The id to use for this deployment. The full name of the created resource will be `projects/<project_number>/deployments/<deployment_id>`. |
| `↳ deployment` | `https://docs.cloud.google.com/php/docs/reference/cloud-gsuite-addons/latest/V1.Deployment` Required. The deployment to create (deployment.name cannot be set). |

### getParent

Required. Name of the project in which to create the deployment.

Example: `projects/my_project`.

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

### setParent

Required. Name of the project in which to create the deployment.

Example: `projects/my_project`.

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

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

### getDeploymentId

Required. The id to use for this deployment. The full name of the created
resource will be `projects/<project_number>/deployments/<deployment_id>`.

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

### setDeploymentId

Required. The id to use for this deployment. The full name of the created
resource will be `projects/<project_number>/deployments/<deployment_id>`.

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

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

### getDeployment

Required. The deployment to create (deployment.name cannot be set).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-gsuite-addons/latest/V1.Deployment|null` |   |

### hasDeployment

### clearDeployment

### setDeployment

Required. The deployment to create (deployment.name cannot be set).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-gsuite-addons/latest/V1.Deployment` |

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. Name of the project in which to create the deployment. Example: `projects/my_project`. Please see GSuiteAddOnsClient::projectName() for help formatting this field. |
| `deployment` | `https://docs.cloud.google.com/php/docs/reference/cloud-gsuite-addons/latest/V1.Deployment` Required. The deployment to create (deployment.name cannot be set). |
| `deploymentId` | `string` Required. The id to use for this deployment. The full name of the created resource will be `projects/<project_number>/deployments/<deployment_id>`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-gsuite-addons/latest/V1.CreateDeploymentRequest` |   |