# Google Cloud Database Center V1beta Client - Class SubResourceType (0.7.0)

0.7.0 (latest) 0.6.0 0.5.0 0.4.1 0.3.1 0.2.0 0.1.0

> [!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 Database Center V1beta Client class SubResourceType.

SubResourceType refers to the sub-type of database resource.

Protobuf type `google.cloud.databasecenter.v1beta.SubResourceType`

## Namespace

Google \\ Cloud \\ DatabaseCenter \\ V1beta

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### SUB_RESOURCE_TYPE_UNSPECIFIED

    Value: 0

Unspecified.

Generated from protobuf enum `SUB_RESOURCE_TYPE_UNSPECIFIED = 0;`

### SUB_RESOURCE_TYPE_PRIMARY

    Value: 1

A resource acting as a primary.

Generated from protobuf enum `SUB_RESOURCE_TYPE_PRIMARY = 1;`

### SUB_RESOURCE_TYPE_SECONDARY

    Value: 2

A resource acting as a secondary.

Generated from protobuf enum `SUB_RESOURCE_TYPE_SECONDARY = 2;`

### SUB_RESOURCE_TYPE_READ_REPLICA

    Value: 3

A resource acting as a read-replica.

Generated from protobuf enum `SUB_RESOURCE_TYPE_READ_REPLICA = 3;`

### SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY

    Value: 5

A resource acting as an external primary.

Generated from protobuf enum `SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY = 5;`

### SUB_RESOURCE_TYPE_READ_POOL

    Value: 6

A resource acting as a read pool.

Generated from protobuf enum `SUB_RESOURCE_TYPE_READ_POOL = 6;`

### SUB_RESOURCE_TYPE_RESERVATION

    Value: 7

Represents a reservation resource.

Generated from protobuf enum `SUB_RESOURCE_TYPE_RESERVATION = 7;`

### SUB_RESOURCE_TYPE_DATASET

    Value: 8

Represents a dataset resource.

Generated from protobuf enum `SUB_RESOURCE_TYPE_DATASET = 8;`

### SUB_RESOURCE_TYPE_OTHER

    Value: 4

For the rest of the categories.

Generated from protobuf enum `SUB_RESOURCE_TYPE_OTHER = 4;`