8000 Regenerate client from commit 4b701bb of spec repo by github-actions[bot] · Pull Request #50 · arduino/iot-client-js · GitHub
[go: up one dir, main page]

Skip to content

Regenerate client from commit 4b701bb of spec repo #50

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Regenerate client from commit 4b701bb of spec repo
  • Loading branch information
ArduinoBot committed Sep 2, 2021
commit 77dddc4b8099a04cb440ead1e11ca92a40c41f8b
4 changes: 2 additions & 2 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"spec_versions": {
"v2": {
"apigentools_version": "1.1.0",
"regenerated": "2021-08-24 10:04:47.455878",
"spec_repo_commit": "8ca846d"
"regenerated": "2021-09-02 14:52:56.443900",
"spec_repo_commit": "4b701bb"
}
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@arduino/arduino-iot-client",
"version": "1.3.6",
"version": "1.3.7",
"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",
"license": "GPLv3",
"main": "dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/ApiClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import querystring from "querystring";

/**
* @module ApiClient
* @version 1.3.6
* @version 1.3.7
*/

/**
Expand Down
16 changes: 8 additions & 8 deletions src/api/DevicesV2Api.js
8000
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import PropertiesValues from '../model/PropertiesValues';
/**
* DevicesV2 service.
* @module api/DevicesV2Api
* @version 1.3.6
* @version 1.3.7
*/
export default class DevicesV2Api {

Expand Down Expand Up @@ -65,7 +65,7 @@ export default class DevicesV2Api {
};

let authNames = ['oauth2'];
let contentTypes = ['application/json'];
let contentTypes = ['application/json', 'application/x-www-form-urlencoded'];
let accepts = ['application/json'];
let returnType = ArduinoDevicev2;
return this.apiClient.callApi(
Expand Down Expand Up @@ -199,7 +199,7 @@ export default class DevicesV2Api {
* GET device properties
* @param {String} id The id of the device
* @param {Object} opts Optional parameters
* @param {Boolean} opts.showDeleted If true, shows the soft deleted properties
* @param {Boolean} opts.showDeleted If true, shows the soft deleted properties (default to false)
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ArduinoDevicev2properties} and HTTP response
*/
devicesV2GetPropertiesWithHttpInfo(id, opts) {
Expand Down Expand Up @@ -237,7 +237,7 @@ export default class DevicesV2Api {
* GET device properties
* @param {String} id The id of the device
* @param {Object} opts Optional parameters
* @param {Boolean} opts.showDeleted If true, shows the soft deleted properties
* @param {Boolean} opts.showDeleted If true, shows the soft deleted properties (default to false)
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ArduinoDevicev2properties}
*/
devicesV2GetProperties(id, opts) {
Expand All @@ -252,7 +252,7 @@ export default class DevicesV2Api {
* list devices_v2
* Returns the list of devices associated to the user
* @param {Object} opts Optional parameters
* @param {Boolean} opts.acrossUserIds If true, returns all the devices
* @param {Boolean} opts.acrossUserIds If true, returns all the devices (default to false)
* @param {String} opts.serial Filter by device serial number
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/ArduinoDevicev2>} and HTTP response
*/
Expand Down Expand Up @@ -286,7 +286,7 @@ export default class DevicesV2Api {
* list devices_v2
* Returns the list of devices associated to the user
* @param {Object} opts Optional parameters
* @param {Boolean} opts.acrossUserIds If true, returns all the devices
* @param {Boolean} opts.acrossUserIds If true, returns all the devices (default to false)
* @param {String} opts.serial Filter by device serial number
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/ArduinoDevicev2>}
*/
Expand Down Expand Up @@ -439,7 +439,7 @@ export default class DevicesV2Api {
};

let authNames = ['oauth2'];
let contentTypes = ['application/json'];
let contentTypes = ['application/json', 'application/x-www-form-urlencoded'];
let accepts = ['application/json'];
let returnType = ArduinoDevicev2;
return this.apiClient.callApi(
Expand Down Expand Up @@ -493,7 +493,7 @@ export default class DevicesV2Api {
};

let authNames = ['oauth2'];
let contentTypes = ['application/json'];
let contentTypes = ['application/json', 'application/x-www-form-urlencoded'];
let accepts = ['application/json'];
let returnType = null;
return this.apiClient.callApi(
Expand Down
6 changes: 3 additions & 3 deletions src/api/DevicesV2CertsApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import Error from '../model/Error';
/**
* DevicesV2Certs service.
* @module api/DevicesV2CertsApi
* @version 1.3.6
* @version 1.3.7
*/
export default class DevicesV2CertsApi {

Expand Down Expand Up @@ -67,7 +67,7 @@ export default class DevicesV2CertsApi {
};

let authNames = ['oauth2'];
let contentTypes = ['application/json'];
let contentTypes = ['application/json', 'application/x-www-form-urlencoded'];
let accepts = ['application/json'];
let returnType = ArduinoDevicev2Cert;
return this.apiClient.callApi(
Expand Down Expand Up @@ -285,7 +285,7 @@ export default class DevicesV2CertsApi {
};

let authNames = ['oauth2'];
let contentTypes = ['application/json'];
let contentTypes = ['application/json', 'application/x-www-form-urlencoded'];
let accepts = ['application/json'];
let returnType = ArduinoDevicev2Cert;
return this.apiClient.callApi(
Expand Down
154 changes: 154 additions & 0 deletions src/api/DevicesV2OtaApi.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
/**
* Arduino IoT Cloud API
* 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)
*
* The version of the OpenAPI document: 2.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/


import ApiClient from "../ApiClient";
import Devicev2Otabinaryurl from '../model/Devicev2Otabinaryurl';
import Error from '../model/Error';

/**
* DevicesV2Ota service.
* @module api/DevicesV2OtaApi
* @version 1.3.7
*/
export default class DevicesV2OtaApi {

/**
* Constructs a new DevicesV2OtaApi.
* @alias module:api/DevicesV2OtaApi
* @class
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
* default to {@link module:ApiClient#instance} if unspecified.
*/
constructor(apiClient) {
this.apiClient = apiClient || ApiClient.instance;
}



/**
* send devices_v2_ota
* Send a binary url to a device
* @param {String} id The id of the device
* @param {module:model/Devicev2Otabinaryurl} devicev2Otabinaryurl
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
*/
devicesV2OtaSendWithHttpInfo(id, devicev2Otabinaryurl) {
let postBody = devicev2Otabinaryurl;
// verify the required parameter 'id' is set
if (id === undefined || id === null) {
throw new Error("Missing the required parameter 'id' when calling devicesV2OtaSend");
}
// verify the required parameter 'devicev2Otabinaryurl' is set
if (devicev2Otabinaryurl === undefined || devicev2Otabinaryurl === null) {
throw new Error("Missing the required parameter 'devicev2Otabinaryurl' when calling devicesV2OtaSend");
}

let pathParams = {
'id': id
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};

let authNames = ['oauth2'];
let contentTypes = ['application/json', 'application/x-www-form-urlencoded'];
let accepts = ['application/json'];
let returnType = null;
return this.apiClient.callApi(
'/v2/devices/{id}/ota', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null
);
}

/**
* send devices_v2_ota
* Send a binary url to a device
* @param {String} id The id of the device
* @param {module:model/Devicev2Otabinaryurl} devicev2Otabinaryurl
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
devicesV2OtaSend(id, devicev2Otabinaryurl) {
return this.devicesV2OtaSendWithHttpInfo(id, devicev2Otabinaryurl)
.then(function(response_and_data) {
return response_and_data.data;
});
}


/**
* upload devices_v2_ota
* Upload a binary and send it to a device
* @param {String} id The id of the device
* @param {File} otaFile OTA file
* @param {Object} opts Optional parameters
* @param {Number} opts.expireInMins Binary expire time in minutes, default 10 mins (default to 10)
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
*/
devicesV2OtaUploadWithHttpInfo(id, otaFile, opts) {
opts = opts || {};
let postBody = null;
// verify the required parameter 'id' is set
if (id === undefined || id === null) {
throw new Error("Missing the required parameter 'id' when calling devicesV2OtaUpload");
}
// verify the required parameter 'otaFile' is set
if (otaFile === undefined || otaFile === null) {
throw new Error("Missing the required parameter 'otaFile' when calling devicesV2OtaUpload");
}

let pathParams = {
'id': id
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
'expire_in_mins': opts['expireInMins'],
'ota_file': otaFile
};

let authNames = ['oauth2'];
let contentTypes = ['multipart/form-data'];
let accepts = ['application/json'];
let returnType = null;
return this.apiClient.callApi(
'/v2/devices/{id}/ota', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null
);
}

/**
* upload devices_v2_ota
* Upload a binary and send it to a device
* @param {String} id The id of the device
* @param {File} otaFile OTA file
* @param {Object} opts Optional parameters
* @param {Number} opts.expireInMins Binary expire time in minutes, default 10 mins (default to 10)
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
devicesV2OtaUpload(id, otaFile, opts) {
return this.devicesV2OtaUploadWithHttpInfo(id, otaFile, opts)
.then(function(response_and_data) {
return response_and_data.data;
});
}


}
10 changes: 5 additions & 5 deletions src/api/DevicesV2PassApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import Error from '../model/Error';
/**
* DevicesV2Pass service.
* @module api/DevicesV2PassApi
* @version 1.3.6
* @version 1.3.7
*/
export default class DevicesV2PassApi {

Expand Down Expand Up @@ -67,7 +67,7 @@ export default class DevicesV2PassApi {
};

let authNames = ['oauth2'];
let contentTypes = ['application/json'];
let contentTypes = ['application/json', 'application/x-www-form-urlencoded'];
let accepts = ['application/json'];
let returnType = null;
return this.apiClient.callApi(
Expand Down Expand Up @@ -145,7 +145,7 @@ export default class DevicesV2PassApi {
* Returns whether the password for this device is set or not. It doesn't return the password.
* @param {String} id The id of the device
* @param {Object} opts Optional parameters
* @param {Boolean} opts.suggestedPassword If true, return a suggested password
* @param {Boolean} opts.suggestedPassword If true, return a suggested password (default to false)
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ArduinoDevicev2Pass} and HTTP response
*/
devicesV2PassGetWithHttpInfo(id, opts) {
Expand Down Expand Up @@ -183,7 +183,7 @@ export default class DevicesV2PassApi {
* Returns whether the password for this device is set or not. It doesn't return the password.
* @param {String} id The id of the device
* @param {Object} opts Optional parameters
* @param {Boolean} opts.suggestedPassword If true, return a suggested password
* @param {Boolean} opts.suggestedPassword If true, return a suggested password (default to false)
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ArduinoDevicev2Pass}
*/
devicesV2PassGet(id, opts) {
Expand Down Expand Up @@ -223,7 +223,7 @@ export default class DevicesV2PassApi {
};

let authNames = ['oauth2'];
let contentTypes = ['application/json'];
let contentTypes = ['application/json', 'application/x-www-form-urlencoded'];
let accepts = ['application/json'];
let returnType = ArduinoDevicev2Pass;
return this.apiClient.callApi(
Expand Down
Loading
0