# `Spectre.Instance.Erasure.Request`
[🔗](https://github.com/elchemista/spectre/blob/0.4.0/lib/spectre/instance/erasure/request.ex#L1)

Fenced request passed to a Checkpoint Store erasure callback.

A present checkpoint is bound by revision and canonical digest. Both fields
are `nil` only when core observed the key as absent and asks the adapter to
install an anti-resurrection marker for that absence.

# `t`

```elixir
@type t() :: %Spectre.Instance.Erasure.Request{
  checkpoint_digest: String.t() | nil,
  erasure_id: String.t(),
  expected_revision: non_neg_integer() | nil,
  instance_key: String.t(),
  owner_fencing_token: pos_integer(),
  requested_at: non_neg_integer(),
  schema_version: pos_integer()
}
```

# `new`

```elixir
@spec new(Spectre.Instance.Ref.t(), map() | keyword()) ::
  {:ok, t()} | {:error, term()}
```

Builds a validated request bound to one exact Instance Ref.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
