2.7.0 (latest) 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.1.0 1.0.0

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

Reference documentation and code samples for the Assured Workloads v1 API class RestrictAllowedResourcesRequest.

Request for restricting list of available resources in Workload environment.

## Inheritance

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

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[RestrictAllowedResourcesRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AssuredWorkloads.V1/latest/Google.Cloud.AssuredWorkloads.V1.RestrictAllowedResourcesRequest.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[RestrictAllowedResourcesRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AssuredWorkloads.V1/latest/Google.Cloud.AssuredWorkloads.V1.RestrictAllowedResourcesRequest.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[RestrictAllowedResourcesRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AssuredWorkloads.V1/latest/Google.Cloud.AssuredWorkloads.V1.RestrictAllowedResourcesRequest.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## 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.AssuredWorkloads.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AssuredWorkloads.V1/latest/Google.Cloud.AssuredWorkloads.V1.md.txt)

## Assembly

Google.Cloud.AssuredWorkloads.V1.dll

## Constructors

### RestrictAllowedResourcesRequest()

    public RestrictAllowedResourcesRequest()

### RestrictAllowedResourcesRequest(RestrictAllowedResourcesRequest)

    public RestrictAllowedResourcesRequest(RestrictAllowedResourcesRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `RestrictAllowedResourcesRequest` |

## Properties

### Name

    public string Name { get; set; }

Required. The resource name of the Workload. This is the workloads's
relative path in the API, formatted as
"organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}".
For example,
"organizations/123/locations/us-east1/workloads/assured-workload-1".

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### RestrictionType

    public RestrictAllowedResourcesRequest.Types.RestrictionType RestrictionType { get; set; }

Required. The type of restriction for using gcp products in the Workload environment.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RestrictAllowedResourcesRequestTypesRestrictionType` |   |