Miosa.Types.Computer (Miosa v1.0.1)

Copy Markdown View Source

Represents a MIOSA computer (VM workspace).

Summary

Functions

Builds a Computer struct from a raw API response map.

Types

status()

@type status() ::
  :creating | :starting | :running | :stopping | :stopped | :error | :destroying

t()

@type t() :: %Miosa.Types.Computer{
  created_at: String.t() | nil,
  id: String.t(),
  ip_address: String.t() | nil,
  metadata: map() | nil,
  name: String.t(),
  size: String.t() | nil,
  status: status(),
  template_type: String.t() | nil,
  updated_at: String.t() | nil,
  vnc_url: String.t() | nil
}

Functions

from_map(map)

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

Builds a Computer struct from a raw API response map.