Reference documentation and code samples for the Google Cloud Vm Migration V1 Client class NetworkInterface.
NetworkInterface represents a NIC of a VM.
Generated from protobuf messagegoogle.cloud.vmmigration.v1.NetworkInterface
Namespace
Google \ Cloud \ VMMigration \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ network
string
Optional. The network to connect the NIC to.
↳ subnetwork
string
Optional. The subnetwork to connect the NIC to.
↳ internal_ip
string
Optional. The internal IP to define in the NIC. The formats accepted are:ephemeral\ ipv4 address \ a named address resource full path.
↳ external_ip
string
Optional. The external IP to define in the NIC.
↳ network_tier
int
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.
getNetwork
Optional. The network to connect the NIC to.
Returns
Type
Description
string
setNetwork
Optional. The network to connect the NIC to.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getSubnetwork
Optional. The subnetwork to connect the NIC to.
Returns
Type
Description
string
setSubnetwork
Optional. The subnetwork to connect the NIC to.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getInternalIp
Optional. The internal IP to define in the NIC.
The formats accepted are:ephemeral\ ipv4 address \ a named address
resource full path.
Returns
Type
Description
string
setInternalIp
Optional. The internal IP to define in the NIC.
The formats accepted are:ephemeral\ ipv4 address \ a named address
resource full path.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getExternalIp
Optional. The external IP to define in the NIC.
Returns
Type
Description
string
setExternalIp
Optional. The external IP to define in the NIC.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getNetworkTier
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
Type
Description
int
Enum of typeComputeEngineNetworkTier.
setNetworkTier
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Google Cloud Vm Migration V1 Client - Class NetworkInterface (1.0.5)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.5 (latest)](/php/docs/reference/cloud-vm-migration/latest/V1.NetworkInterface)\n- [1.0.4](/php/docs/reference/cloud-vm-migration/1.0.4/V1.NetworkInterface)\n- [0.6.5](/php/docs/reference/cloud-vm-migration/0.6.5/V1.NetworkInterface)\n- [0.5.2](/php/docs/reference/cloud-vm-migration/0.5.2/V1.NetworkInterface)\n- [0.4.2](/php/docs/reference/cloud-vm-migration/0.4.2/V1.NetworkInterface)\n- [0.3.2](/php/docs/reference/cloud-vm-migration/0.3.2/V1.NetworkInterface)\n- [0.2.3](/php/docs/reference/cloud-vm-migration/0.2.3/V1.NetworkInterface) \nReference documentation and code samples for the Google Cloud Vm Migration V1 Client class NetworkInterface.\n\nNetworkInterface represents a NIC of a VM.\n\nGenerated from protobuf message `google.cloud.vmmigration.v1.NetworkInterface`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ VMMigration \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getNetwork\n\nThe network to connect the NIC to.\n\n### setNetwork\n\nThe network to connect the NIC to.\n\n### getSubnetwork\n\nThe subnetwork to connect the NIC to.\n\n### setSubnetwork\n\nThe subnetwork to connect the NIC to.\n\n### getInternalIp\n\nThe internal IP to define in the NIC.\n\nThe formats accepted are: `ephemeral` \\\\ ipv4 address \\\\ a named address\nresource full path.\n\n### setInternalIp\n\nThe internal IP to define in the NIC.\n\nThe formats accepted are: `ephemeral` \\\\ ipv4 address \\\\ a named address\nresource full path.\n\n### getExternalIp\n\nThe external IP to define in the NIC.\n\n### setExternalIp\n\nThe external IP to define in the NIC."]]