Class SimulatorGrpc.SimulatorStub (0.37.0)

public static final class SimulatorGrpc.SimulatorStub extends AbstractAsyncStub<SimulatorGrpc.SimulatorStub>

A stub to allow clients to do asynchronous 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.AbstractAsyncStub > SimulatorGrpc.SimulatorStub
io.grpc.stub.AbstractAsyncStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel)
io.grpc.stub.AbstractAsyncStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel,io.grpc.CallOptions)
io.grpc.stub.AbstractStub.<T>withOption(io.grpc.CallOptions.Key<T>,T)
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)
io.grpc.stub.AbstractStub.getCallOptions()
io.grpc.stub.AbstractStub.getChannel()
io.grpc.stub.AbstractStub.withCallCredentials(io.grpc.CallCredentials)
io.grpc.stub.AbstractStub.withChannel(io.grpc.Channel)
io.grpc.stub.AbstractStub.withCompression(java.lang.String)
io.grpc.stub.AbstractStub.withDeadline(io.grpc.Deadline)
io.grpc.stub.AbstractStub.withDeadlineAfter(java.time.Duration)
io.grpc.stub.AbstractStub.withDeadlineAfter(long,java.util.concurrent.TimeUnit)
io.grpc.stub.AbstractStub.withExecutor(java.util.concurrent.Executor)
io.grpc.stub.AbstractStub.withInterceptors(io.grpc.ClientInterceptor...)
io.grpc.stub.AbstractStub.withMaxInboundMessageSize(int)
io.grpc.stub.AbstractStub.withMaxOutboundMessageSize(int)
io.grpc.stub.AbstractStub.withOnReadyThreshold(int)
io.grpc.stub.AbstractStub.withWaitForReady()

Methods

build(Channel channel, CallOptions callOptions)

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

createReplay(CreateReplayRequest request, StreamObserver<Operation> responseObserver)

public void createReplay(CreateReplayRequest request, StreamObserver<Operation> responseObserver)

Creates and starts a Replay using the given ReplayConfig.

Parameters
Name Description
request CreateReplayRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

getReplay(GetReplayRequest request, StreamObserver<Replay> responseObserver)

public void getReplay(GetReplayRequest request, StreamObserver<Replay> responseObserver)

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

Parameters
Name Description
request GetReplayRequest
responseObserver io.grpc.stub.StreamObserver<Replay>

listReplayResults(ListReplayResultsRequest request, StreamObserver<ListReplayResultsResponse> responseObserver)

public void listReplayResults(ListReplayResultsRequest request, StreamObserver<ListReplayResultsResponse> responseObserver)

Lists the results of running a Replay.

Parameters
Name Description
request ListReplayResultsRequest
responseObserver io.grpc.stub.StreamObserver<ListReplayResultsResponse>