Inttegro.FileReferences (inttegro v0.2.0)

Copy Markdown View Source

Reconciles references between files and the resources that use them.

References prevent backing objects from being removed while another resource still depends on them. Reconciliation is an administrative operation for repairing or verifying that ownership graph; it is not required for ordinary file downloads.

Summary

Functions

Replaces the complete set of live file references for one Inttegro resource. Omitting references or sending an empty array clears the set.

Functions

reconcile(client, request, options \\ [])

Replaces the complete set of live file references for one Inttegro resource. Omitting references or sending an empty array clears the set.

Parameters

Returns

Returns {:ok, Inttegro.FileReferences.Reconciliation.t()} when Inttegro accepts and decodes the operation. Returns {:error, exception} for API, transport, or decoding failures. A successful API response can still describe an asynchronous resource that has not reached its terminal state.

Example

request = Inttegro.FileReferences.ReconcileRequest.new!(request_attributes)

case Inttegro.FileReferences.reconcile(client, request) do
  {:ok, result} -> result
  {:error, error} -> {:error, error}
end