Reference documentation and code samples for the Google Cloud Assured Workloads V1beta1 Client class RestrictAllowedResourcesRequest.
Request for restricting list of available resources in Workload environment.
Generated from protobuf message google.cloud.assuredworkloads.v1beta1.RestrictAllowedResourcesRequest
Namespace
Google \ Cloud \ AssuredWorkloads \ V1beta1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
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
int
Required. The type of restriction for using gcp products in the Workload environment.
getName
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
Type
Description
string
setName
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".
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getRestrictionType
Required. The type of restriction for using gcp products in the Workload environment.
Returns
Type
Description
int
Enum of type RestrictionType.
setRestrictionType
Required. The type of restriction for using gcp products in the Workload environment.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Google Cloud Assured Workloads V1beta1 Client - Class RestrictAllowedResourcesRequest (1.0.5)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.5 (latest)](/php/docs/reference/cloud-assured-workloads/latest/V1beta1.RestrictAllowedResourcesRequest)\n- [1.0.4](/php/docs/reference/cloud-assured-workloads/1.0.4/V1beta1.RestrictAllowedResourcesRequest)\n- [0.11.5](/php/docs/reference/cloud-assured-workloads/0.11.5/V1beta1.RestrictAllowedResourcesRequest)\n- [0.10.2](/php/docs/reference/cloud-assured-workloads/0.10.2/V1beta1.RestrictAllowedResourcesRequest)\n- [0.9.1](/php/docs/reference/cloud-assured-workloads/0.9.1/V1beta1.RestrictAllowedResourcesRequest)\n- [0.8.3](/php/docs/reference/cloud-assured-workloads/0.8.3/V1beta1.RestrictAllowedResourcesRequest)\n- [0.7.3](/php/docs/reference/cloud-assured-workloads/0.7.3/V1beta1.RestrictAllowedResourcesRequest) \n| **Beta**\n|\n|\n| This library is covered by the [Pre-GA Offerings Terms](/terms/service-terms#1)\n| of the Terms of Service. Pre-GA libraries might have limited support,\n| and changes to pre-GA libraries might not be compatible with other pre-GA versions.\n| For more information, see the\n[launch stage descriptions](/products#product-launch-stages). \nReference documentation and code samples for the Google Cloud Assured Workloads V1beta1 Client class RestrictAllowedResourcesRequest.\n\nRequest for restricting list of available resources in Workload environment.\n\nGenerated from protobuf message `google.cloud.assuredworkloads.v1beta1.RestrictAllowedResourcesRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ AssuredWorkloads \\\\ V1beta1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nRequired. The resource name of the Workload. This is the workloads's\nrelative path in the API, formatted as\n\"organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}\".\n\nFor example,\n\"organizations/123/locations/us-east1/workloads/assured-workload-1\".\n\n### setName\n\nRequired. The resource name of the Workload. This is the workloads's\nrelative path in the API, formatted as\n\"organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}\".\n\nFor example,\n\"organizations/123/locations/us-east1/workloads/assured-workload-1\".\n\n### getRestrictionType\n\nRequired. The type of restriction for using gcp products in the Workload environment.\n\n### setRestrictionType\n\nRequired. The type of restriction for using gcp products in the Workload environment."]]