Google Cloud Bare Metal Solution V2 Client - Class LogicalInterface (0.2.8)

Reference documentation and code samples for the Google Cloud Bare Metal Solution V2 Client class LogicalInterface.

Each logical interface represents a logical abstraction of the underlying physical interface (for eg. bond, nic) of the instance. Each logical interface can effectively map to multiple network-IP pairs and still be mapped to one underlying physical interface.

Generated from protobuf message google.cloud.baremetalsolution.v2.LogicalInterface

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ logical_network_interfaces array<Google\Cloud\BareMetalSolution\V2\LogicalInterface\LogicalNetworkInterface>

List of logical network interfaces within a logical interface.

↳ name string

Interface name. This is of syntax

↳ interface_index int

The index of the logical interface mapping to the index of the hardware bond or nic on the chosen network template.

getLogicalNetworkInterfaces

List of logical network interfaces within a logical interface.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setLogicalNetworkInterfaces

List of logical network interfaces within a logical interface.

Parameter
NameDescription
var array<Google\Cloud\BareMetalSolution\V2\LogicalInterface\LogicalNetworkInterface>
Returns
TypeDescription
$this

getName

Interface name. This is of syntax

Returns
TypeDescription
string

setName

Interface name. This is of syntax

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getInterfaceIndex

The index of the logical interface mapping to the index of the hardware bond or nic on the chosen network template.

Returns
TypeDescription
int

setInterfaceIndex

The index of the logical interface mapping to the index of the hardware bond or nic on the chosen network template.

Parameter
NameDescription
var int
Returns
TypeDescription
$this