Skip to content

Commit dd0d036

Browse files
author
Lab5e Release Bot
committed
Span release 4.5.0
1 parent a335404 commit dd0d036

File tree

264 files changed

+10931
-3849
lines changed

Some content is hidden

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

264 files changed

+10931
-3849
lines changed

api/openapi.yaml

Lines changed: 176 additions & 494 deletions
Large diffs are not rendered by default.

build.gradle

Lines changed: 30 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ apply plugin: 'java'
44
apply plugin: 'com.diffplug.spotless'
55

66
group = 'com.lab5e'
7-
version = '4.4.2'
7+
version = '4.5.0'
88

99
buildscript {
1010
repositories {
1111
mavenCentral()
1212
}
1313
dependencies {
1414
classpath 'com.android.tools.build:gradle:2.3.+'
15-
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
16-
classpath 'com.diffplug.spotless:spotless-plugin-gradle:5.17.1'
15+
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
16+
classpath 'com.diffplug.spotless:spotless-plugin-gradle:6.11.0'
1717
}
1818
}
1919

@@ -65,7 +65,7 @@ if(hasProperty('target') && target == 'android') {
6565
task.from variant.javaCompile.destinationDir
6666
task.destinationDir = project.file("${project.buildDir}/outputs/jar")
6767
task.archiveName = "${project.name}-${variant.baseName}-${version}.jar"
68-
artifacts.add('archives', task);
68+
artifacts.add('archives', task)
6969
}
7070
}
7171

@@ -106,17 +106,20 @@ ext {
106106
}
107107

108108
dependencies {
109-
implementation 'io.swagger:swagger-annotations:1.5.24'
109+
implementation 'io.swagger:swagger-annotations:1.6.8'
110110
implementation "com.google.code.findbugs:jsr305:3.0.2"
111-
implementation 'com.squareup.okhttp3:okhttp:4.9.1'
112-
implementation 'com.squareup.okhttp3:logging-interceptor:4.9.1'
113-
implementation 'com.google.code.gson:gson:2.8.6'
114-
implementation 'io.gsonfire:gson-fire:1.8.4'
115-
implementation 'org.openapitools:jackson-databind-nullable:0.2.1'
116-
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.10'
111+
implementation 'com.squareup.okhttp3:okhttp:4.10.0'
112+
implementation 'com.squareup.okhttp3:logging-interceptor:4.10.0'
113+
implementation 'com.google.code.gson:gson:2.9.1'
114+
implementation 'io.gsonfire:gson-fire:1.8.5'
115+
implementation 'javax.ws.rs:jsr311-api:1.1.1'
116+
implementation 'javax.ws.rs:javax.ws.rs-api:2.1.1'
117+
implementation 'org.openapitools:jackson-databind-nullable:0.2.4'
118+
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0'
117119
implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version"
118-
testImplementation 'junit:junit:4.13.1'
119-
testImplementation 'org.mockito:mockito-core:3.11.2'
120+
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.1'
121+
testImplementation 'org.mockito:mockito-core:3.12.4'
122+
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.1'
120123
}
121124

122125
javadoc {
@@ -149,3 +152,17 @@ spotless {
149152
importOrder()
150153
}
151154
}
155+
156+
test {
157+
// Enable JUnit 5 (Gradle 4.6+).
158+
useJUnitPlatform()
159+
160+
// Always run tests, even when nothing changed.
161+
dependsOn 'cleanTest'
162+
163+
// Show test results.
164+
testLogging {
165+
events "passed", "skipped", "failed"
166+
}
167+
168+
}

build.sbt

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,27 @@ lazy val root = (project in file(".")).
22
settings(
33
organization := "com.lab5e",
44
name := "span-java-client",
5-
version := "4.4.2",
5+
version := "4.5.0",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),
99
publishArtifact in (Compile, packageDoc) := false,
1010
resolvers += Resolver.mavenLocal,
1111
libraryDependencies ++= Seq(
12-
"io.swagger" % "swagger-annotations" % "1.5.24",
13-
"com.squareup.okhttp3" % "okhttp" % "4.9.1",
14-
"com.squareup.okhttp3" % "logging-interceptor" % "4.9.1",
15-
"com.google.code.gson" % "gson" % "2.8.6",
16-
"org.apache.commons" % "commons-lang3" % "3.10",
17-
"org.openapitools" % "jackson-databind-nullable" % "0.2.2",
18-
"io.gsonfire" % "gson-fire" % "1.8.3" % "compile",
12+
"io.swagger" % "swagger-annotations" % "1.6.5",
13+
"com.squareup.okhttp3" % "okhttp" % "4.10.0",
14+
"com.squareup.okhttp3" % "logging-interceptor" % "4.10.0",
15+
"com.google.code.gson" % "gson" % "2.9.1",
16+
"org.apache.commons" % "commons-lang3" % "3.12.0",
17+
"javax.ws.rs" % "jsr311-api" % "1.1.1",
18+
"javax.ws.rs" % "javax.ws.rs-api" % "2.1.1",
19+
"org.openapitools" % "jackson-databind-nullable" % "0.2.4",
20+
"io.gsonfire" % "gson-fire" % "1.8.5" % "compile",
1921
"jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile",
2022
"com.google.code.findbugs" % "jsr305" % "3.0.2" % "compile",
2123
"jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile",
22-
"junit" % "junit" % "4.13.1" % "test",
23-
"com.novocode" % "junit-interface" % "0.10" % "test"
24+
"org.junit.jupiter" % "junit-jupiter-api" % "5.9.1" % "test",
25+
"com.novocode" % "junit-interface" % "0.10" % "test",
26+
"org.mockito" % "mockito-core" % "3.12.4" % "test"
2427
)
2528
)

docs/AddDownstreamMessageRequest.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ This is the request object to send messages out to the devices
66

77
## Properties
88

9-
Name | Type | Description | Notes
10-
------------ | ------------- | ------------- | -------------
11-
**payload** | **byte[]** | | [optional]
9+
| Name | Type | Description | Notes |
10+
|------------ | ------------- | ------------- | -------------|
11+
|**payload** | **byte[]** | | [optional] |
1212

1313

1414

docs/Any.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
## Properties
77

8-
Name | Type | Description | Notes
9-
------------ | ------------- | ------------- | -------------
10-
**atType** | **String** | | [optional]
8+
| Name | Type | Description | Notes |
9+
|------------ | ------------- | ------------- | -------------|
10+
|**atType** | **String** | | [optional] |
1111

1212

1313

docs/Blob.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ This is a blob (binary large object) that the devices might upload to the servic
66

77
## Properties
88

9-
Name | Type | Description | Notes
10-
------------ | ------------- | ------------- | -------------
11-
**blobId** | **String** | | [optional]
12-
**blobPath** | **String** | | [optional]
13-
**contentType** | **String** | | [optional]
14-
**size** | **String** | | [optional]
15-
**created** | **String** | | [optional]
16-
**collectionId** | **String** | | [optional]
17-
**deviceId** | **String** | | [optional]
18-
**gatewayId** | **String** | | [optional]
19-
**properties** | **Map<String, String>** | | [optional]
9+
| Name | Type | Description | Notes |
10+
|------------ | ------------- | ------------- | -------------|
11+
|**blobId** | **String** | | [optional] |
12+
|**blobPath** | **String** | | [optional] |
13+
|**contentType** | **String** | | [optional] |
14+
|**size** | **String** | | [optional] |
15+
|**created** | **String** | | [optional] |
16+
|**collectionId** | **String** | | [optional] |
17+
|**deviceId** | **String** | | [optional] |
18+
|**gatewayId** | **String** | | [optional] |
19+
|**properties** | **Map<String, String>** | | [optional] |
2020

2121

2222

docs/BlobsApi.md

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

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

5-
Method | HTTP request | Description
6-
------------- | ------------- | -------------
7-
[**deleteBlob**](BlobsApi.md#deleteBlob) | **DELETE** /span/collections/{collectionId}/blobs/{blobId} | Remove a blob stored on a collection
8-
[**listBlobs**](BlobsApi.md#listBlobs) | **GET** /span/collections/{collectionId}/blobs | List the blobs for a collection
5+
| Method | HTTP request | Description |
6+
|------------- | ------------- | -------------|
7+
| [**deleteBlob**](BlobsApi.md#deleteBlob) | **DELETE** /span/collections/{collectionId}/blobs/{blobId} | Remove a blob stored on a collection |
8+
| [**listBlobs**](BlobsApi.md#listBlobs) | **GET** /span/collections/{collectionId}/blobs | List the blobs for a collection |
99

1010

1111
<a name="deleteBlob"></a>
@@ -56,10 +56,10 @@ public class Example {
5656

5757
### Parameters
5858

59-
Name | Type | Description | Notes
60-
------------- | ------------- | ------------- | -------------
61-
**collectionId** | **String**| |
62-
**blobId** | **String**| |
59+
| Name | Type | Description | Notes |
60+
|------------- | ------------- | ------------- | -------------|
61+
| **collectionId** | **String**| | |
62+
| **blobId** | **String**| | |
6363

6464
### Return type
6565

@@ -77,14 +77,14 @@ Name | Type | Description | Notes
7777
### HTTP response details
7878
| Status code | Description | Response headers |
7979
|-------------|-------------|------------------|
80-
**200** | A successful response. | - |
81-
**201** | It&#39;s created. | - |
82-
**400** | The request has an error. | - |
83-
**401** | You can&#39;t touch this | - |
84-
**404** | Couldn&#39;t find the resource. | - |
85-
**409** | There&#39;s a resource conflict here. | - |
86-
**500** | I&#39;m sorry. We are broken | - |
87-
**0** | An unexpected error response. | - |
80+
| **200** | A successful response. | - |
81+
| **201** | It&#39;s created. | - |
82+
| **400** | The request has an error. | - |
83+
| **401** | You can&#39;t touch this | - |
84+
| **404** | Couldn&#39;t find the resource. | - |
85+
| **409** | There&#39;s a resource conflict here. | - |
86+
| **500** | I&#39;m sorry. We are broken | - |
87+
| **0** | An unexpected error response. | - |
8888

8989
<a name="listBlobs"></a>
9090
# **listBlobs**
@@ -134,10 +134,10 @@ public class Example {
134134

135135
### Parameters
136136

137-
Name | Type | Description | Notes
138-
------------- | ------------- | ------------- | -------------
139-
**collectionId** | **String**| |
140-
**limit** | **Integer**| | [optional]
137+
| Name | Type | Description | Notes |
138+
|------------- | ------------- | ------------- | -------------|
139+
| **collectionId** | **String**| | |
140+
| **limit** | **Integer**| | [optional] |
141141

142142
### Return type
143143

@@ -155,12 +155,12 @@ Name | Type | Description | Notes
155155
### HTTP response details
156156
| Status code | Description | Response headers |
157157
|-------------|-------------|------------------|
158-
**200** | A successful response. | - |
159-
**201** | It&#39;s created. | - |
160-
**400** | The request has an error. | - |
161-
**401** | You can&#39;t touch this | - |
162-
**404** | Couldn&#39;t find the resource. | - |
163-
**409** | There&#39;s a resource conflict here. | - |
164-
**500** | I&#39;m sorry. We are broken | - |
165-
**0** | An unexpected error response. | - |
158+
| **200** | A successful response. | - |
159+
| **201** | It&#39;s created. | - |
160+
| **400** | The request has an error. | - |
161+
| **401** | You can&#39;t touch this | - |
162+
| **404** | Couldn&#39;t find the resource. | - |
163+
| **409** | There&#39;s a resource conflict here. | - |
164+
| **500** | I&#39;m sorry. We are broken | - |
165+
| **0** | An unexpected error response. | - |
166166

docs/CellularIoTConfig.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ This is the cellular IOT config
66

77
## Properties
88

9-
Name | Type | Description | Notes
10-
------------ | ------------- | ------------- | -------------
11-
**imsi** | **String** | | [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]
9+
| Name | Type | Description | Notes |
10+
|------------ | ------------- | ------------- | -------------|
11+
|**imsi** | **String** | | [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: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@ This is the metadata for a Cellular IoT device connected via an APN.
66

77
## Properties
88

9-
Name | Type | Description | Notes
10-
------------ | ------------- | ------------- | -------------
11-
**gatewayId** | **String** | | [optional]
12-
**allocatedIp** | **String** | Allocated IP address. | [optional]
13-
**allocatedAt** | **String** | | [optional]
14-
**cellId** | **String** | | [optional]
15-
**mcc** | **Integer** | the provider in use. The Mobile Country Code for the operator. | [optional]
16-
**mnc** | **Integer** | | [optional]
17-
**country** | **String** | | [optional]
18-
**network** | **String** | | [optional]
19-
**countryCode** | **String** | | [optional]
20-
**lastUpdate** | **String** | | [optional]
9+
| Name | Type | Description | Notes |
10+
|------------ | ------------- | ------------- | -------------|
11+
|**gatewayId** | **String** | | [optional] |
12+
|**allocatedIp** | **String** | Allocated IP address. | [optional] |
13+
|**allocatedAt** | **String** | | [optional] |
14+
|**cellId** | **String** | | [optional] |
15+
|**mcc** | **Integer** | the provider in use. The Mobile Country Code for the operator. | [optional] |
16+
|**mnc** | **Integer** | | [optional] |
17+
|**country** | **String** | | [optional] |
18+
|**network** | **String** | | [optional] |
19+
|**countryCode** | **String** | | [optional] |
20+
|**lastUpdate** | **String** | | [optional] |
2121

2222

2323

docs/CertificateChainResponse.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ Response when retrieving a certificate chain
66

77
## Properties
88

9-
Name | Type | Description | Notes
10-
------------ | ------------- | ------------- | -------------
11-
**chain** | **byte[]** | | [optional]
9+
| Name | Type | Description | Notes |
10+
|------------ | ------------- | ------------- | -------------|
11+
|**chain** | **byte[]** | | [optional] |
1212

1313

1414

docs/CertificateInfo.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ Certificate information
66

77
## Properties
88

9-
Name | Type | Description | Notes
10-
------------ | ------------- | ------------- | -------------
11-
**certificateSerial** | **String** | | [optional]
12-
**expires** | **String** | | [optional]
9+
| Name | Type | Description | Notes |
10+
|------------ | ------------- | ------------- | -------------|
11+
|**certificateSerial** | **String** | | [optional] |
12+
|**expires** | **String** | | [optional] |
1313

1414

1515

0 commit comments

Comments
 (0)