Module message

Source
Expand description

Models for interacting with the Defined Networking API.

Structs§

APIError
APIError represents a single error returned in an API error response.
CheckForUpdateResponse
CheckForUpdateResponse is the response generated for a CheckForUpdate request.
CheckForUpdateResponseWrapper
CheckForUpdateResponseWrapper contains a response to CheckForUpdate inside “data.”
DoUpdateRequest
DoUpdateRequest is the request sent for a DoUpdate request.
DoUpdateResponse
A server response to a DoUpdateRequest, with the updated config and key information
EnrollRequest
EnrollRequest is issued to the ENROLL_ENDPOINT to enroll this dnclient with a dnapi organization
EnrollResponseData
The data included in an successful enrollment.
EnrollResponseDataOrg
The organization data that this node is now a part of
RequestV1
RequestV1 is the version 1 DNClient request message.
RequestWrapper
RequestWrapper wraps a DNClient request message. It consists of a type and value, with the type string indicating how to interpret the value blob.
SignedResponse
SignedResponse contains a response message and a signature to validate.
SignedResponseWrapper
SignedResponseWrapper contains a response message and a signature to validate inside data.

Enums§

EnrollResponse
The response to an EnrollRequest

Constants§

CHECK_FOR_UPDATE
The CheckForUpdate message type
DO_UPDATE
The DoUpdate message type
ENDPOINT_V1
The version 1 DNClient API endpoint
ENROLL_ENDPOINT
The REST enrollment endpoint

Type Aliases§

APIErrors
A type alias to a array of APIErrors. Just for parity with dnapi.