8000 Regenerate client from commit 1e2d832 of spec repo (#52) · arduino/iot-client-js@0cb7344 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0cb7344

Browse files
github-actions[bot]ArduinoBotPaolo Calao
authored
Regenerate client from commit 1e2d832 of spec repo (#52)
* Regenerate client from commit 1e2d832 of spec repo * trigger tests Co-authored-by: ArduinoBot <arduinobot@arduino.cc> Co-authored-by: Paolo Calao <p.calao@arduino.cc>
1 parent 06d4c31 commit 0cb7344

File tree

73 files changed

+683
-78
lines changed

Some content is hidden

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

73 files changed

+683
-78
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-09-30 08:17:03.876087",
8-
"spec_repo_commit": "1b84fd4"
7+
"regenerated": "2021-11-02 14:21:06.247426",
8+
"spec_repo_commit": "1e2d832"
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.8",
3+
"version": "1.3.9",
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.8
20+
* @version 1.3.9
2121
*/
2222

2323
/**

src/api/DashboardsV2Api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
2525
/**
2626
* DashboardsV2 service.
2727
* @module api/DashboardsV2Api
28-
* @version 1.3.8
28+
* @version 1.3.9
2929
*/
3030
export default class DashboardsV2Api {
3131

src/api/DevicesV2Api.js

Lines changed: 5 additions & 2 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.8
28+
* @version 1.3.9
2929
*/
3030
export default class DevicesV2Api {
3131

@@ -254,6 +254,7 @@ export default class DevicesV2Api {
254254
* @param {Object} opts Optional parameters
255255
* @param {Boolean} opts.acrossUserIds If true, returns all the devices (default to false)
256256
* @param {String} opts.serial Filter by device serial number
257+
* @param {Array.<String>} opts.tags Filter by tags
257258
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/ArduinoDevicev2>} and HTTP response
258259
*/
259260
devicesV2ListWithHttpInfo(opts) {
@@ -264,7 +265,8 @@ export default class DevicesV2Api {
264265
};
265266
let queryParams = {
266267
'across_user_ids': opts['acrossUserIds'],
267-
'serial': opts['serial']
268+
'serial': opts['serial'],
269+
'tags': this.apiClient.buildCollectionParam(opts['tags'], 'multi')
268270
};
269271
let headerParams = {
270272
};
@@ -288,6 +290,7 @@ export default class DevicesV2Api {
288290
* @param {Object} opts Optional parameters
289291
* @param {Boolean} opts.acrossUserIds If true, returns all the devices (default to false)
290292
* @param {String} opts.serial Filter by device serial number
293+
* @param {Array.<String>} opts.tags Filter by tags
291294
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/ArduinoDevicev2>}
292295
*/
293296
devicesV2List(opts) {

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 1.3.8
24+
* @version 1.3.9
2525
*/
2626
export default class DevicesV2CertsApi {
2727

src/api/DevicesV2OtaApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import Error from '../model/Error';
1919
/**
2020
* DevicesV2Ota service.
2121
* @module api/DevicesV2OtaApi
22-
* @version 1.3.8
22+
* @version 1.3.9
2323
*/
2424
export default class DevicesV2OtaApi {
2525

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 1.3.8
24+
* @version 1.3.9
2525
*/
2626
export default class DevicesV2PassApi {
2727

src/api/DevicesV2TagsApi.js

Lines changed: 197 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,197 @@
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 ArduinoTags from '../model/ArduinoTags';
17+
import Error from '../model/Error';
18+
import Tag from '../model/Tag';
19+
20+
/**
21+
* DevicesV2Tags service.
22+
* @module api/DevicesV2TagsApi
23+
* @version 1.3.9
24+
*/
25+
export default class DevicesV2TagsApi {
26+
27+
/**
28+
* Constructs a new DevicesV2TagsApi.
29+
* @alias module:api/DevicesV2TagsApi
30+
* @class
31+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
32+
* default to {@link module:ApiClient#instance} if unspecified.
33+
*/
34+
constructor(apiClient) {
35+
this.apiClient = apiClient || ApiClient.instance;
36+
}
37+
38+
39+
40+
/**
41+
* delete devices_v2_tags
42+
* Delete a tag associated to the device given its key.
43+
* @param {String} id The id of the device
44+
* @param {String} key The key of the tag
45+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
46+
*/
47+
devicesV2TagsDeleteWithHttpInfo(id, key) {
48+
let postBody = null;
49+
// verify the required parameter 'id' is set
50+
if (id === undefined || id === null) {
51+
throw new Error("Missing the required parameter 'id' when calling devicesV2TagsDelete");
52+
}
53+
// verify the required parameter 'key' is set
54+
if (key === undefined || key === null) {
55+
throw new Error("Missing the required parameter 'key' when calling devicesV2TagsDelete");
56+
}
57+
58+
let pathParams = {
59+
'id': id,
60+
'key': key
61+
};
62+
let queryParams = {
63+
};
64+
let headerParams = {
65+
};
66+
let formParams = {
67+
};
68+
69+
let authNames = ['oauth2'];
70+
let contentTypes = [];
71+
let accepts = ['application/json'];
72+
let returnType = null;
73+
return this.apiClient.callApi(
74+
'/v2/devices/{id}/tags/{key}', 'DELETE',
75+
pathParams, queryParams, headerParams, formParams, postBody,
76+
authNames, contentTypes, accepts, returnType, null
77+
);
78+
}
79+
80+
/**
81+
* delete devices_v2_tags
82+
* Delete a tag associated to the device given its key.
83+
* @param {String} id The id of the device
84+
* @param {String} key The key of the tag
85+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
86+
*/
87+
devicesV2TagsDelete(id, key) {
88+
return this.devicesV2TagsDeleteWithHttpInfo(id, key)
89+
.then(function(response_and_data) {
90+
return response_and_data.data;
91+
});
92+
}
93+
94+
95+
/**
96+
* list devices_v2_tags
97+
* List tags associated to the device.
98+
* @param {String} id The id of the device
99+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ArduinoTags} and HTTP response
100+
*/
101+
devicesV2TagsListWithHttpInfo(id) {
102+
let postBody = null;
103+
// verify the required parameter 'id' is set
104+
if (id === undefined || id === null) {
105+
throw new Error("Missing the required parameter 'id' when calling devicesV2TagsList");
106+
}
107+
108+
let pathParams = {
109+
'id': id
110+
};
111+
let queryParams = {
112+
};
113+
let headerParams = {
114+
};
115+
let formParams = {
116+
};
117+
118+
let authNames = ['oauth2'];
119+
let contentTypes = [];
120+
let accepts = ['application/json'];
121+
let returnType = ArduinoTags;
122+
return this.apiClient.callApi(
123+
'/v2/devices/{id}/tags', 'GET',
124+
pathParams, queryParams, headerParams, formParams, postBody,
125+
authNames, contentTypes, accepts, returnType, null
126+
);
127+
}
128+
129+
/**
130+
* list devices_v2_tags
131+
* List tags associated to the device.
132+
* @param {String} id The id of the device
133+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ArduinoTags}
134+
*/
135+
devicesV2TagsList(id) {
136+
return this.devicesV2TagsListWithHttpInfo(id)
137+
.then(function(response_and_data) {
138+
return response_and_data.data;
139+
});
140+
}
141+
142+
143+
/**
144+
* upsert devices_v2_tags
145+
* Creates or updates a tag associated to the device.
146+
* @param {String} id The id of the device
147+
* @param {module:model/Tag} tag
148+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
149+
*/
150+
devicesV2TagsUpsertWithHttpInfo(id, tag) {
151+
let postBody = tag;
152+
// verify the required parameter 'id' is set
153+
if (id === undefined || id === null) {
154+
throw new Error("Missing the required parameter 'id' when calling devicesV2TagsUpsert");
155+
}
156+
// verify the required parameter 'tag' is set
157+
if (tag === undefined || tag === null) {
158+
throw new Error("Missing the required parameter 'tag' when calling devicesV2TagsUpsert");
159+
}
160+
161+
let pathParams = {
162+
'id': id
163+
};
164+
let queryParams = {
165+
};
166+
let headerParams = {
167+
};
168+
let formParams = {
169+
};
170+
171+
let authNames = ['oauth2'];
172+
let contentTypes = ['application/json', 'application/x-www-form-urlencoded'];
173+
let accepts = ['application/json'];
174+
let returnType = null;
175+
return this.apiClient.callApi(
176+
'/v2/devices/{id}/tags', 'PUT',
177+
pathParams, queryParams, headerParams, formParams, postBody,
178+
authNames, contentTypes, accepts, returnType, null
179+
);
180+
}
181+
182+
/**
183+
* upsert devices_v2_tags
184+
* Creates or updates a tag associated to the device.
185+
* @param {String} id The id of the device
186+
* @param {module:model/Tag} tag
187+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
188+
*/
189+
devicesV2TagsUpsert(id, tag) {
190+
return this.devicesV2TagsUpsertWithHttpInfo(id, tag)
191+
.then(function(response_and_data) {
192+
return response_and_data.data;
193+
});
194+
}
195+
196+
197+
}

src/api/PropertiesV2Api.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import PropertyValue from '../model/PropertyValue';
2222
/**
2323
* PropertiesV2 service.
2424
* @module api/PropertiesV2Api
25-
* @version 1.3.8
25+
* @version 1.3.9
2626
*/
2727
export default class PropertiesV2Api {
2828

@@ -332,13 +332,13 @@ export default class PropertiesV2Api {
332332

333333
/**
334334
* timeseries properties_v2
335-
* Get numerical property's historic data binned on a specified time interval (note: the total number of data points should NOT be greater than 1000 otherwise the result could be truncated)
335+
* Get numerical property's historic data binned on a specified time interval (note: the total number of data points should NOT be greater than 1000 otherwise the result will be truncated)
336336
* @param {String} id The id of the thing
337337
* @param {String} pid ID of a numerical property
338338
* @param {Object} opts Optional parameters
339339
* @param {Boolean} opts.desc Whether data's ordering (by time) should be descending (default to false)
340340
* @param {String} opts.from Get data with a timestamp >= to this date (default: 2 weeks ago, min: 1842-01-01T00:00:00Z, max: 2242-01-01T00:00:00Z)
341-
* @param {Number} opts.interval Binning interval in seconds (ex. 15mins are 15*60) (default to 1800)
341+
* @param {Number} opts.interval Binning interval in seconds (defaut: the smallest possible value compatibly with the limit of 1000 data points in the response)
342342
* @param {String} opts.to Get data with a timestamp < to this date (default: now, min: 1842-01-01T00:00:00Z, max: 2242-01-01T00:00:00Z)
343343
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ArduinoTimeseriesmedia} and HTTP response
344344
*/
@@ -382,13 +382,13 @@ export default class PropertiesV2Api {
382382

383383
/**
384384
* timeseries properties_v2
385-
* Get numerical property's historic data binned on a specified time interval (note: the total number of data points should NOT be greater than 1000 otherwise the result could be truncated)
385+
* Get numerical property's historic data binned on a specified time interval (note: the total number of data points should NOT be greater than 1000 otherwise the result will be truncated)
386386
* @param {String} id The id of the thing
387387
* @param {String} pid ID of a numerical property
388388
* @param {Object} opts Optional parameters
389389
* @param {Boolean} opts.desc Whether data's ordering (by time) should be descending (default to false)
390390
* @param {String} opts.from Get data with a timestamp >= to this date (default: 2 weeks ago, min: 1842-01-01T00:00:00Z, max: 2242-01-01T00:00:00Z)
391-
* @param {Number} opts.interval Binning interval in seconds (ex. 15mins are 15*60) (default to 1800)
391+
* @param {Number} opts.interval Binning interval in seconds (defaut: the smallest possible value compatibly with the limit of 1000 data points in the response)
392392
* @param {String} opts.to Get data with a timestamp < to this date (default: now, min: 1842-01-01T00:00:00Z, max: 2242-01-01T00:00:00Z)
393393
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ArduinoTimeseriesmedia}
394394
*/

0 commit comments

Comments
 (0)
0