GoogleApi.PolicySimulator.V1.Model.GoogleCloudPolicysimulatorV1ExplainedAccess (google_api_policy_simulator v0.2.0) View Source

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

Attributes

  • accessState (type: String.t, default: nil) - Whether the principal in the access tuple has permission to access the resource in the access tuple under the given policies.
  • errors (type: list(GoogleApi.PolicySimulator.V1.Model.GoogleRpcStatus.t), default: nil) - 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.
  • policies (type: list(GoogleApi.PolicySimulator.V1.Model.GoogleCloudPolicysimulatorV1ExplainedPolicy.t), default: nil) - 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.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() ::
  %GoogleApi.PolicySimulator.V1.Model.GoogleCloudPolicysimulatorV1ExplainedAccess{
    accessState: String.t() | nil,
    errors: [GoogleApi.PolicySimulator.V1.Model.GoogleRpcStatus.t()] | nil,
    policies:
      [
        GoogleApi.PolicySimulator.V1.Model.GoogleCloudPolicysimulatorV1ExplainedPolicy.t()
      ]
      | nil
  }

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.