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.
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".
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis documentation covers the \u003ccode\u003eRestrictAllowedResourcesRequest\u003c/code\u003e class within the Google Cloud Assured Workloads v1 API, specifically version 2.2.0, which is used to manage allowed resources in a Workload environment.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRestrictAllowedResourcesRequest\u003c/code\u003e class is used to send requests for restricting the list of resources that can be used within a Workload environment.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003eObject\u003c/code\u003e and implements \u003ccode\u003eIMessage<RestrictAllowedResourcesRequest>\u003c/code\u003e, \u003ccode\u003eIEquatable<RestrictAllowedResourcesRequest>\u003c/code\u003e, \u003ccode\u003eIDeepCloneable<RestrictAllowedResourcesRequest>\u003c/code\u003e, \u003ccode\u003eIBufferMessage\u003c/code\u003e, and \u003ccode\u003eIMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two constructors, \u003ccode\u003eRestrictAllowedResourcesRequest()\u003c/code\u003e and \u003ccode\u003eRestrictAllowedResourcesRequest(RestrictAllowedResourcesRequest other)\u003c/code\u003e, which allow for creating new instances of the request.\u003c/p\u003e\n"],["\u003cp\u003eIt contains two key properties: \u003ccode\u003eName\u003c/code\u003e, a string representing the resource name of the Workload, and \u003ccode\u003eRestrictionType\u003c/code\u003e, an enum defining the type of restriction applied to the Workload environment.\u003c/p\u003e\n"]]],[],null,[]]