Expand description
The six addressable objects, their request bodies, and the pieces they share.
Every object follows the same shape as the specification’s allOf composition: VTN-provisioned
metadata (id, timestamps, objectType) plus the client-provided request body, which is a
separate type so that a POST body cannot even name a field the client is not allowed to set.
That split is how two requirements are met by construction rather than by a check.
[Def §Object Metadata] — the VTN populates id, createdDateTime, modificationDateTime and
objectType on creation — is the response type’s business, and every response type carries all
four. [Def §POST and PUT] — the VTN ignores those fields on the way in — needs no ignoring:
the request types have no such members, so there is nothing for a client to send and nothing for
a handler to remember to drop.
Structs§
- BlResource
Request - A resource as described by business logic.
- BlVen
Request - A VEN as described by business logic, which may assign identity and targets.
- Event
- Server-provided event.
- Event
Payload Descriptor - Context needed to interpret event payload values.
- Event
Request - Client-provided event.
- Interval
- A temporal window and the values that apply during it.
- Interval
Period - The temporal aspects of an interval, or the defaults for an event’s intervals.
- Object
Metadata - Metadata the VTN provisions on every addressable object.
- Object
Operation - One
(objects, operations) -> callbackrule of a subscription. - Priority
- Relative priority of an event; a lower number is a higher priority.
- Program
- Server-provided programme.
- Program
Description - A link to a human- or machine-readable description of a programme.
- Program
Request - Client-provided programme description.
- Report
- Server-provided report.
- Report
Descriptor - A request from the VTN for a VEN to produce reports.
- Report
Payload Descriptor - Context needed to interpret report payload values.
- Report
Request - Client-provided report.
- Report
Resource - Report data for one resource.
- Resource
- Server-provided resource.
- Subscription
- Server-provided subscription.
- Subscription
Request - Client-provided subscription.
- Unknown
Object Type - The string was not one of the six object types.
- Ven
- Server-provided VEN.
- VenResource
Request - A resource as described by its VEN: no targets, and no VEN it does not already belong to.
- VenVen
Request - A VEN as described by itself: no identity, no targets.
Enums§
- Object
Type - The kinds of object addressable through the API (
objectTypes). - Operation
- An operation on an object that can trigger a notification.
- Payload
Descriptor - A payload descriptor of either flavour, discriminated by
objectType. - Report
Intervals - Which intervals a report should carry relative to the event’s intervals.
- Resource
Request - A resource request body, discriminated by
objectType. - VenRequest
- A VEN request body, discriminated by
objectType.