8000 Regenerate client from commit 4b701bb of spec repo (#50) · arduino/iot-client-js@5990152 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5990152

Browse files
github-actions[bot]ArduinoBot
and
ArduinoBot
authored
Regenerate client from commit 4b701bb of spec repo (#50)
Co-authored-by: ArduinoBot <arduinobot@arduino.cc>
1 parent 7608548 commit 5990152

Some content is hidden

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

58 files changed

+606
-102
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": "2021-08-24 10:04:47.455878",
8-
"spec_repo_commit": "8ca846d"
7+
"regenerated": "2021-09-02 14:52:56.443900",
8+
"spec_repo_commit": "4b701bb"
99
}
1010
}
1111
}

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": "1.3.6",
3+
"version": "1.3.7",
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 1.3.6
20+
* @version 1.3.7
2121
*/
2222

2323
/**

src/api/DevicesV2Api.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import PropertiesValues from '../model/PropertiesValues';
2525
/**
2626
* DevicesV2 service.
2727
* @module api/DevicesV2Api
28-
* @version 1.3.6
28+
* @version 1.3.7
2929
*/
3030
export default class DevicesV2Api {
3131

@@ -65,7 +65,7 @@ export default class DevicesV2Api {
6565
};
6666

6767
let authNames = ['oauth2'];
68-
let contentTypes = ['application/json'];
68+
let contentTypes = ['application/json', 'application/x-www-form-urlencoded'];
6969
let accepts = ['application/json'];
7070
let returnType = ArduinoDevicev2;
7171
return this.apiClient.callApi(
@@ -199,7 +199,7 @@ export default class DevicesV2Api {
199199
* GET device properties
200200
* @param {String} id The id of the device
201201
* @param {Object} opts Optional parameters
202-
* @param {Boolean} opts.showDeleted If true, shows the soft deleted properties
202+
* @param {Boolean} opts.showDeleted If true, shows the soft deleted properties (default to false)
203203
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ArduinoDevicev2properties} and HTTP response
204204
*/
205205
devicesV2GetPropertiesWithHttpInfo(id, opts) {
@@ -237,7 +237,7 @@ export default class DevicesV2Api {
237237
* GET device properties
238238
* @param {String} id The id of the device
239239
* @param {Object} opts Optional parameters
240-
* @param {Boolean} opts.showDeleted If true, shows the soft deleted properties
240+
* @param {Boolean} opts.showDeleted If true, shows the soft deleted properties (default to false)
241241
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ArduinoDevicev2properties}
242242
*/
243243
devicesV2GetProperties(id, opts) {
@@ -252,7 +252,7 @@ export default class DevicesV2Api {
252252
* list devices_v2
253253
* Returns the list of devices associated to the user
254254
* @param {Object} opts Optional parameters
255-
* @param {Boolean} opts.acrossUserIds If true, returns all the devices
255+
* @param {Boolean} opts.acrossUserIds If true, returns all the devices (default to false)
256256
* @param {String} opts.serial Filter by device serial number
257257
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/ArduinoDevicev2>} and HTTP response
258258
*/
@@ -286,7 +286,7 @@ export default class DevicesV2Api {
286286
* list devices_v2
287287
* Returns the list of devices associated to the user
288288
* @param {Object} opts Optional parameters
289-
* @param {Boolean} opts.acrossUserIds If true, returns all the devices
289+
* @param {Boolean} opts.acrossUserIds If true, returns all the devices (default to false)
290290
* @param {String} opts.serial Filter by device serial number
291291
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/ArduinoDevicev2>}
292292
*/
@@ -439,7 +439,7 @@ export default class DevicesV2Api {
439439
};
440440

441441
let authNames = ['oauth2'];
442-
let contentTypes = ['application/json'];
442+
let contentTypes = ['application/json', 'application/x-www-form-urlencoded'];
443443
let accepts = ['application/json'];
444444
let returnType = ArduinoDevicev2;
445445
return this.apiClient.callApi(
@@ -493,7 +493,7 @@ export default class DevicesV2Api {
493493
};
494494

495495
let authNames = ['oauth2'];
496-
let contentTypes = ['application/json'];
496+
let contentTypes = ['application/json', 'application/x-www-form-urlencoded'];
497497
let accepts = ['application/json'];
498498
let returnType = null;
499499
return this.apiClient.callApi(

src/api/DevicesV2CertsApi.js

Lines changed: 3 additions & 3 deletions
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 1.3.6
24+
* @version 1.3.7
2525
*/
2626
export default class DevicesV2CertsApi {
2727

@@ -67,7 +67,7 @@ export default class DevicesV2CertsApi {
6767
};
6868

6969
let authNames = ['oauth2'];
70-
let contentTypes = ['application/json'];
70+
let contentTypes = ['application/json', 'application/x-www-form-urlencoded'];
7171
let accepts = ['application/json'];
7272
let returnType = ArduinoDevicev2Cert;
7373
return this.apiClient.callApi(
@@ -285,7 +285,7 @@ export default class DevicesV2CertsApi {
285285
};
286286

287287
let authNames = ['oauth2'];
288-
let contentTypes = ['application/json'];
288+
let contentTypes = ['application/json', 'application/x-www-form-urlencoded'];
289289
let accepts = ['application/json'];
290290
let returnType = ArduinoDevicev2Cert;
291291
return this.apiClient.callApi(

src/api/DevicesV2OtaApi.js

Lines changed: 154 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
1+
/**
2+
* Arduino IoT Cloud API
3+
* 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)
4+
*
5+
* The version of the OpenAPI document: 2.0
6+
*
7+
*
8+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9+
* https://openapi-generator.tech
10+
* Do not edit the class manually.
11+
*
12+
*/
13+
14+
15+
import ApiClient from "../ApiClient";
16+
import Devicev2Otabinaryurl from '../model/Devicev2Otabinaryurl';
17+
import Error from '../model/Error';
18+
19+
/**
20+
* DevicesV2Ota service.
21+
* @module api/DevicesV2OtaApi
22+
* @version 1.3.7
23+
*/
24+
export default class DevicesV2OtaApi {
25+
26+
/**
27+
* Constructs a new DevicesV2OtaApi.
28+
* @alias module:api/DevicesV2OtaApi
29+
* @class
30+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
31+
* default to {@link module:ApiClient#instance} if unspecified.
32+
*/
33+
constructor(apiClient) {
34+
this.apiClient = apiClient || ApiClient.instance;
35+
}
36+
37+
38+
39+
/**
40+
* send devices_v2_ota
41+
* Send a binary url to a device
42+
* @param {String} id The id of the device
43+
* @param {module:model/Devicev2Otabinaryurl} devicev2Otabinaryurl
44+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
45+
*/
46+
devicesV2OtaSendWithHttpInfo(id, devicev2Otabinaryurl) {
47+
let postBody = devicev2Otabinaryurl;
48+
// verify the required parameter 'id' is set
49+
if (id === undefined || id === null) {
50+
throw new Error("Missing the required parameter 'id' when calling devicesV2OtaSend");
51+
}
52+
// verify the required parameter 'devicev2Otabinaryurl' is set
53+
if (devicev2Otabinaryurl === undefined || devicev2Otabinaryurl === null) {
54+
throw new Error("Missing the required parameter 'devicev2Otabinaryurl' when calling devicesV2OtaSend");
55+
}
56+
57+
let pathParams = {
58+
'id': id
59+
};
60+
let queryParams = {
61+
};
62+
let headerParams = {
63+
};
64+
let formParams = {
65+
};
66+
67+
let authNames = ['oauth2'];
68+
let contentTypes = ['application/json', 'application/x-www-form-urlencoded'];
69+
let accepts = ['application/json'];
70+
let returnType = null;
71+
return this.apiClient.callApi(
72+
'/v2/devices/{id}/ota', 'PUT',
73+
pathParams, queryParams, headerParams, formParams, postBody,
74+
10000 authNames, contentTypes, accepts, returnType, null
75+
);
76+
}
77+
78+
/**
79+
* send devices_v2_ota
80+
* Send a binary url to a device
81+
* @param {String} id The id of the device
82+
* @param {module:model/Devicev2Otabinaryurl} devicev2Otabinaryurl
83+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
84+
*/
85+
devicesV2OtaSend(id, devicev2Otabinaryurl) {
86+
return this.devicesV2OtaSendWithHttpInfo(id, devicev2Otabinaryurl)
87+
.then(function(response_and_data) {
88+
return response_and_data.data;
89+
});
90+
}
91+
92+
93+
/**
94+
* upload devices_v2_ota
95+
* Upload a binary and send it to a device
96+
* @param {String} id The id of the device
97+
* @param {File} otaFile OTA file
98+
* @param {Object} opts Optional parameters
99+
* @param {Number} opts.expireInMins Binary expire time in minutes, default 10 mins (default to 10)
100+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
101+
*/
102+
devicesV2OtaUploadWithHttpInfo(id, otaFile, opts) {
103+
opts = opts || {};
104+
let postBody = null;
105+
// verify the required parameter 'id' is set
106+
if (id === undefined || id === null) {
107+
throw new Error("Missing the required parameter 'id' when calling devicesV2OtaUpload");
108+
}
109+
// verify the required parameter 'otaFile' is set
110+
if (otaFile === undefined || otaFile === null) {
111+
throw new Error("Missing the required parameter 'otaFile' when calling devicesV2OtaUpload");
112+
}
113+
114+
let pathParams = {
115+
'id': id
116+
};
117+
let queryParams = {
118+
};
119+
let headerParams = {
120+
};
121+
let formParams = {
122+
'expire_in_mins': opts['expireInMins'],
123+
'ota_file': otaFile
124+
};
125+
126+
let authNames = ['oauth2'];
127+
let contentTypes = ['multipart/form-data'];
128+
let accepts = ['application/json'];
129+
let returnType = null;
130+
return this.apiClient.callApi(
131+
'/v2/devices/{id}/ota', 'POST',
132+
pathParams, queryParams, headerParams, formParams, postBody,
133+
authNames, contentTypes, accepts, returnType, null
134+
);
135+
}
136+
137+
/**
138+
* upload devices_v2_ota
139+
* Upload a binary and send it to a device
140+
* @param {String} id The id of the device
141+
* @param {File} otaFile OTA file
142+
* @param {Object} opts Optional parameters
143+
* @param {Number} opts.expireInMins Binary expire time in minutes, default 10 mins (default to 10)
144+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
145+
*/
146+
devicesV2OtaUpload(id, otaFile, opts) {
147+
return this.devicesV2OtaUploadWithHttpInfo(id, otaFile, opts)
148+
.then(function(response_and_data) {
149+
return response_and_data.data;
150+
});
151+
}
152+
153+
154+
}

src/api/DevicesV2PassApi.js

Lines changed: 5 additions & 5 deletions
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 1.3.6
24+
* @version 1.3.7
2525
*/
2626
export default class DevicesV2PassApi {
2727

@@ -67,7 +67,7 @@ export default class DevicesV2PassApi {
6767
};
6868

6969
let authNames = ['oauth2'];
70-
let contentTypes = ['application/json'];
70+
let contentTypes = ['application/json', 'application/x-www-form-urlencoded'];
7171
let accepts = ['application/json'];
7272
let returnType = null;
7373
return this.apiClient.callApi(
@@ -145,7 +145,7 @@ export default class DevicesV2PassApi {
145145
* Returns whether the password for this device is set or not. It doesn't return the password.
146146
* @param {String} id The id of the device
147147
* @param {Object} opts Optional parameters
148-
* @param {Boolean} opts.suggestedPassword If true, return a suggested password
148+
* @param {Boolean} opts.suggestedPassword If true, return a suggested password (default to false)
149149
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ArduinoDevicev2Pass} and HTTP response
150150
*/
151151
devicesV2PassGetWithHttpInfo(id, opts) {
@@ -183,7 +183,7 @@ export default class DevicesV2PassApi {
183183
* Returns whether the password for this device is set or not. It doesn't return the password.
184184
* @param {String} id The id of the device
185185
* @param {Object} opts Optional parameters
186-
* @param {Boolean} opts.suggestedPassword If true, return a suggested password
186+
* @param {Boolean} opts.suggestedPassword If true, return a suggested password (default to false)
187187
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ArduinoDevicev2Pass}
188188
*/
189189
devicesV2PassGet(id, opts) {
@@ -223,7 +223,7 @@ export default class DevicesV2PassApi {
223223
};
224224

225225
let authNames = ['oauth2'];
226-
let contentTypes = ['application/json'];
226+
let contentTypes = ['application/json', 'application/x-www-form-urlencoded'];
227227
let accepts = ['application/json'];
228228
let returnType = ArduinoDevicev2Pass;
229229
return this.apiClient.callApi(

0 commit comments

Comments
 (0)
0