Class ErasureResult
- Namespace
- Excalibur.Compliance
- Assembly
- Excalibur.Compliance.Abstractions.dll
Result of an erasure request submission.
public sealed record ErasureResult : IEquatable<ErasureResult>
- Inheritance
-
ErasureResult
- Implements
- Inherited Members
Properties
BlockingHold
Gets information about any legal hold blocking the request.
public LegalHoldInfo? BlockingHold { get; init; }
Property Value
EstimatedCompletionTime
Gets the estimated completion time.
public DateTimeOffset? EstimatedCompletionTime { get; init; }
Property Value
InventorySummary
Gets the data inventory summary discovered for erasure.
public DataInventorySummary? InventorySummary { get; init; }
Property Value
Message
Gets any message associated with the result (e.g., error details).
public string? Message { get; init; }
Property Value
RequestId
Gets the tracking ID for this erasure request.
public required Guid RequestId { get; init; }
Property Value
ScheduledExecutionTime
Gets the scheduled execution time (after grace period).
public DateTimeOffset? ScheduledExecutionTime { get; init; }
Property Value
Status
Gets the current status of the request.
public required ErasureRequestStatus Status { get; init; }
Property Value
Methods
Blocked(Guid, LegalHoldInfo)
Creates a blocked result due to legal hold.
public static ErasureResult Blocked(Guid requestId, LegalHoldInfo hold)
Parameters
requestIdGuidholdLegalHoldInfo
Returns
Failed(Guid, string)
Creates a failed result.
public static ErasureResult Failed(Guid requestId, string message)
Parameters
Returns
Scheduled(Guid, DateTimeOffset, DataInventorySummary?)
Creates a successful result with scheduled status.
public static ErasureResult Scheduled(Guid requestId, DateTimeOffset scheduledTime, DataInventorySummary? inventory = null)
Parameters
requestIdGuidscheduledTimeDateTimeOffsetinventoryDataInventorySummary