# Google Cloud Backup Dr V1 Client - Class NetworkConfig (0.13.0)

0.13.0 (latest) 0.12.1 0.11.1 0.10.0 0.9.0 0.8.1 0.7.0 0.6.2 0.5.1 0.4.2 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Google Cloud Backup Dr V1 Client class NetworkConfig.

Network configuration for ManagementServer instance.

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

## Namespace

Google \\ Cloud \\ BackupDR \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ network` | `string` Optional. The resource name of the Google Compute Engine VPC network to which the ManagementServer instance is connected. |
| `↳ peering_mode` | `int` Optional. The network connect mode of the ManagementServer instance. For this version, only PRIVATE_SERVICE_ACCESS is supported. |

### getNetwork

Optional. The resource name of the Google Compute Engine VPC network to
which the ManagementServer instance is connected.

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

### setNetwork

Optional. The resource name of the Google Compute Engine VPC network to
which the ManagementServer instance is connected.

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

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

### getPeeringMode

Optional. The network connect mode of the ManagementServer instance. For
this version, only PRIVATE_SERVICE_ACCESS is supported.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [PeeringMode](https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.NetworkConfig.PeeringMode). |

### setPeeringMode

Optional. The network connect mode of the ManagementServer instance. For
this version, only PRIVATE_SERVICE_ACCESS is supported.

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

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