class Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1ExplainedAccess

Details about how a set of policies, listed in ExplainedPolicy, resulted in a certain AccessState when replaying an access tuple.

Attributes

access_state[RW]

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]

errors[RW]

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::PolicysimulatorV1beta1::GoogleRpcStatus>]

policies[RW]

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::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1ExplainedPolicy>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/policysimulator_v1beta1/classes.rb, line 401
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/policysimulator_v1beta1/classes.rb, line 406
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