diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES
index 94af017..ba500c6 100644
--- a/.openapi-generator/FILES
+++ b/.openapi-generator/FILES
@@ -4,6 +4,7 @@
README.md
docs/ArduinoAction.md
docs/ArduinoActionTemplate.md
+docs/ArduinoArduinoconnectionsV1.md
docs/ArduinoCompressedv2.md
docs/ArduinoCredentialsv1.md
docs/ArduinoDashboardowner.md
@@ -72,6 +73,7 @@ docs/BodyExpression.md
docs/CheckDevicesV2PassPayload.md
docs/Clone.md
docs/CreateAction.md
+docs/CreateClaimedDevicesV2Payload.md
docs/CreateDevicesV2CertsPayload.md
docs/CreateDevicesV2Payload.md
docs/CreateLoraDevicesV1Payload.md
@@ -124,6 +126,7 @@ docs/TriggersV1Api.md
docs/UpdateAction.md
docs/UpdateSketch.md
docs/UserRecipient.md
+docs/Usershare.md
docs/Variable.md
docs/Widget.md
docs/Widgetlink.md
@@ -150,6 +153,7 @@ src/api/TriggersV1Api.js
src/index.js
src/model/ArduinoAction.js
src/model/ArduinoActionTemplate.js
+src/model/ArduinoArduinoconnectionsV1.js
src/model/ArduinoCompressedv2.js
src/model/ArduinoCredentialsv1.js
src/model/ArduinoDashboardowner.js
@@ -218,6 +222,7 @@ src/model/BodyExpression.js
src/model/CheckDevicesV2PassPayload.js
src/model/Clone.js
src/model/CreateAction.js
+src/model/CreateClaimedDevicesV2Payload.js
src/model/CreateDevicesV2CertsPayload.js
src/model/CreateDevicesV2Payload.js
src/model/CreateLoraDevicesV1Payload.js
@@ -254,29 +259,10 @@ src/model/Trigger.js
src/model/UpdateAction.js
src/model/UpdateSketch.js
src/model/UserRecipient.js
+src/model/Usershare.js
src/model/Variable.js
src/model/Widget.js
src/model/Widgetlink.js
-test/api/TriggersV1Api.spec.js
-test/model/ArduinoAction.spec.js
-test/model/ArduinoActionTemplate.spec.js
-test/model/ArduinoLinkedDevice.spec.js
-test/model/ArduinoLinkedDeviceTemplate.spec.js
-test/model/ArduinoLinkedProperty.spec.js
-test/model/ArduinoLinkedPropertyTemplate.spec.js
-test/model/ArduinoTrigger.spec.js
-test/model/ArduinoTriggerTemplate.spec.js
-test/model/ArduinoTriggerWithLinkedEntities.spec.js
-test/model/BodyExpression.spec.js
-test/model/CreateAction.spec.js
-test/model/DeviceStatusSource.spec.js
-test/model/DeviceStatusSourceWithLinkedDevices.spec.js
-test/model/EmailAction.spec.js
-test/model/EmailDeliveryOpts.spec.js
-test/model/PushAction.spec.js
-test/model/PushDeliveryOpts.spec.js
-test/model/TitleExpression.spec.js
-test/model/Trigger.spec.js
-test/model/UpdateAction.spec.js
-test/model/UserRecipient.spec.js
-test/model/Variable.spec.js
+test/model/ArduinoArduinoconnectionsV1.spec.js
+test/model/CreateClaimedDevicesV2Payload.spec.js
+test/model/Usershare.spec.js
diff --git a/docs/ArduinoArduinoconnectionsV1.md b/docs/ArduinoArduinoconnectionsV1.md
new file mode 100644
index 0000000..9bd49ba
--- /dev/null
+++ b/docs/ArduinoArduinoconnectionsV1.md
@@ -0,0 +1,16 @@
+# ArduinoIotClient.ArduinoArduinoconnectionsV1
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**catm1** | [**[ArduinoCredentialsv1]**](ArduinoCredentialsv1.md) | ArduinoCredentialsv1Collection is the media type for an array of ArduinoCredentialsv1 (default view) | [optional]
+**cellular** | [**[ArduinoCredentialsv1]**](ArduinoCredentialsv1.md) | ArduinoCredentialsv1Collection is the media type for an array of ArduinoCredentialsv1 (default view) | [optional]
+**eth** | [**[ArduinoCredentialsv1]**](ArduinoCredentialsv1.md) | ArduinoCredentialsv1Collection is the media type for an array of ArduinoCredentialsv1 (default view) | [optional]
+**gsm** | [**[ArduinoCredentialsv1]**](ArduinoCredentialsv1.md) | ArduinoCredentialsv1Collection is the media type for an array of ArduinoCredentialsv1 (default view) | [optional]
+**lora** | [**[ArduinoCredentialsv1]**](ArduinoCredentialsv1.md) | ArduinoCredentialsv1Collection is the media type for an array of ArduinoCredentialsv1 (default view) | [optional]
+**nb** | [**[ArduinoCredentialsv1]**](ArduinoCredentialsv1.md) | ArduinoCredentialsv1Collection is the media type for an array of ArduinoCredentialsv1 (default view) | [optional]
+**wifi** | [**[ArduinoCredentialsv1]**](ArduinoCredentialsv1.md) | ArduinoCredentialsv1Collection is the media type for an array of ArduinoCredentialsv1 (default view) | [optional]
+**wifiandsecret** | [**[ArduinoCredentialsv1]**](ArduinoCredentialsv1.md) | ArduinoCredentialsv1Collection is the media type for an array of ArduinoCredentialsv1 (default view) | [optional]
+
+
diff --git a/docs/ArduinoDevicev2.md b/docs/ArduinoDevicev2.md
index 9727e63..a056605 100644
--- a/docs/ArduinoDevicev2.md
+++ b/docs/ArduinoDevicev2.md
@@ -4,6 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
+**bleMac** | **String** | | [optional]
**connectionType** | **String** | The type of the connections selected by the user when multiple connections are available | [optional]
**createdAt** | **Date** | Creation date of the device | [optional]
**deletedAt** | **Date** | Deletion date of the trigger | [optional]
@@ -12,9 +13,11 @@ Name | Type | Description | Notes
**fqbn** | **String** | The fully qualified board name | [optional]
**href** | **String** | The api reference of this device |
**id** | **String** | The arn of the device |
+**issuerCa** | **String** | | [optional]
**label** | **String** | The label of the device |
**lastActivityAt** | **Date** | Last activity date | [optional]
**latestWifiFwVersion** | **String** | The latest version of the NINA/WIFI101 firmware available for this device | [optional]
+**libVersion** | **String** | | [optional]
**metadata** | **{String: Object}** | The metadata of the device | [optional]
**name** | **String** | The friendly name of the device |
**noSketch** | **Boolean** | True if the device type can not have an associated sketch | [optional]
@@ -26,6 +29,7 @@ Name | Type | Description | Notes
**tags** | **{String: Object}** | Tags belonging to the device | [optional]
**thing** | [**ArduinoThing**](ArduinoThing.md) | | [optional]
**type** | **String** | The type of the device |
+**uniqueHardwareId** | **String** | The unique hardware id of the device | [optional]
**updatedAt** | **Date** | Update date of the trigger | [optional]
**userId** | **String** | The id of the user |
**webhooks** | [**[ArduinoDevicev2Webhook]**](ArduinoDevicev2Webhook.md) | ArduinoDevicev2WebhookCollection is the media type for an array of ArduinoDevicev2Webhook (default view) | [optional]
diff --git a/docs/CreateClaimedDevicesV2Payload.md b/docs/CreateClaimedDevicesV2Payload.md
new file mode 100644
index 0000000..0dbccb1
--- /dev/null
+++ b/docs/CreateClaimedDevicesV2Payload.md
@@ -0,0 +1,82 @@
+# ArduinoIotClient.CreateClaimedDevicesV2Payload
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**ID** | **String** | The id of the device | [optional]
+**bleMac** | **String** | | [optional]
+**connectionType** | **String** | The type of the connections selected by the user when multiple connections are available | [optional]
+**fqbn** | **String** | The fully qualified board name | [optional]
+**name** | **String** | The friendly name of the device | [optional]
+**serial** | **String** | The serial uuid of the device | [optional]
+**type** | **String** | The type of the device |
+**uniqueHardwareId** | **String** | The unique hardware id of the device |
+**userId** | **String** | The user_id associated to the device. If absent it will be inferred from the authentication header |
+**wifiFwVersion** | **String** | The version of the NINA/WIFI101 firmware running on the device | [optional]
+
+
+
+## Enum: ConnectionTypeEnum
+
+
+* `wifi` (value: `"wifi"`)
+
+* `eth` (value: `"eth"`)
+
+* `wifiandsecret` (value: `"wifiandsecret"`)
+
+* `gsm` (value: `"gsm"`)
+
+* `nb` (value: `"nb"`)
+
+* `lora` (value: `"lora"`)
+
+* `catm1` (value: `"catm1"`)
+
+* `cellular` (value: `"cellular"`)
+
+
+
+
+
+## Enum: TypeEnum
+
+
+* `mkrwifi1010` (value: `"mkrwifi1010"`)
+
+* `mkr1000` (value: `"mkr1000"`)
+
+* `nano_33_iot` (value: `"nano_33_iot"`)
+
+* `mkrgsm1400` (value: `"mkrgsm1400"`)
+
+* `mkrnb1500` (value: `"mkrnb1500"`)
+
+* `login_and_secretkey_wifi` (value: `"login_and_secretkey_wifi"`)
+
+* `envie_m7` (value: `"envie_m7"`)
+
+* `nanorp2040connect` (value: `"nanorp2040connect"`)
+
+* `nicla_vision` (value: `"nicla_vision"`)
+
+* `phone` (value: `"phone"`)
+
+* `portenta_x8` (value: `"portenta_x8"`)
+
+* `opta` (value: `"opta"`)
+
+* `giga` (value: `"giga"`)
+
+* `generic_device_secretkey` (value: `"generic_device_secretkey"`)
+
+* `portenta_c33` (value: `"portenta_c33"`)
+
+* `unor4wifi` (value: `"unor4wifi"`)
+
+* `nano_nora` (value: `"nano_nora"`)
+
+
+
+
diff --git a/docs/CreateDevicesV2Payload.md b/docs/CreateDevicesV2Payload.md
index 3fd03c5..a8556a3 100644
--- a/docs/CreateDevicesV2Payload.md
+++ b/docs/CreateDevicesV2Payload.md
@@ -4,12 +4,14 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
+**bleMac** | **String** | | [optional]
**connectionType** | **String** | The type of the connections selected by the user when multiple connections are available | [optional]
**fqbn** | **String** | The fully qualified board name | [optional]
**name** | **String** | The friendly name of the device | [optional]
**serial** | **String** | The serial uuid of the device | [optional]
**softDeleted** | **Boolean** | If false, restore the thing from the soft deletion | [optional] [default to false]
**type** | **String** | The type of the device |
+**uniqueHardwareId** | **String** | | [optional]
**userId** | **String** | The user_id associated to the device. If absent it will be inferred from the authentication header | [optional]
**wifiFwVersion** | **String** | The version of the NINA/WIFI101 firmware running on the device | [optional]
diff --git a/docs/DashboardsV2Api.md b/docs/DashboardsV2Api.md
index 6b05dc3..34e7e60 100644
--- a/docs/DashboardsV2Api.md
+++ b/docs/DashboardsV2Api.md
@@ -39,9 +39,9 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new ArduinoIotClient.DashboardsV2Api();
let id = "id_example"; // String | The id of the dashboard
-let clone = new ArduinoIotClient.Clone(); // Clone | Add overrides used when performing a clone of a dashboard
+let clone = new ArduinoIotClient.Clone(); // Clone |
let opts = {
- 'xOrganization': "xOrganization_example" // String | Organization space identifer (optional)
+ 'xOrganization': "xOrganization_example" // String |
};
apiInstance.dashboardsV2Clone(id, clone, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
@@ -57,8 +57,8 @@ apiInstance.dashboardsV2Clone(id, clone, opts).then((data) => {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **String**| The id of the dashboard |
- **clone** | [**Clone**](Clone.md)| Add overrides used when performing a clone of a dashboard |
- **xOrganization** | **String**| Organization space identifer (optional) | [optional]
+ **clone** | [**Clone**](Clone.md)| |
+ **xOrganization** | **String**| | [optional]
### Return type
@@ -92,9 +92,9 @@ let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new ArduinoIotClient.DashboardsV2Api();
-let dashboardv2 = new ArduinoIotClient.Dashboardv2(); // Dashboardv2 | Describes a dashboard
+let dashboardv2 = new ArduinoIotClient.Dashboardv2(); // Dashboardv2 | DashboardV2Payload describes a dashboard
let opts = {
- 'xOrganization': "xOrganization_example" // String | Organization space identifer (optional)
+ 'xOrganization': "xOrganization_example" // String |
};
apiInstance.dashboardsV2Create(dashboardv2, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
@@ -109,8 +109,8 @@ apiInstance.dashboardsV2Create(dashboardv2, opts).then((data) => {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **dashboardv2** | [**Dashboardv2**](Dashboardv2.md)| Describes a dashboard |
- **xOrganization** | **String**| Organization space identifer (optional) | [optional]
+ **dashboardv2** | [**Dashboardv2**](Dashboardv2.md)| DashboardV2Payload describes a dashboard |
+ **xOrganization** | **String**| | [optional]
### Return type
@@ -147,7 +147,7 @@ let apiInstance = new ArduinoIotClient.DashboardsV2Api();
let id = "id_example"; // String | The id of the dashboard
let opts = {
'force': false, // Boolean | If true, hard delete the thing
- 'xOrganization': "xOrganization_example" // String | Organization space identifer (optional)
+ 'xOrganization': "xOrganization_example" // String |
};
apiInstance.dashboardsV2Delete(id, opts).then(() => {
console.log('API called successfully.');
@@ -164,7 +164,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **String**| The id of the dashboard |
**force** | **Boolean**| If true, hard delete the thing | [optional] [default to false]
- **xOrganization** | **String**| Organization space identifer (optional) | [optional]
+ **xOrganization** | **String**| | [optional]
### Return type
@@ -201,7 +201,7 @@ let apiInstance = new ArduinoIotClient.DashboardsV2Api();
let id = "id_example"; // String | The id of the dashboard
let userId = "userId_example"; // String | The id of the user
let opts = {
- 'xOrganization': "xOrganization_example" // String | Organization space identifer (optional)
+ 'xOrganization': "xOrganization_example" // String |
};
apiInstance.dashboardsV2DeleteShare(id, userId, opts).then(() => {
console.log('API called successfully.');
@@ -218,7 +218,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **String**| The id of the dashboard |
**userId** | **String**| The id of the user |
- **xOrganization** | **String**| Organization space identifer (optional) | [optional]
+ **xOrganization** | **String**| | [optional]
### Return type
@@ -256,7 +256,7 @@ let id = "id_example"; // String | The id of the dashboard
let widgetId = "widgetId_example"; // String | The id of the widget
let widgetlink = new ArduinoIotClient.Widgetlink(); // Widgetlink |
let opts = {
- 'xOrganization': "xOrganization_example" // String | Organization space identifer (optional)
+ 'xOrganization': "xOrganization_example" // String |
};
apiInstance.dashboardsV2Link(id, widgetId, widgetlink, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
@@ -274,7 +274,7 @@ Name | Type | Description | Notes
**id** | **String**| The id of the dashboard |
**widgetId** | **String**| The id of the widget |
**widgetlink** | [**Widgetlink**](Widgetlink.md)| |
- **xOrganization** | **String**| Organization space identifer (optional) | [optional]
+ **xOrganization** | **String**| | [optional]
### Return type
@@ -309,9 +309,9 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new ArduinoIotClient.DashboardsV2Api();
let opts = {
- 'name': "name_example", // String | Filter by name of the dashboard. It support like matching.
- 'userId': "userId_example", // String | Filter by user_id of the dashboard's owner
- 'xOrganization': "xOrganization_example" // String | Organization space identifer (optional)
+ 'name': "name_example", // String | The name of the dashboard
+ 'userId': "userId_example", // String | The user_id of the dashboard's owner
+ 'xOrganization': "xOrganization_example" // String |
};
apiInstance.dashboardsV2List(opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
@@ -326,9 +326,9 @@ apiInstance.dashboardsV2List(opts).then((data) => {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **name** | **String**| Filter by name of the dashboard. It support like matching. | [optional]
- **userId** | **String**| Filter by user_id of the dashboard's owner | [optional]
- **xOrganization** | **String**| Organization space identifer (optional) | [optional]
+ **name** | **String**| The name of the dashboard | [optional]
+ **userId** | **String**| The user_id of the dashboard's owner | [optional]
+ **xOrganization** | **String**| | [optional]
### Return type
@@ -364,7 +364,7 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new ArduinoIotClient.DashboardsV2Api();
let id = "id_example"; // String | The id of the dashboard
let opts = {
- 'xOrganization': "xOrganization_example" // String | Organization space identifer (optional)
+ 'xOrganization': "xOrganization_example" // String |
};
apiInstance.dashboardsV2ListShares(id, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
@@ -380,7 +380,7 @@ apiInstance.dashboardsV2ListShares(id, opts).then((data) => {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **String**| The id of the dashboard |
- **xOrganization** | **String**| Organization space identifer (optional) | [optional]
+ **xOrganization** | **String**| | [optional]
### Return type
@@ -415,9 +415,9 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new ArduinoIotClient.DashboardsV2Api();
let id = "id_example"; // String | The id of the dashboard
-let dashboardv2 = new ArduinoIotClient.Dashboardv2(); // Dashboardv2 | Describes a dashboard
+let dashboardv2 = new ArduinoIotClient.Dashboardv2(); // Dashboardv2 | DashboardV2Payload describes a dashboard
let opts = {
- 'xOrganization': "xOrganization_example" // String | Organization space identifer (optional)
+ 'xOrganization': "xOrganization_example" // String |
};
apiInstance.dashboardsV2Patch(id, dashboardv2, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
@@ -433,8 +433,8 @@ apiInstance.dashboardsV2Patch(id, dashboardv2, opts).then((data) => {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **String**| The id of the dashboard |
- **dashboardv2** | [**Dashboardv2**](Dashboardv2.md)| Describes a dashboard |
- **xOrganization** | **String**| Organization space identifer (optional) | [optional]
+ **dashboardv2** | [**Dashboardv2**](Dashboardv2.md)| DashboardV2Payload describes a dashboard |
+ **xOrganization** | **String**| | [optional]
### Return type
@@ -471,7 +471,7 @@ let apiInstance = new ArduinoIotClient.DashboardsV2Api();
let id = "id_example"; // String | The id of the dashboard
let sharerequest = new ArduinoIotClient.Sharerequest(); // Sharerequest |
let opts = {
- 'xOrganization': "xOrganization_example" // String | Organization space identifer (optional)
+ 'xOrganization': "xOrganization_example" // String |
};
apiInstance.dashboardsV2RequestAccess(id, sharerequest, opts).then(() => {
console.log('API called successfully.');
@@ -488,7 +488,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **String**| The id of the dashboard |
**sharerequest** | [**Sharerequest**](Sharerequest.md)| |
- **xOrganization** | **String**| Organization space identifer (optional) | [optional]
+ **xOrganization** | **String**| | [optional]
### Return type
@@ -525,7 +525,7 @@ let apiInstance = new ArduinoIotClient.DashboardsV2Api();
let id = "id_example"; // String | The id of the dashboard
let dashboardshare = new ArduinoIotClient.Dashboardshare(); // Dashboardshare |
let opts = {
- 'xOrganization': "xOrganization_example" // String | Organization space identifer (optional)
+ 'xOrganization': "xOrganization_example" // String |
};
apiInstance.dashboardsV2Share(id, dashboardshare, opts).then(() => {
console.log('API called successfully.');
@@ -542,7 +542,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **String**| The id of the dashboard |
**dashboardshare** | [**Dashboardshare**](Dashboardshare.md)| |
- **xOrganization** | **String**| Organization space identifer (optional) | [optional]
+ **xOrganization** | **String**| | [optional]
### Return type
@@ -564,7 +564,7 @@ null (empty response body)
show dashboards_v2
-Show a dashboard by id
+Show a dashboard
### Example
@@ -578,7 +578,7 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new ArduinoIotClient.DashboardsV2Api();
let id = "id_example"; // String | The id of the dashboard
let opts = {
- 'xOrganization': "xOrganization_example" // String | Organization space identifer (optional)
+ 'xOrganization': "xOrganization_example" // String |
};
apiInstance.dashboardsV2Show(id, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
@@ -594,7 +594,7 @@ apiInstance.dashboardsV2Show(id, opts).then((data) => {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **String**| The id of the dashboard |
- **xOrganization** | **String**| Organization space identifer (optional) | [optional]
+ **xOrganization** | **String**| | [optional]
### Return type
@@ -630,7 +630,7 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new ArduinoIotClient.DashboardsV2Api();
let id = "id_example"; // String | The id of the dashboard
let opts = {
- 'xOrganization': "xOrganization_example" // String | Organization space identifer (optional)
+ 'xOrganization': "xOrganization_example" // String |
};
apiInstance.dashboardsV2Template(id, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
@@ -646,7 +646,7 @@ apiInstance.dashboardsV2Template(id, opts).then((data) => {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **String**| The id of the dashboard |
- **xOrganization** | **String**| Organization space identifer (optional) | [optional]
+ **xOrganization** | **String**| | [optional]
### Return type
@@ -681,9 +681,9 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new ArduinoIotClient.DashboardsV2Api();
let id = "id_example"; // String | The id of the dashboard
-let dashboardv2 = new ArduinoIotClient.Dashboardv2(); // Dashboardv2 | Describes a dashboard
+let dashboardv2 = new ArduinoIotClient.Dashboardv2(); // Dashboardv2 | DashboardV2Payload describes a dashboard
let opts = {
- 'xOrganization': "xOrganization_example" // String | Organization space identifer (optional)
+ 'xOrganization': "xOrganization_example" // String |
};
apiInstance.dashboardsV2Update(id, dashboardv2, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
@@ -699,8 +699,8 @@ apiInstance.dashboardsV2Update(id, dashboardv2, opts).then((data) => {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **String**| The id of the dashboard |
- **dashboardv2** | [**Dashboardv2**](Dashboardv2.md)| Describes a dashboard |
- **xOrganization** | **String**| Organization space identifer (optional) | [optional]
+ **dashboardv2** | [**Dashboardv2**](Dashboardv2.md)| DashboardV2Payload describes a dashboard |
+ **xOrganization** | **String**| | [optional]
### Return type
diff --git a/docs/Dashboardshare.md b/docs/Dashboardshare.md
index 3c0bf3c..f6da55c 100644
--- a/docs/Dashboardshare.md
+++ b/docs/Dashboardshare.md
@@ -6,5 +6,6 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**userId** | **String** | The userID of the user you want to share the dashboard with | [optional]
**username** | **String** | The username of the user you want to share the dashboard with | [optional]
+**users** | [**[Usershare]**](Usershare.md) | The list of users you want to share the dashboard with | [optional]
diff --git a/docs/DevicesV2Api.md b/docs/DevicesV2Api.md
index 3374ed5..0eb7085 100644
--- a/docs/DevicesV2Api.md
+++ b/docs/DevicesV2Api.md
@@ -5,6 +5,7 @@ All URIs are relative to *https://api2.arduino.cc*
Method | HTTP request | Description
------------- | ------------- | -------------
[**devicesV2Create**](DevicesV2Api.md#devicesV2Create) | **PUT** /iot/v2/devices | create devices_v2
+[**devicesV2CreateClaimed**](DevicesV2Api.md#devicesV2CreateClaimed) | **PUT** /iot/v2/devices/claim | createClaimed devices_v2
[**devicesV2Delete**](DevicesV2Api.md#devicesV2Delete) | **DELETE** /iot/v2/devices/{id} | delete devices_v2
[**devicesV2GetEvents**](DevicesV2Api.md#devicesV2GetEvents) | **GET** /iot/v2/devices/{id}/events | getEvents devices_v2
[**devicesV2GetProperties**](DevicesV2Api.md#devicesV2GetProperties) | **GET** /iot/v2/devices/{id}/properties | getProperties devices_v2
@@ -37,7 +38,7 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new ArduinoIotClient.DevicesV2Api();
let createDevicesV2Payload = new ArduinoIotClient.CreateDevicesV2Payload(); // CreateDevicesV2Payload | DeviceV2 describes a device.
let opts = {
- 'xOrganization': "xOrganization_example" // String | Organization space identifer (optional)
+ 'xOrganization': "xOrganization_example" // String |
};
apiInstance.devicesV2Create(createDevicesV2Payload, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
@@ -53,7 +54,59 @@ apiInstance.devicesV2Create(createDevicesV2Payload, opts).then((data) => {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**createDevicesV2Payload** | [**CreateDevicesV2Payload**](CreateDevicesV2Payload.md)| DeviceV2 describes a device. |
- **xOrganization** | **String**| Organization space identifer (optional) | [optional]
+ **xOrganization** | **String**| | [optional]
+
+### Return type
+
+[**ArduinoDevicev2**](ArduinoDevicev2.md)
+
+### Authorization
+
+[oauth2](../README.md#oauth2)
+
+### HTTP request headers
+
+- **Content-Type**: application/json
+- **Accept**: application/vnd.arduino.devicev2+json, application/vnd.goa.error+json
+
+
+## devicesV2CreateClaimed
+
+> ArduinoDevicev2 devicesV2CreateClaimed(createClaimedDevicesV2Payload, opts)
+
+createClaimed devices_v2
+
+Creates a new device associated to the user.
+
+### Example
+
+```javascript
+import ArduinoIotClient from '@arduino/arduino-iot-client';
+let defaultClient = ArduinoIotClient.ApiClient.instance;
+// Configure OAuth2 access token for authorization: oauth2
+let oauth2 = defaultClient.authentications['oauth2'];
+oauth2.accessToken = 'YOUR ACCESS TOKEN';
+
+let apiInstance = new ArduinoIotClient.DevicesV2Api();
+let createClaimedDevicesV2Payload = new ArduinoIotClient.CreateClaimedDevicesV2Payload(); // CreateClaimedDevicesV2Payload | DeviceV2 describes a device.
+let opts = {
+ 'xOrganization': "xOrganization_example" // String |
+};
+apiInstance.devicesV2CreateClaimed(createClaimedDevicesV2Payload, opts).then((data) => {
+ console.log('API called successfully. Returned data: ' + data);
+}, (error) => {
+ console.error(error);
+});
+
+```
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **createClaimedDevicesV2Payload** | [**CreateClaimedDevicesV2Payload**](CreateClaimedDevicesV2Payload.md)| DeviceV2 describes a device. |
+ **xOrganization** | **String**| | [optional]
### Return type
@@ -90,7 +143,7 @@ let apiInstance = new ArduinoIotClient.DevicesV2Api();
let id = "id_example"; // String | The id of the device
let opts = {
'force': false, // Boolean | If true, hard delete the device
- 'xOrganization': "xOrganization_example" // String | Organization space identifer (optional)
+ 'xOrganization': "xOrganization_example" // String |
};
apiInstance.devicesV2Delete(id, opts).then(() => {
console.log('API called successfully.');
@@ -107,7 +160,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **String**| The id of the device |
**force** | **Boolean**| If true, hard delete the device | [optional] [default to false]
- **xOrganization** | **String**| Organization space identifer (optional) | [optional]
+ **xOrganization** | **String**| | [optional]
### Return type
@@ -145,7 +198,7 @@ let id = "id_example"; // String | The id of the device
let opts = {
'limit': 56, // Number | The number of events to select
'start': "start_example", // String | The time at which to start selecting events
- 'xOrganization': "xOrganization_example" // String | Organization space identifer (optional)
+ 'xOrganization': "xOrganization_example" // String |
};
apiInstance.devicesV2GetEvents(id, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
@@ -163,7 +216,7 @@ Name | Type | Description | Notes
**id** | **String**| The id of the device |
**limit** | **Number**| The number of events to select | [optional]
**start** | **String**| The time at which to start selecting events | [optional]
- **xOrganization** | **String**| Organization space identifer (optional) | [optional]
+ **xOrganization** | **String**| | [optional]
### Return type
@@ -200,7 +253,7 @@ let apiInstance = new ArduinoIotClient.DevicesV2Api();
let id = "id_example"; // String | The id of the device
let opts = {
'showDeleted': false, // Boolean | If true, shows the soft deleted properties
- 'xOrganization': "xOrganization_example" // String | Organization space identifer (optional)
+ 'xOrganization': "xOrganization_example" // String |
};
apiInstance.devicesV2GetProperties(id, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
@@ -217,7 +270,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **String**| The id of the device |
**showDeleted** | **Boolean**| If true, shows the soft deleted properties | [optional] [default to false]
- **xOrganization** | **String**| Organization space identifer (optional) | [optional]
+ **xOrganization** | **String**| | [optional]
### Return type
@@ -255,7 +308,7 @@ let id = "id_example"; // String | The id of the device
let opts = {
'limit': 30, // Number | The number of events to select
'start': "start_example", // String | The time at which to start selecting events
- 'xOrganization': "xOrganization_example" // String | Organization space identifer (optional)
+ 'xOrganization': "xOrganization_example" // String |
};
apiInstance.devicesV2GetStatusEvents(id, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
@@ -273,7 +326,7 @@ Name | Type | Description | Notes
**id** | **String**| The id of the device |
**limit** | **Number**| The number of events to select | [optional] [default to 30]
**start** | **String**| The time at which to start selecting events | [optional]
- **xOrganization** | **String**| Organization space identifer (optional) | [optional]
+ **xOrganization** | **String**| | [optional]
### Return type
@@ -312,7 +365,8 @@ let opts = {
'serial': "serial_example", // String | Filter by device serial number
'showDeleted': false, // Boolean | If true, shows the soft deleted devices
'tags': ["null"], // [String] | Filter by tags
- 'xOrganization': "xOrganization_example" // String | Organization space identifer (optional)
+ 'uniqueHardwareId': "uniqueHardwareId_example", // String | Filter by device unique hardware id
+ 'xOrganization': "xOrganization_example" // String |
};
apiInstance.devicesV2List(opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
@@ -331,7 +385,8 @@ Name | Type | Description | Notes
**serial** | **String**| Filter by device serial number | [optional]
**showDeleted** | **Boolean**| If true, shows the soft deleted devices | [optional] [default to false]
**tags** | [**[String]**](String.md)| Filter by tags | [optional]
- **xOrganization** | **String**| Organization space identifer (optional) | [optional]
+ **uniqueHardwareId** | **String**| Filter by device unique hardware id | [optional]
+ **xOrganization** | **String**| | [optional]
### Return type
@@ -367,7 +422,7 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new ArduinoIotClient.DevicesV2Api();
let id = "id_example"; // String | The id of the device
let opts = {
- 'xOrganization': "xOrganization_example" // String | Organization space identifer (optional)
+ 'xOrganization': "xOrganization_example" // String |
};
apiInstance.devicesV2Show(id, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
@@ -383,7 +438,7 @@ apiInstance.devicesV2Show(id, opts).then((data) => {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **String**| The id of the device |
- **xOrganization** | **String**| Organization space identifer (optional) | [optional]
+ **xOrganization** | **String**| | [optional]
### Return type
@@ -422,7 +477,7 @@ let pid = "pid_example"; // String | The id of the property
let opts = {
'limit': 56, // Number | The number of properties to select
'start': "start_example", // String | The time at which to start selecting properties
- 'xOrganization': "xOrganization_example" // String | Organization space identifer (optional)
+ 'xOrganization': "xOrganization_example" // String |
};
apiInstance.devicesV2Timeseries(id, pid, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
@@ -441,7 +496,7 @@ Name | Type | Description | Notes
**pid** | **String**| The id of the property |
**limit** | **Number**| The number of properties to select | [optional]
**start** | **String**| The time at which to start selecting properties | [optional]
- **xOrganization** | **String**| Organization space identifer (optional) | [optional]
+ **xOrganization** | **String**| | [optional]
### Return type
@@ -478,7 +533,7 @@ let apiInstance = new ArduinoIotClient.DevicesV2Api();
let id = "id_example"; // String | The id of the device
let devicev2 = new ArduinoIotClient.Devicev2(); // Devicev2 | DeviceV2 describes a device.
let opts = {
- 'xOrganization': "xOrganization_example" // String | Organization space identifer (optional)
+ 'xOrganization': "xOrganization_example" // String |
};
apiInstance.devicesV2Update(id, devicev2, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
@@ -495,7 +550,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **String**| The id of the device |
**devicev2** | [**Devicev2**](Devicev2.md)| DeviceV2 describes a device. |
- **xOrganization** | **String**| Organization space identifer (optional) | [optional]
+ **xOrganization** | **String**| | [optional]
### Return type
@@ -532,7 +587,7 @@ let apiInstance = new ArduinoIotClient.DevicesV2Api();
let id = "id_example"; // String | The id of the device
let propertiesValues = new ArduinoIotClient.PropertiesValues(); // PropertiesValues |
let opts = {
- 'xOrganization': "xOrganization_example" // String | Organization space identifer (optional)
+ 'xOrganization': "xOrganization_example" // String |
};
apiInstance.devicesV2UpdateProperties(id, propertiesValues, opts).then(() => {
console.log('API called successfully.');
@@ -549,7 +604,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **String**| The id of the device |
**propertiesValues** | [**PropertiesValues**](PropertiesValues.md)| |
- **xOrganization** | **String**| Organization space identifer (optional) | [optional]
+ **xOrganization** | **String**| | [optional]
### Return type
diff --git a/docs/Devicev2.md b/docs/Devicev2.md
index 88f1cc5..4780e65 100644
--- a/docs/Devicev2.md
+++ b/docs/Devicev2.md
@@ -4,12 +4,14 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
+**bleMac** | **String** | | [optional]
**connectionType** | **String** | The type of the connections selected by the user when multiple connections are available | [optional]
**fqbn** | **String** | The fully qualified board name | [optional]
**name** | **String** | The friendly name of the device | [optional]
**serial** | **String** | The serial uuid of the device | [optional]
**softDeleted** | **Boolean** | If false, restore the thing from the soft deletion | [optional] [default to false]
**type** | **String** | The type of the device | [optional]
+**uniqueHardwareId** | **String** | | [optional]
**userId** | **String** | The user_id associated to the device. If absent it will be inferred from the authentication header | [optional]
**wifiFwVersion** | **String** | The version of the NINA/WIFI101 firmware running on the device | [optional]
diff --git a/docs/LoraDevicesV1Api.md b/docs/LoraDevicesV1Api.md
index 25f8fed..3339af4 100644
--- a/docs/LoraDevicesV1Api.md
+++ b/docs/LoraDevicesV1Api.md
@@ -28,7 +28,7 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new ArduinoIotClient.LoraDevicesV1Api();
let createLoraDevicesV1Payload = new ArduinoIotClient.CreateLoraDevicesV1Payload(); // CreateLoraDevicesV1Payload |
let opts = {
- 'xOrganization': "xOrganization_example" // String | Organization space identifer (optional)
+ 'xOrganization': "xOrganization_example" // String |
};
apiInstance.loraDevicesV1Create(createLoraDevicesV1Payload, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
@@ -44,7 +44,7 @@ apiInstance.loraDevicesV1Create(createLoraDevicesV1Payload, opts).then((data) =>
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**createLoraDevicesV1Payload** | [**CreateLoraDevicesV1Payload**](CreateLoraDevicesV1Payload.md)| |
- **xOrganization** | **String**| Organization space identifer (optional) | [optional]
+ **xOrganization** | **String**| | [optional]
### Return type
diff --git a/docs/NetworkCredentialsV1Api.md b/docs/NetworkCredentialsV1Api.md
index d16634e..a8ad982 100644
--- a/docs/NetworkCredentialsV1Api.md
+++ b/docs/NetworkCredentialsV1Api.md
@@ -63,7 +63,7 @@ Name | Type | Description | Notes
## networkCredentialsV1ShowByDevice
-> networkCredentialsV1ShowByDevice(type)
+> ArduinoArduinoconnectionsV1 networkCredentialsV1ShowByDevice(type)
showByDevice network_credentials_v1
@@ -80,8 +80,8 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new ArduinoIotClient.NetworkCredentialsV1Api();
let type = "type_example"; // String | Device type
-apiInstance.networkCredentialsV1ShowByDevice(type).then(() => {
- console.log('API called successfully.');
+apiInstance.networkCredentialsV1ShowByDevice(type).then((data) => {
+ console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
@@ -97,7 +97,7 @@ Name | Type | Description | Notes
### Return type
-null (empty response body)
+[**ArduinoArduinoconnectionsV1**](ArduinoArduinoconnectionsV1.md)
### Authorization
@@ -106,5 +106,5 @@ null (empty response body)
### HTTP request headers
- **Content-Type**: Not defined
-- **Accept**: application/json, application/vnd.goa.error+json
+- **Accept**: application/vnd.arduino.arduinoconnections.v1+json, application/vnd.goa.error+json
diff --git a/docs/PropertiesV2Api.md b/docs/PropertiesV2Api.md
index c49ba26..f52203a 100644
--- a/docs/PropertiesV2Api.md
+++ b/docs/PropertiesV2Api.md
@@ -35,7 +35,7 @@ let apiInstance = new ArduinoIotClient.PropertiesV2Api();
let id = "id_example"; // String | The id of the thing
let property = new ArduinoIotClient.Property(); // Property | PropertyPayload describes a property of a thing. No field is mandatory
let opts = {
- 'xOrganization': "xOrganization_example" // String | Organization space identifer (optional)
+ 'xOrganization': "xOrganization_example" // String | The id of the organization
};
apiInstance.propertiesV2Create(id, property, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
@@ -52,7 +52,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **String**| The id of the thing |
**property** | [**Property**](Property.md)| PropertyPayload describes a property of a thing. No field is mandatory |
- **xOrganization** | **String**| Organization space identifer (optional) | [optional]
+ **xOrganization** | **String**| The id of the organization | [optional]
### Return type
@@ -90,7 +90,7 @@ let id = "id_example"; // String | The id of the thing
let pid = "pid_example"; // String | The id of the property
let opts = {
'force': false, // Boolean | If true, hard delete the property
- 'xOrganization': "xOrganization_example" // String | Organization space identifer (optional)
+ 'xOrganization': "xOrganization_example" // String | The id of the organization
};
apiInstance.propertiesV2Delete(id, pid, opts).then(() => {
console.log('API called successfully.');
@@ -108,7 +108,7 @@ Name | Type | Description | Notes
**id** | **String**| The id of the thing |
**pid** | **String**| The id of the property |
**force** | **Boolean**| If true, hard delete the property | [optional] [default to false]
- **xOrganization** | **String**| Organization space identifer (optional) | [optional]
+ **xOrganization** | **String**| The id of the organization | [optional]
### Return type
@@ -145,7 +145,7 @@ let apiInstance = new ArduinoIotClient.PropertiesV2Api();
let id = "id_example"; // String | The id of the thing
let opts = {
'showDeleted': false, // Boolean | If true, shows the soft deleted properties
- 'xOrganization': "xOrganization_example" // String | Organization space identifer (optional)
+ 'xOrganization': "xOrganization_example" // String | The id of the organization
};
apiInstance.propertiesV2List(id, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
@@ -162,7 +162,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **String**| The id of the thing |
**showDeleted** | **Boolean**| If true, shows the soft deleted properties | [optional] [default to false]
- **xOrganization** | **String**| Organization space identifer (optional) | [optional]
+ **xOrganization** | **String**| The id of the organization | [optional]
### Return type
@@ -200,7 +200,7 @@ let id = "id_example"; // String | The id of the thing
let pid = "pid_example"; // String | The id of the property
let propertyValue = new ArduinoIotClient.PropertyValue(); // PropertyValue | PropertyValuePayload describes a property value
let opts = {
- 'xOrganization': "xOrganization_example" // String | Organization space identifer (optional)
+ 'xOrganization': "xOrganization_example" // String | The id of the organization
};
apiInstance.propertiesV2Publish(id, pid, propertyValue, opts).then(() => {
console.log('API called successfully.');
@@ -218,7 +218,7 @@ Name | Type | Description | Notes
**id** | **String**| The id of the thing |
**pid** | **String**| The id of the property |
**propertyValue** | [**PropertyValue**](PropertyValue.md)| PropertyValuePayload describes a property value |
- **xOrganization** | **String**| Organization space identifer (optional) | [optional]
+ **xOrganization** | **String**| The id of the organization | [optional]
### Return type
@@ -256,7 +256,7 @@ let id = "id_example"; // String | The id of the thing
let pid = "pid_example"; // String | The id of the property
let opts = {
'showDeleted': false, // Boolean | If true, shows the soft deleted properties
- 'xOrganization': "xOrganization_example" // String | Organization space identifer (optional)
+ 'xOrganization': "xOrganization_example" // String | The id of the organization
};
apiInstance.propertiesV2Show(id, pid, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
@@ -274,7 +274,7 @@ Name | Type | Description | Notes
**id** | **String**| The id of the thing |
**pid** | **String**| The id of the property |
**showDeleted** | **Boolean**| If true, shows the soft deleted properties | [optional] [default to false]
- **xOrganization** | **String**| Organization space identifer (optional) | [optional]
+ **xOrganization** | **String**| The id of the organization | [optional]
### Return type
@@ -316,7 +316,7 @@ let opts = {
'from': "from_example", // String | Get data with a timestamp >= to this date (default: 2 weeks ago, min: 1842-01-01T00:00:00Z, max: 2242-01-01T00:00:00Z)
'interval': 56, // Number | Binning interval in seconds (defaut: the smallest possible value compatibly with the limit of 1000 data points in the response)
'to': "to_example", // String | Get data with a timestamp < to this date (default: now, min: 1842-01-01T00:00:00Z, max: 2242-01-01T00:00:00Z)
- 'xOrganization': "xOrganization_example" // String | Organization space identifer (optional)
+ 'xOrganization': "xOrganization_example" // String | The id of the organization
};
apiInstance.propertiesV2Timeseries(id, pid, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
@@ -338,7 +338,7 @@ Name | Type | Description | Notes
**from** | **String**| Get data with a timestamp >= to this date (default: 2 weeks ago, min: 1842-01-01T00:00:00Z, max: 2242-01-01T00:00:00Z) | [optional]
**interval** | **Number**| Binning interval in seconds (defaut: the smallest possible value compatibly with the limit of 1000 data points in the response) | [optional]
**to** | **String**| Get data with a timestamp < to this date (default: now, min: 1842-01-01T00:00:00Z, max: 2242-01-01T00:00:00Z) | [optional]
- **xOrganization** | **String**| Organization space identifer (optional) | [optional]
+ **xOrganization** | **String**| The id of the organization | [optional]
### Return type
@@ -376,7 +376,7 @@ let id = "id_example"; // String | The id of the thing
let pid = "pid_example"; // String | The id of the property
let property = new ArduinoIotClient.Property(); // Property | PropertyPayload describes a property of a thing. No field is mandatory
let opts = {
- 'xOrganization': "xOrganization_example" // String | Organization space identifer (optional)
+ 'xOrganization': "xOrganization_example" // String | The id of the organization
};
apiInstance.propertiesV2Update(id, pid, property, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
@@ -394,7 +394,7 @@ Name | Type | Description | Notes
**id** | **String**| The id of the thing |
**pid** | **String**| The id of the property |
**property** | [**Property**](Property.md)| PropertyPayload describes a property of a thing. No field is mandatory |
- **xOrganization** | **String**| Organization space identifer (optional) | [optional]
+ **xOrganization** | **String**| The id of the organization | [optional]
### Return type
diff --git a/docs/SeriesV2Api.md b/docs/SeriesV2Api.md
index 5518e57..5a14a07 100644
--- a/docs/SeriesV2Api.md
+++ b/docs/SeriesV2Api.md
@@ -32,7 +32,7 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new ArduinoIotClient.SeriesV2Api();
let batchQueryRequestsMediaV1 = new ArduinoIotClient.BatchQueryRequestsMediaV1(); // BatchQueryRequestsMediaV1 |
let opts = {
- 'xOrganization': "xOrganization_example" // String | Organization space identifer (optional)
+ 'xOrganization': "xOrganization_example" // String |
};
apiInstance.seriesV2BatchQuery(batchQueryRequestsMediaV1, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
@@ -48,7 +48,7 @@ apiInstance.seriesV2BatchQuery(batchQueryRequestsMediaV1, opts).then((data) => {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**batchQueryRequestsMediaV1** | [**BatchQueryRequestsMediaV1**](BatchQueryRequestsMediaV1.md)| |
- **xOrganization** | **String**| Organization space identifer (optional) | [optional]
+ **xOrganization** | **String**| | [optional]
### Return type
@@ -84,7 +84,7 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new ArduinoIotClient.SeriesV2Api();
let batchQueryRawRequestsMediaV1 = new ArduinoIotClient.BatchQueryRawRequestsMediaV1(); // BatchQueryRawRequestsMediaV1 |
let opts = {
- 'xOrganization': "xOrganization_example" // String | Organization space identifer (optional)
+ 'xOrganization': "xOrganization_example" // String |
};
apiInstance.seriesV2BatchQueryRaw(batchQueryRawRequestsMediaV1, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
@@ -100,7 +100,7 @@ apiInstance.seriesV2BatchQueryRaw(batchQueryRawRequestsMediaV1, opts).then((data
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**batchQueryRawRequestsMediaV1** | [**BatchQueryRawRequestsMediaV1**](BatchQueryRawRequestsMediaV1.md)| |
- **xOrganization** | **String**| Organization space identifer (optional) | [optional]
+ **xOrganization** | **String**| | [optional]
### Return type
@@ -136,7 +136,7 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new ArduinoIotClient.SeriesV2Api();
let batchLastValueRequestsMediaV1 = new ArduinoIotClient.BatchLastValueRequestsMediaV1(); // BatchLastValueRequestsMediaV1 |
let opts = {
- 'xOrganization': "xOrganization_example" // String | Organization space identifer (optional)
+ 'xOrganization': "xOrganization_example" // String |
};
apiInstance.seriesV2BatchQueryRawLastValue(batchLastValueRequestsMediaV1, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
@@ -152,7 +152,7 @@ apiInstance.seriesV2BatchQueryRawLastValue(batchLastValueRequestsMediaV1, opts).
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**batchLastValueRequestsMediaV1** | [**BatchLastValueRequestsMediaV1**](BatchLastValueRequestsMediaV1.md)| |
- **xOrganization** | **String**| Organization space identifer (optional) | [optional]
+ **xOrganization** | **String**| | [optional]
### Return type
@@ -188,7 +188,7 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new ArduinoIotClient.SeriesV2Api();
let batchQuerySampledRequestsMediaV1 = new ArduinoIotClient.BatchQuerySampledRequestsMediaV1(); // BatchQuerySampledRequestsMediaV1 |
let opts = {
- 'xOrganization': "xOrganization_example" // String | Organization space identifer (optional)
+ 'xOrganization': "xOrganization_example" // String |
};
apiInstance.seriesV2BatchQuerySampling(batchQuerySampledRequestsMediaV1, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
@@ -204,7 +204,7 @@ apiInstance.seriesV2BatchQuerySampling(batchQuerySampledRequestsMediaV1, opts).t
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**batchQuerySampledRequestsMediaV1** | [**BatchQuerySampledRequestsMediaV1**](BatchQuerySampledRequestsMediaV1.md)| |
- **xOrganization** | **String**| Organization space identifer (optional) | [optional]
+ **xOrganization** | **String**| | [optional]
### Return type
@@ -240,7 +240,7 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new ArduinoIotClient.SeriesV2Api();
let historicDataRequest = new ArduinoIotClient.HistoricDataRequest(); // HistoricDataRequest |
let opts = {
- 'xOrganization': "xOrganization_example" // String | Organization space identifer (optional)
+ 'xOrganization': "xOrganization_example" // String |
};
apiInstance.seriesV2HistoricData(historicDataRequest, opts).then(() => {
console.log('API called successfully.');
@@ -256,7 +256,7 @@ apiInstance.seriesV2HistoricData(historicDataRequest, opts).then(() => {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**historicDataRequest** | [**HistoricDataRequest**](HistoricDataRequest.md)| |
- **xOrganization** | **String**| Organization space identifer (optional) | [optional]
+ **xOrganization** | **String**| | [optional]
### Return type
diff --git a/docs/TemplatesApi.md b/docs/TemplatesApi.md
index ec93e54..e9e6807 100644
--- a/docs/TemplatesApi.md
+++ b/docs/TemplatesApi.md
@@ -28,7 +28,7 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new ArduinoIotClient.TemplatesApi();
let template = new ArduinoIotClient.Template(); // Template | TemplatePayload describes the needed attribute to apply a template
let opts = {
- 'xOrganization': "xOrganization_example" // String | Organization space identifer (optional)
+ 'xOrganization': "xOrganization_example" // String |
};
apiInstance.templatesApply(template, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
@@ -44,7 +44,7 @@ apiInstance.templatesApply(template, opts).then((data) => {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**template** | [**Template**](Template.md)| TemplatePayload describes the needed attribute to apply a template |
- **xOrganization** | **String**| Organization space identifer (optional) | [optional]
+ **xOrganization** | **String**| | [optional]
### Return type
diff --git a/docs/ThingsV2Api.md b/docs/ThingsV2Api.md
index be36e25..5d81d35 100644
--- a/docs/ThingsV2Api.md
+++ b/docs/ThingsV2Api.md
@@ -38,7 +38,7 @@ let apiInstance = new ArduinoIotClient.ThingsV2Api();
let id = "id_example"; // String | The id of the thing
let thingClone = new ArduinoIotClient.ThingClone(); // ThingClone | Payload to clone a new thing from an existing one
let opts = {
- 'xOrganization': "xOrganization_example" // String | Organization space identifer (optional)
+ 'xOrganization': "xOrganization_example" // String |
};
apiInstance.thingsV2Clone(id, thingClone, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
@@ -55,7 +55,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **String**| The id of the thing |
**thingClone** | [**ThingClone**](ThingClone.md)| Payload to clone a new thing from an existing one |
- **xOrganization** | **String**| Organization space identifer (optional) | [optional]
+ **xOrganization** | **String**| | [optional]
### Return type
@@ -92,7 +92,7 @@ let apiInstance = new ArduinoIotClient.ThingsV2Api();
let thingCreate = new ArduinoIotClient.ThingCreate(); // ThingCreate | Payload to create a new thing
let opts = {
'force': false, // Boolean | If true, detach device from the other thing, and attach to this thing
- 'xOrganization': "xOrganization_example" // String | Organization space identifer (optional)
+ 'xOrganization': "xOrganization_example" // String |
};
apiInstance.thingsV2Create(thingCreate, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
@@ -109,7 +109,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**thingCreate** | [**ThingCreate**](ThingCreate.md)| Payload to create a new thing |
**force** | **Boolean**| If true, detach device from the other thing, and attach to this thing | [optional] [default to false]
- **xOrganization** | **String**| Organization space identifer (optional) | [optional]
+ **xOrganization** | **String**| | [optional]
### Return type
@@ -146,7 +146,7 @@ let apiInstance = new ArduinoIotClient.ThingsV2Api();
let id = "id_example"; // String | The id of the thing
let thingSketch = new ArduinoIotClient.ThingSketch(); // ThingSketch | ThingSketchPayload describes a sketch of a thing
let opts = {
- 'xOrganization': "xOrganization_example" // String | Organization space identifer (optional)
+ 'xOrganization': "xOrganization_example" // String |
};
apiInstance.thingsV2CreateSketch(id, thingSketch, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
@@ -163,7 +163,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **String**| The id of the thing |
**thingSketch** | [**ThingSketch**](ThingSketch.md)| ThingSketchPayload describes a sketch of a thing |
- **xOrganization** | **String**| Organization space identifer (optional) | [optional]
+ **xOrganization** | **String**| | [optional]
### Return type
@@ -200,7 +200,7 @@ let apiInstance = new ArduinoIotClient.ThingsV2Api();
let id = "id_example"; // String | The id of the thing
let opts = {
'force': false, // Boolean | If true, hard delete the thing
- 'xOrganization': "xOrganization_example" // String | Organization space identifer (optional)
+ 'xOrganization': "xOrganization_example" // String |
};
apiInstance.thingsV2Delete(id, opts).then(() => {
console.log('API called successfully.');
@@ -217,7 +217,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **String**| The id of the thing |
**force** | **Boolean**| If true, hard delete the thing | [optional] [default to false]
- **xOrganization** | **String**| Organization space identifer (optional) | [optional]
+ **xOrganization** | **String**| | [optional]
### Return type
@@ -251,7 +251,7 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new ArduinoIotClient.ThingsV2Api();
let id = "id_example"; // String | The id of the thing
let opts = {
- 'xOrganization': "xOrganization_example" // String | Organization space identifer (optional)
+ 'xOrganization': "xOrganization_example" // String |
};
apiInstance.thingsV2DeleteSketch(id, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
@@ -267,7 +267,7 @@ apiInstance.thingsV2DeleteSketch(id, opts).then((data) => {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **String**| The id of the thing |
- **xOrganization** | **String**| Organization space identifer (optional) | [optional]
+ **xOrganization** | **String**| | [optional]
### Return type
@@ -308,7 +308,7 @@ let opts = {
'showDeleted': false, // Boolean | If true, shows the soft deleted things
'showProperties': false, // Boolean | If true, returns things with their properties, and last values
'tags': ["null"], // [String] | Filter by tags
- 'xOrganization': "xOrganization_example" // String | Organization space identifer (optional)
+ 'xOrganization': "xOrganization_example" // String |
};
apiInstance.thingsV2List(opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
@@ -329,7 +329,7 @@ Name | Type | Description | Notes
**showDeleted** | **Boolean**| If true, shows the soft deleted things | [optional] [default to false]
**showProperties** | **Boolean**| If true, returns things with their properties, and last values | [optional] [default to false]
**tags** | [**[String]**](String.md)| Filter by tags | [optional]
- **xOrganization** | **String**| Organization space identifer (optional) | [optional]
+ **xOrganization** | **String**| | [optional]
### Return type
@@ -366,7 +366,7 @@ let apiInstance = new ArduinoIotClient.ThingsV2Api();
let id = "id_example"; // String | The id of the thing
let opts = {
'showDeleted': false, // Boolean | If true, shows the soft deleted thing
- 'xOrganization': "xOrganization_example" // String | Organization space identifer (optional)
+ 'xOrganization': "xOrganization_example" // String |
};
apiInstance.thingsV2Show(id, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
@@ -383,7 +383,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **String**| The id of the thing |
**showDeleted** | **Boolean**| If true, shows the soft deleted thing | [optional] [default to false]
- **xOrganization** | **String**| Organization space identifer (optional) | [optional]
+ **xOrganization** | **String**| | [optional]
### Return type
@@ -419,7 +419,7 @@ oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new ArduinoIotClient.ThingsV2Api();
let id = "id_example"; // String | The id of the thing
let opts = {
- 'xOrganization': "xOrganization_example" // String | Organization space identifer (optional)
+ 'xOrganization': "xOrganization_example" // String |
};
apiInstance.thingsV2Template(id, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
@@ -435,7 +435,7 @@ apiInstance.thingsV2Template(id, opts).then((data) => {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **String**| The id of the thing |
- **xOrganization** | **String**| Organization space identifer (optional) | [optional]
+ **xOrganization** | **String**| | [optional]
### Return type
@@ -473,7 +473,7 @@ let id = "id_example"; // String | The id of the thing
let thingUpdate = new ArduinoIotClient.ThingUpdate(); // ThingUpdate | Payload to update an existing thing
let opts = {
'force': false, // Boolean | If true, detach device from the other thing, and attach to this thing
- 'xOrganization': "xOrganization_example" // String | Organization space identifer (optional)
+ 'xOrganization': "xOrganization_example" // String |
};
apiInstance.thingsV2Update(id, thingUpdate, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
@@ -491,7 +491,7 @@ Name | Type | Description | Notes
**id** | **String**| The id of the thing |
**thingUpdate** | [**ThingUpdate**](ThingUpdate.md)| Payload to update an existing thing |
**force** | **Boolean**| If true, detach device from the other thing, and attach to this thing | [optional] [default to false]
- **xOrganization** | **String**| Organization space identifer (optional) | [optional]
+ **xOrganization** | **String**| | [optional]
### Return type
@@ -528,7 +528,7 @@ let apiInstance = new ArduinoIotClient.ThingsV2Api();
let id = "id_example"; // String | The id of the thing
let sketchId = "sketchId_example"; // String | The id of the sketch
let opts = {
- 'xOrganization': "xOrganization_example", // String | Organization space identifer (optional)
+ 'xOrganization': "xOrganization_example", // String |
'updateSketch': new ArduinoIotClient.UpdateSketch() // UpdateSketch |
};
apiInstance.thingsV2UpdateSketch(id, sketchId, opts).then((data) => {
@@ -546,7 +546,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **String**| The id of the thing |
**sketchId** | **String**| The id of the sketch |
- **xOrganization** | **String**| Organization space identifer (optional) | [optional]
+ **xOrganization** | **String**| | [optional]
**updateSketch** | [**UpdateSketch**](UpdateSketch.md)| | [optional]
### Return type
diff --git a/docs/Usershare.md b/docs/Usershare.md
new file mode 100644
index 0000000..0bf2c4e
--- /dev/null
+++ b/docs/Usershare.md
@@ -0,0 +1,10 @@
+# ArduinoIotClient.Usershare
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**userId** | **String** | The userID of the user you want to share the dashboard with | [optional]
+**username** | **String** | The username of the user you want to share the dashboard with | [optional]
+
+
diff --git a/package.json b/package.json
index 554baf8..dca71a8 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@arduino/arduino-iot-client",
- "version": "3.0.0",
+ "version": "3.1.0",
"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 7ba927c..d02abd9 100644
--- a/src/ApiClient.js
+++ b/src/ApiClient.js
@@ -17,7 +17,7 @@ import querystring from "querystring";
/**
* @module ApiClient
-* @version 3.0.0
+* @version 3.1.0
*/
/**
@@ -55,7 +55,7 @@ class ApiClient {
* @default {}
*/
this.defaultHeaders = {
- 'User-Agent': 'OpenAPI-Generator/3.0.0/Javascript'
+ 'User-Agent': 'OpenAPI-Generator/3.1.0/Javascript'
};
/**
diff --git a/src/api/DashboardsV2Api.js b/src/api/DashboardsV2Api.js
index a20d2b8..5817baf 100644
--- a/src/api/DashboardsV2Api.js
+++ b/src/api/DashboardsV2Api.js
@@ -27,7 +27,7 @@ import Widgetlink from '../model/Widgetlink';
/**
* DashboardsV2 service.
* @module api/DashboardsV2Api
-* @version 3.0.0
+* @version 3.1.0
*/
export default class DashboardsV2Api {
@@ -48,9 +48,9 @@ export default class DashboardsV2Api {
* clone dashboards_v2
* Clone an existing dashboard
* @param {String} id The id of the dashboard
- * @param {module:model/Clone} clone Add overrides used when performing a clone of a dashboard
+ * @param {module:model/Clone} clone
* @param {Object} opts Optional parameters
- * @param {String} [xOrganization] Organization space identifer (optional)
+ * @param {String} [xOrganization]
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ArduinoDashboardv2} and HTTP response
*/
dashboardsV2CloneWithHttpInfo(id, clone, opts) {
@@ -91,9 +91,9 @@ export default class DashboardsV2Api {
* clone dashboards_v2
* Clone an existing dashboard
* @param {String} id The id of the dashboard
- * @param {module:model/Clone} clone Add overrides used when performing a clone of a dashboard
+ * @param {module:model/Clone} clone
* @param {Object} opts Optional parameters
- * @param {String} opts.xOrganization Organization space identifer (optional)
+ * @param {String} opts.xOrganization
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ArduinoDashboardv2}
*/
dashboardsV2Clone(id, clone, opts) {
@@ -107,9 +107,9 @@ export default class DashboardsV2Api {
/**
* create dashboards_v2
* Create a new dashboard
- * @param {module:model/Dashboardv2} dashboardv2 Describes a dashboard
+ * @param {module:model/Dashboardv2} dashboardv2 DashboardV2Payload describes a dashboard
* @param {Object} opts Optional parameters
- * @param {String} [xOrganization] Organization space identifer (optional)
+ * @param {String} [xOrganization]
* @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, opts) {
@@ -144,9 +144,9 @@ export default class DashboardsV2Api {
/**
* create dashboards_v2
* Create a new dashboard
- * @param {module:model/Dashboardv2} dashboardv2 Describes a dashboard
+ * @param {module:model/Dashboardv2} dashboardv2 DashboardV2Payload describes a dashboard
* @param {Object} opts Optional parameters
- * @param {String} opts.xOrganization Organization space identifer (optional)
+ * @param {String} opts.xOrganization
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ArduinoDashboardv2}
*/
dashboardsV2Create(dashboardv2, opts) {
@@ -163,7 +163,7 @@ export default class DashboardsV2Api {
* @param {String} id The id of the dashboard
* @param {Object} opts Optional parameters
* @param {Boolean} [force = false)] If true, hard delete the thing
- * @param {String} [xOrganization] Organization space identifer (optional)
+ * @param {String} [xOrganization]
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
*/
dashboardsV2DeleteWithHttpInfo(id, opts) {
@@ -203,7 +203,7 @@ export default class DashboardsV2Api {
* @param {String} id The id of the dashboard
* @param {Object} opts Optional parameters
* @param {Boolean} opts.force If true, hard delete the thing (default to false)
- * @param {String} opts.xOrganization Organization space identifer (optional)
+ * @param {String} opts.xOrganization
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
dashboardsV2Delete(id, opts) {
@@ -220,7 +220,7 @@ export default class DashboardsV2Api {
* @param {String} id The id of the dashboard
* @param {String} userId The id of the user
* @param {Object} opts Optional parameters
- * @param {String} [xOrganization] Organization space identifer (optional)
+ * @param {String} [xOrganization]
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
*/
dashboardsV2DeleteShareWithHttpInfo(id, userId, opts) {
@@ -264,7 +264,7 @@ export default class DashboardsV2Api {
* @param {String} id The id of the dashboard
* @param {String} userId The id of the user
* @param {Object} opts Optional parameters
- * @param {String} opts.xOrganization Organization space identifer (optional)
+ * @param {String} opts.xOrganization
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
dashboardsV2DeleteShare(id, userId, opts) {
@@ -282,7 +282,7 @@ export default class DashboardsV2Api {
* @param {String} widgetId The id of the widget
* @param {module:model/Widgetlink} widgetlink
* @param {Object} opts Optional parameters
- * @param {String} [xOrganization] Organization space identifer (optional)
+ * @param {String} [xOrganization]
* @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, opts) {
@@ -331,7 +331,7 @@ export default class DashboardsV2Api {
* @param {String} widgetId The id of the widget
* @param {module:model/Widgetlink} widgetlink
* @param {Object} opts Optional parameters
- * @param {String} opts.xOrganization Organization space identifer (optional)
+ * @param {String} opts.xOrganization
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ArduinoVariableslinks}
*/
dashboardsV2Link(id, widgetId, widgetlink, opts) {
@@ -346,9 +346,9 @@ export default class DashboardsV2Api {
* list dashboards_v2
* Returns the list of dashboards
* @param {Object} opts Optional parameters
- * @param {String} [name] Filter by name of the dashboard. It support like matching.
- * @param {String} [userId] Filter by user_id of the dashboard's owner
- * @param {String} [xOrganization] Organization space identifer (optional)
+ * @param {String} [name] The name of the dashboard
+ * @param {String} [userId] The user_id of the dashboard's owner
+ * @param {String} [xOrganization]
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.
ArduinoArduinoconnectionsV1
.
+ * ArduinoArduinoconnectionsV1 media type (default view)
+ * @alias module:model/ArduinoArduinoconnectionsV1
+ */
+ constructor() {
+
+ ArduinoArduinoconnectionsV1.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 ArduinoArduinoconnectionsV1
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/ArduinoArduinoconnectionsV1} obj Optional instance to populate.
+ * @return {module:model/ArduinoArduinoconnectionsV1} The populated ArduinoArduinoconnectionsV1
instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new ArduinoArduinoconnectionsV1();
+
+ if (data.hasOwnProperty('catm1')) {
+ obj['catm1'] = ApiClient.convertToType(data['catm1'], [ArduinoCredentialsv1]);
+ }
+ if (data.hasOwnProperty('cellular')) {
+ obj['cellular'] = ApiClient.convertToType(data['cellular'], [ArduinoCredentialsv1]);
+ }
+ if (data.hasOwnProperty('eth')) {
+ obj['eth'] = ApiClient.convertToType(data['eth'], [ArduinoCredentialsv1]);
+ }
+ if (data.hasOwnProperty('gsm')) {
+ obj['gsm'] = ApiClient.convertToType(data['gsm'], [ArduinoCredentialsv1]);
+ }
+ if (data.hasOwnProperty('lora')) {
+ obj['lora'] = ApiClient.convertToType(data['lora'], [ArduinoCredentialsv1]);
+ }
+ if (data.hasOwnProperty('nb')) {
+ obj['nb'] = ApiClient.convertToType(data['nb'], [ArduinoCredentialsv1]);
+ }
+ if (data.hasOwnProperty('wifi')) {
+ obj['wifi'] = ApiClient.convertToType(data['wifi'], [ArduinoCredentialsv1]);
+ }
+ if (data.hasOwnProperty('wifiandsecret')) {
+ obj['wifiandsecret'] = ApiClient.convertToType(data['wifiandsecret'], [ArduinoCredentialsv1]);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to ArduinoArduinoconnectionsV1
.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to ArduinoArduinoconnectionsV1
.
+ */
+ static validateJSON(data) {
+ if (data['catm1']) { // data not null
+ // ensure the json data is an array
+ if (!Array.isArray(data['catm1'])) {
+ throw new Error("Expected the field `catm1` to be an array in the JSON data but got " + data['catm1']);
+ }
+ // validate the optional field `catm1` (array)
+ for (const item of data['catm1']) {
+ ArduinoCredentialsv1.validateJSON(item);
+ };
+ }
+ if (data['cellular']) { // data not null
+ // ensure the json data is an array
+ if (!Array.isArray(data['cellular'])) {
+ throw new Error("Expected the field `cellular` to be an array in the JSON data but got " + data['cellular']);
+ }
+ // validate the optional field `cellular` (array)
+ for (const item of data['cellular']) {
+ ArduinoCredentialsv1.validateJSON(item);
+ };
+ }
+ if (data['eth']) { // data not null
+ // ensure the json data is an array
+ if (!Array.isArray(data['eth'])) {
+ throw new Error("Expected the field `eth` to be an array in the JSON data but got " + data['eth']);
+ }
+ // validate the optional field `eth` (array)
+ for (const item of data['eth']) {
+ ArduinoCredentialsv1.validateJSON(item);
+ };
+ }
+ if (data['gsm']) { // data not null
+ // ensure the json data is an array
+ if (!Array.isArray(data['gsm'])) {
+ throw new Error("Expected the field `gsm` to be an array in the JSON data but got " + data['gsm']);
+ }
+ // validate the optional field `gsm` (array)
+ for (const item of data['gsm']) {
+ ArduinoCredentialsv1.validateJSON(item);
+ };
+ }
+ if (data['lora']) { // data not null
+ // ensure the json data is an array
+ if (!Array.isArray(data['lora'])) {
+ throw new Error("Expected the field `lora` to be an array in the JSON data but got " + data['lora']);
+ }
+ // validate the optional field `lora` (array)
+ for (const item of data['lora']) {
+ ArduinoCredentialsv1.validateJSON(item);
+ };
+ }
+ if (data['nb']) { // data not null
+ // ensure the json data is an array
+ if (!Array.isArray(data['nb'])) {
+ throw new Error("Expected the field `nb` to be an array in the JSON data but got " + data['nb']);
+ }
+ // validate the optional field `nb` (array)
+ for (const item of data['nb']) {
+ ArduinoCredentialsv1.validateJSON(item);
+ };
+ }
+ if (data['wifi']) { // data not null
+ // ensure the json data is an array
+ if (!Array.isArray(data['wifi'])) {
+ throw new Error("Expected the field `wifi` to be an array in the JSON data but got " + data['wifi']);
+ }
+ // validate the optional field `wifi` (array)
+ for (const item of data['wifi']) {
+ ArduinoCredentialsv1.validateJSON(item);
+ };
+ }
+ if (data['wifiandsecret']) { // data not null
+ // ensure the json data is an array
+ if (!Array.isArray(data['wifiandsecret'])) {
+ throw new Error("Expected the field `wifiandsecret` to be an array in the JSON data but got " + data['wifiandsecret']);
+ }
+ // validate the optional field `wifiandsecret` (array)
+ for (const item of data['wifiandsecret']) {
+ ArduinoCredentialsv1.validateJSON(item);
+ };
+ }
+
+ return true;
+ }
+
+
+}
+
+
+
+/**
+ * ArduinoCredentialsv1Collection is the media type for an array of ArduinoCredentialsv1 (default view)
+ * @member {Array.Clone
.
- * Add overrides used when performing a clone of a dashboard
* @alias module:model/Clone
*/
constructor() {
diff --git a/src/model/CreateAction.js b/src/model/CreateAction.js
index c8d0924..958f19f 100644
--- a/src/model/CreateAction.js
+++ b/src/model/CreateAction.js
@@ -18,7 +18,7 @@ import PushAction from './PushAction';
/**
* The CreateAction model module.
* @module model/CreateAction
- * @version 3.0.0
+ * @version 3.1.0
*/
class CreateAction {
/**
diff --git a/src/model/CreateClaimedDevicesV2Payload.js b/src/model/CreateClaimedDevicesV2Payload.js
new file mode 100644
index 0000000..9a62c38
--- /dev/null
+++ b/src/model/CreateClaimedDevicesV2Payload.js
@@ -0,0 +1,385 @@
+/**
+ * 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 CreateClaimedDevicesV2Payload model module.
+ * @module model/CreateClaimedDevicesV2Payload
+ * @version 3.1.0
+ */
+class CreateClaimedDevicesV2Payload {
+ /**
+ * Constructs a new CreateClaimedDevicesV2Payload
.
+ * DeviceV2 describes a device.
+ * @alias module:model/CreateClaimedDevicesV2Payload
+ * @param type {module:model/CreateClaimedDevicesV2Payload.TypeEnum} The type of the device
+ * @param uniqueHardwareId {String} The unique hardware id of the device
+ * @param userId {String} The user_id associated to the device. If absent it will be inferred from the authentication header
+ */
+ constructor(type, uniqueHardwareId, userId) {
+
+ CreateClaimedDevicesV2Payload.initialize(this, type, uniqueHardwareId, userId);
+ }
+
+ /**
+ * 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, type, uniqueHardwareId, userId) {
+ obj['type'] = type;
+ obj['unique_hardware_id'] = uniqueHardwareId;
+ obj['user_id'] = userId;
+ }
+
+ /**
+ * Constructs a CreateClaimedDevicesV2Payload
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/CreateClaimedDevicesV2Payload} obj Optional instance to populate.
+ * @return {module:model/CreateClaimedDevicesV2Payload} The populated CreateClaimedDevicesV2Payload
instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new CreateClaimedDevicesV2Payload();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = ApiClient.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('ble_mac')) {
+ obj['ble_mac'] = ApiClient.convertToType(data['ble_mac'], 'String');
+ }
+ if (data.hasOwnProperty('connection_type')) {
+ obj['connection_type'] = ApiClient.convertToType(data['connection_type'], 'String');
+ }
+ if (data.hasOwnProperty('fqbn')) {
+ obj['fqbn'] = ApiClient.convertToType(data['fqbn'], 'String');
+ }
+ if (data.hasOwnProperty('name')) {
+ obj['name'] = ApiClient.convertToType(data['name'], 'String');
+ }
+ if (data.hasOwnProperty('serial')) {
+ obj['serial'] = ApiClient.convertToType(data['serial'], 'String');
+ }
+ if (data.hasOwnProperty('type')) {
+ obj['type'] = ApiClient.convertToType(data['type'], 'String');
+ }
+ if (data.hasOwnProperty('unique_hardware_id')) {
+ obj['unique_hardware_id'] = ApiClient.convertToType(data['unique_hardware_id'], 'String');
+ }
+ if (data.hasOwnProperty('user_id')) {
+ obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String');
+ }
+ if (data.hasOwnProperty('wifi_fw_version')) {
+ obj['wifi_fw_version'] = ApiClient.convertToType(data['wifi_fw_version'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to CreateClaimedDevicesV2Payload
.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to CreateClaimedDevicesV2Payload
.
+ */
+ static validateJSON(data) {
+ // check to make sure all required properties are present in the JSON string
+ for (const property of CreateClaimedDevicesV2Payload.RequiredProperties) {
+ if (!data.hasOwnProperty(property)) {
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
+ }
+ }
+ // ensure the json data is a string
+ if (data['ID'] && !(typeof data['ID'] === 'string' || data['ID'] instanceof String)) {
+ throw new Error("Expected the field `ID` to be a primitive type in the JSON string but got " + data['ID']);
+ }
+ // ensure the json data is a string
+ if (data['ble_mac'] && !(typeof data['ble_mac'] === 'string' || data['ble_mac'] instanceof String)) {
+ throw new Error("Expected the field `ble_mac` to be a primitive type in the JSON string but got " + data['ble_mac']);
+ }
+ // ensure the json data is a string
+ if (data['connection_type'] && !(typeof data['connection_type'] === 'string' || data['connection_type'] instanceof String)) {
+ throw new Error("Expected the field `connection_type` to be a primitive type in the JSON string but got " + data['connection_type']);
+ }
+ // ensure the json data is a string
+ if (data['fqbn'] && !(typeof data['fqbn'] === 'string' || data['fqbn'] instanceof String)) {
+ throw new Error("Expected the field `fqbn` to be a primitive type in the JSON string but got " + data['fqbn']);
+ }
+ // ensure the json data is a string
+ if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
+ }
+ // ensure the json data is a string
+ if (data['serial'] && !(typeof data['serial'] === 'string' || data['serial'] instanceof String)) {
+ throw new Error("Expected the field `serial` to be a primitive type in the JSON string but got " + data['serial']);
+ }
+ // ensure the json data is a string
+ if (data['type'] && !(typeof data['type'] === 'string' || data['type'] instanceof String)) {
+ throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data['type']);
+ }
+ // ensure the json data is a string
+ if (data['unique_hardware_id'] && !(typeof data['unique_hardware_id'] === 'string' || data['unique_hardware_id'] instanceof String)) {
+ throw new Error("Expected the field `unique_hardware_id` to be a primitive type in the JSON string but got " + data['unique_hardware_id']);
+ }
+ // ensure the json data is a string
+ if (data['user_id'] && !(typeof data['user_id'] === 'string' || data['user_id'] instanceof String)) {
+ throw new Error("Expected the field `user_id` to be a primitive type in the JSON string but got " + data['user_id']);
+ }
+ // ensure the json data is a string
+ if (data['wifi_fw_version'] && !(typeof data['wifi_fw_version'] === 'string' || data['wifi_fw_version'] instanceof String)) {
+ throw new Error("Expected the field `wifi_fw_version` to be a primitive type in the JSON string but got " + data['wifi_fw_version']);
+ }
+
+ return true;
+ }
+
+
+}
+
+CreateClaimedDevicesV2Payload.RequiredProperties = ["type", "unique_hardware_id", "user_id"];
+
+/**
+ * The id of the device
+ * @member {String} ID
+ */
+CreateClaimedDevicesV2Payload.prototype['ID'] = undefined;
+
+/**
+ * @member {String} ble_mac
+ */
+CreateClaimedDevicesV2Payload.prototype['ble_mac'] = undefined;
+
+/**
+ * The type of the connections selected by the user when multiple connections are available
+ * @member {module:model/CreateClaimedDevicesV2Payload.ConnectionTypeEnum} connection_type
+ */
+CreateClaimedDevicesV2Payload.prototype['connection_type'] = undefined;
+
+/**
+ * The fully qualified board name
+ * @member {String} fqbn
+ */
+CreateClaimedDevicesV2Payload.prototype['fqbn'] = undefined;
+
+/**
+ * The friendly name of the device
+ * @member {String} name
+ */
+CreateClaimedDevicesV2Payload.prototype['name'] = undefined;
+
+/**
+ * The serial uuid of the device
+ * @member {String} serial
+ */
+CreateClaimedDevicesV2Payload.prototype['serial'] = undefined;
+
+/**
+ * The type of the device
+ * @member {module:model/CreateClaimedDevicesV2Payload.TypeEnum} type
+ */
+CreateClaimedDevicesV2Payload.prototype['type'] = undefined;
+
+/**
+ * The unique hardware id of the device
+ * @member {String} unique_hardware_id
+ */
+CreateClaimedDevicesV2Payload.prototype['unique_hardware_id'] = undefined;
+
+/**
+ * The user_id associated to the device. If absent it will be inferred from the authentication header
+ * @member {String} user_id
+ */
+CreateClaimedDevicesV2Payload.prototype['user_id'] = undefined;
+
+/**
+ * The version of the NINA/WIFI101 firmware running on the device
+ * @member {String} wifi_fw_version
+ */
+CreateClaimedDevicesV2Payload.prototype['wifi_fw_version'] = undefined;
+
+
+
+
+
+/**
+ * Allowed values for the connection_type
property.
+ * @enum {String}
+ * @readonly
+ */
+CreateClaimedDevicesV2Payload['ConnectionTypeEnum'] = {
+
+ /**
+ * value: "wifi"
+ * @const
+ */
+ "wifi": "wifi",
+
+ /**
+ * value: "eth"
+ * @const
+ */
+ "eth": "eth",
+
+ /**
+ * value: "wifiandsecret"
+ * @const
+ */
+ "wifiandsecret": "wifiandsecret",
+
+ /**
+ * value: "gsm"
+ * @const
+ */
+ "gsm": "gsm",
+
+ /**
+ * value: "nb"
+ * @const
+ */
+ "nb": "nb",
+
+ /**
+ * value: "lora"
+ * @const
+ */
+ "lora": "lora",
+
+ /**
+ * value: "catm1"
+ * @const
+ */
+ "catm1": "catm1",
+
+ /**
+ * value: "cellular"
+ * @const
+ */
+ "cellular": "cellular"
+};
+
+
+/**
+ * Allowed values for the type
property.
+ * @enum {String}
+ * @readonly
+ */
+CreateClaimedDevicesV2Payload['TypeEnum'] = {
+
+ /**
+ * value: "mkrwifi1010"
+ * @const
+ */
+ "mkrwifi1010": "mkrwifi1010",
+
+ /**
+ * value: "mkr1000"
+ * @const
+ */
+ "mkr1000": "mkr1000",
+
+ /**
+ * value: "nano_33_iot"
+ * @const
+ */
+ "nano_33_iot": "nano_33_iot",
+
+ /**
+ * value: "mkrgsm1400"
+ * @const
+ */
+ "mkrgsm1400": "mkrgsm1400",
+
+ /**
+ * value: "mkrnb1500"
+ * @const
+ */
+ "mkrnb1500": "mkrnb1500",
+
+ /**
+ * value: "login_and_secretkey_wifi"
+ * @const
+ */
+ "login_and_secretkey_wifi": "login_and_secretkey_wifi",
+
+ /**
+ * value: "envie_m7"
+ * @const
+ */
+ "envie_m7": "envie_m7",
+
+ /**
+ * value: "nanorp2040connect"
+ * @const
+ */
+ "nanorp2040connect": "nanorp2040connect",
+
+ /**
+ * value: "nicla_vision"
+ * @const
+ */
+ "nicla_vision": "nicla_vision",
+
+ /**
+ * value: "phone"
+ * @const
+ */
+ "phone": "phone",
+
+ /**
+ * value: "portenta_x8"
+ * @const
+ */
+ "portenta_x8": "portenta_x8",
+
+ /**
+ * value: "opta"
+ * @const
+ */
+ "opta": "opta",
+
+ /**
+ * value: "giga"
+ * @const
+ */
+ "giga": "giga",
+
+ /**
+ * value: "generic_device_secretkey"
+ * @const
+ */
+ "generic_device_secretkey": "generic_device_secretkey",
+
+ /**
+ * value: "portenta_c33"
+ * @const
+ */
+ "portenta_c33": "portenta_c33",
+
+ /**
+ * value: "unor4wifi"
+ * @const
+ */
+ "unor4wifi": "unor4wifi",
+
+ /**
+ * value: "nano_nora"
+ * @const
+ */
+ "nano_nora": "nano_nora"
+};
+
+
+
+export default CreateClaimedDevicesV2Payload;
+
diff --git a/src/model/CreateDevicesV2CertsPayload.js b/src/model/CreateDevicesV2CertsPayload.js
index 71c7a73..a8cd2e0 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 3.0.0
+ * @version 3.1.0
*/
class CreateDevicesV2CertsPayload {
/**
diff --git a/src/model/CreateDevicesV2Payload.js b/src/model/CreateDevicesV2Payload.js
index 597d3f5..fe4d21e 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 3.0.0
+ * @version 3.1.0
*/
class CreateDevicesV2Payload {
/**
@@ -51,6 +51,9 @@ class CreateDevicesV2Payload {
if (data) {
obj = obj || new CreateDevicesV2Payload();
+ if (data.hasOwnProperty('ble_mac')) {
+ obj['ble_mac'] = ApiClient.convertToType(data['ble_mac'], 'String');
+ }
if (data.hasOwnProperty('connection_type')) {
obj['connection_type'] = ApiClient.convertToType(data['connection_type'], 'String');
}
@@ -69,6 +72,9 @@ class CreateDevicesV2Payload {
if (data.hasOwnProperty('type')) {
obj['type'] = ApiClient.convertToType(data['type'], 'String');
}
+ if (data.hasOwnProperty('unique_hardware_id')) {
+ obj['unique_hardware_id'] = ApiClient.convertToType(data['unique_hardware_id'], 'String');
+ }
if (data.hasOwnProperty('user_id')) {
obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String');
}
@@ -92,6 +98,10 @@ class CreateDevicesV2Payload {
}
}
// ensure the json data is a string
+ if (data['ble_mac'] && !(typeof data['ble_mac'] === 'string' || data['ble_mac'] instanceof String)) {
+ throw new Error("Expected the field `ble_mac` to be a primitive type in the JSON string but got " + data['ble_mac']);
+ }
+ // ensure the json data is a string
if (data['connection_type'] && !(typeof data['connection_type'] === 'string' || data['connection_type'] instanceof String)) {
throw new Error("Expected the field `connection_type` to be a primitive type in the JSON string but got " + data['connection_type']);
}
@@ -112,6 +122,10 @@ class CreateDevicesV2Payload {
throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data['type']);
}
// ensure the json data is a string
+ if (data['unique_hardware_id'] && !(typeof data['unique_hardware_id'] === 'string' || data['unique_hardware_id'] instanceof String)) {
+ throw new Error("Expected the field `unique_hardware_id` to be a primitive type in the JSON string but got " + data['unique_hardware_id']);
+ }
+ // ensure the json data is a string
if (data['user_id'] && !(typeof data['user_id'] === 'string' || data['user_id'] instanceof String)) {
throw new Error("Expected the field `user_id` to be a primitive type in the JSON string but got " + data['user_id']);
}
@@ -128,6 +142,11 @@ class CreateDevicesV2Payload {
CreateDevicesV2Payload.RequiredProperties = ["type"];
+/**
+ * @member {String} ble_mac
+ */
+CreateDevicesV2Payload.prototype['ble_mac'] = undefined;
+
/**
* The type of the connections selected by the user when multiple connections are available
* @member {module:model/CreateDevicesV2Payload.ConnectionTypeEnum} connection_type
@@ -165,6 +184,11 @@ CreateDevicesV2Payload.prototype['soft_deleted'] = false;
*/
CreateDevicesV2Payload.prototype['type'] = undefined;
+/**
+ * @member {String} unique_hardware_id
+ */
+CreateDevicesV2Payload.prototype['unique_hardware_id'] = undefined;
+
/**
* The user_id associated to the device. If absent it will be inferred from the authentication header
* @member {String} user_id
diff --git a/src/model/CreateLoraDevicesV1Payload.js b/src/model/CreateLoraDevicesV1Payload.js
index c01d1f7..535fbc3 100644
--- a/src/model/CreateLoraDevicesV1Payload.js
+++ b/src/model/CreateLoraDevicesV1Payload.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The CreateLoraDevicesV1Payload model module.
* @module model/CreateLoraDevicesV1Payload
- * @version 3.0.0
+ * @version 3.1.0
*/
class CreateLoraDevicesV1Payload {
/**
diff --git a/src/model/Dashboardshare.js b/src/model/Dashboardshare.js
index c97f55b..67c0f8c 100644
--- a/src/model/Dashboardshare.js
+++ b/src/model/Dashboardshare.js
@@ -12,11 +12,12 @@
*/
import ApiClient from '../ApiClient';
+import Usershare from './Usershare';
/**
* The Dashboardshare model module.
* @module model/Dashboardshare
- * @version 3.0.0
+ * @version 3.1.0
*/
class Dashboardshare {
/**
@@ -53,6 +54,9 @@ class Dashboardshare {
if (data.hasOwnProperty('username')) {
obj['username'] = ApiClient.convertToType(data['username'], 'String');
}
+ if (data.hasOwnProperty('users')) {
+ obj['users'] = ApiClient.convertToType(data['users'], [Usershare]);
+ }
}
return obj;
}
@@ -71,6 +75,16 @@ class Dashboardshare {
if (data['username'] && !(typeof data['username'] === 'string' || data['username'] instanceof String)) {
throw new Error("Expected the field `username` to be a primitive type in the JSON string but got " + data['username']);
}
+ if (data['users']) { // data not null
+ // ensure the json data is an array
+ if (!Array.isArray(data['users'])) {
+ throw new Error("Expected the field `users` to be an array in the JSON data but got " + data['users']);
+ }
+ // validate the optional field `users` (array)
+ for (const item of data['users']) {
+ Usershare.validateJSON(item);
+ };
+ }
return true;
}
@@ -92,6 +106,12 @@ Dashboardshare.prototype['user_id'] = undefined;
*/
Dashboardshare.prototype['username'] = undefined;
+/**
+ * The list of users you want to share the dashboard with
+ * @member {Array.Dashboardv2
.
- * Describes a dashboard
+ * DashboardV2Payload describes a dashboard
* @alias module:model/Dashboardv2
*/
constructor() {
diff --git a/src/model/DeviceStatusSource.js b/src/model/DeviceStatusSource.js
index c07b029..8cdd445 100644
--- a/src/model/DeviceStatusSource.js
+++ b/src/model/DeviceStatusSource.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The DeviceStatusSource model module.
* @module model/DeviceStatusSource
- * @version 3.0.0
+ * @version 3.1.0
*/
class DeviceStatusSource {
/**
diff --git a/src/model/DeviceStatusSourceWithLinkedDevices.js b/src/model/DeviceStatusSourceWithLinkedDevices.js
index a92c12f..348bbcc 100644
--- a/src/model/DeviceStatusSourceWithLinkedDevices.js
+++ b/src/model/DeviceStatusSourceWithLinkedDevices.js
@@ -17,7 +17,7 @@ import ArduinoLinkedDevice from './ArduinoLinkedDevice';
/**
* The DeviceStatusSourceWithLinkedDevices model module.
* @module model/DeviceStatusSourceWithLinkedDevices
- * @version 3.0.0
+ * @version 3.1.0
*/
class DeviceStatusSourceWithLinkedDevices {
/**
diff --git a/src/model/Devicev2.js b/src/model/Devicev2.js
index a030900..b8360b3 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 3.0.0
+ * @version 3.1.0
*/
class Devicev2 {
/**
@@ -49,6 +49,9 @@ class Devicev2 {
if (data) {
obj = obj || new Devicev2();
+ if (data.hasOwnProperty('ble_mac')) {
+ obj['ble_mac'] = ApiClient.convertToType(data['ble_mac'], 'String');
+ }
if (data.hasOwnProperty('connection_type')) {
obj['connection_type'] = ApiClient.convertToType(data['connection_type'], 'String');
}
@@ -67,6 +70,9 @@ class Devicev2 {
if (data.hasOwnProperty('type')) {
obj['type'] = ApiClient.convertToType(data['type'], 'String');
}
+ if (data.hasOwnProperty('unique_hardware_id')) {
+ obj['unique_hardware_id'] = ApiClient.convertToType(data['unique_hardware_id'], 'String');
+ }
if (data.hasOwnProperty('user_id')) {
obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String');
}
@@ -83,6 +89,10 @@ class Devicev2 {
* @return {boolean} to indicate whether the JSON data is valid with respect to Devicev2
.
*/
static validateJSON(data) {
+ // ensure the json data is a string
+ if (data['ble_mac'] && !(typeof data['ble_mac'] === 'string' || data['ble_mac'] instanceof String)) {
+ throw new Error("Expected the field `ble_mac` to be a primitive type in the JSON string but got " + data['ble_mac']);
+ }
// ensure the json data is a string
if (data['connection_type'] && !(typeof data['connection_type'] === 'string' || data['connection_type'] instanceof String)) {
throw new Error("Expected the field `connection_type` to be a primitive type in the JSON string but got " + data['connection_type']);
@@ -104,6 +114,10 @@ class Devicev2 {
throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data['type']);
}
// ensure the json data is a string
+ if (data['unique_hardware_id'] && !(typeof data['unique_hardware_id'] === 'string' || data['unique_hardware_id'] instanceof String)) {
+ throw new Error("Expected the field `unique_hardware_id` to be a primitive type in the JSON string but got " + data['unique_hardware_id']);
+ }
+ // ensure the json data is a string
if (data['user_id'] && !(typeof data['user_id'] === 'string' || data['user_id'] instanceof String)) {
throw new Error("Expected the field `user_id` to be a primitive type in the JSON string but got " + data['user_id']);
}
@@ -120,6 +134,11 @@ class Devicev2 {
+/**
+ * @member {String} ble_mac
+ */
+Devicev2.prototype['ble_mac'] = undefined;
+
/**
* The type of the connections selected by the user when multiple connections are available
* @member {module:model/Devicev2.ConnectionTypeEnum} connection_type
@@ -157,6 +176,11 @@ Devicev2.prototype['soft_deleted'] = false;
*/
Devicev2.prototype['type'] = undefined;
+/**
+ * @member {String} unique_hardware_id
+ */
+Devicev2.prototype['unique_hardware_id'] = undefined;
+
/**
* The user_id associated to the device. If absent it will be inferred from the authentication header
* @member {String} user_id
diff --git a/src/model/Devicev2Cert.js b/src/model/Devicev2Cert.js
index c06b68d..c48552e 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 3.0.0
+ * @version 3.1.0
*/
class Devicev2Cert {
/**
diff --git a/src/model/Devicev2Otabinaryurl.js b/src/model/Devicev2Otabinaryurl.js
index dae198b..c2b4685 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 3.0.0
+ * @version 3.1.0
*/
class Devicev2Otabinaryurl {
/**
diff --git a/src/model/Devicev2Otaurlpyalod.js b/src/model/Devicev2Otaurlpyalod.js
index e87f7da..67f720f 100644
--- a/src/model/Devicev2Otaurlpyalod.js
+++ b/src/model/Devicev2Otaurlpyalod.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The Devicev2Otaurlpyalod model module.
* @module model/Devicev2Otaurlpyalod
- * @version 3.0.0
+ * @version 3.1.0
*/
class Devicev2Otaurlpyalod {
/**
diff --git a/src/model/Devicev2Pass.js b/src/model/Devicev2Pass.js
index 2f790d7..447393a 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 3.0.0
+ * @version 3.1.0
*/
class Devicev2Pass {
/**
diff --git a/src/model/EmailAction.js b/src/model/EmailAction.js
index 3013261..7b755d0 100644
--- a/src/model/EmailAction.js
+++ b/src/model/EmailAction.js
@@ -19,7 +19,7 @@ import TitleExpression from './TitleExpression';
/**
* The EmailAction model module.
* @module model/EmailAction
- * @version 3.0.0
+ * @version 3.1.0
*/
class EmailAction {
/**
diff --git a/src/model/EmailDeliveryOpts.js b/src/model/EmailDeliveryOpts.js
index b8c2dbb..df7429d 100644
--- a/src/model/EmailDeliveryOpts.js
+++ b/src/model/EmailDeliveryOpts.js
@@ -17,7 +17,7 @@ import UserRecipient from './UserRecipient';
/**
* The EmailDeliveryOpts model module.
* @module model/EmailDeliveryOpts
- * @version 3.0.0
+ * @version 3.1.0
*/
class EmailDeliveryOpts {
/**
diff --git a/src/model/Error.js b/src/model/Error.js
index 5d6a6fe..ea8f81a 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 3.0.0
+ * @version 3.1.0
*/
class Error {
/**
diff --git a/src/model/HistoricDataRequest.js b/src/model/HistoricDataRequest.js
index 785d692..8d9a901 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 3.0.0
+ * @version 3.1.0
*/
class HistoricDataRequest {
/**
diff --git a/src/model/Override.js b/src/model/Override.js
index d93a035..0225cd3 100644
--- a/src/model/Override.js
+++ b/src/model/Override.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The Override model module.
* @module model/Override
- * @version 3.0.0
+ * @version 3.1.0
*/
class Override {
/**
diff --git a/src/model/PropertiesValue.js b/src/model/PropertiesValue.js
index f5f94dd..2c0dfe3 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 3.0.0
+ * @version 3.1.0
*/
class PropertiesValue {
/**
diff --git a/src/model/PropertiesValues.js b/src/model/PropertiesValues.js
index df998ea..39b93a2 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 3.0.0
+ * @version 3.1.0
*/
class PropertiesValues {
/**
diff --git a/src/model/Property.js b/src/model/Property.js
index bd5308d..32cae00 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 3.0.0
+ * @version 3.1.0
*/
class Property {
/**
diff --git a/src/model/PropertyValue.js b/src/model/PropertyValue.js
index 0061b74..d4ab994 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 3.0.0
+ * @version 3.1.0
*/
class PropertyValue {
/**
diff --git a/src/model/PushAction.js b/src/model/PushAction.js
index c5a13ac..906ad31 100644
--- a/src/model/PushAction.js
+++ b/src/model/PushAction.js
@@ -19,7 +19,7 @@ import TitleExpression from './TitleExpression';
/**
* The PushAction model module.
* @module model/PushAction
- * @version 3.0.0
+ * @version 3.1.0
*/
class PushAction {
/**
diff --git a/src/model/PushDeliveryOpts.js b/src/model/PushDeliveryOpts.js
index 9b4f673..ab99562 100644
--- a/src/model/PushDeliveryOpts.js
+++ b/src/model/PushDeliveryOpts.js
@@ -17,7 +17,7 @@ import UserRecipient from './UserRecipient';
/**
* The PushDeliveryOpts model module.
* @module model/PushDeliveryOpts
- * @version 3.0.0
+ * @version 3.1.0
*/
class PushDeliveryOpts {
/**
diff --git a/src/model/Sharerequest.js b/src/model/Sharerequest.js
index 0618a83..bf05538 100644
--- a/src/model/Sharerequest.js
+++ b/src/model/Sharerequest.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The Sharerequest model module.
* @module model/Sharerequest
- * @version 3.0.0
+ * @version 3.1.0
*/
class Sharerequest {
/**
diff --git a/src/model/Tag.js b/src/model/Tag.js
index 6448386..9b62531 100644
--- a/src/model/Tag.js
+++ b/src/model/Tag.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The Tag model module.
* @module model/Tag
- * @version 3.0.0
+ * @version 3.1.0
*/
class Tag {
/**
diff --git a/src/model/Template.js b/src/model/Template.js
index 4bb9369..34b9953 100644
--- a/src/model/Template.js
+++ b/src/model/Template.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The Template model module.
* @module model/Template
- * @version 3.0.0
+ * @version 3.1.0
*/
class Template {
/**
diff --git a/src/model/ThingClone.js b/src/model/ThingClone.js
index 67e0095..df19fe8 100644
--- a/src/model/ThingClone.js
+++ b/src/model/ThingClone.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The ThingClone model module.
* @module model/ThingClone
- * @version 3.0.0
+ * @version 3.1.0
*/
class ThingClone {
/**
diff --git a/src/model/ThingCreate.js b/src/model/ThingCreate.js
index 0a1e605..bf41b61 100644
--- a/src/model/ThingCreate.js
+++ b/src/model/ThingCreate.js
@@ -18,7 +18,7 @@ import Tag from './Tag';
/**
* The ThingCreate model module.
* @module model/ThingCreate
- * @version 3.0.0
+ * @version 3.1.0
*/
class ThingCreate {
/**
diff --git a/src/model/ThingSketch.js b/src/model/ThingSketch.js
index cb63743..a601033 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 3.0.0
+ * @version 3.1.0
*/
class ThingSketch {
/**
diff --git a/src/model/ThingUpdate.js b/src/model/ThingUpdate.js
index 3f2b38b..ccd114a 100644
--- a/src/model/ThingUpdate.js
+++ b/src/model/ThingUpdate.js
@@ -17,7 +17,7 @@ import Property from './Property';
/**
* The ThingUpdate model module.
* @module model/ThingUpdate
- * @version 3.0.0
+ * @version 3.1.0
*/
class ThingUpdate {
/**
diff --git a/src/model/TimeseriesDataPoint.js b/src/model/TimeseriesDataPoint.js
index bb52ea2..fac496d 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 3.0.0
+ * @version 3.1.0
*/
class TimeseriesDataPoint {
/**
diff --git a/src/model/TitleExpression.js b/src/model/TitleExpression.js
index c7c47be..c32dee7 100644
--- a/src/model/TitleExpression.js
+++ b/src/model/TitleExpression.js
@@ -17,7 +17,7 @@ import Variable from './Variable';
/**
* The TitleExpression model module.
* @module model/TitleExpression
- * @version 3.0.0
+ * @version 3.1.0
*/
class TitleExpression {
/**
diff --git a/src/model/Trigger.js b/src/model/Trigger.js
index 9557833..aeed347 100644
--- a/src/model/Trigger.js
+++ b/src/model/Trigger.js
@@ -18,7 +18,7 @@ import DeviceStatusSource from './DeviceStatusSource';
/**
* The Trigger model module.
* @module model/Trigger
- * @version 3.0.0
+ * @version 3.1.0
*/
class Trigger {
/**
diff --git a/src/model/UpdateAction.js b/src/model/UpdateAction.js
index a921150..13c2e35 100644
--- a/src/model/UpdateAction.js
+++ b/src/model/UpdateAction.js
@@ -18,7 +18,7 @@ import PushAction from './PushAction';
/**
* The UpdateAction model module.
* @module model/UpdateAction
- * @version 3.0.0
+ * @version 3.1.0
*/
class UpdateAction {
/**
diff --git a/src/model/UpdateSketch.js b/src/model/UpdateSketch.js
index c3b2246..d3cec1d 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 3.0.0
+ * @version 3.1.0
*/
class UpdateSketch {
/**
diff --git a/src/model/UserRecipient.js b/src/model/UserRecipient.js
index f35e236..ff34644 100644
--- a/src/model/UserRecipient.js
+++ b/src/model/UserRecipient.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The UserRecipient model module.
* @module model/UserRecipient
- * @version 3.0.0
+ * @version 3.1.0
*/
class UserRecipient {
/**
diff --git a/src/model/Usershare.js b/src/model/Usershare.js
new file mode 100644
index 0000000..0470b0f
--- /dev/null
+++ b/src/model/Usershare.js
@@ -0,0 +1,101 @@
+/**
+ * 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 Usershare model module.
+ * @module model/Usershare
+ * @version 3.1.0
+ */
+class Usershare {
+ /**
+ * Constructs a new Usershare
.
+ * @alias module:model/Usershare
+ */
+ constructor() {
+
+ Usershare.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 Usershare
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/Usershare} obj Optional instance to populate.
+ * @return {module:model/Usershare} The populated Usershare
instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new Usershare();
+
+ 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;
+ }
+
+ /**
+ * Validates the JSON data with respect to Usershare
.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to Usershare
.
+ */
+ static validateJSON(data) {
+ // ensure the json data is a string
+ if (data['user_id'] && !(typeof data['user_id'] === 'string' || data['user_id'] instanceof String)) {
+ throw new Error("Expected the field `user_id` to be a primitive type in the JSON string but got " + data['user_id']);
+ }
+ // ensure the json data is a string
+ if (data['username'] && !(typeof data['username'] === 'string' || data['username'] instanceof String)) {
+ throw new Error("Expected the field `username` to be a primitive type in the JSON string but got " + data['username']);
+ }
+
+ return true;
+ }
+
+
+}
+
+
+
+/**
+ * The userID of the user you want to share the dashboard with
+ * @member {String} user_id
+ */
+Usershare.prototype['user_id'] = undefined;
+
+/**
+ * The username of the user you want to share the dashboard with
+ * @member {String} username
+ */
+Usershare.prototype['username'] = undefined;
+
+
+
+
+
+
+export default Usershare;
+
diff --git a/src/model/Variable.js b/src/model/Variable.js
index f0af7b4..34e6446 100644
--- a/src/model/Variable.js
+++ b/src/model/Variable.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The Variable model module.
* @module model/Variable
- * @version 3.0.0
+ * @version 3.1.0
*/
class Variable {
/**
diff --git a/src/model/Widget.js b/src/model/Widget.js
index 52bcd55..eebb979 100644
--- a/src/model/Widget.js
+++ b/src/model/Widget.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The Widget model module.
* @module model/Widget
- * @version 3.0.0
+ * @version 3.1.0
*/
class Widget {
/**
diff --git a/src/model/Widgetlink.js b/src/model/Widgetlink.js
index e73f224..3427560 100644
--- a/src/model/Widgetlink.js
+++ b/src/model/Widgetlink.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The Widgetlink model module.
* @module model/Widgetlink
- * @version 3.0.0
+ * @version 3.1.0
*/
class Widgetlink {
/**
diff --git a/test/model/ArduinoArduinoconnectionsV1.spec.js b/test/model/ArduinoArduinoconnectionsV1.spec.js
new file mode 100644
index 0000000..f29b924
--- /dev/null
+++ b/test/model/ArduinoArduinoconnectionsV1.spec.js
@@ -0,0 +1,107 @@
+/**
+ * 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.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', process.cwd()+'/src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require(process.cwd()+'/src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.ArduinoIotClient);
+ }
+}(this, function(expect, ArduinoIotClient) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new ArduinoIotClient.ArduinoArduinoconnectionsV1();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('ArduinoArduinoconnectionsV1', function() {
+ it('should create an instance of ArduinoArduinoconnectionsV1', function() {
+ // uncomment below and update the code to test ArduinoArduinoconnectionsV1
+ //var instance = new ArduinoIotClient.ArduinoArduinoconnectionsV1();
+ //expect(instance).to.be.a(ArduinoIotClient.ArduinoArduinoconnectionsV1);
+ });
+
+ it('should have the property catm1 (base name: "catm1")', function() {
+ // uncomment below and update the code to test the property catm1
+ //var instance = new ArduinoIotClient.ArduinoArduinoconnectionsV1();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property cellular (base name: "cellular")', function() {
+ // uncomment below and update the code to test the property cellular
+ //var instance = new ArduinoIotClient.ArduinoArduinoconnectionsV1();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property eth (base name: "eth")', function() {
+ // uncomment below and update the code to test the property eth
+ //var instance = new ArduinoIotClient.ArduinoArduinoconnectionsV1();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property gsm (base name: "gsm")', function() {
+ // uncomment below and update the code to test the property gsm
+ //var instance = new ArduinoIotClient.ArduinoArduinoconnectionsV1();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property lora (base name: "lora")', function() {
+ // uncomment below and update the code to test the property lora
+ //var instance = new ArduinoIotClient.ArduinoArduinoconnectionsV1();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property nb (base name: "nb")', function() {
+ // uncomment below and update the code to test the property nb
+ //var instance = new ArduinoIotClient.ArduinoArduinoconnectionsV1();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property wifi (base name: "wifi")', function() {
+ // uncomment below and update the code to test the property wifi
+ //var instance = new ArduinoIotClient.ArduinoArduinoconnectionsV1();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property wifiandsecret (base name: "wifiandsecret")', function() {
+ // uncomment below and update the code to test the property wifiandsecret
+ //var instance = new ArduinoIotClient.ArduinoArduinoconnectionsV1();
+ //expect(instance).to.be();
+ });
+
+ });
+
+}));
diff --git a/test/model/CreateClaimedDevicesV2Payload.spec.js b/test/model/CreateClaimedDevicesV2Payload.spec.js
new file mode 100644
index 0000000..48be153
--- /dev/null
+++ b/test/model/CreateClaimedDevicesV2Payload.spec.js
@@ -0,0 +1,119 @@
+/**
+ * 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.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', process.cwd()+'/src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require(process.cwd()+'/src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.ArduinoIotClient);
+ }
+}(this, function(expect, ArduinoIotClient) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new ArduinoIotClient.CreateClaimedDevicesV2Payload();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('CreateClaimedDevicesV2Payload', function() {
+ it('should create an instance of CreateClaimedDevicesV2Payload', function() {
+ // uncomment below and update the code to test CreateClaimedDevicesV2Payload
+ //var instance = new ArduinoIotClient.CreateClaimedDevicesV2Payload();
+ //expect(instance).to.be.a(ArduinoIotClient.CreateClaimedDevicesV2Payload);
+ });
+
+ it('should have the property ID (base name: "ID")', function() {
+ // uncomment below and update the code to test the property ID
+ //var instance = new ArduinoIotClient.CreateClaimedDevicesV2Payload();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property bleMac (base name: "ble_mac")', function() {
+ // uncomment below and update the code to test the property bleMac
+ //var instance = new ArduinoIotClient.CreateClaimedDevicesV2Payload();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property connectionType (base name: "connection_type")', function() {
+ // uncomment below and update the code to test the property connectionType
+ //var instance = new ArduinoIotClient.CreateClaimedDevicesV2Payload();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property fqbn (base name: "fqbn")', function() {
+ // uncomment below and update the code to test the property fqbn
+ //var instance = new ArduinoIotClient.CreateClaimedDevicesV2Payload();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property name (base name: "name")', function() {
+ // uncomment below and update the code to test the property name
+ //var instance = new ArduinoIotClient.CreateClaimedDevicesV2Payload();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property serial (base name: "serial")', function() {
+ // uncomment below and update the code to test the property serial
+ //var instance = new ArduinoIotClient.CreateClaimedDevicesV2Payload();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property type (base name: "type")', function() {
+ // uncomment below and update the code to test the property type
+ //var instance = new ArduinoIotClient.CreateClaimedDevicesV2Payload();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property uniqueHardwareId (base name: "unique_hardware_id")', function() {
+ // uncomment below and update the code to test the property uniqueHardwareId
+ //var instance = new ArduinoIotClient.CreateClaimedDevicesV2Payload();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property userId (base name: "user_id")', function() {
+ // uncomment below and update the code to test the property userId
+ //var instance = new ArduinoIotClient.CreateClaimedDevicesV2Payload();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property wifiFwVersion (base name: "wifi_fw_version")', function() {
+ // uncomment below and update the code to test the property wifiFwVersion
+ //var instance = new ArduinoIotClient.CreateClaimedDevicesV2Payload();
+ //expect(instance).to.be();
+ });
+
+ });
+
+}));
diff --git a/test/model/Usershare.spec.js b/test/model/Usershare.spec.js
new file mode 100644
index 0000000..13950f3
--- /dev/null
+++ b/test/model/Usershare.spec.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.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', process.cwd()+'/src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require(process.cwd()+'/src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.ArduinoIotClient);
+ }
+}(this, function(expect, ArduinoIotClient) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new ArduinoIotClient.Usershare();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('Usershare', function() {
+ it('should create an instance of Usershare', function() {
+ // uncomment below and update the code to test Usershare
+ //var instance = new ArduinoIotClient.Usershare();
+ //expect(instance).to.be.a(ArduinoIotClient.Usershare);
+ });
+
+ it('should have the property userId (base name: "user_id")', function() {
+ // uncomment below and update the code to test the property userId
+ //var instance = new ArduinoIotClient.Usershare();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property username (base name: "username")', function() {
+ // uncomment below and update the code to test the property username
+ //var instance = new ArduinoIotClient.Usershare();
+ //expect(instance).to.be();
+ });
+
+ });
+
+}));