# Class NetworkInterface (1.17.0)

1.17.0 (latest) 1.16.0 1.15.0 1.14.0 1.13.3 1.12.0 1.11.1 1.10.5 1.9.0 1.8.0 1.7.1 1.6.1 1.5.1 1.4.4 1.3.2 1.2.1 1.1.1 1.0.0 0.4.3 0.3.2 0.2.0 0.1.2

    NetworkInterface(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The definition of a network interface resource attached to a
VM.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `network` | `str` Optional. The name of the VPC that this VM instance is in. Format: `projects/{project_id}/global/networks/{network_id}` |
| `subnet` | `str` Optional. The name of the subnet that this VM instance is in. Format: `projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}` |
| `nic_type` | `https://docs.cloud.google.com/python/docs/reference/notebooks/latest/google.cloud.notebooks_v2.types.NetworkInterface.NicType` Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet. |

## Classes

### NicType

    NicType(value)

The type of vNIC driver. Default should be NIC_TYPE_UNSPECIFIED.