Policy Simulator v1 API - Class Simulator.SimulatorBase (1.0.0)

[BindServiceMethod(typeof(Simulator), "BindService")]
public abstract class Simulator.SimulatorBase

Reference documentation and code samples for the Policy Simulator v1 API class Simulator.SimulatorBase.

Base class for server-side implementations of Simulator

Inheritance

object > Simulator.SimulatorBase

Namespace

Google.Cloud.PolicySimulator.V1

Assembly

Google.Cloud.PolicySimulator.V1.dll

Methods

CreateReplay(CreateReplayRequest, ServerCallContext)

public virtual Task<Operation> CreateReplay(CreateReplayRequest request, ServerCallContext context)

Creates and starts a [Replay][google.cloud.policysimulator.v1.Replay] using the given [ReplayConfig][google.cloud.policysimulator.v1.ReplayConfig].

Parameters
NameDescription
requestCreateReplayRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

GetReplay(GetReplayRequest, ServerCallContext)

public virtual Task<Replay> GetReplay(GetReplayRequest request, ServerCallContext context)

Gets the specified [Replay][google.cloud.policysimulator.v1.Replay]. Each Replay is available for at least 7 days.

Parameters
NameDescription
requestGetReplayRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskReplay

The response to send back to the client (wrapped by a task).

ListReplayResults(ListReplayResultsRequest, ServerCallContext)

public virtual Task<ListReplayResultsResponse> ListReplayResults(ListReplayResultsRequest request, ServerCallContext context)

Lists the results of running a [Replay][google.cloud.policysimulator.v1.Replay].

Parameters
NameDescription
requestListReplayResultsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListReplayResultsResponse

The response to send back to the client (wrapped by a task).