Expand description
Models for interacting with the Defined Networking API.
Structs§
- APIError
APIError
represents a single error returned in an API error response.- Check
ForUpdate Response CheckForUpdateResponse
is the response generated for aCheckForUpdate
request.- Check
ForUpdate Response Wrapper CheckForUpdateResponseWrapper
contains a response toCheckForUpdate
inside “data.”- DoUpdate
Request DoUpdateRequest
is the request sent for aDoUpdate
request.- DoUpdate
Response - A server response to a
DoUpdateRequest
, with the updated config and key information - Enroll
Request EnrollRequest
is issued to theENROLL_ENDPOINT
to enroll thisdnclient
with a dnapi organization- Enroll
Response Data - The data included in an successful enrollment.
- Enroll
Response Data Org - The organization data that this node is now a part of
- Request
V1 RequestV1
is the version 1DNClient
request message.- Request
Wrapper RequestWrapper
wraps aDNClient
request message. It consists of a type and value, with the type string indicating how to interpret the value blob.- Signed
Response SignedResponse
contains a response message and a signature to validate.- Signed
Response Wrapper SignedResponseWrapper
contains a response message and a signature to validate insidedata
.
Enums§
- Enroll
Response - 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.