From cfebf23d7f3b21633656c7d66d9250d35daade25 Mon Sep 17 00:00:00 2001
From: ArduinoBot
Date: Thu, 30 Sep 2021 08:18:13 +0000
Subject: [PATCH 1/2] Regenerate client from commit 1b84fd4 of spec repo
---
.apigentools-info | 4 +-
package.json | 2 +-
src/ApiClient.js | 2 +-
src/api/DashboardsV2Api.js | 564 ++++++++++++++++++
src/api/DevicesV2Api.js | 2 +-
src/api/DevicesV2CertsApi.js | 2 +-
src/api/DevicesV2OtaApi.js | 2 +-
src/api/DevicesV2PassApi.js | 2 +-
src/api/PropertiesV2Api.js | 2 +-
src/api/SeriesV2Api.js | 2 +-
src/api/ThingsV2Api.js | 2 +-
src/index.js | 79 ++-
src/model/ArduinoCompressedv2.js | 2 +-
src/model/ArduinoDashboardshare.js | 86 +++
src/model/ArduinoDashboardv2.js | 125 ++++
src/model/ArduinoDevicev2.js | 2 +-
src/model/ArduinoDevicev2Cert.js | 2 +-
src/model/ArduinoDevicev2EventProperties.js | 2 +-
src/model/ArduinoDevicev2Pass.js | 2 +-
src/model/ArduinoDevicev2SimpleProperties.js | 2 +-
src/model/ArduinoDevicev2Webhook.js | 2 +-
src/model/ArduinoDevicev2properties.js | 2 +-
src/model/ArduinoDevicev2propertyvalue.js | 2 +-
.../ArduinoDevicev2propertyvalueValue.js | 2 +-
...inoDevicev2propertyvalueValueStatistics.js | 2 +-
src/model/ArduinoDevicev2propertyvalues.js | 2 +-
...oDevicev2propertyvaluesLastEvaluatedKey.js | 2 +-
src/model/ArduinoLinkedvariable.js | 159 +++++
src/model/ArduinoProperty.js | 2 +-
src/model/ArduinoSeriesBatch.js | 2 +-
src/model/ArduinoSeriesRawBatch.js | 2 +-
src/model/ArduinoSeriesRawBatchLastvalue.js | 2 +-
.../ArduinoSeriesRawLastValueResponse.js | 2 +-
src/model/ArduinoSeriesRawResponse.js | 2 +-
src/model/ArduinoSeriesResponse.js | 2 +-
src/model/ArduinoThing.js | 2 +-
src/model/ArduinoTimeseriesmedia.js | 2 +-
src/model/ArduinoVariableslinks.js | 75 +++
src/model/ArduinoWidgetv2.js | 238 ++++++++
src/model/BatchLastValueRequestsMediaV1.js | 2 +-
.../BatchQueryRawLastValueRequestMediaV1.js | 2 +-
src/model/BatchQueryRawRequestMediaV1.js | 2 +-
src/model/BatchQueryRawRequestsMediaV1.js | 2 +-
.../BatchQueryRawResponseSeriesMediaV1.js | 2 +-
src/model/BatchQueryRequestMediaV1.js | 2 +-
src/model/BatchQueryRequestsMediaV1.js | 2 +-
src/model/CheckDevicesV2PassPayload.js | 2 +-
src/model/CreateDevicesV2CertsPayload.js | 2 +-
src/model/CreateDevicesV2Payload.js | 2 +-
src/model/Dashboardshare.js | 81 +++
src/model/Dashboardv2.js | 83 +++
src/model/Devicev2.js | 2 +-
src/model/Devicev2Cert.js | 2 +-
src/model/Devicev2Otabinaryurl.js | 2 +-
src/model/Devicev2Pass.js | 2 +-
src/model/Error.js | 2 +-
src/model/HistoricDataRequest.js | 2 +-
src/model/InlineObject.js | 2 +-
src/model/PropertiesValue.js | 2 +-
src/model/PropertiesValues.js | 2 +-
src/model/Property.js | 2 +-
src/model/PropertyValue.js | 2 +-
src/model/Sharerequest.js | 72 +++
src/model/Thing.js | 2 +-
src/model/ThingSketch.js | 2 +-
src/model/TimeseriesDataPoint.js | 2 +-
src/model/UpdateSketch.js | 2 +-
src/model/Widget.js | 194 ++++++
src/model/Widgetlink.js | 71 +++
69 files changed, 1884 insertions(+), 59 deletions(-)
create mode 100644 src/api/DashboardsV2Api.js
create mode 100644 src/model/ArduinoDashboardshare.js
create mode 100644 src/model/ArduinoDashboardv2.js
create mode 100644 src/model/ArduinoLinkedvariable.js
create mode 100644 src/model/ArduinoVariableslinks.js
create mode 100644 src/model/ArduinoWidgetv2.js
create mode 100644 src/model/Dashboardshare.js
create mode 100644 src/model/Dashboardv2.js
create mode 100644 src/model/Sharerequest.js
create mode 100644 src/model/Widget.js
create mode 100644 src/model/Widgetlink.js
diff --git a/.apigentools-info b/.apigentools-info
index dc442b3..a04b948 100644
--- a/.apigentools-info
+++ b/.apigentools-info
@@ -4,8 +4,8 @@
"spec_versions": {
"v2": {
"apigentools_version": "1.1.0",
- "regenerated": "2021-09-02 14:52:56.443900",
- "spec_repo_commit": "4b701bb"
+ "regenerated": "2021-09-30 08:17:03.876087",
+ "spec_repo_commit": "1b84fd4"
}
}
}
\ No newline at end of file
diff --git a/package.json b/package.json
index 9de6f17..256d6c2 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@arduino/arduino-iot-client",
- "version": "1.3.7",
+ "version": "1.3.8",
"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",
diff --git a/src/ApiClient.js b/src/ApiClient.js
index f6bbbe0..6af6240 100644
--- a/src/ApiClient.js
+++ b/src/ApiClient.js
@@ -17,7 +17,7 @@ import querystring from "querystring";
/**
* @module ApiClient
-* @version 1.3.7
+* @version 1.3.8
*/
/**
diff --git a/src/api/DashboardsV2Api.js b/src/api/DashboardsV2Api.js
new file mode 100644
index 0000000..245d41c
--- /dev/null
+++ b/src/api/DashboardsV2Api.js
@@ -0,0 +1,564 @@
+/**
+ * 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 ArduinoDashboardshare from '../model/ArduinoDashboardshare';
+import ArduinoDashboardv2 from '../model/ArduinoDashboardv2';
+import ArduinoVariableslinks from '../model/ArduinoVariableslinks';
+import Dashboardshare from '../model/Dashboardshare';
+import Dashboardv2 from '../model/Dashboardv2';
+import Error from '../model/Error';
+import Sharerequest from '../model/Sharerequest';
+import Widgetlink from '../model/Widgetlink';
+
+/**
+* DashboardsV2 service.
+* @module api/DashboardsV2Api
+* @version 1.3.8
+*/
+export default class DashboardsV2Api {
+
+ /**
+ * Constructs a new DashboardsV2Api.
+ * @alias module:api/DashboardsV2Api
+ * @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;
+ }
+
+
+
+ /**
+ * create dashboards_v2
+ * Create a new dashboard
+ * @param {module:model/Dashboardv2} dashboardv2 DashboardV2Payload describes a dashboard
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ArduinoDashboardv2} and HTTP response
+ */
+ dashboardsV2CreateWithHttpInfo(dashboardv2) {
+ let postBody = dashboardv2;
+ // verify the required parameter 'dashboardv2' is set
+ if (dashboardv2 === undefined || dashboardv2 === null) {
+ throw new Error("Missing the required parameter 'dashboardv2' when calling dashboardsV2Create");
+ }
+
+ let pathParams = {
+ };
+ let queryParams = {
+ };
+ let headerParams = {
+ };
+ let formParams = {
+ };
+
+ let authNames = [];
+ let contentTypes = ['application/json', 'application/x-www-form-urlencoded'];
+ let accepts = ['application/json'];
+ let returnType = ArduinoDashboardv2;
+ return this.apiClient.callApi(
+ '/v2/dashboards', 'POST',
+ pathParams, queryParams, headerParams, formParams, postBody,
+ authNames, contentTypes, accepts, returnType, null
+ );
+ }
+
+ /**
+ * create dashboards_v2
+ * Create a new dashboard
+ * @param {module:model/Dashboardv2} dashboardv2 DashboardV2Payload describes a dashboard
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ArduinoDashboardv2}
+ */
+ dashboardsV2Create(dashboardv2) {
+ return this.dashboardsV2CreateWithHttpInfo(dashboardv2)
+ .then(function(response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+
+ /**
+ * delete dashboards_v2
+ * Delete a dashboard
+ * @param {String} id The id of the dashboard
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
+ */
+ dashboardsV2DeleteWithHttpInfo(id) {
+ 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 dashboardsV2Delete");
+ }
+
+ let pathParams = {
+ 'id': id
+ };
+ let queryParams = {
+ };
+ let headerParams = {
+ };
+ let formParams = {
+ };
+
+ let authNames = [];
+ let contentTypes = [];
+ let accepts = ['application/json'];
+ let returnType = null;
+ return this.apiClient.callApi(
+ '/v2/dashboards/{id}', 'DELETE',
+ pathParams, queryParams, headerParams, formParams, postBody,
+ authNames, contentTypes, accepts, returnType, null
+ );
+ }
+
+ /**
+ * delete dashboards_v2
+ * Delete a dashboard
+ * @param {String} id The id of the dashboard
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
+ */
+ dashboardsV2Delete(id) {
+ return this.dashboardsV2DeleteWithHttpInfo(id)
+ .then(function(response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+
+ /**
+ * deleteShare dashboards_v2
+ * Delete a user the dashboard has been shared with
+ * @param {String} id The id of the dashboard
+ * @param {String} userId The id of the user
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
+ */
+ dashboardsV2DeleteShareWithHttpInfo(id, userId) {
+ 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 dashboardsV2DeleteShare");
+ }
+ // verify the required parameter 'userId' is set
+ if (userId === undefined || userId === null) {
+ throw new Error("Missing the required parameter 'userId' when calling dashboardsV2DeleteShare");
+ }
+
+ let pathParams = {
+ 'id': id,
+ 'user_id': userId
+ };
+ let queryParams = {
+ };
+ let headerParams = {
+ };
+ let formParams = {
+ };
+
+ let authNames = [];
+ let contentTypes = [];
+ let accepts = ['application/json'];
+ let returnType = null;
+ return this.apiClient.callApi(
+ '/v2/dashboards/{id}/shares/{user_id}', 'DELETE',
+ pathParams, queryParams, headerParams, formParams, postBody,
+ authNames, contentTypes, accepts, returnType, null
+ );
+ }
+
+ /**
+ * deleteShare dashboards_v2
+ * Delete a user the dashboard has been shared with
+ * @param {String} id The id of the dashboard
+ * @param {String} userId The id of the user
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
+ */
+ dashboardsV2DeleteShare(id, userId) {
+ return this.dashboardsV2DeleteShareWithHttpInfo(id, userId)
+ .then(function(response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+
+ /**
+ * link dashboards_v2
+ * Link or detach widget variables
+ * @param {String} id The id of the dashboard
+ * @param {String} widgetId The id of the widget
+ * @param {module:model/Widgetlink} widgetlink
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ArduinoVariableslinks} and HTTP response
+ */
+ dashboardsV2LinkWithHttpInfo(id, widgetId, widgetlink) {
+ let postBody = widgetlink;
+ // verify the required parameter 'id' is set
+ if (id === undefined || id === null) {
+ throw new Error("Missing the required parameter 'id' when calling dashboardsV2Link");
+ }
+ // verify the required parameter 'widgetId' is set
+ if (widgetId === undefined || widgetId === null) {
+ throw new Error("Missing the required parameter 'widgetId' when calling dashboardsV2Link");
+ }
+ // verify the required parameter 'widgetlink' is set
+ if (widgetlink === undefined || widgetlink === null) {
+ throw new Error("Missing the required parameter 'widgetlink' when calling dashboardsV2Link");
+ }
+
+ let pathParams = {
+ 'id': id,
+ 'widgetId': widgetId
+ };
+ let queryParams = {
+ };
+ let headerParams = {
+ };
+ let formParams = {
+ };
+
+ let authNames = [];
+ let contentTypes = ['application/json', 'application/x-www-form-urlencoded'];
+ let accepts = ['application/json'];
+ let returnType = ArduinoVariableslinks;
+ return this.apiClient.callApi(
+ '/v2/dashboards/{id}/widgets/{widgetId}/variables', 'PUT',
+ pathParams, queryParams, headerParams, formParams, postBody,
+ authNames, contentTypes, accepts, returnType, null
+ );
+ }
+
+ /**
+ * link dashboards_v2
+ * Link or detach widget variables
+ * @param {String} id The id of the dashboard
+ * @param {String} widgetId The id of the widget
+ * @param {module:model/Widgetlink} widgetlink
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ArduinoVariableslinks}
+ */
+ dashboardsV2Link(id, widgetId, widgetlink) {
+ return this.dashboardsV2LinkWithHttpInfo(id, widgetId, widgetlink)
+ .then(function(response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+
+ /**
+ * list dashboards_v2
+ * Returns the list of dashboards
+ * @param {Object} opts Optional parameters
+ * @param {String} opts.name The name of the dashboard
+ * @param {String} opts.userId The user_id of the dashboard's owner
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.} and HTTP response
+ */
+ dashboardsV2ListWithHttpInfo(opts) {
+ opts = opts || {};
+ let postBody = null;
+
+ let pathParams = {
+ };
+ let queryParams = {
+ 'name': opts['name'],
+ 'user_id': opts['userId']
+ };
+ let headerParams = {
+ };
+ let formParams = {
+ };
+
+ let authNames = [];
+ let contentTypes = [];
+ let accepts = ['application/json'];
+ let returnType = [ArduinoDashboardv2];
+ return this.apiClient.callApi(
+ '/v2/dashboards', 'GET',
+ pathParams, queryParams, headerParams, formParams, postBody,
+ authNames, contentTypes, accepts, returnType, null
+ );
+ }
+
+ /**
+ * list dashboards_v2
+ * Returns the list of dashboards
+ * @param {Object} opts Optional parameters
+ * @param {String} opts.name The name of the dashboard
+ * @param {String} opts.userId The user_id of the dashboard's owner
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.}
+ */
+ dashboardsV2List(opts) {
+ return this.dashboardsV2ListWithHttpInfo(opts)
+ .then(function(response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+
+ /**
+ * listShares dashboards_v2
+ * List of users the dashboard has been shared with
+ * @param {String} id The id of the dashboard
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.} and HTTP response
+ */
+ dashboardsV2ListSharesWithHttpInfo(id) {
+ 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 dashboardsV2ListShares");
+ }
+
+ let pathParams = {
+ 'id': id
+ };
+ let queryParams = {
+ };
+ let headerParams = {
+ };
+ let formParams = {
+ };
+
+ let authNames = [];
+ let contentTypes = [];
+ let accepts = ['application/json'];
+ let returnType = [ArduinoDashboardshare];
+ return this.apiClient.callApi(
+ '/v2/dashboards/{id}/shares', 'GET',
+ pathParams, queryParams, headerParams, formParams, postBody,
+ authNames, contentTypes, accepts, returnType, null
+ );
+ }
+
+ /**
+ * listShares dashboards_v2
+ * List of users the dashboard has been shared with
+ * @param {String} id The id of the dashboard
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.}
+ */
+ dashboardsV2ListShares(id) {
+ return this.dashboardsV2ListSharesWithHttpInfo(id)
+ .then(function(response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+
+ /**
+ * requestAccess dashboards_v2
+ * Request access to a dashboard
+ * @param {String} id The id of the dashboard
+ * @param {module:model/Sharerequest} sharerequest
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
+ */
+ dashboardsV2RequestAccessWithHttpInfo(id, sharerequest) {
+ let postBody = sharerequest;
+ // verify the required parameter 'id' is set
+ if (id === undefined || id === null) {
+ throw new Error("Missing the required parameter 'id' when calling dashboardsV2RequestAccess");
+ }
+ // verify the required parameter 'sharerequest' is set
+ if (sharerequest === undefined || sharerequest === null) {
+ throw new Error("Missing the required parameter 'sharerequest' when calling dashboardsV2RequestAccess");
+ }
+
+ let pathParams = {
+ 'id': id
+ };
+ let queryParams = {
+ };
+ let headerParams = {
+ };
+ let formParams = {
+ };
+
+ let authNames = [];
+ let contentTypes = ['application/json', 'application/x-www-form-urlencoded'];
+ let accepts = ['application/json'];
+ let returnType = null;
+ return this.apiClient.callApi(
+ '/v2/dashboards/{id}/share_request', 'PUT',
+ pathParams, queryParams, headerParams, formParams, postBody,
+ authNames, contentTypes, accepts, returnType, null
+ );
+ }
+
+ /**
+ * requestAccess dashboards_v2
+ * Request access to a dashboard
+ * @param {String} id The id of the dashboard
+ * @param {module:model/Sharerequest} sharerequest
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
+ */
+ dashboardsV2RequestAccess(id, sharerequest) {
+ return this.dashboardsV2RequestAccessWithHttpInfo(id, sharerequest)
+ .then(function(response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+
+ /**
+ * share dashboards_v2
+ * Share a dashboard
+ * @param {String} id The id of the dashboard
+ * @param {module:model/Dashboardshare} dashboardshare
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
+ */
+ dashboardsV2ShareWithHttpInfo(id, dashboardshare) {
+ let postBody = dashboardshare;
+ // verify the required parameter 'id' is set
+ if (id === undefined || id === null) {
+ throw new Error("Missing the required parameter 'id' when calling dashboardsV2Share");
+ }
+ // verify the required parameter 'dashboardshare' is set
+ if (dashboardshare === undefined || dashboardshare === null) {
+ throw new Error("Missing the required parameter 'dashboardshare' when calling dashboardsV2Share");
+ }
+
+ let pathParams = {
+ 'id': id
+ };
+ let queryParams = {
+ };
+ let headerParams = {
+ };
+ let formParams = {
+ };
+
+ let authNames = [];
+ let contentTypes = ['application/json', 'application/x-www-form-urlencoded'];
+ let accepts = ['application/json'];
+ let returnType = null;
+ return this.apiClient.callApi(
+ '/v2/dashboards/{id}/shares', 'PUT',
+ pathParams, queryParams, headerParams, formParams, postBody,
+ authNames, contentTypes, accepts, returnType, null
+ );
+ }
+
+ /**
+ * share dashboards_v2
+ * Share a dashboard
+ * @param {String} id The id of the dashboard
+ * @param {module:model/Dashboardshare} dashboardshare
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
+ */
+ dashboardsV2Share(id, dashboardshare) {
+ return this.dashboardsV2ShareWithHttpInfo(id, dashboardshare)
+ .then(function(response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+
+ /**
+ * show dashboards_v2
+ * Show a dashboard
+ * @param {String} id The id of the dashboard
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ArduinoDashboardv2} and HTTP response
+ */
+ dashboardsV2ShowWithHttpInfo(id) {
+ 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 dashboardsV2Show");
+ }
+
+ let pathParams = {
+ 'id': id
+ };
+ let queryParams = {
+ };
+ let headerParams = {
+ };
+ let formParams = {
+ };
+
+ let authNames = [];
+ let contentTypes = [];
+ let accepts = ['application/json'];
+ let returnType = ArduinoDashboardv2;
+ return this.apiClient.callApi(
+ '/v2/dashboards/{id}', 'GET',
+ pathParams, queryParams, headerParams, formParams, postBody,
+ authNames, contentTypes, accepts, returnType, null
+ );
+ }
+
+ /**
+ * show dashboards_v2
+ * Show a dashboard
+ * @param {String} id The id of the dashboard
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ArduinoDashboardv2}
+ */
+ dashboardsV2Show(id) {
+ return this.dashboardsV2ShowWithHttpInfo(id)
+ .then(function(response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+
+ /**
+ * update dashboards_v2
+ * Updates an existing dashboard
+ * @param {String} id The id of the dashboard
+ * @param {module:model/Dashboardv2} dashboardv2 DashboardV2Payload describes a dashboard
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ArduinoDashboardv2} and HTTP response
+ */
+ dashboardsV2UpdateWithHttpInfo(id, dashboardv2) {
+ let postBody = dashboardv2;
+ // verify the required parameter 'id' is set
+ if (id === undefined || id === null) {
+ throw new Error("Missing the required parameter 'id' when calling dashboardsV2Update");
+ }
+ // verify the required parameter 'dashboardv2' is set
+ if (dashboardv2 === undefined || dashboardv2 === null) {
+ throw new Error("Missing the required parameter 'dashboardv2' when calling dashboardsV2Update");
+ }
+
+ let pathParams = {
+ 'id': id
+ };
+ let queryParams = {
+ };
+ let headerParams = {
+ };
+ let formParams = {
+ };
+
+ let authNames = [];
+ let contentTypes = ['application/json', 'application/x-www-form-urlencoded'];
+ let accepts = ['application/json'];
+ let returnType = ArduinoDashboardv2;
+ return this.apiClient.callApi(
+ '/v2/dashboards/{id}', 'PUT',
+ pathParams, queryParams, headerParams, formParams, postBody,
+ authNames, contentTypes, accepts, returnType, null
+ );
+ }
+
+ /**
+ * update dashboards_v2
+ * Updates an existing dashboard
+ * @param {String} id The id of the dashboard
+ * @param {module:model/Dashboardv2} dashboardv2 DashboardV2Payload describes a dashboard
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ArduinoDashboardv2}
+ */
+ dashboardsV2Update(id, dashboardv2) {
+ return this.dashboardsV2UpdateWithHttpInfo(id, dashboardv2)
+ .then(function(response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+
+}
diff --git a/src/api/DevicesV2Api.js b/src/api/DevicesV2Api.js
index 5595311..a6896e4 100644
--- a/src/api/DevicesV2Api.js
+++ b/src/api/DevicesV2Api.js
@@ -25,7 +25,7 @@ import PropertiesValues from '../model/PropertiesValues';
/**
* DevicesV2 service.
* @module api/DevicesV2Api
-* @version 1.3.7
+* @version 1.3.8
*/
export default class DevicesV2Api {
diff --git a/src/api/DevicesV2CertsApi.js b/src/api/DevicesV2CertsApi.js
index c24db24..fd811e3 100644
--- a/src/api/DevicesV2CertsApi.js
+++ b/src/api/DevicesV2CertsApi.js
@@ -21,7 +21,7 @@ import Error from '../model/Error';
/**
* DevicesV2Certs service.
* @module api/DevicesV2CertsApi
-* @version 1.3.7
+* @version 1.3.8
*/
export default class DevicesV2CertsApi {
diff --git a/src/api/DevicesV2OtaApi.js b/src/api/DevicesV2OtaApi.js
index 41f2b7f..62d53b1 100644
--- a/src/api/DevicesV2OtaApi.js
+++ b/src/api/DevicesV2OtaApi.js
@@ -19,7 +19,7 @@ import Error from '../model/Error';
/**
* DevicesV2Ota service.
* @module api/DevicesV2OtaApi
-* @version 1.3.7
+* @version 1.3.8
*/
export default class DevicesV2OtaApi {
diff --git a/src/api/DevicesV2PassApi.js b/src/api/DevicesV2PassApi.js
index ba80d41..7168cd2 100644
--- a/src/api/DevicesV2PassApi.js
+++ b/src/api/DevicesV2PassApi.js
@@ -21,7 +21,7 @@ import Error from '../model/Error';
/**
* DevicesV2Pass service.
* @module api/DevicesV2PassApi
-* @version 1.3.7
+* @version 1.3.8
*/
export default class DevicesV2PassApi {
diff --git a/src/api/PropertiesV2Api.js b/src/api/PropertiesV2Api.js
index e6eb54e..6c6bf48 100644
--- a/src/api/PropertiesV2Api.js
+++ b/src/api/PropertiesV2Api.js
@@ -22,7 +22,7 @@ import PropertyValue from '../model/PropertyValue';
/**
* PropertiesV2 service.
* @module api/PropertiesV2Api
-* @version 1.3.7
+* @version 1.3.8
*/
export default class PropertiesV2Api {
diff --git a/src/api/SeriesV2Api.js b/src/api/SeriesV2Api.js
index 5deba3c..51347c4 100644
--- a/src/api/SeriesV2Api.js
+++ b/src/api/SeriesV2Api.js
@@ -25,7 +25,7 @@ import HistoricDataRequest from '../model/HistoricDataRequest';
/**
* SeriesV2 service.
* @module api/SeriesV2Api
-* @version 1.3.7
+* @version 1.3.8
*/
export default class SeriesV2Api {
diff --git a/src/api/ThingsV2Api.js b/src/api/ThingsV2Api.js
index 2a62096..bdb60f1 100644
--- a/src/api/ThingsV2Api.js
+++ b/src/api/ThingsV2Api.js
@@ -22,7 +22,7 @@ import UpdateSketch from '../model/UpdateSketch';
/**
* ThingsV2 service.
* @module api/ThingsV2Api
-* @version 1.3.7
+* @version 1.3.8
*/
export default class ThingsV2Api {
diff --git a/src/index.js b/src/index.js
index 5b468ad..9457dc8 100644
--- a/src/index.js
+++ b/src/index.js
@@ -14,6 +14,8 @@
import ApiClient from './ApiClient';
import ArduinoCompressedv2 from './model/ArduinoCompressedv2';
+import ArduinoDashboardshare from './model/ArduinoDashboardshare';
+import ArduinoDashboardv2 from './model/ArduinoDashboardv2';
import ArduinoDevicev2 from './model/ArduinoDevicev2';
import ArduinoDevicev2Cert from './model/ArduinoDevicev2Cert';
import ArduinoDevicev2EventProperties from './model/ArduinoDevicev2EventProperties';
@@ -26,6 +28,7 @@ import ArduinoDevicev2propertyvalueValue from './model/ArduinoDevicev2propertyva
import ArduinoDevicev2propertyvalueValueStatistics from './model/ArduinoDevicev2propertyvalueValueStatistics';
import ArduinoDevicev2propertyvalues from './model/ArduinoDevicev2propertyvalues';
import ArduinoDevicev2propertyvaluesLastEvaluatedKey from './model/ArduinoDevicev2propertyvaluesLastEvaluatedKey';
+import ArduinoLinkedvariable from './model/ArduinoLinkedvariable';
import ArduinoProperty from './model/ArduinoProperty';
import ArduinoSeriesBatch from './model/ArduinoSeriesBatch';
import ArduinoSeriesRawBatch from './model/ArduinoSeriesRawBatch';
@@ -35,6 +38,8 @@ import ArduinoSeriesRawResponse from './model/ArduinoSeriesRawResponse';
import ArduinoSeriesResponse from './model/ArduinoSeriesResponse';
import ArduinoThing from './model/ArduinoThing';
import ArduinoTimeseriesmedia from './model/ArduinoTimeseriesmedia';
+import ArduinoVariableslinks from './model/ArduinoVariableslinks';
+import ArduinoWidgetv2 from './model/ArduinoWidgetv2';
import BatchLastValueRequestsMediaV1 from './model/BatchLastValueRequestsMediaV1';
import BatchQueryRawLastValueRequestMediaV1 from './model/BatchQueryRawLastValueRequestMediaV1';
import BatchQueryRawRequestMediaV1 from './model/BatchQueryRawRequestMediaV1';
@@ -45,6 +50,8 @@ import BatchQueryRequestsMediaV1 from './model/BatchQueryRequestsMediaV1';
import CheckDevicesV2PassPayload from './model/CheckDevicesV2PassPayload';
import CreateDevicesV2CertsPayload from './model/CreateDevicesV2CertsPayload';
import CreateDevicesV2Payload from './model/CreateDevicesV2Payload';
+import Dashboardshare from './model/Dashboardshare';
+import Dashboardv2 from './model/Dashboardv2';
import Devicev2 from './model/Devicev2';
import Devicev2Cert from './model/Devicev2Cert';
import Devicev2Otabinaryurl from './model/Devicev2Otabinaryurl';
@@ -56,10 +63,14 @@ import PropertiesValue from './model/PropertiesValue';
import PropertiesValues from './model/PropertiesValues';
import Property from './model/Property';
import PropertyValue from './model/PropertyValue';
+import Sharerequest from './model/Sharerequest';
import Thing from './model/Thing';
import ThingSketch from './model/ThingSketch';
import TimeseriesDataPoint from './model/TimeseriesDataPoint';
import UpdateSketch from './model/UpdateSketch';
+import Widget from './model/Widget';
+import Widgetlink from './model/Widgetlink';
+import DashboardsV2Api from './api/DashboardsV2Api';
import DevicesV2Api from './api/DevicesV2Api';
import DevicesV2CertsApi from './api/DevicesV2CertsApi';
import DevicesV2OtaApi from './api/DevicesV2OtaApi';
@@ -98,7 +109,7 @@ import ThingsV2Api from './api/ThingsV2Api';
*
*
* @module index
-* @version 1.3.7
+* @version 1.3.8
*/
export {
/**
@@ -113,6 +124,18 @@ export {
*/
ArduinoCompressedv2,
+ /**
+ * The ArduinoDashboardshare model constructor.
+ * @property {module:model/ArduinoDashboardshare}
+ */
+ ArduinoDashboardshare,
+
+ /**
+ * The ArduinoDashboardv2 model constructor.
+ * @property {module:model/ArduinoDashboardv2}
+ */
+ ArduinoDashboardv2,
+
/**
* The ArduinoDevicev2 model constructor.
* @property {module:model/ArduinoDevicev2}
@@ -185,6 +208,12 @@ export {
*/
ArduinoDevicev2propertyvaluesLastEvaluatedKey,
+ /**
+ * The ArduinoLinkedvariable model constructor.
+ * @property {module:model/ArduinoLinkedvariable}
+ */
+ ArduinoLinkedvariable,
+
/**
* The ArduinoProperty model constructor.
* @property {module:model/ArduinoProperty}
@@ -239,6 +268,18 @@ export {
*/
ArduinoTimeseriesmedia,
+ /**
+ * The ArduinoVariableslinks model constructor.
+ * @property {module:model/ArduinoVariableslinks}
+ */
+ ArduinoVariableslinks,
+
+ /**
+ * The ArduinoWidgetv2 model constructor.
+ * @property {module:model/ArduinoWidgetv2}
+ */
+ ArduinoWidgetv2,
+
/**
* The BatchLastValueRequestsMediaV1 model constructor.
* @property {module:model/BatchLastValueRequestsMediaV1}
@@ -299,6 +340,18 @@ export {
*/
CreateDevicesV2Payload,
+ /**
+ * The Dashboardshare model constructor.
+ * @property {module:model/Dashboardshare}
+ */
+ Dashboardshare,
+
+ /**
+ * The Dashboardv2 model constructor.
+ * @property {module:model/Dashboardv2}
+ */
+ Dashboardv2,
+
/**
* The Devicev2 model constructor.
* @property {module:model/Devicev2}
@@ -365,6 +418,12 @@ export {
*/
PropertyValue,
+ /**
+ * The Sharerequest model constructor.
+ * @property {module:model/Sharerequest}
+ */
+ Sharerequest,
+
/**
* The Thing model constructor.
* @property {module:model/Thing}
@@ -389,6 +448,24 @@ export {
*/
UpdateSketch,
+ /**
+ * The Widget model constructor.
+ * @property {module:model/Widget}
+ */
+ Widget,
+
+ /**
+ * The Widgetlink model constructor.
+ * @property {module:model/Widgetlink}
+ */
+ Widgetlink,
+
+ /**
+ * The DashboardsV2Api service constructor.
+ * @property {module:api/DashboardsV2Api}
+ */
+ DashboardsV2Api,
+
/**
* The DevicesV2Api service constructor.
* @property {module:api/DevicesV2Api}
diff --git a/src/model/ArduinoCompressedv2.js b/src/model/ArduinoCompressedv2.js
index f1b6841..fb63d90 100644
--- a/src/model/ArduinoCompressedv2.js
+++ b/src/model/ArduinoCompressedv2.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The ArduinoCompressedv2 model module.
* @module model/ArduinoCompressedv2
- * @version 1.3.7
+ * @version 1.3.8
*/
class ArduinoCompressedv2 {
/**
diff --git a/src/model/ArduinoDashboardshare.js b/src/model/ArduinoDashboardshare.js
new file mode 100644
index 0000000..0a47183
--- /dev/null
+++ b/src/model/ArduinoDashboardshare.js
@@ -0,0 +1,86 @@
+/**
+ * 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';
+
+/**
+ * The ArduinoDashboardshare model module.
+ * @module model/ArduinoDashboardshare
+ * @version 1.3.8
+ */
+class ArduinoDashboardshare {
+ /**
+ * Constructs a new ArduinoDashboardshare.
+ * ArduinoDashboardshare media type (default view)
+ * @alias module:model/ArduinoDashboardshare
+ * @param userId {String} The userID of the user you want to share the dashboard with
+ * @param username {String} The username of the user you want to share the dashboard with
+ */
+ constructor(userId, username) {
+
+ ArduinoDashboardshare.initialize(this, userId, username);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj, userId, username) {
+ obj['user_id'] = userId;
+ obj['username'] = username;
+ }
+
+ /**
+ * Constructs a ArduinoDashboardshare from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ArduinoDashboardshare} obj Optional instance to populate.
+ * @return {module:model/ArduinoDashboardshare} The populated ArduinoDashboardshare instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new ArduinoDashboardshare();
+
+ if (data.hasOwnProperty('user_id')) {
+ obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String');
+ }
+ if (data.hasOwnProperty('username')) {
+ obj['username'] = ApiClient.convertToType(data['username'], 'String');
+ }
+ }
+ return obj;
+ }
+
+
+}
+
+/**
+ * The userID of the user you want to share the dashboard with
+ * @member {String} user_id
+ */
+ArduinoDashboardshare.prototype['user_id'] = undefined;
+
+/**
+ * The username of the user you want to share the dashboard with
+ * @member {String} username
+ */
+ArduinoDashboardshare.prototype['username'] = undefined;
+
+
+
+
+
+
+export default ArduinoDashboardshare;
+
diff --git a/src/model/ArduinoDashboardv2.js b/src/model/ArduinoDashboardv2.js
new file mode 100644
index 0000000..ca71861
--- /dev/null
+++ b/src/model/ArduinoDashboardv2.js
@@ -0,0 +1,125 @@
+/**
+ * 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 ArduinoDashboardshare from './ArduinoDashboardshare';
+import ArduinoWidgetv2 from './ArduinoWidgetv2';
+
+/**
+ * The ArduinoDashboardv2 model module.
+ * @module model/ArduinoDashboardv2
+ * @version 1.3.8
+ */
+class ArduinoDashboardv2 {
+ /**
+ * Constructs a new ArduinoDashboardv2.
+ * Dashboard is a collection of widgets (default view)
+ * @alias module:model/ArduinoDashboardv2
+ * @param id {String} The friendly name of the dashboard
+ * @param name {String} The friendly name of the dashboard
+ * @param updatedAt {Date} Last update date
+ */
+ constructor(id, name, updatedAt) {
+
+ ArduinoDashboardv2.initialize(this, id, name, updatedAt);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj, id, name, updatedAt) {
+ obj['id'] = id;
+ obj['name'] = name;
+ obj['updated_at'] = updatedAt;
+ }
+
+ /**
+ * Constructs a ArduinoDashboardv2 from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ArduinoDashboardv2} obj Optional instance to populate.
+ * @return {module:model/ArduinoDashboardv2} The populated ArduinoDashboardv2 instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new ArduinoDashboardv2();
+
+ if (data.hasOwnProperty('id')) {
+ obj['id'] = ApiClient.convertToType(data['id'], 'String');
+ }
+ if (data.hasOwnProperty('name')) {
+ obj['name'] = ApiClient.convertToType(data['name'], 'String');
+ }
+ if (data.hasOwnProperty('shared_by')) {
+ obj['shared_by'] = ArduinoDashboardshare.constructFromObject(data['shared_by']);
+ }
+ if (data.hasOwnProperty('shared_with')) {
+ obj['shared_with'] = ApiClient.convertToType(data['shared_with'], [ArduinoDashboardshare]);
+ }
+ if (data.hasOwnProperty('updated_at')) {
+ obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Date');
+ }
+ if (data.hasOwnProperty('widgets')) {
+ obj['widgets'] = ApiClient.convertToType(data['widgets'], [ArduinoWidgetv2]);
+ }
+ }
+ return obj;
+ }
+
+
+}
+
+/**
+ * The friendly name of the dashboard
+ * @member {String} id
+ */
+ArduinoDashboardv2.prototype['id'] = undefined;
+
+/**
+ * The friendly name of the dashboard
+ * @member {String} name
+ */
+ArduinoDashboardv2.prototype['name'] = undefined;
+
+/**
+ * @member {module:model/ArduinoDashboardshare} shared_by
+ */
+ArduinoDashboardv2.prototype['shared_by'] = undefined;
+
+/**
+ * ArduinoDashboardshareCollection is the media type for an array of ArduinoDashboardshare (default view)
+ * @member {Array.} shared_with
+ */
+ArduinoDashboardv2.prototype['shared_with'] = undefined;
+
+/**
+ * Last update date
+ * @member {Date} updated_at
+ */
+ArduinoDashboardv2.prototype['updated_at'] = undefined;
+
+/**
+ * ArduinoWidgetv2Collection is the media type for an array of ArduinoWidgetv2 (default view)
+ * @member {Array.} widgets
+ */
+ArduinoDashboardv2.prototype['widgets'] = undefined;
+
+
+
+
+
+
+export default ArduinoDashboardv2;
+
diff --git a/src/model/ArduinoDevicev2.js b/src/model/ArduinoDevicev2.js
index 10e3a77..fc9adbd 100644
--- a/src/model/ArduinoDevicev2.js
+++ b/src/model/ArduinoDevicev2.js
@@ -19,7 +19,7 @@ import ArduinoThing from './ArduinoThing';
/**
* The ArduinoDevicev2 model module.
* @module model/ArduinoDevicev2
- * @version 1.3.7
+ * @version 1.3.8
*/
class ArduinoDevicev2 {
/**
diff --git a/src/model/ArduinoDevicev2Cert.js b/src/model/ArduinoDevicev2Cert.js
index e4313f2..f0ad566 100644
--- a/src/model/ArduinoDevicev2Cert.js
+++ b/src/model/ArduinoDevicev2Cert.js
@@ -17,7 +17,7 @@ import ArduinoCompressedv2 from './ArduinoCompressedv2';
/**
* The ArduinoDevicev2Cert model module.
* @module model/ArduinoDevicev2Cert
- * @version 1.3.7
+ * @version 1.3.8
*/
class ArduinoDevicev2Cert {
/**
diff --git a/src/model/ArduinoDevicev2EventProperties.js b/src/model/ArduinoDevicev2EventProperties.js
index 7115f96..d68c1de 100644
--- a/src/model/ArduinoDevicev2EventProperties.js
+++ b/src/model/ArduinoDevicev2EventProperties.js
@@ -17,7 +17,7 @@ import ArduinoDevicev2SimpleProperties from './ArduinoDevicev2SimpleProperties';
/**
* The ArduinoDevicev2EventProperties model module.
* @module model/ArduinoDevicev2EventProperties
- * @version 1.3.7
+ * @version 1.3.8
*/
class ArduinoDevicev2EventProperties {
/**
diff --git a/src/model/ArduinoDevicev2Pass.js b/src/model/ArduinoDevicev2Pass.js
index 11daae0..9ee234d 100644
--- a/src/model/ArduinoDevicev2Pass.js
+++ b/src/model/ArduinoDevicev2Pass.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The ArduinoDevicev2Pass model module.
* @module model/ArduinoDevicev2Pass
- * @version 1.3.7
+ * @version 1.3.8
*/
class ArduinoDevicev2Pass {
/**
diff --git a/src/model/ArduinoDevicev2SimpleProperties.js b/src/model/ArduinoDevicev2SimpleProperties.js
index 27cc73e..fc70585 100644
--- a/src/model/ArduinoDevicev2SimpleProperties.js
+++ b/src/model/ArduinoDevicev2SimpleProperties.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The ArduinoDevicev2SimpleProperties model module.
* @module model/ArduinoDevicev2SimpleProperties
- * @version 1.3.7
+ * @version 1.3.8
*/
class ArduinoDevicev2SimpleProperties {
/**
diff --git a/src/model/ArduinoDevicev2Webhook.js b/src/model/ArduinoDevicev2Webhook.js
index dc337f8..5bc4e5f 100644
--- a/src/model/ArduinoDevicev2Webhook.js
+++ b/src/model/ArduinoDevicev2Webhook.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The ArduinoDevicev2Webhook model module.
* @module model/ArduinoDevicev2Webhook
- * @version 1.3.7
+ * @version 1.3.8
*/
class ArduinoDevicev2Webhook {
/**
diff --git a/src/model/ArduinoDevicev2properties.js b/src/model/ArduinoDevicev2properties.js
index 47924a6..1949954 100644
--- a/src/model/ArduinoDevicev2properties.js
+++ b/src/model/ArduinoDevicev2properties.js
@@ -17,7 +17,7 @@ import ArduinoProperty from './ArduinoProperty';
/**
* The ArduinoDevicev2properties model module.
* @module model/ArduinoDevicev2properties
- * @version 1.3.7
+ * @version 1.3.8
*/
class ArduinoDevicev2properties {
/**
diff --git a/src/model/ArduinoDevicev2propertyvalue.js b/src/model/ArduinoDevicev2propertyvalue.js
index 0dfe350..6676f95 100644
--- a/src/model/ArduinoDevicev2propertyvalue.js
+++ b/src/model/ArduinoDevicev2propertyvalue.js
@@ -17,7 +17,7 @@ import ArduinoDevicev2propertyvalueValue from './ArduinoDevicev2propertyvalueVal
/**
* The ArduinoDevicev2propertyvalue model module.
* @module model/ArduinoDevicev2propertyvalue
- * @version 1.3.7
+ * @version 1.3.8
*/
class ArduinoDevicev2propertyvalue {
/**
diff --git a/src/model/ArduinoDevicev2propertyvalueValue.js b/src/model/ArduinoDevicev2propertyvalueValue.js
index 6d8b56e..b6b9698 100644
--- a/src/model/ArduinoDevicev2propertyvalueValue.js
+++ b/src/model/ArduinoDevicev2propertyvalueValue.js
@@ -17,7 +17,7 @@ import ArduinoDevicev2propertyvalueValueStatistics from './ArduinoDevicev2proper
/**
* The ArduinoDevicev2propertyvalueValue model module.
* @module model/ArduinoDevicev2propertyvalueValue
- * @version 1.3.7
+ * @version 1.3.8
*/
class ArduinoDevicev2propertyvalueValue {
/**
diff --git a/src/model/ArduinoDevicev2propertyvalueValueStatistics.js b/src/model/ArduinoDevicev2propertyvalueValueStatistics.js
index 1463855..28a1e64 100644
--- a/src/model/ArduinoDevicev2propertyvalueValueStatistics.js
+++ b/src/model/ArduinoDevicev2propertyvalueValueStatistics.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The ArduinoDevicev2propertyvalueValueStatistics model module.
* @module model/ArduinoDevicev2propertyvalueValueStatistics
- * @version 1.3.7
+ * @version 1.3.8
*/
class ArduinoDevicev2propertyvalueValueStatistics {
/**
diff --git a/src/model/ArduinoDevicev2propertyvalues.js b/src/model/ArduinoDevicev2propertyvalues.js
index a15af0a..89eda36 100644
--- a/src/model/ArduinoDevicev2propertyvalues.js
+++ b/src/model/ArduinoDevicev2propertyvalues.js
@@ -18,7 +18,7 @@ import ArduinoDevicev2propertyvaluesLastEvaluatedKey from './ArduinoDevicev2prop
/**
* The ArduinoDevicev2propertyvalues model module.
* @module model/ArduinoDevicev2propertyvalues
- * @version 1.3.7
+ * @version 1.3.8
*/
class ArduinoDevicev2propertyvalues {
/**
diff --git a/src/model/ArduinoDevicev2propertyvaluesLastEvaluatedKey.js b/src/model/ArduinoDevicev2propertyvaluesLastEvaluatedKey.js
index fa9cb73..8ad7405 100644
--- a/src/model/ArduinoDevicev2propertyvaluesLastEvaluatedKey.js
+++ b/src/model/ArduinoDevicev2propertyvaluesLastEvaluatedKey.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The ArduinoDevicev2propertyvaluesLastEvaluatedKey model module.
* @module model/ArduinoDevicev2propertyvaluesLastEvaluatedKey
- * @version 1.3.7
+ * @version 1.3.8
*/
class ArduinoDevicev2propertyvaluesLastEvaluatedKey {
/**
diff --git a/src/model/ArduinoLinkedvariable.js b/src/model/ArduinoLinkedvariable.js
new file mode 100644
index 0000000..4ffb7f0
--- /dev/null
+++ b/src/model/ArduinoLinkedvariable.js
@@ -0,0 +1,159 @@
+/**
+ * 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';
+
+/**
+ * The ArduinoLinkedvariable model module.
+ * @module model/ArduinoLinkedvariable
+ * @version 1.3.8
+ */
+class ArduinoLinkedvariable {
+ /**
+ * Constructs a new ArduinoLinkedvariable.
+ * ArduinoLinkedvariable media type (default view)
+ * @alias module:model/ArduinoLinkedvariable
+ * @param id {String} The id of the linked variable
+ * @param name {String} The name of the variable
+ * @param permission {String} The permission of the linked variable
+ * @param thingId {String} The id of the related thing
+ * @param thingName {String} The name of the related thing
+ * @param type {String} The type of the variable
+ * @param variableName {String} The name of the variable in the code
+ */
+ constructor(id, name, permission, thingId, thingName, type, variableName) {
+
+ ArduinoLinkedvariable.initialize(this, id, name, permission, thingId, thingName, type, variableName);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj, id, name, permission, thingId, thingName, type, variableName) {
+ obj['id'] = id;
+ obj['name'] = name;
+ obj['permission'] = permission;
+ obj['thing_id'] = thingId;
+ obj['thing_name'] = thingName;
+ obj['type'] = type;
+ obj['variable_name'] = variableName;
+ }
+
+ /**
+ * Constructs a ArduinoLinkedvariable from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ArduinoLinkedvariable} obj Optional instance to populate.
+ * @return {module:model/ArduinoLinkedvariable} The populated ArduinoLinkedvariable instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new ArduinoLinkedvariable();
+
+ if (data.hasOwnProperty('id')) {
+ obj['id'] = ApiClient.convertToType(data['id'], 'String');
+ }
+ if (data.hasOwnProperty('last_value')) {
+ obj['last_value'] = ApiClient.convertToType(data['last_value'], Object);
+ }
+ if (data.hasOwnProperty('last_value_updated_at')) {
+ obj['last_value_updated_at'] = ApiClient.convertToType(data['last_value_updated_at'], 'Date');
+ }
+ if (data.hasOwnProperty('name')) {
+ obj['name'] = ApiClient.convertToType(data['name'], 'String');
+ }
+ if (data.hasOwnProperty('permission')) {
+ obj['permission'] = ApiClient.convertToType(data['permission'], 'String');
+ }
+ if (data.hasOwnProperty('thing_id')) {
+ obj['thing_id'] = ApiClient.convertToType(data['thing_id'], 'String');
+ }
+ if (data.hasOwnProperty('thing_name')) {
+ obj['thing_name'] = ApiClient.convertToType(data['thing_name'], 'String');
+ }
+ if (data.hasOwnProperty('type')) {
+ obj['type'] = ApiClient.convertToType(data['type'], 'String');
+ }
+ if (data.hasOwnProperty('variable_name')) {
+ obj['variable_name'] = ApiClient.convertToType(data['variable_name'], 'String');
+ }
+ }
+ return obj;
+ }
+
+
+}
+
+/**
+ * The id of the linked variable
+ * @member {String} id
+ */
+ArduinoLinkedvariable.prototype['id'] = undefined;
+
+/**
+ * Last value of the linked property
+ * @member {Object} last_value
+ */
+ArduinoLinkedvariable.prototype['last_value'] = undefined;
+
+/**
+ * Update date of the last value
+ * @member {Date} last_value_updated_at
+ */
+ArduinoLinkedvariable.prototype['last_value_updated_at'] = undefined;
+
+/**
+ * The name of the variable
+ * @member {String} name
+ */
+ArduinoLinkedvariable.prototype['name'] = undefined;
+
+/**
+ * The permission of the linked variable
+ * @member {String} permission
+ */
+ArduinoLinkedvariable.prototype['permission'] = undefined;
+
+/**
+ * The id of the related thing
+ * @member {String} thing_id
+ */
+ArduinoLinkedvariable.prototype['thing_id'] = undefined;
+
+/**
+ * The name of the related thing
+ * @member {String} thing_name
+ */
+ArduinoLinkedvariable.prototype['thing_name'] = undefined;
+
+/**
+ * The type of the variable
+ * @member {String} type
+ */
+ArduinoLinkedvariable.prototype['type'] = undefined;
+
+/**
+ * The name of the variable in the code
+ * @member {String} variable_name
+ */
+ArduinoLinkedvariable.prototype['variable_name'] = undefined;
+
+
+
+
+
+
+export default ArduinoLinkedvariable;
+
diff --git a/src/model/ArduinoProperty.js b/src/model/ArduinoProperty.js
index de2e815..f12f999 100644
--- a/src/model/ArduinoProperty.js
+++ b/src/model/ArduinoProperty.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The ArduinoProperty model module.
* @module model/ArduinoProperty
- * @version 1.3.7
+ * @version 1.3.8
*/
class ArduinoProperty {
/**
diff --git a/src/model/ArduinoSeriesBatch.js b/src/model/ArduinoSeriesBatch.js
index 1a2b746..7338e6e 100644
--- a/src/model/ArduinoSeriesBatch.js
+++ b/src/model/ArduinoSeriesBatch.js
@@ -17,7 +17,7 @@ import ArduinoSeriesResponse from './ArduinoSeriesResponse';
/**
* The ArduinoSeriesBatch model module.
* @module model/ArduinoSeriesBatch
- * @version 1.3.7
+ * @version 1.3.8
*/
class ArduinoSeriesBatch {
/**
diff --git a/src/model/ArduinoSeriesRawBatch.js b/src/model/ArduinoSeriesRawBatch.js
index dd879c0..abc9847 100644
--- a/src/model/ArduinoSeriesRawBatch.js
+++ b/src/model/ArduinoSeriesRawBatch.js
@@ -17,7 +17,7 @@ import ArduinoSeriesRawResponse from './ArduinoSeriesRawResponse';
/**
* The ArduinoSeriesRawBatch model module.
* @module model/ArduinoSeriesRawBatch
- * @version 1.3.7
+ * @version 1.3.8
*/
class ArduinoSeriesRawBatch {
/**
diff --git a/src/model/ArduinoSeriesRawBatchLastvalue.js b/src/model/ArduinoSeriesRawBatchLastvalue.js
index b9fbe48..e96318e 100644
--- a/src/model/ArduinoSeriesRawBatchLastvalue.js
+++ b/src/model/ArduinoSeriesRawBatchLastvalue.js
@@ -17,7 +17,7 @@ import ArduinoSeriesRawLastValueResponse from './ArduinoSeriesRawLastValueRespon
/**
* The ArduinoSeriesRawBatchLastvalue model module.
* @module model/ArduinoSeriesRawBatchLastvalue
- * @version 1.3.7
+ * @version 1.3.8
*/
class ArduinoSeriesRawBatchLastvalue {
/**
diff --git a/src/model/ArduinoSeriesRawLastValueResponse.js b/src/model/ArduinoSeriesRawLastValueResponse.js
index 4dd6320..ddc6e26 100644
--- a/src/model/ArduinoSeriesRawLastValueResponse.js
+++ b/src/model/ArduinoSeriesRawLastValueResponse.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The ArduinoSeriesRawLastValueResponse model module.
* @module model/ArduinoSeriesRawLastValueResponse
- * @version 1.3.7
+ * @version 1.3.8
*/
class ArduinoSeriesRawLastValueResponse {
/**
diff --git a/src/model/ArduinoSeriesRawResponse.js b/src/model/ArduinoSeriesRawResponse.js
index 2188796..c20c9e3 100644
--- a/src/model/ArduinoSeriesRawResponse.js
+++ b/src/model/ArduinoSeriesRawResponse.js
@@ -17,7 +17,7 @@ import BatchQueryRawResponseSeriesMediaV1 from './BatchQueryRawResponseSeriesMed
/**
* The ArduinoSeriesRawResponse model module.
* @module model/ArduinoSeriesRawResponse
- * @version 1.3.7
+ * @version 1.3.8
*/
class ArduinoSeriesRawResponse {
/**
diff --git a/src/model/ArduinoSeriesResponse.js b/src/model/ArduinoSeriesResponse.js
index c51c388..0924b90 100644
--- a/src/model/ArduinoSeriesResponse.js
+++ b/src/model/ArduinoSeriesResponse.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The ArduinoSeriesResponse model module.
* @module model/ArduinoSeriesResponse
- * @version 1.3.7
+ * @version 1.3.8
*/
class ArduinoSeriesResponse {
/**
diff --git a/src/model/ArduinoThing.js b/src/model/ArduinoThing.js
index 4706612..03cc77b 100644
--- a/src/model/ArduinoThing.js
+++ b/src/model/ArduinoThing.js
@@ -17,7 +17,7 @@ import ArduinoProperty from './ArduinoProperty';
/**
* The ArduinoThing model module.
* @module model/ArduinoThing
- * @version 1.3.7
+ * @version 1.3.8
*/
class ArduinoThing {
/**
diff --git a/src/model/ArduinoTimeseriesmedia.js b/src/model/ArduinoTimeseriesmedia.js
index fdc00a2..9b288d5 100644
--- a/src/model/ArduinoTimeseriesmedia.js
+++ b/src/model/ArduinoTimeseriesmedia.js
@@ -17,7 +17,7 @@ import TimeseriesDataPoint from './TimeseriesDataPoint';
/**
* The ArduinoTimeseriesmedia model module.
* @module model/ArduinoTimeseriesmedia
- * @version 1.3.7
+ * @version 1.3.8
*/
class ArduinoTimeseriesmedia {
/**
diff --git a/src/model/ArduinoVariableslinks.js b/src/model/ArduinoVariableslinks.js
new file mode 100644
index 0000000..4701793
--- /dev/null
+++ b/src/model/ArduinoVariableslinks.js
@@ -0,0 +1,75 @@
+/**
+ * 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';
+
+/**
+ * The ArduinoVariableslinks model module.
+ * @module model/ArduinoVariableslinks
+ * @version 1.3.8
+ */
+class ArduinoVariableslinks {
+ /**
+ * Constructs a new ArduinoVariableslinks.
+ * ArduinoVariableslinks media type (default view)
+ * @alias module:model/ArduinoVariableslinks
+ * @param variables {Array.} The ids of the linked variables
+ */
+ constructor(variables) {
+
+ ArduinoVariableslinks.initialize(this, variables);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj, variables) {
+ obj['variables'] = variables;
+ }
+
+ /**
+ * Constructs a ArduinoVariableslinks from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ArduinoVariableslinks} obj Optional instance to populate.
+ * @return {module:model/ArduinoVariableslinks} The populated ArduinoVariableslinks instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new ArduinoVariableslinks();
+
+ if (data.hasOwnProperty('variables')) {
+ obj['variables'] = ApiClient.convertToType(data['variables'], ['String']);
+ }
+ }
+ return obj;
+ }
+
+
+}
+
+/**
+ * The ids of the linked variables
+ * @member {Array.} variables
+ */
+ArduinoVariableslinks.prototype['variables'] = undefined;
+
+
+
+
+
+
+export default ArduinoVariableslinks;
+
diff --git a/src/model/ArduinoWidgetv2.js b/src/model/ArduinoWidgetv2.js
new file mode 100644
index 0000000..e211743
--- /dev/null
+++ b/src/model/ArduinoWidgetv2.js
@@ -0,0 +1,238 @@
+/**
+ * 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 ArduinoLinkedvariable from './ArduinoLinkedvariable';
+
+/**
+ * The ArduinoWidgetv2 model module.
+ * @module model/ArduinoWidgetv2
+ * @version 1.3.8
+ */
+class ArduinoWidgetv2 {
+ /**
+ * Constructs a new ArduinoWidgetv2.
+ * Widget describes a dashboard widget (default view)
+ * @alias module:model/ArduinoWidgetv2
+ * @param height {Number} Widget current height for desktop
+ * @param id {String} The UUID of the widget, set by client
+ * @param options {Object.} Widget options
+ * @param type {module:model/ArduinoWidgetv2.TypeEnum} The type of the widget
+ * @param width {Number} Widget current width for desktop
+ * @param x {Number} Widget x position for desktop
+ * @param y {Number} Widget y position for desktop
+ */
+ constructor(height, id, options, type, width, x, y) {
+
+ ArduinoWidgetv2.initialize(this, height, id, options, type, width, x, y);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj, height, id, options, type, width, x, y) {
+ obj['height'] = height;
+ obj['id'] = id;
+ obj['options'] = options;
+ obj['type'] = type;
+ obj['width'] = width;
+ obj['x'] = x;
+ obj['y'] = y;
+ }
+
+ /**
+ * Constructs a ArduinoWidgetv2 from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ArduinoWidgetv2} obj Optional instance to populate.
+ * @return {module:model/ArduinoWidgetv2} The populated ArduinoWidgetv2 instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new ArduinoWidgetv2();
+
+ if (data.hasOwnProperty('has_permission_incompatibility')) {
+ obj['has_permission_incompatibility'] = ApiClient.convertToType(data['has_permission_incompatibility'], 'Boolean');
+ }
+ if (data.hasOwnProperty('has_type_incompatibility')) {
+ obj['has_type_incompatibility'] = ApiClient.convertToType(data['has_type_incompatibility'], 'Boolean');
+ }
+ if (data.hasOwnProperty('has_unlinked_variable')) {
+ obj['has_unlinked_variable'] = ApiClient.convertToType(data['has_unlinked_variable'], 'Boolean');
+ }
+ if (data.hasOwnProperty('height')) {
+ obj['height'] = ApiClient.convertToType(data['height'], 'Number');
+ }
+ if (data.hasOwnProperty('height_mobile')) {
+ obj['height_mobile'] = ApiClient.convertToType(data['height_mobile'], 'Number');
+ }
+ if (data.hasOwnProperty('id')) {
+ obj['id'] = ApiClient.convertToType(data['id'], 'String');
+ }
+ if (data.hasOwnProperty('name')) {
+ obj['name'] = ApiClient.convertToType(data['name'], 'String');
+ }
+ if (data.hasOwnProperty('options')) {
+ obj['options'] = ApiClient.convertToType(data['options'], {'String': Object});
+ }
+ if (data.hasOwnProperty('type')) {
+ obj['type'] = ApiClient.convertToType(data['type'], 'String');
+ }
+ if (data.hasOwnProperty('variables')) {
+ obj['variables'] = ApiClient.convertToType(data['variables'], [ArduinoLinkedvariable]);
+ }
+ if (data.hasOwnProperty('width')) {
+ obj['width'] = ApiClient.convertToType(data['width'], 'Number');
+ }
+ if (data.hasOwnProperty('width_mobile')) {
+ obj['width_mobile'] = ApiClient.convertToType(data['width_mobile'], 'Number');
+ }
+ if (data.hasOwnProperty('x')) {
+ obj['x'] = ApiClient.convertToType(data['x'], 'Number');
+ }
+ if (data.hasOwnProperty('x_mobile')) {
+ obj['x_mobile'] = ApiClient.convertToType(data['x_mobile'], 'Number');
+ }
+ if (data.hasOwnProperty('y')) {
+ obj['y'] = ApiClient.convertToType(data['y'], 'Number');
+ }
+ if (data.hasOwnProperty('y_mobile')) {
+ obj['y_mobile'] = ApiClient.convertToType(data['y_mobile'], 'Number');
+ }
+ }
+ return obj;
+ }
+
+
+}
+
+/**
+ * True if the linked variables permissions are incompatible with the widget
+ * @member {Boolean} has_permission_incompatibility
+ */
+ArduinoWidgetv2.prototype['has_permission_incompatibility'] = undefined;
+
+/**
+ * True if the linked variables types are incompatible with the widget
+ * @member {Boolean} has_type_incompatibility
+ */
+ArduinoWidgetv2.prototype['has_type_incompatibility'] = undefined;
+
+/**
+ * If it's true the widget is linked to a soft-deleted variable
+ * @member {Boolean} has_unlinked_variable
+ */
+ArduinoWidgetv2.prototype['has_unlinked_variable'] = undefined;
+
+/**
+ * Widget current height for desktop
+ * @member {Number} height
+ */
+ArduinoWidgetv2.prototype['height'] = undefined;
+
+/**
+ * Widget current height for mobile
+ * @member {Number} height_mobile
+ */
+ArduinoWidgetv2.prototype['height_mobile'] = undefined;
+
+/**
+ * The UUID of the widget, set by client
+ * @member {String} id
+ */
+ArduinoWidgetv2.prototype['id'] = undefined;
+
+/**
+ * The name of the widget
+ * @member {String} name
+ */
+ArduinoWidgetv2.prototype['name'] = undefined;
+
+/**
+ * Widget options
+ * @member {Object.} options
+ */
+ArduinoWidgetv2.prototype['options'] = undefined;
+
+/**
+ * The type of the widget
+ * @member {module:model/ArduinoWidgetv2.TypeEnum} type
+ */
+ArduinoWidgetv2.prototype['type'] = undefined;
+
+/**
+ * ArduinoLinkedvariableCollection is the media type for an array of ArduinoLinkedvariable (default view)
+ * @member {Array.} variables
+ */
+ArduinoWidgetv2.prototype['variables'] = undefined;
+
+/**
+ * Widget current width for desktop
+ * @member {Number} width
+ */
+ArduinoWidgetv2.prototype['width'] = undefined;
+
+/**
+ * Widget current width for mobile
+ * @member {Number} width_mobile
+ */
+ArduinoWidgetv2.prototype['width_mobile'] = undefined;
+
+/**
+ * Widget x position for desktop
+ * @member {Number} x
+ */
+ArduinoWidgetv2.prototype['x'] = undefined;
+
+/**
+ * Widget x position for mobile
+ * @member {Number} x_mobile
+ */
+ArduinoWidgetv2.prototype['x_mobile'] = undefined;
+
+/**
+ * Widget y position for desktop
+ * @member {Number} y
+ */
+ArduinoWidgetv2.prototype['y'] = undefined;
+
+/**
+ * Widget y position for mobile
+ * @member {Number} y_mobile
+ */
+ArduinoWidgetv2.prototype['y_mobile'] = undefined;
+
+
+
+
+
+/**
+ * Allowed values for the type property.
+ * @enum {String}
+ * @readonly
+ */
+ArduinoWidgetv2['TypeEnum'] = {
+
+ /**
+ * value: "slider, gauge"
+ * @const
+ */
+ "slider, gauge": "slider, gauge"
+};
+
+
+
+export default ArduinoWidgetv2;
+
diff --git a/src/model/BatchLastValueRequestsMediaV1.js b/src/model/BatchLastValueRequestsMediaV1.js
index 630a5ce..56fe58f 100644
--- a/src/model/BatchLastValueRequestsMediaV1.js
+++ b/src/model/BatchLastValueRequestsMediaV1.js
@@ -17,7 +17,7 @@ import BatchQueryRawLastValueRequestMediaV1 from './BatchQueryRawLastValueReques
/**
* The BatchLastValueRequestsMediaV1 model module.
* @module model/BatchLastValueRequestsMediaV1
- * @version 1.3.7
+ * @version 1.3.8
*/
class BatchLastValueRequestsMediaV1 {
/**
diff --git a/src/model/BatchQueryRawLastValueRequestMediaV1.js b/src/model/BatchQueryRawLastValueRequestMediaV1.js
index 7068f4d..fe07787 100644
--- a/src/model/BatchQueryRawLastValueRequestMediaV1.js
+++ b/src/model/BatchQueryRawLastValueRequestMediaV1.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The BatchQueryRawLastValueRequestMediaV1 model module.
* @module model/BatchQueryRawLastValueRequestMediaV1
- * @version 1.3.7
+ * @version 1.3.8
*/
class BatchQueryRawLastValueRequestMediaV1 {
/**
diff --git a/src/model/BatchQueryRawRequestMediaV1.js b/src/model/BatchQueryRawRequestMediaV1.js
index 83c43d1..8bf1fb2 100644
--- a/src/model/BatchQueryRawRequestMediaV1.js
+++ b/src/model/BatchQueryRawRequestMediaV1.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The BatchQueryRawRequestMediaV1 model module.
* @module model/BatchQueryRawRequestMediaV1
- * @version 1.3.7
+ * @version 1.3.8
*/
class BatchQueryRawRequestMediaV1 {
/**
diff --git a/src/model/BatchQueryRawRequestsMediaV1.js b/src/model/BatchQueryRawRequestsMediaV1.js
index fe3a44e..d974904 100644
--- a/src/model/BatchQueryRawRequestsMediaV1.js
+++ b/src/model/BatchQueryRawRequestsMediaV1.js
@@ -17,7 +17,7 @@ import BatchQueryRawRequestMediaV1 from './BatchQueryRawRequestMediaV1';
/**
* The BatchQueryRawRequestsMediaV1 model module.
* @module model/BatchQueryRawRequestsMediaV1
- * @version 1.3.7
+ * @version 1.3.8
*/
class BatchQueryRawRequestsMediaV1 {
/**
diff --git a/src/model/BatchQueryRawResponseSeriesMediaV1.js b/src/model/BatchQueryRawResponseSeriesMediaV1.js
index 3fbfda6..d9472dd 100644
--- a/src/model/BatchQueryRawResponseSeriesMediaV1.js
+++ b/src/model/BatchQueryRawResponseSeriesMediaV1.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The BatchQueryRawResponseSeriesMediaV1 model module.
* @module model/BatchQueryRawResponseSeriesMediaV1
- * @version 1.3.7
+ * @version 1.3.8
*/
class BatchQueryRawResponseSeriesMediaV1 {
/**
diff --git a/src/model/BatchQueryRequestMediaV1.js b/src/model/BatchQueryRequestMediaV1.js
index 83ae6af..d2e2ea7 100644
--- a/src/model/BatchQueryRequestMediaV1.js
+++ b/src/model/BatchQueryRequestMediaV1.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The BatchQueryRequestMediaV1 model module.
* @module model/BatchQueryRequestMediaV1
- * @version 1.3.7
+ * @version 1.3.8
*/
class BatchQueryRequestMediaV1 {
/**
diff --git a/src/model/BatchQueryRequestsMediaV1.js b/src/model/BatchQueryRequestsMediaV1.js
index dc784e4..93480c9 100644
--- a/src/model/BatchQueryRequestsMediaV1.js
+++ b/src/model/BatchQueryRequestsMediaV1.js
@@ -17,7 +17,7 @@ import BatchQueryRequestMediaV1 from './BatchQueryRequestMediaV1';
/**
* The BatchQueryRequestsMediaV1 model module.
* @module model/BatchQueryRequestsMediaV1
- * @version 1.3.7
+ * @version 1.3.8
*/
class BatchQueryRequestsMediaV1 {
/**
diff --git a/src/model/CheckDevicesV2PassPayload.js b/src/model/CheckDevicesV2PassPayload.js
index 96b6394..40c9deb 100644
--- a/src/model/CheckDevicesV2PassPayload.js
+++ b/src/model/CheckDevicesV2PassPayload.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The CheckDevicesV2PassPayload model module.
* @module model/CheckDevicesV2PassPayload
- * @version 1.3.7
+ * @version 1.3.8
*/
class CheckDevicesV2PassPayload {
/**
diff --git a/src/model/CreateDevicesV2CertsPayload.js b/src/model/CreateDevicesV2CertsPayload.js
index 77d8cbe..ee21f38 100644
--- a/src/model/CreateDevicesV2CertsPayload.js
+++ b/src/model/CreateDevicesV2CertsPayload.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The CreateDevicesV2CertsPayload model module.
* @module model/CreateDevicesV2CertsPayload
- * @version 1.3.7
+ * @version 1.3.8
*/
class CreateDevicesV2CertsPayload {
/**
diff --git a/src/model/CreateDevicesV2Payload.js b/src/model/CreateDevicesV2Payload.js
index 7794205..45ee121 100644
--- a/src/model/CreateDevicesV2Payload.js
+++ b/src/model/CreateDevicesV2Payload.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The CreateDevicesV2Payload model module.
* @module model/CreateDevicesV2Payload
- * @version 1.3.7
+ * @version 1.3.8
*/
class CreateDevicesV2Payload {
/**
diff --git a/src/model/Dashboardshare.js b/src/model/Dashboardshare.js
new file mode 100644
index 0000000..35d51c9
--- /dev/null
+++ b/src/model/Dashboardshare.js
@@ -0,0 +1,81 @@
+/**
+ * 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';
+
+/**
+ * The Dashboardshare model module.
+ * @module model/Dashboardshare
+ * @version 1.3.8
+ */
+class Dashboardshare {
+ /**
+ * Constructs a new Dashboardshare.
+ * @alias module:model/Dashboardshare
+ */
+ constructor() {
+
+ Dashboardshare.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a Dashboardshare from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/Dashboardshare} obj Optional instance to populate.
+ * @return {module:model/Dashboardshare} The populated Dashboardshare instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new Dashboardshare();
+
+ if (data.hasOwnProperty('user_id')) {
+ obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String');
+ }
+ if (data.hasOwnProperty('username')) {
+ obj['username'] = ApiClient.convertToType(data['username'], 'String');
+ }
+ }
+ return obj;
+ }
+
+
+}
+
+/**
+ * The userID of the user you want to share the dashboard with
+ * @member {String} user_id
+ */
+Dashboardshare.prototype['user_id'] = undefined;
+
+/**
+ * The username of the user you want to share the dashboard with
+ * @member {String} username
+ */
+Dashboardshare.prototype['username'] = undefined;
+
+
+
+
+
+
+export default Dashboardshare;
+
diff --git a/src/model/Dashboardv2.js b/src/model/Dashboardv2.js
new file mode 100644
index 0000000..877511e
--- /dev/null
+++ b/src/model/Dashboardv2.js
@@ -0,0 +1,83 @@
+/**
+ * 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 Widget from './Widget';
+
+/**
+ * The Dashboardv2 model module.
+ * @module model/Dashboardv2
+ * @version 1.3.8
+ */
+class Dashboardv2 {
+ /**
+ * Constructs a new Dashboardv2.
+ * DashboardV2Payload describes a dashboard
+ * @alias module:model/Dashboardv2
+ */
+ constructor() {
+
+ Dashboardv2.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a Dashboardv2 from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/Dashboardv2} obj Optional instance to populate.
+ * @return {module:model/Dashboardv2} The populated Dashboardv2 instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new Dashboardv2();
+
+ if (data.hasOwnProperty('name')) {
+ obj['name'] = ApiClient.convertToType(data['name'], 'String');
+ }
+ if (data.hasOwnProperty('widgets')) {
+ obj['widgets'] = ApiClient.convertToType(data['widgets'], [Widget]);
+ }
+ }
+ return obj;
+ }
+
+
+}
+
+/**
+ * The friendly name of the dashboard
+ * @member {String} name
+ */
+Dashboardv2.prototype['name'] = undefined;
+
+/**
+ * Widgets attached to this dashboard
+ * @member {Array.} widgets
+ */
+Dashboardv2.prototype['widgets'] = undefined;
+
+
+
+
+
+
+export default Dashboardv2;
+
diff --git a/src/model/Devicev2.js b/src/model/Devicev2.js
index 62c0fab..399c115 100644
--- a/src/model/Devicev2.js
+++ b/src/model/Devicev2.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The Devicev2 model module.
* @module model/Devicev2
- * @version 1.3.7
+ * @version 1.3.8
*/
class Devicev2 {
/**
diff --git a/src/model/Devicev2Cert.js b/src/model/Devicev2Cert.js
index 907eaf7..9a194d4 100644
--- a/src/model/Devicev2Cert.js
+++ b/src/model/Devicev2Cert.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The Devicev2Cert model module.
* @module model/Devicev2Cert
- * @version 1.3.7
+ * @version 1.3.8
*/
class Devicev2Cert {
/**
diff --git a/src/model/Devicev2Otabinaryurl.js b/src/model/Devicev2Otabinaryurl.js
index eddb253..fa9ecaa 100644
--- a/src/model/Devicev2Otabinaryurl.js
+++ b/src/model/Devicev2Otabinaryurl.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The Devicev2Otabinaryurl model module.
* @module model/Devicev2Otabinaryurl
- * @version 1.3.7
+ * @version 1.3.8
*/
class Devicev2Otabinaryurl {
/**
diff --git a/src/model/Devicev2Pass.js b/src/model/Devicev2Pass.js
index 7c7d694..40c8440 100644
--- a/src/model/Devicev2Pass.js
+++ b/src/model/Devicev2Pass.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The Devicev2Pass model module.
* @module model/Devicev2Pass
- * @version 1.3.7
+ * @version 1.3.8
*/
class Devicev2Pass {
/**
diff --git a/src/model/Error.js b/src/model/Error.js
index 70172f5..eaa4d91 100644
--- a/src/model/Error.js
+++ b/src/model/Error.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The Error model module.
* @module model/Error
- * @version 1.3.7
+ * @version 1.3.8
*/
class Error {
/**
diff --git a/src/model/HistoricDataRequest.js b/src/model/HistoricDataRequest.js
index 2db8013..caafa24 100644
--- a/src/model/HistoricDataRequest.js
+++ b/src/model/HistoricDataRequest.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The HistoricDataRequest model module.
* @module model/HistoricDataRequest
- * @version 1.3.7
+ * @version 1.3.8
*/
class HistoricDataRequest {
/**
diff --git a/src/model/InlineObject.js b/src/model/InlineObject.js
index 05cfa2b..f331e23 100644
--- a/src/model/InlineObject.js
+++ b/src/model/InlineObject.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The InlineObject model module.
* @module model/InlineObject
- * @version 1.3.7
+ * @version 1.3.8
*/
class InlineObject {
/**
diff --git a/src/model/PropertiesValue.js b/src/model/PropertiesValue.js
index b739c91..5a4d0e8 100644
--- a/src/model/PropertiesValue.js
+++ b/src/model/PropertiesValue.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The PropertiesValue model module.
* @module model/PropertiesValue
- * @version 1.3.7
+ * @version 1.3.8
*/
class PropertiesValue {
/**
diff --git a/src/model/PropertiesValues.js b/src/model/PropertiesValues.js
index 52740c9..9feea67 100644
--- a/src/model/PropertiesValues.js
+++ b/src/model/PropertiesValues.js
@@ -17,7 +17,7 @@ import PropertiesValue from './PropertiesValue';
/**
* The PropertiesValues model module.
* @module model/PropertiesValues
- * @version 1.3.7
+ * @version 1.3.8
*/
class PropertiesValues {
/**
diff --git a/src/model/Property.js b/src/model/Property.js
index 76e689b..8e4c61c 100644
--- a/src/model/Property.js
+++ b/src/model/Property.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The Property model module.
* @module model/Property
- * @version 1.3.7
+ * @version 1.3.8
*/
class Property {
/**
diff --git a/src/model/PropertyValue.js b/src/model/PropertyValue.js
index 4f50046..b405c59 100644
--- a/src/model/PropertyValue.js
+++ b/src/model/PropertyValue.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The PropertyValue model module.
* @module model/PropertyValue
- * @version 1.3.7
+ * @version 1.3.8
*/
class PropertyValue {
/**
diff --git a/src/model/Sharerequest.js b/src/model/Sharerequest.js
new file mode 100644
index 0000000..a2027ca
--- /dev/null
+++ b/src/model/Sharerequest.js
@@ -0,0 +1,72 @@
+/**
+ * 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';
+
+/**
+ * The Sharerequest model module.
+ * @module model/Sharerequest
+ * @version 1.3.8
+ */
+class Sharerequest {
+ /**
+ * Constructs a new Sharerequest.
+ * @alias module:model/Sharerequest
+ */
+ constructor() {
+
+ Sharerequest.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a Sharerequest from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/Sharerequest} obj Optional instance to populate.
+ * @return {module:model/Sharerequest} The populated Sharerequest instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new Sharerequest();
+
+ if (data.hasOwnProperty('message')) {
+ obj['message'] = ApiClient.convertToType(data['message'], 'String');
+ }
+ }
+ return obj;
+ }
+
+
+}
+
+/**
+ * The message the user want to send to the dashboard owner
+ * @member {String} message
+ */
+Sharerequest.prototype['message'] = undefined;
+
+
+
+
+
+
+export default Sharerequest;
+
diff --git a/src/model/Thing.js b/src/model/Thing.js
index 40f28a9..32326d9 100644
--- a/src/model/Thing.js
+++ b/src/model/Thing.js
@@ -17,7 +17,7 @@ import Property from './Property';
/**
* The Thing model module.
* @module model/Thing
- * @version 1.3.7
+ * @version 1.3.8
*/
class Thing {
/**
diff --git a/src/model/ThingSketch.js b/src/model/ThingSketch.js
index 2d72445..cc53ca3 100644
--- a/src/model/ThingSketch.js
+++ b/src/model/ThingSketch.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The ThingSketch model module.
* @module model/ThingSketch
- * @version 1.3.7
+ * @version 1.3.8
*/
class ThingSketch {
/**
diff --git a/src/model/TimeseriesDataPoint.js b/src/model/TimeseriesDataPoint.js
index ea9c8c7..5d26ff1 100644
--- a/src/model/TimeseriesDataPoint.js
+++ b/src/model/TimeseriesDataPoint.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The TimeseriesDataPoint model module.
* @module model/TimeseriesDataPoint
- * @version 1.3.7
+ * @version 1.3.8
*/
class TimeseriesDataPoint {
/**
diff --git a/src/model/UpdateSketch.js b/src/model/UpdateSketch.js
index 0649def..08a0c20 100644
--- a/src/model/UpdateSketch.js
+++ b/src/model/UpdateSketch.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The UpdateSketch model module.
* @module model/UpdateSketch
- * @version 1.3.7
+ * @version 1.3.8
*/
class UpdateSketch {
/**
diff --git a/src/model/Widget.js b/src/model/Widget.js
new file mode 100644
index 0000000..6fbf18e
--- /dev/null
+++ b/src/model/Widget.js
@@ -0,0 +1,194 @@
+/**
+ * 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';
+
+/**
+ * The Widget model module.
+ * @module model/Widget
+ * @version 1.3.8
+ */
+class Widget {
+ /**
+ * Constructs a new Widget.
+ * Widget describes a dashboard widget
+ * @alias module:model/Widget
+ * @param height {Number} Widget current height for desktop
+ * @param id {String} The UUID of the widget, set by client
+ * @param options {Object.} Widget options
+ * @param type {String} The type of the widget
+ * @param width {Number} Widget current width for desktop
+ * @param x {Number} Widget x position for desktop
+ * @param y {Number} Widget y position for desktop
+ */
+ constructor(height, id, options, type, width, x, y) {
+
+ Widget.initialize(this, height, id, options, type, width, x, y);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj, height, id, options, type, width, x, y) {
+ obj['height'] = height;
+ obj['id'] = id;
+ obj['options'] = options;
+ obj['type'] = type;
+ obj['width'] = width;
+ obj['x'] = x;
+ obj['y'] = y;
+ }
+
+ /**
+ * Constructs a Widget from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/Widget} obj Optional instance to populate.
+ * @return {module:model/Widget} The populated Widget instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new Widget();
+
+ if (data.hasOwnProperty('height')) {
+ obj['height'] = ApiClient.convertToType(data['height'], 'Number');
+ }
+ if (data.hasOwnProperty('height_mobile')) {
+ obj['height_mobile'] = ApiClient.convertToType(data['height_mobile'], 'Number');
+ }
+ if (data.hasOwnProperty('id')) {
+ obj['id'] = ApiClient.convertToType(data['id'], 'String');
+ }
+ if (data.hasOwnProperty('name')) {
+ obj['name'] = ApiClient.convertToType(data['name'], 'String');
+ }
+ if (data.hasOwnProperty('options')) {
+ obj['options'] = ApiClient.convertToType(data['options'], {'String': Object});
+ }
+ if (data.hasOwnProperty('type')) {
+ obj['type'] = ApiClient.convertToType(data['type'], 'String');
+ }
+ if (data.hasOwnProperty('variables')) {
+ obj['variables'] = ApiClient.convertToType(data['variables'], ['String']);
+ }
+ if (data.hasOwnProperty('width')) {
+ obj['width'] = ApiClient.convertToType(data['width'], 'Number');
+ }
+ if (data.hasOwnProperty('width_mobile')) {
+ obj['width_mobile'] = ApiClient.convertToType(data['width_mobile'], 'Number');
+ }
+ if (data.hasOwnProperty('x')) {
+ obj['x'] = ApiClient.convertToType(data['x'], 'Number');
+ }
+ if (data.hasOwnProperty('x_mobile')) {
+ obj['x_mobile'] = ApiClient.convertToType(data['x_mobile'], 'Number');
+ }
+ if (data.hasOwnProperty('y')) {
+ obj['y'] = ApiClient.convertToType(data['y'], 'Number');
+ }
+ if (data.hasOwnProperty('y_mobile')) {
+ obj['y_mobile'] = ApiClient.convertToType(data['y_mobile'], 'Number');
+ }
+ }
+ return obj;
+ }
+
+
+}
+
+/**
+ * Widget current height for desktop
+ * @member {Number} height
+ */
+Widget.prototype['height'] = undefined;
+
+/**
+ * Widget current height for mobile
+ * @member {Number} height_mobile
+ */
+Widget.prototype['height_mobile'] = undefined;
+
+/**
+ * The UUID of the widget, set by client
+ * @member {String} id
+ */
+Widget.prototype['id'] = undefined;
+
+/**
+ * The name of the widget
+ * @member {String} name
+ */
+Widget.prototype['name'] = undefined;
+
+/**
+ * Widget options
+ * @member {Object.} options
+ */
+Widget.prototype['options'] = undefined;
+
+/**
+ * The type of the widget
+ * @member {String} type
+ */
+Widget.prototype['type'] = undefined;
+
+/**
+ * @member {Array.} variables
+ */
+Widget.prototype['variables'] = undefined;
+
+/**
+ * Widget current width for desktop
+ * @member {Number} width
+ */
+Widget.prototype['width'] = undefined;
+
+/**
+ * Widget current width for mobile
+ * @member {Number} width_mobile
+ */
+Widget.prototype['width_mobile'] = undefined;
+
+/**
+ * Widget x position for desktop
+ * @member {Number} x
+ */
+Widget.prototype['x'] = undefined;
+
+/**
+ * Widget x position for mobile
+ * @member {Number} x_mobile
+ */
+Widget.prototype['x_mobile'] = undefined;
+
+/**
+ * Widget y position for desktop
+ * @member {Number} y
+ */
+Widget.prototype['y'] = undefined;
+
+/**
+ * Widget y position for mobile
+ * @member {Number} y_mobile
+ */
+Widget.prototype['y_mobile'] = undefined;
+
+
+
+
+
+
+export default Widget;
+
diff --git a/src/model/Widgetlink.js b/src/model/Widgetlink.js
new file mode 100644
index 0000000..8cdc99f
--- /dev/null
+++ b/src/model/Widgetlink.js
@@ -0,0 +1,71 @@
+/**
+ * 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';
+
+/**
+ * The Widgetlink model module.
+ * @module model/Widgetlink
+ * @version 1.3.8
+ */
+class Widgetlink {
+ /**
+ * Constructs a new Widgetlink.
+ * @alias module:model/Widgetlink
+ */
+ constructor() {
+
+ Widgetlink.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a Widgetlink from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/Widgetlink} obj Optional instance to populate.
+ * @return {module:model/Widgetlink} The populated Widgetlink instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new Widgetlink();
+
+ if (data.hasOwnProperty('variables')) {
+ obj['variables'] = ApiClient.convertToType(data['variables'], ['String']);
+ }
+ }
+ return obj;
+ }
+
+
+}
+
+/**
+ * @member {Array.} variables
+ */
+Widgetlink.prototype['variables'] = undefined;
+
+
+
+
+
+
+export default Widgetlink;
+
From e374366485ee63903e430460ad7d24c9fd70b2f4 Mon Sep 17 00:00:00 2001
From: Paolo Calao
Date: Thu, 30 Sep 2021 14:35:17 +0200
Subject: [PATCH 2/2] Update ArduinoWidgetv2.js
---
src/model/ArduinoWidgetv2.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/model/ArduinoWidgetv2.js b/src/model/ArduinoWidgetv2.js
index e211743..cf3c5ee 100644
--- a/src/model/ArduinoWidgetv2.js
+++ b/src/model/ArduinoWidgetv2.js
@@ -9,6 +9,7 @@
* https://openapi-generator.tech
* Do not edit the class manually.
*
+ *
*/
import ApiClient from '../ApiClient';