# Cloud Life Sciences v2beta API - Class Resources (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.Resources)
- [2.0.0-beta06](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/2.0.0-beta06/Google.Cloud.LifeSciences.V2Beta.Resources)
- [1.0.0-beta02](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/1.0.0-beta02/Google.Cloud.LifeSciences.V2Beta.Resources)

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

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

The system resources for the pipeline run.

At least one zone or region must be specified or the pipeline run will fail.

## Inheritance

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

## Implements

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

### Resources()

    public Resources()

### Resources(Resources)

    public Resources(Resources other)

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

## Properties

### Regions

    public RepeatedField<string> Regions { get; }

The list of regions allowed for VM allocation. If set, the `zones` field
must not be set.

| **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` |   |

### VirtualMachine

    public VirtualMachine VirtualMachine { get; set; }

The virtual machine specification.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.VirtualMachine` |   |

### Zones

    public RepeatedField<string> Zones { get; }

The list of zones allowed for VM allocation. If set, the `regions` field
must not be set.

| **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` |   |