Miosa.Types.Snapshot (Miosa v1.0.0)

Copy Markdown View Source

Represents a disk checkpoint (snapshot) of a MIOSA computer.

Summary

Types

status()

@type status() :: :creating | :ready | :failed | :deleting

t()

@type t() :: %Miosa.Types.Snapshot{
  computer_id: String.t(),
  created_at: String.t() | nil,
  description: String.t() | nil,
  id: String.t(),
  name: String.t() | nil,
  size_bytes: integer() | nil,
  status: status()
}

Functions

from_map(map)

@spec from_map(map()) :: t()