8000 Regenerate client from commit 28842c9 of spec repo (#73) · arduino/iot-client-js@3a0b930 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3a0b930

Browse files
github-actions[bot]ArduinoBot
andauthored
Regenerate client from commit 28842c9 of spec repo (#73)
Co-authored-by: ArduinoBot <arduinobot@arduino.cc>
1 parent b02e9e4 commit 3a0b930

File tree

94 files changed

+418
-96
lines changed

Some content is hidden

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

94 files changed

+418
-96
lines changed

.apigentools-info

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"spec_versions": {
55
"v2": {
66
"apigentools_version": "1.1.0",
7-
"regenerated": "2024-01-31 14:24:49.551850",
8-
"spec_repo_commit": "138c42b"
7+
"regenerated": "2024-04-16 08:17:19.461374",
8+
"spec_repo_commit": "28842c9"
99
}
1010
}
1111
}

.openapi-generator/FILES

Lines 9E81 changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ docs/ArduinoDashboardv2template.md
1010
docs/ArduinoDevicev2.md
1111
docs/ArduinoDevicev2Cert.md
1212
docs/ArduinoDevicev2EventProperties.md
13+
docs/ArduinoDevicev2Otaupload.md
1314
docs/ArduinoDevicev2Pass.md
1415
docs/ArduinoDevicev2SimpleProperties.md
1516
docs/ArduinoDevicev2StatusEvent.md
@@ -65,6 +66,7 @@ docs/DevicesV2TagsApi.md
6566
docs/Devicev2.md
6667
docs/Devicev2Cert.md
6768
docs/Devicev2Otabinaryurl.md
69+
docs/Devicev2Otaurlpyalod.md
6870
docs/Devicev2Pass.md
6971
docs/Error.md
7072
docs/HistoricDataRequest.md
@@ -114,6 +116,7 @@ src/model/ArduinoDashboardv2template.js
114116
src/model/ArduinoDevicev2.js
115117
src/model/ArduinoDevicev2Cert.js
116118
src/model/ArduinoDevicev2EventProperties.js
119+
src/model/ArduinoDevicev2Otaupload.js
117120
src/model/ArduinoDevicev2Pass.js
118121
src/model/ArduinoDevicev2SimpleProperties.js
119122
src/model/ArduinoDevicev2StatusEvent.js
@@ -163,6 +166,7 @@ src/model/Dashboardv2.js
163166
src/model/Devicev2.js
164167
src/model/Devicev2Cert.js
165168
src/model/Devicev2Otabinaryurl.js
169+
src/model/Devicev2Otaurlpyalod.js
166170
src/model/Devicev2Pass.js
167171
src/model/Error.js
168172
src/model/HistoricDataRequest.js
@@ -201,6 +205,7 @@ test/model/ArduinoDashboardv2template.spec.js
201205
test/model/ArduinoDevicev2.spec.js
202206
test/model/ArduinoDevicev2Cert.spec.js
203207
test/model/ArduinoDevicev2EventProperties.spec.js
208+
test/model/ArduinoDevicev2Otaupload.spec.js
204209
test/model/ArduinoDevicev2Pass.spec.js
205210
test/model/ArduinoDevicev2SimpleProperties.spec.js
206211
test/model/ArduinoDevicev2StatusEvent.spec.js
@@ -250,6 +255,7 @@ test/model/Dashboardv2.spec.js
250255
test/model/Devicev2.spec.js
251256
test/model/Devicev2Cert.spec.js
252257
test/model/Devicev2Otabinaryurl.spec.js
258+
test/model/Devicev2Otaurlpyalod.spec.js
253259
test/model/Devicev2Pass.spec.js
254260
test/model/Error.spec.js
255261
test/model/HistoricDataRequest.spec.js

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@arduino/arduino-iot-client",
3-
"version": "2.0.1",
3+
"version": "2.0.2",
44
"description": " Provides a set of endpoints to manage Arduino IoT Cloud **Devices**, **Things**, **Properties** and **Timeseries**. This API can be called just with any HTTP Client, or using one of these clients: * [Javascript NPM package](https://www.npmjs.com/package/@arduino/arduino-iot-client) * [Python PYPI Package](https://pypi.org/project/arduino-iot-client/) * [Golang Module](https://github.com/arduino/iot-client-go)",
55
"license": "GPLv3",
66
"main": "dist/index.js",

src/ApiClient.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import querystring from "querystring";
1717

1818
/**
1919
* @module ApiClient
20-
* @version 2.0.1
20+
* @version 2.0.2
2121
*/
2222

2323
/**

src/api/DashboardsV2Api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import Widgetlink from '../model/Widgetlink';
2727
/**
2828
* DashboardsV2 service.
2929
* @module api/DashboardsV2Api
30-
* @version 2.0.1
30+
* @version 2.0.2
3131
*/
3232
export default class DashboardsV2Api {
3333

src/api/DevicesV2Api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import PropertiesValues from '../model/PropertiesValues';
2626
/**
2727
* DevicesV2 service.
2828
* @module api/DevicesV2Api
29-
* @version 2.0.1
29+
* @version 2.0.2
3030
*/
3131
export default class DevicesV2Api {
3232

src/api/DevicesV2CertsApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import Error from '../model/Error';
2121
/**
2222
* DevicesV2Certs service.
2323
* @module api/DevicesV2CertsApi
24-
* @version 2.0.1
24+
* @version 2.0.2
2525
*/
2626
export default class DevicesV2CertsApi {
2727

src/api/DevicesV2OtaApi.js

Lines changed: 61 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@
1313

1414

1515
import ApiClient from "../ApiClient";
16+
import ArduinoDevicev2Otaupload from '../model/ArduinoDevicev2Otaupload';
1617
import Devicev2Otabinaryurl from '../model/Devicev2Otabinaryurl';
18+
import Devicev2Otaurlpyalod from '../model/Devicev2Otaurlpyalod';
1719
import Error from '../model/Error';
1820

1921
/**
2022
* DevicesV2Ota service.
2123
* @module api/DevicesV2OtaApi
22-
* @version 2.0.1
24+
* @version 2.0.2
2325
*/
2426
export default class DevicesV2OtaApi {
2527

@@ -98,7 +100,7 @@ export default class DevicesV2OtaApi {
98100
* @param {Object} opts Optional parameters
99101
* @param {Boolean} [async = true)] If false, wait for the full OTA process, until it gets a result from the device
100102
* @param {Number} [expireInMins = 10)] Binary expire time in minutes, default 10 mins
101-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
103+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ArduinoDevicev2Otaupload} and HTTP response
102104
*/
103105
devicesV2OtaUploadWithHttpInfo(id, otaFile, opts) {
104106
opts = opts || {};
@@ -127,8 +129,8 @@ export default class DevicesV2OtaApi {
127129

128130
let authNames = ['oauth2'];
129131
let contentTypes = ['multipart/form-data'];
130-
let accepts = ['application/vnd.goa.error+json', 'text/plain'];
131-
let returnType = null;
132+
let accepts = ['application/vnd.arduino.devicev2.otaupload+json', 'application/vnd.goa.error+json'];
133+
let returnType = ArduinoDevicev2Otaupload;
132134
return this.apiClient.callApi(
133135
'/v2/devices/{id}/ota', 'POST',
134136
pathParams, queryParams, headerParams, formParams, postBody,
@@ -144,7 +146,7 @@ export default class DevicesV2OtaApi {
144146
* @param {Object} opts Optional parameters
145147
* @param {Boolean} opts.async If false, wait for the full OTA process, until it gets a result from the device (default to true)
146148
* @param {Number} opts.expireInMins Binary expire time in minutes, default 10 mins (default to 10)
147-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
149+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ArduinoDevicev2Otaupload}
148150
*/
149151
devicesV2OtaUpload(id, otaFile, opts) {
150152
return this.devicesV2OtaUploadWithHttpInfo(id, otaFile, opts)
@@ -154,4 +156,58 @@ export default class DevicesV2OtaApi {
154156
}
155157

156158

159+
/**
160+
* url devices_v2_ota
161+
* Generate a url for downloading a binary
162+
* @param {String} id The id of the device
163+
* @param {module:model/Devicev2Otaurlpyalod} devicev2Otaurlpyalod
164+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
165+
*/
166+
devicesV2OtaUrlWithHttpInfo(id, devicev2Otaurlpyalod) {
167+
let postBody = devicev2Otaurlpyalod;
168+
// verify the required parameter 'id' is set
169+
if (id === undefined || id === null) {
170+
throw new Error("Missing the required parameter 'id' when calling devicesV2OtaUrl");
171+
}
172+
// verify the required parameter 'devicev2Otaurlpyalod' is set
173+
if (devicev2Otaurlpyalod === undefined || devicev2Otaurlpyalod === null) {
174+
throw new Error("Missing the required parameter 'devicev2Otaurlpyalod' when calling devicesV2OtaUrl");
175+
}
176+
177+
let pathParams = {
178+
'id': id
179+
};
180+
let queryParams = {
181+
};
182+
let headerParams = {
183+
};
184+
let formParams = {
185+
};
186+
187+
let authNames = ['oauth2'];
188+
let 38B3 contentTypes = ['application/json', 'application/x-www-form-urlencoded'];
189+
let accepts = ['application/vnd.goa.error+json', 'text/plain'];
190+
let returnType = null;
191+
return this.apiClient.callApi(
192+
'/v2/devices/{id}/ota/url', 'POST',
193+
pathParams, queryParams, headerParams, formParams, postBody,
194+
authNames, contentTypes, accepts, returnType, null
195+
);
196+
}
197+
198+
/**
199+
* url devices_v2_ota
200+
* Generate a url for downloading a binary
201+
* @param {String} id The id of the device
202+
* @param {module:model/Devicev2Otaurlpyalod} devicev2Otaurlpyalod
203+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
204+
*/
205+
devicesV2OtaUrl(id, devicev2Otaurlpyalod) {
206+
return this.devicesV2OtaUrlWithHttpInfo(id, devicev2Otaurlpyalod)
207+
.then(function(response_and_data) {
208+
return response_and_data.data;
209+
});
210+
}
211+
212+
157213
}

src/api/DevicesV2PassApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import Error from '../model/Error';
2121
/**
2222
* DevicesV2Pass service.
2323
* @module api/DevicesV2PassApi
24-
* @version 2.0.1
24+
* @version 2.0.2
2525
*/
2626
export default class DevicesV2PassApi {
2727

src/api/DevicesV2TagsApi.js

Lines changed: 1 addition & 1 deletion
38B3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import Tag from '../model/Tag';
2020
/**
2121
* DevicesV2Tags service.
2222
* @module api/DevicesV2TagsApi
23-
* @version 2.0.1
23+
* @version 2.0.2
2424
*/
2525
export default class DevicesV2TagsApi {
2626

0 commit comments

Comments
 (0)
0