Google Cloud Bare Metal Solution V2 Client - Class LogicalNetworkInterface (0.5.2)

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

Each logical network interface is effectively a network and IP pair.

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

Namespace

Google \ Cloud \ BareMetalSolution \ V2 \ LogicalInterface

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ network string

Name of the network

↳ ip_address string

IP address in the network

↳ default_gateway bool

Whether this interface is the default gateway for the instance. Only one interface can be the default gateway for the instance.

↳ network_type int

Type of network.

↳ id string

An identifier for the Network, generated by the backend.

getNetwork

Name of the network

Returns
TypeDescription
string

setNetwork

Name of the network

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getIpAddress

IP address in the network

Returns
TypeDescription
string

setIpAddress

IP address in the network

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDefaultGateway

Whether this interface is the default gateway for the instance. Only one interface can be the default gateway for the instance.

Returns
TypeDescription
bool

setDefaultGateway

Whether this interface is the default gateway for the instance. Only one interface can be the default gateway for the instance.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getNetworkType

Type of network.

Returns
TypeDescription
int

setNetworkType

Type of network.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getId

An identifier for the Network, generated by the backend.

Returns
TypeDescription
string

setId

An identifier for the Network, generated by the backend.

Parameter
NameDescription
var string
Returns
TypeDescription
$this