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
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: |
↳ 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 type ComputeEngineNetworkTier. |
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.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type ComputeEngineNetworkTier. |
| Returns | |
|---|---|
| Type | Description |
$this |
|