Reference documentation and code samples for the Policy Simulator v1 API class Simulator.
Policy Simulator API service.
Policy Simulator is a collection of endpoints for creating, running, and
viewing a [Replay][google.cloud.policysimulator.v1.Replay]. A
[Replay][google.cloud.policysimulator.v1.Replay] is a type of simulation that
lets you see how your principals' access to resources might change if you
changed your IAM policy.
During a [Replay][google.cloud.policysimulator.v1.Replay], Policy Simulator
re-evaluates, or replays, past access attempts under both the current policy
and your proposed policy, and compares those results to determine how your
principals' access might change under the proposed policy.
public static void BindService(ServiceBinderBase serviceBinder, Simulator.SimulatorBase 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 \u003ccode\u003eSimulator\u003c/code\u003e class in the Policy Simulator v1 API provides tools for simulating how changes to IAM policies affect principal access to resources.\u003c/p\u003e\n"],["\u003cp\u003ePolicy Simulator replays past access attempts to compare the current policy with proposed policies, identifying potential changes in access.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSimulator\u003c/code\u003e class inherits from the base \u003ccode\u003eobject\u003c/code\u003e class, and includes several inherited members such as \u003ccode\u003eGetHashCode\u003c/code\u003e, \u003ccode\u003eGetType\u003c/code\u003e, \u003ccode\u003eMemberwiseClone\u003c/code\u003e, and \u003ccode\u003eToString\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers two static \u003ccode\u003eBindService\u003c/code\u003e methods for registering service definitions with a server, supporting customization of service binding logic.\u003c/p\u003e\n"],["\u003cp\u003eThe Policy Simulator API is part of Google Cloud and can be found in the \u003ccode\u003eGoogle.Cloud.PolicySimulator.V1\u003c/code\u003e namespace within the \u003ccode\u003eGoogle.Cloud.PolicySimulator.V1.dll\u003c/code\u003e assembly, with version 1.2.0 being the latest.\u003c/p\u003e\n"]]],[],null,[]]