Opsmaru.Incus.Model (opsmaru_incus v0.1.0)

Copy Markdown View Source

Typed native model value backed by pinned official JSON field schemas.

decode/2 validates known field types without dropping optional/null or unknown fields. data is the lossless native map/list/scalar, not a workload abstraction. Native string keys avoid runtime atom creation. encode/1 returns the native value for mutation bodies. Inventory presence alone is not evidence for model helpers or complete client coverage.

Summary

Functions

Native Instance.IsActive semantics, including unknown status codes.

Native Etag input values; these privileged values are not the server's ETag header.

Select the pinned native writable DTO fields, retaining present nulls and omitting read-only/unknown fields.

Types

t()

@type t() :: %Opsmaru.Incus.Model{data: term(), type: String.t()}

Functions

active?(arg1)

Native Instance.IsActive semantics, including unknown status codes.

decode(type, data)

encode(data)

etag_values(arg1)

Native Etag input values; these privileged values are not the server's ETag header.

types()

writable(arg1)

Select the pinned native writable DTO fields, retaining present nulls and omitting read-only/unknown fields.

writable_types()