# Notebooks V2 API - Class Google::Cloud::Notebooks::V2::NetworkInterface (v1.5.0)

1.5.0 (latest) 1.4.0 1.3.1 1.2.0 1.1.0 1.0.1 0.6.0 0.5.0 0.4.2 0.3.2 0.2.0 0.1.0 Reference documentation and code samples for the Notebooks V2 API class Google::Cloud::Notebooks::V2::NetworkInterface.

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

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #network

    def network() -> ::String

**Returns**

- (::String) --- Optional. The name of the VPC that this VM instance is in. Format: `projects/{project_id}/global/networks/{network_id}`

### #network=

    def network=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The name of the VPC that this VM instance is in. Format: `projects/{project_id}/global/networks/{network_id}`
**Returns**

- (::String) --- Optional. The name of the VPC that this VM instance is in. Format: `projects/{project_id}/global/networks/{network_id}`

### #nic_type

    def nic_type() -> ::Google::Cloud::Notebooks::V2::NetworkInterface::NicType

**Returns**

- ([::Google::Cloud::Notebooks::V2::NetworkInterface::NicType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-notebooks-v2/latest/Google-Cloud-Notebooks-V2-NetworkInterface-NicType)) --- Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.

### #nic_type=

    def nic_type=(value) -> ::Google::Cloud::Notebooks::V2::NetworkInterface::NicType

**Parameter**

- **value** ([::Google::Cloud::Notebooks::V2::NetworkInterface::NicType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-notebooks-v2/latest/Google-Cloud-Notebooks-V2-NetworkInterface-NicType)) --- Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.
**Returns**

- ([::Google::Cloud::Notebooks::V2::NetworkInterface::NicType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-notebooks-v2/latest/Google-Cloud-Notebooks-V2-NetworkInterface-NicType)) --- Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.

### #subnet

    def subnet() -> ::String

**Returns**

- (::String) --- Optional. The name of the subnet that this VM instance is in. Format: `projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}`

### #subnet=

    def subnet=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The name of the subnet that this VM instance is in. Format: `projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}`
**Returns**

- (::String) --- Optional. The name of the subnet that this VM instance is in. Format: `projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}`