Organization Policy v2 API - Class OrgPolicy (2.1.0)

public static class OrgPolicy

Reference documentation and code samples for the Organization Policy v2 API class OrgPolicy.

An interface for managing organization policies.

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.

Inheritance

Object > OrgPolicy

Namespace

Google.Cloud.OrgPolicy.V2

Assembly

Google.Cloud.OrgPolicy.V2.dll

Methods

BindService(OrgPolicy.OrgPolicyBase)

public static ServerServiceDefinition BindService(OrgPolicy.OrgPolicyBase serviceImpl)

Creates service definition that can be registered with a server

Parameter
NameDescription
serviceImplOrgPolicy.OrgPolicyBase

An object implementing the server-side handling logic.

Returns
TypeDescription
ServerServiceDefinition

BindService(ServiceBinderBase, OrgPolicy.OrgPolicyBase)

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.

Parameters
NameDescription
serviceBinderServiceBinderBase

Service methods will be bound by calling AddMethod on this object.

serviceImplOrgPolicy.OrgPolicyBase

An object implementing the server-side handling logic.