# Policy Simulator V1 API - Class Google::Cloud::PolicySimulator::V1::Replay (v1.9.0)

1.9.0 (latest) 1.8.1 1.7.0 1.6.1 1.5.0 1.4.0 1.3.0 1.2.1 1.1.0 1.0.1 0.4.0 0.3.2 0.2.0 0.1.1 Reference documentation and code samples for the Policy Simulator V1 API class Google::Cloud::PolicySimulator::V1::Replay.

A resource describing a `Replay`, or simulation.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #config

    def config() -> ::Google::Cloud::PolicySimulator::V1::ReplayConfig

**Returns**

- ([::Google::Cloud::PolicySimulator::V1::ReplayConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-ReplayConfig)) --- Required. The configuration used for the `Replay`.

### #config=

    def config=(value) -> ::Google::Cloud::PolicySimulator::V1::ReplayConfig

**Parameter**

- **value** ([::Google::Cloud::PolicySimulator::V1::ReplayConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-ReplayConfig)) --- Required. The configuration used for the `Replay`.
**Returns**

- ([::Google::Cloud::PolicySimulator::V1::ReplayConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-ReplayConfig)) --- Required. The configuration used for the `Replay`.

### #name

    def name() -> ::String

**Returns**

- (::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`

### #results_summary

    def results_summary() -> ::Google::Cloud::PolicySimulator::V1::Replay::ResultsSummary

**Returns**

- ([::Google::Cloud::PolicySimulator::V1::Replay::ResultsSummary](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-Replay-ResultsSummary)) --- Output only. Summary statistics about the replayed log entries.

### #state

    def state() -> ::Google::Cloud::PolicySimulator::V1::Replay::State

**Returns**

- ([::Google::Cloud::PolicySimulator::V1::Replay::State](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-Replay-State)) --- Output only. The current state of the `Replay`.