Reference documentation and code samples for the Policy Simulator V1 API class Google::Cloud::PolicySimulator::V1::ReplayDiff.
The difference between the results of evaluating an access tuple under
the current (baseline) policies and under the proposed (simulated) policies.
This difference explains how a principal's access could change if the
proposed policies were applied.
value (::Google::Cloud::PolicySimulator::V1::AccessStateDiff) — A summary and comparison of the principal's access under the current
(baseline) policies and the proposed (simulated) policies for a single
access tuple.
The evaluation of the principal's access is reported in the
AccessState field.
[[["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::ReplayDiff (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-ReplayDiff)\n- [1.3.0](/ruby/docs/reference/google-cloud-policy_simulator-v1/1.3.0/Google-Cloud-PolicySimulator-V1-ReplayDiff)\n- [1.2.1](/ruby/docs/reference/google-cloud-policy_simulator-v1/1.2.1/Google-Cloud-PolicySimulator-V1-ReplayDiff)\n- [1.1.0](/ruby/docs/reference/google-cloud-policy_simulator-v1/1.1.0/Google-Cloud-PolicySimulator-V1-ReplayDiff)\n- [1.0.1](/ruby/docs/reference/google-cloud-policy_simulator-v1/1.0.1/Google-Cloud-PolicySimulator-V1-ReplayDiff)\n- [0.4.0](/ruby/docs/reference/google-cloud-policy_simulator-v1/0.4.0/Google-Cloud-PolicySimulator-V1-ReplayDiff)\n- [0.3.2](/ruby/docs/reference/google-cloud-policy_simulator-v1/0.3.2/Google-Cloud-PolicySimulator-V1-ReplayDiff)\n- [0.2.0](/ruby/docs/reference/google-cloud-policy_simulator-v1/0.2.0/Google-Cloud-PolicySimulator-V1-ReplayDiff)\n- [0.1.1](/ruby/docs/reference/google-cloud-policy_simulator-v1/0.1.1/Google-Cloud-PolicySimulator-V1-ReplayDiff) \nReference documentation and code samples for the Policy Simulator V1 API class Google::Cloud::PolicySimulator::V1::ReplayDiff.\n\nThe difference between the results of evaluating an access tuple under\nthe current (baseline) policies and under the proposed (simulated) policies.\nThis difference explains how a principal's access could change if the\nproposed policies were applied. \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_diff\n\n def access_diff() -\u003e ::Google::Cloud::PolicySimulator::V1::AccessStateDiff\n\n**Returns**\n\n- ([::Google::Cloud::PolicySimulator::V1::AccessStateDiff](./Google-Cloud-PolicySimulator-V1-AccessStateDiff)) --- A summary and comparison of the principal's access under the current (baseline) policies and the proposed (simulated) policies for a single access tuple.\n\n\n The evaluation of the principal's access is reported in the\n [AccessState](/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-AccessState \"Google::Cloud::PolicySimulator::V1::AccessState (module)\") field.\n\n### #access_diff=\n\n def access_diff=(value) -\u003e ::Google::Cloud::PolicySimulator::V1::AccessStateDiff\n\n**Parameter**\n\n- **value** ([::Google::Cloud::PolicySimulator::V1::AccessStateDiff](./Google-Cloud-PolicySimulator-V1-AccessStateDiff)) --- A summary and comparison of the principal's access under the current (baseline) policies and the proposed (simulated) policies for a single access tuple.\n\n\n The evaluation of the principal's access is reported in the\n[AccessState](/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-AccessState \"Google::Cloud::PolicySimulator::V1::AccessState (module)\") field. \n**Returns**\n\n- ([::Google::Cloud::PolicySimulator::V1::AccessStateDiff](./Google-Cloud-PolicySimulator-V1-AccessStateDiff)) --- A summary and comparison of the principal's access under the current (baseline) policies and the proposed (simulated) policies for a single access tuple.\n\n\n The evaluation of the principal's access is reported in the\n [AccessState](/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-AccessState \"Google::Cloud::PolicySimulator::V1::AccessState (module)\") field."]]