Reference documentation and code samples for the Google Cloud Migration Center V1 Client class MachineNetworkDetails.
Details of network adapters and settings.
Generated from protobuf message google.cloud.migrationcenter.v1.MachineNetworkDetails
Namespace
Google \ Cloud \ MigrationCenter \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ primary_ip_address |
string
The primary IP address of the machine. |
↳ public_ip_address |
string
The public IP address of the machine. |
↳ primary_mac_address |
string
MAC address of the machine. This property is used to uniqly identify the machine. |
↳ adapters |
NetworkAdapterList
List of network adapters. |
getPrimaryIpAddress
The primary IP address of the machine.
| Returns | |
|---|---|
| Type | Description |
string |
|
setPrimaryIpAddress
The primary IP address of the machine.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getPublicIpAddress
The public IP address of the machine.
| Returns | |
|---|---|
| Type | Description |
string |
|
setPublicIpAddress
The public IP address of the machine.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getPrimaryMacAddress
MAC address of the machine.
This property is used to uniqly identify the machine.
| Returns | |
|---|---|
| Type | Description |
string |
|
setPrimaryMacAddress
MAC address of the machine.
This property is used to uniqly identify the machine.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAdapters
List of network adapters.
| Returns | |
|---|---|
| Type | Description |
NetworkAdapterList|null |
|
hasAdapters
clearAdapters
setAdapters
List of network adapters.
| Parameter | |
|---|---|
| Name | Description |
var |
NetworkAdapterList
|
| Returns | |
|---|---|
| Type | Description |
$this |
|