Table of Contents

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

Operation string

The governed operation key: administrator, capability, consequential, or records.

Administrator bool

Whether the simulated actor holds a configured administrator role.

ConsequentialCapability bool

Whether the simulated actor holds the consequential-execution capability claim.

Acknowledged bool

Whether the acknowledgment flag is set, which the explorer requires before it sends the consequential request.

Payload string

The sample payload value: the record title for records, a note for the other operations.

DisabledConstraints IReadOnlyCollection<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

bool

Administrator

Whether the simulated actor holds a configured administrator role.

public bool Administrator { get; init; }

Property Value

bool

ConsequentialCapability

Whether the simulated actor holds the consequential-execution capability claim.

public bool ConsequentialCapability { get; init; }

Property Value

bool

DisabledConstraints

The names of the constraints to leave out of the simulated policy.

public IReadOnlyCollection<string> DisabledConstraints { get; init; }

Property Value

IReadOnlyCollection<string>

Operation

The governed operation key: administrator, capability, consequential, or records.

public string Operation { get; init; }

Property Value

string

Payload

The sample payload value: the record title for records, a note for the other operations.

public string? Payload { get; init; }

Property Value

string