Google Cloud Policy Simulator V1 Client - Class Replay (1.0.0)

Reference documentation and code samples for the Google Cloud Policy Simulator V1 Client class Replay.

A resource describing a Replay, or simulation.

Generated from protobuf message google.cloud.policysimulator.v1.Replay

Namespace

Google \ Cloud \ PolicySimulator \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Output only. The resource name of the Replay, which has the following format: {projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}, where {resource-id} is the ID of the project, folder, or organization that owns the Replay. Example: projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36

↳ state int

Output only. The current state of the Replay.

↳ config Google\Cloud\PolicySimulator\V1\ReplayConfig

Required. The configuration used for the Replay.

↳ results_summary Google\Cloud\PolicySimulator\V1\Replay\ResultsSummary

Output only. Summary statistics about the replayed log entries.

getName

Output only. The resource name of the Replay, which has the following format: {projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}, where {resource-id} is the ID of the project, folder, or organization that owns the Replay.

Example: projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36

Returns
Type Description
string

setName

Output only. The resource name of the Replay, which has the following format: {projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}, where {resource-id} is the ID of the project, folder, or organization that owns the Replay.

Example: projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36

Parameter
Name Description
var string
Returns
Type Description
$this

getState

Output only. The current state of the Replay.

Returns
Type Description
int

setState

Output only. The current state of the Replay.

Parameter
Name Description
var int
Returns
Type Description
$this

getConfig

Required. The configuration used for the Replay.

Returns
Type Description
Google\Cloud\PolicySimulator\V1\ReplayConfig|null

hasConfig

clearConfig

setConfig

Required. The configuration used for the Replay.

Parameter
Name Description
var Google\Cloud\PolicySimulator\V1\ReplayConfig
Returns
Type Description
$this

getResultsSummary

Output only. Summary statistics about the replayed log entries.

Returns
Type Description
Google\Cloud\PolicySimulator\V1\Replay\ResultsSummary|null

hasResultsSummary

clearResultsSummary

setResultsSummary

Output only. Summary statistics about the replayed log entries.

Parameter
Name Description
var Google\Cloud\PolicySimulator\V1\Replay\ResultsSummary
Returns
Type Description
$this