Skip to content

Commit 25785de

Browse files
author
Lab5e Release Bot
committed
Version 4.3.0
1 parent 68e9f4b commit 25785de

File tree

168 files changed

+500
-248
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

168 files changed

+500
-248
lines changed

.openapi-generator/FILES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ docs/ListGatewayResponse.md
4545
docs/ListNetworkResponse.md
4646
docs/ListOutputResponse.md
4747
docs/ListUpstreamMessagesResponse.md
48+
docs/MQTTMetadata.md
4849
docs/MessageDownstream.md
4950
docs/MessageState.md
5051
docs/MessageTransport.md
@@ -142,6 +143,7 @@ src/main/java/com/lab5e/span/model/ListGatewayResponse.java
142143
src/main/java/com/lab5e/span/model/ListNetworkResponse.java
143144
src/main/java/com/lab5e/span/model/ListOutputResponse.java
144145
src/main/java/com/lab5e/span/model/ListUpstreamMessagesResponse.java
146+
src/main/java/com/lab5e/span/model/MQTTMetadata.java
145147
src/main/java/com/lab5e/span/model/MessageDownstream.java
146148
src/main/java/com/lab5e/span/model/MessageState.java
147149
src/main/java/com/lab5e/span/model/MessageTransport.java
@@ -211,6 +213,7 @@ src/test/java/com/lab5e/span/model/ListGatewayResponseTest.java
211213
src/test/java/com/lab5e/span/model/ListNetworkResponseTest.java
212214
src/test/java/com/lab5e/span/model/ListOutputResponseTest.java
213215
src/test/java/com/lab5e/span/model/ListUpstreamMessagesResponseTest.java
216+
src/test/java/com/lab5e/span/model/MQTTMetadataTest.java
214217
src/test/java/com/lab5e/span/model/MessageDownstreamTest.java
215218
src/test/java/com/lab5e/span/model/MessageStateTest.java
216219
src/test/java/com/lab5e/span/model/MessageTransportTest.java

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# span-java-client
22

33
The Span API
4-
- API version: 4.2.4 curable-andres
5-
- Build date: 2022-06-30T09:27:02.556964Z[Etc/UTC]
4+
- API version: 4.3.0 grouchy-aloysius
5+
- Build date: 2023-01-13T11:18:28.250753Z[Etc/UTC]
66

77
API for device, collection, output and firmware management
88

@@ -41,7 +41,7 @@ Add this dependency to your project's POM:
4141
<dependency>
4242
<groupId>com.lab5e</groupId>
4343
<artifactId>span-java-client</artifactId>
44-
<version>4.2.4</version>
44+
<version>4.3.0</version>
4545
<scope>compile</scope>
4646
</dependency>
4747
```
@@ -57,7 +57,7 @@ Add this dependency to your project's build file:
5757
}
5858
5959
dependencies {
60-
implementation "com.lab5e:span-java-client:4.2.4"
60+
implementation "com.lab5e:span-java-client:4.3.0"
6161
}
6262
```
6363

@@ -71,7 +71,7 @@ mvn clean package
7171

7272
Then manually install the following JARs:
7373

74-
* `target/span-java-client-4.2.4.jar`
74+
* `target/span-java-client-4.3.0.jar`
7575
* `target/lib/*.jar`
7676

7777
## Getting Started
@@ -202,6 +202,7 @@ Class | Method | HTTP request | Description
202202
- [ListNetworkResponse](docs/ListNetworkResponse.md)
203203
- [ListOutputResponse](docs/ListOutputResponse.md)
204204
- [ListUpstreamMessagesResponse](docs/ListUpstreamMessagesResponse.md)
205+
- [MQTTMetadata](docs/MQTTMetadata.md)
205206
- [MessageDownstream](docs/MessageDownstream.md)
206207
- [MessageState](docs/MessageState.md)
207208
- [MessageTransport](docs/MessageTransport.md)

api/openapi.yaml

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ info:
66
url: https://lab5e.com
77
description: API for device, collection, output and firmware management
88
title: The Span API
9-
version: 4.2.4 curable-andres
9+
version: 4.3.0 grouchy-aloysius
1010
servers:
1111
- url: https://api.lab5e.com/
1212
security:
@@ -79,6 +79,8 @@ paths:
7979
application/json:
8080
schema:
8181
$ref: '#/components/schemas/CreateCollectionRequest'
82+
description: Request object when creating a collection. The collect ID is
83+
assigned by the service.
8284
required: true
8385
responses:
8486
"200":
@@ -3218,11 +3220,14 @@ components:
32183220
properties:
32193221
imsi:
32203222
format: int64
3223+
title: The IMSI is the unique ID for the (e|nu|whatever)SIM card
32213224
type: string
32223225
imei:
32233226
description: |-
32243227
on your device. This is the primary identifier for your
32253228
device on the network.
3229+
3230+
The IMEI number is the unique ID for your hardware as
32263231
format: int64
32273232
type: string
32283233
title: CellularIOTConfig
@@ -3243,27 +3248,38 @@ components:
32433248
network: network
32443249
properties:
32453250
gatewayId:
3251+
title: The currently used gateway
32463252
type: string
32473253
allocatedIp:
3254+
description: Allocated IP address.
32483255
type: string
32493256
allocatedAt:
32503257
format: int64
3258+
title: Time stamp for address allocation
32513259
type: string
32523260
cellId:
32533261
format: int64
3262+
title: Cell ID for device. This might not be set, depending on
32543263
type: string
32553264
mcc:
3256-
description: the provider in use.
3265+
description: |-
3266+
the provider in use.
3267+
3268+
The Mobile Country Code for the operator.
32573269
format: int32
32583270
type: integer
32593271
mnc:
32603272
format: int32
3273+
title: The Mobile Network Code for the operator
32613274
type: integer
32623275
country:
3276+
title: The name of the country in plain text
32633277
type: string
32643278
network:
3279+
title: The name of the mobile network
32653280
type: string
32663281
countryCode:
3282+
title: ISO country code
32673283
type: string
32683284
lastUpdate:
32693285
format: int64
@@ -3668,6 +3684,7 @@ components:
36683684
title: Last reported manufacturer string
36693685
type: string
36703686
state:
3687+
description: State of the firmware.
36713688
type: string
36723689
stateMessage:
36733690
title: Description of the firmware state
@@ -3686,6 +3703,7 @@ components:
36863703
- targeted
36873704
properties:
36883705
imageId:
3706+
title: Yes it is inconsistent
36893707
type: string
36903708
targeted:
36913709
items:
@@ -3775,6 +3793,8 @@ components:
37753793
payload: payload
37763794
messageId: messageId
37773795
received: received
3796+
mqttMetaData:
3797+
topic: topic
37783798
transport: transport
37793799
device:
37803800
metadata:
@@ -3832,6 +3852,8 @@ components:
38323852
payload: payload
38333853
messageId: messageId
38343854
received: received
3855+
mqttMetaData:
3856+
topic: topic
38353857
transport: transport
38363858
device:
38373859
metadata:
@@ -4172,6 +4194,16 @@ components:
41724194
type: array
41734195
title: ListUpstreamMessagesResponse
41744196
type: object
4197+
MQTTMetadata:
4198+
description: MQTT metadata for messages received through one of the MQTT endpoints.
4199+
This is an EXPERIMENTAL feature.
4200+
example:
4201+
topic: topic
4202+
properties:
4203+
topic:
4204+
type: string
4205+
title: MQTTMetadata
4206+
type: object
41754207
MessageDownstream:
41764208
description: Downstream messages are sent from the backend to the devices.
41774209
example:
@@ -4222,6 +4254,7 @@ components:
42224254
- unspecified
42234255
- udp
42244256
- coap
4257+
- mqtt
42254258
title: MessageTransport
42264259
type: string
42274260
MessageUpstream:
@@ -4246,6 +4279,7 @@ components:
42464279
$ref: '#/components/schemas/MessageTransport'
42474280
received:
42484281
format: int64
4282+
title: Time the message was received, ms from epoch
42494283
type: string
42504284
payload:
42514285
format: byte
@@ -4474,6 +4508,8 @@ components:
44744508
payload: payload
44754509
messageId: messageId
44764510
received: received
4511+
mqttMetaData:
4512+
topic: topic
44774513
transport: transport
44784514
device:
44794515
metadata:
@@ -4552,6 +4588,8 @@ components:
45524588
for all messages received. Note that the received time stamp and the
45534589
message ID might not be
45544590
type: string
4591+
mqttMetaData:
4592+
$ref: '#/components/schemas/MQTTMetadata'
45554593
title: OutputDataMessage
45564594
type: object
45574595
OutputLogEntry:

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apply plugin: 'java'
44
apply plugin: 'com.diffplug.spotless'
55

66
group = 'com.lab5e'
7-
version = '4.2.4'
7+
version = '4.3.0'
88

99
buildscript {
1010
repositories {

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
22
settings(
33
organization := "com.lab5e",
44
name := "span-java-client",
5-
version := "4.2.4",
5+
version := "4.3.0",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

docs/CellularIoTConfig.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This is the cellular IOT config
99
Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
1111
**imsi** | **String** | | [optional]
12-
**imei** | **String** | on your device. This is the primary identifier for your device on the network. | [optional]
12+
**imei** | **String** | on your device. This is the primary identifier for your device on the network. The IMEI number is the unique ID for your hardware as | [optional]
1313

1414

1515

docs/CellularIoTMetadata.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ This is the metadata for a Cellular IoT device connected via an APN.
99
Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
1111
**gatewayId** | **String** | | [optional]
12-
**allocatedIp** | **String** | | [optional]
12+
**allocatedIp** | **String** | Allocated IP address. | [optional]
1313
**allocatedAt** | **String** | | [optional]
1414
**cellId** | **String** | | [optional]
15-
**mcc** | **Integer** | the provider in use. | [optional]
15+
**mcc** | **Integer** | the provider in use. The Mobile Country Code for the operator. | [optional]
1616
**mnc** | **Integer** | | [optional]
1717
**country** | **String** | | [optional]
1818
**network** | **String** | | [optional]

docs/CollectionsApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public class Example {
4242
//APIToken.setApiKeyPrefix("Token");
4343

4444
CollectionsApi apiInstance = new CollectionsApi(defaultClient);
45-
CreateCollectionRequest body = new CreateCollectionRequest(); // CreateCollectionRequest |
45+
CreateCollectionRequest body = new CreateCollectionRequest(); // CreateCollectionRequest | Request object when creating a collection. The collect ID is assigned by the service.
4646
try {
4747
Collection result = apiInstance.createCollection(body);
4848
System.out.println(result);
@@ -61,7 +61,7 @@ public class Example {
6161

6262
Name | Type | Description | Notes
6363
------------- | ------------- | ------------- | -------------
64-
**body** | [**CreateCollectionRequest**](CreateCollectionRequest.md)| |
64+
**body** | [**CreateCollectionRequest**](CreateCollectionRequest.md)| Request object when creating a collection. The collect ID is assigned by the service. |
6565

6666
### Return type
6767

docs/FirmwareMetadata.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Name | Type | Description | Notes
1414
**serialNumber** | **String** | | [optional]
1515
**modelNumber** | **String** | | [optional]
1616
**manufacturer** | **String** | | [optional]
17-
**state** | **String** | | [optional]
17+
**state** | **String** | State of the firmware. | [optional]
1818
**stateMessage** | **String** | | [optional]
1919

2020

docs/MQTTMetadata.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
3+
# MQTTMetadata
4+
5+
MQTT metadata for messages received through one of the MQTT endpoints. This is an EXPERIMENTAL feature.
6+
7+
## Properties
8+
9+
Name | Type | Description | Notes
10+
------------ | ------------- | ------------- | -------------
11+
**topic** | **String** | | [optional]
12+
13+
14+

0 commit comments

Comments
 (0)