public sealed class ExplainedAccess : IMessage<ExplainedAccess>, IEquatable<ExplainedAccess>, IDeepCloneable<ExplainedAccess>, IBufferMessage, IMessage
Reference documentation and code samples for the Policy Simulator v1 API class ExplainedAccess.
Details about how a set of policies, listed in
[ExplainedPolicy][google.cloud.policysimulator.v1.ExplainedPolicy], resulted
in a certain [AccessState][google.cloud.policysimulator.v1.AccessState] when
replaying an access tuple.
If the [AccessState][google.cloud.policysimulator.v1.AccessState] is
UNKNOWN, this field contains a list of errors explaining why the result
is UNKNOWN.
If the AccessState is GRANTED or NOT_GRANTED, this field is
omitted.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eExplainedAccess\u003c/code\u003e class in the Policy Simulator v1 API provides details on how a set of policies results in a specific access state.\u003c/p\u003e\n"],["\u003cp\u003eIt inherits from \u003ccode\u003eobject\u003c/code\u003e and implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two constructors: a default constructor and one that takes another \u003ccode\u003eExplainedAccess\u003c/code\u003e object as a parameter.\u003c/p\u003e\n"],["\u003cp\u003eIt exposes properties including \u003ccode\u003eAccessState\u003c/code\u003e, \u003ccode\u003eErrors\u003c/code\u003e, and \u003ccode\u003ePolicies\u003c/code\u003e, to help understand whether a principal has access to a resource, any errors encountered, and the related policies.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAccessState\u003c/code\u003e indicates whether access is granted, not granted, or unknown, whereas the \u003ccode\u003eErrors\u003c/code\u003e and \u003ccode\u003ePolicies\u003c/code\u003e collections are only populated if the state is \u003ccode\u003eUNKNOWN\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]