Categorygithub.com/lab5e/go-spanapi/v4
modulepackage
4.9.6
Repository: https://github.com/lab5e/go-spanapi.git
Documentation: pkg.go.dev

# README

Go API client for spanapi

API for device, collection, output and firmware management

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 4.9.6 authoritarian-betty
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen For more information, please visit https://lab5e.com

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import spanapi "github.com/lab5e/go-spanapi"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value sw.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), spanapi.ContextServerIndex, 1)

Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value sw.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), spanapi.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), spanapi.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), spanapi.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to https://api.lab5e.com

ClassMethodHTTP requestDescription
BlobsApiDeleteBlobDelete /span/collections/{collectionId}/blobs/{blobId}Remove a blob stored on a collection
BlobsApiListBlobsGet /span/collections/{collectionId}/blobsList the blobs for a collection
CertificatesApiCreateCertificatePost /span/collections/{collectionId}/certificates/createCreate certificate
CertificatesApiRetrieveCertificateChainGet /span/collections/{collectionId}/certificatesGet certificate chain
CertificatesApiSignCertificatePost /span/collections/{collectionId}/certificates/signSign certificate
CertificatesApiVerifyCertificatePost /span/collections/{collectionId}/certificates/verifyVerify certificate
CollectionsApiCreateCollectionPost /span/collectionsCreate collection
CollectionsApiDeleteCollectionDelete /span/collections/{collectionId}Delete collection
CollectionsApiListCollectionDataGet /span/collections/{collectionId}/dataRetrieve data from devices
CollectionsApiListCollectionsGet /span/collectionsList collections
CollectionsApiRetrieveCollectionGet /span/collections/{collectionId}Retrieve collection
CollectionsApiRetrieveCollectionStatsGet /span/collections/{collectionId}/statsRetrieve collection statistics
CollectionsApiUpdateCollectionPatch /span/collections/{collectionId}Update collection
DevicesApiAddDownstreamMessagePost /span/collections/{collectionId}/devices/{deviceId}/outboxAdd message to oubox
DevicesApiCreateDevicePost /span/collections/{collectionId}/devicesCreate device
DevicesApiDeleteDeviceDelete /span/collections/{collectionId}/devices/{deviceId}Remove device.
DevicesApiDeleteDownstreamMessageDelete /span/collections/{collectionId}/devices/{deviceId}/outbox/{messageId}Delete outgoing message
DevicesApiDeviceCertificateGet /span/collections/{collectionId}/devices/{deviceId}/certsGet issued certificate(s) for device
DevicesApiListDeviceDataGet /span/collections/{collectionId}/devices/{deviceId}/dataRetrieve data from device
DevicesApiListDevicesGet /span/collections/{collectionId}/devicesList devices in collection.
DevicesApiListDownstreamMessagesGet /span/collections/{collectionId}/devices/{deviceId}/outboxList the messages in the outbox
DevicesApiListUpstreamMessagesGet /span/collections/{collectionId}/devices/{deviceId}/inboxList incoming messages
DevicesApiRetrieveDeviceGet /span/collections/{collectionId}/devices/{deviceId}Retrieve device
DevicesApiRetrieveDeviceStatsGet /span/collections/{collectionId}/devices/{deviceId}/statsRetrieve device statistics
DevicesApiUpdateDevicePatch /span/collections/{existingCollectionId}/devices/{deviceId}Update device
FotaApiClearFirmwareErrorDelete /span/collections/{collectionId}/devices/{deviceId}/fwerrorClear FOTA error
FotaApiCreateFirmwarePost /span/collections/{collectionId}/firmwareCreate firmware
FotaApiDeleteFirmwareDelete /span/collections/{collectionId}/firmware/{imageId}Delete firmware
FotaApiFirmwareUsageGet /span/collections/{collectionId}/firmware/{imageId}/usageFirmware usage
FotaApiListFirmwareGet /span/collections/{collectionId}/firmwareList firmware
FotaApiRetrieveFirmwareGet /span/collections/{collectionId}/firmware/{imageId}Retrieve firmware
FotaApiRetrieveFirmwareStatsGet /span/collections/{collectionId}/firmware/{imageId}/statsRetrieve firmware statistics
FotaApiUpdateFirmwarePatch /span/collections/{existingCollectionId}/firmware/{imageId}Update firmware
GatewaysApiCreateGatewayPost /span/collections/{collectionId}/gatewaysCreate gateway
GatewaysApiDeleteGatewayDelete /span/collections/{collectionId}/gateways/{gatewayId}Delete gateway
GatewaysApiGatewayCertificatesGet /span/collections/{collectionId}/gateways/{gatewayId}/certsGet issued certificate(s) for gateway
GatewaysApiListGatewaysGet /span/collections/{collectionId}/gatewaysList gateways
GatewaysApiRetrieveGatewayGet /span/collections/{collectionId}/gateways/{gatewayId}Retrieve gateway
GatewaysApiRetrieveGatewayStatsGet /span/collections/{collectionId}/gateways/{gatewayId}/statsRetrieve gateway statistics
GatewaysApiUpdateGatewayPatch /span/collections/{existingCollectionId}/gateways/{gatewayId}Update gateway
OutputsApiCreateOutputPost /span/collections/{collectionId}/outputsCreate output
OutputsApiDeleteOutputDelete /span/collections/{collectionId}/outputs/{outputId}Delete output
OutputsApiListOutputsGet /span/collections/{collectionId}/outputsList outputs
OutputsApiLogsGet /span/collections/{collectionId}/outputs/{outputId}/logsOutput logs
OutputsApiRetrieveOutputGet /span/collections/{collectionId}/outputs/{outputId}Retrieve output
OutputsApiRetrieveOutputStatsGet /span/collections/{collectionId}/outputs/{outputId}/statsRetrieve output statistics
OutputsApiStatusGet /span/collections/{collectionId}/outputs/{outputId}/statusOutput status
OutputsApiUpdateOutputPatch /span/collections/{existingCollectionId}/outputs/{outputId}Update output
SpanApiGetSystemInfoGet /span/systemSystem information

Documentation For Models

Documentation For Authorization

APIToken

  • Type: API key
  • API key parameter name: X-API-Token
  • Location: HTTP header

Note, each API key must be added to a map of map[string]APIKey where the key is: X-API-Token and passed in as the auth context for each request.

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author

[email protected]

# Packages

No description provided by the author
No description provided by the author

# Functions

CacheExpires helper function to determine remaining time before repeating a request.
IsNil checks if an input is nil.
NewActivityEvent instantiates a new ActivityEvent object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewActivityEventWithDefaults instantiates a new ActivityEvent object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewAddDownstreamMessageRequest instantiates a new AddDownstreamMessageRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewAddDownstreamMessageRequestWithDefaults instantiates a new AddDownstreamMessageRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewAny instantiates a new Any object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewAnyWithDefaults instantiates a new Any object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewAPIClient creates a new API client.
NewAPIResponse returns a new APIResponse object.
NewAPIResponseWithError returns a new APIResponse object with the provided error message.
NewBlob instantiates a new Blob object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewBlobStats instantiates a new BlobStats object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewBlobStatsWithDefaults instantiates a new BlobStats object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewBlobWithDefaults instantiates a new Blob object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewCellularIoTConfig instantiates a new CellularIoTConfig object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewCellularIoTConfigWithDefaults instantiates a new CellularIoTConfig object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewCellularIoTMetadata instantiates a new CellularIoTMetadata object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewCellularIoTMetadataWithDefaults instantiates a new CellularIoTMetadata object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewCertificateChainResponse instantiates a new CertificateChainResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewCertificateChainResponseWithDefaults instantiates a new CertificateChainResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewCertificateInfo instantiates a new CertificateInfo object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewCertificateInfoWithDefaults instantiates a new CertificateInfo object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewClearFirmwareErrorResponse instantiates a new ClearFirmwareErrorResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewClearFirmwareErrorResponseWithDefaults instantiates a new ClearFirmwareErrorResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewCoAPMetadata instantiates a new CoAPMetadata object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewCoAPMetadataWithDefaults instantiates a new CoAPMetadata object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewCollection instantiates a new Collection object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewCollectionFirmware instantiates a new CollectionFirmware object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewCollectionFirmwareWithDefaults instantiates a new CollectionFirmware object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewCollectionStats instantiates a new CollectionStats object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewCollectionStatsWithDefaults instantiates a new CollectionStats object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewCollectionWithDefaults instantiates a new Collection object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewConfiguration returns a new Configuration object.
NewCreateCertificateRequest instantiates a new CreateCertificateRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewCreateCertificateRequestWithDefaults instantiates a new CreateCertificateRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewCreateCertificateResponse instantiates a new CreateCertificateResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewCreateCertificateResponseWithDefaults instantiates a new CreateCertificateResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewCreateCollectionRequest instantiates a new CreateCollectionRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewCreateCollectionRequestWithDefaults instantiates a new CreateCollectionRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewCreateDeviceRequest instantiates a new CreateDeviceRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewCreateDeviceRequestWithDefaults instantiates a new CreateDeviceRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewCreateFirmwareRequest instantiates a new CreateFirmwareRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewCreateFirmwareRequestWithDefaults instantiates a new CreateFirmwareRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewCreateGatewayRequest instantiates a new CreateGatewayRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewCreateGatewayRequestWithDefaults instantiates a new CreateGatewayRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewCreateOutputRequest instantiates a new CreateOutputRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewCreateOutputRequestWithDefaults instantiates a new CreateOutputRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewDeleteDownstreamMessageResponse instantiates a new DeleteDownstreamMessageResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewDeleteDownstreamMessageResponseWithDefaults instantiates a new DeleteDownstreamMessageResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewDevice instantiates a new Device object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewDeviceCertificateResponse instantiates a new DeviceCertificateResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewDeviceCertificateResponseWithDefaults instantiates a new DeviceCertificateResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewDeviceConfig instantiates a new DeviceConfig object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewDeviceConfigWithDefaults instantiates a new DeviceConfig object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewDeviceMetadata instantiates a new DeviceMetadata object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewDeviceMetadataWithDefaults instantiates a new DeviceMetadata object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewDeviceStats instantiates a new DeviceStats object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewDeviceStatsWithDefaults instantiates a new DeviceStats object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewDeviceWithDefaults instantiates a new Device object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewFirmware instantiates a new Firmware object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewFirmwareManagementFromValue returns a pointer to a valid FirmwareManagement for the value passed as argument, or an error if the value passed is not allowed by the enum.
NewFirmwareMetadata instantiates a new FirmwareMetadata object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewFirmwareMetadataWithDefaults instantiates a new FirmwareMetadata object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewFirmwareStats instantiates a new FirmwareStats object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewFirmwareStatsWithDefaults instantiates a new FirmwareStats object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewFirmwareUsageResponse instantiates a new FirmwareUsageResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewFirmwareUsageResponseWithDefaults instantiates a new FirmwareUsageResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewFirmwareWithDefaults instantiates a new Firmware object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewGateway instantiates a new Gateway object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewGatewayCertificateResponse instantiates a new GatewayCertificateResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewGatewayCertificateResponseWithDefaults instantiates a new GatewayCertificateResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewGatewayCIoTConfig instantiates a new GatewayCIoTConfig object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewGatewayCIoTConfigWithDefaults instantiates a new GatewayCIoTConfig object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewGatewayConfig instantiates a new GatewayConfig object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewGatewayConfigWithDefaults instantiates a new GatewayConfig object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewGatewayCustomConfig instantiates a new GatewayCustomConfig object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewGatewayCustomConfigWithDefaults instantiates a new GatewayCustomConfig object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewGatewayDeviceConfig instantiates a new GatewayDeviceConfig object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewGatewayDeviceConfigWithDefaults instantiates a new GatewayDeviceConfig object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewGatewayDeviceMetadata instantiates a new GatewayDeviceMetadata object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewGatewayDeviceMetadataWithDefaults instantiates a new GatewayDeviceMetadata object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewGatewayInetConfig instantiates a new GatewayInetConfig object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewGatewayInetConfigWithDefaults instantiates a new GatewayInetConfig object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewGatewayMetadata instantiates a new GatewayMetadata object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewGatewayMetadataWithDefaults instantiates a new GatewayMetadata object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewGatewayStats instantiates a new GatewayStats object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewGatewayStatsWithDefaults instantiates a new GatewayStats object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewGatewayStatusFromValue returns a pointer to a valid GatewayStatus for the value passed as argument, or an error if the value passed is not allowed by the enum.
NewGatewayTypeFromValue returns a pointer to a valid GatewayType for the value passed as argument, or an error if the value passed is not allowed by the enum.
NewGatewayWithDefaults instantiates a new Gateway object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewInetMetadata instantiates a new InetMetadata object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewInetMetadataWithDefaults instantiates a new InetMetadata object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewListBlobResponse instantiates a new ListBlobResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewListBlobResponseWithDefaults instantiates a new ListBlobResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewListCollectionResponse instantiates a new ListCollectionResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewListCollectionResponseWithDefaults instantiates a new ListCollectionResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewListDataResponse instantiates a new ListDataResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewListDataResponseWithDefaults instantiates a new ListDataResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewListDevicesResponse instantiates a new ListDevicesResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewListDevicesResponseWithDefaults instantiates a new ListDevicesResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewListDownstreamMessagesResponse instantiates a new ListDownstreamMessagesResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewListDownstreamMessagesResponseWithDefaults instantiates a new ListDownstreamMessagesResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewListFirmwareResponse instantiates a new ListFirmwareResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewListFirmwareResponseWithDefaults instantiates a new ListFirmwareResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewListGatewayResponse instantiates a new ListGatewayResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewListGatewayResponseWithDefaults instantiates a new ListGatewayResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewListOutputResponse instantiates a new ListOutputResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewListOutputResponseWithDefaults instantiates a new ListOutputResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewListUpstreamMessagesResponse instantiates a new ListUpstreamMessagesResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewListUpstreamMessagesResponseWithDefaults instantiates a new ListUpstreamMessagesResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewMessageDownstream instantiates a new MessageDownstream object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewMessageDownstreamWithDefaults instantiates a new MessageDownstream object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewMessageStateFromValue returns a pointer to a valid MessageState for the value passed as argument, or an error if the value passed is not allowed by the enum.
NewMessageTransportFromValue returns a pointer to a valid MessageTransport for the value passed as argument, or an error if the value passed is not allowed by the enum.
NewMessageUpstream instantiates a new MessageUpstream object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewMessageUpstreamWithDefaults instantiates a new MessageUpstream object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewMQTTMetadata instantiates a new MQTTMetadata object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewMQTTMetadataWithDefaults instantiates a new MQTTMetadata object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewOutput instantiates a new Output object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewOutputConfig instantiates a new OutputConfig object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewOutputConfigWithDefaults instantiates a new OutputConfig object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewOutputDataMessage instantiates a new OutputDataMessage object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewOutputDataMessageWithDefaults instantiates a new OutputDataMessage object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewOutputLogEntry instantiates a new OutputLogEntry object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewOutputLogEntryWithDefaults instantiates a new OutputLogEntry object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewOutputLogResponse instantiates a new OutputLogResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewOutputLogResponseWithDefaults instantiates a new OutputLogResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewOutputMessageTypeFromValue returns a pointer to a valid OutputMessageType for the value passed as argument, or an error if the value passed is not allowed by the enum.
NewOutputStats instantiates a new OutputStats object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewOutputStatsWithDefaults instantiates a new OutputStats object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewOutputStatusResponse instantiates a new OutputStatusResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewOutputStatusResponseWithDefaults instantiates a new OutputStatusResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewOutputTypeFromValue returns a pointer to a valid OutputType for the value passed as argument, or an error if the value passed is not allowed by the enum.
NewOutputWithDefaults instantiates a new Output object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewRetrieveBlobResponse instantiates a new RetrieveBlobResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewRetrieveBlobResponseWithDefaults instantiates a new RetrieveBlobResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewSignCertificateRequest instantiates a new SignCertificateRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewSignCertificateRequestWithDefaults instantiates a new SignCertificateRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewSignCertificateResponse instantiates a new SignCertificateResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewSignCertificateResponseWithDefaults instantiates a new SignCertificateResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewStatus instantiates a new Status object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewStatusWithDefaults instantiates a new Status object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewSystemInfoResponse instantiates a new SystemInfoResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewSystemInfoResponseWithDefaults instantiates a new SystemInfoResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewUDPMetadata instantiates a new UDPMetadata object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewUDPMetadataWithDefaults instantiates a new UDPMetadata object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewUpdateCollectionRequest instantiates a new UpdateCollectionRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewUpdateCollectionRequestWithDefaults instantiates a new UpdateCollectionRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewUpdateDeviceRequest instantiates a new UpdateDeviceRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewUpdateDeviceRequestWithDefaults instantiates a new UpdateDeviceRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewUpdateFirmwareRequest instantiates a new UpdateFirmwareRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewUpdateFirmwareRequestWithDefaults instantiates a new UpdateFirmwareRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewUpdateGatewayRequest instantiates a new UpdateGatewayRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewUpdateGatewayRequestWithDefaults instantiates a new UpdateGatewayRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewUpdateOutputRequest instantiates a new UpdateOutputRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewUpdateOutputRequestWithDefaults instantiates a new UpdateOutputRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewVerifyCertificateRequest instantiates a new VerifyCertificateRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewVerifyCertificateRequestWithDefaults instantiates a new VerifyCertificateRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewVerifyCertificateResponse instantiates a new VerifyCertificateResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewVerifyCertificateResponseWithDefaults instantiates a new VerifyCertificateResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
PtrBool is a helper routine that returns a pointer to given boolean value.
PtrFloat32 is a helper routine that returns a pointer to given float value.
PtrFloat64 is a helper routine that returns a pointer to given float value.
PtrInt is a helper routine that returns a pointer to given integer value.
PtrInt32 is a helper routine that returns a pointer to given integer value.
PtrInt64 is a helper routine that returns a pointer to given integer value.
PtrString is a helper routine that returns a pointer to given string value.
PtrTime is helper routine that returns a pointer to given Time value.

# Constants

List of FirmwareManagement.
List of FirmwareManagement.
List of FirmwareManagement.
List of FirmwareManagement.
List of GatewayStatus.
List of GatewayStatus.
List of GatewayStatus.
List of GatewayType.
List of GatewayType.
List of GatewayType.
List of GatewayType.
List of GatewayType.
List of GatewayType.
List of GatewayType.
List of GatewayType.
List of MessageState.
List of MessageState.
List of MessageState.
List of MessageState.
List of MessageTransport.
List of MessageTransport.
List of MessageTransport.
List of MessageTransport.
List of MessageTransport.
List of MessageTransport.
List of MessageTransport.
List of OutputMessageType.
List of OutputMessageType.
List of OutputMessageType.
List of OutputType.
List of OutputType.
List of OutputType.
List of OutputType.
List of OutputType.
List of OutputType.

# Variables

All allowed values of FirmwareManagement enum.
All allowed values of GatewayStatus enum.
All allowed values of GatewayType enum.
All allowed values of MessageState enum.
All allowed values of MessageTransport enum.
All allowed values of OutputMessageType enum.
All allowed values of OutputType enum.
ContextAPIKeys takes a string apikey as authentication for the request.
ContextOperationServerIndices uses a server configuration from the index mapping.
ContextOperationServerVariables overrides a server configuration variables using operation specific values.
ContextServerIndex uses a server configuration from the index.
ContextServerVariables overrides a server configuration variables.

# Structs

ActivityEvent struct for ActivityEvent.
AddDownstreamMessageRequest This is the request object to send messages out to the devices.
Any struct for Any.
No description provided by the author
No description provided by the author
APIClient manages communication with the The Span API API v4.9.6 authoritarian-betty In most cases there should be only one, shared, APIClient.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
APIKey provides API key based authentication to a request passed via context using ContextAPIKey.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
APIResponse stores the API response returned by the server.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth.
Blob This is a blob (binary large object) that the devices might upload to the service.
BlobStats Statistics for a single blob.
CellularIoTConfig This is the cellular IOT config.
CellularIoTMetadata This is the metadata for a Cellular IoT device connected via an APN.
CertificateChainResponse Response when retrieving a certificate chain.
CertificateInfo Certificate information.
ClearFirmwareErrorResponse Clear firmware error response object.
CoAPMetadata CoAP metadata for messages received through one of the CoAP endpoints.
Collection This is a collection.
CollectionFirmware This is the firmware configuration for a collection.
CollectionStats This is statistics for an collection.
Configuration stores the configuration of the API client.
CreateCertificateRequest Request object to create a new certificate.
CreateCertificateResponse Response when creating a new certificate.
CreateCollectionRequest Request object when creating a collection.
CreateDeviceRequest Request object to create new devices.
CreateFirmwareRequest Create a new firmware image.
CreateGatewayRequest struct for CreateGatewayRequest.
CreateOutputRequest Request type when creating new outputs.
DeleteDownstreamMessageResponse Response object when deleting a downstream message.
Device This a device.
DeviceCertificateResponse Response object for certificate info resource.
DeviceConfig This is the configuration for the device via the various gateways.
DeviceMetadata This is the metadata for devices.
DeviceStats This is the statistics for a single device.
Firmware Firmware images aren't served back out through the API, only the metadata.
FirmwareMetadata Metadata about firmware on devices.
FirmwareStats Statistics for a single firmware image.
FirmwareUsageResponse Firmware usage report.
Gateway A gateway is a connection between devices and Span.
GatewayCertificateResponse struct for GatewayCertificateResponse.
GatewayCIoTConfig struct for GatewayCIoTConfig.
GatewayConfig struct for GatewayConfig.
GatewayCustomConfig struct for GatewayCustomConfig.
GatewayDeviceConfig Configuration parameters for a device in a user-managed gateway.
GatewayDeviceMetadata Metadata for devices connected via user-managed gateways.
GatewayInetConfig struct for GatewayInetConfig.
GatewayMetadata Metadata for gateway transports.
GatewayStats This is statistics for a single gateway.
GenericOpenAPIError Provides access to the body, error and model on returned errors.
InetMetadata Metadata for devices connected via the internet gateway.
ListBlobResponse Response object when listing blobs for a collection.
ListCollectionResponse Collection list.
ListDataResponse List of device payloads.
ListDevicesResponse List device response.
ListDownstreamMessagesResponse Response object when listing downstream messages.
ListFirmwareResponse List firmware response.
ListGatewayResponse Response when listing gateways.
ListOutputResponse List outputs.
ListUpstreamMessagesResponse Response object when listing upstream messages.
MessageDownstream Downstream messages are sent from the backend to the devices.
MessageUpstream This is the messages sent from the device to the backend service.
MQTTMetadata MQTT metadata for messages received through one of the MQTT endpoints.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Output Output resource.
OutputConfig Configuration for outputs.
OutputDataMessage The output data message contains payload plus metadata for a payload received from a device.
OutputLogEntry Log entries for outputs.
OutputLogResponse List logs for output.
OutputStats Statistics for a single data router.
OutputStatusResponse Show status of output.
RetrieveBlobResponse This is not available throught the API, just as a regular HTTP response.
ServerConfiguration stores the information about a server.
ServerVariable stores the information about a server variable.
SignCertificateRequest Request certificate signing.
SignCertificateResponse Response when signing a certificate.
Status struct for Status.
SystemInfoResponse Response object for system information.
UDPMetadata UDP metadata for messages receveied through one of the UDP endpoints.
UpdateCollectionRequest Request object when updating a collection.
UpdateDeviceRequest Updating the device.
UpdateFirmwareRequest This is the request object when updating the firmware image.
UpdateGatewayRequest struct for UpdateGatewayRequest.
UpdateOutputRequest Request type to update outputs.
VerifyCertificateRequest Verify a certificate.
VerifyCertificateResponse Response when verifying a certificate.

# Interfaces

No description provided by the author

# Type aliases

BlobsApiService BlobsApi service.
CertificatesApiService CertificatesApi service.
CollectionsApiService CollectionsApi service.
DevicesApiService DevicesApi service.
FirmwareManagement The firmware management settings for a collection can either be \"disabled\", ie there is no firmware management for this collection, \"collection\"; devices are managed through the settings on the collection or \"device\" where each device is configured individual.
FotaApiService FotaApi service.
GatewaysApiService GatewaysApi service.
GatewayStatus the model 'GatewayStatus'.
GatewayType the model 'GatewayType'.
MessageState the model 'MessageState'.
MessageTransport The message transport can be UDP or CoAP.
OutputMessageType the model 'OutputMessageType'.
OutputsApiService OutputsApi service.
OutputType Output types available - undefined: The undefined output type is an invalid type.
ServerConfigurations stores multiple ServerConfiguration items.
SpanApiService SpanApi service.