# Google Cloud Data Fusion V1 Client - Class NetworkConfig (1.1.2)

1.1.2 (latest) 1.1.1 1.0.5 0.6.5 0.5.2 0.4.1 0.3.0 0.2.11 Reference documentation and code samples for the Google Cloud Data Fusion V1 Client class NetworkConfig.

Network configuration for a Data Fusion instance. These configurations
are used for peering with the customer network. Configurations are optional
when a public Data Fusion instance is to be created. However, providing
these configurations allows several benefits, such as reduced network latency
while accessing the customer resources from managed Data Fusion instance
nodes, as well as access to the customer on-prem resources.

Generated from protobuf message `google.cloud.datafusion.v1.NetworkConfig`

## Namespace

Google \\ Cloud \\ DataFusion \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ network` | `string` Name of the network in the customer project with which the Tenant Project will be peered for executing pipelines. In case of shared VPC where the network resides in another host project the network should specified in the form of projects/{host-project-id}/global/networks/{network} |
| `↳ ip_allocation` | `string` The IP range in CIDR notation to use for the managed Data Fusion instance nodes. This range must not overlap with any other ranges used in the customer network. |

### getNetwork

Name of the network in the customer project with which the Tenant Project
will be peered for executing pipelines. In case of shared VPC where the
network resides in another host project the network should specified in
the form of projects/{host-project-id}/global/networks/{network}

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

### setNetwork

Name of the network in the customer project with which the Tenant Project
will be peered for executing pipelines. In case of shared VPC where the
network resides in another host project the network should specified in
the form of projects/{host-project-id}/global/networks/{network}

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

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

### getIpAllocation

The IP range in CIDR notation to use for the managed Data Fusion instance
nodes. This range must not overlap with any other ranges used in the
customer network.

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

### setIpAllocation

The IP range in CIDR notation to use for the managed Data Fusion instance
nodes. This range must not overlap with any other ranges used in the
customer network.

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

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