# Google Cloud Network Security V1 Client - Class Deployment (1.4.0)

1.4.0 (latest) 1.3.0 1.2.3 1.1.0 1.0.4 0.6.5 0.5.2 0.4.1 0.3.7 Reference documentation and code samples for the Google Cloud Network Security V1 Client class Deployment.

A deployment belonging to this deployment group.

Generated from protobuf message `google.cloud.networksecurity.v1.InterceptDeploymentGroup.Deployment`

## Namespace

Google \\ Cloud \\ NetworkSecurity \\ V1 \\ InterceptDeploymentGroup

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Output only. The name of the Intercept Deployment, in the format: `projects/{project}/locations/{location}/interceptDeployments/{intercept_deployment}`. |
| `↳ state` | `int` Output only. Most recent known state of the deployment. |

### getName

Output only. The name of the Intercept Deployment, in the format:
`projects/{project}/locations/{location}/interceptDeployments/{intercept_deployment}`.

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

### setName

Output only. The name of the Intercept Deployment, in the format:
`projects/{project}/locations/{location}/interceptDeployments/{intercept_deployment}`.

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

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

### getState

Output only. Most recent known state of the deployment.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.InterceptDeployment.State). |

### setState

Output only. Most recent known state of the deployment.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.InterceptDeployment.State). |

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