1.4.0 (latest) 1.3.0 1.2.0 1.1.0 1.0.0

    public sealed class ReplayResult : IMessage<ReplayResult>, IEquatable<ReplayResult>, IDeepCloneable<ReplayResult>, IBufferMessage, IMessage

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

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

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> ReplayResult

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[ReplayResult](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1.ReplayResult.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ReplayResult](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1.ReplayResult.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[ReplayResult](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1.ReplayResult.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.PolicySimulator.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1.md.txt)

## Assembly

Google.Cloud.PolicySimulator.V1.dll

## Constructors

### ReplayResult()

    public ReplayResult()

### ReplayResult(ReplayResult)

    public ReplayResult(ReplayResult other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `ReplayResult` |

## Properties

### AccessTuple

    public AccessTuple AccessTuple { get; set; }

The access tuple that was replayed. This field includes information about
the principal, resource, and permission that were involved in the access
attempt.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `AccessTuple` |   |

### Diff

    public ReplayDiff Diff { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ReplayDiff` |   |

### Error

    public Status Error { get; set; }

The error that caused the access tuple replay to fail.

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Status` |   |

### LastSeenDate

    public Date LastSeenDate { get; set; }

The latest date this access tuple was seen in the logs.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Date` |   |

### Name

    public string Name { get; set; }

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\]\[google.cloud.policysimulator.v1.Replay\].

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Parent

    public string Parent { get; set; }

The \[Replay\]\[google.cloud.policysimulator.v1.Replay\] that the access tuple
was included in.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### ParentAsReplayName

    public ReplayName ParentAsReplayName { get; set; }

[ReplayName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1.ReplayName.md.txt)-typed view over the [Parent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1.ReplayResult.md.txt#Google_Cloud_PolicySimulator_V1_ReplayResult_Parent) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ReplayName` |   |

### ReplayResultName

    public ReplayResultName ReplayResultName { get; set; }

[ReplayResultName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1.ReplayResultName.md.txt)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.PolicySimulator.V1/latest/Google.Cloud.PolicySimulator.V1.ReplayResult.md.txt#Google_Cloud_PolicySimulator_V1_ReplayResult_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ReplayResultName` |   |

### ResultCase

    public ReplayResult.ResultOneofCase ResultCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ReplayResultResultOneofCase` |   |