# Google Cloud Network Connectivity V1 Client - Class Migration (2.5.3)

2.5.3 (latest) 2.5.2 2.4.0 2.3.0 2.2.2 2.1.2 2.0.2 1.5.5 1.4.2 1.3.0 1.2.0 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud Network Connectivity V1 Client class Migration.

Specification for migration with source and target resource names.

Generated from protobuf message `google.cloud.networkconnectivity.v1.InternalRange.Migration`

## Namespace

Google \\ Cloud \\ NetworkConnectivity \\ V1 \\ InternalRange

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ source` | `string` Immutable. Resource path as an URI of the source resource, for example a subnet. The project for the source resource should match the project for the InternalRange. An example: /projects/{project}/regions/{region}/subnetworks/{subnet} |
| `↳ target` | `string` Immutable. Resource path of the target resource. The target project can be different, as in the cases when migrating to peer networks. For example: /projects/{project}/regions/{region}/subnetworks/{subnet} |

### getSource

Immutable. Resource path as an URI of the source resource, for example a
subnet. The project for the source resource should match the project for
the InternalRange. An example:
/projects/{project}/regions/{region}/subnetworks/{subnet}

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

### setSource

Immutable. Resource path as an URI of the source resource, for example a
subnet. The project for the source resource should match the project for
the InternalRange. An example:
/projects/{project}/regions/{region}/subnetworks/{subnet}

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

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

### getTarget

Immutable. Resource path of the target resource. The target project can
be different, as in the cases when migrating to peer networks. For
example:
/projects/{project}/regions/{region}/subnetworks/{subnet}

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

### setTarget

Immutable. Resource path of the target resource. The target project can
be different, as in the cases when migrating to peer networks. For
example:
/projects/{project}/regions/{region}/subnetworks/{subnet}

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

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