Class PolicySimulationResult
- Namespace
- ReferenceApplication.Web.Governance.Simulation
- Assembly
- ReferenceApplication.Web.dll
The stage-by-stage result of a simulated governance evaluation. Nothing in it was persisted.
public sealed record PolicySimulationResult : IEquatable<PolicySimulationResult>
- Inheritance
-
PolicySimulationResult
- Implements
- Inherited Members
Constructors
PolicySimulationResult(string, string, bool, IReadOnlyList<string>, PolicySimulationActor, IReadOnlyDictionary<string, string>, IReadOnlyList<PolicySimulationConstraintStage>, PolicySimulationDecisionPolicyStage, PolicySimulationCapabilityStage, PolicySimulationReceipt?, PolicySimulationEndpointResult, PolicySimulationSendForReal)
The stage-by-stage result of a simulated governance evaluation. Nothing in it was persisted.
public PolicySimulationResult(string Operation, string OperationName, bool SimulatedWithModifiedPolicy, IReadOnlyList<string> DisabledConstraints, PolicySimulationActor Actor, IReadOnlyDictionary<string, string> Payload, IReadOnlyList<PolicySimulationConstraintStage> Constraints, PolicySimulationDecisionPolicyStage DecisionPolicy, PolicySimulationCapabilityStage Capability, PolicySimulationReceipt? Receipt, PolicySimulationEndpointResult EndpointResult, PolicySimulationSendForReal SendForReal)
Parameters
OperationstringThe governed operation key.
OperationNamestringThe operation name, as endpoint governance reports it.
SimulatedWithModifiedPolicyboolWhether one or more constraints were left out, so the result differs from the real policy.
DisabledConstraintsIReadOnlyList<string>The constraints left out of the simulated policy.
ActorPolicySimulationActorThe simulated actor.
PayloadIReadOnlyDictionary<string, string>The form fields the governed request would post, excluding the antiforgery field.
ConstraintsIReadOnlyList<PolicySimulationConstraintStage>Each constraint's result, in evaluation order.
DecisionPolicyPolicySimulationDecisionPolicyStageThe composed decision and the decision-policy step.
CapabilityPolicySimulationCapabilityStageThe capability-grant validation step.
ReceiptPolicySimulationReceiptThe decision receipt that would be appended to the ledger.
EndpointResultPolicySimulationEndpointResultWhat the real endpoint would do with the decision.
SendForRealPolicySimulationSendForRealWhether the same inputs can be sent through the real endpoint from the explorer.
Properties
Actor
The simulated actor.
public PolicySimulationActor Actor { get; init; }
Property Value
Capability
The capability-grant validation step.
public PolicySimulationCapabilityStage Capability { get; init; }
Property Value
Constraints
Each constraint's result, in evaluation order.
public IReadOnlyList<PolicySimulationConstraintStage> Constraints { get; init; }
Property Value
DecisionPolicy
The composed decision and the decision-policy step.
public PolicySimulationDecisionPolicyStage DecisionPolicy { get; init; }
Property Value
DisabledConstraints
The constraints left out of the simulated policy.
public IReadOnlyList<string> DisabledConstraints { get; init; }
Property Value
EndpointResult
What the real endpoint would do with the decision.
public PolicySimulationEndpointResult EndpointResult { get; init; }
Property Value
Operation
The governed operation key.
public string Operation { get; init; }
Property Value
OperationName
The operation name, as endpoint governance reports it.
public string OperationName { get; init; }
Property Value
Payload
The form fields the governed request would post, excluding the antiforgery field.
public IReadOnlyDictionary<string, string> Payload { get; init; }
Property Value
Receipt
The decision receipt that would be appended to the ledger.
public PolicySimulationReceipt? Receipt { get; init; }
Property Value
SendForReal
Whether the same inputs can be sent through the real endpoint from the explorer.
public PolicySimulationSendForReal SendForReal { get; init; }
Property Value
SimulatedWithModifiedPolicy
Whether one or more constraints were left out, so the result differs from the real policy.
public bool SimulatedWithModifiedPolicy { get; init; }