ZoneResource
final class ZoneResource (View source)
The JSON shape of a zone on /api/v2: the listing carries a summary, the single-zone endpoints the full detail.
Methods
static array
static array
detail(array $zone, string|null $comment)
A zone as GET and PUT /zones/{id} emit it; empty masters, account and description read as null.
static array
shadowedRecords(ShadowedRecords $shadowed)
The parent-zone records a newly created zone hides, as POST /zones reports them.
Details
static array
summary(array|ZoneSummary $zone)
A zone as GET /zones lists it.
static array
detail(array $zone, string|null $comment)
A zone as GET and PUT /zones/{id} emit it; empty masters, account and description read as null.
static array
shadowedRecords(ShadowedRecords $shadowed)
The parent-zone records a newly created zone hides, as POST /zones reports them.