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 \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
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: |
↳ external_ip |
string
The external IP to define in the NIC. |
getNetwork
The network to connect the NIC to.
| Returns | |
|---|---|
| Type | Description |
string |
|
setNetwork
The network to connect the NIC to.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSubnetwork
The subnetwork to connect the NIC to.
| Returns | |
|---|---|
| Type | Description |
string |
|
setSubnetwork
The subnetwork to connect the NIC to.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getInternalIp
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
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
The external IP to define in the NIC.
| Returns | |
|---|---|
| Type | Description |
string |
|
setExternalIp
The external IP to define in the NIC.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|