Immutable. The resource name of the Policy. Must be one of the following
forms, where constraint_name is the name of the constraint which this
Policy configures:
For example, "projects/123/policies/compute.disableSerialPortAccess".
Note: projects/{project_id}/policies/{constraint_name} is also an
acceptable name for API requests, but responses will return the name using
the equivalent project number.
[[["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 page provides reference documentation for the \u003ccode\u003ePolicy\u003c/code\u003e class within the Google Cloud Organization Policy v2 API, specifically for version 2.2.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePolicy\u003c/code\u003e class is used to define Cloud Organization policies that specify constraints for the configurations of Cloud Platform resources.\u003c/p\u003e\n"],["\u003cp\u003eThe document lists various versions of the \u003ccode\u003ePolicy\u003c/code\u003e class, ranging from version 1.0.0 up to the latest version 2.7.0, alongside links to each version's documentation.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePolicy\u003c/code\u003e class includes properties like \u003ccode\u003eAlternate\u003c/code\u003e, \u003ccode\u003eDryRunSpec\u003c/code\u003e, \u003ccode\u003eName\u003c/code\u003e, \u003ccode\u003ePolicyName\u003c/code\u003e, and \u003ccode\u003eSpec\u003c/code\u003e, which define different aspects and behaviors of an organization policy, such as audit-only, name and resource type.\u003c/p\u003e\n"],["\u003cp\u003eThe policy class inherit many functions from the objects, such as GetHashCode, GetType, MemberwiseClone, and ToString.\u003c/p\u003e\n"]]],[],null,[]]