Google Cloud Vm Migration V1 Client - Class NetworkInterface (0.4.2)

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 message google.cloud.vmmigration.v1.NetworkInterface

Namespace

Google \ Cloud \ VMMigration \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ network string

The network to connect the NIC to.

↳ subnetwork string

The subnetwork to connect the NIC to.

↳ internal_ip string

The internal IP to define in the NIC. The formats accepted are: ephemeral \ ipv4 address \ a named address resource full path.

↳ external_ip string

The external IP to define in the NIC.

getNetwork

The network to connect the NIC to.

Returns
TypeDescription
string

setNetwork

The network to connect the NIC to.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSubnetwork

The subnetwork to connect the NIC to.

Returns
TypeDescription
string

setSubnetwork

The subnetwork to connect the NIC to.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getInternalIp

The internal IP to define in the NIC.

The formats accepted are: ephemeral \ ipv4 address \ a named address resource full path.

Returns
TypeDescription
string

setInternalIp

The internal IP to define in the NIC.

The formats accepted are: ephemeral \ ipv4 address \ a named address resource full path.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getExternalIp

The external IP to define in the NIC.

Returns
TypeDescription
string

setExternalIp

The external IP to define in the NIC.

Parameter
NameDescription
var string
Returns
TypeDescription
$this