8000 Regenerate client from commit 6a8984f of spec repo (#32) · arduino/iot-client-js@ea07667 · GitHub
[go: up one dir, main page]

Skip to content

Commit ea07667

Browse files
github-actions[bot]ArduinoBot
andauthored
Regenerate client from commit 6a8984f of spec repo (#32)
Co-authored-by: ArduinoBot <arduinobot@arduino.cc>
1 parent 022efd2 commit ea07667

File tree

63 files changed

+2288
-196
lines changed

Some content is hidden

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

63 files changed

+2288
-196
lines changed

.apigentools-info

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{
22
"additional_stamps": [],
3-
"apigentools_version": "0.9.2",
4-
"codegen_version": "4.2.2",
5-
"info_version": "1",
6-
"image": null,
7-
"spec_repo_commit": "164fde2"
3+
"info_version": "2",
4+
"spec_versions": {
5+
"v2": {
6+
"apigentools_version": "1.0.0",
7+
"regenerated": "2020-05-12 10:32:16.527814",
8+
"spec_repo_commit": "6a8984f"
9+
}
10+
}
811
}

.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.2.2
1+
4.3.1

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@arduino/arduino-iot-client",
3-
"version": "1.2.0",
4-
"description": "Collection_of_all_public_API_endpoints_",
3+
"version": "1.3.0",
4+
"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",
77
"scripts": {

src/ApiClient.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
2-
* Iot API
3-
* Collection of all public API endpoints.
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)
44
*
55
* The version of the OpenAPI document: 2.0
66
*
@@ -17,7 +17,7 @@ import querystring from "querystring";
1717

1818
/**
1919
* @module ApiClient
20-
* @version 1.2.0
20+
* @version 1.3.0
2121
*/
2222

2323
/**
@@ -32,9 +32,9 @@ class ApiClient {
3232
/**
3333
* The base URL against which to resolve every API call's (relative) path.
3434
* @type {String}
35-
* @default http://api2.arduino.cc/iot
35+
* @default https://api2.arduino.cc/iot
3636
*/
37-
this.basePath = 'http://api2.arduino.cc/iot'.replace(/\/+$/, '');
37+
this.basePath = 'https://api2.arduino.cc/iot'.replace(/\/+$/, '');
3838

3939
/**
4040
* The authentication methods to be included for all API calls.
@@ -397,8 +397,6 @@ class ApiClient {
397397
if(contentType != 'multipart/form-data') {
398398
request.type(contentType);
399399
}
400-
} else if (!request.header['Content-Type']) {
401-
request.type('application/json');
402400
}
403401

404402
if (contentType === 'application/x-www-form-urlencoded') {
@@ -416,6 +414,9 @@ class ApiClient {
416414
}
417415
}
418416
} else if (bodyParam !== null && bodyParam !== undefined) {
417+
if (!request.header['Content-Type']) {
418+
request.type('application/json');
419+
}
419420
request.send(bodyParam);
420421
}
421422

@@ -554,7 +555,7 @@ class ApiClient {
554555
hostSettings() {
555556
return [
556557
{
557-
'url': "http://api2.arduino.cc/iot",
558+
'url': "https://api2.arduino.cc/iot",
558559
'description': "No description provided",
559560
}
560561
];

src/api/DevicesV2Api.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
2-
* Iot API
3-
* Collection of all public API endpoints.
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)
44
*
55
* The version of the OpenAPI document: 2.0
66
*
@@ -25,7 +25,7 @@ import PropertiesValues from '../model/PropertiesValues';
2525
/**
2626
* DevicesV2 service.
2727
* @module api/DevicesV2Api
28-
* @version 1.2.0
28+
* @version 1.3.0
2929
*/
3030
export default class DevicesV2Api {
3131

@@ -114,7 +114,7 @@ export default class DevicesV2Api {
114114

115115
let authNames = ['oauth2'];
116116
let contentTypes = [];
117-
let accepts = [];
117+
let accepts = ['application/json'];
118118
let returnType = null;
119119
return this.apiClient.callApi(
120120
'/v2/devices/{id}', 'DELETE',
@@ -491,7 +491,7 @@ export default class DevicesV2Api {
491491

492492
let authNames = ['oauth2'];
493493
let contentTypes = ['application/json'];
494-
let accepts = [];
494+
let accepts = ['application/json'];
495495
let returnType = null;
496496
return this.apiClient.callApi(
497497
'/v2/devices/{id}/properties', 'PUT',

0 commit comments

Comments
 (0)
0