Google Cloud Migration Center V1 Client - Class MachineNetworkDetails (0.3.1)

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 \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
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 Google\Cloud\MigrationCenter\V1\NetworkAdapterList

List of network adapters.

getPrimaryIpAddress

The primary IP address of the machine.

Returns
TypeDescription
string

setPrimaryIpAddress

The primary IP address of the machine.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPublicIpAddress

The public IP address of the machine.

Returns
TypeDescription
string

setPublicIpAddress

The public IP address of the machine.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPrimaryMacAddress

MAC address of the machine.

This property is used to uniqly identify the machine.

Returns
TypeDescription
string

setPrimaryMacAddress

MAC address of the machine.

This property is used to uniqly identify the machine.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAdapters

List of network adapters.

Returns
TypeDescription
Google\Cloud\MigrationCenter\V1\NetworkAdapterList|null

hasAdapters

clearAdapters

setAdapters

List of network adapters.

Parameter
NameDescription
var Google\Cloud\MigrationCenter\V1\NetworkAdapterList
Returns
TypeDescription
$this