# Migrate for Compute Engine V1 API - Class Google::Cloud::VMMigration::V1::NetworkInterface (v2.9.0)

2.9.0 (latest) 2.8.0 2.7.0 2.6.0 2.5.1 2.4.0 2.3.0 2.2.0 2.1.1 2.0.0 1.3.0 1.2.0 1.1.0 1.0.2 0.9.0 0.8.2 0.7.0 0.6.1 0.5.0 0.4.0 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Migrate for Compute Engine V1 API class Google::Cloud::VMMigration::V1::NetworkInterface.

NetworkInterface represents a NIC of a VM.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #external_ip

    def external_ip() -> ::String

**Returns**

- (::String) --- Optional. The external IP to define in the NIC.

### #external_ip=

    def external_ip=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The external IP to define in the NIC.
**Returns**

- (::String) --- Optional. The external IP to define in the NIC.

### #internal_ip

    def internal_ip() -> ::String

**Returns**

- (::String) --- Optional. The internal IP to define in the NIC. The formats accepted are: `ephemeral` \\ ipv4 address \\ a named address resource full path.

### #internal_ip=

    def internal_ip=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The internal IP to define in the NIC. The formats accepted are: `ephemeral` \\ ipv4 address \\ a named address resource full path.
**Returns**

- (::String) --- Optional. The internal IP to define in the NIC. The formats accepted are: `ephemeral` \\ ipv4 address \\ a named address resource full path.

### #network

    def network() -> ::String

**Returns**

- (::String) --- Optional. The network to connect the NIC to.

### #network=

    def network=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The network to connect the NIC to.
**Returns**

- (::String) --- Optional. The network to connect the NIC to.

### #network_tier

    def network_tier() -> ::Google::Cloud::VMMigration::V1::ComputeEngineNetworkTier

**Returns**

- ([::Google::Cloud::VMMigration::V1::ComputeEngineNetworkTier](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-ComputeEngineNetworkTier)) --- Optional. The networking tier used for optimizing connectivity between instances and systems on the internet. Applies only for external ephemeral IP addresses. If left empty, will default to PREMIUM.

### #network_tier=

    def network_tier=(value) -> ::Google::Cloud::VMMigration::V1::ComputeEngineNetworkTier

**Parameter**

- **value** ([::Google::Cloud::VMMigration::V1::ComputeEngineNetworkTier](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-ComputeEngineNetworkTier)) --- Optional. The networking tier used for optimizing connectivity between instances and systems on the internet. Applies only for external ephemeral IP addresses. If left empty, will default to PREMIUM.
**Returns**

- ([::Google::Cloud::VMMigration::V1::ComputeEngineNetworkTier](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Cloud-VMMigration-V1-ComputeEngineNetworkTier)) --- Optional. The networking tier used for optimizing connectivity between instances and systems on the internet. Applies only for external ephemeral IP addresses. If left empty, will default to PREMIUM.

### #subnetwork

    def subnetwork() -> ::String

**Returns**

- (::String) --- Optional. The subnetwork to connect the NIC to.

### #subnetwork=

    def subnetwork=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The subnetwork to connect the NIC to.
**Returns**

- (::String) --- Optional. The subnetwork to connect the NIC to.