Policy Simulator v1 API - Class Simulator (1.2.0)

public static class Simulator

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.

Inheritance

object > Simulator

Namespace

Google.Cloud.PolicySimulator.V1

Assembly

Google.Cloud.PolicySimulator.V1.dll

Methods

BindService(SimulatorBase)

public static ServerServiceDefinition BindService(Simulator.SimulatorBase serviceImpl)

Creates service definition that can be registered with a server

Parameter
Name Description
serviceImpl SimulatorSimulatorBase

An object implementing the server-side handling logic.

Returns
Type Description
ServerServiceDefinition

BindService(ServiceBinderBase, SimulatorBase)

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.

Parameters
Name Description
serviceBinder ServiceBinderBase

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

serviceImpl SimulatorSimulatorBase

An object implementing the server-side handling logic.