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

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

Logical interface.

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

Namespace

Google \ Cloud \ BareMetalSolution \ V2 \ ServerNetworkTemplate

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Interface name. This is not a globally unique identifier. Name is unique only inside the ServerNetworkTemplate. This is of syntax

↳ type int

Interface type.

↳ required bool

If true, interface must have network connected.

getName

Interface name.

This is not a globally unique identifier. Name is unique only inside the ServerNetworkTemplate. This is of syntax

Returns
TypeDescription
string

setName

Interface name.

This is not a globally unique identifier. Name is unique only inside the ServerNetworkTemplate. This is of syntax

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getType

Interface type.

Returns
TypeDescription
int

setType

Interface type.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getRequired

If true, interface must have network connected.

Returns
TypeDescription
bool

setRequired

If true, interface must have network connected.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this