# Google Cloud Network Security V1 Client - Class ConnectedDeploymentGroup (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 ConnectedDeploymentGroup.

The endpoint group's view of a connected deployment group.

Generated from protobuf message `google.cloud.networksecurity.v1.MirroringEndpointGroup.ConnectedDeploymentGroup`

## Namespace

Google \\ Cloud \\ NetworkSecurity \\ V1 \\ MirroringEndpointGroup

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Output only. The connected deployment group's resource name, for example: `projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`. See <https://google.aip.dev/124>. |
| `↳ locations` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.MirroringLocation>` Output only. The list of locations where the deployment group is present. |

### getName

Output only. The connected deployment group's resource name, for example:
`projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`.

See <https://google.aip.dev/124>.

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

### setName

Output only. The connected deployment group's resource name, for example:
`projects/123456789/locations/global/mirroringDeploymentGroups/my-dg`.

See <https://google.aip.dev/124>.

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

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

### getLocations

Output only. The list of locations where the deployment group is present.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.MirroringLocation>` |   |

### setLocations

Output only. The list of locations where the deployment group is present.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.MirroringLocation>` |

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