# Google Cloud Assured Workloads V1beta1 Client - Class RestrictionType (1.1.3)

1.1.3 (latest) 1.1.2 1.0.5 0.11.5 0.10.2 0.9.1 0.8.3 0.7.3

> [!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 Assured Workloads V1beta1 Client class RestrictionType.

The type of restriction.

Protobuf type `google.cloud.assuredworkloads.v1beta1.RestrictAllowedResourcesRequest.RestrictionType`

## Namespace

Google \\ Cloud \\ AssuredWorkloads \\ V1beta1 \\ RestrictAllowedResourcesRequest

## Methods

### static::name

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

### static::value

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

## Constants

### RESTRICTION_TYPE_UNSPECIFIED

    Value: 0

Unknown restriction type.

Generated from protobuf enum `RESTRICTION_TYPE_UNSPECIFIED = 0;`

### ALLOW_ALL_GCP_RESOURCES

    Value: 1

Allow the use all of all gcp products, irrespective of the compliance
posture. This effectively removes gcp.restrictServiceUsage OrgPolicy
on the AssuredWorkloads Folder.

Generated from protobuf enum `ALLOW_ALL_GCP_RESOURCES = 1;`

### ALLOW_COMPLIANT_RESOURCES

    Value: 2

Based on Workload's compliance regime, allowed list changes.

See - <https://cloud.google.com/assured-workloads/docs/supported-products>
for the list of supported resources.

Generated from protobuf enum `ALLOW_COMPLIANT_RESOURCES = 2;`