# Cloud Life Sciences v2beta API - Class Network (2.0.0-beta07)

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

- [2.0.0-beta07 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.Network)
- [2.0.0-beta06](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/2.0.0-beta06/Google.Cloud.LifeSciences.V2Beta.Network)
- [1.0.0-beta02](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/1.0.0-beta02/Google.Cloud.LifeSciences.V2Beta.Network)

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

Reference documentation and code samples for the Cloud Life Sciences v2beta API class Network.

VM networking options.

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Network](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.Network), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Network](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.Network), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Network](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.Network), [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.LifeSciences.V2Beta](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta)

## Assembly

Google.Cloud.LifeSciences.V2Beta.dll

## Constructors

### Network()

    public Network()

### Network(Network)

    public Network(Network other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.Network` |

## Properties

### Network_

    public string Network_ { get; set; }

The network name to attach the VM's network interface to. The value will
be prefixed with `global/networks/` unless it contains a `/`, in which
case it is assumed to be a fully specified network resource URL.

If unspecified, the global default network is used.

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

### Subnetwork

    public string Subnetwork { get; set; }

If the specified network is configured for custom subnet creation, the
name of the subnetwork to attach the instance to must be specified here.

The value is prefixed with `regions/*/subnetworks/` unless it contains a
`/`, in which case it is assumed to be a fully specified subnetwork
resource URL.

If the `*` character appears in the value, it is replaced with the region
that the virtual machine has been allocated in.

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

### UsePrivateAddress

    public bool UsePrivateAddress { get; set; }

If set to true, do not attach a public IP address to the VM. Note that
without a public IP address, additional configuration is required to
allow the VM to access Google services.

See <https://cloud.google.com/vpc/docs/configure-private-google-access>
for more information.

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