Class DeletionResult
- Namespace
- OpenShell
- Assembly
- OpenShell.Sdk.dll
Typed result of a delete. A boolean would hide the pending-cleanup case.
public sealed record DeletionResult : IEquatable<DeletionResult>
- Inheritance
-
DeletionResult
- Implements
- Inherited Members
Constructors
DeletionResult(DeletionOutcome, string?)
Typed result of a delete. A boolean would hide the pending-cleanup case.
public DeletionResult(DeletionOutcome Outcome, string? ResourceId = null)
Parameters
OutcomeDeletionOutcomeWhat the gateway reported about the deletion.
ResourceIdstringThe id of the deleted resource, when reported; for a sandbox, pass it as ExpectedSandboxId.
Properties
IsComplete
True when the gateway confirmed the resource is gone.
public bool IsComplete { get; }
Property Value
Outcome
What the gateway reported about the deletion.
public DeletionOutcome Outcome { get; init; }
Property Value
ResourceId
The id of the deleted resource, when reported; for a sandbox, pass it as ExpectedSandboxId.
public string? ResourceId { get; init; }