Class SimulatorGrpc.SimulatorBlockingV2Stub

java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<SimulatorGrpc.SimulatorBlockingV2Stub>
com.google.cloud.policysimulator.v1.SimulatorGrpc.SimulatorBlockingV2Stub
Enclosing class:
SimulatorGrpc

public static final class SimulatorGrpc.SimulatorBlockingV2Stub extends io.grpc.stub.AbstractBlockingStub<SimulatorGrpc.SimulatorBlockingV2Stub>
A stub to allow clients to do synchronous 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

    Modifier and Type
    Method
    Description
    build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
     
    Creates and starts a [Replay][google.cloud.policysimulator.v1.Replay] using the given [ReplayConfig][google.cloud.policysimulator.v1.ReplayConfig].
    Gets the specified [Replay][google.cloud.policysimulator.v1.Replay].
    Lists the results of running a [Replay][google.cloud.policysimulator.v1.Replay].

    Methods inherited from class io.grpc.stub.AbstractBlockingStub

    newStub, newStub

    Methods inherited from class io.grpc.stub.AbstractStub

    getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • build

      protected SimulatorGrpc.SimulatorBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.grpc.stub.AbstractStub<SimulatorGrpc.SimulatorBlockingV2Stub>
    • getReplay

      public Replay getReplay(GetReplayRequest request) throws io.grpc.StatusException
       Gets the specified [Replay][google.cloud.policysimulator.v1.Replay]. Each
       `Replay` is available for at least 7 days.
       
      Throws:
      io.grpc.StatusException
    • createReplay

      public Operation createReplay(CreateReplayRequest request) throws io.grpc.StatusException
       Creates and starts a [Replay][google.cloud.policysimulator.v1.Replay] using
       the given [ReplayConfig][google.cloud.policysimulator.v1.ReplayConfig].
       
      Throws:
      io.grpc.StatusException
    • listReplayResults

      public ListReplayResultsResponse listReplayResults(ListReplayResultsRequest request) throws io.grpc.StatusException
       Lists the results of running a
       [Replay][google.cloud.policysimulator.v1.Replay].
       
      Throws:
      io.grpc.StatusException