Google Cloud Bare Metal Solution V2 Client - Class ServerNetworkTemplate (0.6.4)

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

Network template.

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

Namespace

Google \ Cloud \ BareMetalSolution \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Output only. Template's unique name. The full resource name follows the pattern: projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template} Generally, the {server_network_template} follows the syntax of "bond<interface_type_index><bond_mode>" or "nic<interface_type_index>".

↳ applicable_instance_types array

Instance types this template is applicable to.

↳ logical_interfaces array<Google\Cloud\BareMetalSolution\V2\ServerNetworkTemplate\LogicalInterface>

Logical interfaces.

getName

Output only. Template's unique name. The full resource name follows the pattern: projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template} Generally, the {server_network_template} follows the syntax of "bond<interface_type_index><bond_mode>" or "nic<interface_type_index>".

Returns
Type Description
string

setName

Output only. Template's unique name. The full resource name follows the pattern: projects/{project}/locations/{location}/serverNetworkTemplate/{server_network_template} Generally, the {server_network_template} follows the syntax of "bond<interface_type_index><bond_mode>" or "nic<interface_type_index>".

Parameter
Name Description
var string
Returns
Type Description
$this

getApplicableInstanceTypes

Instance types this template is applicable to.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setApplicableInstanceTypes

Instance types this template is applicable to.

Parameter
Name Description
var string[]
Returns
Type Description
$this

getLogicalInterfaces

Logical interfaces.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setLogicalInterfaces

Logical interfaces.

Parameter
Name Description
var array<Google\Cloud\BareMetalSolution\V2\ServerNetworkTemplate\LogicalInterface>
Returns
Type Description
$this