Policy Simulator v1 API - Class ExplainedAccess (1.2.0)

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.

Inheritance

object > ExplainedAccess

Namespace

Google.Cloud.PolicySimulator.V1

Assembly

Google.Cloud.PolicySimulator.V1.dll

Constructors

ExplainedAccess()

public ExplainedAccess()

ExplainedAccess(ExplainedAccess)

public ExplainedAccess(ExplainedAccess other)
Parameter
Name Description
other ExplainedAccess

Properties

AccessState

public AccessState AccessState { get; set; }

Whether the principal in the access tuple has permission to access the resource in the access tuple under the given policies.

Property Value
Type Description
AccessState

Errors

public RepeatedField<Status> Errors { get; }

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.

Property Value
Type Description
RepeatedFieldStatus

Policies

public RepeatedField<ExplainedPolicy> Policies { get; }

If the [AccessState][google.cloud.policysimulator.v1.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.

Property Value
Type Description
RepeatedFieldExplainedPolicy