Packages

This package implements the full CloudAPI for managing Joyent Triton clusters

Current section

Files

Jump to
cloudapi lib volume.ex
Raw

lib/volume.ex

defmodule CloudAPI.Volume do
@moduledoc """
This structure represents a CloudAPI Volume
"""
use Ecto.Schema
import Ecto.Changeset
@primary_key false
embedded_schema do
field :id, Ecto.UUID
field :owner_uuid, Ecto.UUID
field :name, :string
field :type, :string
field :size, :integer
field :created_at, :time
field :state, :string
field :filesystem_path, :string
field :networks, {:array, Ecto.UUID}
field :refs, {:array, Ecto.UUID}
end
end