Class SimulatorGrpc.SimulatorStub

  • Enclosing class:
    SimulatorGrpc

    public static final class SimulatorGrpc.SimulatorStub
    extends io.grpc.stub.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][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.
     
    • Nested Class Summary

      • Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub

        io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected SimulatorGrpc.SimulatorStub build​(io.grpc.Channel channel, io.grpc.CallOptions callOptions)  
      void createReplay​(CreateReplayRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
      Creates and starts a [Replay][google.cloud.policysimulator.v1.Replay] using the given [ReplayConfig][google.cloud.policysimulator.v1.ReplayConfig].
      void getReplay​(GetReplayRequest request, io.grpc.stub.StreamObserver<Replay> responseObserver)
      Gets the specified [Replay][google.cloud.policysimulator.v1.Replay].
      void listReplayResults​(ListReplayResultsRequest request, io.grpc.stub.StreamObserver<ListReplayResultsResponse> responseObserver)
      Lists the results of running a [Replay][google.cloud.policysimulator.v1.Replay].
      • Methods inherited from class io.grpc.stub.AbstractAsyncStub

        newStub, newStub
      • Methods inherited from class io.grpc.stub.AbstractStub

        getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOption, withWaitForReady
    • Method Detail

      • getReplay

        public void getReplay​(GetReplayRequest request,
                              io.grpc.stub.StreamObserver<Replay> responseObserver)
         Gets the specified [Replay][google.cloud.policysimulator.v1.Replay]. Each
         `Replay` is available for at least 7 days.
         
      • createReplay

        public void createReplay​(CreateReplayRequest request,
                                 io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
         Creates and starts a [Replay][google.cloud.policysimulator.v1.Replay] using
         the given [ReplayConfig][google.cloud.policysimulator.v1.ReplayConfig].