Reference documentation and code samples for the Policy Simulator V1 API class 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.
[[["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::AccessStateDiff (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-AccessStateDiff)\n- [1.3.0](/ruby/docs/reference/google-cloud-policy_simulator-v1/1.3.0/Google-Cloud-PolicySimulator-V1-AccessStateDiff)\n- [1.2.1](/ruby/docs/reference/google-cloud-policy_simulator-v1/1.2.1/Google-Cloud-PolicySimulator-V1-AccessStateDiff)\n- [1.1.0](/ruby/docs/reference/google-cloud-policy_simulator-v1/1.1.0/Google-Cloud-PolicySimulator-V1-AccessStateDiff)\n- [1.0.1](/ruby/docs/reference/google-cloud-policy_simulator-v1/1.0.1/Google-Cloud-PolicySimulator-V1-AccessStateDiff)\n- [0.4.0](/ruby/docs/reference/google-cloud-policy_simulator-v1/0.4.0/Google-Cloud-PolicySimulator-V1-AccessStateDiff)\n- [0.3.2](/ruby/docs/reference/google-cloud-policy_simulator-v1/0.3.2/Google-Cloud-PolicySimulator-V1-AccessStateDiff)\n- [0.2.0](/ruby/docs/reference/google-cloud-policy_simulator-v1/0.2.0/Google-Cloud-PolicySimulator-V1-AccessStateDiff)\n- [0.1.1](/ruby/docs/reference/google-cloud-policy_simulator-v1/0.1.1/Google-Cloud-PolicySimulator-V1-AccessStateDiff) \nReference documentation and code samples for the Policy Simulator V1 API class Google::Cloud::PolicySimulator::V1::AccessStateDiff.\n\nA summary and comparison of the principal's access under the current\n(baseline) policies and the proposed (simulated) policies for a single\naccess tuple. \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_change\n\n def access_change() -\u003e ::Google::Cloud::PolicySimulator::V1::AccessStateDiff::AccessChangeType\n\n**Returns**\n\n- ([::Google::Cloud::PolicySimulator::V1::AccessStateDiff::AccessChangeType](./Google-Cloud-PolicySimulator-V1-AccessStateDiff-AccessChangeType)) --- How the principal's access, specified in the AccessState field, changed between the current (baseline) policies and proposed (simulated) policies.\n\n### #access_change=\n\n def access_change=(value) -\u003e ::Google::Cloud::PolicySimulator::V1::AccessStateDiff::AccessChangeType\n\n**Parameter**\n\n- **value** ([::Google::Cloud::PolicySimulator::V1::AccessStateDiff::AccessChangeType](./Google-Cloud-PolicySimulator-V1-AccessStateDiff-AccessChangeType)) --- How the principal's access, specified in the AccessState field, changed between the current (baseline) policies and proposed (simulated) policies. \n**Returns**\n\n- ([::Google::Cloud::PolicySimulator::V1::AccessStateDiff::AccessChangeType](./Google-Cloud-PolicySimulator-V1-AccessStateDiff-AccessChangeType)) --- How the principal's access, specified in the AccessState field, changed between the current (baseline) policies and proposed (simulated) policies.\n\n### #baseline\n\n def baseline() -\u003e ::Google::Cloud::PolicySimulator::V1::ExplainedAccess\n\n**Returns**\n\n- ([::Google::Cloud::PolicySimulator::V1::ExplainedAccess](./Google-Cloud-PolicySimulator-V1-ExplainedAccess)) --- The results of evaluating the access tuple under the current (baseline) policies.\n\n\n If the [AccessState](/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-AccessState \"Google::Cloud::PolicySimulator::V1::AccessState (module)\") couldn't\n be fully evaluated, this field explains why.\n\n### #baseline=\n\n def baseline=(value) -\u003e ::Google::Cloud::PolicySimulator::V1::ExplainedAccess\n\n**Parameter**\n\n- **value** ([::Google::Cloud::PolicySimulator::V1::ExplainedAccess](./Google-Cloud-PolicySimulator-V1-ExplainedAccess)) --- The results of evaluating the access tuple under the current (baseline) policies.\n\n\n If the [AccessState](/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-AccessState \"Google::Cloud::PolicySimulator::V1::AccessState (module)\") couldn't\nbe fully evaluated, this field explains why. \n**Returns**\n\n- ([::Google::Cloud::PolicySimulator::V1::ExplainedAccess](./Google-Cloud-PolicySimulator-V1-ExplainedAccess)) --- The results of evaluating the access tuple under the current (baseline) policies.\n\n\n If the [AccessState](/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-AccessState \"Google::Cloud::PolicySimulator::V1::AccessState (module)\") couldn't\n be fully evaluated, this field explains why.\n\n### #simulated\n\n def simulated() -\u003e ::Google::Cloud::PolicySimulator::V1::ExplainedAccess\n\n**Returns**\n\n- ([::Google::Cloud::PolicySimulator::V1::ExplainedAccess](./Google-Cloud-PolicySimulator-V1-ExplainedAccess)) --- The results of evaluating the access tuple under the proposed (simulated) policies.\n\n\n If the AccessState couldn't be fully evaluated, this field explains why.\n\n### #simulated=\n\n def simulated=(value) -\u003e ::Google::Cloud::PolicySimulator::V1::ExplainedAccess\n\n**Parameter**\n\n- **value** ([::Google::Cloud::PolicySimulator::V1::ExplainedAccess](./Google-Cloud-PolicySimulator-V1-ExplainedAccess)) --- The results of evaluating the access tuple under the proposed (simulated) policies.\n\n\nIf the AccessState couldn't be fully evaluated, this field explains why. \n**Returns**\n\n- ([::Google::Cloud::PolicySimulator::V1::ExplainedAccess](./Google-Cloud-PolicySimulator-V1-ExplainedAccess)) --- The results of evaluating the access tuple under the proposed (simulated) policies.\n\n\n If the AccessState couldn't be fully evaluated, this field explains why."]]