class Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1ExplainedAccess
Details about how a set of policies, listed in ExplainedPolicy, resulted in a certain AccessState when replaying an access tuple.
Attributes
Whether the member in the access tuple has permission to access the resource in the access tuple under the given policies. Corresponds to the JSON property `accessState` @return [String]
If the 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. Corresponds to the JSON property `errors` @return [Array<Google::Apis::PolicysimulatorV1::GoogleRpcStatus>]
If the AccessState is `UNKNOWN`, this field contains the policies that led to that result. If the `AccessState` is `GRANTED` or `NOT_GRANTED`, this field is omitted. Corresponds to the JSON property `policies` @return [Array<Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1ExplainedPolicy>]
Public Class Methods
# File lib/google/apis/policysimulator_v1/classes.rb, line 243 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/policysimulator_v1/classes.rb, line 248 def update!(**args) @access_state = args[:access_state] if args.key?(:access_state) @errors = args[:errors] if args.key?(:errors) @policies = args[:policies] if args.key?(:policies) end