# Google Cloud Life Sciences V2beta Client - Class Resources (0.9.0)

0.9.0 (latest) 0.8.1 0.7.3 0.6.8 0.5.4 0.4.0 0.3.5

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Life Sciences V2beta Client class Resources.

The system resources for the pipeline run.

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

Generated from protobuf message `google.cloud.lifesciences.v2beta.Resources`

## Namespace

Google \\ Cloud \\ LifeSciences \\ V2beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ regions` | `string[]` The list of regions allowed for VM allocation. If set, the `zones` field must not be set. |
| `↳ zones` | `string[]` The list of zones allowed for VM allocation. If set, the `regions` field must not be set. |
| `↳ virtual_machine` | `https://docs.cloud.google.com/php/docs/reference/cloud-life-sciences/latest/V2beta.VirtualMachine` The virtual machine specification. |

### getRegions

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setRegions

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

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

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

### getZones

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setZones

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

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

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

### getVirtualMachine

The virtual machine specification.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-life-sciences/latest/V2beta.VirtualMachine|null` |   |

### hasVirtualMachine

### clearVirtualMachine

### setVirtualMachine

The virtual machine specification.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-life-sciences/latest/V2beta.VirtualMachine` |

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