# Bare Metal Solution v2 API - Class ServerNetworkTemplate (1.8.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [1.8.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.ServerNetworkTemplate)
- [1.7.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/1.7.0/Google.Cloud.BareMetalSolution.V2.ServerNetworkTemplate)
- [1.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/1.6.0/Google.Cloud.BareMetalSolution.V2.ServerNetworkTemplate)
- [1.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/1.5.0/Google.Cloud.BareMetalSolution.V2.ServerNetworkTemplate)
- [1.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/1.4.0/Google.Cloud.BareMetalSolution.V2.ServerNetworkTemplate)
- [1.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/1.3.0/Google.Cloud.BareMetalSolution.V2.ServerNetworkTemplate)
- [1.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/1.2.0/Google.Cloud.BareMetalSolution.V2.ServerNetworkTemplate)
- [1.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/1.1.0/Google.Cloud.BareMetalSolution.V2.ServerNetworkTemplate)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/1.0.0/Google.Cloud.BareMetalSolution.V2.ServerNetworkTemplate)

    public sealed class ServerNetworkTemplate : IMessage<ServerNetworkTemplate>, IEquatable<ServerNetworkTemplate>, IDeepCloneable<ServerNetworkTemplate>, IBufferMessage, IMessage

Reference documentation and code samples for the Bare Metal Solution v2 API class ServerNetworkTemplate.

Network template.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> ServerNetworkTemplate

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ServerNetworkTemplate](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.ServerNetworkTemplate), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ServerNetworkTemplate](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.ServerNetworkTemplate), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ServerNetworkTemplate](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.ServerNetworkTemplate), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.BareMetalSolution.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2)

## Assembly

Google.Cloud.BareMetalSolution.V2.dll

## Constructors

### ServerNetworkTemplate()

    public ServerNetworkTemplate()

### ServerNetworkTemplate(ServerNetworkTemplate)

    public ServerNetworkTemplate(ServerNetworkTemplate other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.ServerNetworkTemplate` |

## Properties

### ApplicableInstanceTypes

    public RepeatedField<string> ApplicableInstanceTypes { get; }

Instance types this template is applicable to.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://learn.microsoft.com/dotnet/api/system.string` |   |

### LogicalInterfaces

    public RepeatedField<ServerNetworkTemplate.Types.LogicalInterface> LogicalInterfaces { get; }

Logical interfaces.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.ServerNetworkTemplatehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.ServerNetworkTemplate.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.ServerNetworkTemplate.Types.LogicalInterface` |   |

### Name

    public string Name { get; set; }

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\>".

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### ServerNetworkTemplateName

    public ServerNetworkTemplateName ServerNetworkTemplateName { get; set; }

[ServerNetworkTemplateName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.ServerNetworkTemplateName)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.ServerNetworkTemplate#Google_Cloud_BareMetalSolution_V2_ServerNetworkTemplate_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.ServerNetworkTemplateName` |   |