Class PolicySimulationRequest
- Namespace
- ReferenceApplication.Web.Governance.Simulation
- Assembly
- ReferenceApplication.Web.dll
Describes one policy simulation: the governed operation, the simulated actor, and the policy to apply.
public sealed record PolicySimulationRequest : IEquatable<PolicySimulationRequest>
- Inheritance
-
PolicySimulationRequest
- Implements
- Inherited Members
Constructors
PolicySimulationRequest(string, bool, bool, bool, string?, IReadOnlyCollection<string>)
Describes one policy simulation: the governed operation, the simulated actor, and the policy to apply.
public PolicySimulationRequest(string Operation, bool Administrator, bool ConsequentialCapability, bool Acknowledged, string? Payload, IReadOnlyCollection<string> DisabledConstraints)
Parameters
OperationstringThe governed operation key:
administrator,capability,consequential, orrecords.AdministratorboolWhether the simulated actor holds a configured administrator role.
ConsequentialCapabilityboolWhether the simulated actor holds the consequential-execution capability claim.
AcknowledgedboolWhether the acknowledgment flag is set, which the explorer requires before it sends the consequential request.
PayloadstringThe sample payload value: the record title for
records, a note for the other operations.DisabledConstraintsIReadOnlyCollection<string>The names of the constraints to leave out of the simulated policy.
Properties
Acknowledged
Whether the acknowledgment flag is set, which the explorer requires before it sends the consequential request.
public bool Acknowledged { get; init; }
Property Value
Administrator
Whether the simulated actor holds a configured administrator role.
public bool Administrator { get; init; }
Property Value
ConsequentialCapability
Whether the simulated actor holds the consequential-execution capability claim.
public bool ConsequentialCapability { get; init; }
Property Value
DisabledConstraints
The names of the constraints to leave out of the simulated policy.
public IReadOnlyCollection<string> DisabledConstraints { get; init; }
Property Value
Operation
The governed operation key: administrator, capability, consequential, or records.
public string Operation { get; init; }
Property Value
Payload
The sample payload value: the record title for records, a note for the other operations.
public string? Payload { get; init; }