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

1.1.3 (latest) 1.1.2 1.0.5 0.6.5 0.5.2 0.4.0 0.3.2 0.2.8 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` | `string[]` Instance types this template is applicable to. |
| `↳ logical_interfaces` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-bare-metal-solution/latest/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** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setApplicableInstanceTypes

Instance types this template is applicable to.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getLogicalInterfaces

Logical interfaces.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-bare-metal-solution/latest/V2.ServerNetworkTemplate.LogicalInterface>` |   |

### setLogicalInterfaces

Logical interfaces.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-bare-metal-solution/latest/V2.ServerNetworkTemplate.LogicalInterface>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |