# Google Cloud Parallelstore V1beta Client - Class Instance (0.13.2)

0.13.2 (latest) 0.13.1 0.12.1 0.11.3 0.10.0 0.9.0 0.8.3 0.7.1 0.6.1 0.5.0 0.4.0 0.3.1 0.2.0 0.1.1

> [!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 Parallelstore V1beta Client class Instance.

A Parallelstore instance.

Generated from protobuf message `google.cloud.parallelstore.v1beta.Instance`

## Namespace

Google \\ Cloud \\ Parallelstore \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. The resource name of the instance, in the format `projects/{project}/locations/{location}/instances/{instance_id}`. |
| `↳ description` | `string` Optional. The description of the instance. 2048 characters or less. |
| `↳ state` | `int` Output only. The instance state. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time when the instance was created. |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time when the instance was updated. |
| `↳ labels` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Optional. Cloud Labels are a flexible and lightweight mechanism for organizing cloud resources into groups that reflect a customer's organizational needs and deployment strategies. See <https://cloud.google.com/resource-manager/docs/labels-overview> for details. |
| `↳ capacity_gib` | `int|string` Required. Immutable. The instance's storage capacity in Gibibytes (GiB). Allowed values are between 12000 and 100000, in multiples of 4000; e.g., 12000, 16000, 20000, ... |
| `↳ daos_version` | `string` Output only. Deprecated: The version of DAOS software running in the instance. |
| `↳ access_points` | `string[]` Output only. A list of IPv4 addresses used for client side configuration. |
| `↳ network` | `string` Optional. Immutable. The name of the Compute Engine [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the instance is connected. |
| `↳ reserved_ip_range` | `string` Optional. Immutable. The ID of the IP address range being used by the instance's VPC network. See [Configure a VPC network](https://cloud.google.com/parallelstore/docs/vpc#create_and_configure_the_vpc). If no ID is provided, all ranges are considered. |
| `↳ effective_reserved_ip_range` | `string` Output only. Immutable. The ID of the IP address range being used by the instance's VPC network. This field is populated by the service and contains the value currently used by the service. |
| `↳ file_stripe_level` | `int` Optional. Immutable. Stripe level for files. Allowed values are: \* \* `FILE_STRIPE_LEVEL_MIN`: offers the best performance for small size files. \* \* `FILE_STRIPE_LEVEL_BALANCED`: balances performance for workloads involving a mix of small and large files. \* \* `FILE_STRIPE_LEVEL_MAX`: higher throughput performance for larger files. |
| `↳ directory_stripe_level` | `int` Optional. Immutable. Stripe level for directories. Allowed values are: \* \* `DIRECTORY_STRIPE_LEVEL_MIN`: recommended when directories contain a small number of files. \* \* `DIRECTORY_STRIPE_LEVEL_BALANCED`: balances performance for workloads involving a mix of small and large directories. \* \* `DIRECTORY_STRIPE_LEVEL_MAX`: recommended for directories with a large number of files. |
| `↳ deployment_type` | `int` Optional. Immutable. The deployment type of the instance. Allowed values are: \* \* `SCRATCH`: the instance is a scratch instance. \* \* `PERSISTENT`: the instance is a persistent instance. |

### getName

Identifier. The resource name of the instance, in the format
`projects/{project}/locations/{location}/instances/{instance_id}`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

Identifier. The resource name of the instance, in the format
`projects/{project}/locations/{location}/instances/{instance_id}`.

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

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

### getDescription

Optional. The description of the instance. 2048 characters or less.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setDescription

Optional. The description of the instance. 2048 characters or less.

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

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

### getState

Output only. The instance state.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-parallelstore/latest/V1beta.Instance.State). |

### setState

Output only. The instance state.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-parallelstore/latest/V1beta.Instance.State). |

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

### getCreateTime

Output only. The time when the instance was created.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. The time when the instance was created.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getUpdateTime

Output only. The time when the instance was updated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. The time when the instance was updated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getLabels

Optional. Cloud Labels are a flexible and lightweight mechanism for
organizing cloud resources into groups that reflect a customer's
organizational needs and deployment strategies. See
<https://cloud.google.com/resource-manager/docs/labels-overview> for details.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |   |

### setLabels

Optional. Cloud Labels are a flexible and lightweight mechanism for
organizing cloud resources into groups that reflect a customer's
organizational needs and deployment strategies. See
<https://cloud.google.com/resource-manager/docs/labels-overview> for details.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |

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

### getCapacityGib

Required. Immutable. The instance's storage capacity in Gibibytes (GiB).

Allowed values are between 12000 and 100000, in multiples of 4000; e.g.,
12000, 16000, 20000, ...

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int|string` |   |

### setCapacityGib

Required. Immutable. The instance's storage capacity in Gibibytes (GiB).

Allowed values are between 12000 and 100000, in multiples of 4000; e.g.,
12000, 16000, 20000, ...

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int|string` |

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

### getDaosVersion

Output only. Deprecated: The version of DAOS software running in the
instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setDaosVersion

Output only. Deprecated: The version of DAOS software running in the
instance.

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

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

### getAccessPoints

Output only. A list of IPv4 addresses used for client side configuration.

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

### setAccessPoints

Output only. A list of IPv4 addresses used for client side configuration.

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

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

### getNetwork

Optional. Immutable. The name of the Compute Engine
[VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
instance is connected.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setNetwork

Optional. Immutable. The name of the Compute Engine
[VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
instance is connected.

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

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

### getReservedIpRange

Optional. Immutable. The ID of the IP address range being used by the
instance's VPC network. See [Configure a VPC
network](https://cloud.google.com/parallelstore/docs/vpc#create_and_configure_the_vpc).

If no ID is provided, all ranges are considered.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setReservedIpRange

Optional. Immutable. The ID of the IP address range being used by the
instance's VPC network. See [Configure a VPC
network](https://cloud.google.com/parallelstore/docs/vpc#create_and_configure_the_vpc).

If no ID is provided, all ranges are considered.

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

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

### getEffectiveReservedIpRange

Output only. Immutable. The ID of the IP address range being used by the
instance's VPC network. This field is populated by the service and contains
the value currently used by the service.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setEffectiveReservedIpRange

Output only. Immutable. The ID of the IP address range being used by the
instance's VPC network. This field is populated by the service and contains
the value currently used by the service.

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

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

### getFileStripeLevel

Optional. Immutable. Stripe level for files. Allowed values are:

- `FILE_STRIPE_LEVEL_MIN`: offers the best performance for small size
  files.

- `FILE_STRIPE_LEVEL_BALANCED`: balances performance for workloads
  involving a mix of small and large files.

- `FILE_STRIPE_LEVEL_MAX`: higher throughput performance for larger files.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [FileStripeLevel](https://docs.cloud.google.com/php/docs/reference/cloud-parallelstore/latest/V1beta.FileStripeLevel). |

### setFileStripeLevel

Optional. Immutable. Stripe level for files. Allowed values are:

- `FILE_STRIPE_LEVEL_MIN`: offers the best performance for small size
  files.

- `FILE_STRIPE_LEVEL_BALANCED`: balances performance for workloads
  involving a mix of small and large files.

- `FILE_STRIPE_LEVEL_MAX`: higher throughput performance for larger files.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [FileStripeLevel](https://docs.cloud.google.com/php/docs/reference/cloud-parallelstore/latest/V1beta.FileStripeLevel). |

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

### getDirectoryStripeLevel

Optional. Immutable. Stripe level for directories. Allowed values are:

- `DIRECTORY_STRIPE_LEVEL_MIN`: recommended when directories contain a
  small number of files.

- `DIRECTORY_STRIPE_LEVEL_BALANCED`: balances performance for workloads
  involving a mix of small and large directories.

- `DIRECTORY_STRIPE_LEVEL_MAX`: recommended for directories with a large number of files.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [DirectoryStripeLevel](https://docs.cloud.google.com/php/docs/reference/cloud-parallelstore/latest/V1beta.DirectoryStripeLevel). |

### setDirectoryStripeLevel

Optional. Immutable. Stripe level for directories. Allowed values are:

- `DIRECTORY_STRIPE_LEVEL_MIN`: recommended when directories contain a
  small number of files.

- `DIRECTORY_STRIPE_LEVEL_BALANCED`: balances performance for workloads
  involving a mix of small and large directories.

- `DIRECTORY_STRIPE_LEVEL_MAX`: recommended for directories with a large number of files.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [DirectoryStripeLevel](https://docs.cloud.google.com/php/docs/reference/cloud-parallelstore/latest/V1beta.DirectoryStripeLevel). |

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

### getDeploymentType

Optional. Immutable. The deployment type of the instance. Allowed values
are:

- `SCRATCH`: the instance is a scratch instance.

- `PERSISTENT`: the instance is a persistent instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [DeploymentType](https://docs.cloud.google.com/php/docs/reference/cloud-parallelstore/latest/V1beta.DeploymentType). |

### setDeploymentType

Optional. Immutable. The deployment type of the instance. Allowed values
are:

- `SCRATCH`: the instance is a scratch instance.

- `PERSISTENT`: the instance is a persistent instance.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [DeploymentType](https://docs.cloud.google.com/php/docs/reference/cloud-parallelstore/latest/V1beta.DeploymentType). |

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