[[["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::ExplainedAccess (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-ExplainedAccess)\n- [1.3.0](/ruby/docs/reference/google-cloud-policy_simulator-v1/1.3.0/Google-Cloud-PolicySimulator-V1-ExplainedAccess)\n- [1.2.1](/ruby/docs/reference/google-cloud-policy_simulator-v1/1.2.1/Google-Cloud-PolicySimulator-V1-ExplainedAccess)\n- [1.1.0](/ruby/docs/reference/google-cloud-policy_simulator-v1/1.1.0/Google-Cloud-PolicySimulator-V1-ExplainedAccess)\n- [1.0.1](/ruby/docs/reference/google-cloud-policy_simulator-v1/1.0.1/Google-Cloud-PolicySimulator-V1-ExplainedAccess)\n- [0.4.0](/ruby/docs/reference/google-cloud-policy_simulator-v1/0.4.0/Google-Cloud-PolicySimulator-V1-ExplainedAccess)\n- [0.3.2](/ruby/docs/reference/google-cloud-policy_simulator-v1/0.3.2/Google-Cloud-PolicySimulator-V1-ExplainedAccess)\n- [0.2.0](/ruby/docs/reference/google-cloud-policy_simulator-v1/0.2.0/Google-Cloud-PolicySimulator-V1-ExplainedAccess)\n- [0.1.1](/ruby/docs/reference/google-cloud-policy_simulator-v1/0.1.1/Google-Cloud-PolicySimulator-V1-ExplainedAccess) \nReference documentation and code samples for the Policy Simulator V1 API class Google::Cloud::PolicySimulator::V1::ExplainedAccess.\n\nDetails about how a set of policies, listed in\n[ExplainedPolicy](/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-ExplainedPolicy \"Google::Cloud::PolicySimulator::V1::ExplainedPolicy (class)\"), resulted\nin a certain [AccessState](/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-AccessState \"Google::Cloud::PolicySimulator::V1::AccessState (module)\") when\nreplaying an access 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_state\n\n def access_state() -\u003e ::Google::Cloud::PolicySimulator::V1::AccessState\n\n**Returns**\n\n- ([::Google::Cloud::PolicySimulator::V1::AccessState](./Google-Cloud-PolicySimulator-V1-AccessState)) --- Whether the principal in the access tuple has permission to access the resource in the access tuple under the given policies.\n\n### #access_state=\n\n def access_state=(value) -\u003e ::Google::Cloud::PolicySimulator::V1::AccessState\n\n**Parameter**\n\n- **value** ([::Google::Cloud::PolicySimulator::V1::AccessState](./Google-Cloud-PolicySimulator-V1-AccessState)) --- Whether the principal in the access tuple has permission to access the resource in the access tuple under the given policies. \n**Returns**\n\n- ([::Google::Cloud::PolicySimulator::V1::AccessState](./Google-Cloud-PolicySimulator-V1-AccessState)) --- Whether the principal in the access tuple has permission to access the resource in the access tuple under the given policies.\n\n### #errors\n\n def errors() -\u003e ::Array\u003c::Google::Rpc::Status\u003e\n\n**Returns**\n\n- (::Array\\\u003c[::Google::Rpc::Status](./Google-Rpc-Status)\\\u003e) --- If the [AccessState](/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-AccessState \"Google::Cloud::PolicySimulator::V1::AccessState (module)\") is `UNKNOWN`, this field contains a list of errors explaining why the result is `UNKNOWN`.\n\n\n If the `AccessState` is `GRANTED` or `NOT_GRANTED`, this field is\n omitted.\n\n### #errors=\n\n def errors=(value) -\u003e ::Array\u003c::Google::Rpc::Status\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c[::Google::Rpc::Status](./Google-Rpc-Status)\\\u003e) --- If the [AccessState](/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-AccessState \"Google::Cloud::PolicySimulator::V1::AccessState (module)\") is `UNKNOWN`, this field contains a list of errors explaining why the result is `UNKNOWN`.\n\n\n If the `AccessState` is `GRANTED` or `NOT_GRANTED`, this field is\nomitted. \n**Returns**\n\n- (::Array\\\u003c[::Google::Rpc::Status](./Google-Rpc-Status)\\\u003e) --- If the [AccessState](/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-AccessState \"Google::Cloud::PolicySimulator::V1::AccessState (module)\") is `UNKNOWN`, this field contains a list of errors explaining why the result is `UNKNOWN`.\n\n\n If the `AccessState` is `GRANTED` or `NOT_GRANTED`, this field is\n omitted.\n\n### #policies\n\n def policies() -\u003e ::Array\u003c::Google::Cloud::PolicySimulator::V1::ExplainedPolicy\u003e\n\n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::PolicySimulator::V1::ExplainedPolicy](./Google-Cloud-PolicySimulator-V1-ExplainedPolicy)\\\u003e) --- If the [AccessState](/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-AccessState \"Google::Cloud::PolicySimulator::V1::AccessState (module)\") is `UNKNOWN`, this field contains the policies that led to that result.\n\n\n If the `AccessState` is `GRANTED` or `NOT_GRANTED`, this field is\n omitted.\n\n### #policies=\n\n def policies=(value) -\u003e ::Array\u003c::Google::Cloud::PolicySimulator::V1::ExplainedPolicy\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c[::Google::Cloud::PolicySimulator::V1::ExplainedPolicy](./Google-Cloud-PolicySimulator-V1-ExplainedPolicy)\\\u003e) --- If the [AccessState](/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-AccessState \"Google::Cloud::PolicySimulator::V1::AccessState (module)\") is `UNKNOWN`, this field contains the policies that led to that result.\n\n\n If the `AccessState` is `GRANTED` or `NOT_GRANTED`, this field is\nomitted. \n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::PolicySimulator::V1::ExplainedPolicy](./Google-Cloud-PolicySimulator-V1-ExplainedPolicy)\\\u003e) --- If the [AccessState](/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-AccessState \"Google::Cloud::PolicySimulator::V1::AccessState (module)\") is `UNKNOWN`, this field contains the policies that led to that result.\n\n\n If the `AccessState` is `GRANTED` or `NOT_GRANTED`, this field is\n omitted."]]