The Cloud Org Policy service provides a simple mechanism for organizations to
restrict the allowed configurations across their entire Cloud Resource
hierarchy.
You can use a policy to configure restrictions in Cloud resources. For
example, you can enforce a policy that restricts which Google
Cloud Platform APIs can be activated in a certain part of your resource
hierarchy, or prevents serial port access to VM instances in a particular
folder.
Policies are inherited down through the resource hierarchy. A policy
applied to a parent resource automatically applies to all its child resources
unless overridden with a policy lower in the hierarchy.
A constraint defines an aspect of a resource's configuration that can be
controlled by an organization's policy administrator. Policies are a
collection of constraints that defines their allowable configuration on a
particular resource and its child resources.
public static void BindService(ServiceBinderBase serviceBinder, OrgPolicy.OrgPolicyBase serviceImpl)
Register service method with a service binder with or without implementation. Useful when customizing the service binding logic.
Note: this method is part of an experimental API that can change or be removed without any prior notice.
[[["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\u003eThe content details the \u003ccode\u003eOrgPolicy\u003c/code\u003e class within the \u003ccode\u003eGoogle.Cloud.OrgPolicy.V2\u003c/code\u003e namespace, which is used to manage organization policies in the Google Cloud Resource hierarchy.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eOrgPolicy\u003c/code\u003e class allows organizations to set restrictions on configurations across their Cloud resources, and these policies are inherited by child resources.\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple versions of this documentation, from 1.0.0 to the latest version of 2.7.0, each having a page that details the \u003ccode\u003eOrgPolicy\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides two \u003ccode\u003eBindService\u003c/code\u003e methods for registering service definitions and methods, one for creating a service definition and the other for binding service methods to a service binder, respectively.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eConstraints\u003c/code\u003e are an important aspect of this class as they define what configurations can be controlled by the organization's policies.\u003c/p\u003e\n"]]],[],null,[]]