Skip to main content

Module objects

Module objects 

Source
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§

BlResourceRequest
A resource as described by business logic.
BlVenRequest
A VEN as described by business logic, which may assign identity and targets.
Event
Server-provided event.
EventPayloadDescriptor
Context needed to interpret event payload values.
EventRequest
Client-provided event.
Interval
A temporal window and the values that apply during it.
IntervalPeriod
The temporal aspects of an interval, or the defaults for an event’s intervals.
ObjectMetadata
Metadata the VTN provisions on every addressable object.
ObjectOperation
One (objects, operations) -> callback rule of a subscription.
Priority
Relative priority of an event; a lower number is a higher priority.
Program
Server-provided programme.
ProgramDescription
A link to a human- or machine-readable description of a programme.
ProgramRequest
Client-provided programme description.
Report
Server-provided report.
ReportDescriptor
A request from the VTN for a VEN to produce reports.
ReportPayloadDescriptor
Context needed to interpret report payload values.
ReportRequest
Client-provided report.
ReportResource
Report data for one resource.
Resource
Server-provided resource.
Subscription
Server-provided subscription.
SubscriptionRequest
Client-provided subscription.
UnknownObjectType
The string was not one of the six object types.
Ven
Server-provided VEN.
VenResourceRequest
A resource as described by its VEN: no targets, and no VEN it does not already belong to.
VenVenRequest
A VEN as described by itself: no identity, no targets.

Enums§

ObjectType
The kinds of object addressable through the API (objectTypes).
Operation
An operation on an object that can trigger a notification.
PayloadDescriptor
A payload descriptor of either flavour, discriminated by objectType.
ReportIntervals
Which intervals a report should carry relative to the event’s intervals.
ResourceRequest
A resource request body, discriminated by objectType.
VenRequest
A VEN request body, discriminated by objectType.