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

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
NameDescription
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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this

getApplicableInstanceTypes

Instance types this template is applicable to.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setApplicableInstanceTypes

Instance types this template is applicable to.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getLogicalInterfaces

Logical interfaces.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setLogicalInterfaces

Logical interfaces.

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