Class SimulatorGrpc.SimulatorFutureStub (0.30.0)

public static final class SimulatorGrpc.SimulatorFutureStub extends AbstractFutureStub<SimulatorGrpc.SimulatorFutureStub>

A stub to allow clients to do ListenableFuture-style rpc calls to service Simulator.

Policy Simulator API service. Policy Simulator is a collection of endpoints for creating, running, and viewing a Replay. A 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, 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

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > SimulatorGrpc.SimulatorFutureStub

Methods

build(Channel channel, CallOptions callOptions)

protected SimulatorGrpc.SimulatorFutureStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
SimulatorGrpc.SimulatorFutureStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createReplay(CreateReplayRequest request)

public ListenableFuture<Operation> createReplay(CreateReplayRequest request)

Creates and starts a Replay using the given ReplayConfig.

Parameter
Name Description
request CreateReplayRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

getReplay(GetReplayRequest request)

public ListenableFuture<Replay> getReplay(GetReplayRequest request)

Gets the specified Replay. Each Replay is available for at least 7 days.

Parameter
Name Description
request GetReplayRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Replay>

listReplayResults(ListReplayResultsRequest request)

public ListenableFuture<ListReplayResultsResponse> listReplayResults(ListReplayResultsRequest request)

Lists the results of running a Replay.

Parameter
Name Description
request ListReplayResultsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListReplayResultsResponse>