# Google Cloud Vmware Engine V1 Client - Class VpcNetwork (1.3.0)

1.3.0 (latest) 1.2.2 1.1.4 1.0.0 0.5.6 0.4.0 0.3.3 0.2.1 0.1.4 Reference documentation and code samples for the Google Cloud Vmware Engine V1 Client class VpcNetwork.

Represents a VMware Engine VPC network that is managed by a
VMware Engine network resource.

Generated from protobuf message `google.cloud.vmwareengine.v1.VmwareEngineNetwork.VpcNetwork`

## Namespace

Google \\ Cloud \\ VmwareEngine \\ V1 \\ VmwareEngineNetwork

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ type` | `int` Output only. Type of VPC network (INTRANET, INTERNET, or GOOGLE_CLOUD) |
| `↳ network` | `string` Output only. The relative resource name of the service VPC network this VMware Engine network is attached to. For example: `projects/123123/global/networks/my-network` |

### getType

Output only. Type of VPC network (INTRANET, INTERNET, or
GOOGLE_CLOUD)

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Type](https://docs.cloud.google.com/php/docs/reference/cloud-vmware-engine/latest/V1.VmwareEngineNetwork.VpcNetwork.Type). |

### setType

Output only. Type of VPC network (INTRANET, INTERNET, or
GOOGLE_CLOUD)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Type](https://docs.cloud.google.com/php/docs/reference/cloud-vmware-engine/latest/V1.VmwareEngineNetwork.VpcNetwork.Type). |

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

### getNetwork

Output only. The relative resource name of the service VPC network this
VMware Engine network is attached to. For example:
`projects/123123/global/networks/my-network`

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

### setNetwork

Output only. The relative resource name of the service VPC network this
VMware Engine network is attached to. For example:
`projects/123123/global/networks/my-network`

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

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