Reference documentation and code samples for the Google Cloud Resource Manager V3 Client class Purpose.
A purpose for each policy engine requiring such an integration. A single
policy engine may have multiple purposes defined, however a TagKey may only
specify a single purpose.
Protobuf type google.cloud.resourcemanager.v3.Purpose
Namespace
Google \ Cloud \ ResourceManager \ V3
Methods
static::name
Parameter
Name
Description
value
mixed
static::value
Parameter
Name
Description
name
mixed
Constants
PURPOSE_UNSPECIFIED
Value: 0
Unspecified purpose.
Generated from protobuf enum PURPOSE_UNSPECIFIED = 0;
GCE_FIREWALL
Value: 1
Purpose for Compute Engine firewalls.
A corresponding purpose_data should be set for the network the tag is
intended for. The key should be network and the value should be in
either of these two formats:
-
https://www.googleapis.com/compute/{compute_version}/projects/{project_id}/global/networks/{network_id}
[[["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-04 UTC."],[],[],null,["# Google Cloud Resource Manager V3 Client - Class Purpose (1.0.4)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.4 (latest)](/php/docs/reference/cloud-resource-manager/latest/V3.Purpose)\n- [1.0.3](/php/docs/reference/cloud-resource-manager/1.0.3/V3.Purpose)\n- [0.8.5](/php/docs/reference/cloud-resource-manager/0.8.5/V3.Purpose)\n- [0.7.2](/php/docs/reference/cloud-resource-manager/0.7.2/V3.Purpose)\n- [0.6.1](/php/docs/reference/cloud-resource-manager/0.6.1/V3.Purpose)\n- [0.5.0](/php/docs/reference/cloud-resource-manager/0.5.0/V3.Purpose)\n- [0.4.1](/php/docs/reference/cloud-resource-manager/0.4.1/V3.Purpose)\n- [0.3.9](/php/docs/reference/cloud-resource-manager/0.3.9/V3.Purpose) \nReference documentation and code samples for the Google Cloud Resource Manager V3 Client class Purpose.\n\nA purpose for each policy engine requiring such an integration. A single\npolicy engine may have multiple purposes defined, however a TagKey may only\nspecify a single purpose.\n\nProtobuf type `google.cloud.resourcemanager.v3.Purpose`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ ResourceManager \\\\ V3\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### PURPOSE_UNSPECIFIED\n\n Value: 0\n\nUnspecified purpose.\n\nGenerated from protobuf enum `PURPOSE_UNSPECIFIED = 0;`\n\n### GCE_FIREWALL\n\n Value: 1\n\nPurpose for Compute Engine firewalls.\n\nA corresponding `purpose_data` should be set for the network the tag is\nintended for. The key should be `network` and the value should be in\neither of these two formats:\n-\n`https://www.googleapis.com/compute/{compute_version}/projects/{project_id}/global/networks/{network_id}`\n\n- `{project_id}/{network_name}` Examples: - `https://www.googleapis.com/compute/staging_v1/projects/fail-closed-load-testing/global/networks/6992953698831725600`\n- `fail-closed-load-testing/load-testing-network`\n\nGenerated from protobuf enum `GCE_FIREWALL = 1;`"]]