# Policy Simulator V1 API - Class Google::Cloud::PolicySimulator::V1::ReplayResult (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::ReplayResult.

The result of replaying a single access tuple against a simulated state.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #access_tuple

    def access_tuple() -> ::Google::Cloud::PolicySimulator::V1::AccessTuple

**Returns**

- ([::Google::Cloud::PolicySimulator::V1::AccessTuple](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-AccessTuple)) --- The access tuple that was replayed. This field includes information about the principal, resource, and permission that were involved in the access attempt.

### #access_tuple=

    def access_tuple=(value) -> ::Google::Cloud::PolicySimulator::V1::AccessTuple

**Parameter**

- **value** ([::Google::Cloud::PolicySimulator::V1::AccessTuple](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-AccessTuple)) --- The access tuple that was replayed. This field includes information about the principal, resource, and permission that were involved in the access attempt.
**Returns**

- ([::Google::Cloud::PolicySimulator::V1::AccessTuple](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-AccessTuple)) --- The access tuple that was replayed. This field includes information about the principal, resource, and permission that were involved in the access attempt.

### #diff

    def diff() -> ::Google::Cloud::PolicySimulator::V1::ReplayDiff

**Returns**

- ([::Google::Cloud::PolicySimulator::V1::ReplayDiff](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-ReplayDiff)) --- The difference between the principal's access under the current (baseline) policies and the principal's access under the proposed (simulated) policies.


  This field is only included for access tuples that were successfully
  replayed and had different results under the current policies and the
  proposed policies.

  Note: The following fields are mutually exclusive: `diff`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #diff=

    def diff=(value) -> ::Google::Cloud::PolicySimulator::V1::ReplayDiff

**Parameter**

- **value** ([::Google::Cloud::PolicySimulator::V1::ReplayDiff](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-ReplayDiff)) --- The difference between the principal's access under the current (baseline) policies and the principal's access under the proposed (simulated) policies.


  This field is only included for access tuples that were successfully
  replayed and had different results under the current policies and the
  proposed policies.

  Note: The following fields are mutually exclusive: `diff`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::PolicySimulator::V1::ReplayDiff](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-ReplayDiff)) --- The difference between the principal's access under the current (baseline) policies and the principal's access under the proposed (simulated) policies.


  This field is only included for access tuples that were successfully
  replayed and had different results under the current policies and the
  proposed policies.

  Note: The following fields are mutually exclusive: `diff`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #error

    def error() -> ::Google::Rpc::Status

**Returns**

- ([::Google::Rpc::Status](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Rpc-Status)) --- The error that caused the access tuple replay to fail.


  This field is only included for access tuples that were not replayed
  successfully.

  Note: The following fields are mutually exclusive: `error`, `diff`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #error=

    def error=(value) -> ::Google::Rpc::Status

**Parameter**

- **value** ([::Google::Rpc::Status](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Rpc-Status)) --- The error that caused the access tuple replay to fail.


  This field is only included for access tuples that were not replayed
  successfully.

  Note: The following fields are mutually exclusive: `error`, `diff`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Rpc::Status](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Rpc-Status)) --- The error that caused the access tuple replay to fail.


  This field is only included for access tuples that were not replayed
  successfully.

  Note: The following fields are mutually exclusive: `error`, `diff`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #last_seen_date

    def last_seen_date() -> ::Google::Type::Date

**Returns**

- ([::Google::Type::Date](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Type-Date)) --- The latest date this access tuple was seen in the logs.

### #last_seen_date=

    def last_seen_date=(value) -> ::Google::Type::Date

**Parameter**

- **value** ([::Google::Type::Date](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Type-Date)) --- The latest date this access tuple was seen in the logs.
**Returns**

- ([::Google::Type::Date](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Type-Date)) --- The latest date this access tuple was seen in the logs.

### #name

    def name() -> ::String

**Returns**

- (::String) --- The resource name of the `ReplayResult`, in the following format:


  `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}/results/{replay-result-id}`,
  where `{resource-id}` is the ID of the project, folder, or organization
  that owns the [Replay](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-Replay "Google::Cloud::PolicySimulator::V1::Replay (class)").

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

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- The resource name of the `ReplayResult`, in the following format:


  `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}/results/{replay-result-id}`,
  where `{resource-id}` is the ID of the project, folder, or organization
  that owns the [Replay](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-Replay "Google::Cloud::PolicySimulator::V1::Replay (class)").

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

- (::String) --- The resource name of the `ReplayResult`, in the following format:


  `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}/results/{replay-result-id}`,
  where `{resource-id}` is the ID of the project, folder, or organization
  that owns the [Replay](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-Replay "Google::Cloud::PolicySimulator::V1::Replay (class)").

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

### #parent

    def parent() -> ::String

**Returns**

- (::String) --- The [Replay](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-Replay "Google::Cloud::PolicySimulator::V1::Replay (class)") that the access tuple was included in.

### #parent=

    def parent=(value) -> ::String

**Parameter**

- **value** (::String) --- The [Replay](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-Replay "Google::Cloud::PolicySimulator::V1::Replay (class)") that the access tuple was included in.
**Returns**

- (::String) --- The [Replay](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-Replay "Google::Cloud::PolicySimulator::V1::Replay (class)") that the access tuple was included in.