# Assured Workloads for Government V1beta1 API - Class Google::Cloud::AssuredWorkloads::V1beta1::RestrictAllowedResourcesRequest (v0.26.0)

0.26.0 (latest) 0.25.0 0.24.0 0.23.1 0.22.0 0.21.1 0.20.1 0.19.0 0.18.1 0.17.2 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.2 Reference documentation and code samples for the Assured Workloads for Government V1beta1 API class Google::Cloud::AssuredWorkloads::V1beta1::RestrictAllowedResourcesRequest.

Request for restricting list of available resources in Workload environment.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #name

    def name() -> ::String

**Returns**

- (::String) --- 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".

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- 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".
**Returns**

- (::String) --- 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".

### #restriction_type

    def restriction_type() -> ::Google::Cloud::AssuredWorkloads::V1beta1::RestrictAllowedResourcesRequest::RestrictionType

**Returns**

- ([::Google::Cloud::AssuredWorkloads::V1beta1::RestrictAllowedResourcesRequest::RestrictionType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-assured_workloads-v1beta1/latest/Google-Cloud-AssuredWorkloads-V1beta1-RestrictAllowedResourcesRequest-RestrictionType)) --- Required. The type of restriction for using gcp products in the Workload environment.

### #restriction_type=

    def restriction_type=(value) -> ::Google::Cloud::AssuredWorkloads::V1beta1::RestrictAllowedResourcesRequest::RestrictionType

**Parameter**

- **value** ([::Google::Cloud::AssuredWorkloads::V1beta1::RestrictAllowedResourcesRequest::RestrictionType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-assured_workloads-v1beta1/latest/Google-Cloud-AssuredWorkloads-V1beta1-RestrictAllowedResourcesRequest-RestrictionType)) --- Required. The type of restriction for using gcp products in the Workload environment.
**Returns**

- ([::Google::Cloud::AssuredWorkloads::V1beta1::RestrictAllowedResourcesRequest::RestrictionType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-assured_workloads-v1beta1/latest/Google-Cloud-AssuredWorkloads-V1beta1-RestrictAllowedResourcesRequest-RestrictionType)) --- Required. The type of restriction for using gcp products in the Workload environment.