Class SimulatorGrpc.SimulatorFutureStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractFutureStub<SimulatorGrpc.SimulatorFutureStub>
-
- com.google.cloud.policysimulator.v1.SimulatorGrpc.SimulatorFutureStub
-
- Enclosing class:
- SimulatorGrpc
public static final class SimulatorGrpc.SimulatorFutureStub extends io.grpc.stub.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][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.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SimulatorGrpc.SimulatorFutureStub
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation>
createReplay(CreateReplayRequest request)
Creates and starts a [Replay][google.cloud.policysimulator.v1.Replay] using the given [ReplayConfig][google.cloud.policysimulator.v1.ReplayConfig].com.google.common.util.concurrent.ListenableFuture<Replay>
getReplay(GetReplayRequest request)
Gets the specified [Replay][google.cloud.policysimulator.v1.Replay].com.google.common.util.concurrent.ListenableFuture<ListReplayResultsResponse>
listReplayResults(ListReplayResultsRequest request)
Lists the results of running a [Replay][google.cloud.policysimulator.v1.Replay].
-
-
-
Method Detail
-
build
protected SimulatorGrpc.SimulatorFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
build
in classio.grpc.stub.AbstractStub<SimulatorGrpc.SimulatorFutureStub>
-
getReplay
public com.google.common.util.concurrent.ListenableFuture<Replay> getReplay(GetReplayRequest request)
Gets the specified [Replay][google.cloud.policysimulator.v1.Replay]. Each `Replay` is available for at least 7 days.
-
createReplay
public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> createReplay(CreateReplayRequest request)
Creates and starts a [Replay][google.cloud.policysimulator.v1.Replay] using the given [ReplayConfig][google.cloud.policysimulator.v1.ReplayConfig].
-
listReplayResults
public com.google.common.util.concurrent.ListenableFuture<ListReplayResultsResponse> listReplayResults(ListReplayResultsRequest request)
Lists the results of running a [Replay][google.cloud.policysimulator.v1.Replay].
-
-