Policy Simulator v1 API - Class Simulator.SimulatorBase (1.2.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
Name Description
request CreateReplayRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
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
Name Description
request GetReplayRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
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
Name Description
request ListReplayResultsRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
TaskListReplayResultsResponse

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