(::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.
value (::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) — The access tuple that was replayed. This field includes information about
the principal, resource, and permission that were involved in the access
attempt.
(::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.
value (::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) — 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.
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=
deferror=(value)->::Google::Rpc::Status
Parameter
value (::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.
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
deflast_seen_date()->::Google::Type::Date
Returns
(::Google::Type::Date) — The latest date this access tuple was seen in the logs.
#last_seen_date=
deflast_seen_date=(value)->::Google::Type::Date
Parameter
value (::Google::Type::Date) — The latest date this access tuple was seen in the logs.
Returns
(::Google::Type::Date) — The latest date this access tuple was seen in the logs.
#name
defname()->::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.
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.
(::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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-03 UTC."],[],[],null,["# Policy Simulator V1 API - Class Google::Cloud::PolicySimulator::V1::ReplayResult (v1.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.0 (latest)](/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-ReplayResult)\n- [1.3.0](/ruby/docs/reference/google-cloud-policy_simulator-v1/1.3.0/Google-Cloud-PolicySimulator-V1-ReplayResult)\n- [1.2.1](/ruby/docs/reference/google-cloud-policy_simulator-v1/1.2.1/Google-Cloud-PolicySimulator-V1-ReplayResult)\n- [1.1.0](/ruby/docs/reference/google-cloud-policy_simulator-v1/1.1.0/Google-Cloud-PolicySimulator-V1-ReplayResult)\n- [1.0.1](/ruby/docs/reference/google-cloud-policy_simulator-v1/1.0.1/Google-Cloud-PolicySimulator-V1-ReplayResult)\n- [0.4.0](/ruby/docs/reference/google-cloud-policy_simulator-v1/0.4.0/Google-Cloud-PolicySimulator-V1-ReplayResult)\n- [0.3.2](/ruby/docs/reference/google-cloud-policy_simulator-v1/0.3.2/Google-Cloud-PolicySimulator-V1-ReplayResult)\n- [0.2.0](/ruby/docs/reference/google-cloud-policy_simulator-v1/0.2.0/Google-Cloud-PolicySimulator-V1-ReplayResult)\n- [0.1.1](/ruby/docs/reference/google-cloud-policy_simulator-v1/0.1.1/Google-Cloud-PolicySimulator-V1-ReplayResult) \nReference documentation and code samples for the Policy Simulator V1 API class Google::Cloud::PolicySimulator::V1::ReplayResult.\n\nThe result of replaying a single access tuple against a simulated state. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #access_tuple\n\n def access_tuple() -\u003e ::Google::Cloud::PolicySimulator::V1::AccessTuple\n\n**Returns**\n\n- ([::Google::Cloud::PolicySimulator::V1::AccessTuple](./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.\n\n### #access_tuple=\n\n def access_tuple=(value) -\u003e ::Google::Cloud::PolicySimulator::V1::AccessTuple\n\n**Parameter**\n\n- **value** ([::Google::Cloud::PolicySimulator::V1::AccessTuple](./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. \n**Returns**\n\n- ([::Google::Cloud::PolicySimulator::V1::AccessTuple](./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.\n\n### #diff\n\n def diff() -\u003e ::Google::Cloud::PolicySimulator::V1::ReplayDiff\n\n**Returns**\n\n- ([::Google::Cloud::PolicySimulator::V1::ReplayDiff](./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.\n\n\n This field is only included for access tuples that were successfully\n replayed and had different results under the current policies and the\n proposed policies.\n\n 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.\n\n### #diff=\n\n def diff=(value) -\u003e ::Google::Cloud::PolicySimulator::V1::ReplayDiff\n\n**Parameter**\n\n- **value** ([::Google::Cloud::PolicySimulator::V1::ReplayDiff](./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.\n\n\n This field is only included for access tuples that were successfully\n replayed and had different results under the current policies and the\n proposed policies.\n\nNote: 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. \n**Returns**\n\n- ([::Google::Cloud::PolicySimulator::V1::ReplayDiff](./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.\n\n\n This field is only included for access tuples that were successfully\n replayed and had different results under the current policies and the\n proposed policies.\n\n 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.\n\n### #error\n\n def error() -\u003e ::Google::Rpc::Status\n\n**Returns**\n\n- ([::Google::Rpc::Status](./Google-Rpc-Status)) --- The error that caused the access tuple replay to fail.\n\n\n This field is only included for access tuples that were not replayed\n successfully.\n\n 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.\n\n### #error=\n\n def error=(value) -\u003e ::Google::Rpc::Status\n\n**Parameter**\n\n- **value** ([::Google::Rpc::Status](./Google-Rpc-Status)) --- The error that caused the access tuple replay to fail.\n\n\n This field is only included for access tuples that were not replayed\n successfully.\n\nNote: 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. \n**Returns**\n\n- ([::Google::Rpc::Status](./Google-Rpc-Status)) --- The error that caused the access tuple replay to fail.\n\n\n This field is only included for access tuples that were not replayed\n successfully.\n\n 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.\n\n### #last_seen_date\n\n def last_seen_date() -\u003e ::Google::Type::Date\n\n**Returns**\n\n- ([::Google::Type::Date](./Google-Type-Date)) --- The latest date this access tuple was seen in the logs.\n\n### #last_seen_date=\n\n def last_seen_date=(value) -\u003e ::Google::Type::Date\n\n**Parameter**\n\n- **value** ([::Google::Type::Date](./Google-Type-Date)) --- The latest date this access tuple was seen in the logs. \n**Returns**\n\n- ([::Google::Type::Date](./Google-Type-Date)) --- The latest date this access tuple was seen in the logs.\n\n### #name\n\n def name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The resource name of the `ReplayResult`, in the following format:\n\n\n `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}/results/{replay-result-id}`,\n where `{resource-id}` is the ID of the project, folder, or organization\n that owns the [Replay](/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-Replay \"Google::Cloud::PolicySimulator::V1::Replay (class)\").\n\n Example:\n `projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36/results/1234`\n\n### #name=\n\n def name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The resource name of the `ReplayResult`, in the following format:\n\n\n `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}/results/{replay-result-id}`,\n where `{resource-id}` is the ID of the project, folder, or organization\n that owns the [Replay](/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-Replay \"Google::Cloud::PolicySimulator::V1::Replay (class)\").\n\n Example:\n`projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36/results/1234` \n**Returns**\n\n- (::String) --- The resource name of the `ReplayResult`, in the following format:\n\n\n `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}/results/{replay-result-id}`,\n where `{resource-id}` is the ID of the project, folder, or organization\n that owns the [Replay](/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-Replay \"Google::Cloud::PolicySimulator::V1::Replay (class)\").\n\n Example:\n `projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36/results/1234`\n\n### #parent\n\n def parent() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The [Replay](/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.\n\n### #parent=\n\n def parent=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The [Replay](/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. \n**Returns**\n\n- (::String) --- The [Replay](/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."]]