diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index d9cc3ca..d92937f 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -29,6 +29,7 @@ docs/ArduinoLoradevicev1.md docs/ArduinoLorafreqplansv1.md docs/ArduinoLorafreqplanv1.md docs/ArduinoProperty.md +docs/ArduinoPropertytype.md docs/ArduinoSeriesBatch.md docs/ArduinoSeriesBatchSampled.md docs/ArduinoSeriesRawBatch.md @@ -86,6 +87,7 @@ docs/PropertiesV2Api.md docs/PropertiesValue.md docs/PropertiesValues.md docs/Property.md +docs/PropertyTypesV1Api.md docs/PropertyValue.md docs/SeriesV2Api.md docs/Sharerequest.md @@ -116,6 +118,7 @@ src/api/LoraDevicesV1Api.js src/api/LoraFreqPlanV1Api.js src/api/NetworkCredentialsV1Api.js src/api/PropertiesV2Api.js +src/api/PropertyTypesV1Api.js src/api/SeriesV2Api.js src/api/TemplatesApi.js src/api/ThingsV2Api.js @@ -148,6 +151,7 @@ src/model/ArduinoLoradevicev1.js src/model/ArduinoLorafreqplansv1.js src/model/ArduinoLorafreqplanv1.js src/model/ArduinoProperty.js +src/model/ArduinoPropertytype.js src/model/ArduinoSeriesBatch.js src/model/ArduinoSeriesBatchSampled.js src/model/ArduinoSeriesRawBatch.js @@ -217,6 +221,7 @@ test/api/LoraDevicesV1Api.spec.js test/api/LoraFreqPlanV1Api.spec.js test/api/NetworkCredentialsV1Api.spec.js test/api/PropertiesV2Api.spec.js +test/api/PropertyTypesV1Api.spec.js test/api/SeriesV2Api.spec.js test/api/TemplatesApi.spec.js test/api/ThingsV2Api.spec.js @@ -248,6 +253,7 @@ test/model/ArduinoLoradevicev1.spec.js test/model/ArduinoLorafreqplansv1.spec.js test/model/ArduinoLorafreqplanv1.spec.js test/model/ArduinoProperty.spec.js +test/model/ArduinoPropertytype.spec.js test/model/ArduinoSeriesBatch.spec.js test/model/ArduinoSeriesBatchSampled.spec.js test/model/ArduinoSeriesRawBatch.spec.js diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index c0be8a7..4bc5d61 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -6.4.0 \ No newline at end of file +7.9.0 diff --git a/docs/ArduinoCompressedv2.md b/docs/ArduinoCompressedv2.md new file mode 100644 index 0000000..f6df893 --- /dev/null +++ b/docs/ArduinoCompressedv2.md @@ -0,0 +1,15 @@ +# ArduinoIotClient.ArduinoCompressedv2 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**authorityKeyIdentifier** | **String** | The Authority Key Identifier of the certificate | [optional] +**notAfter** | **Date** | The ending date of the certificate | +**notBefore** | **Date** | The starting date of the certificate | +**serial** | **String** | The serial number of the certificate | +**signature** | **String** | The signature of the certificate | +**signatureAsn1X** | **String** | The ASN1 X component of certificate signature | +**signatureAsn1Y** | **String** | The ASN1 Y component of certificate signature | + + diff --git a/docs/ArduinoCredentialsv1.md b/docs/ArduinoCredentialsv1.md new file mode 100644 index 0000000..59fb82f --- /dev/null +++ b/docs/ArduinoCredentialsv1.md @@ -0,0 +1,12 @@ +# ArduinoIotClient.ArduinoCredentialsv1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**friendlyName** | **String** | Friendly name | +**required** | **Boolean** | Tell if the parameter is required or not | +**secretName** | **String** | The secret parameter name | +**sensitive** | **Boolean** | Tell if the field is sensitive | + + diff --git a/docs/ArduinoDashboardowner.md b/docs/ArduinoDashboardowner.md new file mode 100644 index 0000000..064c25f --- /dev/null +++ b/docs/ArduinoDashboardowner.md @@ -0,0 +1,10 @@ +# ArduinoIotClient.ArduinoDashboardowner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**userId** | **String** | The userID of the user who created the dashboard | +**username** | **String** | The username of the user who created the dashboard | [optional] + + diff --git a/docs/ArduinoDashboardshare.md b/docs/ArduinoDashboardshare.md new file mode 100644 index 0000000..656ec8d --- /dev/null +++ b/docs/ArduinoDashboardshare.md @@ -0,0 +1,10 @@ +# ArduinoIotClient.ArduinoDashboardshare + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**userId** | **String** | The userID of the user you want to share the dashboard with | +**username** | **String** | The username of the user you want to share the dashboard with | [optional] + + diff --git a/docs/ArduinoDashboardv2.md b/docs/ArduinoDashboardv2.md new file mode 100644 index 0000000..7955f51 --- /dev/null +++ b/docs/ArduinoDashboardv2.md @@ -0,0 +1,17 @@ +# ArduinoIotClient.ArduinoDashboardv2 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**coverImage** | **String** | The cover image of the dashboard | [optional] +**createdBy** | [**ArduinoDashboardowner**](ArduinoDashboardowner.md) | | [optional] +**id** | **String** | The friendly name of the dashboard | +**name** | **String** | The friendly name of the dashboard | +**organizationId** | **String** | Id of the organization the dashboard belongs to | [optional] +**sharedBy** | [**ArduinoDashboardshare**](ArduinoDashboardshare.md) | | [optional] +**sharedWith** | [**[ArduinoDashboardshare]**](ArduinoDashboardshare.md) | ArduinoDashboardshareCollection is the media type for an array of ArduinoDashboardshare (default view) | [optional] +**updatedAt** | **Date** | Last update date | +**widgets** | [**[ArduinoWidgetv2]**](ArduinoWidgetv2.md) | ArduinoWidgetv2Collection is the media type for an array of ArduinoWidgetv2 (default view) | [optional] + + diff --git a/docs/ArduinoDashboardv2template.md b/docs/ArduinoDashboardv2template.md new file mode 100644 index 0000000..e94834d --- /dev/null +++ b/docs/ArduinoDashboardv2template.md @@ -0,0 +1,12 @@ +# ArduinoIotClient.ArduinoDashboardv2template + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**coverImage** | **String** | The cover image of the dashboard | [optional] +**id** | **String** | The friendly ID of the dashboard | [optional] +**name** | **String** | The friendly name of the dashboard | +**widgets** | [**[ArduinoWidgetv2template]**](ArduinoWidgetv2template.md) | ArduinoWidgetv2templateCollection is the media type for an array of ArduinoWidgetv2template (default view) | [optional] + + diff --git a/docs/ArduinoDevicev2.md b/docs/ArduinoDevicev2.md new file mode 100644 index 0000000..6581feb --- /dev/null +++ b/docs/ArduinoDevicev2.md @@ -0,0 +1,68 @@ +# ArduinoIotClient.ArduinoDevicev2 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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] +**deviceStatus** | **String** | The connection status of the device | [optional] +**events** | [**[ArduinoDevicev2SimpleProperties]**](ArduinoDevicev2SimpleProperties.md) | ArduinoDevicev2SimplePropertiesCollection is the media type for an array of ArduinoDevicev2SimpleProperties (default view) | [optional] +**fqbn** | **String** | The fully qualified board name | [optional] +**href** | **String** | The api reference of this device | +**id** | **String** | The arn of the device | +**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] +**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] +**organizationId** | **String** | Id of the organization the device belongs to | [optional] +**otaAvailable** | **Boolean** | True if the device type is ready to receive OTA updated | [optional] +**otaCompatible** | **Boolean** | True if the device type is OTA compatible | [optional] +**requiredWifiFwVersion** | **String** | The required version of the NINA/WIFI101 firmware needed by IoT Cloud | [optional] +**serial** | **String** | The serial uuid of the device | +**tags** | **{String: Object}** | Tags belonging to the device | [optional] +**thing** | [**ArduinoThing**](ArduinoThing.md) | | [optional] +**type** | **String** | The type of the device | +**userId** | **String** | The id of the user | +**webhooks** | [**[ArduinoDevicev2Webhook]**](ArduinoDevicev2Webhook.md) | ArduinoDevicev2WebhookCollection is the media type for an array of ArduinoDevicev2Webhook (default view) | [optional] +**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: DeviceStatusEnum + + +* `ONLINE` (value: `"ONLINE"`) + +* `OFFLINE` (value: `"OFFLINE"`) + +* `UNKNOWN` (value: `"UNKNOWN"`) + + + + diff --git a/docs/ArduinoDevicev2Cert.md b/docs/ArduinoDevicev2Cert.md new file mode 100644 index 0000000..0ad7814 --- /dev/null +++ b/docs/ArduinoDevicev2Cert.md @@ -0,0 +1,16 @@ +# ArduinoIotClient.ArduinoDevicev2Cert + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ca** | **String** | The Certification Authority used to sign the certificate | [optional] +**compressed** | [**ArduinoCompressedv2**](ArduinoCompressedv2.md) | | +**der** | **String** | The certificate in DER format | +**deviceId** | **String** | The unique identifier of the device | +**enabled** | **Boolean** | Whether the certificate is enabled | [default to true] +**href** | **String** | The api reference of this cert | +**id** | **String** | The unique identifier of the key | +**pem** | **String** | The certificate in pem format | + + diff --git a/docs/ArduinoDevicev2EventProperties.md b/docs/ArduinoDevicev2EventProperties.md new file mode 100644 index 0000000..694cece --- /dev/null +++ b/docs/ArduinoDevicev2EventProperties.md @@ -0,0 +1,10 @@ +# ArduinoIotClient.ArduinoDevicev2EventProperties + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**events** | [**[ArduinoDevicev2SimpleProperties]**](ArduinoDevicev2SimpleProperties.md) | ArduinoDevicev2SimplePropertiesCollection is the media type for an array of ArduinoDevicev2SimpleProperties (default view) | +**id** | **String** | The device of the property | + + diff --git a/docs/ArduinoDevicev2Otaupload.md b/docs/ArduinoDevicev2Otaupload.md new file mode 100644 index 0000000..3ab541f --- /dev/null +++ b/docs/ArduinoDevicev2Otaupload.md @@ -0,0 +1,12 @@ +# ArduinoIotClient.ArduinoDevicev2Otaupload + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**fileSha** | **String** | SHA256 of the uploaded file | [optional] +**otaId** | **String** | OTA request id (only available from OTA version 2 and above) | [optional] +**otaVersion** | **Number** | OTA version | +**status** | **String** | OTA request status (only available from OTA version 2 and above) | [optional] + + diff --git a/docs/ArduinoDevicev2Pass.md b/docs/ArduinoDevicev2Pass.md new file mode 100644 index 0000000..d225ada --- /dev/null +++ b/docs/ArduinoDevicev2Pass.md @@ -0,0 +1,10 @@ +# ArduinoIotClient.ArduinoDevicev2Pass + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**set** | **Boolean** | Whether the password is set or not | +**suggestedPassword** | **String** | A random suggested password | [optional] + + diff --git a/docs/ArduinoDevicev2SimpleProperties.md b/docs/ArduinoDevicev2SimpleProperties.md new file mode 100644 index 0000000..80e6061 --- /dev/null +++ b/docs/ArduinoDevicev2SimpleProperties.md @@ -0,0 +1,11 @@ +# ArduinoIotClient.ArduinoDevicev2SimpleProperties + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | The name of the property | +**updatedAt** | **Date** | Update date of the property | +**value** | **Object** | Value of the property | + + diff --git a/docs/ArduinoDevicev2StatusEvent.md b/docs/ArduinoDevicev2StatusEvent.md new file mode 100644 index 0000000..23afe7f --- /dev/null +++ b/docs/ArduinoDevicev2StatusEvent.md @@ -0,0 +1,21 @@ +# ArduinoIotClient.ArduinoDevicev2StatusEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**updatedAt** | **Date** | Update timestamp of the status event | +**value** | **String** | The status event of the device | + + + +## Enum: ValueEnum + + +* `CONNECTED` (value: `"CONNECTED"`) + +* `DISCONNECTED` (value: `"DISCONNECTED"`) + + + + diff --git a/docs/ArduinoDevicev2StatusEvents.md b/docs/ArduinoDevicev2StatusEvents.md new file mode 100644 index 0000000..7e51b3a --- /dev/null +++ b/docs/ArduinoDevicev2StatusEvents.md @@ -0,0 +1,10 @@ +# ArduinoIotClient.ArduinoDevicev2StatusEvents + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**events** | [**[ArduinoDevicev2StatusEvent]**](ArduinoDevicev2StatusEvent.md) | ArduinoDevicev2StatusEventCollection is the media type for an array of ArduinoDevicev2StatusEvent (default view) | +**id** | **String** | The id of the device | + + diff --git a/docs/ArduinoDevicev2Webhook.md b/docs/ArduinoDevicev2Webhook.md new file mode 100644 index 0000000..e8e05a5 --- /dev/null +++ b/docs/ArduinoDevicev2Webhook.md @@ -0,0 +1,11 @@ +# ArduinoIotClient.ArduinoDevicev2Webhook + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**active** | **Boolean** | Whether the webhook is active | [optional] [default to true] +**id** | **String** | The uuid of the webhook | +**uri** | **String** | The uri of the webhook | + + diff --git a/docs/ArduinoDevicev2properties.md b/docs/ArduinoDevicev2properties.md new file mode 100644 index 0000000..a97121a --- /dev/null +++ b/docs/ArduinoDevicev2properties.md @@ -0,0 +1,12 @@ +# ArduinoIotClient.ArduinoDevicev2properties + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dataRetentionDays** | **Number** | How many days the data will be kept | +**deviceId** | **String** | The device of the property | +**properties** | [**[ArduinoProperty]**](ArduinoProperty.md) | ArduinoPropertyCollection is the media type for an array of ArduinoProperty (default view) | +**userId** | **String** | The user id of the owner | + + diff --git a/docs/ArduinoDevicev2propertyvalue.md b/docs/ArduinoDevicev2propertyvalue.md new file mode 100644 index 0000000..4d42edb --- /dev/null +++ b/docs/ArduinoDevicev2propertyvalue.md @@ -0,0 +1,10 @@ +# ArduinoIotClient.ArduinoDevicev2propertyvalue + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**createdAt** | **Date** | | [optional] +**value** | [**ArduinoDevicev2propertyvalueValue**](ArduinoDevicev2propertyvalueValue.md) | | [optional] + + diff --git a/docs/ArduinoDevicev2propertyvalueValue.md b/docs/ArduinoDevicev2propertyvalueValue.md new file mode 100644 index 0000000..173aed6 --- /dev/null +++ b/docs/ArduinoDevicev2propertyvalueValue.md @@ -0,0 +1,11 @@ +# ArduinoIotClient.ArduinoDevicev2propertyvalueValue + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**payload** | **String** | | [optional] +**seqno** | **Number** | | [optional] +**statistics** | [**ArduinoDevicev2propertyvalueValueStatistics**](ArduinoDevicev2propertyvalueValueStatistics.md) | | [optional] + + diff --git a/docs/ArduinoDevicev2propertyvalueValueStatistics.md b/docs/ArduinoDevicev2propertyvalueValueStatistics.md new file mode 100644 index 0000000..70c61f4 --- /dev/null +++ b/docs/ArduinoDevicev2propertyvalueValueStatistics.md @@ -0,0 +1,18 @@ +# ArduinoIotClient.ArduinoDevicev2propertyvalueValueStatistics + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**adr** | **Number** | | [optional] +**channel** | **Number** | | [optional] +**duplicate** | **Number** | | [optional] +**freq** | **Number** | | [optional] +**modBW** | **Number** | | [optional] +**rssi** | **Number** | | [optional] +**seqno** | **Number** | | [optional] +**sf** | **Number** | | [optional] +**snr** | **Number** | | [optional] +**time** | **Number** | | [optional] + + diff --git a/docs/ArduinoDevicev2propertyvalues.md b/docs/ArduinoDevicev2propertyvalues.md new file mode 100644 index 0000000..d7d87f7 --- /dev/null +++ b/docs/ArduinoDevicev2propertyvalues.md @@ -0,0 +1,12 @@ +# ArduinoIotClient.ArduinoDevicev2propertyvalues + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**lastEvaluatedKey** | [**ArduinoDevicev2propertyvaluesLastEvaluatedKey**](ArduinoDevicev2propertyvaluesLastEvaluatedKey.md) | | +**name** | **String** | | +**values** | [**[ArduinoDevicev2propertyvalue]**](ArduinoDevicev2propertyvalue.md) | ArduinoDevicev2propertyvalueCollection is the media type for an array of ArduinoDevicev2propertyvalue (default view) | + + diff --git a/docs/ArduinoDevicev2propertyvaluesLastEvaluatedKey.md b/docs/ArduinoDevicev2propertyvaluesLastEvaluatedKey.md new file mode 100644 index 0000000..37db872 --- /dev/null +++ b/docs/ArduinoDevicev2propertyvaluesLastEvaluatedKey.md @@ -0,0 +1,11 @@ +# ArduinoIotClient.ArduinoDevicev2propertyvaluesLastEvaluatedKey + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**createdAt** | **Date** | | [optional] +**id** | **String** | | [optional] +**name** | **String** | | [optional] + + diff --git a/docs/ArduinoDevicev2templatedevice.md b/docs/ArduinoDevicev2templatedevice.md new file mode 100644 index 0000000..500d074 --- /dev/null +++ b/docs/ArduinoDevicev2templatedevice.md @@ -0,0 +1,10 @@ +# ArduinoIotClient.ArduinoDevicev2templatedevice + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**fqbn** | **String** | The device fqbn | [optional] +**name** | **String** | The device type name | [optional] + + diff --git a/docs/ArduinoLinkedvariable.md b/docs/ArduinoLinkedvariable.md new file mode 100644 index 0000000..332852f --- /dev/null +++ b/docs/ArduinoLinkedvariable.md @@ -0,0 +1,18 @@ +# ArduinoIotClient.ArduinoLinkedvariable + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | The id of the linked variable | +**lastValue** | **Object** | Last value of the linked property | [optional] +**lastValueUpdatedAt** | **Date** | Update date of the last value | [optional] +**name** | **String** | The name of the variable | +**permission** | **String** | The permission of the linked variable | +**thingId** | **String** | The id of the related thing | +**thingName** | **String** | The name of the related thing | +**thingTimezone** | [**ArduinoTimezone**](ArduinoTimezone.md) | | [optional] +**type** | **String** | The type of the variable | +**variableName** | **String** | The name of the variable in the code | + + diff --git a/docs/ArduinoLoradevicev1.md b/docs/ArduinoLoradevicev1.md new file mode 100644 index 0000000..d504a4a --- /dev/null +++ b/docs/ArduinoLoradevicev1.md @@ -0,0 +1,12 @@ +# ArduinoIotClient.ArduinoLoradevicev1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**appEui** | **String** | The eui of the app | +**appKey** | **String** | The key of the device | +**deviceId** | **String** | The id of the device | +**eui** | **String** | The eui of the lora device | + + diff --git a/docs/ArduinoLorafreqplansv1.md b/docs/ArduinoLorafreqplansv1.md new file mode 100644 index 0000000..6967526 --- /dev/null +++ b/docs/ArduinoLorafreqplansv1.md @@ -0,0 +1,9 @@ +# ArduinoIotClient.ArduinoLorafreqplansv1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**frequencyPlans** | [**[ArduinoLorafreqplanv1]**](ArduinoLorafreqplanv1.md) | The list of frequency plans | [optional] + + diff --git a/docs/ArduinoLorafreqplanv1.md b/docs/ArduinoLorafreqplanv1.md new file mode 100644 index 0000000..f934979 --- /dev/null +++ b/docs/ArduinoLorafreqplanv1.md @@ -0,0 +1,11 @@ +# ArduinoIotClient.ArduinoLorafreqplanv1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**advanced** | **Boolean** | Frequency plan only for advanced users | +**id** | **String** | The ID of the frequency paln | +**name** | **String** | The name of the frequency plan | + + diff --git a/docs/ArduinoProperty.md b/docs/ArduinoProperty.md new file mode 100644 index 0000000..375110c --- /dev/null +++ b/docs/ArduinoProperty.md @@ -0,0 +1,29 @@ +# ArduinoIotClient.ArduinoProperty + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**createdAt** | **Date** | Creation date of the property | [optional] +**deletedAt** | **Date** | Delete date of the property | [optional] +**href** | **String** | The api reference of this property | +**id** | **String** | The id of the property | +**lastValue** | **Object** | Last value of this property | [optional] +**linkedToTrigger** | **Boolean** | Indicates if the property is involved in the activation of at least a trigger | [optional] +**maxValue** | **Number** | Maximum value of this property | [optional] +**minValue** | **Number** | Minimum value of this property | [optional] +**name** | **String** | The friendly name of the property | +**permission** | **String** | The permission of the property | +**persist** | **Boolean** | If true, data will persist into a timeseries database | [optional] +**syncId** | **String** | The id of the sync pool | [optional] +**tag** | **Number** | The integer id of the property | [optional] +**thingId** | **String** | The id of the thing | +**thingName** | **String** | The name of the associated thing | [optional] +**type** | **String** | The type of the property | +**updateParameter** | **Number** | The update frequency in seconds, or the amount of the property has to change in order to trigger an update | [optional] +**updateStrategy** | **String** | The update strategy for the property value | +**updatedAt** | **Date** | Update date of the property | [optional] +**valueUpdatedAt** | **Date** | Last update timestamp of this property | [optional] +**variableName** | **String** | The sketch variable name of the property | [optional] + + diff --git a/docs/ArduinoPropertytype.md b/docs/ArduinoPropertytype.md new file mode 100644 index 0000000..c4a877e --- /dev/null +++ b/docs/ArduinoPropertytype.md @@ -0,0 +1,18 @@ +# ArduinoIotClient.ArduinoPropertytype + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**assistants** | **[String]** | The voice assistants available for this type | [optional] +**declaration** | **String** | The c++ type we are using for this variable type | +**deprecated** | **Boolean** | Tell if this type is deprecated | +**example** | **String** | Example of use | [optional] +**name** | **String** | The friendly name of the property type | +**rw** | **Boolean** | Tell if the type allow a R/W permission | +**supersededBy** | **String** | The type of property to use if it's deprecated | [optional] +**tags** | **[String]** | The tags related to the type | [optional] +**type** | **String** | The api reference of this type | +**units** | **[String]** | The measure units available for this type | [optional] + + diff --git a/docs/ArduinoSeriesBatch.md b/docs/ArduinoSeriesBatch.md new file mode 100644 index 0000000..1776dbc --- /dev/null +++ b/docs/ArduinoSeriesBatch.md @@ -0,0 +1,10 @@ +# ArduinoIotClient.ArduinoSeriesBatch + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**respVersion** | **Number** | Response version | +**responses** | [**[ArduinoSeriesResponse]**](ArduinoSeriesResponse.md) | Responses of the request | + + diff --git a/docs/ArduinoSeriesBatchSampled.md b/docs/ArduinoSeriesBatchSampled.md new file mode 100644 index 0000000..91d4bf0 --- /dev/null +++ b/docs/ArduinoSeriesBatchSampled.md @@ -0,0 +1,10 @@ +# ArduinoIotClient.ArduinoSeriesBatchSampled + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**respVersion** | **Number** | Response version | +**responses** | [**[ArduinoSeriesSampledResponse]**](ArduinoSeriesSampledResponse.md) | Responses of the request | + + diff --git a/docs/ArduinoSeriesRawBatch.md b/docs/ArduinoSeriesRawBatch.md new file mode 100644 index 0000000..3c8f43d --- /dev/null +++ b/docs/ArduinoSeriesRawBatch.md @@ -0,0 +1,10 @@ +# ArduinoIotClient.ArduinoSeriesRawBatch + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**respVersion** | **Number** | Response version | +**responses** | [**[ArduinoSeriesRawResponse]**](ArduinoSeriesRawResponse.md) | Responses of the request | + + diff --git a/docs/ArduinoSeriesRawBatchLastvalue.md b/docs/ArduinoSeriesRawBatchLastvalue.md new file mode 100644 index 0000000..a5ffe1b --- /dev/null +++ b/docs/ArduinoSeriesRawBatchLastvalue.md @@ -0,0 +1,10 @@ +# ArduinoIotClient.ArduinoSeriesRawBatchLastvalue + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**responses** | [**[ArduinoSeriesRawLastValueResponse]**](ArduinoSeriesRawLastValueResponse.md) | Responses of the request | +**status** | **String** | Status of the response | + + diff --git a/docs/ArduinoSeriesRawLastValueResponse.md b/docs/ArduinoSeriesRawLastValueResponse.md new file mode 100644 index 0000000..d88e9ed --- /dev/null +++ b/docs/ArduinoSeriesRawLastValueResponse.md @@ -0,0 +1,13 @@ +# ArduinoIotClient.ArduinoSeriesRawLastValueResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**countValues** | **Number** | Total number of values in the array 'values' | +**propertyId** | **String** | Property id | +**thingId** | **String** | Thing id | +**times** | **[Date]** | Timestamp in RFC3339 | +**values** | **[Object]** | Values can be in Float, String, Bool, Object | + + diff --git a/docs/ArduinoSeriesRawResponse.md b/docs/ArduinoSeriesRawResponse.md new file mode 100644 index 0000000..11e8954 --- /dev/null +++ b/docs/ArduinoSeriesRawResponse.md @@ -0,0 +1,35 @@ +# ArduinoIotClient.ArduinoSeriesRawResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**countValues** | **Number** | Total number of values in the array 'values' | +**fromDate** | **Date** | From date | +**message** | **String** | If the response is different than 'ok' | [optional] [default to ''] +**propertyId** | **String** | Property id | [optional] +**propertyName** | **String** | Property name | [optional] +**propertyType** | **String** | Property type | [optional] +**query** | **String** | Query of for the data | +**respVersion** | **Number** | Response version | +**series** | [**BatchQueryRawResponseSeriesMediaV1**](BatchQueryRawResponseSeriesMediaV1.md) | | +**seriesLimit** | **Number** | Max of values | [optional] +**sort** | **String** | Sorting | +**status** | **String** | Status of the response | +**thingId** | **String** | Thing id | [optional] +**times** | **[Date]** | Timestamp in RFC3339 | +**toDate** | **Date** | To date | +**values** | **[Object]** | Values can be in Float, String, Bool, Object | + + + +## Enum: SortEnum + + +* `ASC` (value: `"ASC"`) + +* `DESC` (value: `"DESC"`) + + + + diff --git a/docs/ArduinoSeriesResponse.md b/docs/ArduinoSeriesResponse.md new file mode 100644 index 0000000..63a07ab --- /dev/null +++ b/docs/ArduinoSeriesResponse.md @@ -0,0 +1,59 @@ +# ArduinoIotClient.ArduinoSeriesResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**aggregation** | **String** | Aggregation statistic function. For numeric values, AVG statistic is used by default. PCT_X compute the Xth approximate percentile (e.g. PCT_95 is the 95th approximate percentile). For boolean, BOOL_OR statistic is used as default. | [optional] +**countValues** | **Number** | Total number of values in the array 'values' | +**fromDate** | **Date** | From date | +**interval** | **Number** | Resolution in seconds | +**message** | **String** | If the response is different than 'ok' | [optional] [default to ''] +**propertyId** | **String** | Property id | [optional] +**propertyName** | **String** | Property name | [optional] +**propertyType** | **String** | Property type | [optional] +**query** | **String** | Query of for the data | +**respVersion** | **Number** | Response version | +**seriesLimit** | **Number** | Maximum number of values returned after data aggregation, if any | [optional] +**status** | **String** | Status of the response | +**thingId** | **String** | Thing id | [optional] +**times** | **[Date]** | Timestamp in RFC3339 | +**toDate** | **Date** | To date | +**values** | **[Number]** | Values in Float | + + + +## Enum: AggregationEnum + + +* `AVG` (value: `"AVG"`) + +* `MIN` (value: `"MIN"`) + +* `MAX` (value: `"MAX"`) + +* `SUM` (value: `"SUM"`) + +* `COUNT` (value: `"COUNT"`) + +* `PCT_99` (value: `"PCT_99"`) + +* `PCT_95` (value: `"PCT_95"`) + +* `PCT_90` (value: `"PCT_90"`) + +* `PCT_75` (value: `"PCT_75"`) + +* `PCT_50` (value: `"PCT_50"`) + +* `PCT_15` (value: `"PCT_15"`) + +* `PCT_5` (value: `"PCT_5"`) + +* `BOOL_OR` (value: `"BOOL_OR"`) + +* `BOOL_AND` (value: `"BOOL_AND"`) + + + + diff --git a/docs/ArduinoSeriesSampledResponse.md b/docs/ArduinoSeriesSampledResponse.md new file mode 100644 index 0000000..c0f256a --- /dev/null +++ b/docs/ArduinoSeriesSampledResponse.md @@ -0,0 +1,23 @@ +# ArduinoIotClient.ArduinoSeriesSampledResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**countValues** | **Number** | Total number of values in the array 'values' | +**fromDate** | **Date** | From date | +**interval** | **Number** | Resolution in seconds | +**message** | **String** | If the response is different than 'ok' | [optional] [default to ''] +**propertyId** | **String** | Property id | [optional] +**propertyName** | **String** | Property name | [optional] +**propertyType** | **String** | Property type | [optional] +**query** | **String** | Query of for the data | +**respVersion** | **Number** | Response version | +**seriesLimit** | **Number** | Maximum number of values returned after data aggregation, if any | [optional] +**status** | **String** | Status of the response | +**thingId** | **String** | Thing id | [optional] +**times** | **[Date]** | Timestamp in RFC3339 | +**toDate** | **Date** | To date | +**values** | **[Object]** | Values in Float | + + diff --git a/docs/ArduinoTags.md b/docs/ArduinoTags.md new file mode 100644 index 0000000..6fa21e7 --- /dev/null +++ b/docs/ArduinoTags.md @@ -0,0 +1,9 @@ +# ArduinoIotClient.ArduinoTags + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tags** | [**[Tag]**](Tag.md) | | + + diff --git a/docs/ArduinoTemplate.md b/docs/ArduinoTemplate.md new file mode 100644 index 0000000..ab07d43 --- /dev/null +++ b/docs/ArduinoTemplate.md @@ -0,0 +1,11 @@ +# ArduinoIotClient.ArduinoTemplate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dashboards** | **[String]** | | [optional] +**things** | [**[ArduinoThingresult]**](ArduinoThingresult.md) | ArduinoThingresultCollection is the media type for an array of ArduinoThingresult (default view) | +**triggers** | **[String]** | | [optional] + + diff --git a/docs/ArduinoTemplateproperty.md b/docs/ArduinoTemplateproperty.md new file mode 100644 index 0000000..0af3c6a --- /dev/null +++ b/docs/ArduinoTemplateproperty.md @@ -0,0 +1,15 @@ +# ArduinoIotClient.ArduinoTemplateproperty + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | The friendly id of the property | [optional] +**name** | **String** | The friendly name of the property | +**permission** | **String** | The permission of the property | +**type** | **String** | The type of the property | +**updateParameter** | **Number** | The update frequency in seconds, or the amount of the property has to change in order to trigger an update | [optional] +**updateStrategy** | **String** | The update strategy for the property value | +**variableName** | **String** | The sketch variable name of the property | [optional] + + diff --git a/docs/ArduinoTemplatevariable.md b/docs/ArduinoTemplatevariable.md new file mode 100644 index 0000000..1e62866 --- /dev/null +++ b/docs/ArduinoTemplatevariable.md @@ -0,0 +1,14 @@ +# ArduinoIotClient.ArduinoTemplatevariable + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | The name of the variable | +**permission** | **String** | The permission of the linked variable | +**thingId** | **String** | The name of the related thing | +**thingTimezone** | [**ArduinoTimezone**](ArduinoTimezone.md) | | [optional] +**type** | **String** | The type of the variable | +**variableId** | **String** | The name of the variable in the code | + + diff --git a/docs/ArduinoThing.md b/docs/ArduinoThing.md new file mode 100644 index 0000000..38d1333 --- /dev/null +++ b/docs/ArduinoThing.md @@ -0,0 +1,41 @@ +# ArduinoIotClient.ArduinoThing + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**assistant** | **String** | The kind of voice assistant the thing is connected to, it can be ALEXA | GOOGLE | NONE | [optional] +**createdAt** | **Date** | Creation date of the thing | [optional] +**deletedAt** | **Date** | Delete date of the thing | [optional] +**deviceFqbn** | **String** | The fqbn of the attached device, if any | [optional] +**deviceId** | **String** | The id of the device | [optional] +**deviceName** | **String** | The name of the attached device, if any | [optional] +**deviceType** | **String** | The type of the attached device, if any | [optional] +**href** | **String** | The api reference of this thing | +**id** | **String** | The id of the thing | +**name** | **String** | The friendly name of the thing | +**organizationId** | **String** | Id of the organization the thing belongs to | [optional] +**properties** | [**[ArduinoProperty]**](ArduinoProperty.md) | ArduinoPropertyCollection is the media type for an array of ArduinoProperty (default view) | [optional] +**propertiesCount** | **Number** | The number of properties of the thing | [optional] +**sketchId** | **String** | The id of the attached sketch | [optional] +**tags** | **{String: Object}** | Tags of the thing | [optional] +**timezone** | **String** | Time zone of the thing | +**updatedAt** | **Date** | Update date of the thing | [optional] +**userId** | **String** | The user id of the owner | +**webhookActive** | **Boolean** | Webhook uri | [optional] +**webhookUri** | **String** | Webhook uri | [optional] + + + +## Enum: AssistantEnum + + +* `ALEXA` (value: `"ALEXA"`) + +* `GOOGLE` (value: `"GOOGLE"`) + +* `NONE` (value: `"NONE"`) + + + + diff --git a/docs/ArduinoThingresult.md b/docs/ArduinoThingresult.md new file mode 100644 index 0000000..169ce4c --- /dev/null +++ b/docs/ArduinoThingresult.md @@ -0,0 +1,11 @@ +# ArduinoIotClient.ArduinoThingresult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**deviceId** | **String** | UUID of the attached device | [optional] +**id** | **String** | UUID of the created Thing | +**sketchId** | **String** | UUID of the created Sketch | + + diff --git a/docs/ArduinoThingtemplate.md b/docs/ArduinoThingtemplate.md new file mode 100644 index 0000000..aa45433 --- /dev/null +++ b/docs/ArduinoThingtemplate.md @@ -0,0 +1,17 @@ +# ArduinoIotClient.ArduinoThingtemplate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**deviceMetadata** | [**ArduinoDevicev2templatedevice**](ArduinoDevicev2templatedevice.md) | | [optional] +**id** | **String** | The friendly id of the thing | [optional] +**name** | **String** | The friendly name of the thing | +**organizationId** | **String** | Id of the organization the thing belongs to | [optional] +**sketchTemplate** | **String** | The ID of the template's sketch | [optional] +**tags** | [**[Tag]**](Tag.md) | Tags of the thing | [optional] +**timezone** | **String** | Time zone of the thing | +**variables** | [**[ArduinoTemplateproperty]**](ArduinoTemplateproperty.md) | ArduinoTemplatepropertyCollection is the media type for an array of ArduinoTemplateproperty (default view) | [optional] +**webhookUri** | **String** | Webhook uri | [optional] + + diff --git a/docs/ArduinoTimeseriesmedia.md b/docs/ArduinoTimeseriesmedia.md new file mode 100644 index 0000000..2de29df --- /dev/null +++ b/docs/ArduinoTimeseriesmedia.md @@ -0,0 +1,9 @@ +# ArduinoIotClient.ArduinoTimeseriesmedia + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[TimeseriesDataPoint]**](TimeseriesDataPoint.md) | | + + diff --git a/docs/ArduinoTimezone.md b/docs/ArduinoTimezone.md new file mode 100644 index 0000000..e2f7b03 --- /dev/null +++ b/docs/ArduinoTimezone.md @@ -0,0 +1,11 @@ +# ArduinoIotClient.ArduinoTimezone + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | Name of the time zone. | +**offset** | **Number** | Current UTC DST offset in seconds. | +**until** | **Date** | Date until the offset is valid. | + + diff --git a/docs/ArduinoVariableslinks.md b/docs/ArduinoVariableslinks.md new file mode 100644 index 0000000..27692b2 --- /dev/null +++ b/docs/ArduinoVariableslinks.md @@ -0,0 +1,9 @@ +# ArduinoIotClient.ArduinoVariableslinks + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**variables** | **[String]** | The ids of the linked variables | + + diff --git a/docs/ArduinoWidgetv2.md b/docs/ArduinoWidgetv2.md new file mode 100644 index 0000000..6103eb0 --- /dev/null +++ b/docs/ArduinoWidgetv2.md @@ -0,0 +1,24 @@ +# ArduinoIotClient.ArduinoWidgetv2 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hasPermissionIncompatibility** | **Boolean** | True if the linked variables permissions are incompatible with the widget | [optional] +**hasTypeIncompatibility** | **Boolean** | True if the linked variables types are incompatible with the widget | [optional] +**hasUnlinkedVariable** | **Boolean** | If it's true the widget is linked to a soft-deleted variable | [optional] +**height** | **Number** | Widget current height for desktop | +**heightMobile** | **Number** | Widget current height for mobile | [optional] +**id** | **String** | The UUID of the widget, set by client | +**name** | **String** | The name of the widget | [optional] +**options** | **{String: Object}** | Widget options | +**type** | **String** | The type of the widget | +**variables** | [**[ArduinoLinkedvariable]**](ArduinoLinkedvariable.md) | ArduinoLinkedvariableCollection is the media type for an array of ArduinoLinkedvariable (default view) | [optional] +**width** | **Number** | Widget current width for desktop | +**widthMobile** | **Number** | Widget current width for mobile | [optional] +**x** | **Number** | Widget x position for desktop | +**xMobile** | **Number** | Widget x position for mobile | [optional] +**y** | **Number** | Widget y position for desktop | +**yMobile** | **Number** | Widget y position for mobile | [optional] + + diff --git a/docs/ArduinoWidgetv2template.md b/docs/ArduinoWidgetv2template.md new file mode 100644 index 0000000..4cd8ac5 --- /dev/null +++ b/docs/ArduinoWidgetv2template.md @@ -0,0 +1,20 @@ +# ArduinoIotClient.ArduinoWidgetv2template + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**height** | **Number** | Widget current height for desktop | +**heightMobile** | **Number** | Widget current height for mobile | [optional] +**name** | **String** | The name of the widget | [optional] +**options** | **{String: Object}** | Widget options | +**type** | **String** | The type of the widget | +**variables** | [**[ArduinoTemplatevariable]**](ArduinoTemplatevariable.md) | ArduinoTemplatevariableCollection is the media type for an array of ArduinoTemplatevariable (default view) | [optional] +**width** | **Number** | Widget current width for desktop | +**widthMobile** | **Number** | Widget current width for mobile | [optional] +**x** | **Number** | Widget x position for desktop | +**xMobile** | **Number** | Widget x position for mobile | [optional] +**y** | **Number** | Widget y position for desktop | +**yMobile** | **Number** | Widget y position for mobile | [optional] + + diff --git a/docs/BatchLastValueRequestsMediaV1.md b/docs/BatchLastValueRequestsMediaV1.md new file mode 100644 index 0000000..822e121 --- /dev/null +++ b/docs/BatchLastValueRequestsMediaV1.md @@ -0,0 +1,9 @@ +# ArduinoIotClient.BatchLastValueRequestsMediaV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**requests** | [**[BatchQueryRawLastValueRequestMediaV1]**](BatchQueryRawLastValueRequestMediaV1.md) | Requests | + + diff --git a/docs/BatchQueryRawLastValueRequestMediaV1.md b/docs/BatchQueryRawLastValueRequestMediaV1.md new file mode 100644 index 0000000..45a4b65 --- /dev/null +++ b/docs/BatchQueryRawLastValueRequestMediaV1.md @@ -0,0 +1,10 @@ +# ArduinoIotClient.BatchQueryRawLastValueRequestMediaV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**propertyId** | **String** | Property id | +**thingId** | **String** | Thing id | + + diff --git a/docs/BatchQueryRawRequestMediaV1.md b/docs/BatchQueryRawRequestMediaV1.md new file mode 100644 index 0000000..04b7639 --- /dev/null +++ b/docs/BatchQueryRawRequestMediaV1.md @@ -0,0 +1,24 @@ +# ArduinoIotClient.BatchQueryRawRequestMediaV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**from** | **Date** | From timestamp | [optional] +**q** | **String** | Data selection query (e.g. property.2a99729d-2556-4220-a139-023348a1e6b5 or thing.95717675-4786-4ffc-afcc-799777755391) | +**seriesLimit** | **Number** | Maximum number of values returned, if any (default/limit: 1000, 10000 in case of thing query) | [optional] +**sort** | **String** | Sorting | [optional] [default to 'DESC'] +**to** | **Date** | To timestamp | [optional] + + + +## Enum: SortEnum + + +* `ASC` (value: `"ASC"`) + +* `DESC` (value: `"DESC"`) + + + + diff --git a/docs/BatchQueryRawRequestsMediaV1.md b/docs/BatchQueryRawRequestsMediaV1.md new file mode 100644 index 0000000..e366f76 --- /dev/null +++ b/docs/BatchQueryRawRequestsMediaV1.md @@ -0,0 +1,10 @@ +# ArduinoIotClient.BatchQueryRawRequestsMediaV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**requests** | [**[BatchQueryRawRequestMediaV1]**](BatchQueryRawRequestMediaV1.md) | Requests | +**respVersion** | **Number** | Response version | + + diff --git a/docs/BatchQueryRawResponseSeriesMediaV1.md b/docs/BatchQueryRawResponseSeriesMediaV1.md new file mode 100644 index 0000000..5de08fd --- /dev/null +++ b/docs/BatchQueryRawResponseSeriesMediaV1.md @@ -0,0 +1,9 @@ +# ArduinoIotClient.BatchQueryRawResponseSeriesMediaV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metric** | **String** | Metric name | + + diff --git a/docs/BatchQueryRequestMediaV1.md b/docs/BatchQueryRequestMediaV1.md new file mode 100644 index 0000000..0b74d1c --- /dev/null +++ b/docs/BatchQueryRequestMediaV1.md @@ -0,0 +1,49 @@ +# ArduinoIotClient.BatchQueryRequestMediaV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**aggregation** | **String** | Aggregation statistic function. For numeric values, AVG statistic is used by default. PCT_X compute the Xth approximate percentile (e.g. PCT_95 is the 95th approximate percentile). For boolean, BOOL_OR statistic is used as default. | [optional] +**from** | **Date** | From timestamp | +**interval** | **Number** | Resolution in seconds (max allowed: 86400) | [optional] +**q** | **String** | Data selection query (e.g. property.2a99729d-2556-4220-a139-023348a1e6b5 or thing.95717675-4786-4ffc-afcc-799777755391) | +**seriesLimit** | **Number** | Maximum number of values returned after data aggregation, if any (default: 300, limit: 1000 - 10000 in case of thing query) | [optional] +**to** | **Date** | To timestamp | + + + +## Enum: AggregationEnum + + +* `AVG` (value: `"AVG"`) + +* `MIN` (value: `"MIN"`) + +* `MAX` (value: `"MAX"`) + +* `SUM` (value: `"SUM"`) + +* `COUNT` (value: `"COUNT"`) + +* `PCT_99` (value: `"PCT_99"`) + +* `PCT_95` (value: `"PCT_95"`) + +* `PCT_90` (value: `"PCT_90"`) + +* `PCT_75` (value: `"PCT_75"`) + +* `PCT_50` (value: `"PCT_50"`) + +* `PCT_15` (value: `"PCT_15"`) + +* `PCT_5` (value: `"PCT_5"`) + +* `BOOL_OR` (value: `"BOOL_OR"`) + +* `BOOL_AND` (value: `"BOOL_AND"`) + + + + diff --git a/docs/BatchQueryRequestsMediaV1.md b/docs/BatchQueryRequestsMediaV1.md new file mode 100644 index 0000000..1d08054 --- /dev/null +++ b/docs/BatchQueryRequestsMediaV1.md @@ -0,0 +1,10 @@ +# ArduinoIotClient.BatchQueryRequestsMediaV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**requests** | [**[BatchQueryRequestMediaV1]**](BatchQueryRequestMediaV1.md) | Requests | +**respVersion** | **Number** | Response version | + + diff --git a/docs/BatchQuerySampledRequestMediaV1.md b/docs/BatchQuerySampledRequestMediaV1.md new file mode 100644 index 0000000..1c3dcb6 --- /dev/null +++ b/docs/BatchQuerySampledRequestMediaV1.md @@ -0,0 +1,13 @@ +# ArduinoIotClient.BatchQuerySampledRequestMediaV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**from** | **Date** | From timestamp (default: now UTC - 24h) | [optional] +**interval** | **Number** | Resolution in seconds (allowed min:60, max:86400) | [optional] [default to 300] +**q** | **String** | Data selection query (e.g. property.2a99729d-2556-4220-a139-023348a1e6b5) | +**seriesLimit** | **Number** | Maximum number of values returned after data aggregation, if any (default: 300, limit: 1000) | [optional] +**to** | **Date** | To timestamp (default: now UTC) | [optional] + + diff --git a/docs/BatchQuerySampledRequestsMediaV1.md b/docs/BatchQuerySampledRequestsMediaV1.md new file mode 100644 index 0000000..65ee95d --- /dev/null +++ b/docs/BatchQuerySampledRequestsMediaV1.md @@ -0,0 +1,10 @@ +# ArduinoIotClient.BatchQuerySampledRequestsMediaV1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**requests** | [**[BatchQuerySampledRequestMediaV1]**](BatchQuerySampledRequestMediaV1.md) | Requests | +**respVersion** | **Number** | Response version | + + diff --git a/docs/CheckDevicesV2PassPayload.md b/docs/CheckDevicesV2PassPayload.md new file mode 100644 index 0000000..802f36b --- /dev/null +++ b/docs/CheckDevicesV2PassPayload.md @@ -0,0 +1,9 @@ +# ArduinoIotClient.CheckDevicesV2PassPayload + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**password** | **String** | The password for the device | + + diff --git a/docs/Clone.md b/docs/Clone.md new file mode 100644 index 0000000..7e87e91 --- /dev/null +++ b/docs/Clone.md @@ -0,0 +1,9 @@ +# ArduinoIotClient.Clone + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**overrides** | [**[Override]**](Override.md) | The overrides to apply to the cloned dashboard. An override is a tuple of ids: the id of the thing to override and the id of the new thing to link | [optional] + + diff --git a/docs/CreateDevicesV2CertsPayload.md b/docs/CreateDevicesV2CertsPayload.md new file mode 100644 index 0000000..b926935 --- /dev/null +++ b/docs/CreateDevicesV2CertsPayload.md @@ -0,0 +1,11 @@ +# ArduinoIotClient.CreateDevicesV2CertsPayload + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ca** | **String** | The Certification Authority you want to use | [optional] +**csr** | **String** | The certificate request in pem format | +**enabled** | **Boolean** | Whether the certificate is enabled | + + diff --git a/docs/CreateDevicesV2Payload.md b/docs/CreateDevicesV2Payload.md new file mode 100644 index 0000000..768a762 --- /dev/null +++ b/docs/CreateDevicesV2Payload.md @@ -0,0 +1,79 @@ +# ArduinoIotClient.CreateDevicesV2Payload + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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 | +**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] + + + +## 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/CreateLoraDevicesV1Payload.md b/docs/CreateLoraDevicesV1Payload.md new file mode 100644 index 0000000..290f776 --- /dev/null +++ b/docs/CreateLoraDevicesV1Payload.md @@ -0,0 +1,59 @@ +# ArduinoIotClient.CreateLoraDevicesV1Payload + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**app** | **String** | The app name | +**appEui** | **String** | The app eui of the lora device | [optional] +**appKey** | **String** | The app key of the lora device | [optional] +**eui** | **String** | The eui of the lora device | +**frequencyPlan** | **String** | The frequency plan required by your country | +**name** | **String** | A common name for the device | +**serial** | **String** | The optional serial number | [optional] +**type** | **String** | The type of device | +**userId** | **String** | The id of the user. Can be the special string 'me' | + + + +## Enum: FrequencyPlanEnum + + +* `EU_863_870_TTN` (value: `"EU_863_870_TTN"`) + +* `US_902_928_FSB_2` (value: `"US_902_928_FSB_2"`) + +* `EU_433` (value: `"EU_433"`) + +* `AU_915_928_FSB_2` (value: `"AU_915_928_FSB_2"`) + +* `CN_470_510_FSB_11` (value: `"CN_470_510_FSB_11"`) + +* `AS_920_923` (value: `"AS_920_923"`) + +* `AS_920_923_TTN_AU` (value: `"AS_920_923_TTN_AU"`) + +* `AS_923_925` (value: `"AS_923_925"`) + +* `AS_923_925_TTN_AU` (value: `"AS_923_925_TTN_AU"`) + +* `KR_920_923_TTN` (value: `"KR_920_923_TTN"`) + +* `IN_865_867` (value: `"IN_865_867"`) + + + + + +## Enum: TypeEnum + + +* `lora-device` (value: `"lora-device"`) + +* `mkrwan1300` (value: `"mkrwan1300"`) + +* `mkrwan1310` (value: `"mkrwan1310"`) + + + + diff --git a/docs/DashboardsV2Api.md b/docs/DashboardsV2Api.md new file mode 100644 index 0000000..1221d2b --- /dev/null +++ b/docs/DashboardsV2Api.md @@ -0,0 +1,660 @@ +# ArduinoIotClient.DashboardsV2Api + +All URIs are relative to *https://api2.arduino.cc/iot* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**dashboardsV2Clone**](DashboardsV2Api.md#dashboardsV2Clone) | **PUT** /v2/dashboards/{id}/clone | clone dashboards_v2 +[**dashboardsV2Create**](DashboardsV2Api.md#dashboardsV2Create) | **POST** /v2/dashboards | create dashboards_v2 +[**dashboardsV2Delete**](DashboardsV2Api.md#dashboardsV2Delete) | **DELETE** /v2/dashboards/{id} | delete dashboards_v2 +[**dashboardsV2DeleteShare**](DashboardsV2Api.md#dashboardsV2DeleteShare) | **DELETE** /v2/dashboards/{id}/shares/{user_id} | deleteShare dashboards_v2 +[**dashboardsV2Link**](DashboardsV2Api.md#dashboardsV2Link) | **PUT** /v2/dashboards/{id}/widgets/{widgetId}/variables | link dashboards_v2 +[**dashboardsV2List**](DashboardsV2Api.md#dashboardsV2List) | **GET** /v2/dashboards | list dashboards_v2 +[**dashboardsV2ListShares**](DashboardsV2Api.md#dashboardsV2ListShares) | **GET** /v2/dashboards/{id}/shares | listShares dashboards_v2 +[**dashboardsV2RequestAccess**](DashboardsV2Api.md#dashboardsV2RequestAccess) | **PUT** /v2/dashboards/{id}/share_request | requestAccess dashboards_v2 +[**dashboardsV2Share**](DashboardsV2Api.md#dashboardsV2Share) | **PUT** /v2/dashboards/{id}/shares | share dashboards_v2 +[**dashboardsV2Show**](DashboardsV2Api.md#dashboardsV2Show) | **GET** /v2/dashboards/{id} | show dashboards_v2 +[**dashboardsV2Template**](DashboardsV2Api.md#dashboardsV2Template) | **GET** /v2/dashboards/{id}/template | template dashboards_v2 +[**dashboardsV2Update**](DashboardsV2Api.md#dashboardsV2Update) | **PUT** /v2/dashboards/{id} | update dashboards_v2 + + + +## dashboardsV2Clone + +> ArduinoDashboardv2 dashboardsV2Clone(id, clone, opts) + +clone dashboards_v2 + +Clone an existing dashboard + +### 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.DashboardsV2Api(); +let id = "id_example"; // String | The id of the dashboard +let clone = new ArduinoIotClient.Clone(); // Clone | +let opts = { + 'xOrganization': "xOrganization_example" // String | +}; +apiInstance.dashboardsV2Clone(id, clone, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| The id of the dashboard | + **clone** | [**Clone**](Clone.md)| | + **xOrganization** | **String**| | [optional] + +### Return type + +[**ArduinoDashboardv2**](ArduinoDashboardv2.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded +- **Accept**: application/vnd.arduino.dashboardv2+json, application/vnd.goa.error+json + + +## dashboardsV2Create + +> ArduinoDashboardv2 dashboardsV2Create(dashboardv2, opts) + +create dashboards_v2 + +Create a new dashboard + +### 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.DashboardsV2Api(); +let dashboardv2 = new ArduinoIotClient.Dashboardv2(); // Dashboardv2 | DashboardV2Payload describes a dashboard +let opts = { + 'xOrganization': "xOrganization_example" // String | +}; +apiInstance.dashboardsV2Create(dashboardv2, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dashboardv2** | [**Dashboardv2**](Dashboardv2.md)| DashboardV2Payload describes a dashboard | + **xOrganization** | **String**| | [optional] + +### Return type + +[**ArduinoDashboardv2**](ArduinoDashboardv2.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded +- **Accept**: application/vnd.arduino.dashboardv2+json, application/vnd.goa.error+json + + +## dashboardsV2Delete + +> dashboardsV2Delete(id, opts) + +delete dashboards_v2 + +Delete a dashboard + +### 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.DashboardsV2Api(); +let id = "id_example"; // String | The id of the dashboard +let opts = { + 'xOrganization': "xOrganization_example" // String | +}; +apiInstance.dashboardsV2Delete(id, opts).then(() => { + console.log('API called successfully.'); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| The id of the dashboard | + **xOrganization** | **String**| | [optional] + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.goa.error+json, text/plain + + +## dashboardsV2DeleteShare + +> dashboardsV2DeleteShare(id, userId, opts) + +deleteShare dashboards_v2 + +Delete a user the dashboard has been shared with + +### 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.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 | +}; +apiInstance.dashboardsV2DeleteShare(id, userId, opts).then(() => { + console.log('API called successfully.'); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| The id of the dashboard | + **userId** | **String**| The id of the user | + **xOrganization** | **String**| | [optional] + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.goa.error+json, text/plain + + +## dashboardsV2Link + +> ArduinoVariableslinks dashboardsV2Link(id, widgetId, widgetlink, opts) + +link dashboards_v2 + +Link or detach widget variables + +### 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.DashboardsV2Api(); +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 | +}; +apiInstance.dashboardsV2Link(id, widgetId, widgetlink, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| The id of the dashboard | + **widgetId** | **String**| The id of the widget | + **widgetlink** | [**Widgetlink**](Widgetlink.md)| | + **xOrganization** | **String**| | [optional] + +### Return type + +[**ArduinoVariableslinks**](ArduinoVariableslinks.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded +- **Accept**: application/vnd.arduino.variableslinks+json, application/vnd.goa.error+json + + +## dashboardsV2List + +> [ArduinoDashboardv2] dashboardsV2List(opts) + +list dashboards_v2 + +Returns the list of dashboards + +### 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.DashboardsV2Api(); +let opts = { + '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); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| The name of the dashboard | [optional] + **userId** | **String**| The user_id of the dashboard's owner | [optional] + **xOrganization** | **String**| | [optional] + +### Return type + +[**[ArduinoDashboardv2]**](ArduinoDashboardv2.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.arduino.dashboardv2+json; type=collection, application/vnd.goa.error+json + + +## dashboardsV2ListShares + +> [ArduinoDashboardshare] dashboardsV2ListShares(id, opts) + +listShares dashboards_v2 + +List of users the dashboard has been shared with + +### 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.DashboardsV2Api(); +let id = "id_example"; // String | The id of the dashboard +let opts = { + 'xOrganization': "xOrganization_example" // String | +}; +apiInstance.dashboardsV2ListShares(id, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| The id of the dashboard | + **xOrganization** | **String**| | [optional] + +### Return type + +[**[ArduinoDashboardshare]**](ArduinoDashboardshare.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.arduino.dashboardshare+json; type=collection, application/vnd.goa.error+json + + +## dashboardsV2RequestAccess + +> dashboardsV2RequestAccess(id, sharerequest, opts) + +requestAccess dashboards_v2 + +Request access to a dashboard + +### 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.DashboardsV2Api(); +let id = "id_example"; // String | The id of the dashboard +let sharerequest = new ArduinoIotClient.Sharerequest(); // Sharerequest | +let opts = { + 'xOrganization': "xOrganization_example" // String | +}; +apiInstance.dashboardsV2RequestAccess(id, sharerequest, opts).then(() => { + console.log('API called successfully.'); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| The id of the dashboard | + **sharerequest** | [**Sharerequest**](Sharerequest.md)| | + **xOrganization** | **String**| | [optional] + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded +- **Accept**: application/vnd.goa.error+json, text/plain + + +## dashboardsV2Share + +> dashboardsV2Share(id, dashboardshare, opts) + +share dashboards_v2 + +Share a dashboard + +### 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.DashboardsV2Api(); +let id = "id_example"; // String | The id of the dashboard +let dashboardshare = new ArduinoIotClient.Dashboardshare(); // Dashboardshare | +let opts = { + 'xOrganization': "xOrganization_example" // String | +}; +apiInstance.dashboardsV2Share(id, dashboardshare, opts).then(() => { + console.log('API called successfully.'); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| The id of the dashboard | + **dashboardshare** | [**Dashboardshare**](Dashboardshare.md)| | + **xOrganization** | **String**| | [optional] + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded +- **Accept**: application/vnd.goa.error+json, text/plain + + +## dashboardsV2Show + +> ArduinoDashboardv2 dashboardsV2Show(id, opts) + +show dashboards_v2 + +Show a dashboard + +### 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.DashboardsV2Api(); +let id = "id_example"; // String | The id of the dashboard +let opts = { + 'xOrganization': "xOrganization_example" // String | +}; +apiInstance.dashboardsV2Show(id, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| The id of the dashboard | + **xOrganization** | **String**| | [optional] + +### Return type + +[**ArduinoDashboardv2**](ArduinoDashboardv2.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.arduino.dashboardv2+json, application/vnd.goa.error+json + + +## dashboardsV2Template + +> ArduinoDashboardv2template dashboardsV2Template(id, opts) + +template dashboards_v2 + +Get a template of the dashboard + +### 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.DashboardsV2Api(); +let id = "id_example"; // String | The id of the dashboard +let opts = { + 'xOrganization': "xOrganization_example" // String | +}; +apiInstance.dashboardsV2Template(id, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| The id of the dashboard | + **xOrganization** | **String**| | [optional] + +### Return type + +[**ArduinoDashboardv2template**](ArduinoDashboardv2template.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.arduino.dashboardv2template+json, application/vnd.goa.error+json + + +## dashboardsV2Update + +> ArduinoDashboardv2 dashboardsV2Update(id, dashboardv2, opts) + +update dashboards_v2 + +Updates an existing dashboard + +### 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.DashboardsV2Api(); +let id = "id_example"; // String | The id of the dashboard +let dashboardv2 = new ArduinoIotClient.Dashboardv2(); // Dashboardv2 | DashboardV2Payload describes a dashboard +let opts = { + 'xOrganization': "xOrganization_example" // String | +}; +apiInstance.dashboardsV2Update(id, dashboardv2, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| The id of the dashboard | + **dashboardv2** | [**Dashboardv2**](Dashboardv2.md)| DashboardV2Payload describes a dashboard | + **xOrganization** | **String**| | [optional] + +### Return type + +[**ArduinoDashboardv2**](ArduinoDashboardv2.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded +- **Accept**: application/vnd.arduino.dashboardv2+json, application/vnd.goa.error+json + diff --git a/docs/Dashboardshare.md b/docs/Dashboardshare.md new file mode 100644 index 0000000..3c0bf3c --- /dev/null +++ b/docs/Dashboardshare.md @@ -0,0 +1,10 @@ +# ArduinoIotClient.Dashboardshare + +## 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/docs/Dashboardv2.md b/docs/Dashboardv2.md new file mode 100644 index 0000000..fc90e42 --- /dev/null +++ b/docs/Dashboardv2.md @@ -0,0 +1,11 @@ +# ArduinoIotClient.Dashboardv2 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**coverImage** | **String** | The cover image of the dashboard | [optional] +**name** | **String** | The friendly name of the dashboard | [optional] +**widgets** | [**[Widget]**](Widget.md) | Widgets attached to this dashboard | [optional] + + diff --git a/docs/DevicesV2Api.md b/docs/DevicesV2Api.md new file mode 100644 index 0000000..fe0f0af --- /dev/null +++ b/docs/DevicesV2Api.md @@ -0,0 +1,562 @@ +# ArduinoIotClient.DevicesV2Api + +All URIs are relative to *https://api2.arduino.cc/iot* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**devicesV2Create**](DevicesV2Api.md#devicesV2Create) | **PUT** /v2/devices | create devices_v2 +[**devicesV2Delete**](DevicesV2Api.md#devicesV2Delete) | **DELETE** /v2/devices/{id} | delete devices_v2 +[**devicesV2GetEvents**](DevicesV2Api.md#devicesV2GetEvents) | **GET** /v2/devices/{id}/events | getEvents devices_v2 +[**devicesV2GetProperties**](DevicesV2Api.md#devicesV2GetProperties) | **GET** /v2/devices/{id}/properties | getProperties devices_v2 +[**devicesV2GetStatusEvents**](DevicesV2Api.md#devicesV2GetStatusEvents) | **GET** /v2/devices/{id}/status | GetStatusEvents devices_v2 +[**devicesV2List**](DevicesV2Api.md#devicesV2List) | **GET** /v2/devices | list devices_v2 +[**devicesV2Show**](DevicesV2Api.md#devicesV2Show) | **GET** /v2/devices/{id} | show devices_v2 +[**devicesV2Timeseries**](DevicesV2Api.md#devicesV2Timeseries) | **GET** /v2/devices/{id}/properties/{pid} | timeseries devices_v2 +[**devicesV2Update**](DevicesV2Api.md#devicesV2Update) | **POST** /v2/devices/{id} | update devices_v2 +[**devicesV2UpdateProperties**](DevicesV2Api.md#devicesV2UpdateProperties) | **PUT** /v2/devices/{id}/properties | updateProperties devices_v2 + + + +## devicesV2Create + +> ArduinoDevicev2 devicesV2Create(createDevicesV2Payload, opts) + +create 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 createDevicesV2Payload = new ArduinoIotClient.CreateDevicesV2Payload(); // CreateDevicesV2Payload | DeviceV2 describes a device. +let opts = { + 'xOrganization': "xOrganization_example" // String | +}; +apiInstance.devicesV2Create(createDevicesV2Payload, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **createDevicesV2Payload** | [**CreateDevicesV2Payload**](CreateDevicesV2Payload.md)| DeviceV2 describes a device. | + **xOrganization** | **String**| | [optional] + +### Return type + +[**ArduinoDevicev2**](ArduinoDevicev2.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded +- **Accept**: application/vnd.arduino.devicev2+json, application/vnd.goa.error+json + + +## devicesV2Delete + +> devicesV2Delete(id, opts) + +delete devices_v2 + +Removes a 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 id = "id_example"; // String | The id of the device +let opts = { + 'xOrganization': "xOrganization_example" // String | +}; +apiInstance.devicesV2Delete(id, opts).then(() => { + console.log('API called successfully.'); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| The id of the device | + **xOrganization** | **String**| | [optional] + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.goa.error+json, text/plain + + +## devicesV2GetEvents + +> ArduinoDevicev2EventProperties devicesV2GetEvents(id, opts) + +getEvents devices_v2 + +GET device events + +### 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 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 | +}; +apiInstance.devicesV2GetEvents(id, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +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**| | [optional] + +### Return type + +[**ArduinoDevicev2EventProperties**](ArduinoDevicev2EventProperties.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.arduino.devicev2.event.properties+json, application/vnd.goa.error+json + + +## devicesV2GetProperties + +> ArduinoDevicev2properties devicesV2GetProperties(id, opts) + +getProperties devices_v2 + +GET device properties + +### 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 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 | +}; +apiInstance.devicesV2GetProperties(id, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +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**| | [optional] + +### Return type + +[**ArduinoDevicev2properties**](ArduinoDevicev2properties.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.arduino.devicev2properties+json, application/vnd.goa.error+json + + +## devicesV2GetStatusEvents + +> ArduinoDevicev2StatusEvents devicesV2GetStatusEvents(id, opts) + +GetStatusEvents devices_v2 + +GET connection status events + +### 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 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 | +}; +apiInstance.devicesV2GetStatusEvents(id, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +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**| | [optional] + +### Return type + +[**ArduinoDevicev2StatusEvents**](ArduinoDevicev2StatusEvents.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.arduino.devicev2.status.events+json, application/vnd.goa.error+json + + +## devicesV2List + +> [ArduinoDevicev2] devicesV2List(opts) + +list devices_v2 + +Returns the list of devices 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 opts = { + 'acrossUserIds': false, // Boolean | If true, returns all the devices + 'serial': "serial_example", // String | Filter by device serial number + 'tags': ["null"], // [String] | Filter by tags + 'xOrganization': "xOrganization_example" // String | +}; +apiInstance.devicesV2List(opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **acrossUserIds** | **Boolean**| If true, returns all the devices | [optional] [default to false] + **serial** | **String**| Filter by device serial number | [optional] + **tags** | [**[String]**](String.md)| Filter by tags | [optional] + **xOrganization** | **String**| | [optional] + +### Return type + +[**[ArduinoDevicev2]**](ArduinoDevicev2.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.arduino.devicev2+json; type=collection, application/vnd.goa.error+json + + +## devicesV2Show + +> ArduinoDevicev2 devicesV2Show(id, opts) + +show devices_v2 + +Returns the device requested by 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 id = "id_example"; // String | The id of the device +let opts = { + 'xOrganization': "xOrganization_example" // String | +}; +apiInstance.devicesV2Show(id, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| The id of the device | + **xOrganization** | **String**| | [optional] + +### Return type + +[**ArduinoDevicev2**](ArduinoDevicev2.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.arduino.devicev2+json, application/vnd.goa.error+json + + +## devicesV2Timeseries + +> ArduinoDevicev2propertyvalues devicesV2Timeseries(id, pid, opts) + +timeseries devices_v2 + +GET device properties values in a range of time + +### 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 id = "id_example"; // String | The id of the device +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 | +}; +apiInstance.devicesV2Timeseries(id, pid, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| The id of the device | + **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**| | [optional] + +### Return type + +[**ArduinoDevicev2propertyvalues**](ArduinoDevicev2propertyvalues.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.arduino.devicev2propertyvalues+json, application/vnd.goa.error+json + + +## devicesV2Update + +> ArduinoDevicev2 devicesV2Update(id, devicev2, opts) + +update devices_v2 + +Updates a 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 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 | +}; +apiInstance.devicesV2Update(id, devicev2, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| The id of the device | + **devicev2** | [**Devicev2**](Devicev2.md)| DeviceV2 describes a device. | + **xOrganization** | **String**| | [optional] + +### Return type + +[**ArduinoDevicev2**](ArduinoDevicev2.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded +- **Accept**: application/vnd.arduino.devicev2+json, application/vnd.goa.error+json + + +## devicesV2UpdateProperties + +> devicesV2UpdateProperties(id, propertiesValues, opts) + +updateProperties devices_v2 + +Update device properties last values + +### 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 id = "id_example"; // String | The id of the device +let propertiesValues = new ArduinoIotClient.PropertiesValues(); // PropertiesValues | +let opts = { + 'xOrganization': "xOrganization_example" // String | +}; +apiInstance.devicesV2UpdateProperties(id, propertiesValues, opts).then(() => { + console.log('API called successfully.'); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| The id of the device | + **propertiesValues** | [**PropertiesValues**](PropertiesValues.md)| | + **xOrganization** | **String**| | [optional] + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded +- **Accept**: application/vnd.goa.error+json, text/plain + diff --git a/docs/DevicesV2CertsApi.md b/docs/DevicesV2CertsApi.md new file mode 100644 index 0000000..eeca27a --- /dev/null +++ b/docs/DevicesV2CertsApi.md @@ -0,0 +1,263 @@ +# ArduinoIotClient.DevicesV2CertsApi + +All URIs are relative to *https://api2.arduino.cc/iot* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**devicesV2CertsCreate**](DevicesV2CertsApi.md#devicesV2CertsCreate) | **PUT** /v2/devices/{id}/certs | create devices_v2_certs +[**devicesV2CertsDelete**](DevicesV2CertsApi.md#devicesV2CertsDelete) | **DELETE** /v2/devices/{id}/certs/{cid} | delete devices_v2_certs +[**devicesV2CertsList**](DevicesV2CertsApi.md#devicesV2CertsList) | **GET** /v2/devices/{id}/certs | list devices_v2_certs +[**devicesV2CertsShow**](DevicesV2CertsApi.md#devicesV2CertsShow) | **GET** /v2/devices/{id}/certs/{cid} | show devices_v2_certs +[**devicesV2CertsUpdate**](DevicesV2CertsApi.md#devicesV2CertsUpdate) | **POST** /v2/devices/{id}/certs/{cid} | update devices_v2_certs + + + +## devicesV2CertsCreate + +> ArduinoDevicev2Cert devicesV2CertsCreate(id, createDevicesV2CertsPayload) + +create devices_v2_certs + +Creates a new cert associated to a device. The csr is signed and saved in database. The CommonName will be replaced with the device id. + +### 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.DevicesV2CertsApi(); +let id = "id_example"; // String | The id of the device +let createDevicesV2CertsPayload = new ArduinoIotClient.CreateDevicesV2CertsPayload(); // CreateDevicesV2CertsPayload | +apiInstance.devicesV2CertsCreate(id, createDevicesV2CertsPayload).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| The id of the device | + **createDevicesV2CertsPayload** | [**CreateDevicesV2CertsPayload**](CreateDevicesV2CertsPayload.md)| | + +### Return type + +[**ArduinoDevicev2Cert**](ArduinoDevicev2Cert.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded +- **Accept**: application/vnd.arduino.devicev2.cert+json, application/vnd.goa.error+json + + +## devicesV2CertsDelete + +> devicesV2CertsDelete(cid, id) + +delete devices_v2_certs + +Removes a cert associated to a device + +### 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.DevicesV2CertsApi(); +let cid = "cid_example"; // String | The id of the cert +let id = "id_example"; // String | The id of the device +apiInstance.devicesV2CertsDelete(cid, id).then(() => { + console.log('API called successfully.'); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cid** | **String**| The id of the cert | + **id** | **String**| The id of the device | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.goa.error+json, text/plain + + +## devicesV2CertsList + +> [ArduinoDevicev2Cert] devicesV2CertsList(id) + +list devices_v2_certs + +Returns the list of certs associated to the device + +### 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.DevicesV2CertsApi(); +let id = "id_example"; // String | The id of the device +apiInstance.devicesV2CertsList(id).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| The id of the device | + +### Return type + +[**[ArduinoDevicev2Cert]**](ArduinoDevicev2Cert.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.arduino.devicev2.cert+json; type=collection, application/vnd.goa.error+json + + +## devicesV2CertsShow + +> ArduinoDevicev2Cert devicesV2CertsShow(cid, id) + +show devices_v2_certs + +Returns the cert requested by 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.DevicesV2CertsApi(); +let cid = "cid_example"; // String | The id of the cert +let id = "id_example"; // String | The id of the device +apiInstance.devicesV2CertsShow(cid, id).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cid** | **String**| The id of the cert | + **id** | **String**| The id of the device | + +### Return type + +[**ArduinoDevicev2Cert**](ArduinoDevicev2Cert.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.arduino.devicev2.cert+json, application/vnd.goa.error+json + + +## devicesV2CertsUpdate + +> ArduinoDevicev2Cert devicesV2CertsUpdate(cid, id, devicev2Cert) + +update devices_v2_certs + +Updates a cert associated to a device. The csr is signed and saved in database. The CommonName will be replaced with the device id. + +### 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.DevicesV2CertsApi(); +let cid = "cid_example"; // String | The id of the cert +let id = "id_example"; // String | The id of the device +let devicev2Cert = new ArduinoIotClient.Devicev2Cert(); // Devicev2Cert | +apiInstance.devicesV2CertsUpdate(cid, id, devicev2Cert).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cid** | **String**| The id of the cert | + **id** | **String**| The id of the device | + **devicev2Cert** | [**Devicev2Cert**](Devicev2Cert.md)| | + +### Return type + +[**ArduinoDevicev2Cert**](ArduinoDevicev2Cert.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded +- **Accept**: application/vnd.arduino.devicev2.cert+json, application/vnd.goa.error+json + diff --git a/docs/DevicesV2OtaApi.md b/docs/DevicesV2OtaApi.md new file mode 100644 index 0000000..d6a28fa --- /dev/null +++ b/docs/DevicesV2OtaApi.md @@ -0,0 +1,167 @@ +# ArduinoIotClient.DevicesV2OtaApi + +All URIs are relative to *https://api2.arduino.cc/iot* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**devicesV2OtaSend**](DevicesV2OtaApi.md#devicesV2OtaSend) | **PUT** /v2/devices/{id}/ota | send devices_v2_ota +[**devicesV2OtaUpload**](DevicesV2OtaApi.md#devicesV2OtaUpload) | **POST** /v2/devices/{id}/ota | upload devices_v2_ota +[**devicesV2OtaUrl**](DevicesV2OtaApi.md#devicesV2OtaUrl) | **POST** /v2/devices/{id}/ota/url | url devices_v2_ota + + + +## devicesV2OtaSend + +> devicesV2OtaSend(id, devicev2Otabinaryurl) + +send devices_v2_ota + +Send a binary url to a device + +### 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.DevicesV2OtaApi(); +let id = "id_example"; // String | The id of the device +let devicev2Otabinaryurl = new ArduinoIotClient.Devicev2Otabinaryurl(); // Devicev2Otabinaryurl | +apiInstance.devicesV2OtaSend(id, devicev2Otabinaryurl).then(() => { + console.log('API called successfully.'); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| The id of the device | + **devicev2Otabinaryurl** | [**Devicev2Otabinaryurl**](Devicev2Otabinaryurl.md)| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded +- **Accept**: application/vnd.goa.error+json, text/plain + + +## devicesV2OtaUpload + +> ArduinoDevicev2Otaupload devicesV2OtaUpload(id, otaFile, opts) + +upload devices_v2_ota + +Upload a binary and send it to a device + +### 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.DevicesV2OtaApi(); +let id = "id_example"; // String | The id of the device +let otaFile = "/path/to/file"; // File | OTA file +let opts = { + 'async': true, // Boolean | If false, wait for the full OTA process, until it gets a result from the device + 'expireInMins': 10 // Number | Binary expire time in minutes, default 10 mins +}; +apiInstance.devicesV2OtaUpload(id, otaFile, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| The id of the device | + **otaFile** | **File**| OTA file | + **async** | **Boolean**| If false, wait for the full OTA process, until it gets a result from the device | [optional] [default to true] + **expireInMins** | **Number**| Binary expire time in minutes, default 10 mins | [optional] [default to 10] + +### Return type + +[**ArduinoDevicev2Otaupload**](ArduinoDevicev2Otaupload.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: multipart/form-data +- **Accept**: application/vnd.arduino.devicev2.otaupload+json, application/vnd.goa.error+json + + +## devicesV2OtaUrl + +> devicesV2OtaUrl(id, devicev2Otaurlpyalod) + +url devices_v2_ota + +Generate a url for downloading a binary + +### 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.DevicesV2OtaApi(); +let id = "id_example"; // String | The id of the device +let devicev2Otaurlpyalod = new ArduinoIotClient.Devicev2Otaurlpyalod(); // Devicev2Otaurlpyalod | +apiInstance.devicesV2OtaUrl(id, devicev2Otaurlpyalod).then(() => { + console.log('API called successfully.'); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| The id of the device | + **devicev2Otaurlpyalod** | [**Devicev2Otaurlpyalod**](Devicev2Otaurlpyalod.md)| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded +- **Accept**: application/vnd.goa.error+json, text/plain + diff --git a/docs/DevicesV2PassApi.md b/docs/DevicesV2PassApi.md new file mode 100644 index 0000000..514b9fd --- /dev/null +++ b/docs/DevicesV2PassApi.md @@ -0,0 +1,212 @@ +# ArduinoIotClient.DevicesV2PassApi + +All URIs are relative to *https://api2.arduino.cc/iot* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**devicesV2PassCheck**](DevicesV2PassApi.md#devicesV2PassCheck) | **POST** /v2/devices/{id}/pass | check devices_v2_pass +[**devicesV2PassDelete**](DevicesV2PassApi.md#devicesV2PassDelete) | **DELETE** /v2/devices/{id}/pass | delete devices_v2_pass +[**devicesV2PassGet**](DevicesV2PassApi.md#devicesV2PassGet) | **GET** /v2/devices/{id}/pass | get devices_v2_pass +[**devicesV2PassSet**](DevicesV2PassApi.md#devicesV2PassSet) | **PUT** /v2/devices/{id}/pass | set devices_v2_pass + + + +## devicesV2PassCheck + +> devicesV2PassCheck(id, checkDevicesV2PassPayload) + +check devices_v2_pass + +Check if the password matches. + +### 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.DevicesV2PassApi(); +let id = "id_example"; // String | The id of the device +let checkDevicesV2PassPayload = new ArduinoIotClient.CheckDevicesV2PassPayload(); // CheckDevicesV2PassPayload | +apiInstance.devicesV2PassCheck(id, checkDevicesV2PassPayload).then(() => { + console.log('API called successfully.'); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| The id of the device | + **checkDevicesV2PassPayload** | [**CheckDevicesV2PassPayload**](CheckDevicesV2PassPayload.md)| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded +- **Accept**: application/vnd.goa.error+json, text/plain + + +## devicesV2PassDelete + +> devicesV2PassDelete(id) + +delete devices_v2_pass + +Removes the password for the device. + +### 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.DevicesV2PassApi(); +let id = "id_example"; // String | The id of the device +apiInstance.devicesV2PassDelete(id).then(() => { + console.log('API called successfully.'); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| The id of the device | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.goa.error+json, text/plain + + +## devicesV2PassGet + +> ArduinoDevicev2Pass devicesV2PassGet(id, opts) + +get devices_v2_pass + +Returns whether the password for this device is set or not. It doesn't return the password. + +### 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.DevicesV2PassApi(); +let id = "id_example"; // String | The id of the device +let opts = { + 'suggestedPassword': false // Boolean | If true, return a suggested password +}; +apiInstance.devicesV2PassGet(id, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| The id of the device | + **suggestedPassword** | **Boolean**| If true, return a suggested password | [optional] [default to false] + +### Return type + +[**ArduinoDevicev2Pass**](ArduinoDevicev2Pass.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.arduino.devicev2.pass+json, application/vnd.goa.error+json + + +## devicesV2PassSet + +> ArduinoDevicev2Pass devicesV2PassSet(id, devicev2Pass) + +set devices_v2_pass + +Sets the password for the device. It can never be read back. + +### 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.DevicesV2PassApi(); +let id = "id_example"; // String | The id of the device +let devicev2Pass = new ArduinoIotClient.Devicev2Pass(); // Devicev2Pass | +apiInstance.devicesV2PassSet(id, devicev2Pass).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| The id of the device | + **devicev2Pass** | [**Devicev2Pass**](Devicev2Pass.md)| | + +### Return type + +[**ArduinoDevicev2Pass**](ArduinoDevicev2Pass.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded +- **Accept**: application/vnd.arduino.devicev2.pass+json, application/vnd.goa.error+json + diff --git a/docs/DevicesV2TagsApi.md b/docs/DevicesV2TagsApi.md new file mode 100644 index 0000000..e24e457 --- /dev/null +++ b/docs/DevicesV2TagsApi.md @@ -0,0 +1,159 @@ +# ArduinoIotClient.DevicesV2TagsApi + +All URIs are relative to *https://api2.arduino.cc/iot* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**devicesV2TagsDelete**](DevicesV2TagsApi.md#devicesV2TagsDelete) | **DELETE** /v2/devices/{id}/tags/{key} | delete devices_v2_tags +[**devicesV2TagsList**](DevicesV2TagsApi.md#devicesV2TagsList) | **GET** /v2/devices/{id}/tags | list devices_v2_tags +[**devicesV2TagsUpsert**](DevicesV2TagsApi.md#devicesV2TagsUpsert) | **PUT** /v2/devices/{id}/tags | upsert devices_v2_tags + + + +## devicesV2TagsDelete + +> devicesV2TagsDelete(id, key) + +delete devices_v2_tags + +Delete a tag associated to the device given its key. + +### 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.DevicesV2TagsApi(); +let id = "id_example"; // String | The id of the device +let key = "key_example"; // String | The key of the tag +apiInstance.devicesV2TagsDelete(id, key).then(() => { + console.log('API called successfully.'); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| The id of the device | + **key** | **String**| The key of the tag | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.goa.error+json, text/plain + + +## devicesV2TagsList + +> ArduinoTags devicesV2TagsList(id) + +list devices_v2_tags + +List tags associated to the device. + +### 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.DevicesV2TagsApi(); +let id = "id_example"; // String | The id of the device +apiInstance.devicesV2TagsList(id).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| The id of the device | + +### Return type + +[**ArduinoTags**](ArduinoTags.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.arduino.tags+json, application/vnd.goa.error+json + + +## devicesV2TagsUpsert + +> devicesV2TagsUpsert(id, tag) + +upsert devices_v2_tags + +Creates or updates a tag associated to the device. + +### 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.DevicesV2TagsApi(); +let id = "id_example"; // String | The id of the device +let tag = new ArduinoIotClient.Tag(); // Tag | +apiInstance.devicesV2TagsUpsert(id, tag).then(() => { + console.log('API called successfully.'); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| The id of the device | + **tag** | [**Tag**](Tag.md)| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded +- **Accept**: application/vnd.goa.error+json, text/plain + diff --git a/docs/Devicev2.md b/docs/Devicev2.md new file mode 100644 index 0000000..612e61f --- /dev/null +++ b/docs/Devicev2.md @@ -0,0 +1,79 @@ +# ArduinoIotClient.Devicev2 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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 | [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] + + + +## 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/Devicev2Cert.md b/docs/Devicev2Cert.md new file mode 100644 index 0000000..49ddd95 --- /dev/null +++ b/docs/Devicev2Cert.md @@ -0,0 +1,11 @@ +# ArduinoIotClient.Devicev2Cert + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ca** | **String** | The Certification Authority you want to use | [optional] +**csr** | **String** | The certificate request in pem format | [optional] +**enabled** | **Boolean** | Whether the certificate is enabled | [optional] + + diff --git a/docs/Devicev2Otabinaryurl.md b/docs/Devicev2Otabinaryurl.md new file mode 100644 index 0000000..5cd2910 --- /dev/null +++ b/docs/Devicev2Otabinaryurl.md @@ -0,0 +1,11 @@ +# ArduinoIotClient.Devicev2Otabinaryurl + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**async** | **Boolean** | If false, wait for the full OTA process, until it gets a result from the device | [optional] [default to true] +**binaryKey** | **String** | The object key of the binary | +**expireInMins** | **Number** | Binary expire time in minutes, default 10 mins | [optional] [default to 10] + + diff --git a/docs/Devicev2Otaurlpyalod.md b/docs/Devicev2Otaurlpyalod.md new file mode 100644 index 0000000..5b708e5 --- /dev/null +++ b/docs/Devicev2Otaurlpyalod.md @@ -0,0 +1,11 @@ +# ArduinoIotClient.Devicev2Otaurlpyalod + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**binaryKey** | **String** | The object key of the binary | [optional] +**sha256** | **String** | The sha256 of the binary | [optional] +**userId** | **String** | The id of the user who is requesting the url | [optional] + + diff --git a/docs/Devicev2Pass.md b/docs/Devicev2Pass.md new file mode 100644 index 0000000..72325ae --- /dev/null +++ b/docs/Devicev2Pass.md @@ -0,0 +1,9 @@ +# ArduinoIotClient.Devicev2Pass + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**password** | **String** | The password for the device | [optional] + + diff --git a/docs/Error.md b/docs/Error.md new file mode 100644 index 0000000..2773248 --- /dev/null +++ b/docs/Error.md @@ -0,0 +1,13 @@ +# ArduinoIotClient.Error + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | **String** | an application-specific error code, expressed as a string value. | [optional] +**detail** | **String** | a human-readable explanation specific to this occurrence of the problem. | [optional] +**id** | **String** | a unique identifier for this particular occurrence of the problem. | [optional] +**meta** | **{String: Object}** | a meta object containing non-standard meta-information about the error. | [optional] +**status** | **Number** | the HTTP status code applicable to this problem | [optional] + + diff --git a/docs/HistoricDataRequest.md b/docs/HistoricDataRequest.md new file mode 100644 index 0000000..3d740bb --- /dev/null +++ b/docs/HistoricDataRequest.md @@ -0,0 +1,11 @@ +# ArduinoIotClient.HistoricDataRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**from** | **Date** | Get data starting from this date | +**properties** | **[String]** | IDs of properties | +**to** | **Date** | Get data up to this date | + + diff --git a/docs/LoraDevicesV1Api.md b/docs/LoraDevicesV1Api.md new file mode 100644 index 0000000..d832142 --- /dev/null +++ b/docs/LoraDevicesV1Api.md @@ -0,0 +1,57 @@ +# ArduinoIotClient.LoraDevicesV1Api + +All URIs are relative to *https://api2.arduino.cc/iot* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**loraDevicesV1Create**](LoraDevicesV1Api.md#loraDevicesV1Create) | **PUT** /v1/lora-devices/ | create lora_devices_v1 + + + +## loraDevicesV1Create + +> ArduinoLoradevicev1 loraDevicesV1Create(createLoraDevicesV1Payload, opts) + +create lora_devices_v1 + +Create a new lora device. Its info are saved on our database, and on the lora provider network. Creates a device_v2 automatically + +### Example + +```javascript +import ArduinoIotClient from '@arduino/arduino-iot-client'; + +let apiInstance = new ArduinoIotClient.LoraDevicesV1Api(); +let createLoraDevicesV1Payload = new ArduinoIotClient.CreateLoraDevicesV1Payload(); // CreateLoraDevicesV1Payload | +let opts = { + 'xOrganization': "xOrganization_example" // String | +}; +apiInstance.loraDevicesV1Create(createLoraDevicesV1Payload, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **createLoraDevicesV1Payload** | [**CreateLoraDevicesV1Payload**](CreateLoraDevicesV1Payload.md)| | + **xOrganization** | **String**| | [optional] + +### Return type + +[**ArduinoLoradevicev1**](ArduinoLoradevicev1.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded +- **Accept**: application/vnd.arduino.loradevicev1+json + diff --git a/docs/LoraFreqPlanV1Api.md b/docs/LoraFreqPlanV1Api.md new file mode 100644 index 0000000..72a45ef --- /dev/null +++ b/docs/LoraFreqPlanV1Api.md @@ -0,0 +1,49 @@ +# ArduinoIotClient.LoraFreqPlanV1Api + +All URIs are relative to *https://api2.arduino.cc/iot* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**loraFreqPlanV1List**](LoraFreqPlanV1Api.md#loraFreqPlanV1List) | **GET** /v1/lora-freq-plans/ | list lora_freq_plan_v1 + + + +## loraFreqPlanV1List + +> ArduinoLorafreqplansv1 loraFreqPlanV1List() + +list lora_freq_plan_v1 + +List the lora frequency plans supported + +### Example + +```javascript +import ArduinoIotClient from '@arduino/arduino-iot-client'; + +let apiInstance = new ArduinoIotClient.LoraFreqPlanV1Api(); +apiInstance.loraFreqPlanV1List().then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**ArduinoLorafreqplansv1**](ArduinoLorafreqplansv1.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.arduino.lorafreqplansv1+json, application/vnd.goa.error+json + diff --git a/docs/NetworkCredentialsV1Api.md b/docs/NetworkCredentialsV1Api.md new file mode 100644 index 0000000..ebbcab6 --- /dev/null +++ b/docs/NetworkCredentialsV1Api.md @@ -0,0 +1,102 @@ +# ArduinoIotClient.NetworkCredentialsV1Api + +All URIs are relative to *https://api2.arduino.cc/iot* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**networkCredentialsV1Show**](NetworkCredentialsV1Api.md#networkCredentialsV1Show) | **GET** /v1/network_credentials/{type} | show network_credentials_v1 +[**networkCredentialsV1ShowByDevice**](NetworkCredentialsV1Api.md#networkCredentialsV1ShowByDevice) | **GET** /v1/network_credentials/{type}/connections | showByDevice network_credentials_v1 + + + +## networkCredentialsV1Show + +> [ArduinoCredentialsv1] networkCredentialsV1Show(type, opts) + +show network_credentials_v1 + +Show required network credentials depending on device type + +### Example + +```javascript +import ArduinoIotClient from '@arduino/arduino-iot-client'; + +let apiInstance = new ArduinoIotClient.NetworkCredentialsV1Api(); +let type = "type_example"; // String | Device type +let opts = { + 'connection': "connection_example" // String | Connection used by the device +}; +apiInstance.networkCredentialsV1Show(type, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **type** | **String**| Device type | + **connection** | **String**| Connection used by the device | [optional] + +### Return type + +[**[ArduinoCredentialsv1]**](ArduinoCredentialsv1.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.arduino.credentialsv1+json; type=collection, application/vnd.goa.error+json + + +## networkCredentialsV1ShowByDevice + +> networkCredentialsV1ShowByDevice(type) + +showByDevice network_credentials_v1 + +Show available connection types depending on device type + +### Example + +```javascript +import ArduinoIotClient from '@arduino/arduino-iot-client'; + +let apiInstance = new ArduinoIotClient.NetworkCredentialsV1Api(); +let type = "type_example"; // String | Device type +apiInstance.networkCredentialsV1ShowByDevice(type).then(() => { + console.log('API called successfully.'); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **type** | **String**| Device type | + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/vnd.goa.error+json + diff --git a/docs/Override.md b/docs/Override.md new file mode 100644 index 0000000..9d0644d --- /dev/null +++ b/docs/Override.md @@ -0,0 +1,10 @@ +# ArduinoIotClient.Override + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**newThingId** | **String** | The id of the new thing to link | +**oldThingId** | **String** | The id of the thing to override | + + diff --git a/docs/PropertiesV2Api.md b/docs/PropertiesV2Api.md new file mode 100644 index 0000000..f28e793 --- /dev/null +++ b/docs/PropertiesV2Api.md @@ -0,0 +1,411 @@ +# ArduinoIotClient.PropertiesV2Api + +All URIs are relative to *https://api2.arduino.cc/iot* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**propertiesV2Create**](PropertiesV2Api.md#propertiesV2Create) | **PUT** /v2/things/{id}/properties | create properties_v2 +[**propertiesV2Delete**](PropertiesV2Api.md#propertiesV2Delete) | **DELETE** /v2/things/{id}/properties/{pid} | delete properties_v2 +[**propertiesV2List**](PropertiesV2Api.md#propertiesV2List) | **GET** /v2/things/{id}/properties | list properties_v2 +[**propertiesV2Publish**](PropertiesV2Api.md#propertiesV2Publish) | **PUT** /v2/things/{id}/properties/{pid}/publish | publish properties_v2 +[**propertiesV2Show**](PropertiesV2Api.md#propertiesV2Show) | **GET** /v2/things/{id}/properties/{pid} | show properties_v2 +[**propertiesV2Timeseries**](PropertiesV2Api.md#propertiesV2Timeseries) | **GET** /v2/things/{id}/properties/{pid}/timeseries | timeseries properties_v2 +[**propertiesV2Update**](PropertiesV2Api.md#propertiesV2Update) | **POST** /v2/things/{id}/properties/{pid} | update properties_v2 + + + +## propertiesV2Create + +> ArduinoProperty propertiesV2Create(id, property, opts) + +create properties_v2 + +Creates a new property associated to a thing + +### 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.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 | The id of the organization +}; +apiInstance.propertiesV2Create(id, property, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +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**| The id of the organization | [optional] + +### Return type + +[**ArduinoProperty**](ArduinoProperty.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded +- **Accept**: application/vnd.arduino.property+json, application/vnd.goa.error+json + + +## propertiesV2Delete + +> propertiesV2Delete(id, pid, opts) + +delete properties_v2 + +Removes a property associated to a thing + +### 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.PropertiesV2Api(); +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 | The id of the organization +}; +apiInstance.propertiesV2Delete(id, pid, opts).then(() => { + console.log('API called successfully.'); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +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**| The id of the organization | [optional] + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.goa.error+json, text/plain + + +## propertiesV2List + +> [ArduinoProperty] propertiesV2List(id, opts) + +list properties_v2 + +Returns the list of properties associated to the thing + +### 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.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 | The id of the organization +}; +apiInstance.propertiesV2List(id, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +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**| The id of the organization | [optional] + +### Return type + +[**[ArduinoProperty]**](ArduinoProperty.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.arduino.property+json; type=collection, application/vnd.goa.error+json + + +## propertiesV2Publish + +> propertiesV2Publish(id, pid, propertyValue, opts) + +publish properties_v2 + +Publish a property value to MQTT + +### 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.PropertiesV2Api(); +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 | The id of the organization +}; +apiInstance.propertiesV2Publish(id, pid, propertyValue, opts).then(() => { + console.log('API called successfully.'); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +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**| The id of the organization | [optional] + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded +- **Accept**: application/vnd.goa.error+json, text/plain + + +## propertiesV2Show + +> ArduinoProperty propertiesV2Show(id, pid, opts) + +show properties_v2 + +Returns the property requested by 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.PropertiesV2Api(); +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 | The id of the organization +}; +apiInstance.propertiesV2Show(id, pid, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +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**| The id of the organization | [optional] + +### Return type + +[**ArduinoProperty**](ArduinoProperty.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.arduino.property+json, application/vnd.goa.error+json + + +## propertiesV2Timeseries + +> ArduinoTimeseriesmedia propertiesV2Timeseries(id, pid, opts) + +timeseries properties_v2 + +Get numerical property's historic data binned on a specified time interval (note: the total number of data points should NOT be greater than 1000 otherwise the result will be truncated) + +### 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.PropertiesV2Api(); +let id = "id_example"; // String | The id of the thing +let pid = "pid_example"; // String | ID of a numerical property +let opts = { + 'aggregation': "aggregation_example", // String | Samples aggregation statistic. Supported aggregations AVG|MAX|MIN|COUNT|SUM|PCT_99|PCT_95|PCT_90|PCT_75|PCT_50|PCT_15|PCT_5 + 'desc': false, // Boolean | Whether data's ordering (by time) should be descending + '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 | The id of the organization +}; +apiInstance.propertiesV2Timeseries(id, pid, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| The id of the thing | + **pid** | **String**| ID of a numerical property | + **aggregation** | **String**| Samples aggregation statistic. Supported aggregations AVG|MAX|MIN|COUNT|SUM|PCT_99|PCT_95|PCT_90|PCT_75|PCT_50|PCT_15|PCT_5 | [optional] + **desc** | **Boolean**| Whether data's ordering (by time) should be descending | [optional] [default to false] + **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**| The id of the organization | [optional] + +### Return type + +[**ArduinoTimeseriesmedia**](ArduinoTimeseriesmedia.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.arduino.timeseriesmedia+json, application/vnd.goa.error+json + + +## propertiesV2Update + +> ArduinoProperty propertiesV2Update(id, pid, property, opts) + +update properties_v2 + +Updates a property associated to a thing + +### 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.PropertiesV2Api(); +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 | The id of the organization +}; +apiInstance.propertiesV2Update(id, pid, property, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +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**| The id of the organization | [optional] + +### Return type + +[**ArduinoProperty**](ArduinoProperty.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded +- **Accept**: application/vnd.arduino.property+json, application/vnd.goa.error+json + diff --git a/docs/PropertiesValue.md b/docs/PropertiesValue.md new file mode 100644 index 0000000..57e0d8a --- /dev/null +++ b/docs/PropertiesValue.md @@ -0,0 +1,26 @@ +# ArduinoIotClient.PropertiesValue + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | The name of the property | +**type** | **String** | The type of the property | [default to 'infer'] +**value** | **Object** | The last value of the property | + + + +## Enum: TypeEnum + + +* `infer` (value: `"infer"`) + +* `base64` (value: `"base64"`) + +* `hex` (value: `"hex"`) + +* `json` (value: `"json"`) + + + + diff --git a/docs/PropertiesValues.md b/docs/PropertiesValues.md new file mode 100644 index 0000000..0c41c52 --- /dev/null +++ b/docs/PropertiesValues.md @@ -0,0 +1,10 @@ +# ArduinoIotClient.PropertiesValues + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**input** | **Boolean** | If true, send property values to device's input topic. | [optional] [default to false] +**properties** | [**[PropertiesValue]**](PropertiesValue.md) | | + + diff --git a/docs/Property.md b/docs/Property.md new file mode 100644 index 0000000..f25cab8 --- /dev/null +++ b/docs/Property.md @@ -0,0 +1,311 @@ +# ArduinoIotClient.Property + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**maxValue** | **Number** | Maximum value of this property | [optional] +**minValue** | **Number** | Minimum value of this property | [optional] +**name** | **String** | The friendly name of the property | +**permission** | **String** | The permission of the property | +**persist** | **Boolean** | If true, data will persist into a timeseries database | [optional] [default to true] +**tag** | **Number** | The integer id of the property | [optional] +**type** | **String** | The type of the property | +**updateParameter** | **Number** | The update frequency in seconds, or the amount of the property has to change in order to trigger an update | [optional] +**updateStrategy** | **String** | The update strategy for the property value | +**variableName** | **String** | The sketch variable name of the property | [optional] + + + +## Enum: PermissionEnum + + +* `ONLY` (value: `"READ_ONLY"`) + +* `WRITE` (value: `"READ_WRITE"`) + + + + + +## Enum: TypeEnum + + +* `ANALOG` (value: `"ANALOG"`) + +* `CHARSTRING` (value: `"CHARSTRING"`) + +* `FLOAT` (value: `"FLOAT"`) + +* `INT` (value: `"INT"`) + +* `LENGHT_C` (value: `"LENGHT_C"`) + +* `LENGHT_I` (value: `"LENGHT_I"`) + +* `LENGHT_M` (value: `"LENGHT_M"`) + +* `PERCENTAGE` (value: `"PERCENTAGE"`) + +* `STATUS` (value: `"STATUS"`) + +* `TEMPERATURE_C` (value: `"TEMPERATURE_C"`) + +* `TEMPERATURE_F` (value: `"TEMPERATURE_F"`) + +* `METER` (value: `"METER"`) + +* `KILOGRAM` (value: `"KILOGRAM"`) + +* `GRAM` (value: `"GRAM"`) + +* `SECOND` (value: `"SECOND"`) + +* `AMPERE` (value: `"AMPERE"`) + +* `KELVIN` (value: `"KELVIN"`) + +* `CANDELA` (value: `"CANDELA"`) + +* `MOLE` (value: `"MOLE"`) + +* `HERTZ` (value: `"HERTZ"`) + +* `RADIAN` (value: `"RADIAN"`) + +* `STERADIAN` (value: `"STERADIAN"`) + +* `NEWTON` (value: `"NEWTON"`) + +* `PASCAL` (value: `"PASCAL"`) + +* `JOULE` (value: `"JOULE"`) + +* `WATT` (value: `"WATT"`) + +* `COULOMB` (value: `"COULOMB"`) + +* `VOLT` (value: `"VOLT"`) + +* `FARAD` (value: `"FARAD"`) + +* `OHM` (value: `"OHM"`) + +* `SIEMENS` (value: `"SIEMENS"`) + +* `WEBER` (value: `"WEBER"`) + +* `TESLA` (value: `"TESLA"`) + +* `HENRY` (value: `"HENRY"`) + +* `DEGREES_CELSIUS` (value: `"DEGREES_CELSIUS"`) + +* `LUMEN` (value: `"LUMEN"`) + +* `LUX` (value: `"LUX"`) + +* `BECQUEREL` (value: `"BECQUEREL"`) + +* `GRAY` (value: `"GRAY"`) + +* `SIEVERT` (value: `"SIEVERT"`) + +* `KATAL` (value: `"KATAL"`) + +* `SQUARE_METER` (value: `"SQUARE_METER"`) + +* `CUBIC_METER` (value: `"CUBIC_METER"`) + +* `LITER` (value: `"LITER"`) + +* `METER_PER_SECOND` (value: `"METER_PER_SECOND"`) + +* `METER_PER_SQUARE_SECOND` (value: `"METER_PER_SQUARE_SECOND"`) + +* `CUBIC_METER_PER_SECOND` (value: `"CUBIC_METER_PER_SECOND"`) + +* `LITER_PER_SECOND` (value: `"LITER_PER_SECOND"`) + +* `WATT_PER_SQUARE_METER` (value: `"WATT_PER_SQUARE_METER"`) + +* `CANDELA_PER_SQUARE_METER` (value: `"CANDELA_PER_SQUARE_METER"`) + +* `BIT` (value: `"BIT"`) + +* `BIT_PER_SECOND` (value: `"BIT_PER_SECOND"`) + +* `DEGREES_LATITUDE` (value: `"DEGREES_LATITUDE"`) + +* `DEGREES_LONGITUDE` (value: `"DEGREES_LONGITUDE"`) + +* `PH_VALUE` (value: `"PH_VALUE"`) + +* `DECIBEL` (value: `"DECIBEL"`) + +* `DECIBEL_1W` (value: `"DECIBEL_1W"`) + +* `BEL` (value: `"BEL"`) + +* `COUNT` (value: `"COUNT"`) + +* `RATIO_DIV` (value: `"RATIO_DIV"`) + +* `RATIO_MOD` (value: `"RATIO_MOD"`) + +* `PERCENTAGE_RELATIVE_HUMIDITY` (value: `"PERCENTAGE_RELATIVE_HUMIDITY"`) + +* `PERCENTAGE_BATTERY_LEVEL` (value: `"PERCENTAGE_BATTERY_LEVEL"`) + +* `SECONDS_BATTERY_LEVEL` (value: `"SECONDS_BATTERY_LEVEL"`) + +* `EVENT_RATE_SECOND` (value: `"EVENT_RATE_SECOND"`) + +* `EVENT_RATE_MINUTE` (value: `"EVENT_RATE_MINUTE"`) + +* `HEART_RATE` (value: `"HEART_RATE"`) + +* `HEART_BEATS` (value: `"HEART_BEATS"`) + +* `SIEMENS_PER_METER` (value: `"SIEMENS_PER_METER"`) + +* `LOCATION` (value: `"LOCATION"`) + +* `COLOR_HSB` (value: `"COLOR_HSB"`) + +* `COLOR_RGB` (value: `"COLOR_RGB"`) + +* `GENERIC_COMPLEX_PROPERTY` (value: `"GENERIC_COMPLEX_PROPERTY"`) + +* `HOME_COLORED_LIGHT` (value: `"HOME_COLORED_LIGHT"`) + +* `HOME_DIMMED_LIGHT` (value: `"HOME_DIMMED_LIGHT"`) + +* `HOME_LIGHT` (value: `"HOME_LIGHT"`) + +* `HOME_CONTACT_SENSOR` (value: `"HOME_CONTACT_SENSOR"`) + +* `HOME_MOTION_SENSOR` (value: `"HOME_MOTION_SENSOR"`) + +* `HOME_SMART_PLUG` (value: `"HOME_SMART_PLUG"`) + +* `HOME_TEMPERATURE` (value: `"HOME_TEMPERATURE"`) + +* `HOME_TEMPERATURE_C` (value: `"HOME_TEMPERATURE_C"`) + +* `HOME_TEMPERATURE_F` (value: `"HOME_TEMPERATURE_F"`) + +* `HOME_SWITCH` (value: `"HOME_SWITCH"`) + +* `HOME_TELEVISION` (value: `"HOME_TELEVISION"`) + +* `GOOGLE_HOME_COLORED_LIGHT` (value: `"GOOGLE_HOME_COLORED_LIGHT"`) + +* `GOOGLE_HOME_DIMMED_LIGHT` (value: `"GOOGLE_HOME_DIMMED_LIGHT"`) + +* `GOOGLE_HOME_LIGHT` (value: `"GOOGLE_HOME_LIGHT"`) + +* `GOOGLE_HOME_CONTACT_SENSOR` (value: `"GOOGLE_HOME_CONTACT_SENSOR"`) + +* `GOOGLE_HOME_MOTION_SENSOR` (value: `"GOOGLE_HOME_MOTION_SENSOR"`) + +* `GOOGLE_HOME_SMART_PLUG` (value: `"GOOGLE_HOME_SMART_PLUG"`) + +* `GOOGLE_HOME_TEMPERATURE` (value: `"GOOGLE_HOME_TEMPERATURE"`) + +* `GOOGLE_HOME_TEMPERATURE_C` (value: `"GOOGLE_HOME_TEMPERATURE_C"`) + +* `GOOGLE_HOME_TEMPERATURE_F` (value: `"GOOGLE_HOME_TEMPERATURE_F"`) + +* `GOOGLE_HOME_SWITCH` (value: `"GOOGLE_HOME_SWITCH"`) + +* `SMART_HOME_COLORED_LIGHT` (value: `"SMART_HOME_COLORED_LIGHT"`) + +* `SMART_HOME_DIMMED_LIGHT` (value: `"SMART_HOME_DIMMED_LIGHT"`) + +* `SMART_HOME_LIGHT` (value: `"SMART_HOME_LIGHT"`) + +* `SMART_HOME_CONTACT_SENSOR` (value: `"SMART_HOME_CONTACT_SENSOR"`) + +* `SMART_HOME_MOTION_SENSOR` (value: `"SMART_HOME_MOTION_SENSOR"`) + +* `SMART_HOME_SMART_PLUG` (value: `"SMART_HOME_SMART_PLUG"`) + +* `SMART_HOME_TEMPERATURE` (value: `"SMART_HOME_TEMPERATURE"`) + +* `SMART_HOME_TEMPERATURE_C` (value: `"SMART_HOME_TEMPERATURE_C"`) + +* `SMART_HOME_TEMPERATURE_F` (value: `"SMART_HOME_TEMPERATURE_F"`) + +* `SMART_HOME_SWITCH` (value: `"SMART_HOME_SWITCH"`) + +* `SMART_HOME_TELEVISION` (value: `"SMART_HOME_TELEVISION"`) + +* `ENERGY` (value: `"ENERGY"`) + +* `FORCE` (value: `"FORCE"`) + +* `TEMPERATURE` (value: `"TEMPERATURE"`) + +* `POWER` (value: `"POWER"`) + +* `ELECTRIC_CURRENT` (value: `"ELECTRIC_CURRENT"`) + +* `ELECTRIC_POTENTIAL` (value: `"ELECTRIC_POTENTIAL"`) + +* `ELECTRICAL_RESISTANCE` (value: `"ELECTRICAL_RESISTANCE"`) + +* `CAPACITANCE` (value: `"CAPACITANCE"`) + +* `TIME` (value: `"TIME"`) + +* `FREQUENCY` (value: `"FREQUENCY"`) + +* `DATA_RATE` (value: `"DATA_RATE"`) + +* `ACCELERATION` (value: `"ACCELERATION"`) + +* `AREA` (value: `"AREA"`) + +* `LENGTH` (value: `"LENGTH"`) + +* `VELOCITY` (value: `"VELOCITY"`) + +* `MASS` (value: `"MASS"`) + +* `VOLUME` (value: `"VOLUME"`) + +* `FLOW_RATE` (value: `"FLOW_RATE"`) + +* `ANGLE` (value: `"ANGLE"`) + +* `ILLUMINANCE` (value: `"ILLUMINANCE"`) + +* `LUMINOUS_FLUX` (value: `"LUMINOUS_FLUX"`) + +* `LUMINANCE` (value: `"LUMINANCE"`) + +* `LUMINOUS_INTENSITY` (value: `"LUMINOUS_INTENSITY"`) + +* `LOGARITHMIC_QUANTITY` (value: `"LOGARITHMIC_QUANTITY"`) + +* `PRESSURE` (value: `"PRESSURE"`) + +* `INFORMATION_CONTENT` (value: `"INFORMATION_CONTENT"`) + +* `SCHEDULE` (value: `"SCHEDULE"`) + + + + + +## Enum: UpdateStrategyEnum + + +* `ON_CHANGE` (value: `"ON_CHANGE"`) + +* `TIMED` (value: `"TIMED"`) + + + + diff --git a/docs/PropertyTypesV1Api.md b/docs/PropertyTypesV1Api.md new file mode 100644 index 0000000..d7f4aea --- /dev/null +++ b/docs/PropertyTypesV1Api.md @@ -0,0 +1,53 @@ +# ArduinoIotClient.PropertyTypesV1Api + +All URIs are relative to *https://api2.arduino.cc/iot* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**propertyTypesV1ListTypes**](PropertyTypesV1Api.md#propertyTypesV1ListTypes) | **GET** /v1/property_types | listTypes property_types_v1 + + + +## propertyTypesV1ListTypes + +> [ArduinoPropertytype] propertyTypesV1ListTypes() + +listTypes property_types_v1 + +Returns the list of available property types + +### 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.PropertyTypesV1Api(); +apiInstance.propertyTypesV1ListTypes().then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**[ArduinoPropertytype]**](ArduinoPropertytype.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.arduino.propertytype+json; type=collection, application/vnd.goa.error+json + diff --git a/docs/PropertyValue.md b/docs/PropertyValue.md new file mode 100644 index 0000000..d0b6b2e --- /dev/null +++ b/docs/PropertyValue.md @@ -0,0 +1,10 @@ +# ArduinoIotClient.PropertyValue + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**deviceId** | **String** | The device who send the property | [optional] +**value** | **Object** | The property value | + + diff --git a/docs/SeriesV2Api.md b/docs/SeriesV2Api.md new file mode 100644 index 0000000..cf19d11 --- /dev/null +++ b/docs/SeriesV2Api.md @@ -0,0 +1,273 @@ +# ArduinoIotClient.SeriesV2Api + +All URIs are relative to *https://api2.arduino.cc/iot* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**seriesV2BatchQuery**](SeriesV2Api.md#seriesV2BatchQuery) | **POST** /v2/series/batch_query | batch_query series_v2 +[**seriesV2BatchQueryRaw**](SeriesV2Api.md#seriesV2BatchQueryRaw) | **POST** /v2/series/batch_query_raw | batch_query_raw series_v2 +[**seriesV2BatchQueryRawLastValue**](SeriesV2Api.md#seriesV2BatchQueryRawLastValue) | **POST** /v2/series/batch_query_raw/lastvalue | batch_query_raw_last_value series_v2 +[**seriesV2BatchQuerySampling**](SeriesV2Api.md#seriesV2BatchQuerySampling) | **POST** /v2/series/batch_query_sampling | batch_query_sampling series_v2 +[**seriesV2HistoricData**](SeriesV2Api.md#seriesV2HistoricData) | **POST** /v2/series/historic_data | historic_data series_v2 + + + +## seriesV2BatchQuery + +> ArduinoSeriesBatch seriesV2BatchQuery(batchQueryRequestsMediaV1, opts) + +batch_query series_v2 + +Returns the batch of time-series aggregated samples + +### 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.SeriesV2Api(); +let batchQueryRequestsMediaV1 = new ArduinoIotClient.BatchQueryRequestsMediaV1(); // BatchQueryRequestsMediaV1 | +let opts = { + 'xOrganization': "xOrganization_example" // String | +}; +apiInstance.seriesV2BatchQuery(batchQueryRequestsMediaV1, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **batchQueryRequestsMediaV1** | [**BatchQueryRequestsMediaV1**](BatchQueryRequestsMediaV1.md)| | + **xOrganization** | **String**| | [optional] + +### Return type + +[**ArduinoSeriesBatch**](ArduinoSeriesBatch.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded +- **Accept**: application/vnd.arduino.series.batch+json, application/vnd.goa.error+json + + +## seriesV2BatchQueryRaw + +> ArduinoSeriesRawBatch seriesV2BatchQueryRaw(batchQueryRawRequestsMediaV1, opts) + +batch_query_raw series_v2 + +Returns the batch of time-series raw samples + +### 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.SeriesV2Api(); +let batchQueryRawRequestsMediaV1 = new ArduinoIotClient.BatchQueryRawRequestsMediaV1(); // BatchQueryRawRequestsMediaV1 | +let opts = { + 'xOrganization': "xOrganization_example" // String | +}; +apiInstance.seriesV2BatchQueryRaw(batchQueryRawRequestsMediaV1, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **batchQueryRawRequestsMediaV1** | [**BatchQueryRawRequestsMediaV1**](BatchQueryRawRequestsMediaV1.md)| | + **xOrganization** | **String**| | [optional] + +### Return type + +[**ArduinoSeriesRawBatch**](ArduinoSeriesRawBatch.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded +- **Accept**: application/vnd.arduino.series.raw.batch+json, application/vnd.goa.error+json + + +## seriesV2BatchQueryRawLastValue + +> ArduinoSeriesRawBatchLastvalue seriesV2BatchQueryRawLastValue(batchLastValueRequestsMediaV1, opts) + +batch_query_raw_last_value series_v2 + +Returns the batch of time-series data raw + +### 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.SeriesV2Api(); +let batchLastValueRequestsMediaV1 = new ArduinoIotClient.BatchLastValueRequestsMediaV1(); // BatchLastValueRequestsMediaV1 | +let opts = { + 'xOrganization': "xOrganization_example" // String | +}; +apiInstance.seriesV2BatchQueryRawLastValue(batchLastValueRequestsMediaV1, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **batchLastValueRequestsMediaV1** | [**BatchLastValueRequestsMediaV1**](BatchLastValueRequestsMediaV1.md)| | + **xOrganization** | **String**| | [optional] + +### Return type + +[**ArduinoSeriesRawBatchLastvalue**](ArduinoSeriesRawBatchLastvalue.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded +- **Accept**: application/vnd.arduino.series.raw.batch.lastvalue+json, application/vnd.goa.error+json + + +## seriesV2BatchQuerySampling + +> ArduinoSeriesBatchSampled seriesV2BatchQuerySampling(batchQuerySampledRequestsMediaV1, opts) + +batch_query_sampling series_v2 + +Returns a batch of time-series sampled samples. To be used for types that does not support mathematic aggregation. Types supported: strings, complex types. + +### 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.SeriesV2Api(); +let batchQuerySampledRequestsMediaV1 = new ArduinoIotClient.BatchQuerySampledRequestsMediaV1(); // BatchQuerySampledRequestsMediaV1 | +let opts = { + 'xOrganization': "xOrganization_example" // String | +}; +apiInstance.seriesV2BatchQuerySampling(batchQuerySampledRequestsMediaV1, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **batchQuerySampledRequestsMediaV1** | [**BatchQuerySampledRequestsMediaV1**](BatchQuerySampledRequestsMediaV1.md)| | + **xOrganization** | **String**| | [optional] + +### Return type + +[**ArduinoSeriesBatchSampled**](ArduinoSeriesBatchSampled.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded +- **Accept**: application/vnd.arduino.series.batch.sampled+json, application/vnd.goa.error+json + + +## seriesV2HistoricData + +> seriesV2HistoricData(historicDataRequest, opts) + +historic_data series_v2 + +Request sending of historical data of properties by email + +### 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.SeriesV2Api(); +let historicDataRequest = new ArduinoIotClient.HistoricDataRequest(); // HistoricDataRequest | +let opts = { + 'xOrganization': "xOrganization_example" // String | +}; +apiInstance.seriesV2HistoricData(historicDataRequest, opts).then(() => { + console.log('API called successfully.'); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **historicDataRequest** | [**HistoricDataRequest**](HistoricDataRequest.md)| | + **xOrganization** | **String**| | [optional] + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded +- **Accept**: application/vnd.goa.error+json + diff --git a/docs/Sharerequest.md b/docs/Sharerequest.md new file mode 100644 index 0000000..fb54b84 --- /dev/null +++ b/docs/Sharerequest.md @@ -0,0 +1,9 @@ +# ArduinoIotClient.Sharerequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **String** | The message the user want to send to the dashboard owner | [optional] + + diff --git a/docs/Tag.md b/docs/Tag.md new file mode 100644 index 0000000..1b25bfb --- /dev/null +++ b/docs/Tag.md @@ -0,0 +1,10 @@ +# ArduinoIotClient.Tag + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**key** | **String** | Key of the tag | +**value** | **String** | Value of the tag | + + diff --git a/docs/Template.md b/docs/Template.md new file mode 100644 index 0000000..1629a9c --- /dev/null +++ b/docs/Template.md @@ -0,0 +1,12 @@ +# ArduinoIotClient.Template + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**customTemplateId** | **String** | The name of the directory on S3 bucket containing the user's template | [optional] +**prefixName** | **String** | The prefix to apply to the names of the generated resources | [optional] +**templateName** | **String** | The name of the directory on S3 bucket containing the template | +**thingsOptions** | **{String: Object}** | | [optional] + + diff --git a/docs/TemplatesApi.md b/docs/TemplatesApi.md new file mode 100644 index 0000000..d6daccd --- /dev/null +++ b/docs/TemplatesApi.md @@ -0,0 +1,57 @@ +# ArduinoIotClient.TemplatesApi + +All URIs are relative to *https://api2.arduino.cc/iot* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**templatesApply**](TemplatesApi.md#templatesApply) | **PUT** /v1/templates | apply templates + + + +## templatesApply + +> ArduinoTemplate templatesApply(template, opts) + +apply templates + +Apply an existing cloud template and generate all the needed resources + +### Example + +```javascript +import ArduinoIotClient from '@arduino/arduino-iot-client'; + +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 | +}; +apiInstance.templatesApply(template, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **template** | [**Template**](Template.md)| TemplatePayload describes the needed attribute to apply a template | + **xOrganization** | **String**| | [optional] + +### Return type + +[**ArduinoTemplate**](ArduinoTemplate.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded +- **Accept**: application/vnd.arduino.template+json, application/vnd.goa.error+json + diff --git a/docs/ThingClone.md b/docs/ThingClone.md new file mode 100644 index 0000000..4e2c628 --- /dev/null +++ b/docs/ThingClone.md @@ -0,0 +1,10 @@ +# ArduinoIotClient.ThingClone + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**includeTags** | **Boolean** | Include tags in clone procedure | [optional] +**name** | **String** | The friendly name of the thing | + + diff --git a/docs/ThingCreate.md b/docs/ThingCreate.md new file mode 100644 index 0000000..4e89900 --- /dev/null +++ b/docs/ThingCreate.md @@ -0,0 +1,30 @@ +# ArduinoIotClient.ThingCreate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**assistant** | **String** | The kind of voice assistant the thing is connected to, it can be ALEXA | GOOGLE | NONE | [optional] +**deviceId** | **String** | The arn of the associated device | [optional] +**id** | **String** | The id of the thing | [optional] +**name** | **String** | The friendly name of the thing | [optional] +**properties** | [**[Property]**](Property.md) | The properties of the thing | [optional] +**tags** | [**[Tag]**](Tag.md) | Optional set of tags | [optional] +**timezone** | **String** | A time zone name Check /v2/timezones for a list of valid names. | [optional] [default to 'America/New_York'] +**webhookActive** | **Boolean** | Webhook uri | [optional] +**webhookUri** | **String** | Webhook uri | [optional] + + + +## Enum: AssistantEnum + + +* `ALEXA` (value: `"ALEXA"`) + +* `GOOGLE` (value: `"GOOGLE"`) + +* `NONE` (value: `"NONE"`) + + + + diff --git a/docs/ThingSketch.md b/docs/ThingSketch.md new file mode 100644 index 0000000..929c3e7 --- /dev/null +++ b/docs/ThingSketch.md @@ -0,0 +1,20 @@ +# ArduinoIotClient.ThingSketch + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sketchVersion** | **String** | The autogenerated sketch version | [optional] + + + +## Enum: SketchVersionEnum + + +* `v1` (value: `"v1"`) + +* `v2` (value: `"v2"`) + + + + diff --git a/docs/ThingUpdate.md b/docs/ThingUpdate.md new file mode 100644 index 0000000..02269cf --- /dev/null +++ b/docs/ThingUpdate.md @@ -0,0 +1,29 @@ +# ArduinoIotClient.ThingUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**assistant** | **String** | The kind of voice assistant the thing is connected to, it can be ALEXA | GOOGLE | NONE | [optional] +**deviceId** | **String** | The arn of the associated device | [optional] +**id** | **String** | The id of the thing | [optional] +**name** | **String** | The friendly name of the thing | [optional] +**properties** | [**[Property]**](Property.md) | The properties of the thing | [optional] +**timezone** | **String** | A time zone name. Check /v2/timezones for a list of valid names. | [optional] +**webhookActive** | **Boolean** | Webhook uri | [optional] +**webhookUri** | **String** | Webhook uri | [optional] + + + +## Enum: AssistantEnum + + +* `ALEXA` (value: `"ALEXA"`) + +* `GOOGLE` (value: `"GOOGLE"`) + +* `NONE` (value: `"NONE"`) + + + + diff --git a/docs/ThingsV2Api.md b/docs/ThingsV2Api.md new file mode 100644 index 0000000..b8496cb --- /dev/null +++ b/docs/ThingsV2Api.md @@ -0,0 +1,564 @@ +# ArduinoIotClient.ThingsV2Api + +All URIs are relative to *https://api2.arduino.cc/iot* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**thingsV2Clone**](ThingsV2Api.md#thingsV2Clone) | **PUT** /v2/things/{id}/clone | clone things_v2 +[**thingsV2Create**](ThingsV2Api.md#thingsV2Create) | **PUT** /v2/things | create things_v2 +[**thingsV2CreateSketch**](ThingsV2Api.md#thingsV2CreateSketch) | **PUT** /v2/things/{id}/sketch | createSketch things_v2 +[**thingsV2Delete**](ThingsV2Api.md#thingsV2Delete) | **DELETE** /v2/things/{id} | delete things_v2 +[**thingsV2DeleteSketch**](ThingsV2Api.md#thingsV2DeleteSketch) | **DELETE** /v2/things/{id}/sketch | deleteSketch things_v2 +[**thingsV2List**](ThingsV2Api.md#thingsV2List) | **GET** /v2/things | list things_v2 +[**thingsV2Show**](ThingsV2Api.md#thingsV2Show) | **GET** /v2/things/{id} | show things_v2 +[**thingsV2Template**](ThingsV2Api.md#thingsV2Template) | **GET** /v2/things/{id}/template | template things_v2 +[**thingsV2Update**](ThingsV2Api.md#thingsV2Update) | **POST** /v2/things/{id} | update things_v2 +[**thingsV2UpdateSketch**](ThingsV2Api.md#thingsV2UpdateSketch) | **PUT** /v2/things/{id}/sketch/{sketchId} | updateSketch things_v2 + + + +## thingsV2Clone + +> ArduinoThing thingsV2Clone(id, thingClone, opts) + +clone things_v2 + +Clone a given thing + +### 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.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 | +}; +apiInstance.thingsV2Clone(id, thingClone, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +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**| | [optional] + +### Return type + +[**ArduinoThing**](ArduinoThing.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded +- **Accept**: application/vnd.arduino.thing+json, application/vnd.goa.error+json + + +## thingsV2Create + +> ArduinoThing thingsV2Create(thingCreate, opts) + +create things_v2 + +Creates a new thing 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.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 | +}; +apiInstance.thingsV2Create(thingCreate, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +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**| | [optional] + +### Return type + +[**ArduinoThing**](ArduinoThing.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded +- **Accept**: application/vnd.arduino.thing+json, application/vnd.goa.error+json + + +## thingsV2CreateSketch + +> ArduinoThing thingsV2CreateSketch(id, thingSketch, opts) + +createSketch things_v2 + +Creates a new sketch thing associated to the thing + +### 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.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 | +}; +apiInstance.thingsV2CreateSketch(id, thingSketch, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| The id of the thing | + **thingSketch** | [**ThingSketch**](ThingSketch.md)| ThingSketchPayload describes a sketch of a thing | + **xOrganization** | **String**| | [optional] + +### Return type + +[**ArduinoThing**](ArduinoThing.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded +- **Accept**: application/vnd.arduino.thing+json, application/vnd.goa.error+json + + +## thingsV2Delete + +> thingsV2Delete(id, opts) + +delete things_v2 + +Removes a thing 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.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 | +}; +apiInstance.thingsV2Delete(id, opts).then(() => { + console.log('API called successfully.'); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +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**| | [optional] + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.goa.error+json, text/plain + + +## thingsV2DeleteSketch + +> ArduinoThing thingsV2DeleteSketch(id, opts) + +deleteSketch things_v2 + +### 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.ThingsV2Api(); +let id = "id_example"; // String | The id of the thing +let opts = { + 'xOrganization': "xOrganization_example" // String | +}; +apiInstance.thingsV2DeleteSketch(id, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| The id of the thing | + **xOrganization** | **String**| | [optional] + +### Return type + +[**ArduinoThing**](ArduinoThing.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.arduino.thing+json, application/vnd.goa.error+json + + +## thingsV2List + +> [ArduinoThing] thingsV2List(opts) + +list things_v2 + +Returns the list of things 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.ThingsV2Api(); +let opts = { + 'acrossUserIds': false, // Boolean | If true, returns all the things + 'deviceId': "deviceId_example", // String | The id of the device you want to filter + 'ids': ["null"], // [String] | Filter only the desired things + '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 | +}; +apiInstance.thingsV2List(opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **acrossUserIds** | **Boolean**| If true, returns all the things | [optional] [default to false] + **deviceId** | **String**| The id of the device you want to filter | [optional] + **ids** | [**[String]**](String.md)| Filter only the desired things | [optional] + **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**| | [optional] + +### Return type + +[**[ArduinoThing]**](ArduinoThing.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.arduino.thing+json; type=collection, application/vnd.goa.error+json + + +## thingsV2Show + +> ArduinoThing thingsV2Show(id, opts) + +show things_v2 + +Returns the thing requested by 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.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 | +}; +apiInstance.thingsV2Show(id, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +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**| | [optional] + +### Return type + +[**ArduinoThing**](ArduinoThing.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.arduino.thing+json, application/vnd.goa.error+json + + +## thingsV2Template + +> ArduinoThingtemplate thingsV2Template(id, opts) + +template things_v2 + +Extract template from the given thing + +### 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.ThingsV2Api(); +let id = "id_example"; // String | The id of the thing +let opts = { + 'xOrganization': "xOrganization_example" // String | +}; +apiInstance.thingsV2Template(id, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| The id of the thing | + **xOrganization** | **String**| | [optional] + +### Return type + +[**ArduinoThingtemplate**](ArduinoThingtemplate.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.arduino.thingtemplate+json, application/vnd.goa.error+json + + +## thingsV2Update + +> ArduinoThing thingsV2Update(id, thingUpdate, opts) + +update things_v2 + +Updates a thing 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.ThingsV2Api(); +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 | +}; +apiInstance.thingsV2Update(id, thingUpdate, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +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**| | [optional] + +### Return type + +[**ArduinoThing**](ArduinoThing.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded +- **Accept**: application/vnd.arduino.thing+json, application/vnd.goa.error+json + + +## thingsV2UpdateSketch + +> ArduinoThing thingsV2UpdateSketch(id, sketchId, opts) + +updateSketch things_v2 + +Update an existing thing sketch + +### 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.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 | + 'updateSketch': new ArduinoIotClient.UpdateSketch() // UpdateSketch | +}; +apiInstance.thingsV2UpdateSketch(id, sketchId, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| The id of the thing | + **sketchId** | **String**| The id of the sketch | + **xOrganization** | **String**| | [optional] + **updateSketch** | [**UpdateSketch**](UpdateSketch.md)| | [optional] + +### Return type + +[**ArduinoThing**](ArduinoThing.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded +- **Accept**: application/vnd.arduino.thing+json, application/vnd.goa.error+json + diff --git a/docs/ThingsV2TagsApi.md b/docs/ThingsV2TagsApi.md new file mode 100644 index 0000000..9970ce6 --- /dev/null +++ b/docs/ThingsV2TagsApi.md @@ -0,0 +1,159 @@ +# ArduinoIotClient.ThingsV2TagsApi + +All URIs are relative to *https://api2.arduino.cc/iot* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**thingsV2TagsDelete**](ThingsV2TagsApi.md#thingsV2TagsDelete) | **DELETE** /v2/things/{id}/tags/{key} | delete things_v2_tags +[**thingsV2TagsList**](ThingsV2TagsApi.md#thingsV2TagsList) | **GET** /v2/things/{id}/tags | list things_v2_tags +[**thingsV2TagsUpsert**](ThingsV2TagsApi.md#thingsV2TagsUpsert) | **PUT** /v2/things/{id}/tags | upsert things_v2_tags + + + +## thingsV2TagsDelete + +> thingsV2TagsDelete(id, key) + +delete things_v2_tags + +Delete a tag associated to the thing given its key. + +### 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.ThingsV2TagsApi(); +let id = "id_example"; // String | The id of the thing +let key = "key_example"; // String | The key of the tag +apiInstance.thingsV2TagsDelete(id, key).then(() => { + console.log('API called successfully.'); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| The id of the thing | + **key** | **String**| The key of the tag | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.goa.error+json, text/plain + + +## thingsV2TagsList + +> ArduinoTags thingsV2TagsList(id) + +list things_v2_tags + +List tags associated to the thing. + +### 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.ThingsV2TagsApi(); +let id = "id_example"; // String | The id of the thing +apiInstance.thingsV2TagsList(id).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| The id of the thing | + +### Return type + +[**ArduinoTags**](ArduinoTags.md) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.arduino.tags+json, application/vnd.goa.error+json + + +## thingsV2TagsUpsert + +> thingsV2TagsUpsert(id, tag) + +upsert things_v2_tags + +Creates or updates a tag associated to the thing. + +### 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.ThingsV2TagsApi(); +let id = "id_example"; // String | The id of the thing +let tag = new ArduinoIotClient.Tag(); // Tag | +apiInstance.thingsV2TagsUpsert(id, tag).then(() => { + console.log('API called successfully.'); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| The id of the thing | + **tag** | [**Tag**](Tag.md)| | + +### Return type + +null (empty response body) + +### Authorization + +[oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json, application/x-www-form-urlencoded +- **Accept**: application/vnd.goa.error+json, text/plain + diff --git a/docs/TimeseriesDataPoint.md b/docs/TimeseriesDataPoint.md new file mode 100644 index 0000000..05776f0 --- /dev/null +++ b/docs/TimeseriesDataPoint.md @@ -0,0 +1,10 @@ +# ArduinoIotClient.TimeseriesDataPoint + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**time** | **Date** | Binning timestamp | +**value** | **Number** | Avg value on the binning interval | + + diff --git a/docs/UpdateSketch.md b/docs/UpdateSketch.md new file mode 100644 index 0000000..baef788 --- /dev/null +++ b/docs/UpdateSketch.md @@ -0,0 +1,20 @@ +# ArduinoIotClient.UpdateSketch + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sketchVersion** | **String** | The autogenerated sketch version | [optional] + + + +## Enum: SketchVersionEnum + + +* `v1` (value: `"v1"`) + +* `v2` (value: `"v2"`) + + + + diff --git a/docs/Widget.md b/docs/Widget.md new file mode 100644 index 0000000..df947a5 --- /dev/null +++ b/docs/Widget.md @@ -0,0 +1,21 @@ +# ArduinoIotClient.Widget + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**height** | **Number** | Widget current height for desktop | +**heightMobile** | **Number** | Widget current height for mobile | [optional] +**id** | **String** | The UUID of the widget, set by client | +**name** | **String** | The name of the widget | [optional] +**options** | **{String: Object}** | Widget options | +**type** | **String** | The type of the widget | +**variables** | **[String]** | | [optional] +**width** | **Number** | Widget current width for desktop | +**widthMobile** | **Number** | Widget current width for mobile | [optional] +**x** | **Number** | Widget x position for desktop | +**xMobile** | **Number** | Widget x position for mobile | [optional] +**y** | **Number** | Widget y position for desktop | +**yMobile** | **Number** | Widget y position for mobile | [optional] + + diff --git a/docs/Widgetlink.md b/docs/Widgetlink.md new file mode 100644 index 0000000..b2cb25b --- /dev/null +++ b/docs/Widgetlink.md @@ -0,0 +1,9 @@ +# ArduinoIotClient.Widgetlink + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**variables** | **[String]** | | [optional] + + diff --git a/package.json b/package.json index 25e96d5..dd965e5 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@arduino/arduino-iot-client", - "version": "2.0.5", - "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)", + "version": "2.0.6", + "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", "scripts": { diff --git a/src/ApiClient.js b/src/ApiClient.js index b0f694b..7bae625 100644 --- a/src/ApiClient.js +++ b/src/ApiClient.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -17,7 +17,7 @@ import querystring from "querystring"; /** * @module ApiClient -* @version 2.0.5 +* @version 2.0.6 */ /** @@ -55,7 +55,7 @@ class ApiClient { * @default {} */ this.defaultHeaders = { - 'User-Agent': 'OpenAPI/1.3.5/javascript' + 'User-Agent': 'OpenAPI-Generator/2.0.6/Javascript' }; /** @@ -155,7 +155,7 @@ class ApiClient { url = apiBasePath + path; } - url = url.replace(/\{([\w-\.]+)\}/g, (fullMatch, key) => { + url = url.replace(/\{([\w-\.#]+)\}/g, (fullMatch, key) => { var value; if (pathParams.hasOwnProperty(key)) { value = this.paramToString(pathParams[key]); diff --git a/src/api/DashboardsV2Api.js b/src/api/DashboardsV2Api.js index eeb2a5a..8a6e252 100644 --- a/src/api/DashboardsV2Api.js +++ b/src/api/DashboardsV2Api.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -27,7 +27,7 @@ import Widgetlink from '../model/Widgetlink'; /** * DashboardsV2 service. * @module api/DashboardsV2Api -* @version 2.0.5 +* @version 2.0.6 */ export default class DashboardsV2Api { diff --git a/src/api/DevicesV2Api.js b/src/api/DevicesV2Api.js index 54222c9..09eb86c 100644 --- a/src/api/DevicesV2Api.js +++ b/src/api/DevicesV2Api.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -26,7 +26,7 @@ import PropertiesValues from '../model/PropertiesValues'; /** * DevicesV2 service. * @module api/DevicesV2Api -* @version 2.0.5 +* @version 2.0.6 */ export default class DevicesV2Api { diff --git a/src/api/DevicesV2CertsApi.js b/src/api/DevicesV2CertsApi.js index 90083d2..366b75e 100644 --- a/src/api/DevicesV2CertsApi.js +++ b/src/api/DevicesV2CertsApi.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -21,7 +21,7 @@ import Error from '../model/Error'; /** * DevicesV2Certs service. * @module api/DevicesV2CertsApi -* @version 2.0.5 +* @version 2.0.6 */ export default class DevicesV2CertsApi { diff --git a/src/api/DevicesV2OtaApi.js b/src/api/DevicesV2OtaApi.js index 2570a4f..959e356 100644 --- a/src/api/DevicesV2OtaApi.js +++ b/src/api/DevicesV2OtaApi.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -21,7 +21,7 @@ import Error from '../model/Error'; /** * DevicesV2Ota service. * @module api/DevicesV2OtaApi -* @version 2.0.5 +* @version 2.0.6 */ export default class DevicesV2OtaApi { diff --git a/src/api/DevicesV2PassApi.js b/src/api/DevicesV2PassApi.js index 3c07bda..55d000f 100644 --- a/src/api/DevicesV2PassApi.js +++ b/src/api/DevicesV2PassApi.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -21,7 +21,7 @@ import Error from '../model/Error'; /** * DevicesV2Pass service. * @module api/DevicesV2PassApi -* @version 2.0.5 +* @version 2.0.6 */ export default class DevicesV2PassApi { diff --git a/src/api/DevicesV2TagsApi.js b/src/api/DevicesV2TagsApi.js index e8ff514..af78107 100644 --- a/src/api/DevicesV2TagsApi.js +++ b/src/api/DevicesV2TagsApi.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -20,7 +20,7 @@ import Tag from '../model/Tag'; /** * DevicesV2Tags service. * @module api/DevicesV2TagsApi -* @version 2.0.5 +* @version 2.0.6 */ export default class DevicesV2TagsApi { diff --git a/src/api/LoraDevicesV1Api.js b/src/api/LoraDevicesV1Api.js index 5d07f27..80df665 100644 --- a/src/api/LoraDevicesV1Api.js +++ b/src/api/LoraDevicesV1Api.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -19,7 +19,7 @@ import CreateLoraDevicesV1Payload from '../model/CreateLoraDevicesV1Payload'; /** * LoraDevicesV1 service. * @module api/LoraDevicesV1Api -* @version 2.0.5 +* @version 2.0.6 */ export default class LoraDevicesV1Api { diff --git a/src/api/LoraFreqPlanV1Api.js b/src/api/LoraFreqPlanV1Api.js index 64588a8..00e6178 100644 --- a/src/api/LoraFreqPlanV1Api.js +++ b/src/api/LoraFreqPlanV1Api.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -19,7 +19,7 @@ import Error from '../model/Error'; /** * LoraFreqPlanV1 service. * @module api/LoraFreqPlanV1Api -* @version 2.0.5 +* @version 2.0.6 */ export default class LoraFreqPlanV1Api { diff --git a/src/api/NetworkCredentialsV1Api.js b/src/api/NetworkCredentialsV1Api.js index 481b091..9a91514 100644 --- a/src/api/NetworkCredentialsV1Api.js +++ b/src/api/NetworkCredentialsV1Api.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -14,11 +14,12 @@ import ApiClient from "../ApiClient"; import ArduinoCredentialsv1 from '../model/ArduinoCredentialsv1'; +import Error from '../model/Error'; /** * NetworkCredentialsV1 service. * @module api/NetworkCredentialsV1Api -* @version 2.0.5 +* @version 2.0.6 */ export default class NetworkCredentialsV1Api { @@ -64,7 +65,7 @@ export default class NetworkCredentialsV1Api { let authNames = []; let contentTypes = []; - let accepts = ['application/vnd.arduino.credentialsv1+json; type=collection']; + let accepts = ['application/vnd.arduino.credentialsv1+json; type=collection', 'application/vnd.goa.error+json']; let returnType = [ArduinoCredentialsv1]; return this.apiClient.callApi( '/v1/network_credentials/{type}', 'GET', @@ -114,7 +115,7 @@ export default class NetworkCredentialsV1Api { let authNames = []; let contentTypes = []; - let accepts = []; + let accepts = ['application/json', 'application/vnd.goa.error+json']; let returnType = null; return this.apiClient.callApi( '/v1/network_credentials/{type}/connections', 'GET', diff --git a/src/api/PropertiesV2Api.js b/src/api/PropertiesV2Api.js index 7cd85f0..217b188 100644 --- a/src/api/PropertiesV2Api.js +++ b/src/api/PropertiesV2Api.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -22,7 +22,7 @@ import PropertyValue from '../model/PropertyValue'; /** * PropertiesV2 service. * @module api/PropertiesV2Api -* @version 2.0.5 +* @version 2.0.6 */ export default class PropertiesV2Api { diff --git a/src/api/PropertyTypesV1Api.js b/src/api/PropertyTypesV1Api.js new file mode 100644 index 0000000..90ce332 --- /dev/null +++ b/src/api/PropertyTypesV1Api.js @@ -0,0 +1,80 @@ +/** + * Arduino IoT Cloud API + * Provides a set of endpoints to manage Arduino IoT Cloud **Devices**, **Things**, **Properties** and **Timeseries**. This API can be called just with any HTTP Client, or using one of these clients: * [Javascript NPM package](https://www.npmjs.com/package/@arduino/arduino-iot-client) * [Python PYPI Package](https://pypi.org/project/arduino-iot-client/) * [Golang Module](https://github.com/arduino/iot-client-go) + * + * The version of the OpenAPI document: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import ArduinoPropertytype from '../model/ArduinoPropertytype'; +import Error from '../model/Error'; + +/** +* PropertyTypesV1 service. +* @module api/PropertyTypesV1Api +* @version 2.0.6 +*/ +export default class PropertyTypesV1Api { + + /** + * Constructs a new PropertyTypesV1Api. + * @alias module:api/PropertyTypesV1Api + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + + /** + * listTypes property_types_v1 + * Returns the list of available property types + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.} and HTTP response + */ + propertyTypesV1ListTypesWithHttpInfo() { + let postBody = null; + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['oauth2']; + let contentTypes = []; + let accepts = ['application/vnd.arduino.propertytype+json; type=collection', 'application/vnd.goa.error+json']; + let returnType = [ArduinoPropertytype]; + return this.apiClient.callApi( + '/v1/property_types', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * listTypes property_types_v1 + * Returns the list of available property types + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.} + */ + propertyTypesV1ListTypes() { + return this.propertyTypesV1ListTypesWithHttpInfo() + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + +} diff --git a/src/api/SeriesV2Api.js b/src/api/SeriesV2Api.js index a23fa19..0430215 100644 --- a/src/api/SeriesV2Api.js +++ b/src/api/SeriesV2Api.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -27,7 +27,7 @@ import HistoricDataRequest from '../model/HistoricDataRequest'; /** * SeriesV2 service. * @module api/SeriesV2Api -* @version 2.0.5 +* @version 2.0.6 */ export default class SeriesV2Api { diff --git a/src/api/TemplatesApi.js b/src/api/TemplatesApi.js index 5750dbb..cdbb4ff 100644 --- a/src/api/TemplatesApi.js +++ b/src/api/TemplatesApi.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -20,7 +20,7 @@ import Template from '../model/Template'; /** * Templates service. * @module api/TemplatesApi -* @version 2.0.5 +* @version 2.0.6 */ export default class TemplatesApi { diff --git a/src/api/ThingsV2Api.js b/src/api/ThingsV2Api.js index 12ff621..c728a69 100644 --- a/src/api/ThingsV2Api.js +++ b/src/api/ThingsV2Api.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -25,7 +25,7 @@ import UpdateSketch from '../model/UpdateSketch'; /** * ThingsV2 service. * @module api/ThingsV2Api -* @version 2.0.5 +* @version 2.0.6 */ export default class ThingsV2Api { diff --git a/src/api/ThingsV2TagsApi.js b/src/api/ThingsV2TagsApi.js index 0aefd38..a9c675e 100644 --- a/src/api/ThingsV2TagsApi.js +++ b/src/api/ThingsV2TagsApi.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -20,7 +20,7 @@ import Tag from '../model/Tag'; /** * ThingsV2Tags service. * @module api/ThingsV2TagsApi -* @version 2.0.5 +* @version 2.0.6 */ export default class ThingsV2TagsApi { diff --git a/src/index.js b/src/index.js index 174acc7..2b7192d 100644 --- a/src/index.js +++ b/src/index.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -40,6 +40,7 @@ import ArduinoLoradevicev1 from './model/ArduinoLoradevicev1'; import ArduinoLorafreqplansv1 from './model/ArduinoLorafreqplansv1'; import ArduinoLorafreqplanv1 from './model/ArduinoLorafreqplanv1'; import ArduinoProperty from './model/ArduinoProperty'; +import ArduinoPropertytype from './model/ArduinoPropertytype'; import ArduinoSeriesBatch from './model/ArduinoSeriesBatch'; import ArduinoSeriesBatchSampled from './model/ArduinoSeriesBatchSampled'; import ArduinoSeriesRawBatch from './model/ArduinoSeriesRawBatch'; @@ -109,6 +110,7 @@ import LoraDevicesV1Api from './api/LoraDevicesV1Api'; import LoraFreqPlanV1Api from './api/LoraFreqPlanV1Api'; import NetworkCredentialsV1Api from './api/NetworkCredentialsV1Api'; import PropertiesV2Api from './api/PropertiesV2Api'; +import PropertyTypesV1Api from './api/PropertyTypesV1Api'; import SeriesV2Api from './api/SeriesV2Api'; import TemplatesApi from './api/TemplatesApi'; import ThingsV2Api from './api/ThingsV2Api'; @@ -116,7 +118,7 @@ import ThingsV2TagsApi from './api/ThingsV2TagsApi'; /** -* 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).
+* 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 index module provides access to constructors for all the classes which comprise the public API. *

* An AMD (recommended!) or CommonJS application will generally do something equivalent to the following: @@ -144,7 +146,7 @@ import ThingsV2TagsApi from './api/ThingsV2TagsApi'; * *

* @module index -* @version 2.0.5 +* @version 2.0.6 */ export { /** @@ -315,6 +317,12 @@ export { */ ArduinoProperty, + /** + * The ArduinoPropertytype model constructor. + * @property {module:model/ArduinoPropertytype} + */ + ArduinoPropertytype, + /** * The ArduinoSeriesBatch model constructor. * @property {module:model/ArduinoSeriesBatch} @@ -729,6 +737,12 @@ export { */ PropertiesV2Api, + /** + * The PropertyTypesV1Api service constructor. + * @property {module:api/PropertyTypesV1Api} + */ + PropertyTypesV1Api, + /** * The SeriesV2Api service constructor. * @property {module:api/SeriesV2Api} diff --git a/src/model/ArduinoCompressedv2.js b/src/model/ArduinoCompressedv2.js index a7c4460..0e73e4d 100644 --- a/src/model/ArduinoCompressedv2.js +++ b/src/model/ArduinoCompressedv2.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ArduinoCompressedv2 model module. * @module model/ArduinoCompressedv2 - * @version 2.0.5 + * @version 2.0.6 */ class ArduinoCompressedv2 { /** @@ -93,7 +93,7 @@ class ArduinoCompressedv2 { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of ArduinoCompressedv2.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/ArduinoCredentialsv1.js b/src/model/ArduinoCredentialsv1.js index 100030a..58d44bd 100644 --- a/src/model/ArduinoCredentialsv1.js +++ b/src/model/ArduinoCredentialsv1.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ArduinoCredentialsv1 model module. * @module model/ArduinoCredentialsv1 - * @version 2.0.5 + * @version 2.0.6 */ class ArduinoCredentialsv1 { /** @@ -80,7 +80,7 @@ class ArduinoCredentialsv1 { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of ArduinoCredentialsv1.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/ArduinoDashboardowner.js b/src/model/ArduinoDashboardowner.js index 299d218..62a5535 100644 --- a/src/model/ArduinoDashboardowner.js +++ b/src/model/ArduinoDashboardowner.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ArduinoDashboardowner model module. * @module model/ArduinoDashboardowner - * @version 2.0.5 + * @version 2.0.6 */ class ArduinoDashboardowner { /** @@ -68,7 +68,7 @@ class ArduinoDashboardowner { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of ArduinoDashboardowner.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/ArduinoDashboardshare.js b/src/model/ArduinoDashboardshare.js index a31c033..25e6a70 100644 --- a/src/model/ArduinoDashboardshare.js +++ b/src/model/ArduinoDashboardshare.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ArduinoDashboardshare model module. * @module model/ArduinoDashboardshare - * @version 2.0.5 + * @version 2.0.6 */ class ArduinoDashboardshare { /** @@ -68,7 +68,7 @@ class ArduinoDashboardshare { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of ArduinoDashboardshare.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/ArduinoDashboardv2.js b/src/model/ArduinoDashboardv2.js index 987152e..9f98b12 100644 --- a/src/model/ArduinoDashboardv2.js +++ b/src/model/ArduinoDashboardv2.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -19,7 +19,7 @@ import ArduinoWidgetv2 from './ArduinoWidgetv2'; /** * The ArduinoDashboardv2 model module. * @module model/ArduinoDashboardv2 - * @version 2.0.5 + * @version 2.0.6 */ class ArduinoDashboardv2 { /** @@ -96,7 +96,7 @@ class ArduinoDashboardv2 { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of ArduinoDashboardv2.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/ArduinoDashboardv2template.js b/src/model/ArduinoDashboardv2template.js index 115f6ca..915a068 100644 --- a/src/model/ArduinoDashboardv2template.js +++ b/src/model/ArduinoDashboardv2template.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -17,7 +17,7 @@ import ArduinoWidgetv2template from './ArduinoWidgetv2template'; /** * The ArduinoDashboardv2template model module. * @module model/ArduinoDashboardv2template - * @version 2.0.5 + * @version 2.0.6 */ class ArduinoDashboardv2template { /** @@ -75,7 +75,7 @@ class ArduinoDashboardv2template { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of ArduinoDashboardv2template.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/ArduinoDevicev2.js b/src/model/ArduinoDevicev2.js index 9e8d5ae..0144521 100644 --- a/src/model/ArduinoDevicev2.js +++ b/src/model/ArduinoDevicev2.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -19,7 +19,7 @@ import ArduinoThing from './ArduinoThing'; /** * The ArduinoDevicev2 model module. * @module model/ArduinoDevicev2 - * @version 2.0.5 + * @version 2.0.6 */ class ArduinoDevicev2 { /** @@ -149,7 +149,7 @@ class ArduinoDevicev2 { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of ArduinoDevicev2.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/ArduinoDevicev2Cert.js b/src/model/ArduinoDevicev2Cert.js index a42c761..968d963 100644 --- a/src/model/ArduinoDevicev2Cert.js +++ b/src/model/ArduinoDevicev2Cert.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -17,7 +17,7 @@ import ArduinoCompressedv2 from './ArduinoCompressedv2'; /** * The ArduinoDevicev2Cert model module. * @module model/ArduinoDevicev2Cert - * @version 2.0.5 + * @version 2.0.6 */ class ArduinoDevicev2Cert { /** @@ -99,7 +99,7 @@ class ArduinoDevicev2Cert { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of ArduinoDevicev2Cert.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/ArduinoDevicev2EventProperties.js b/src/model/ArduinoDevicev2EventProperties.js index 9b14d0d..b1b192f 100644 --- a/src/model/ArduinoDevicev2EventProperties.js +++ b/src/model/ArduinoDevicev2EventProperties.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -17,7 +17,7 @@ import ArduinoDevicev2SimpleProperties from './ArduinoDevicev2SimpleProperties'; /** * The ArduinoDevicev2EventProperties model module. * @module model/ArduinoDevicev2EventProperties - * @version 2.0.5 + * @version 2.0.6 */ class ArduinoDevicev2EventProperties { /** @@ -71,7 +71,7 @@ class ArduinoDevicev2EventProperties { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of ArduinoDevicev2EventProperties.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/ArduinoDevicev2Otaupload.js b/src/model/ArduinoDevicev2Otaupload.js index 7f6b78f..c34ea61 100644 --- a/src/model/ArduinoDevicev2Otaupload.js +++ b/src/model/ArduinoDevicev2Otaupload.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ArduinoDevicev2Otaupload model module. * @module model/ArduinoDevicev2Otaupload - * @version 2.0.5 + * @version 2.0.6 */ class ArduinoDevicev2Otaupload { /** @@ -74,7 +74,7 @@ class ArduinoDevicev2Otaupload { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of ArduinoDevicev2Otaupload.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/ArduinoDevicev2Pass.js b/src/model/ArduinoDevicev2Pass.js index 62d2e12..5144176 100644 --- a/src/model/ArduinoDevicev2Pass.js +++ b/src/model/ArduinoDevicev2Pass.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ArduinoDevicev2Pass model module. * @module model/ArduinoDevicev2Pass - * @version 2.0.5 + * @version 2.0.6 */ class ArduinoDevicev2Pass { /** @@ -68,7 +68,7 @@ class ArduinoDevicev2Pass { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of ArduinoDevicev2Pass.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/ArduinoDevicev2SimpleProperties.js b/src/model/ArduinoDevicev2SimpleProperties.js index 230234d..0bce9b8 100644 --- a/src/model/ArduinoDevicev2SimpleProperties.js +++ b/src/model/ArduinoDevicev2SimpleProperties.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ArduinoDevicev2SimpleProperties model module. * @module model/ArduinoDevicev2SimpleProperties - * @version 2.0.5 + * @version 2.0.6 */ class ArduinoDevicev2SimpleProperties { /** @@ -75,7 +75,7 @@ class ArduinoDevicev2SimpleProperties { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of ArduinoDevicev2SimpleProperties.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/ArduinoDevicev2StatusEvent.js b/src/model/ArduinoDevicev2StatusEvent.js index 7693aba..251290d 100644 --- a/src/model/ArduinoDevicev2StatusEvent.js +++ b/src/model/ArduinoDevicev2StatusEvent.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ArduinoDevicev2StatusEvent model module. * @module model/ArduinoDevicev2StatusEvent - * @version 2.0.5 + * @version 2.0.6 */ class ArduinoDevicev2StatusEvent { /** @@ -70,7 +70,7 @@ class ArduinoDevicev2StatusEvent { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of ArduinoDevicev2StatusEvent.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/ArduinoDevicev2StatusEvents.js b/src/model/ArduinoDevicev2StatusEvents.js index 2d1b5e6..d61dd78 100644 --- a/src/model/ArduinoDevicev2StatusEvents.js +++ b/src/model/ArduinoDevicev2StatusEvents.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -17,7 +17,7 @@ import ArduinoDevicev2StatusEvent from './ArduinoDevicev2StatusEvent'; /** * The ArduinoDevicev2StatusEvents model module. * @module model/ArduinoDevicev2StatusEvents - * @version 2.0.5 + * @version 2.0.6 */ class ArduinoDevicev2StatusEvents { /** @@ -71,7 +71,7 @@ class ArduinoDevicev2StatusEvents { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of ArduinoDevicev2StatusEvents.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/ArduinoDevicev2Webhook.js b/src/model/ArduinoDevicev2Webhook.js index f319b11..0309309 100644 --- a/src/model/ArduinoDevicev2Webhook.js +++ b/src/model/ArduinoDevicev2Webhook.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ArduinoDevicev2Webhook model module. * @module model/ArduinoDevicev2Webhook - * @version 2.0.5 + * @version 2.0.6 */ class ArduinoDevicev2Webhook { /** @@ -37,6 +37,7 @@ class ArduinoDevicev2Webhook { * Only for internal use. */ static initialize(obj, id, uri) { + obj['active'] = true; obj['id'] = id; obj['uri'] = uri; } @@ -73,7 +74,7 @@ class ArduinoDevicev2Webhook { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of ArduinoDevicev2Webhook.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/ArduinoDevicev2properties.js b/src/model/ArduinoDevicev2properties.js index 5512c68..73a5976 100644 --- a/src/model/ArduinoDevicev2properties.js +++ b/src/model/ArduinoDevicev2properties.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -17,7 +17,7 @@ import ArduinoProperty from './ArduinoProperty'; /** * The ArduinoDevicev2properties model module. * @module model/ArduinoDevicev2properties - * @version 2.0.5 + * @version 2.0.6 */ class ArduinoDevicev2properties { /** @@ -81,7 +81,7 @@ class ArduinoDevicev2properties { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of ArduinoDevicev2properties.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/ArduinoDevicev2propertyvalue.js b/src/model/ArduinoDevicev2propertyvalue.js index 5d9b62a..e68e345 100644 --- a/src/model/ArduinoDevicev2propertyvalue.js +++ b/src/model/ArduinoDevicev2propertyvalue.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -17,7 +17,7 @@ import ArduinoDevicev2propertyvalueValue from './ArduinoDevicev2propertyvalueVal /** * The ArduinoDevicev2propertyvalue model module. * @module model/ArduinoDevicev2propertyvalue - * @version 2.0.5 + * @version 2.0.6 */ class ArduinoDevicev2propertyvalue { /** diff --git a/src/model/ArduinoDevicev2propertyvalueValue.js b/src/model/ArduinoDevicev2propertyvalueValue.js index b525ac5..4dee487 100644 --- a/src/model/ArduinoDevicev2propertyvalueValue.js +++ b/src/model/ArduinoDevicev2propertyvalueValue.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -17,7 +17,7 @@ import ArduinoDevicev2propertyvalueValueStatistics from './ArduinoDevicev2proper /** * The ArduinoDevicev2propertyvalueValue model module. * @module model/ArduinoDevicev2propertyvalueValue - * @version 2.0.5 + * @version 2.0.6 */ class ArduinoDevicev2propertyvalueValue { /** diff --git a/src/model/ArduinoDevicev2propertyvalueValueStatistics.js b/src/model/ArduinoDevicev2propertyvalueValueStatistics.js index ee094b8..32f39a2 100644 --- a/src/model/ArduinoDevicev2propertyvalueValueStatistics.js +++ b/src/model/ArduinoDevicev2propertyvalueValueStatistics.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ArduinoDevicev2propertyvalueValueStatistics model module. * @module model/ArduinoDevicev2propertyvalueValueStatistics - * @version 2.0.5 + * @version 2.0.6 */ class ArduinoDevicev2propertyvalueValueStatistics { /** diff --git a/src/model/ArduinoDevicev2propertyvalues.js b/src/model/ArduinoDevicev2propertyvalues.js index 0e1fd3a..206cadc 100644 --- a/src/model/ArduinoDevicev2propertyvalues.js +++ b/src/model/ArduinoDevicev2propertyvalues.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -18,7 +18,7 @@ import ArduinoDevicev2propertyvaluesLastEvaluatedKey from './ArduinoDevicev2prop /** * The ArduinoDevicev2propertyvalues model module. * @module model/ArduinoDevicev2propertyvalues - * @version 2.0.5 + * @version 2.0.6 */ class ArduinoDevicev2propertyvalues { /** @@ -82,7 +82,7 @@ class ArduinoDevicev2propertyvalues { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of ArduinoDevicev2propertyvalues.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/ArduinoDevicev2propertyvaluesLastEvaluatedKey.js b/src/model/ArduinoDevicev2propertyvaluesLastEvaluatedKey.js index 55b9048..c8b94e5 100644 --- a/src/model/ArduinoDevicev2propertyvaluesLastEvaluatedKey.js +++ b/src/model/ArduinoDevicev2propertyvaluesLastEvaluatedKey.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ArduinoDevicev2propertyvaluesLastEvaluatedKey model module. * @module model/ArduinoDevicev2propertyvaluesLastEvaluatedKey - * @version 2.0.5 + * @version 2.0.6 */ class ArduinoDevicev2propertyvaluesLastEvaluatedKey { /** diff --git a/src/model/ArduinoDevicev2templatedevice.js b/src/model/ArduinoDevicev2templatedevice.js index 46b2426..90545b4 100644 --- a/src/model/ArduinoDevicev2templatedevice.js +++ b/src/model/ArduinoDevicev2templatedevice.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ArduinoDevicev2templatedevice model module. * @module model/ArduinoDevicev2templatedevice - * @version 2.0.5 + * @version 2.0.6 */ class ArduinoDevicev2templatedevice { /** diff --git a/src/model/ArduinoLinkedvariable.js b/src/model/ArduinoLinkedvariable.js index 9420426..3a22034 100644 --- a/src/model/ArduinoLinkedvariable.js +++ b/src/model/ArduinoLinkedvariable.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -17,7 +17,7 @@ import ArduinoTimezone from './ArduinoTimezone'; /** * The ArduinoLinkedvariable model module. * @module model/ArduinoLinkedvariable - * @version 2.0.5 + * @version 2.0.6 */ class ArduinoLinkedvariable { /** @@ -105,7 +105,7 @@ class ArduinoLinkedvariable { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of ArduinoLinkedvariable.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/ArduinoLoradevicev1.js b/src/model/ArduinoLoradevicev1.js index 5f07d46..429a717 100644 --- a/src/model/ArduinoLoradevicev1.js +++ b/src/model/ArduinoLoradevicev1.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ArduinoLoradevicev1 model module. * @module model/ArduinoLoradevicev1 - * @version 2.0.5 + * @version 2.0.6 */ class ArduinoLoradevicev1 { /** @@ -80,7 +80,7 @@ class ArduinoLoradevicev1 { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of ArduinoLoradevicev1.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/ArduinoLorafreqplansv1.js b/src/model/ArduinoLorafreqplansv1.js index 6f66b61..c1964ba 100644 --- a/src/model/ArduinoLorafreqplansv1.js +++ b/src/model/ArduinoLorafreqplansv1.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -17,7 +17,7 @@ import ArduinoLorafreqplanv1 from './ArduinoLorafreqplanv1'; /** * The ArduinoLorafreqplansv1 model module. * @module model/ArduinoLorafreqplansv1 - * @version 2.0.5 + * @version 2.0.6 */ class ArduinoLorafreqplansv1 { /** diff --git a/src/model/ArduinoLorafreqplanv1.js b/src/model/ArduinoLorafreqplanv1.js index 3c2ac24..6206610 100644 --- a/src/model/ArduinoLorafreqplanv1.js +++ b/src/model/ArduinoLorafreqplanv1.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ArduinoLorafreqplanv1 model module. * @module model/ArduinoLorafreqplanv1 - * @version 2.0.5 + * @version 2.0.6 */ class ArduinoLorafreqplanv1 { /** @@ -75,7 +75,7 @@ class ArduinoLorafreqplanv1 { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of ArduinoLorafreqplanv1.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/ArduinoProperty.js b/src/model/ArduinoProperty.js index db56a51..af6d62e 100644 --- a/src/model/ArduinoProperty.js +++ b/src/model/ArduinoProperty.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ArduinoProperty model module. * @module model/ArduinoProperty - * @version 2.0.5 + * @version 2.0.6 */ class ArduinoProperty { /** @@ -137,7 +137,7 @@ class ArduinoProperty { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of ArduinoProperty.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/ArduinoPropertytype.js b/src/model/ArduinoPropertytype.js new file mode 100644 index 0000000..9c3d266 --- /dev/null +++ b/src/model/ArduinoPropertytype.js @@ -0,0 +1,214 @@ +/** + * 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 ArduinoPropertytype model module. + * @module model/ArduinoPropertytype + * @version 2.0.6 + */ +class ArduinoPropertytype { + /** + * Constructs a new ArduinoPropertytype. + * ArduinoPropertytype media type (default view) + * @alias module:model/ArduinoPropertytype + * @param declaration {String} The c++ type we are using for this variable type + * @param deprecated {Boolean} Tell if this type is deprecated + * @param name {String} The friendly name of the property type + * @param rw {Boolean} Tell if the type allow a R/W permission + * @param type {String} The api reference of this type + */ + constructor(declaration, deprecated, name, rw, type) { + + ArduinoPropertytype.initialize(this, declaration, deprecated, name, rw, type); + } + + /** + * 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, declaration, deprecated, name, rw, type) { + obj['declaration'] = declaration; + obj['deprecated'] = deprecated; + obj['name'] = name; + obj['rw'] = rw; + obj['type'] = type; + } + + /** + * Constructs a ArduinoPropertytype 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/ArduinoPropertytype} obj Optional instance to populate. + * @return {module:model/ArduinoPropertytype} The populated ArduinoPropertytype instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ArduinoPropertytype(); + + if (data.hasOwnProperty('assistants')) { + obj['assistants'] = ApiClient.convertToType(data['assistants'], ['String']); + } + if (data.hasOwnProperty('declaration')) { + obj['declaration'] = ApiClient.convertToType(data['declaration'], 'String'); + } + if (data.hasOwnProperty('deprecated')) { + obj['deprecated'] = ApiClient.convertToType(data['deprecated'], 'Boolean'); + } + if (data.hasOwnProperty('example')) { + obj['example'] = ApiClient.convertToType(data['example'], 'String'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('rw')) { + obj['rw'] = ApiClient.convertToType(data['rw'], 'Boolean'); + } + if (data.hasOwnProperty('supersededBy')) { + obj['supersededBy'] = ApiClient.convertToType(data['supersededBy'], 'String'); + } + if (data.hasOwnProperty('tags')) { + obj['tags'] = ApiClient.convertToType(data['tags'], ['String']); + } + if (data.hasOwnProperty('type')) { + obj['type'] = ApiClient.convertToType(data['type'], 'String'); + } + if (data.hasOwnProperty('units')) { + obj['units'] = ApiClient.convertToType(data['units'], ['String']); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to ArduinoPropertytype. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ArduinoPropertytype. + */ + static validateJSON(data) { + // check to make sure all required properties are present in the JSON string + for (const property of ArduinoPropertytype.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 an array + if (!Array.isArray(data['assistants'])) { + throw new Error("Expected the field `assistants` to be an array in the JSON data but got " + data['assistants']); + } + // ensure the json data is a string + if (data['declaration'] && !(typeof data['declaration'] === 'string' || data['declaration'] instanceof String)) { + throw new Error("Expected the field `declaration` to be a primitive type in the JSON string but got " + data['declaration']); + } + // ensure the json data is a string + if (data['example'] && !(typeof data['example'] === 'string' || data['example'] instanceof String)) { + throw new Error("Expected the field `example` to be a primitive type in the JSON string but got " + data['example']); + } + // 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['supersededBy'] && !(typeof data['supersededBy'] === 'string' || data['supersededBy'] instanceof String)) { + throw new Error("Expected the field `supersededBy` to be a primitive type in the JSON string but got " + data['supersededBy']); + } + // ensure the json data is an array + if (!Array.isArray(data['tags'])) { + throw new Error("Expected the field `tags` to be an array in the JSON data but got " + data['tags']); + } + // 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 an array + if (!Array.isArray(data['units'])) { + throw new Error("Expected the field `units` to be an array in the JSON data but got " + data['units']); + } + + return true; + } + + +} + +ArduinoPropertytype.RequiredProperties = ["declaration", "deprecated", "name", "rw", "type"]; + +/** + * The voice assistants available for this type + * @member {Array.} assistants + */ +ArduinoPropertytype.prototype['assistants'] = undefined; + +/** + * The c++ type we are using for this variable type + * @member {String} declaration + */ +ArduinoPropertytype.prototype['declaration'] = undefined; + +/** + * Tell if this type is deprecated + * @member {Boolean} deprecated + */ +ArduinoPropertytype.prototype['deprecated'] = undefined; + +/** + * Example of use + * @member {String} example + */ +ArduinoPropertytype.prototype['example'] = undefined; + +/** + * The friendly name of the property type + * @member {String} name + */ +ArduinoPropertytype.prototype['name'] = undefined; + +/** + * Tell if the type allow a R/W permission + * @member {Boolean} rw + */ +ArduinoPropertytype.prototype['rw'] = undefined; + +/** + * The type of property to use if it's deprecated + * @member {String} supersededBy + */ +ArduinoPropertytype.prototype['supersededBy'] = undefined; + +/** + * The tags related to the type + * @member {Array.} tags + */ +ArduinoPropertytype.prototype['tags'] = undefined; + +/** + * The api reference of this type + * @member {String} type + */ +ArduinoPropertytype.prototype['type'] = undefined; + +/** + * The measure units available for this type + * @member {Array.} units + */ +ArduinoPropertytype.prototype['units'] = undefined; + + + + + + +export default ArduinoPropertytype; + diff --git a/src/model/ArduinoSeriesBatch.js b/src/model/ArduinoSeriesBatch.js index e02bd08..3587953 100644 --- a/src/model/ArduinoSeriesBatch.js +++ b/src/model/ArduinoSeriesBatch.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -17,7 +17,7 @@ import ArduinoSeriesResponse from './ArduinoSeriesResponse'; /** * The ArduinoSeriesBatch model module. * @module model/ArduinoSeriesBatch - * @version 2.0.5 + * @version 2.0.6 */ class ArduinoSeriesBatch { /** @@ -71,7 +71,7 @@ class ArduinoSeriesBatch { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of ArduinoSeriesBatch.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/ArduinoSeriesBatchSampled.js b/src/model/ArduinoSeriesBatchSampled.js index b0a1dee..66279d7 100644 --- a/src/model/ArduinoSeriesBatchSampled.js +++ b/src/model/ArduinoSeriesBatchSampled.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -17,7 +17,7 @@ import ArduinoSeriesSampledResponse from './ArduinoSeriesSampledResponse'; /** * The ArduinoSeriesBatchSampled model module. * @module model/ArduinoSeriesBatchSampled - * @version 2.0.5 + * @version 2.0.6 */ class ArduinoSeriesBatchSampled { /** @@ -71,7 +71,7 @@ class ArduinoSeriesBatchSampled { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of ArduinoSeriesBatchSampled.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/ArduinoSeriesRawBatch.js b/src/model/ArduinoSeriesRawBatch.js index df58376..8ef613e 100644 --- a/src/model/ArduinoSeriesRawBatch.js +++ b/src/model/ArduinoSeriesRawBatch.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -17,7 +17,7 @@ import ArduinoSeriesRawResponse from './ArduinoSeriesRawResponse'; /** * The ArduinoSeriesRawBatch model module. * @module model/ArduinoSeriesRawBatch - * @version 2.0.5 + * @version 2.0.6 */ class ArduinoSeriesRawBatch { /** @@ -71,7 +71,7 @@ class ArduinoSeriesRawBatch { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of ArduinoSeriesRawBatch.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/ArduinoSeriesRawBatchLastvalue.js b/src/model/ArduinoSeriesRawBatchLastvalue.js index afd17a1..a203797 100644 --- a/src/model/ArduinoSeriesRawBatchLastvalue.js +++ b/src/model/ArduinoSeriesRawBatchLastvalue.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -17,7 +17,7 @@ import ArduinoSeriesRawLastValueResponse from './ArduinoSeriesRawLastValueRespon /** * The ArduinoSeriesRawBatchLastvalue model module. * @module model/ArduinoSeriesRawBatchLastvalue - * @version 2.0.5 + * @version 2.0.6 */ class ArduinoSeriesRawBatchLastvalue { /** @@ -71,7 +71,7 @@ class ArduinoSeriesRawBatchLastvalue { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of ArduinoSeriesRawBatchLastvalue.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/ArduinoSeriesRawLastValueResponse.js b/src/model/ArduinoSeriesRawLastValueResponse.js index 2381b27..9083b41 100644 --- a/src/model/ArduinoSeriesRawLastValueResponse.js +++ b/src/model/ArduinoSeriesRawLastValueResponse.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ArduinoSeriesRawLastValueResponse model module. * @module model/ArduinoSeriesRawLastValueResponse - * @version 2.0.5 + * @version 2.0.6 */ class ArduinoSeriesRawLastValueResponse { /** @@ -85,7 +85,7 @@ class ArduinoSeriesRawLastValueResponse { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of ArduinoSeriesRawLastValueResponse.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/ArduinoSeriesRawResponse.js b/src/model/ArduinoSeriesRawResponse.js index 567822e..9006cd6 100644 --- a/src/model/ArduinoSeriesRawResponse.js +++ b/src/model/ArduinoSeriesRawResponse.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -17,7 +17,7 @@ import BatchQueryRawResponseSeriesMediaV1 from './BatchQueryRawResponseSeriesMed /** * The ArduinoSeriesRawResponse model module. * @module model/ArduinoSeriesRawResponse - * @version 2.0.5 + * @version 2.0.6 */ class ArduinoSeriesRawResponse { /** @@ -48,6 +48,7 @@ class ArduinoSeriesRawResponse { static initialize(obj, countValues, fromDate, query, respVersion, series, sort, status, times, toDate, values) { obj['count_values'] = countValues; obj['from_date'] = fromDate; + obj['message'] = ''; obj['query'] = query; obj['resp_version'] = respVersion; obj['series'] = series; @@ -78,6 +79,15 @@ class ArduinoSeriesRawResponse { if (data.hasOwnProperty('message')) { obj['message'] = ApiClient.convertToType(data['message'], 'String'); } + if (data.hasOwnProperty('property_id')) { + obj['property_id'] = ApiClient.convertToType(data['property_id'], 'String'); + } + if (data.hasOwnProperty('property_name')) { + obj['property_name'] = ApiClient.convertToType(data['property_name'], 'String'); + } + if (data.hasOwnProperty('property_type')) { + obj['property_type'] = ApiClient.convertToType(data['property_type'], 'String'); + } if (data.hasOwnProperty('query')) { obj['query'] = ApiClient.convertToType(data['query'], 'String'); } @@ -96,6 +106,9 @@ class ArduinoSeriesRawResponse { if (data.hasOwnProperty('status')) { obj['status'] = ApiClient.convertToType(data['status'], 'String'); } + if (data.hasOwnProperty('thing_id')) { + obj['thing_id'] = ApiClient.convertToType(data['thing_id'], 'String'); + } if (data.hasOwnProperty('times')) { obj['times'] = ApiClient.convertToType(data['times'], ['Date']); } @@ -117,7 +130,7 @@ class ArduinoSeriesRawResponse { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of ArduinoSeriesRawResponse.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } @@ -126,6 +139,18 @@ class ArduinoSeriesRawResponse { throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']); } // ensure the json data is a string + if (data['property_id'] && !(typeof data['property_id'] === 'string' || data['property_id'] instanceof String)) { + throw new Error("Expected the field `property_id` to be a primitive type in the JSON string but got " + data['property_id']); + } + // ensure the json data is a string + if (data['property_name'] && !(typeof data['property_name'] === 'string' || data['property_name'] instanceof String)) { + throw new Error("Expected the field `property_name` to be a primitive type in the JSON string but got " + data['property_name']); + } + // ensure the json data is a string + if (data['property_type'] && !(typeof data['property_type'] === 'string' || data['property_type'] instanceof String)) { + throw new Error("Expected the field `property_type` to be a primitive type in the JSON string but got " + data['property_type']); + } + // ensure the json data is a string if (data['query'] && !(typeof data['query'] === 'string' || data['query'] instanceof String)) { throw new Error("Expected the field `query` to be a primitive type in the JSON string but got " + data['query']); } @@ -141,6 +166,10 @@ class ArduinoSeriesRawResponse { if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) { throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']); } + // ensure the json data is a string + if (data['thing_id'] && !(typeof data['thing_id'] === 'string' || data['thing_id'] instanceof String)) { + throw new Error("Expected the field `thing_id` to be a primitive type in the JSON string but got " + data['thing_id']); + } // ensure the json data is an array if (!Array.isArray(data['times'])) { throw new Error("Expected the field `times` to be an array in the JSON data but got " + data['times']); @@ -177,6 +206,24 @@ ArduinoSeriesRawResponse.prototype['from_date'] = undefined; */ ArduinoSeriesRawResponse.prototype['message'] = ''; +/** + * Property id + * @member {String} property_id + */ +ArduinoSeriesRawResponse.prototype['property_id'] = undefined; + +/** + * Property name + * @member {String} property_name + */ +ArduinoSeriesRawResponse.prototype['property_name'] = undefined; + +/** + * Property type + * @member {String} property_type + */ +ArduinoSeriesRawResponse.prototype['property_type'] = undefined; + /** * Query of for the data * @member {String} query @@ -212,6 +259,12 @@ ArduinoSeriesRawResponse.prototype['sort'] = undefined; */ ArduinoSeriesRawResponse.prototype['status'] = undefined; +/** + * Thing id + * @member {String} thing_id + */ +ArduinoSeriesRawResponse.prototype['thing_id'] = undefined; + /** * Timestamp in RFC3339 * @member {Array.} times diff --git a/src/model/ArduinoSeriesResponse.js b/src/model/ArduinoSeriesResponse.js index 8783041..d321d40 100644 --- a/src/model/ArduinoSeriesResponse.js +++ b/src/model/ArduinoSeriesResponse.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ArduinoSeriesResponse model module. * @module model/ArduinoSeriesResponse - * @version 2.0.5 + * @version 2.0.6 */ class ArduinoSeriesResponse { /** @@ -47,6 +47,7 @@ class ArduinoSeriesResponse { obj['count_values'] = countValues; obj['from_date'] = fromDate; obj['interval'] = interval; + obj['message'] = ''; obj['query'] = query; obj['resp_version'] = respVersion; obj['status'] = status; @@ -81,6 +82,15 @@ class ArduinoSeriesResponse { if (data.hasOwnProperty('message')) { obj['message'] = ApiClient.convertToType(data['message'], 'String'); } + if (data.hasOwnProperty('property_id')) { + obj['property_id'] = ApiClient.convertToType(data['property_id'], 'String'); + } + if (data.hasOwnProperty('property_name')) { + obj['property_name'] = ApiClient.convertToType(data['property_name'], 'String'); + } + if (data.hasOwnProperty('property_type')) { + obj['property_type'] = ApiClient.convertToType(data['property_type'], 'String'); + } if (data.hasOwnProperty('query')) { obj['query'] = ApiClient.convertToType(data['query'], 'String'); } @@ -93,6 +103,9 @@ class ArduinoSeriesResponse { if (data.hasOwnProperty('status')) { obj['status'] = ApiClient.convertToType(data['status'], 'String'); } + if (data.hasOwnProperty('thing_id')) { + obj['thing_id'] = ApiClient.convertToType(data['thing_id'], 'String'); + } if (data.hasOwnProperty('times')) { obj['times'] = ApiClient.convertToType(data['times'], ['Date']); } @@ -114,7 +127,7 @@ class ArduinoSeriesResponse { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of ArduinoSeriesResponse.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } @@ -127,6 +140,18 @@ class ArduinoSeriesResponse { throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']); } // ensure the json data is a string + if (data['property_id'] && !(typeof data['property_id'] === 'string' || data['property_id'] instanceof String)) { + throw new Error("Expected the field `property_id` to be a primitive type in the JSON string but got " + data['property_id']); + } + // ensure the json data is a string + if (data['property_name'] && !(typeof data['property_name'] === 'string' || data['property_name'] instanceof String)) { + throw new Error("Expected the field `property_name` to be a primitive type in the JSON string but got " + data['property_name']); + } + // ensure the json data is a string + if (data['property_type'] && !(typeof data['property_type'] === 'string' || data['property_type'] instanceof String)) { + throw new Error("Expected the field `property_type` to be a primitive type in the JSON string but got " + data['property_type']); + } + // ensure the json data is a string if (data['query'] && !(typeof data['query'] === 'string' || data['query'] instanceof String)) { throw new Error("Expected the field `query` to be a primitive type in the JSON string but got " + data['query']); } @@ -134,6 +159,10 @@ class ArduinoSeriesResponse { if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) { throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']); } + // ensure the json data is a string + if (data['thing_id'] && !(typeof data['thing_id'] === 'string' || data['thing_id'] instanceof String)) { + throw new Error("Expected the field `thing_id` to be a primitive type in the JSON string but got " + data['thing_id']); + } // ensure the json data is an array if (!Array.isArray(data['times'])) { throw new Error("Expected the field `times` to be an array in the JSON data but got " + data['times']); @@ -182,6 +211,24 @@ ArduinoSeriesResponse.prototype['interval'] = undefined; */ ArduinoSeriesResponse.prototype['message'] = ''; +/** + * Property id + * @member {String} property_id + */ +ArduinoSeriesResponse.prototype['property_id'] = undefined; + +/** + * Property name + * @member {String} property_name + */ +ArduinoSeriesResponse.prototype['property_name'] = undefined; + +/** + * Property type + * @member {String} property_type + */ +ArduinoSeriesResponse.prototype['property_type'] = undefined; + /** * Query of for the data * @member {String} query @@ -206,6 +253,12 @@ ArduinoSeriesResponse.prototype['series_limit'] = undefined; */ ArduinoSeriesResponse.prototype['status'] = undefined; +/** + * Thing id + * @member {String} thing_id + */ +ArduinoSeriesResponse.prototype['thing_id'] = undefined; + /** * Timestamp in RFC3339 * @member {Array.} times diff --git a/src/model/ArduinoSeriesSampledResponse.js b/src/model/ArduinoSeriesSampledResponse.js index f7c0f59..ebc61f8 100644 --- a/src/model/ArduinoSeriesSampledResponse.js +++ b/src/model/ArduinoSeriesSampledResponse.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ArduinoSeriesSampledResponse model module. * @module model/ArduinoSeriesSampledResponse - * @version 2.0.5 + * @version 2.0.6 */ class ArduinoSeriesSampledResponse { /** @@ -47,6 +47,7 @@ class ArduinoSeriesSampledResponse { obj['count_values'] = countValues; obj['from_date'] = fromDate; obj['interval'] = interval; + obj['message'] = ''; obj['query'] = query; obj['resp_version'] = respVersion; obj['status'] = status; @@ -78,6 +79,15 @@ class ArduinoSeriesSampledResponse { if (data.hasOwnProperty('message')) { obj['message'] = ApiClient.convertToType(data['message'], 'String'); } + if (data.hasOwnProperty('property_id')) { + obj['property_id'] = ApiClient.convertToType(data['property_id'], 'String'); + } + if (data.hasOwnProperty('property_name')) { + obj['property_name'] = ApiClient.convertToType(data['property_name'], 'String'); + } + if (data.hasOwnProperty('property_type')) { + obj['property_type'] = ApiClient.convertToType(data['property_type'], 'String'); + } if (data.hasOwnProperty('query')) { obj['query'] = ApiClient.convertToType(data['query'], 'String'); } @@ -90,6 +100,9 @@ class ArduinoSeriesSampledResponse { if (data.hasOwnProperty('status')) { obj['status'] = ApiClient.convertToType(data['status'], 'String'); } + if (data.hasOwnProperty('thing_id')) { + obj['thing_id'] = ApiClient.convertToType(data['thing_id'], 'String'); + } if (data.hasOwnProperty('times')) { obj['times'] = ApiClient.convertToType(data['times'], ['Date']); } @@ -111,7 +124,7 @@ class ArduinoSeriesSampledResponse { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of ArduinoSeriesSampledResponse.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } @@ -120,6 +133,18 @@ class ArduinoSeriesSampledResponse { throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']); } // ensure the json data is a string + if (data['property_id'] && !(typeof data['property_id'] === 'string' || data['property_id'] instanceof String)) { + throw new Error("Expected the field `property_id` to be a primitive type in the JSON string but got " + data['property_id']); + } + // ensure the json data is a string + if (data['property_name'] && !(typeof data['property_name'] === 'string' || data['property_name'] instanceof String)) { + throw new Error("Expected the field `property_name` to be a primitive type in the JSON string but got " + data['property_name']); + } + // ensure the json data is a string + if (data['property_type'] && !(typeof data['property_type'] === 'string' || data['property_type'] instanceof String)) { + throw new Error("Expected the field `property_type` to be a primitive type in the JSON string but got " + data['property_type']); + } + // ensure the json data is a string if (data['query'] && !(typeof data['query'] === 'string' || data['query'] instanceof String)) { throw new Error("Expected the field `query` to be a primitive type in the JSON string but got " + data['query']); } @@ -127,6 +152,10 @@ class ArduinoSeriesSampledResponse { if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) { throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']); } + // ensure the json data is a string + if (data['thing_id'] && !(typeof data['thing_id'] === 'string' || data['thing_id'] instanceof String)) { + throw new Error("Expected the field `thing_id` to be a primitive type in the JSON string but got " + data['thing_id']); + } // ensure the json data is an array if (!Array.isArray(data['times'])) { throw new Error("Expected the field `times` to be an array in the JSON data but got " + data['times']); @@ -169,6 +198,24 @@ ArduinoSeriesSampledResponse.prototype['interval'] = undefined; */ ArduinoSeriesSampledResponse.prototype['message'] = ''; +/** + * Property id + * @member {String} property_id + */ +ArduinoSeriesSampledResponse.prototype['property_id'] = undefined; + +/** + * Property name + * @member {String} property_name + */ +ArduinoSeriesSampledResponse.prototype['property_name'] = undefined; + +/** + * Property type + * @member {String} property_type + */ +ArduinoSeriesSampledResponse.prototype['property_type'] = undefined; + /** * Query of for the data * @member {String} query @@ -193,6 +240,12 @@ ArduinoSeriesSampledResponse.prototype['series_limit'] = undefined; */ ArduinoSeriesSampledResponse.prototype['status'] = undefined; +/** + * Thing id + * @member {String} thing_id + */ +ArduinoSeriesSampledResponse.prototype['thing_id'] = undefined; + /** * Timestamp in RFC3339 * @member {Array.} times diff --git a/src/model/ArduinoTags.js b/src/model/ArduinoTags.js index 184e395..60bebb6 100644 --- a/src/model/ArduinoTags.js +++ b/src/model/ArduinoTags.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -17,7 +17,7 @@ import Tag from './Tag'; /** * The ArduinoTags model module. * @module model/ArduinoTags - * @version 2.0.5 + * @version 2.0.6 */ class ArduinoTags { /** @@ -66,7 +66,7 @@ class ArduinoTags { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of ArduinoTags.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/ArduinoTemplate.js b/src/model/ArduinoTemplate.js index db7e505..974415e 100644 --- a/src/model/ArduinoTemplate.js +++ b/src/model/ArduinoTemplate.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -17,7 +17,7 @@ import ArduinoThingresult from './ArduinoThingresult'; /** * The ArduinoTemplate model module. * @module model/ArduinoTemplate - * @version 2.0.5 + * @version 2.0.6 */ class ArduinoTemplate { /** @@ -72,7 +72,7 @@ class ArduinoTemplate { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of ArduinoTemplate.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/ArduinoTemplateproperty.js b/src/model/ArduinoTemplateproperty.js index e7b0d8c..c2cd2f2 100644 --- a/src/model/ArduinoTemplateproperty.js +++ b/src/model/ArduinoTemplateproperty.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ArduinoTemplateproperty model module. * @module model/ArduinoTemplateproperty - * @version 2.0.5 + * @version 2.0.6 */ class ArduinoTemplateproperty { /** @@ -89,7 +89,7 @@ class ArduinoTemplateproperty { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of ArduinoTemplateproperty.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/ArduinoTemplatevariable.js b/src/model/ArduinoTemplatevariable.js index 431b9dd..96e845a 100644 --- a/src/model/ArduinoTemplatevariable.js +++ b/src/model/ArduinoTemplatevariable.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -17,7 +17,7 @@ import ArduinoTimezone from './ArduinoTimezone'; /** * The ArduinoTemplatevariable model module. * @module model/ArduinoTemplatevariable - * @version 2.0.5 + * @version 2.0.6 */ class ArduinoTemplatevariable { /** @@ -89,7 +89,7 @@ class ArduinoTemplatevariable { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of ArduinoTemplatevariable.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/ArduinoThing.js b/src/model/ArduinoThing.js index 227849a..cb4ce08 100644 --- a/src/model/ArduinoThing.js +++ b/src/model/ArduinoThing.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -17,7 +17,7 @@ import ArduinoProperty from './ArduinoProperty'; /** * The ArduinoThing model module. * @module model/ArduinoThing - * @version 2.0.5 + * @version 2.0.6 */ class ArduinoThing { /** @@ -131,7 +131,7 @@ class ArduinoThing { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of ArduinoThing.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/ArduinoThingresult.js b/src/model/ArduinoThingresult.js index 109a2fa..71f6534 100644 --- a/src/model/ArduinoThingresult.js +++ b/src/model/ArduinoThingresult.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ArduinoThingresult model module. * @module model/ArduinoThingresult - * @version 2.0.5 + * @version 2.0.6 */ class ArduinoThingresult { /** @@ -73,7 +73,7 @@ class ArduinoThingresult { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of ArduinoThingresult.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/ArduinoThingtemplate.js b/src/model/ArduinoThingtemplate.js index 7d53e58..3f142b8 100644 --- a/src/model/ArduinoThingtemplate.js +++ b/src/model/ArduinoThingtemplate.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -19,7 +19,7 @@ import Tag from './Tag'; /** * The ArduinoThingtemplate model module. * @module model/ArduinoThingtemplate - * @version 2.0.5 + * @version 2.0.6 */ class ArduinoThingtemplate { /** @@ -94,7 +94,7 @@ class ArduinoThingtemplate { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of ArduinoThingtemplate.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/ArduinoTimeseriesmedia.js b/src/model/ArduinoTimeseriesmedia.js index 92f6ea9..0be7139 100644 --- a/src/model/ArduinoTimeseriesmedia.js +++ b/src/model/ArduinoTimeseriesmedia.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -17,7 +17,7 @@ import TimeseriesDataPoint from './TimeseriesDataPoint'; /** * The ArduinoTimeseriesmedia model module. * @module model/ArduinoTimeseriesmedia - * @version 2.0.5 + * @version 2.0.6 */ class ArduinoTimeseriesmedia { /** @@ -66,7 +66,7 @@ class ArduinoTimeseriesmedia { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of ArduinoTimeseriesmedia.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/ArduinoTimezone.js b/src/model/ArduinoTimezone.js index b728e8c..e66c2f5 100644 --- a/src/model/ArduinoTimezone.js +++ b/src/model/ArduinoTimezone.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ArduinoTimezone model module. * @module model/ArduinoTimezone - * @version 2.0.5 + * @version 2.0.6 */ class ArduinoTimezone { /** @@ -75,7 +75,7 @@ class ArduinoTimezone { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of ArduinoTimezone.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/ArduinoVariableslinks.js b/src/model/ArduinoVariableslinks.js index 4698ddd..88da50c 100644 --- a/src/model/ArduinoVariableslinks.js +++ b/src/model/ArduinoVariableslinks.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ArduinoVariableslinks model module. * @module model/ArduinoVariableslinks - * @version 2.0.5 + * @version 2.0.6 */ class ArduinoVariableslinks { /** @@ -65,7 +65,7 @@ class ArduinoVariableslinks { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of ArduinoVariableslinks.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/ArduinoWidgetv2.js b/src/model/ArduinoWidgetv2.js index 48449ca..71c9c93 100644 --- a/src/model/ArduinoWidgetv2.js +++ b/src/model/ArduinoWidgetv2.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -17,7 +17,7 @@ import ArduinoLinkedvariable from './ArduinoLinkedvariable'; /** * The ArduinoWidgetv2 model module. * @module model/ArduinoWidgetv2 - * @version 2.0.5 + * @version 2.0.6 */ class ArduinoWidgetv2 { /** @@ -123,7 +123,7 @@ class ArduinoWidgetv2 { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of ArduinoWidgetv2.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/ArduinoWidgetv2template.js b/src/model/ArduinoWidgetv2template.js index 61a2d5c..9129a45 100644 --- a/src/model/ArduinoWidgetv2template.js +++ b/src/model/ArduinoWidgetv2template.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -17,7 +17,7 @@ import ArduinoTemplatevariable from './ArduinoTemplatevariable'; /** * The ArduinoWidgetv2template model module. * @module model/ArduinoWidgetv2template - * @version 2.0.5 + * @version 2.0.6 */ class ArduinoWidgetv2template { /** @@ -109,7 +109,7 @@ class ArduinoWidgetv2template { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of ArduinoWidgetv2template.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/BatchLastValueRequestsMediaV1.js b/src/model/BatchLastValueRequestsMediaV1.js index ccef104..763f335 100644 --- a/src/model/BatchLastValueRequestsMediaV1.js +++ b/src/model/BatchLastValueRequestsMediaV1.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -17,7 +17,7 @@ import BatchQueryRawLastValueRequestMediaV1 from './BatchQueryRawLastValueReques /** * The BatchLastValueRequestsMediaV1 model module. * @module model/BatchLastValueRequestsMediaV1 - * @version 2.0.5 + * @version 2.0.6 */ class BatchLastValueRequestsMediaV1 { /** @@ -65,7 +65,7 @@ class BatchLastValueRequestsMediaV1 { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of BatchLastValueRequestsMediaV1.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/BatchQueryRawLastValueRequestMediaV1.js b/src/model/BatchQueryRawLastValueRequestMediaV1.js index e678abf..f3c1c34 100644 --- a/src/model/BatchQueryRawLastValueRequestMediaV1.js +++ b/src/model/BatchQueryRawLastValueRequestMediaV1.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The BatchQueryRawLastValueRequestMediaV1 model module. * @module model/BatchQueryRawLastValueRequestMediaV1 - * @version 2.0.5 + * @version 2.0.6 */ class BatchQueryRawLastValueRequestMediaV1 { /** @@ -69,7 +69,7 @@ class BatchQueryRawLastValueRequestMediaV1 { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of BatchQueryRawLastValueRequestMediaV1.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/BatchQueryRawRequestMediaV1.js b/src/model/BatchQueryRawRequestMediaV1.js index 2ed253d..75a8329 100644 --- a/src/model/BatchQueryRawRequestMediaV1.js +++ b/src/model/BatchQueryRawRequestMediaV1.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,13 +16,13 @@ import ApiClient from '../ApiClient'; /** * The BatchQueryRawRequestMediaV1 model module. * @module model/BatchQueryRawRequestMediaV1 - * @version 2.0.5 + * @version 2.0.6 */ class BatchQueryRawRequestMediaV1 { /** * Constructs a new BatchQueryRawRequestMediaV1. * @alias module:model/BatchQueryRawRequestMediaV1 - * @param q {String} Data selection query (e.g. property.2a99729d-2556-4220-a139-023348a1e6b5) + * @param q {String} Data selection query (e.g. property.2a99729d-2556-4220-a139-023348a1e6b5 or thing.95717675-4786-4ffc-afcc-799777755391) */ constructor(q) { @@ -36,6 +36,7 @@ class BatchQueryRawRequestMediaV1 { */ static initialize(obj, q) { obj['q'] = q; + obj['sort'] = 'DESC'; } /** @@ -76,7 +77,7 @@ class BatchQueryRawRequestMediaV1 { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of BatchQueryRawRequestMediaV1.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } @@ -104,13 +105,13 @@ BatchQueryRawRequestMediaV1.RequiredProperties = ["q"]; BatchQueryRawRequestMediaV1.prototype['from'] = undefined; /** - * Data selection query (e.g. property.2a99729d-2556-4220-a139-023348a1e6b5) + * Data selection query (e.g. property.2a99729d-2556-4220-a139-023348a1e6b5 or thing.95717675-4786-4ffc-afcc-799777755391) * @member {String} q */ BatchQueryRawRequestMediaV1.prototype['q'] = undefined; /** - * Max of values + * Maximum number of values returned, if any (default/limit: 1000, 10000 in case of thing query) * @member {Number} series_limit */ BatchQueryRawRequestMediaV1.prototype['series_limit'] = undefined; diff --git a/src/model/BatchQueryRawRequestsMediaV1.js b/src/model/BatchQueryRawRequestsMediaV1.js index f0bede8..834efed 100644 --- a/src/model/BatchQueryRawRequestsMediaV1.js +++ b/src/model/BatchQueryRawRequestsMediaV1.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -17,7 +17,7 @@ import BatchQueryRawRequestMediaV1 from './BatchQueryRawRequestMediaV1'; /** * The BatchQueryRawRequestsMediaV1 model module. * @module model/BatchQueryRawRequestsMediaV1 - * @version 2.0.5 + * @version 2.0.6 */ class BatchQueryRawRequestsMediaV1 { /** @@ -70,7 +70,7 @@ class BatchQueryRawRequestsMediaV1 { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of BatchQueryRawRequestsMediaV1.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/BatchQueryRawResponseSeriesMediaV1.js b/src/model/BatchQueryRawResponseSeriesMediaV1.js index cde2908..2ed124c 100644 --- a/src/model/BatchQueryRawResponseSeriesMediaV1.js +++ b/src/model/BatchQueryRawResponseSeriesMediaV1.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The BatchQueryRawResponseSeriesMediaV1 model module. * @module model/BatchQueryRawResponseSeriesMediaV1 - * @version 2.0.5 + * @version 2.0.6 */ class BatchQueryRawResponseSeriesMediaV1 { /** @@ -64,7 +64,7 @@ class BatchQueryRawResponseSeriesMediaV1 { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of BatchQueryRawResponseSeriesMediaV1.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/BatchQueryRequestMediaV1.js b/src/model/BatchQueryRequestMediaV1.js index a08c457..8290810 100644 --- a/src/model/BatchQueryRequestMediaV1.js +++ b/src/model/BatchQueryRequestMediaV1.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,14 +16,14 @@ import ApiClient from '../ApiClient'; /** * The BatchQueryRequestMediaV1 model module. * @module model/BatchQueryRequestMediaV1 - * @version 2.0.5 + * @version 2.0.6 */ class BatchQueryRequestMediaV1 { /** * Constructs a new BatchQueryRequestMediaV1. * @alias module:model/BatchQueryRequestMediaV1 * @param from {Date} From timestamp - * @param q {String} Data selection query (e.g. property.2a99729d-2556-4220-a139-023348a1e6b5) + * @param q {String} Data selection query (e.g. property.2a99729d-2556-4220-a139-023348a1e6b5 or thing.95717675-4786-4ffc-afcc-799777755391) * @param to {Date} To timestamp */ constructor(from, q, to) { @@ -83,7 +83,7 @@ class BatchQueryRequestMediaV1 { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of BatchQueryRequestMediaV1.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } @@ -123,13 +123,13 @@ BatchQueryRequestMediaV1.prototype['from'] = undefined; BatchQueryRequestMediaV1.prototype['interval'] = undefined; /** - * Data selection query (e.g. property.2a99729d-2556-4220-a139-023348a1e6b5) + * Data selection query (e.g. property.2a99729d-2556-4220-a139-023348a1e6b5 or thing.95717675-4786-4ffc-afcc-799777755391) * @member {String} q */ BatchQueryRequestMediaV1.prototype['q'] = undefined; /** - * Maximum number of values returned after data aggregation, if any (default: 300, limit: 1000) + * Maximum number of values returned after data aggregation, if any (default: 300, limit: 1000 - 10000 in case of thing query) * @member {Number} series_limit */ BatchQueryRequestMediaV1.prototype['series_limit'] = undefined; diff --git a/src/model/BatchQueryRequestsMediaV1.js b/src/model/BatchQueryRequestsMediaV1.js index 56d99c9..dc406b7 100644 --- a/src/model/BatchQueryRequestsMediaV1.js +++ b/src/model/BatchQueryRequestsMediaV1.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -17,7 +17,7 @@ import BatchQueryRequestMediaV1 from './BatchQueryRequestMediaV1'; /** * The BatchQueryRequestsMediaV1 model module. * @module model/BatchQueryRequestsMediaV1 - * @version 2.0.5 + * @version 2.0.6 */ class BatchQueryRequestsMediaV1 { /** @@ -70,7 +70,7 @@ class BatchQueryRequestsMediaV1 { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of BatchQueryRequestsMediaV1.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/BatchQuerySampledRequestMediaV1.js b/src/model/BatchQuerySampledRequestMediaV1.js index a6c6256..6f37178 100644 --- a/src/model/BatchQuerySampledRequestMediaV1.js +++ b/src/model/BatchQuerySampledRequestMediaV1.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The BatchQuerySampledRequestMediaV1 model module. * @module model/BatchQuerySampledRequestMediaV1 - * @version 2.0.5 + * @version 2.0.6 */ class BatchQuerySampledRequestMediaV1 { /** @@ -35,6 +35,7 @@ class BatchQuerySampledRequestMediaV1 { * Only for internal use. */ static initialize(obj, q) { + obj['interval'] = 300; obj['q'] = q; } @@ -76,7 +77,7 @@ class BatchQuerySampledRequestMediaV1 { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of BatchQuerySampledRequestMediaV1.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/BatchQuerySampledRequestsMediaV1.js b/src/model/BatchQuerySampledRequestsMediaV1.js index 7e3dd2b..747b7b3 100644 --- a/src/model/BatchQuerySampledRequestsMediaV1.js +++ b/src/model/BatchQuerySampledRequestsMediaV1.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -17,7 +17,7 @@ import BatchQuerySampledRequestMediaV1 from './BatchQuerySampledRequestMediaV1'; /** * The BatchQuerySampledRequestsMediaV1 model module. * @module model/BatchQuerySampledRequestsMediaV1 - * @version 2.0.5 + * @version 2.0.6 */ class BatchQuerySampledRequestsMediaV1 { /** @@ -70,7 +70,7 @@ class BatchQuerySampledRequestsMediaV1 { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of BatchQuerySampledRequestsMediaV1.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/CheckDevicesV2PassPayload.js b/src/model/CheckDevicesV2PassPayload.js index 5e4e86b..84e30bf 100644 --- a/src/model/CheckDevicesV2PassPayload.js +++ b/src/model/CheckDevicesV2PassPayload.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The CheckDevicesV2PassPayload model module. * @module model/CheckDevicesV2PassPayload - * @version 2.0.5 + * @version 2.0.6 */ class CheckDevicesV2PassPayload { /** @@ -64,7 +64,7 @@ class CheckDevicesV2PassPayload { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of CheckDevicesV2PassPayload.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/Clone.js b/src/model/Clone.js index 13e2ca1..84ee93c 100644 --- a/src/model/Clone.js +++ b/src/model/Clone.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -17,7 +17,7 @@ import Override from './Override'; /** * The Clone model module. * @module model/Clone - * @version 2.0.5 + * @version 2.0.6 */ class Clone { /** diff --git a/src/model/CreateDevicesV2CertsPayload.js b/src/model/CreateDevicesV2CertsPayload.js index 88fd951..486fcb2 100644 --- a/src/model/CreateDevicesV2CertsPayload.js +++ b/src/model/CreateDevicesV2CertsPayload.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The CreateDevicesV2CertsPayload model module. * @module model/CreateDevicesV2CertsPayload - * @version 2.0.5 + * @version 2.0.6 */ class CreateDevicesV2CertsPayload { /** @@ -72,7 +72,7 @@ class CreateDevicesV2CertsPayload { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of CreateDevicesV2CertsPayload.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/CreateDevicesV2Payload.js b/src/model/CreateDevicesV2Payload.js index 764dcbe..a69e39b 100644 --- a/src/model/CreateDevicesV2Payload.js +++ b/src/model/CreateDevicesV2Payload.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The CreateDevicesV2Payload model module. * @module model/CreateDevicesV2Payload - * @version 2.0.5 + * @version 2.0.6 */ class CreateDevicesV2Payload { /** @@ -83,7 +83,7 @@ class CreateDevicesV2Payload { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of CreateDevicesV2Payload.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } @@ -258,30 +258,12 @@ CreateDevicesV2Payload['TypeEnum'] = { */ "mkrgsm1400": "mkrgsm1400", - /** - * value: "mkrwan1310" - * @const - */ - "mkrwan1310": "mkrwan1310", - - /** - * value: "mkrwan1300" - * @const - */ - "mkrwan1300": "mkrwan1300", - /** * value: "mkrnb1500" * @const */ "mkrnb1500": "mkrnb1500", - /** - * value: "lora-device" - * @const - */ - "lora-device": "lora-device", - /** * value: "login_and_secretkey_wifi" * @const diff --git a/src/model/CreateLoraDevicesV1Payload.js b/src/model/CreateLoraDevicesV1Payload.js index afd7123..9a22e84 100644 --- a/src/model/CreateLoraDevicesV1Payload.js +++ b/src/model/CreateLoraDevicesV1Payload.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The CreateLoraDevicesV1Payload model module. * @module model/CreateLoraDevicesV1Payload - * @version 2.0.5 + * @version 2.0.6 */ class CreateLoraDevicesV1Payload { /** @@ -98,7 +98,7 @@ class CreateLoraDevicesV1Payload { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of CreateLoraDevicesV1Payload.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/Dashboardshare.js b/src/model/Dashboardshare.js index 0bcb8b7..075cd25 100644 --- a/src/model/Dashboardshare.js +++ b/src/model/Dashboardshare.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The Dashboardshare model module. * @module model/Dashboardshare - * @version 2.0.5 + * @version 2.0.6 */ class Dashboardshare { /** diff --git a/src/model/Dashboardv2.js b/src/model/Dashboardv2.js index e68fd96..dd5f00d 100644 --- a/src/model/Dashboardv2.js +++ b/src/model/Dashboardv2.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -17,7 +17,7 @@ import Widget from './Widget'; /** * The Dashboardv2 model module. * @module model/Dashboardv2 - * @version 2.0.5 + * @version 2.0.6 */ class Dashboardv2 { /** diff --git a/src/model/Devicev2.js b/src/model/Devicev2.js index 82782c4..a852b01 100644 --- a/src/model/Devicev2.js +++ b/src/model/Devicev2.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The Devicev2 model module. * @module model/Devicev2 - * @version 2.0.5 + * @version 2.0.6 */ class Devicev2 { /** @@ -250,30 +250,12 @@ Devicev2['TypeEnum'] = { */ "mkrgsm1400": "mkrgsm1400", - /** - * value: "mkrwan1310" - * @const - */ - "mkrwan1310": "mkrwan1310", - - /** - * value: "mkrwan1300" - * @const - */ - "mkrwan1300": "mkrwan1300", - /** * value: "mkrnb1500" * @const */ "mkrnb1500": "mkrnb1500", - /** - * value: "lora-device" - * @const - */ - "lora-device": "lora-device", - /** * value: "login_and_secretkey_wifi" * @const diff --git a/src/model/Devicev2Cert.js b/src/model/Devicev2Cert.js index 946639c..0906797 100644 --- a/src/model/Devicev2Cert.js +++ b/src/model/Devicev2Cert.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The Devicev2Cert model module. * @module model/Devicev2Cert - * @version 2.0.5 + * @version 2.0.6 */ class Devicev2Cert { /** diff --git a/src/model/Devicev2Otabinaryurl.js b/src/model/Devicev2Otabinaryurl.js index c3de535..5ba68db 100644 --- a/src/model/Devicev2Otabinaryurl.js +++ b/src/model/Devicev2Otabinaryurl.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The Devicev2Otabinaryurl model module. * @module model/Devicev2Otabinaryurl - * @version 2.0.5 + * @version 2.0.6 */ class Devicev2Otabinaryurl { /** @@ -35,7 +35,9 @@ class Devicev2Otabinaryurl { * Only for internal use. */ static initialize(obj, binaryKey) { + obj['async'] = true; obj['binary_key'] = binaryKey; + obj['expire_in_mins'] = 10; } /** @@ -70,7 +72,7 @@ class Devicev2Otabinaryurl { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of Devicev2Otabinaryurl.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/Devicev2Otaurlpyalod.js b/src/model/Devicev2Otaurlpyalod.js index 58d7256..a093f70 100644 --- a/src/model/Devicev2Otaurlpyalod.js +++ b/src/model/Devicev2Otaurlpyalod.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The Devicev2Otaurlpyalod model module. * @module model/Devicev2Otaurlpyalod - * @version 2.0.5 + * @version 2.0.6 */ class Devicev2Otaurlpyalod { /** diff --git a/src/model/Devicev2Pass.js b/src/model/Devicev2Pass.js index f057478..84d64ca 100644 --- a/src/model/Devicev2Pass.js +++ b/src/model/Devicev2Pass.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The Devicev2Pass model module. * @module model/Devicev2Pass - * @version 2.0.5 + * @version 2.0.6 */ class Devicev2Pass { /** diff --git a/src/model/Error.js b/src/model/Error.js index 5fe3f21..48cac99 100644 --- a/src/model/Error.js +++ b/src/model/Error.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The Error model module. * @module model/Error - * @version 2.0.5 + * @version 2.0.6 */ class Error { /** diff --git a/src/model/HistoricDataRequest.js b/src/model/HistoricDataRequest.js index 8c40b5d..c2e9c30 100644 --- a/src/model/HistoricDataRequest.js +++ b/src/model/HistoricDataRequest.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The HistoricDataRequest model module. * @module model/HistoricDataRequest - * @version 2.0.5 + * @version 2.0.6 */ class HistoricDataRequest { /** @@ -74,7 +74,7 @@ class HistoricDataRequest { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of HistoricDataRequest.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/Override.js b/src/model/Override.js index 5af3e8d..d088a09 100644 --- a/src/model/Override.js +++ b/src/model/Override.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The Override model module. * @module model/Override - * @version 2.0.5 + * @version 2.0.6 */ class Override { /** @@ -69,7 +69,7 @@ class Override { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of Override.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/PropertiesValue.js b/src/model/PropertiesValue.js index c888e3f..354146d 100644 --- a/src/model/PropertiesValue.js +++ b/src/model/PropertiesValue.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The PropertiesValue model module. * @module model/PropertiesValue - * @version 2.0.5 + * @version 2.0.6 */ class PropertiesValue { /** @@ -74,7 +74,7 @@ class PropertiesValue { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of PropertiesValue.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/PropertiesValues.js b/src/model/PropertiesValues.js index d801303..80116a1 100644 --- a/src/model/PropertiesValues.js +++ b/src/model/PropertiesValues.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -17,7 +17,7 @@ import PropertiesValue from './PropertiesValue'; /** * The PropertiesValues model module. * @module model/PropertiesValues - * @version 2.0.5 + * @version 2.0.6 */ class PropertiesValues { /** @@ -36,6 +36,7 @@ class PropertiesValues { * Only for internal use. */ static initialize(obj, properties) { + obj['input'] = false; obj['properties'] = properties; } @@ -68,7 +69,7 @@ class PropertiesValues { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of PropertiesValues.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/Property.js b/src/model/Property.js index 4bc06a1..86ee5e3 100644 --- a/src/model/Property.js +++ b/src/model/Property.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The Property model module. * @module model/Property - * @version 2.0.5 + * @version 2.0.6 */ class Property { /** @@ -41,6 +41,7 @@ class Property { static initialize(obj, name, permission, type, updateStrategy) { obj['name'] = name; obj['permission'] = permission; + obj['persist'] = true; obj['type'] = type; obj['update_strategy'] = updateStrategy; } @@ -98,7 +99,7 @@ class Property { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of Property.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/PropertyValue.js b/src/model/PropertyValue.js index 4469670..ce0fcda 100644 --- a/src/model/PropertyValue.js +++ b/src/model/PropertyValue.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The PropertyValue model module. * @module model/PropertyValue - * @version 2.0.5 + * @version 2.0.6 */ class PropertyValue { /** @@ -68,7 +68,7 @@ class PropertyValue { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of PropertyValue.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/Sharerequest.js b/src/model/Sharerequest.js index d0c2fe0..8c6e03e 100644 --- a/src/model/Sharerequest.js +++ b/src/model/Sharerequest.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The Sharerequest model module. * @module model/Sharerequest - * @version 2.0.5 + * @version 2.0.6 */ class Sharerequest { /** diff --git a/src/model/Tag.js b/src/model/Tag.js index 6b37652..789612c 100644 --- a/src/model/Tag.js +++ b/src/model/Tag.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The Tag model module. * @module model/Tag - * @version 2.0.5 + * @version 2.0.6 */ class Tag { /** @@ -69,7 +69,7 @@ class Tag { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of Tag.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/Template.js b/src/model/Template.js index a5349de..7be0e87 100644 --- a/src/model/Template.js +++ b/src/model/Template.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The Template model module. * @module model/Template - * @version 2.0.5 + * @version 2.0.6 */ class Template { /** @@ -74,7 +74,7 @@ class Template { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of Template.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/ThingClone.js b/src/model/ThingClone.js index 30f9cc3..b8058b9 100644 --- a/src/model/ThingClone.js +++ b/src/model/ThingClone.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ThingClone model module. * @module model/ThingClone - * @version 2.0.5 + * @version 2.0.6 */ class ThingClone { /** @@ -68,7 +68,7 @@ class ThingClone { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of ThingClone.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/ThingCreate.js b/src/model/ThingCreate.js index b7ceee2..a774fff 100644 --- a/src/model/ThingCreate.js +++ b/src/model/ThingCreate.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -18,7 +18,7 @@ import Tag from './Tag'; /** * The ThingCreate model module. * @module model/ThingCreate - * @version 2.0.5 + * @version 2.0.6 */ class ThingCreate { /** @@ -37,6 +37,7 @@ class ThingCreate { * Only for internal use. */ static initialize(obj) { + obj['timezone'] = 'America/New_York'; } /** diff --git a/src/model/ThingSketch.js b/src/model/ThingSketch.js index fcf6926..a5b6448 100644 --- a/src/model/ThingSketch.js +++ b/src/model/ThingSketch.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ThingSketch model module. * @module model/ThingSketch - * @version 2.0.5 + * @version 2.0.6 */ class ThingSketch { /** diff --git a/src/model/ThingUpdate.js b/src/model/ThingUpdate.js index dc4089e..f14912e 100644 --- a/src/model/ThingUpdate.js +++ b/src/model/ThingUpdate.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -17,7 +17,7 @@ import Property from './Property'; /** * The ThingUpdate model module. * @module model/ThingUpdate - * @version 2.0.5 + * @version 2.0.6 */ class ThingUpdate { /** diff --git a/src/model/TimeseriesDataPoint.js b/src/model/TimeseriesDataPoint.js index 2c3f650..b5ee122 100644 --- a/src/model/TimeseriesDataPoint.js +++ b/src/model/TimeseriesDataPoint.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The TimeseriesDataPoint model module. * @module model/TimeseriesDataPoint - * @version 2.0.5 + * @version 2.0.6 */ class TimeseriesDataPoint { /** @@ -69,7 +69,7 @@ class TimeseriesDataPoint { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of TimeseriesDataPoint.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/UpdateSketch.js b/src/model/UpdateSketch.js index 7fda687..2b3b75e 100644 --- a/src/model/UpdateSketch.js +++ b/src/model/UpdateSketch.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The UpdateSketch model module. * @module model/UpdateSketch - * @version 2.0.5 + * @version 2.0.6 */ class UpdateSketch { /** diff --git a/src/model/Widget.js b/src/model/Widget.js index 963198c..6b1244d 100644 --- a/src/model/Widget.js +++ b/src/model/Widget.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The Widget model module. * @module model/Widget - * @version 2.0.5 + * @version 2.0.6 */ class Widget { /** @@ -113,7 +113,7 @@ class Widget { static validateJSON(data) { // check to make sure all required properties are present in the JSON string for (const property of Widget.RequiredProperties) { - if (!data[property]) { + if (!data.hasOwnProperty(property)) { throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); } } diff --git a/src/model/Widgetlink.js b/src/model/Widgetlink.js index 65ca9f7..e9830a1 100644 --- a/src/model/Widgetlink.js +++ b/src/model/Widgetlink.js @@ -1,6 +1,6 @@ /** * 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) + * 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 * @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The Widgetlink model module. * @module model/Widgetlink - * @version 2.0.5 + * @version 2.0.6 */ class Widgetlink { /** diff --git a/test/api/DashboardsV2Api.spec.js b/test/api/DashboardsV2Api.spec.js new file mode 100644 index 0000000..245314d --- /dev/null +++ b/test/api/DashboardsV2Api.spec.js @@ -0,0 +1,173 @@ +/** + * 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.DashboardsV2Api(); + }); + + 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('DashboardsV2Api', function() { + describe('dashboardsV2Clone', function() { + it('should call dashboardsV2Clone successfully', function(done) { + //uncomment below and update the code to test dashboardsV2Clone + //instance.dashboardsV2Clone(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('dashboardsV2Create', function() { + it('should call dashboardsV2Create successfully', function(done) { + //uncomment below and update the code to test dashboardsV2Create + //instance.dashboardsV2Create(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('dashboardsV2Delete', function() { + it('should call dashboardsV2Delete successfully', function(done) { + //uncomment below and update the code to test dashboardsV2Delete + //instance.dashboardsV2Delete(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('dashboardsV2DeleteShare', function() { + it('should call dashboardsV2DeleteShare successfully', function(done) { + //uncomment below and update the code to test dashboardsV2DeleteShare + //instance.dashboardsV2DeleteShare(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('dashboardsV2Link', function() { + it('should call dashboardsV2Link successfully', function(done) { + //uncomment below and update the code to test dashboardsV2Link + //instance.dashboardsV2Link(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('dashboardsV2List', function() { + it('should call dashboardsV2List successfully', function(done) { + //uncomment below and update the code to test dashboardsV2List + //instance.dashboardsV2List(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('dashboardsV2ListShares', function() { + it('should call dashboardsV2ListShares successfully', function(done) { + //uncomment below and update the code to test dashboardsV2ListShares + //instance.dashboardsV2ListShares(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('dashboardsV2RequestAccess', function() { + it('should call dashboardsV2RequestAccess successfully', function(done) { + //uncomment below and update the code to test dashboardsV2RequestAccess + //instance.dashboardsV2RequestAccess(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('dashboardsV2Share', function() { + it('should call dashboardsV2Share successfully', function(done) { + //uncomment below and update the code to test dashboardsV2Share + //instance.dashboardsV2Share(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('dashboardsV2Show', function() { + it('should call dashboardsV2Show successfully', function(done) { + //uncomment below and update the code to test dashboardsV2Show + //instance.dashboardsV2Show(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('dashboardsV2Template', function() { + it('should call dashboardsV2Template successfully', function(done) { + //uncomment below and update the code to test dashboardsV2Template + //instance.dashboardsV2Template(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('dashboardsV2Update', function() { + it('should call dashboardsV2Update successfully', function(done) { + //uncomment below and update the code to test dashboardsV2Update + //instance.dashboardsV2Update(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/DevicesV2Api.spec.js b/test/api/DevicesV2Api.spec.js new file mode 100644 index 0000000..1492980 --- /dev/null +++ b/test/api/DevicesV2Api.spec.js @@ -0,0 +1,153 @@ +/** + * 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.DevicesV2Api(); + }); + + 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('DevicesV2Api', function() { + describe('devicesV2Create', function() { + it('should call devicesV2Create successfully', function(done) { + //uncomment below and update the code to test devicesV2Create + //instance.devicesV2Create(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('devicesV2Delete', function() { + it('should call devicesV2Delete successfully', function(done) { + //uncomment below and update the code to test devicesV2Delete + //instance.devicesV2Delete(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('devicesV2GetEvents', function() { + it('should call devicesV2GetEvents successfully', function(done) { + //uncomment below and update the code to test devicesV2GetEvents + //instance.devicesV2GetEvents(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('devicesV2GetProperties', function() { + it('should call devicesV2GetProperties successfully', function(done) { + //uncomment below and update the code to test devicesV2GetProperties + //instance.devicesV2GetProperties(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('devicesV2GetStatusEvents', function() { + it('should call devicesV2GetStatusEvents successfully', function(done) { + //uncomment below and update the code to test devicesV2GetStatusEvents + //instance.devicesV2GetStatusEvents(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('devicesV2List', function() { + it('should call devicesV2List successfully', function(done) { + //uncomment below and update the code to test devicesV2List + //instance.devicesV2List(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('devicesV2Show', function() { + it('should call devicesV2Show successfully', function(done) { + //uncomment below and update the code to test devicesV2Show + //instance.devicesV2Show(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('devicesV2Timeseries', function() { + it('should call devicesV2Timeseries successfully', function(done) { + //uncomment below and update the code to test devicesV2Timeseries + //instance.devicesV2Timeseries(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('devicesV2Update', function() { + it('should call devicesV2Update successfully', function(done) { + //uncomment below and update the code to test devicesV2Update + //instance.devicesV2Update(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('devicesV2UpdateProperties', function() { + it('should call devicesV2UpdateProperties successfully', function(done) { + //uncomment below and update the code to test devicesV2UpdateProperties + //instance.devicesV2UpdateProperties(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/DevicesV2CertsApi.spec.js b/test/api/DevicesV2CertsApi.spec.js new file mode 100644 index 0000000..0cd8886 --- /dev/null +++ b/test/api/DevicesV2CertsApi.spec.js @@ -0,0 +1,103 @@ +/** + * 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.DevicesV2CertsApi(); + }); + + 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('DevicesV2CertsApi', function() { + describe('devicesV2CertsCreate', function() { + it('should call devicesV2CertsCreate successfully', function(done) { + //uncomment below and update the code to test devicesV2CertsCreate + //instance.devicesV2CertsCreate(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('devicesV2CertsDelete', function() { + it('should call devicesV2CertsDelete successfully', function(done) { + //uncomment below and update the code to test devicesV2CertsDelete + //instance.devicesV2CertsDelete(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('devicesV2CertsList', function() { + it('should call devicesV2CertsList successfully', function(done) { + //uncomment below and update the code to test devicesV2CertsList + //instance.devicesV2CertsList(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('devicesV2CertsShow', function() { + it('should call devicesV2CertsShow successfully', function(done) { + //uncomment below and update the code to test devicesV2CertsShow + //instance.devicesV2CertsShow(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('devicesV2CertsUpdate', function() { + it('should call devicesV2CertsUpdate successfully', function(done) { + //uncomment below and update the code to test devicesV2CertsUpdate + //instance.devicesV2CertsUpdate(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/DevicesV2OtaApi.spec.js b/test/api/DevicesV2OtaApi.spec.js new file mode 100644 index 0000000..fdf5426 --- /dev/null +++ b/test/api/DevicesV2OtaApi.spec.js @@ -0,0 +1,83 @@ +/** + * Arduino IoT Cloud API + * Provides a set of endpoints to manage Arduino IoT Cloud **Devices**, **Things**, **Properties** and **Timeseries**. This API can be called just with any HTTP Client, or using one of these clients: * [Javascript NPM package](https://www.npmjs.com/package/@arduino/arduino-iot-client) * [Python PYPI Package](https://pypi.org/project/arduino-iot-client/) * [Golang Module](https://github.com/arduino/iot-client-go) + * + * The version of the OpenAPI document: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(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.DevicesV2OtaApi(); + }); + + 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('DevicesV2OtaApi', function() { + describe('devicesV2OtaSend', function() { + it('should call devicesV2OtaSend successfully', function(done) { + //uncomment below and update the code to test devicesV2OtaSend + //instance.devicesV2OtaSend(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('devicesV2OtaUpload', function() { + it('should call devicesV2OtaUpload successfully', function(done) { + //uncomment below and update the code to test devicesV2OtaUpload + //instance.devicesV2OtaUpload(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('devicesV2OtaUrl', function() { + it('should call devicesV2OtaUrl successfully', function(done) { + //uncomment below and update the code to test devicesV2OtaUrl + //instance.devicesV2OtaUrl(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/DevicesV2PassApi.spec.js b/test/api/DevicesV2PassApi.spec.js new file mode 100644 index 0000000..c0beeaf --- /dev/null +++ b/test/api/DevicesV2PassApi.spec.js @@ -0,0 +1,93 @@ +/** + * 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.DevicesV2PassApi(); + }); + + 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('DevicesV2PassApi', function() { + describe('devicesV2PassCheck', function() { + it('should call devicesV2PassCheck successfully', function(done) { + //uncomment below and update the code to test devicesV2PassCheck + //instance.devicesV2PassCheck(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('devicesV2PassDelete', function() { + it('should call devicesV2PassDelete successfully', function(done) { + //uncomment below and update the code to test devicesV2PassDelete + //instance.devicesV2PassDelete(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('devicesV2PassGet', function() { + it('should call devicesV2PassGet successfully', function(done) { + //uncomment below and update the code to test devicesV2PassGet + //instance.devicesV2PassGet(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('devicesV2PassSet', function() { + it('should call devicesV2PassSet successfully', function(done) { + //uncomment below and update the code to test devicesV2PassSet + //instance.devicesV2PassSet(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/DevicesV2TagsApi.spec.js b/test/api/DevicesV2TagsApi.spec.js new file mode 100644 index 0000000..347b48e --- /dev/null +++ b/test/api/DevicesV2TagsApi.spec.js @@ -0,0 +1,83 @@ +/** + * Arduino IoT Cloud API + * Provides a set of endpoints to manage Arduino IoT Cloud **Devices**, **Things**, **Properties** and **Timeseries**. This API can be called just with any HTTP Client, or using one of these clients: * [Javascript NPM package](https://www.npmjs.com/package/@arduino/arduino-iot-client) * [Python PYPI Package](https://pypi.org/project/arduino-iot-client/) * [Golang Module](https://github.com/arduino/iot-client-go) + * + * The version of the OpenAPI document: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(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.DevicesV2TagsApi(); + }); + + 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('DevicesV2TagsApi', function() { + describe('devicesV2TagsDelete', function() { + it('should call devicesV2TagsDelete successfully', function(done) { + //uncomment below and update the code to test devicesV2TagsDelete + //instance.devicesV2TagsDelete(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('devicesV2TagsList', function() { + it('should call devicesV2TagsList successfully', function(done) { + //uncomment below and update the code to test devicesV2TagsList + //instance.devicesV2TagsList(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('devicesV2TagsUpsert', function() { + it('should call devicesV2TagsUpsert successfully', function(done) { + //uncomment below and update the code to test devicesV2TagsUpsert + //instance.devicesV2TagsUpsert(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/LoraDevicesV1Api.spec.js b/test/api/LoraDevicesV1Api.spec.js new file mode 100644 index 0000000..fea6268 --- /dev/null +++ b/test/api/LoraDevicesV1Api.spec.js @@ -0,0 +1,63 @@ +/** + * 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.LoraDevicesV1Api(); + }); + + 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('LoraDevicesV1Api', function() { + describe('loraDevicesV1Create', function() { + it('should call loraDevicesV1Create successfully', function(done) { + //uncomment below and update the code to test loraDevicesV1Create + //instance.loraDevicesV1Create(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/LoraFreqPlanV1Api.spec.js b/test/api/LoraFreqPlanV1Api.spec.js new file mode 100644 index 0000000..9672373 --- /dev/null +++ b/test/api/LoraFreqPlanV1Api.spec.js @@ -0,0 +1,63 @@ +/** + * 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.LoraFreqPlanV1Api(); + }); + + 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('LoraFreqPlanV1Api', function() { + describe('loraFreqPlanV1List', function() { + it('should call loraFreqPlanV1List successfully', function(done) { + //uncomment below and update the code to test loraFreqPlanV1List + //instance.loraFreqPlanV1List(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/NetworkCredentialsV1Api.spec.js b/test/api/NetworkCredentialsV1Api.spec.js new file mode 100644 index 0000000..ee0658b --- /dev/null +++ b/test/api/NetworkCredentialsV1Api.spec.js @@ -0,0 +1,73 @@ +/** + * 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.NetworkCredentialsV1Api(); + }); + + 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('NetworkCredentialsV1Api', function() { + describe('networkCredentialsV1Show', function() { + it('should call networkCredentialsV1Show successfully', function(done) { + //uncomment below and update the code to test networkCredentialsV1Show + //instance.networkCredentialsV1Show(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('networkCredentialsV1ShowByDevice', function() { + it('should call networkCredentialsV1ShowByDevice successfully', function(done) { + //uncomment below and update the code to test networkCredentialsV1ShowByDevice + //instance.networkCredentialsV1ShowByDevice(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/PropertiesV2Api.spec.js b/test/api/PropertiesV2Api.spec.js new file mode 100644 index 0000000..b8233e5 --- /dev/null +++ b/test/api/PropertiesV2Api.spec.js @@ -0,0 +1,123 @@ +/** + * 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.PropertiesV2Api(); + }); + + 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('PropertiesV2Api', function() { + describe('propertiesV2Create', function() { + it('should call propertiesV2Create successfully', function(done) { + //uncomment below and update the code to test propertiesV2Create + //instance.propertiesV2Create(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('propertiesV2Delete', function() { + it('should call propertiesV2Delete successfully', function(done) { + //uncomment below and update the code to test propertiesV2Delete + //instance.propertiesV2Delete(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('propertiesV2List', function() { + it('should call propertiesV2List successfully', function(done) { + //uncomment below and update the code to test propertiesV2List + //instance.propertiesV2List(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('propertiesV2Publish', function() { + it('should call propertiesV2Publish successfully', function(done) { + //uncomment below and update the code to test propertiesV2Publish + //instance.propertiesV2Publish(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('propertiesV2Show', function() { + it('should call propertiesV2Show successfully', function(done) { + //uncomment below and update the code to test propertiesV2Show + //instance.propertiesV2Show(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('propertiesV2Timeseries', function() { + it('should call propertiesV2Timeseries successfully', function(done) { + //uncomment below and update the code to test propertiesV2Timeseries + //instance.propertiesV2Timeseries(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('propertiesV2Update', function() { + it('should call propertiesV2Update successfully', function(done) { + //uncomment below and update the code to test propertiesV2Update + //instance.propertiesV2Update(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/PropertyTypesV1Api.spec.js b/test/api/PropertyTypesV1Api.spec.js new file mode 100644 index 0000000..2c09992 --- /dev/null +++ b/test/api/PropertyTypesV1Api.spec.js @@ -0,0 +1,63 @@ +/** + * 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.PropertyTypesV1Api(); + }); + + 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('PropertyTypesV1Api', function() { + describe('propertyTypesV1ListTypes', function() { + it('should call propertyTypesV1ListTypes successfully', function(done) { + //uncomment below and update the code to test propertyTypesV1ListTypes + //instance.propertyTypesV1ListTypes(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/SeriesV2Api.spec.js b/test/api/SeriesV2Api.spec.js new file mode 100644 index 0000000..668bd45 --- /dev/null +++ b/test/api/SeriesV2Api.spec.js @@ -0,0 +1,103 @@ +/** + * 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.SeriesV2Api(); + }); + + 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('SeriesV2Api', function() { + describe('seriesV2BatchQuery', function() { + it('should call seriesV2BatchQuery successfully', function(done) { + //uncomment below and update the code to test seriesV2BatchQuery + //instance.seriesV2BatchQuery(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('seriesV2BatchQueryRaw', function() { + it('should call seriesV2BatchQueryRaw successfully', function(done) { + //uncomment below and update the code to test seriesV2BatchQueryRaw + //instance.seriesV2BatchQueryRaw(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('seriesV2BatchQueryRawLastValue', function() { + it('should call seriesV2BatchQueryRawLastValue successfully', function(done) { + //uncomment below and update the code to test seriesV2BatchQueryRawLastValue + //instance.seriesV2BatchQueryRawLastValue(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('seriesV2BatchQuerySampling', function() { + it('should call seriesV2BatchQuerySampling successfully', function(done) { + //uncomment below and update the code to test seriesV2BatchQuerySampling + //instance.seriesV2BatchQuerySampling(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('seriesV2HistoricData', function() { + it('should call seriesV2HistoricData successfully', function(done) { + //uncomment below and update the code to test seriesV2HistoricData + //instance.seriesV2HistoricData(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/TemplatesApi.spec.js b/test/api/TemplatesApi.spec.js new file mode 100644 index 0000000..501ffa6 --- /dev/null +++ b/test/api/TemplatesApi.spec.js @@ -0,0 +1,63 @@ +/** + * 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.TemplatesApi(); + }); + + 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('TemplatesApi', function() { + describe('templatesApply', function() { + it('should call templatesApply successfully', function(done) { + //uncomment below and update the code to test templatesApply + //instance.templatesApply(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/ThingsV2Api.spec.js b/test/api/ThingsV2Api.spec.js new file mode 100644 index 0000000..aaf9bdf --- /dev/null +++ b/test/api/ThingsV2Api.spec.js @@ -0,0 +1,153 @@ +/** + * 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.ThingsV2Api(); + }); + + 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('ThingsV2Api', function() { + describe('thingsV2Clone', function() { + it('should call thingsV2Clone successfully', function(done) { + //uncomment below and update the code to test thingsV2Clone + //instance.thingsV2Clone(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('thingsV2Create', function() { + it('should call thingsV2Create successfully', function(done) { + //uncomment below and update the code to test thingsV2Create + //instance.thingsV2Create(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('thingsV2CreateSketch', function() { + it('should call thingsV2CreateSketch successfully', function(done) { + //uncomment below and update the code to test thingsV2CreateSketch + //instance.thingsV2CreateSketch(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('thingsV2Delete', function() { + it('should call thingsV2Delete successfully', function(done) { + //uncomment below and update the code to test thingsV2Delete + //instance.thingsV2Delete(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('thingsV2DeleteSketch', function() { + it('should call thingsV2DeleteSketch successfully', function(done) { + //uncomment below and update the code to test thingsV2DeleteSketch + //instance.thingsV2DeleteSketch(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('thingsV2List', function() { + it('should call thingsV2List successfully', function(done) { + //uncomment below and update the code to test thingsV2List + //instance.thingsV2List(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('thingsV2Show', function() { + it('should call thingsV2Show successfully', function(done) { + //uncomment below and update the code to test thingsV2Show + //instance.thingsV2Show(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('thingsV2Template', function() { + it('should call thingsV2Template successfully', function(done) { + //uncomment below and update the code to test thingsV2Template + //instance.thingsV2Template(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('thingsV2Update', function() { + it('should call thingsV2Update successfully', function(done) { + //uncomment below and update the code to test thingsV2Update + //instance.thingsV2Update(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('thingsV2UpdateSketch', function() { + it('should call thingsV2UpdateSketch successfully', function(done) { + //uncomment below and update the code to test thingsV2UpdateSketch + //instance.thingsV2UpdateSketch(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/ThingsV2TagsApi.spec.js b/test/api/ThingsV2TagsApi.spec.js new file mode 100644 index 0000000..50ce9eb --- /dev/null +++ b/test/api/ThingsV2TagsApi.spec.js @@ -0,0 +1,83 @@ +/** + * Arduino IoT Cloud API + * Provides a set of endpoints to manage Arduino IoT Cloud **Devices**, **Things**, **Properties** and **Timeseries**. This API can be called just with any HTTP Client, or using one of these clients: * [Javascript NPM package](https://www.npmjs.com/package/@arduino/arduino-iot-client) * [Python PYPI Package](https://pypi.org/project/arduino-iot-client/) * [Golang Module](https://github.com/arduino/iot-client-go) + * + * The version of the OpenAPI document: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(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.ThingsV2TagsApi(); + }); + + 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('ThingsV2TagsApi', function() { + describe('thingsV2TagsDelete', function() { + it('should call thingsV2TagsDelete successfully', function(done) { + //uncomment below and update the code to test thingsV2TagsDelete + //instance.thingsV2TagsDelete(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('thingsV2TagsList', function() { + it('should call thingsV2TagsList successfully', function(done) { + //uncomment below and update the code to test thingsV2TagsList + //instance.thingsV2TagsList(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('thingsV2TagsUpsert', function() { + it('should call thingsV2TagsUpsert successfully', function(done) { + //uncomment below and update the code to test thingsV2TagsUpsert + //instance.thingsV2TagsUpsert(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/model/ArduinoCompressedv2.spec.js b/test/model/ArduinoCompressedv2.spec.js new file mode 100644 index 0000000..a25998e --- /dev/null +++ b/test/model/ArduinoCompressedv2.spec.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. + * + */ + +(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.ArduinoCompressedv2(); + }); + + 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('ArduinoCompressedv2', function() { + it('should create an instance of ArduinoCompressedv2', function() { + // uncomment below and update the code to test ArduinoCompressedv2 + //var instance = new ArduinoIotClient.ArduinoCompressedv2(); + //expect(instance).to.be.a(ArduinoIotClient.ArduinoCompressedv2); + }); + + it('should have the property authorityKeyIdentifier (base name: "authority_key_identifier")', function() { + // uncomment below and update the code to test the property authorityKeyIdentifier + //var instance = new ArduinoIotClient.ArduinoCompressedv2(); + //expect(instance).to.be(); + }); + + it('should have the property notAfter (base name: "not_after")', function() { + // uncomment below and update the code to test the property notAfter + //var instance = new ArduinoIotClient.ArduinoCompressedv2(); + //expect(instance).to.be(); + }); + + it('should have the property notBefore (base name: "not_before")', function() { + // uncomment below and update the code to test the property notBefore + //var instance = new ArduinoIotClient.ArduinoCompressedv2(); + //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.ArduinoCompressedv2(); + //expect(instance).to.be(); + }); + + it('should have the property signature (base name: "signature")', function() { + // uncomment below and update the code to test the property signature + //var instance = new ArduinoIotClient.ArduinoCompressedv2(); + //expect(instance).to.be(); + }); + + it('should have the property signatureAsn1X (base name: "signature_asn1_x")', function() { + // uncomment below and update the code to test the property signatureAsn1X + //var instance = new ArduinoIotClient.ArduinoCompressedv2(); + //expect(instance).to.be(); + }); + + it('should have the property signatureAsn1Y (base name: "signature_asn1_y")', function() { + // uncomment below and update the code to test the property signatureAsn1Y + //var instance = new ArduinoIotClient.ArduinoCompressedv2(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ArduinoCredentialsv1.spec.js b/test/model/ArduinoCredentialsv1.spec.js new file mode 100644 index 0000000..d6d7970 --- /dev/null +++ b/test/model/ArduinoCredentialsv1.spec.js @@ -0,0 +1,83 @@ +/** + * Arduino IoT Cloud API + * Provides a set of endpoints to manage Arduino IoT Cloud **Devices**, **Things**, **Properties** and **Timeseries**. This API can be called just with any HTTP Client, or using one of these clients: * [Javascript NPM package](https://www.npmjs.com/package/@arduino/arduino-iot-client) * [Python PYPI Package](https://pypi.org/project/arduino-iot-client/) * [Golang Module](https://github.com/arduino/iot-client-go) + * + * The version of the OpenAPI document: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(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.ArduinoCredentialsv1(); + }); + + 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('ArduinoCredentialsv1', function() { + it('should create an instance of ArduinoCredentialsv1', function() { + // uncomment below and update the code to test ArduinoCredentialsv1 + //var instance = new ArduinoIotClient.ArduinoCredentialsv1(); + //expect(instance).to.be.a(ArduinoIotClient.ArduinoCredentialsv1); + }); + + it('should have the property friendlyName (base name: "friendly_name")', function() { + // uncomment below and update the code to test the property friendlyName + //var instance = new ArduinoIotClient.ArduinoCredentialsv1(); + //expect(instance).to.be(); + }); + + it('should have the property required (base name: "required")', function() { + // uncomment below and update the code to test the property required + //var instance = new ArduinoIotClient.ArduinoCredentialsv1(); + //expect(instance).to.be(); + }); + + it('should have the property secretName (base name: "secret_name")', function() { + // uncomment below and update the code to test the property secretName + //var instance = new ArduinoIotClient.ArduinoCredentialsv1(); + //expect(instance).to.be(); + }); + + it('should have the property sensitive (base name: "sensitive")', function() { + // uncomment below and update the code to test the property sensitive + //var instance = new ArduinoIotClient.ArduinoCredentialsv1(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ArduinoDashboardowner.spec.js b/test/model/ArduinoDashboardowner.spec.js new file mode 100644 index 0000000..61a4bfd --- /dev/null +++ b/test/model/ArduinoDashboardowner.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.ArduinoDashboardowner(); + }); + + 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('ArduinoDashboardowner', function() { + it('should create an instance of ArduinoDashboardowner', function() { + // uncomment below and update the code to test ArduinoDashboardowner + //var instance = new ArduinoIotClient.ArduinoDashboardowner(); + //expect(instance).to.be.a(ArduinoIotClient.ArduinoDashboardowner); + }); + + 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.ArduinoDashboardowner(); + //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.ArduinoDashboardowner(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ArduinoDashboardshare.spec.js b/test/model/ArduinoDashboardshare.spec.js new file mode 100644 index 0000000..b314b4f --- /dev/null +++ b/test/model/ArduinoDashboardshare.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.ArduinoDashboardshare(); + }); + + 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('ArduinoDashboardshare', function() { + it('should create an instance of ArduinoDashboardshare', function() { + // uncomment below and update the code to test ArduinoDashboardshare + //var instance = new ArduinoIotClient.ArduinoDashboardshare(); + //expect(instance).to.be.a(ArduinoIotClient.ArduinoDashboardshare); + }); + + 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.ArduinoDashboardshare(); + //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.ArduinoDashboardshare(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ArduinoDashboardv2.spec.js b/test/model/ArduinoDashboardv2.spec.js new file mode 100644 index 0000000..c099161 --- /dev/null +++ b/test/model/ArduinoDashboardv2.spec.js @@ -0,0 +1,113 @@ +/** + * 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.ArduinoDashboardv2(); + }); + + 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('ArduinoDashboardv2', function() { + it('should create an instance of ArduinoDashboardv2', function() { + // uncomment below and update the code to test ArduinoDashboardv2 + //var instance = new ArduinoIotClient.ArduinoDashboardv2(); + //expect(instance).to.be.a(ArduinoIotClient.ArduinoDashboardv2); + }); + + it('should have the property coverImage (base name: "cover_image")', function() { + // uncomment below and update the code to test the property coverImage + //var instance = new ArduinoIotClient.ArduinoDashboardv2(); + //expect(instance).to.be(); + }); + + it('should have the property createdBy (base name: "created_by")', function() { + // uncomment below and update the code to test the property createdBy + //var instance = new ArduinoIotClient.ArduinoDashboardv2(); + //expect(instance).to.be(); + }); + + 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.ArduinoDashboardv2(); + //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.ArduinoDashboardv2(); + //expect(instance).to.be(); + }); + + it('should have the property organizationId (base name: "organization_id")', function() { + // uncomment below and update the code to test the property organizationId + //var instance = new ArduinoIotClient.ArduinoDashboardv2(); + //expect(instance).to.be(); + }); + + it('should have the property sharedBy (base name: "shared_by")', function() { + // uncomment below and update the code to test the property sharedBy + //var instance = new ArduinoIotClient.ArduinoDashboardv2(); + //expect(instance).to.be(); + }); + + it('should have the property sharedWith (base name: "shared_with")', function() { + // uncomment below and update the code to test the property sharedWith + //var instance = new ArduinoIotClient.ArduinoDashboardv2(); + //expect(instance).to.be(); + }); + + it('should have the property updatedAt (base name: "updated_at")', function() { + // uncomment below and update the code to test the property updatedAt + //var instance = new ArduinoIotClient.ArduinoDashboardv2(); + //expect(instance).to.be(); + }); + + it('should have the property widgets (base name: "widgets")', function() { + // uncomment below and update the code to test the property widgets + //var instance = new ArduinoIotClient.ArduinoDashboardv2(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ArduinoDashboardv2template.spec.js b/test/model/ArduinoDashboardv2template.spec.js new file mode 100644 index 0000000..0f7c497 --- /dev/null +++ b/test/model/ArduinoDashboardv2template.spec.js @@ -0,0 +1,83 @@ +/** + * Arduino IoT Cloud API + * Provides a set of endpoints to manage Arduino IoT Cloud **Devices**, **Things**, **Properties** and **Timeseries**. This API can be called just with any HTTP Client, or using one of these clients: * [Javascript NPM package](https://www.npmjs.com/package/@arduino/arduino-iot-client) * [Python PYPI Package](https://pypi.org/project/arduino-iot-client/) * [Golang Module](https://github.com/arduino/iot-client-go) + * + * The version of the OpenAPI document: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(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.ArduinoDashboardv2template(); + }); + + 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('ArduinoDashboardv2template', function() { + it('should create an instance of ArduinoDashboardv2template', function() { + // uncomment below and update the code to test ArduinoDashboardv2template + //var instance = new ArduinoIotClient.ArduinoDashboardv2template(); + //expect(instance).to.be.a(ArduinoIotClient.ArduinoDashboardv2template); + }); + + it('should have the property coverImage (base name: "cover_image")', function() { + // uncomment below and update the code to test the property coverImage + //var instance = new ArduinoIotClient.ArduinoDashboardv2template(); + //expect(instance).to.be(); + }); + + 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.ArduinoDashboardv2template(); + //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.ArduinoDashboardv2template(); + //expect(instance).to.be(); + }); + + it('should have the property widgets (base name: "widgets")', function() { + // uncomment below and update the code to test the property widgets + //var instance = new ArduinoIotClient.ArduinoDashboardv2template(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ArduinoDevicev2.spec.js b/test/model/ArduinoDevicev2.spec.js new file mode 100644 index 0000000..0f41282 --- /dev/null +++ b/test/model/ArduinoDevicev2.spec.js @@ -0,0 +1,203 @@ +/** + * 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.ArduinoDevicev2(); + }); + + 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('ArduinoDevicev2', function() { + it('should create an instance of ArduinoDevicev2', function() { + // uncomment below and update the code to test ArduinoDevicev2 + //var instance = new ArduinoIotClient.ArduinoDevicev2(); + //expect(instance).to.be.a(ArduinoIotClient.ArduinoDevicev2); + }); + + 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.ArduinoDevicev2(); + //expect(instance).to.be(); + }); + + it('should have the property createdAt (base name: "created_at")', function() { + // uncomment below and update the code to test the property createdAt + //var instance = new ArduinoIotClient.ArduinoDevicev2(); + //expect(instance).to.be(); + }); + + it('should have the property deviceStatus (base name: "device_status")', function() { + // uncomment below and update the code to test the property deviceStatus + //var instance = new ArduinoIotClient.ArduinoDevicev2(); + //expect(instance).to.be(); + }); + + it('should have the property events (base name: "events")', function() { + // uncomment below and update the code to test the property events + //var instance = new ArduinoIotClient.ArduinoDevicev2(); + //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.ArduinoDevicev2(); + //expect(instance).to.be(); + }); + + it('should have the property href (base name: "href")', function() { + // uncomment below and update the code to test the property href + //var instance = new ArduinoIotClient.ArduinoDevicev2(); + //expect(instance).to.be(); + }); + + 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.ArduinoDevicev2(); + //expect(instance).to.be(); + }); + + it('should have the property label (base name: "label")', function() { + // uncomment below and update the code to test the property label + //var instance = new ArduinoIotClient.ArduinoDevicev2(); + //expect(instance).to.be(); + }); + + it('should have the property lastActivityAt (base name: "last_activity_at")', function() { + // uncomment below and update the code to test the property lastActivityAt + //var instance = new ArduinoIotClient.ArduinoDevicev2(); + //expect(instance).to.be(); + }); + + it('should have the property latestWifiFwVersion (base name: "latest_wifi_fw_version")', function() { + // uncomment below and update the code to test the property latestWifiFwVersion + //var instance = new ArduinoIotClient.ArduinoDevicev2(); + //expect(instance).to.be(); + }); + + it('should have the property metadata (base name: "metadata")', function() { + // uncomment below and update the code to test the property metadata + //var instance = new ArduinoIotClient.ArduinoDevicev2(); + //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.ArduinoDevicev2(); + //expect(instance).to.be(); + }); + + it('should have the property noSketch (base name: "no_sketch")', function() { + // uncomment below and update the code to test the property noSketch + //var instance = new ArduinoIotClient.ArduinoDevicev2(); + //expect(instance).to.be(); + }); + + it('should have the property organizationId (base name: "organization_id")', function() { + // uncomment below and update the code to test the property organizationId + //var instance = new ArduinoIotClient.ArduinoDevicev2(); + //expect(instance).to.be(); + }); + + it('should have the property otaAvailable (base name: "ota_available")', function() { + // uncomment below and update the code to test the property otaAvailable + //var instance = new ArduinoIotClient.ArduinoDevicev2(); + //expect(instance).to.be(); + }); + + it('should have the property otaCompatible (base name: "ota_compatible")', function() { + // uncomment below and update the code to test the property otaCompatible + //var instance = new ArduinoIotClient.ArduinoDevicev2(); + //expect(instance).to.be(); + }); + + it('should have the property requiredWifiFwVersion (base name: "required_wifi_fw_version")', function() { + // uncomment below and update the code to test the property requiredWifiFwVersion + //var instance = new ArduinoIotClient.ArduinoDevicev2(); + //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.ArduinoDevicev2(); + //expect(instance).to.be(); + }); + + it('should have the property tags (base name: "tags")', function() { + // uncomment below and update the code to test the property tags + //var instance = new ArduinoIotClient.ArduinoDevicev2(); + //expect(instance).to.be(); + }); + + it('should have the property thing (base name: "thing")', function() { + // uncomment below and update the code to test the property thing + //var instance = new ArduinoIotClient.ArduinoDevicev2(); + //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.ArduinoDevicev2(); + //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.ArduinoDevicev2(); + //expect(instance).to.be(); + }); + + it('should have the property webhooks (base name: "webhooks")', function() { + // uncomment below and update the code to test the property webhooks + //var instance = new ArduinoIotClient.ArduinoDevicev2(); + //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.ArduinoDevicev2(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ArduinoDevicev2Cert.spec.js b/test/model/ArduinoDevicev2Cert.spec.js new file mode 100644 index 0000000..da2c13a --- /dev/null +++ b/test/model/ArduinoDevicev2Cert.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.ArduinoDevicev2Cert(); + }); + + 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('ArduinoDevicev2Cert', function() { + it('should create an instance of ArduinoDevicev2Cert', function() { + // uncomment below and update the code to test ArduinoDevicev2Cert + //var instance = new ArduinoIotClient.ArduinoDevicev2Cert(); + //expect(instance).to.be.a(ArduinoIotClient.ArduinoDevicev2Cert); + }); + + it('should have the property ca (base name: "ca")', function() { + // uncomment below and update the code to test the property ca + //var instance = new ArduinoIotClient.ArduinoDevicev2Cert(); + //expect(instance).to.be(); + }); + + it('should have the property compressed (base name: "compressed")', function() { + // uncomment below and update the code to test the property compressed + //var instance = new ArduinoIotClient.ArduinoDevicev2Cert(); + //expect(instance).to.be(); + }); + + it('should have the property der (base name: "der")', function() { + // uncomment below and update the code to test the property der + //var instance = new ArduinoIotClient.ArduinoDevicev2Cert(); + //expect(instance).to.be(); + }); + + it('should have the property deviceId (base name: "device_id")', function() { + // uncomment below and update the code to test the property deviceId + //var instance = new ArduinoIotClient.ArduinoDevicev2Cert(); + //expect(instance).to.be(); + }); + + it('should have the property enabled (base name: "enabled")', function() { + // uncomment below and update the code to test the property enabled + //var instance = new ArduinoIotClient.ArduinoDevicev2Cert(); + //expect(instance).to.be(); + }); + + it('should have the property href (base name: "href")', function() { + // uncomment below and update the code to test the property href + //var instance = new ArduinoIotClient.ArduinoDevicev2Cert(); + //expect(instance).to.be(); + }); + + 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.ArduinoDevicev2Cert(); + //expect(instance).to.be(); + }); + + it('should have the property pem (base name: "pem")', function() { + // uncomment below and update the code to test the property pem + //var instance = new ArduinoIotClient.ArduinoDevicev2Cert(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ArduinoDevicev2EventProperties.spec.js b/test/model/ArduinoDevicev2EventProperties.spec.js new file mode 100644 index 0000000..52a4312 --- /dev/null +++ b/test/model/ArduinoDevicev2EventProperties.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.ArduinoDevicev2EventProperties(); + }); + + 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('ArduinoDevicev2EventProperties', function() { + it('should create an instance of ArduinoDevicev2EventProperties', function() { + // uncomment below and update the code to test ArduinoDevicev2EventProperties + //var instance = new ArduinoIotClient.ArduinoDevicev2EventProperties(); + //expect(instance).to.be.a(ArduinoIotClient.ArduinoDevicev2EventProperties); + }); + + it('should have the property events (base name: "events")', function() { + // uncomment below and update the code to test the property events + //var instance = new ArduinoIotClient.ArduinoDevicev2EventProperties(); + //expect(instance).to.be(); + }); + + 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.ArduinoDevicev2EventProperties(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ArduinoDevicev2Otaupload.spec.js b/test/model/ArduinoDevicev2Otaupload.spec.js new file mode 100644 index 0000000..647431c --- /dev/null +++ b/test/model/ArduinoDevicev2Otaupload.spec.js @@ -0,0 +1,83 @@ +/** + * Arduino IoT Cloud API + * Provides a set of endpoints to manage Arduino IoT Cloud **Devices**, **Things**, **Properties** and **Timeseries**. This API can be called just with any HTTP Client, or using one of these clients: * [Javascript NPM package](https://www.npmjs.com/package/@arduino/arduino-iot-client) * [Python PYPI Package](https://pypi.org/project/arduino-iot-client/) * [Golang Module](https://github.com/arduino/iot-client-go) + * + * The version of the OpenAPI document: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(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.ArduinoDevicev2Otaupload(); + }); + + 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('ArduinoDevicev2Otaupload', function() { + it('should create an instance of ArduinoDevicev2Otaupload', function() { + // uncomment below and update the code to test ArduinoDevicev2Otaupload + //var instance = new ArduinoIotClient.ArduinoDevicev2Otaupload(); + //expect(instance).to.be.a(ArduinoIotClient.ArduinoDevicev2Otaupload); + }); + + it('should have the property fileSha (base name: "file_sha")', function() { + // uncomment below and update the code to test the property fileSha + //var instance = new ArduinoIotClient.ArduinoDevicev2Otaupload(); + //expect(instance).to.be(); + }); + + it('should have the property otaId (base name: "ota_id")', function() { + // uncomment below and update the code to test the property otaId + //var instance = new ArduinoIotClient.ArduinoDevicev2Otaupload(); + //expect(instance).to.be(); + }); + + it('should have the property otaVersion (base name: "ota_version")', function() { + // uncomment below and update the code to test the property otaVersion + //var instance = new ArduinoIotClient.ArduinoDevicev2Otaupload(); + //expect(instance).to.be(); + }); + + it('should have the property status (base name: "status")', function() { + // uncomment below and update the code to test the property status + //var instance = new ArduinoIotClient.ArduinoDevicev2Otaupload(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ArduinoDevicev2Pass.spec.js b/test/model/ArduinoDevicev2Pass.spec.js new file mode 100644 index 0000000..c586e87 --- /dev/null +++ b/test/model/ArduinoDevicev2Pass.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.ArduinoDevicev2Pass(); + }); + + 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('ArduinoDevicev2Pass', function() { + it('should create an instance of ArduinoDevicev2Pass', function() { + // uncomment below and update the code to test ArduinoDevicev2Pass + //var instance = new ArduinoIotClient.ArduinoDevicev2Pass(); + //expect(instance).to.be.a(ArduinoIotClient.ArduinoDevicev2Pass); + }); + + it('should have the property set (base name: "set")', function() { + // uncomment below and update the code to test the property set + //var instance = new ArduinoIotClient.ArduinoDevicev2Pass(); + //expect(instance).to.be(); + }); + + it('should have the property suggestedPassword (base name: "suggested_password")', function() { + // uncomment below and update the code to test the property suggestedPassword + //var instance = new ArduinoIotClient.ArduinoDevicev2Pass(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ArduinoDevicev2SimpleProperties.spec.js b/test/model/ArduinoDevicev2SimpleProperties.spec.js new file mode 100644 index 0000000..93d6275 --- /dev/null +++ b/test/model/ArduinoDevicev2SimpleProperties.spec.js @@ -0,0 +1,77 @@ +/** + * 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.ArduinoDevicev2SimpleProperties(); + }); + + 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('ArduinoDevicev2SimpleProperties', function() { + it('should create an instance of ArduinoDevicev2SimpleProperties', function() { + // uncomment below and update the code to test ArduinoDevicev2SimpleProperties + //var instance = new ArduinoIotClient.ArduinoDevicev2SimpleProperties(); + //expect(instance).to.be.a(ArduinoIotClient.ArduinoDevicev2SimpleProperties); + }); + + 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.ArduinoDevicev2SimpleProperties(); + //expect(instance).to.be(); + }); + + it('should have the property updatedAt (base name: "updated_at")', function() { + // uncomment below and update the code to test the property updatedAt + //var instance = new ArduinoIotClient.ArduinoDevicev2SimpleProperties(); + //expect(instance).to.be(); + }); + + it('should have the property value (base name: "value")', function() { + // uncomment below and update the code to test the property value + //var instance = new ArduinoIotClient.ArduinoDevicev2SimpleProperties(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ArduinoDevicev2StatusEvent.spec.js b/test/model/ArduinoDevicev2StatusEvent.spec.js new file mode 100644 index 0000000..e01b4fc --- /dev/null +++ b/test/model/ArduinoDevicev2StatusEvent.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.ArduinoDevicev2StatusEvent(); + }); + + 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('ArduinoDevicev2StatusEvent', function() { + it('should create an instance of ArduinoDevicev2StatusEvent', function() { + // uncomment below and update the code to test ArduinoDevicev2StatusEvent + //var instance = new ArduinoIotClient.ArduinoDevicev2StatusEvent(); + //expect(instance).to.be.a(ArduinoIotClient.ArduinoDevicev2StatusEvent); + }); + + it('should have the property updatedAt (base name: "updated_at")', function() { + // uncomment below and update the code to test the property updatedAt + //var instance = new ArduinoIotClient.ArduinoDevicev2StatusEvent(); + //expect(instance).to.be(); + }); + + it('should have the property value (base name: "value")', function() { + // uncomment below and update the code to test the property value + //var instance = new ArduinoIotClient.ArduinoDevicev2StatusEvent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ArduinoDevicev2StatusEvents.spec.js b/test/model/ArduinoDevicev2StatusEvents.spec.js new file mode 100644 index 0000000..ab990eb --- /dev/null +++ b/test/model/ArduinoDevicev2StatusEvents.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.ArduinoDevicev2StatusEvents(); + }); + + 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('ArduinoDevicev2StatusEvents', function() { + it('should create an instance of ArduinoDevicev2StatusEvents', function() { + // uncomment below and update the code to test ArduinoDevicev2StatusEvents + //var instance = new ArduinoIotClient.ArduinoDevicev2StatusEvents(); + //expect(instance).to.be.a(ArduinoIotClient.ArduinoDevicev2StatusEvents); + }); + + it('should have the property events (base name: "events")', function() { + // uncomment below and update the code to test the property events + //var instance = new ArduinoIotClient.ArduinoDevicev2StatusEvents(); + //expect(instance).to.be(); + }); + + 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.ArduinoDevicev2StatusEvents(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ArduinoDevicev2Webhook.spec.js b/test/model/ArduinoDevicev2Webhook.spec.js new file mode 100644 index 0000000..95c54a9 --- /dev/null +++ b/test/model/ArduinoDevicev2Webhook.spec.js @@ -0,0 +1,77 @@ +/** + * 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.ArduinoDevicev2Webhook(); + }); + + 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('ArduinoDevicev2Webhook', function() { + it('should create an instance of ArduinoDevicev2Webhook', function() { + // uncomment below and update the code to test ArduinoDevicev2Webhook + //var instance = new ArduinoIotClient.ArduinoDevicev2Webhook(); + //expect(instance).to.be.a(ArduinoIotClient.ArduinoDevicev2Webhook); + }); + + it('should have the property active (base name: "active")', function() { + // uncomment below and update the code to test the property active + //var instance = new ArduinoIotClient.ArduinoDevicev2Webhook(); + //expect(instance).to.be(); + }); + + 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.ArduinoDevicev2Webhook(); + //expect(instance).to.be(); + }); + + it('should have the property uri (base name: "uri")', function() { + // uncomment below and update the code to test the property uri + //var instance = new ArduinoIotClient.ArduinoDevicev2Webhook(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ArduinoDevicev2properties.spec.js b/test/model/ArduinoDevicev2properties.spec.js new file mode 100644 index 0000000..10113b0 --- /dev/null +++ b/test/model/ArduinoDevicev2properties.spec.js @@ -0,0 +1,83 @@ +/** + * Arduino IoT Cloud API + * Provides a set of endpoints to manage Arduino IoT Cloud **Devices**, **Things**, **Properties** and **Timeseries**. This API can be called just with any HTTP Client, or using one of these clients: * [Javascript NPM package](https://www.npmjs.com/package/@arduino/arduino-iot-client) * [Python PYPI Package](https://pypi.org/project/arduino-iot-client/) * [Golang Module](https://github.com/arduino/iot-client-go) + * + * The version of the OpenAPI document: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(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.ArduinoDevicev2properties(); + }); + + 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('ArduinoDevicev2properties', function() { + it('should create an instance of ArduinoDevicev2properties', function() { + // uncomment below and update the code to test ArduinoDevicev2properties + //var instance = new ArduinoIotClient.ArduinoDevicev2properties(); + //expect(instance).to.be.a(ArduinoIotClient.ArduinoDevicev2properties); + }); + + it('should have the property dataRetentionDays (base name: "data_retention_days")', function() { + // uncomment below and update the code to test the property dataRetentionDays + //var instance = new ArduinoIotClient.ArduinoDevicev2properties(); + //expect(instance).to.be(); + }); + + it('should have the property deviceId (base name: "deviceId")', function() { + // uncomment below and update the code to test the property deviceId + //var instance = new ArduinoIotClient.ArduinoDevicev2properties(); + //expect(instance).to.be(); + }); + + it('should have the property properties (base name: "properties")', function() { + // uncomment below and update the code to test the property properties + //var instance = new ArduinoIotClient.ArduinoDevicev2properties(); + //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.ArduinoDevicev2properties(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ArduinoDevicev2propertyvalue.spec.js b/test/model/ArduinoDevicev2propertyvalue.spec.js new file mode 100644 index 0000000..f939f48 --- /dev/null +++ b/test/model/ArduinoDevicev2propertyvalue.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.ArduinoDevicev2propertyvalue(); + }); + + 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('ArduinoDevicev2propertyvalue', function() { + it('should create an instance of ArduinoDevicev2propertyvalue', function() { + // uncomment below and update the code to test ArduinoDevicev2propertyvalue + //var instance = new ArduinoIotClient.ArduinoDevicev2propertyvalue(); + //expect(instance).to.be.a(ArduinoIotClient.ArduinoDevicev2propertyvalue); + }); + + it('should have the property createdAt (base name: "created_at")', function() { + // uncomment below and update the code to test the property createdAt + //var instance = new ArduinoIotClient.ArduinoDevicev2propertyvalue(); + //expect(instance).to.be(); + }); + + it('should have the property value (base name: "value")', function() { + // uncomment below and update the code to test the property value + //var instance = new ArduinoIotClient.ArduinoDevicev2propertyvalue(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ArduinoDevicev2propertyvalueValue.spec.js b/test/model/ArduinoDevicev2propertyvalueValue.spec.js new file mode 100644 index 0000000..be515f9 --- /dev/null +++ b/test/model/ArduinoDevicev2propertyvalueValue.spec.js @@ -0,0 +1,77 @@ +/** + * 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.ArduinoDevicev2propertyvalueValue(); + }); + + 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('ArduinoDevicev2propertyvalueValue', function() { + it('should create an instance of ArduinoDevicev2propertyvalueValue', function() { + // uncomment below and update the code to test ArduinoDevicev2propertyvalueValue + //var instance = new ArduinoIotClient.ArduinoDevicev2propertyvalueValue(); + //expect(instance).to.be.a(ArduinoIotClient.ArduinoDevicev2propertyvalueValue); + }); + + it('should have the property payload (base name: "payload")', function() { + // uncomment below and update the code to test the property payload + //var instance = new ArduinoIotClient.ArduinoDevicev2propertyvalueValue(); + //expect(instance).to.be(); + }); + + it('should have the property seqno (base name: "seqno")', function() { + // uncomment below and update the code to test the property seqno + //var instance = new ArduinoIotClient.ArduinoDevicev2propertyvalueValue(); + //expect(instance).to.be(); + }); + + it('should have the property statistics (base name: "statistics")', function() { + // uncomment below and update the code to test the property statistics + //var instance = new ArduinoIotClient.ArduinoDevicev2propertyvalueValue(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ArduinoDevicev2propertyvalueValueStatistics.spec.js b/test/model/ArduinoDevicev2propertyvalueValueStatistics.spec.js new file mode 100644 index 0000000..81df14f --- /dev/null +++ b/test/model/ArduinoDevicev2propertyvalueValueStatistics.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.ArduinoDevicev2propertyvalueValueStatistics(); + }); + + 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('ArduinoDevicev2propertyvalueValueStatistics', function() { + it('should create an instance of ArduinoDevicev2propertyvalueValueStatistics', function() { + // uncomment below and update the code to test ArduinoDevicev2propertyvalueValueStatistics + //var instance = new ArduinoIotClient.ArduinoDevicev2propertyvalueValueStatistics(); + //expect(instance).to.be.a(ArduinoIotClient.ArduinoDevicev2propertyvalueValueStatistics); + }); + + it('should have the property adr (base name: "adr")', function() { + // uncomment below and update the code to test the property adr + //var instance = new ArduinoIotClient.ArduinoDevicev2propertyvalueValueStatistics(); + //expect(instance).to.be(); + }); + + it('should have the property channel (base name: "channel")', function() { + // uncomment below and update the code to test the property channel + //var instance = new ArduinoIotClient.ArduinoDevicev2propertyvalueValueStatistics(); + //expect(instance).to.be(); + }); + + it('should have the property duplicate (base name: "duplicate")', function() { + // uncomment below and update the code to test the property duplicate + //var instance = new ArduinoIotClient.ArduinoDevicev2propertyvalueValueStatistics(); + //expect(instance).to.be(); + }); + + it('should have the property freq (base name: "freq")', function() { + // uncomment below and update the code to test the property freq + //var instance = new ArduinoIotClient.ArduinoDevicev2propertyvalueValueStatistics(); + //expect(instance).to.be(); + }); + + it('should have the property modBW (base name: "modBW")', function() { + // uncomment below and update the code to test the property modBW + //var instance = new ArduinoIotClient.ArduinoDevicev2propertyvalueValueStatistics(); + //expect(instance).to.be(); + }); + + it('should have the property rssi (base name: "rssi")', function() { + // uncomment below and update the code to test the property rssi + //var instance = new ArduinoIotClient.ArduinoDevicev2propertyvalueValueStatistics(); + //expect(instance).to.be(); + }); + + it('should have the property seqno (base name: "seqno")', function() { + // uncomment below and update the code to test the property seqno + //var instance = new ArduinoIotClient.ArduinoDevicev2propertyvalueValueStatistics(); + //expect(instance).to.be(); + }); + + it('should have the property sf (base name: "sf")', function() { + // uncomment below and update the code to test the property sf + //var instance = new ArduinoIotClient.ArduinoDevicev2propertyvalueValueStatistics(); + //expect(instance).to.be(); + }); + + it('should have the property snr (base name: "snr")', function() { + // uncomment below and update the code to test the property snr + //var instance = new ArduinoIotClient.ArduinoDevicev2propertyvalueValueStatistics(); + //expect(instance).to.be(); + }); + + it('should have the property time (base name: "time")', function() { + // uncomment below and update the code to test the property time + //var instance = new ArduinoIotClient.ArduinoDevicev2propertyvalueValueStatistics(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ArduinoDevicev2propertyvalues.spec.js b/test/model/ArduinoDevicev2propertyvalues.spec.js new file mode 100644 index 0000000..91942bc --- /dev/null +++ b/test/model/ArduinoDevicev2propertyvalues.spec.js @@ -0,0 +1,83 @@ +/** + * Arduino IoT Cloud API + * Provides a set of endpoints to manage Arduino IoT Cloud **Devices**, **Things**, **Properties** and **Timeseries**. This API can be called just with any HTTP Client, or using one of these clients: * [Javascript NPM package](https://www.npmjs.com/package/@arduino/arduino-iot-client) * [Python PYPI Package](https://pypi.org/project/arduino-iot-client/) * [Golang Module](https://github.com/arduino/iot-client-go) + * + * The version of the OpenAPI document: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(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.ArduinoDevicev2propertyvalues(); + }); + + 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('ArduinoDevicev2propertyvalues', function() { + it('should create an instance of ArduinoDevicev2propertyvalues', function() { + // uncomment below and update the code to test ArduinoDevicev2propertyvalues + //var instance = new ArduinoIotClient.ArduinoDevicev2propertyvalues(); + //expect(instance).to.be.a(ArduinoIotClient.ArduinoDevicev2propertyvalues); + }); + + 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.ArduinoDevicev2propertyvalues(); + //expect(instance).to.be(); + }); + + it('should have the property lastEvaluatedKey (base name: "last_evaluated_key")', function() { + // uncomment below and update the code to test the property lastEvaluatedKey + //var instance = new ArduinoIotClient.ArduinoDevicev2propertyvalues(); + //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.ArduinoDevicev2propertyvalues(); + //expect(instance).to.be(); + }); + + it('should have the property values (base name: "values")', function() { + // uncomment below and update the code to test the property values + //var instance = new ArduinoIotClient.ArduinoDevicev2propertyvalues(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ArduinoDevicev2propertyvaluesLastEvaluatedKey.spec.js b/test/model/ArduinoDevicev2propertyvaluesLastEvaluatedKey.spec.js new file mode 100644 index 0000000..6757198 --- /dev/null +++ b/test/model/ArduinoDevicev2propertyvaluesLastEvaluatedKey.spec.js @@ -0,0 +1,77 @@ +/** + * 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.ArduinoDevicev2propertyvaluesLastEvaluatedKey(); + }); + + 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('ArduinoDevicev2propertyvaluesLastEvaluatedKey', function() { + it('should create an instance of ArduinoDevicev2propertyvaluesLastEvaluatedKey', function() { + // uncomment below and update the code to test ArduinoDevicev2propertyvaluesLastEvaluatedKey + //var instance = new ArduinoIotClient.ArduinoDevicev2propertyvaluesLastEvaluatedKey(); + //expect(instance).to.be.a(ArduinoIotClient.ArduinoDevicev2propertyvaluesLastEvaluatedKey); + }); + + it('should have the property createdAt (base name: "created_at")', function() { + // uncomment below and update the code to test the property createdAt + //var instance = new ArduinoIotClient.ArduinoDevicev2propertyvaluesLastEvaluatedKey(); + //expect(instance).to.be(); + }); + + 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.ArduinoDevicev2propertyvaluesLastEvaluatedKey(); + //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.ArduinoDevicev2propertyvaluesLastEvaluatedKey(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ArduinoDevicev2templatedevice.spec.js b/test/model/ArduinoDevicev2templatedevice.spec.js new file mode 100644 index 0000000..ac30973 --- /dev/null +++ b/test/model/ArduinoDevicev2templatedevice.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.ArduinoDevicev2templatedevice(); + }); + + 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('ArduinoDevicev2templatedevice', function() { + it('should create an instance of ArduinoDevicev2templatedevice', function() { + // uncomment below and update the code to test ArduinoDevicev2templatedevice + //var instance = new ArduinoIotClient.ArduinoDevicev2templatedevice(); + //expect(instance).to.be.a(ArduinoIotClient.ArduinoDevicev2templatedevice); + }); + + 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.ArduinoDevicev2templatedevice(); + //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.ArduinoDevicev2templatedevice(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ArduinoLinkedvariable.spec.js b/test/model/ArduinoLinkedvariable.spec.js new file mode 100644 index 0000000..d557457 --- /dev/null +++ b/test/model/ArduinoLinkedvariable.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.ArduinoLinkedvariable(); + }); + + 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('ArduinoLinkedvariable', function() { + it('should create an instance of ArduinoLinkedvariable', function() { + // uncomment below and update the code to test ArduinoLinkedvariable + //var instance = new ArduinoIotClient.ArduinoLinkedvariable(); + //expect(instance).to.be.a(ArduinoIotClient.ArduinoLinkedvariable); + }); + + 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.ArduinoLinkedvariable(); + //expect(instance).to.be(); + }); + + it('should have the property lastValue (base name: "last_value")', function() { + // uncomment below and update the code to test the property lastValue + //var instance = new ArduinoIotClient.ArduinoLinkedvariable(); + //expect(instance).to.be(); + }); + + it('should have the property lastValueUpdatedAt (base name: "last_value_updated_at")', function() { + // uncomment below and update the code to test the property lastValueUpdatedAt + //var instance = new ArduinoIotClient.ArduinoLinkedvariable(); + //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.ArduinoLinkedvariable(); + //expect(instance).to.be(); + }); + + it('should have the property permission (base name: "permission")', function() { + // uncomment below and update the code to test the property permission + //var instance = new ArduinoIotClient.ArduinoLinkedvariable(); + //expect(instance).to.be(); + }); + + it('should have the property thingId (base name: "thing_id")', function() { + // uncomment below and update the code to test the property thingId + //var instance = new ArduinoIotClient.ArduinoLinkedvariable(); + //expect(instance).to.be(); + }); + + it('should have the property thingName (base name: "thing_name")', function() { + // uncomment below and update the code to test the property thingName + //var instance = new ArduinoIotClient.ArduinoLinkedvariable(); + //expect(instance).to.be(); + }); + + it('should have the property thingTimezone (base name: "thing_timezone")', function() { + // uncomment below and update the code to test the property thingTimezone + //var instance = new ArduinoIotClient.ArduinoLinkedvariable(); + //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.ArduinoLinkedvariable(); + //expect(instance).to.be(); + }); + + it('should have the property variableName (base name: "variable_name")', function() { + // uncomment below and update the code to test the property variableName + //var instance = new ArduinoIotClient.ArduinoLinkedvariable(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ArduinoLoradevicev1.spec.js b/test/model/ArduinoLoradevicev1.spec.js new file mode 100644 index 0000000..a93f916 --- /dev/null +++ b/test/model/ArduinoLoradevicev1.spec.js @@ -0,0 +1,83 @@ +/** + * Arduino IoT Cloud API + * Provides a set of endpoints to manage Arduino IoT Cloud **Devices**, **Things**, **Properties** and **Timeseries**. This API can be called just with any HTTP Client, or using one of these clients: * [Javascript NPM package](https://www.npmjs.com/package/@arduino/arduino-iot-client) * [Python PYPI Package](https://pypi.org/project/arduino-iot-client/) * [Golang Module](https://github.com/arduino/iot-client-go) + * + * The version of the OpenAPI document: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(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.ArduinoLoradevicev1(); + }); + + 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('ArduinoLoradevicev1', function() { + it('should create an instance of ArduinoLoradevicev1', function() { + // uncomment below and update the code to test ArduinoLoradevicev1 + //var instance = new ArduinoIotClient.ArduinoLoradevicev1(); + //expect(instance).to.be.a(ArduinoIotClient.ArduinoLoradevicev1); + }); + + it('should have the property appEui (base name: "app_eui")', function() { + // uncomment below and update the code to test the property appEui + //var instance = new ArduinoIotClient.ArduinoLoradevicev1(); + //expect(instance).to.be(); + }); + + it('should have the property appKey (base name: "app_key")', function() { + // uncomment below and update the code to test the property appKey + //var instance = new ArduinoIotClient.ArduinoLoradevicev1(); + //expect(instance).to.be(); + }); + + it('should have the property deviceId (base name: "device_id")', function() { + // uncomment below and update the code to test the property deviceId + //var instance = new ArduinoIotClient.ArduinoLoradevicev1(); + //expect(instance).to.be(); + }); + + it('should have the property eui (base name: "eui")', function() { + // uncomment below and update the code to test the property eui + //var instance = new ArduinoIotClient.ArduinoLoradevicev1(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ArduinoLorafreqplansv1.spec.js b/test/model/ArduinoLorafreqplansv1.spec.js new file mode 100644 index 0000000..25c1da9 --- /dev/null +++ b/test/model/ArduinoLorafreqplansv1.spec.js @@ -0,0 +1,65 @@ +/** + * 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.ArduinoLorafreqplansv1(); + }); + + 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('ArduinoLorafreqplansv1', function() { + it('should create an instance of ArduinoLorafreqplansv1', function() { + // uncomment below and update the code to test ArduinoLorafreqplansv1 + //var instance = new ArduinoIotClient.ArduinoLorafreqplansv1(); + //expect(instance).to.be.a(ArduinoIotClient.ArduinoLorafreqplansv1); + }); + + it('should have the property frequencyPlans (base name: "frequency_plans")', function() { + // uncomment below and update the code to test the property frequencyPlans + //var instance = new ArduinoIotClient.ArduinoLorafreqplansv1(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ArduinoLorafreqplanv1.spec.js b/test/model/ArduinoLorafreqplanv1.spec.js new file mode 100644 index 0000000..e922ddd --- /dev/null +++ b/test/model/ArduinoLorafreqplanv1.spec.js @@ -0,0 +1,77 @@ +/** + * 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.ArduinoLorafreqplanv1(); + }); + + 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('ArduinoLorafreqplanv1', function() { + it('should create an instance of ArduinoLorafreqplanv1', function() { + // uncomment below and update the code to test ArduinoLorafreqplanv1 + //var instance = new ArduinoIotClient.ArduinoLorafreqplanv1(); + //expect(instance).to.be.a(ArduinoIotClient.ArduinoLorafreqplanv1); + }); + + it('should have the property advanced (base name: "advanced")', function() { + // uncomment below and update the code to test the property advanced + //var instance = new ArduinoIotClient.ArduinoLorafreqplanv1(); + //expect(instance).to.be(); + }); + + 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.ArduinoLorafreqplanv1(); + //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.ArduinoLorafreqplanv1(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ArduinoProperty.spec.js b/test/model/ArduinoProperty.spec.js new file mode 100644 index 0000000..6d868d9 --- /dev/null +++ b/test/model/ArduinoProperty.spec.js @@ -0,0 +1,185 @@ +/** + * 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.ArduinoProperty(); + }); + + 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('ArduinoProperty', function() { + it('should create an instance of ArduinoProperty', function() { + // uncomment below and update the code to test ArduinoProperty + //var instance = new ArduinoIotClient.ArduinoProperty(); + //expect(instance).to.be.a(ArduinoIotClient.ArduinoProperty); + }); + + it('should have the property createdAt (base name: "created_at")', function() { + // uncomment below and update the code to test the property createdAt + //var instance = new ArduinoIotClient.ArduinoProperty(); + //expect(instance).to.be(); + }); + + it('should have the property deletedAt (base name: "deleted_at")', function() { + // uncomment below and update the code to test the property deletedAt + //var instance = new ArduinoIotClient.ArduinoProperty(); + //expect(instance).to.be(); + }); + + it('should have the property href (base name: "href")', function() { + // uncomment below and update the code to test the property href + //var instance = new ArduinoIotClient.ArduinoProperty(); + //expect(instance).to.be(); + }); + + 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.ArduinoProperty(); + //expect(instance).to.be(); + }); + + it('should have the property lastValue (base name: "last_value")', function() { + // uncomment below and update the code to test the property lastValue + //var instance = new ArduinoIotClient.ArduinoProperty(); + //expect(instance).to.be(); + }); + + it('should have the property linkedToTrigger (base name: "linked_to_trigger")', function() { + // uncomment below and update the code to test the property linkedToTrigger + //var instance = new ArduinoIotClient.ArduinoProperty(); + //expect(instance).to.be(); + }); + + it('should have the property maxValue (base name: "max_value")', function() { + // uncomment below and update the code to test the property maxValue + //var instance = new ArduinoIotClient.ArduinoProperty(); + //expect(instance).to.be(); + }); + + it('should have the property minValue (base name: "min_value")', function() { + // uncomment below and update the code to test the property minValue + //var instance = new ArduinoIotClient.ArduinoProperty(); + //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.ArduinoProperty(); + //expect(instance).to.be(); + }); + + it('should have the property permission (base name: "permission")', function() { + // uncomment below and update the code to test the property permission + //var instance = new ArduinoIotClient.ArduinoProperty(); + //expect(instance).to.be(); + }); + + it('should have the property persist (base name: "persist")', function() { + // uncomment below and update the code to test the property persist + //var instance = new ArduinoIotClient.ArduinoProperty(); + //expect(instance).to.be(); + }); + + it('should have the property syncId (base name: "sync_id")', function() { + // uncomment below and update the code to test the property syncId + //var instance = new ArduinoIotClient.ArduinoProperty(); + //expect(instance).to.be(); + }); + + it('should have the property tag (base name: "tag")', function() { + // uncomment below and update the code to test the property tag + //var instance = new ArduinoIotClient.ArduinoProperty(); + //expect(instance).to.be(); + }); + + it('should have the property thingId (base name: "thing_id")', function() { + // uncomment below and update the code to test the property thingId + //var instance = new ArduinoIotClient.ArduinoProperty(); + //expect(instance).to.be(); + }); + + it('should have the property thingName (base name: "thing_name")', function() { + // uncomment below and update the code to test the property thingName + //var instance = new ArduinoIotClient.ArduinoProperty(); + //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.ArduinoProperty(); + //expect(instance).to.be(); + }); + + it('should have the property updateParameter (base name: "update_parameter")', function() { + // uncomment below and update the code to test the property updateParameter + //var instance = new ArduinoIotClient.ArduinoProperty(); + //expect(instance).to.be(); + }); + + it('should have the property updateStrategy (base name: "update_strategy")', function() { + // uncomment below and update the code to test the property updateStrategy + //var instance = new ArduinoIotClient.ArduinoProperty(); + //expect(instance).to.be(); + }); + + it('should have the property updatedAt (base name: "updated_at")', function() { + // uncomment below and update the code to test the property updatedAt + //var instance = new ArduinoIotClient.ArduinoProperty(); + //expect(instance).to.be(); + }); + + it('should have the property valueUpdatedAt (base name: "value_updated_at")', function() { + // uncomment below and update the code to test the property valueUpdatedAt + //var instance = new ArduinoIotClient.ArduinoProperty(); + //expect(instance).to.be(); + }); + + it('should have the property variableName (base name: "variable_name")', function() { + // uncomment below and update the code to test the property variableName + //var instance = new ArduinoIotClient.ArduinoProperty(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ArduinoPropertytype.spec.js b/test/model/ArduinoPropertytype.spec.js new file mode 100644 index 0000000..4467435 --- /dev/null +++ b/test/model/ArduinoPropertytype.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.ArduinoPropertytype(); + }); + + 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('ArduinoPropertytype', function() { + it('should create an instance of ArduinoPropertytype', function() { + // uncomment below and update the code to test ArduinoPropertytype + //var instance = new ArduinoIotClient.ArduinoPropertytype(); + //expect(instance).to.be.a(ArduinoIotClient.ArduinoPropertytype); + }); + + it('should have the property assistants (base name: "assistants")', function() { + // uncomment below and update the code to test the property assistants + //var instance = new ArduinoIotClient.ArduinoPropertytype(); + //expect(instance).to.be(); + }); + + it('should have the property declaration (base name: "declaration")', function() { + // uncomment below and update the code to test the property declaration + //var instance = new ArduinoIotClient.ArduinoPropertytype(); + //expect(instance).to.be(); + }); + + it('should have the property deprecated (base name: "deprecated")', function() { + // uncomment below and update the code to test the property deprecated + //var instance = new ArduinoIotClient.ArduinoPropertytype(); + //expect(instance).to.be(); + }); + + it('should have the property example (base name: "example")', function() { + // uncomment below and update the code to test the property example + //var instance = new ArduinoIotClient.ArduinoPropertytype(); + //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.ArduinoPropertytype(); + //expect(instance).to.be(); + }); + + it('should have the property rw (base name: "rw")', function() { + // uncomment below and update the code to test the property rw + //var instance = new ArduinoIotClient.ArduinoPropertytype(); + //expect(instance).to.be(); + }); + + it('should have the property supersededBy (base name: "supersededBy")', function() { + // uncomment below and update the code to test the property supersededBy + //var instance = new ArduinoIotClient.ArduinoPropertytype(); + //expect(instance).to.be(); + }); + + it('should have the property tags (base name: "tags")', function() { + // uncomment below and update the code to test the property tags + //var instance = new ArduinoIotClient.ArduinoPropertytype(); + //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.ArduinoPropertytype(); + //expect(instance).to.be(); + }); + + it('should have the property units (base name: "units")', function() { + // uncomment below and update the code to test the property units + //var instance = new ArduinoIotClient.ArduinoPropertytype(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ArduinoSeriesBatch.spec.js b/test/model/ArduinoSeriesBatch.spec.js new file mode 100644 index 0000000..cb2c762 --- /dev/null +++ b/test/model/ArduinoSeriesBatch.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.ArduinoSeriesBatch(); + }); + + 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('ArduinoSeriesBatch', function() { + it('should create an instance of ArduinoSeriesBatch', function() { + // uncomment below and update the code to test ArduinoSeriesBatch + //var instance = new ArduinoIotClient.ArduinoSeriesBatch(); + //expect(instance).to.be.a(ArduinoIotClient.ArduinoSeriesBatch); + }); + + it('should have the property respVersion (base name: "resp_version")', function() { + // uncomment below and update the code to test the property respVersion + //var instance = new ArduinoIotClient.ArduinoSeriesBatch(); + //expect(instance).to.be(); + }); + + it('should have the property responses (base name: "responses")', function() { + // uncomment below and update the code to test the property responses + //var instance = new ArduinoIotClient.ArduinoSeriesBatch(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ArduinoSeriesBatchSampled.spec.js b/test/model/ArduinoSeriesBatchSampled.spec.js new file mode 100644 index 0000000..5777cf3 --- /dev/null +++ b/test/model/ArduinoSeriesBatchSampled.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.ArduinoSeriesBatchSampled(); + }); + + 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('ArduinoSeriesBatchSampled', function() { + it('should create an instance of ArduinoSeriesBatchSampled', function() { + // uncomment below and update the code to test ArduinoSeriesBatchSampled + //var instance = new ArduinoIotClient.ArduinoSeriesBatchSampled(); + //expect(instance).to.be.a(ArduinoIotClient.ArduinoSeriesBatchSampled); + }); + + it('should have the property respVersion (base name: "resp_version")', function() { + // uncomment below and update the code to test the property respVersion + //var instance = new ArduinoIotClient.ArduinoSeriesBatchSampled(); + //expect(instance).to.be(); + }); + + it('should have the property responses (base name: "responses")', function() { + // uncomment below and update the code to test the property responses + //var instance = new ArduinoIotClient.ArduinoSeriesBatchSampled(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ArduinoSeriesRawBatch.spec.js b/test/model/ArduinoSeriesRawBatch.spec.js new file mode 100644 index 0000000..f88c29f --- /dev/null +++ b/test/model/ArduinoSeriesRawBatch.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.ArduinoSeriesRawBatch(); + }); + + 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('ArduinoSeriesRawBatch', function() { + it('should create an instance of ArduinoSeriesRawBatch', function() { + // uncomment below and update the code to test ArduinoSeriesRawBatch + //var instance = new ArduinoIotClient.ArduinoSeriesRawBatch(); + //expect(instance).to.be.a(ArduinoIotClient.ArduinoSeriesRawBatch); + }); + + it('should have the property respVersion (base name: "resp_version")', function() { + // uncomment below and update the code to test the property respVersion + //var instance = new ArduinoIotClient.ArduinoSeriesRawBatch(); + //expect(instance).to.be(); + }); + + it('should have the property responses (base name: "responses")', function() { + // uncomment below and update the code to test the property responses + //var instance = new ArduinoIotClient.ArduinoSeriesRawBatch(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ArduinoSeriesRawBatchLastvalue.spec.js b/test/model/ArduinoSeriesRawBatchLastvalue.spec.js new file mode 100644 index 0000000..fd78621 --- /dev/null +++ b/test/model/ArduinoSeriesRawBatchLastvalue.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.ArduinoSeriesRawBatchLastvalue(); + }); + + 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('ArduinoSeriesRawBatchLastvalue', function() { + it('should create an instance of ArduinoSeriesRawBatchLastvalue', function() { + // uncomment below and update the code to test ArduinoSeriesRawBatchLastvalue + //var instance = new ArduinoIotClient.ArduinoSeriesRawBatchLastvalue(); + //expect(instance).to.be.a(ArduinoIotClient.ArduinoSeriesRawBatchLastvalue); + }); + + it('should have the property responses (base name: "responses")', function() { + // uncomment below and update the code to test the property responses + //var instance = new ArduinoIotClient.ArduinoSeriesRawBatchLastvalue(); + //expect(instance).to.be(); + }); + + it('should have the property status (base name: "status")', function() { + // uncomment below and update the code to test the property status + //var instance = new ArduinoIotClient.ArduinoSeriesRawBatchLastvalue(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ArduinoSeriesRawLastValueResponse.spec.js b/test/model/ArduinoSeriesRawLastValueResponse.spec.js new file mode 100644 index 0000000..78fe96b --- /dev/null +++ b/test/model/ArduinoSeriesRawLastValueResponse.spec.js @@ -0,0 +1,89 @@ +/** + * 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.ArduinoSeriesRawLastValueResponse(); + }); + + 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('ArduinoSeriesRawLastValueResponse', function() { + it('should create an instance of ArduinoSeriesRawLastValueResponse', function() { + // uncomment below and update the code to test ArduinoSeriesRawLastValueResponse + //var instance = new ArduinoIotClient.ArduinoSeriesRawLastValueResponse(); + //expect(instance).to.be.a(ArduinoIotClient.ArduinoSeriesRawLastValueResponse); + }); + + it('should have the property countValues (base name: "count_values")', function() { + // uncomment below and update the code to test the property countValues + //var instance = new ArduinoIotClient.ArduinoSeriesRawLastValueResponse(); + //expect(instance).to.be(); + }); + + it('should have the property propertyId (base name: "property_id")', function() { + // uncomment below and update the code to test the property propertyId + //var instance = new ArduinoIotClient.ArduinoSeriesRawLastValueResponse(); + //expect(instance).to.be(); + }); + + it('should have the property thingId (base name: "thing_id")', function() { + // uncomment below and update the code to test the property thingId + //var instance = new ArduinoIotClient.ArduinoSeriesRawLastValueResponse(); + //expect(instance).to.be(); + }); + + it('should have the property times (base name: "times")', function() { + // uncomment below and update the code to test the property times + //var instance = new ArduinoIotClient.ArduinoSeriesRawLastValueResponse(); + //expect(instance).to.be(); + }); + + it('should have the property values (base name: "values")', function() { + // uncomment below and update the code to test the property values + //var instance = new ArduinoIotClient.ArduinoSeriesRawLastValueResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ArduinoSeriesRawResponse.spec.js b/test/model/ArduinoSeriesRawResponse.spec.js new file mode 100644 index 0000000..8d4f683 --- /dev/null +++ b/test/model/ArduinoSeriesRawResponse.spec.js @@ -0,0 +1,155 @@ +/** + * 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.ArduinoSeriesRawResponse(); + }); + + 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('ArduinoSeriesRawResponse', function() { + it('should create an instance of ArduinoSeriesRawResponse', function() { + // uncomment below and update the code to test ArduinoSeriesRawResponse + //var instance = new ArduinoIotClient.ArduinoSeriesRawResponse(); + //expect(instance).to.be.a(ArduinoIotClient.ArduinoSeriesRawResponse); + }); + + it('should have the property countValues (base name: "count_values")', function() { + // uncomment below and update the code to test the property countValues + //var instance = new ArduinoIotClient.ArduinoSeriesRawResponse(); + //expect(instance).to.be(); + }); + + it('should have the property fromDate (base name: "from_date")', function() { + // uncomment below and update the code to test the property fromDate + //var instance = new ArduinoIotClient.ArduinoSeriesRawResponse(); + //expect(instance).to.be(); + }); + + it('should have the property message (base name: "message")', function() { + // uncomment below and update the code to test the property message + //var instance = new ArduinoIotClient.ArduinoSeriesRawResponse(); + //expect(instance).to.be(); + }); + + it('should have the property propertyId (base name: "property_id")', function() { + // uncomment below and update the code to test the property propertyId + //var instance = new ArduinoIotClient.ArduinoSeriesRawResponse(); + //expect(instance).to.be(); + }); + + it('should have the property propertyName (base name: "property_name")', function() { + // uncomment below and update the code to test the property propertyName + //var instance = new ArduinoIotClient.ArduinoSeriesRawResponse(); + //expect(instance).to.be(); + }); + + it('should have the property propertyType (base name: "property_type")', function() { + // uncomment below and update the code to test the property propertyType + //var instance = new ArduinoIotClient.ArduinoSeriesRawResponse(); + //expect(instance).to.be(); + }); + + it('should have the property query (base name: "query")', function() { + // uncomment below and update the code to test the property query + //var instance = new ArduinoIotClient.ArduinoSeriesRawResponse(); + //expect(instance).to.be(); + }); + + it('should have the property respVersion (base name: "resp_version")', function() { + // uncomment below and update the code to test the property respVersion + //var instance = new ArduinoIotClient.ArduinoSeriesRawResponse(); + //expect(instance).to.be(); + }); + + it('should have the property series (base name: "series")', function() { + // uncomment below and update the code to test the property series + //var instance = new ArduinoIotClient.ArduinoSeriesRawResponse(); + //expect(instance).to.be(); + }); + + it('should have the property seriesLimit (base name: "series_limit")', function() { + // uncomment below and update the code to test the property seriesLimit + //var instance = new ArduinoIotClient.ArduinoSeriesRawResponse(); + //expect(instance).to.be(); + }); + + it('should have the property sort (base name: "sort")', function() { + // uncomment below and update the code to test the property sort + //var instance = new ArduinoIotClient.ArduinoSeriesRawResponse(); + //expect(instance).to.be(); + }); + + it('should have the property status (base name: "status")', function() { + // uncomment below and update the code to test the property status + //var instance = new ArduinoIotClient.ArduinoSeriesRawResponse(); + //expect(instance).to.be(); + }); + + it('should have the property thingId (base name: "thing_id")', function() { + // uncomment below and update the code to test the property thingId + //var instance = new ArduinoIotClient.ArduinoSeriesRawResponse(); + //expect(instance).to.be(); + }); + + it('should have the property times (base name: "times")', function() { + // uncomment below and update the code to test the property times + //var instance = new ArduinoIotClient.ArduinoSeriesRawResponse(); + //expect(instance).to.be(); + }); + + it('should have the property toDate (base name: "to_date")', function() { + // uncomment below and update the code to test the property toDate + //var instance = new ArduinoIotClient.ArduinoSeriesRawResponse(); + //expect(instance).to.be(); + }); + + it('should have the property values (base name: "values")', function() { + // uncomment below and update the code to test the property values + //var instance = new ArduinoIotClient.ArduinoSeriesRawResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ArduinoSeriesResponse.spec.js b/test/model/ArduinoSeriesResponse.spec.js new file mode 100644 index 0000000..b93dda7 --- /dev/null +++ b/test/model/ArduinoSeriesResponse.spec.js @@ -0,0 +1,155 @@ +/** + * 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.ArduinoSeriesResponse(); + }); + + 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('ArduinoSeriesResponse', function() { + it('should create an instance of ArduinoSeriesResponse', function() { + // uncomment below and update the code to test ArduinoSeriesResponse + //var instance = new ArduinoIotClient.ArduinoSeriesResponse(); + //expect(instance).to.be.a(ArduinoIotClient.ArduinoSeriesResponse); + }); + + it('should have the property aggregation (base name: "aggregation")', function() { + // uncomment below and update the code to test the property aggregation + //var instance = new ArduinoIotClient.ArduinoSeriesResponse(); + //expect(instance).to.be(); + }); + + it('should have the property countValues (base name: "count_values")', function() { + // uncomment below and update the code to test the property countValues + //var instance = new ArduinoIotClient.ArduinoSeriesResponse(); + //expect(instance).to.be(); + }); + + it('should have the property fromDate (base name: "from_date")', function() { + // uncomment below and update the code to test the property fromDate + //var instance = new ArduinoIotClient.ArduinoSeriesResponse(); + //expect(instance).to.be(); + }); + + it('should have the property interval (base name: "interval")', function() { + // uncomment below and update the code to test the property interval + //var instance = new ArduinoIotClient.ArduinoSeriesResponse(); + //expect(instance).to.be(); + }); + + it('should have the property message (base name: "message")', function() { + // uncomment below and update the code to test the property message + //var instance = new ArduinoIotClient.ArduinoSeriesResponse(); + //expect(instance).to.be(); + }); + + it('should have the property propertyId (base name: "property_id")', function() { + // uncomment below and update the code to test the property propertyId + //var instance = new ArduinoIotClient.ArduinoSeriesResponse(); + //expect(instance).to.be(); + }); + + it('should have the property propertyName (base name: "property_name")', function() { + // uncomment below and update the code to test the property propertyName + //var instance = new ArduinoIotClient.ArduinoSeriesResponse(); + //expect(instance).to.be(); + }); + + it('should have the property propertyType (base name: "property_type")', function() { + // uncomment below and update the code to test the property propertyType + //var instance = new ArduinoIotClient.ArduinoSeriesResponse(); + //expect(instance).to.be(); + }); + + it('should have the property query (base name: "query")', function() { + // uncomment below and update the code to test the property query + //var instance = new ArduinoIotClient.ArduinoSeriesResponse(); + //expect(instance).to.be(); + }); + + it('should have the property respVersion (base name: "resp_version")', function() { + // uncomment below and update the code to test the property respVersion + //var instance = new ArduinoIotClient.ArduinoSeriesResponse(); + //expect(instance).to.be(); + }); + + it('should have the property seriesLimit (base name: "series_limit")', function() { + // uncomment below and update the code to test the property seriesLimit + //var instance = new ArduinoIotClient.ArduinoSeriesResponse(); + //expect(instance).to.be(); + }); + + it('should have the property status (base name: "status")', function() { + // uncomment below and update the code to test the property status + //var instance = new ArduinoIotClient.ArduinoSeriesResponse(); + //expect(instance).to.be(); + }); + + it('should have the property thingId (base name: "thing_id")', function() { + // uncomment below and update the code to test the property thingId + //var instance = new ArduinoIotClient.ArduinoSeriesResponse(); + //expect(instance).to.be(); + }); + + it('should have the property times (base name: "times")', function() { + // uncomment below and update the code to test the property times + //var instance = new ArduinoIotClient.ArduinoSeriesResponse(); + //expect(instance).to.be(); + }); + + it('should have the property toDate (base name: "to_date")', function() { + // uncomment below and update the code to test the property toDate + //var instance = new ArduinoIotClient.ArduinoSeriesResponse(); + //expect(instance).to.be(); + }); + + it('should have the property values (base name: "values")', function() { + // uncomment below and update the code to test the property values + //var instance = new ArduinoIotClient.ArduinoSeriesResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ArduinoSeriesSampledResponse.spec.js b/test/model/ArduinoSeriesSampledResponse.spec.js new file mode 100644 index 0000000..d555d48 --- /dev/null +++ b/test/model/ArduinoSeriesSampledResponse.spec.js @@ -0,0 +1,149 @@ +/** + * 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.ArduinoSeriesSampledResponse(); + }); + + 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('ArduinoSeriesSampledResponse', function() { + it('should create an instance of ArduinoSeriesSampledResponse', function() { + // uncomment below and update the code to test ArduinoSeriesSampledResponse + //var instance = new ArduinoIotClient.ArduinoSeriesSampledResponse(); + //expect(instance).to.be.a(ArduinoIotClient.ArduinoSeriesSampledResponse); + }); + + it('should have the property countValues (base name: "count_values")', function() { + // uncomment below and update the code to test the property countValues + //var instance = new ArduinoIotClient.ArduinoSeriesSampledResponse(); + //expect(instance).to.be(); + }); + + it('should have the property fromDate (base name: "from_date")', function() { + // uncomment below and update the code to test the property fromDate + //var instance = new ArduinoIotClient.ArduinoSeriesSampledResponse(); + //expect(instance).to.be(); + }); + + it('should have the property interval (base name: "interval")', function() { + // uncomment below and update the code to test the property interval + //var instance = new ArduinoIotClient.ArduinoSeriesSampledResponse(); + //expect(instance).to.be(); + }); + + it('should have the property message (base name: "message")', function() { + // uncomment below and update the code to test the property message + //var instance = new ArduinoIotClient.ArduinoSeriesSampledResponse(); + //expect(instance).to.be(); + }); + + it('should have the property propertyId (base name: "property_id")', function() { + // uncomment below and update the code to test the property propertyId + //var instance = new ArduinoIotClient.ArduinoSeriesSampledResponse(); + //expect(instance).to.be(); + }); + + it('should have the property propertyName (base name: "property_name")', function() { + // uncomment below and update the code to test the property propertyName + //var instance = new ArduinoIotClient.ArduinoSeriesSampledResponse(); + //expect(instance).to.be(); + }); + + it('should have the property propertyType (base name: "property_type")', function() { + // uncomment below and update the code to test the property propertyType + //var instance = new ArduinoIotClient.ArduinoSeriesSampledResponse(); + //expect(instance).to.be(); + }); + + it('should have the property query (base name: "query")', function() { + // uncomment below and update the code to test the property query + //var instance = new ArduinoIotClient.ArduinoSeriesSampledResponse(); + //expect(instance).to.be(); + }); + + it('should have the property respVersion (base name: "resp_version")', function() { + // uncomment below and update the code to test the property respVersion + //var instance = new ArduinoIotClient.ArduinoSeriesSampledResponse(); + //expect(instance).to.be(); + }); + + it('should have the property seriesLimit (base name: "series_limit")', function() { + // uncomment below and update the code to test the property seriesLimit + //var instance = new ArduinoIotClient.ArduinoSeriesSampledResponse(); + //expect(instance).to.be(); + }); + + it('should have the property status (base name: "status")', function() { + // uncomment below and update the code to test the property status + //var instance = new ArduinoIotClient.ArduinoSeriesSampledResponse(); + //expect(instance).to.be(); + }); + + it('should have the property thingId (base name: "thing_id")', function() { + // uncomment below and update the code to test the property thingId + //var instance = new ArduinoIotClient.ArduinoSeriesSampledResponse(); + //expect(instance).to.be(); + }); + + it('should have the property times (base name: "times")', function() { + // uncomment below and update the code to test the property times + //var instance = new ArduinoIotClient.ArduinoSeriesSampledResponse(); + //expect(instance).to.be(); + }); + + it('should have the property toDate (base name: "to_date")', function() { + // uncomment below and update the code to test the property toDate + //var instance = new ArduinoIotClient.ArduinoSeriesSampledResponse(); + //expect(instance).to.be(); + }); + + it('should have the property values (base name: "values")', function() { + // uncomment below and update the code to test the property values + //var instance = new ArduinoIotClient.ArduinoSeriesSampledResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ArduinoTags.spec.js b/test/model/ArduinoTags.spec.js new file mode 100644 index 0000000..bbd1b95 --- /dev/null +++ b/test/model/ArduinoTags.spec.js @@ -0,0 +1,65 @@ +/** + * 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.ArduinoTags(); + }); + + 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('ArduinoTags', function() { + it('should create an instance of ArduinoTags', function() { + // uncomment below and update the code to test ArduinoTags + //var instance = new ArduinoIotClient.ArduinoTags(); + //expect(instance).to.be.a(ArduinoIotClient.ArduinoTags); + }); + + it('should have the property tags (base name: "tags")', function() { + // uncomment below and update the code to test the property tags + //var instance = new ArduinoIotClient.ArduinoTags(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ArduinoTemplate.spec.js b/test/model/ArduinoTemplate.spec.js new file mode 100644 index 0000000..f1eb245 --- /dev/null +++ b/test/model/ArduinoTemplate.spec.js @@ -0,0 +1,77 @@ +/** + * 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.ArduinoTemplate(); + }); + + 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('ArduinoTemplate', function() { + it('should create an instance of ArduinoTemplate', function() { + // uncomment below and update the code to test ArduinoTemplate + //var instance = new ArduinoIotClient.ArduinoTemplate(); + //expect(instance).to.be.a(ArduinoIotClient.ArduinoTemplate); + }); + + it('should have the property dashboards (base name: "dashboards")', function() { + // uncomment below and update the code to test the property dashboards + //var instance = new ArduinoIotClient.ArduinoTemplate(); + //expect(instance).to.be(); + }); + + it('should have the property things (base name: "things")', function() { + // uncomment below and update the code to test the property things + //var instance = new ArduinoIotClient.ArduinoTemplate(); + //expect(instance).to.be(); + }); + + it('should have the property triggers (base name: "triggers")', function() { + // uncomment below and update the code to test the property triggers + //var instance = new ArduinoIotClient.ArduinoTemplate(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ArduinoTemplateproperty.spec.js b/test/model/ArduinoTemplateproperty.spec.js new file mode 100644 index 0000000..56f8888 --- /dev/null +++ b/test/model/ArduinoTemplateproperty.spec.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. + * + */ + +(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.ArduinoTemplateproperty(); + }); + + 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('ArduinoTemplateproperty', function() { + it('should create an instance of ArduinoTemplateproperty', function() { + // uncomment below and update the code to test ArduinoTemplateproperty + //var instance = new ArduinoIotClient.ArduinoTemplateproperty(); + //expect(instance).to.be.a(ArduinoIotClient.ArduinoTemplateproperty); + }); + + 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.ArduinoTemplateproperty(); + //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.ArduinoTemplateproperty(); + //expect(instance).to.be(); + }); + + it('should have the property permission (base name: "permission")', function() { + // uncomment below and update the code to test the property permission + //var instance = new ArduinoIotClient.ArduinoTemplateproperty(); + //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.ArduinoTemplateproperty(); + //expect(instance).to.be(); + }); + + it('should have the property updateParameter (base name: "update_parameter")', function() { + // uncomment below and update the code to test the property updateParameter + //var instance = new ArduinoIotClient.ArduinoTemplateproperty(); + //expect(instance).to.be(); + }); + + it('should have the property updateStrategy (base name: "update_strategy")', function() { + // uncomment below and update the code to test the property updateStrategy + //var instance = new ArduinoIotClient.ArduinoTemplateproperty(); + //expect(instance).to.be(); + }); + + it('should have the property variableName (base name: "variable_name")', function() { + // uncomment below and update the code to test the property variableName + //var instance = new ArduinoIotClient.ArduinoTemplateproperty(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ArduinoTemplatevariable.spec.js b/test/model/ArduinoTemplatevariable.spec.js new file mode 100644 index 0000000..df476cb --- /dev/null +++ b/test/model/ArduinoTemplatevariable.spec.js @@ -0,0 +1,95 @@ +/** + * 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.ArduinoTemplatevariable(); + }); + + 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('ArduinoTemplatevariable', function() { + it('should create an instance of ArduinoTemplatevariable', function() { + // uncomment below and update the code to test ArduinoTemplatevariable + //var instance = new ArduinoIotClient.ArduinoTemplatevariable(); + //expect(instance).to.be.a(ArduinoIotClient.ArduinoTemplatevariable); + }); + + 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.ArduinoTemplatevariable(); + //expect(instance).to.be(); + }); + + it('should have the property permission (base name: "permission")', function() { + // uncomment below and update the code to test the property permission + //var instance = new ArduinoIotClient.ArduinoTemplatevariable(); + //expect(instance).to.be(); + }); + + it('should have the property thingId (base name: "thing_id")', function() { + // uncomment below and update the code to test the property thingId + //var instance = new ArduinoIotClient.ArduinoTemplatevariable(); + //expect(instance).to.be(); + }); + + it('should have the property thingTimezone (base name: "thing_timezone")', function() { + // uncomment below and update the code to test the property thingTimezone + //var instance = new ArduinoIotClient.ArduinoTemplatevariable(); + //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.ArduinoTemplatevariable(); + //expect(instance).to.be(); + }); + + it('should have the property variableId (base name: "variable_id")', function() { + // uncomment below and update the code to test the property variableId + //var instance = new ArduinoIotClient.ArduinoTemplatevariable(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ArduinoThing.spec.js b/test/model/ArduinoThing.spec.js new file mode 100644 index 0000000..9e2179f --- /dev/null +++ b/test/model/ArduinoThing.spec.js @@ -0,0 +1,179 @@ +/** + * 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.ArduinoThing(); + }); + + 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('ArduinoThing', function() { + it('should create an instance of ArduinoThing', function() { + // uncomment below and update the code to test ArduinoThing + //var instance = new ArduinoIotClient.ArduinoThing(); + //expect(instance).to.be.a(ArduinoIotClient.ArduinoThing); + }); + + it('should have the property assistant (base name: "assistant")', function() { + // uncomment below and update the code to test the property assistant + //var instance = new ArduinoIotClient.ArduinoThing(); + //expect(instance).to.be(); + }); + + it('should have the property createdAt (base name: "created_at")', function() { + // uncomment below and update the code to test the property createdAt + //var instance = new ArduinoIotClient.ArduinoThing(); + //expect(instance).to.be(); + }); + + it('should have the property deletedAt (base name: "deleted_at")', function() { + // uncomment below and update the code to test the property deletedAt + //var instance = new ArduinoIotClient.ArduinoThing(); + //expect(instance).to.be(); + }); + + it('should have the property deviceFqbn (base name: "device_fqbn")', function() { + // uncomment below and update the code to test the property deviceFqbn + //var instance = new ArduinoIotClient.ArduinoThing(); + //expect(instance).to.be(); + }); + + it('should have the property deviceId (base name: "device_id")', function() { + // uncomment below and update the code to test the property deviceId + //var instance = new ArduinoIotClient.ArduinoThing(); + //expect(instance).to.be(); + }); + + it('should have the property deviceName (base name: "device_name")', function() { + // uncomment below and update the code to test the property deviceName + //var instance = new ArduinoIotClient.ArduinoThing(); + //expect(instance).to.be(); + }); + + it('should have the property deviceType (base name: "device_type")', function() { + // uncomment below and update the code to test the property deviceType + //var instance = new ArduinoIotClient.ArduinoThing(); + //expect(instance).to.be(); + }); + + it('should have the property href (base name: "href")', function() { + // uncomment below and update the code to test the property href + //var instance = new ArduinoIotClient.ArduinoThing(); + //expect(instance).to.be(); + }); + + 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.ArduinoThing(); + //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.ArduinoThing(); + //expect(instance).to.be(); + }); + + it('should have the property organizationId (base name: "organization_id")', function() { + // uncomment below and update the code to test the property organizationId + //var instance = new ArduinoIotClient.ArduinoThing(); + //expect(instance).to.be(); + }); + + it('should have the property properties (base name: "properties")', function() { + // uncomment below and update the code to test the property properties + //var instance = new ArduinoIotClient.ArduinoThing(); + //expect(instance).to.be(); + }); + + it('should have the property propertiesCount (base name: "properties_count")', function() { + // uncomment below and update the code to test the property propertiesCount + //var instance = new ArduinoIotClient.ArduinoThing(); + //expect(instance).to.be(); + }); + + it('should have the property sketchId (base name: "sketch_id")', function() { + // uncomment below and update the code to test the property sketchId + //var instance = new ArduinoIotClient.ArduinoThing(); + //expect(instance).to.be(); + }); + + it('should have the property tags (base name: "tags")', function() { + // uncomment below and update the code to test the property tags + //var instance = new ArduinoIotClient.ArduinoThing(); + //expect(instance).to.be(); + }); + + it('should have the property timezone (base name: "timezone")', function() { + // uncomment below and update the code to test the property timezone + //var instance = new ArduinoIotClient.ArduinoThing(); + //expect(instance).to.be(); + }); + + it('should have the property updatedAt (base name: "updated_at")', function() { + // uncomment below and update the code to test the property updatedAt + //var instance = new ArduinoIotClient.ArduinoThing(); + //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.ArduinoThing(); + //expect(instance).to.be(); + }); + + it('should have the property webhookActive (base name: "webhook_active")', function() { + // uncomment below and update the code to test the property webhookActive + //var instance = new ArduinoIotClient.ArduinoThing(); + //expect(instance).to.be(); + }); + + it('should have the property webhookUri (base name: "webhook_uri")', function() { + // uncomment below and update the code to test the property webhookUri + //var instance = new ArduinoIotClient.ArduinoThing(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ArduinoThingresult.spec.js b/test/model/ArduinoThingresult.spec.js new file mode 100644 index 0000000..23b95fc --- /dev/null +++ b/test/model/ArduinoThingresult.spec.js @@ -0,0 +1,77 @@ +/** + * 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.ArduinoThingresult(); + }); + + 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('ArduinoThingresult', function() { + it('should create an instance of ArduinoThingresult', function() { + // uncomment below and update the code to test ArduinoThingresult + //var instance = new ArduinoIotClient.ArduinoThingresult(); + //expect(instance).to.be.a(ArduinoIotClient.ArduinoThingresult); + }); + + it('should have the property deviceId (base name: "device_id")', function() { + // uncomment below and update the code to test the property deviceId + //var instance = new ArduinoIotClient.ArduinoThingresult(); + //expect(instance).to.be(); + }); + + 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.ArduinoThingresult(); + //expect(instance).to.be(); + }); + + it('should have the property sketchId (base name: "sketch_id")', function() { + // uncomment below and update the code to test the property sketchId + //var instance = new ArduinoIotClient.ArduinoThingresult(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ArduinoThingtemplate.spec.js b/test/model/ArduinoThingtemplate.spec.js new file mode 100644 index 0000000..c8d8e51 --- /dev/null +++ b/test/model/ArduinoThingtemplate.spec.js @@ -0,0 +1,113 @@ +/** + * 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.ArduinoThingtemplate(); + }); + + 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('ArduinoThingtemplate', function() { + it('should create an instance of ArduinoThingtemplate', function() { + // uncomment below and update the code to test ArduinoThingtemplate + //var instance = new ArduinoIotClient.ArduinoThingtemplate(); + //expect(instance).to.be.a(ArduinoIotClient.ArduinoThingtemplate); + }); + + it('should have the property deviceMetadata (base name: "device_metadata")', function() { + // uncomment below and update the code to test the property deviceMetadata + //var instance = new ArduinoIotClient.ArduinoThingtemplate(); + //expect(instance).to.be(); + }); + + 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.ArduinoThingtemplate(); + //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.ArduinoThingtemplate(); + //expect(instance).to.be(); + }); + + it('should have the property organizationId (base name: "organization_id")', function() { + // uncomment below and update the code to test the property organizationId + //var instance = new ArduinoIotClient.ArduinoThingtemplate(); + //expect(instance).to.be(); + }); + + it('should have the property sketchTemplate (base name: "sketch_template")', function() { + // uncomment below and update the code to test the property sketchTemplate + //var instance = new ArduinoIotClient.ArduinoThingtemplate(); + //expect(instance).to.be(); + }); + + it('should have the property tags (base name: "tags")', function() { + // uncomment below and update the code to test the property tags + //var instance = new ArduinoIotClient.ArduinoThingtemplate(); + //expect(instance).to.be(); + }); + + it('should have the property timezone (base name: "timezone")', function() { + // uncomment below and update the code to test the property timezone + //var instance = new ArduinoIotClient.ArduinoThingtemplate(); + //expect(instance).to.be(); + }); + + it('should have the property variables (base name: "variables")', function() { + // uncomment below and update the code to test the property variables + //var instance = new ArduinoIotClient.ArduinoThingtemplate(); + //expect(instance).to.be(); + }); + + it('should have the property webhookUri (base name: "webhook_uri")', function() { + // uncomment below and update the code to test the property webhookUri + //var instance = new ArduinoIotClient.ArduinoThingtemplate(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ArduinoTimeseriesmedia.spec.js b/test/model/ArduinoTimeseriesmedia.spec.js new file mode 100644 index 0000000..70c5dad --- /dev/null +++ b/test/model/ArduinoTimeseriesmedia.spec.js @@ -0,0 +1,65 @@ +/** + * 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.ArduinoTimeseriesmedia(); + }); + + 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('ArduinoTimeseriesmedia', function() { + it('should create an instance of ArduinoTimeseriesmedia', function() { + // uncomment below and update the code to test ArduinoTimeseriesmedia + //var instance = new ArduinoIotClient.ArduinoTimeseriesmedia(); + //expect(instance).to.be.a(ArduinoIotClient.ArduinoTimeseriesmedia); + }); + + it('should have the property data (base name: "data")', function() { + // uncomment below and update the code to test the property data + //var instance = new ArduinoIotClient.ArduinoTimeseriesmedia(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ArduinoTimezone.spec.js b/test/model/ArduinoTimezone.spec.js new file mode 100644 index 0000000..41862dd --- /dev/null +++ b/test/model/ArduinoTimezone.spec.js @@ -0,0 +1,77 @@ +/** + * 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.ArduinoTimezone(); + }); + + 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('ArduinoTimezone', function() { + it('should create an instance of ArduinoTimezone', function() { + // uncomment below and update the code to test ArduinoTimezone + //var instance = new ArduinoIotClient.ArduinoTimezone(); + //expect(instance).to.be.a(ArduinoIotClient.ArduinoTimezone); + }); + + 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.ArduinoTimezone(); + //expect(instance).to.be(); + }); + + it('should have the property offset (base name: "offset")', function() { + // uncomment below and update the code to test the property offset + //var instance = new ArduinoIotClient.ArduinoTimezone(); + //expect(instance).to.be(); + }); + + it('should have the property until (base name: "until")', function() { + // uncomment below and update the code to test the property until + //var instance = new ArduinoIotClient.ArduinoTimezone(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ArduinoVariableslinks.spec.js b/test/model/ArduinoVariableslinks.spec.js new file mode 100644 index 0000000..c482e8e --- /dev/null +++ b/test/model/ArduinoVariableslinks.spec.js @@ -0,0 +1,65 @@ +/** + * 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.ArduinoVariableslinks(); + }); + + 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('ArduinoVariableslinks', function() { + it('should create an instance of ArduinoVariableslinks', function() { + // uncomment below and update the code to test ArduinoVariableslinks + //var instance = new ArduinoIotClient.ArduinoVariableslinks(); + //expect(instance).to.be.a(ArduinoIotClient.ArduinoVariableslinks); + }); + + it('should have the property variables (base name: "variables")', function() { + // uncomment below and update the code to test the property variables + //var instance = new ArduinoIotClient.ArduinoVariableslinks(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ArduinoWidgetv2.spec.js b/test/model/ArduinoWidgetv2.spec.js new file mode 100644 index 0000000..dfc1c7c --- /dev/null +++ b/test/model/ArduinoWidgetv2.spec.js @@ -0,0 +1,155 @@ +/** + * 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.ArduinoWidgetv2(); + }); + + 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('ArduinoWidgetv2', function() { + it('should create an instance of ArduinoWidgetv2', function() { + // uncomment below and update the code to test ArduinoWidgetv2 + //var instance = new ArduinoIotClient.ArduinoWidgetv2(); + //expect(instance).to.be.a(ArduinoIotClient.ArduinoWidgetv2); + }); + + it('should have the property hasPermissionIncompatibility (base name: "has_permission_incompatibility")', function() { + // uncomment below and update the code to test the property hasPermissionIncompatibility + //var instance = new ArduinoIotClient.ArduinoWidgetv2(); + //expect(instance).to.be(); + }); + + it('should have the property hasTypeIncompatibility (base name: "has_type_incompatibility")', function() { + // uncomment below and update the code to test the property hasTypeIncompatibility + //var instance = new ArduinoIotClient.ArduinoWidgetv2(); + //expect(instance).to.be(); + }); + + it('should have the property hasUnlinkedVariable (base name: "has_unlinked_variable")', function() { + // uncomment below and update the code to test the property hasUnlinkedVariable + //var instance = new ArduinoIotClient.ArduinoWidgetv2(); + //expect(instance).to.be(); + }); + + it('should have the property height (base name: "height")', function() { + // uncomment below and update the code to test the property height + //var instance = new ArduinoIotClient.ArduinoWidgetv2(); + //expect(instance).to.be(); + }); + + it('should have the property heightMobile (base name: "height_mobile")', function() { + // uncomment below and update the code to test the property heightMobile + //var instance = new ArduinoIotClient.ArduinoWidgetv2(); + //expect(instance).to.be(); + }); + + 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.ArduinoWidgetv2(); + //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.ArduinoWidgetv2(); + //expect(instance).to.be(); + }); + + it('should have the property options (base name: "options")', function() { + // uncomment below and update the code to test the property options + //var instance = new ArduinoIotClient.ArduinoWidgetv2(); + //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.ArduinoWidgetv2(); + //expect(instance).to.be(); + }); + + it('should have the property variables (base name: "variables")', function() { + // uncomment below and update the code to test the property variables + //var instance = new ArduinoIotClient.ArduinoWidgetv2(); + //expect(instance).to.be(); + }); + + it('should have the property width (base name: "width")', function() { + // uncomment below and update the code to test the property width + //var instance = new ArduinoIotClient.ArduinoWidgetv2(); + //expect(instance).to.be(); + }); + + it('should have the property widthMobile (base name: "width_mobile")', function() { + // uncomment below and update the code to test the property widthMobile + //var instance = new ArduinoIotClient.ArduinoWidgetv2(); + //expect(instance).to.be(); + }); + + it('should have the property x (base name: "x")', function() { + // uncomment below and update the code to test the property x + //var instance = new ArduinoIotClient.ArduinoWidgetv2(); + //expect(instance).to.be(); + }); + + it('should have the property xMobile (base name: "x_mobile")', function() { + // uncomment below and update the code to test the property xMobile + //var instance = new ArduinoIotClient.ArduinoWidgetv2(); + //expect(instance).to.be(); + }); + + it('should have the property y (base name: "y")', function() { + // uncomment below and update the code to test the property y + //var instance = new ArduinoIotClient.ArduinoWidgetv2(); + //expect(instance).to.be(); + }); + + it('should have the property yMobile (base name: "y_mobile")', function() { + // uncomment below and update the code to test the property yMobile + //var instance = new ArduinoIotClient.ArduinoWidgetv2(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ArduinoWidgetv2template.spec.js b/test/model/ArduinoWidgetv2template.spec.js new file mode 100644 index 0000000..4e94c0e --- /dev/null +++ b/test/model/ArduinoWidgetv2template.spec.js @@ -0,0 +1,131 @@ +/** + * 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.ArduinoWidgetv2template(); + }); + + 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('ArduinoWidgetv2template', function() { + it('should create an instance of ArduinoWidgetv2template', function() { + // uncomment below and update the code to test ArduinoWidgetv2template + //var instance = new ArduinoIotClient.ArduinoWidgetv2template(); + //expect(instance).to.be.a(ArduinoIotClient.ArduinoWidgetv2template); + }); + + it('should have the property height (base name: "height")', function() { + // uncomment below and update the code to test the property height + //var instance = new ArduinoIotClient.ArduinoWidgetv2template(); + //expect(instance).to.be(); + }); + + it('should have the property heightMobile (base name: "height_mobile")', function() { + // uncomment below and update the code to test the property heightMobile + //var instance = new ArduinoIotClient.ArduinoWidgetv2template(); + //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.ArduinoWidgetv2template(); + //expect(instance).to.be(); + }); + + it('should have the property options (base name: "options")', function() { + // uncomment below and update the code to test the property options + //var instance = new ArduinoIotClient.ArduinoWidgetv2template(); + //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.ArduinoWidgetv2template(); + //expect(instance).to.be(); + }); + + it('should have the property variables (base name: "variables")', function() { + // uncomment below and update the code to test the property variables + //var instance = new ArduinoIotClient.ArduinoWidgetv2template(); + //expect(instance).to.be(); + }); + + it('should have the property width (base name: "width")', function() { + // uncomment below and update the code to test the property width + //var instance = new ArduinoIotClient.ArduinoWidgetv2template(); + //expect(instance).to.be(); + }); + + it('should have the property widthMobile (base name: "width_mobile")', function() { + // uncomment below and update the code to test the property widthMobile + //var instance = new ArduinoIotClient.ArduinoWidgetv2template(); + //expect(instance).to.be(); + }); + + it('should have the property x (base name: "x")', function() { + // uncomment below and update the code to test the property x + //var instance = new ArduinoIotClient.ArduinoWidgetv2template(); + //expect(instance).to.be(); + }); + + it('should have the property xMobile (base name: "x_mobile")', function() { + // uncomment below and update the code to test the property xMobile + //var instance = new ArduinoIotClient.ArduinoWidgetv2template(); + //expect(instance).to.be(); + }); + + it('should have the property y (base name: "y")', function() { + // uncomment below and update the code to test the property y + //var instance = new ArduinoIotClient.ArduinoWidgetv2template(); + //expect(instance).to.be(); + }); + + it('should have the property yMobile (base name: "y_mobile")', function() { + // uncomment below and update the code to test the property yMobile + //var instance = new ArduinoIotClient.ArduinoWidgetv2template(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/BatchLastValueRequestsMediaV1.spec.js b/test/model/BatchLastValueRequestsMediaV1.spec.js new file mode 100644 index 0000000..675078b --- /dev/null +++ b/test/model/BatchLastValueRequestsMediaV1.spec.js @@ -0,0 +1,65 @@ +/** + * 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.BatchLastValueRequestsMediaV1(); + }); + + 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('BatchLastValueRequestsMediaV1', function() { + it('should create an instance of BatchLastValueRequestsMediaV1', function() { + // uncomment below and update the code to test BatchLastValueRequestsMediaV1 + //var instance = new ArduinoIotClient.BatchLastValueRequestsMediaV1(); + //expect(instance).to.be.a(ArduinoIotClient.BatchLastValueRequestsMediaV1); + }); + + it('should have the property requests (base name: "requests")', function() { + // uncomment below and update the code to test the property requests + //var instance = new ArduinoIotClient.BatchLastValueRequestsMediaV1(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/BatchQueryRawLastValueRequestMediaV1.spec.js b/test/model/BatchQueryRawLastValueRequestMediaV1.spec.js new file mode 100644 index 0000000..2548bd7 --- /dev/null +++ b/test/model/BatchQueryRawLastValueRequestMediaV1.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.BatchQueryRawLastValueRequestMediaV1(); + }); + + 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('BatchQueryRawLastValueRequestMediaV1', function() { + it('should create an instance of BatchQueryRawLastValueRequestMediaV1', function() { + // uncomment below and update the code to test BatchQueryRawLastValueRequestMediaV1 + //var instance = new ArduinoIotClient.BatchQueryRawLastValueRequestMediaV1(); + //expect(instance).to.be.a(ArduinoIotClient.BatchQueryRawLastValueRequestMediaV1); + }); + + it('should have the property propertyId (base name: "property_id")', function() { + // uncomment below and update the code to test the property propertyId + //var instance = new ArduinoIotClient.BatchQueryRawLastValueRequestMediaV1(); + //expect(instance).to.be(); + }); + + it('should have the property thingId (base name: "thing_id")', function() { + // uncomment below and update the code to test the property thingId + //var instance = new ArduinoIotClient.BatchQueryRawLastValueRequestMediaV1(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/BatchQueryRawRequestMediaV1.spec.js b/test/model/BatchQueryRawRequestMediaV1.spec.js new file mode 100644 index 0000000..2d111b5 --- /dev/null +++ b/test/model/BatchQueryRawRequestMediaV1.spec.js @@ -0,0 +1,89 @@ +/** + * 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.BatchQueryRawRequestMediaV1(); + }); + + 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('BatchQueryRawRequestMediaV1', function() { + it('should create an instance of BatchQueryRawRequestMediaV1', function() { + // uncomment below and update the code to test BatchQueryRawRequestMediaV1 + //var instance = new ArduinoIotClient.BatchQueryRawRequestMediaV1(); + //expect(instance).to.be.a(ArduinoIotClient.BatchQueryRawRequestMediaV1); + }); + + it('should have the property from (base name: "from")', function() { + // uncomment below and update the code to test the property from + //var instance = new ArduinoIotClient.BatchQueryRawRequestMediaV1(); + //expect(instance).to.be(); + }); + + it('should have the property q (base name: "q")', function() { + // uncomment below and update the code to test the property q + //var instance = new ArduinoIotClient.BatchQueryRawRequestMediaV1(); + //expect(instance).to.be(); + }); + + it('should have the property seriesLimit (base name: "series_limit")', function() { + // uncomment below and update the code to test the property seriesLimit + //var instance = new ArduinoIotClient.BatchQueryRawRequestMediaV1(); + //expect(instance).to.be(); + }); + + it('should have the property sort (base name: "sort")', function() { + // uncomment below and update the code to test the property sort + //var instance = new ArduinoIotClient.BatchQueryRawRequestMediaV1(); + //expect(instance).to.be(); + }); + + it('should have the property to (base name: "to")', function() { + // uncomment below and update the code to test the property to + //var instance = new ArduinoIotClient.BatchQueryRawRequestMediaV1(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/BatchQueryRawRequestsMediaV1.spec.js b/test/model/BatchQueryRawRequestsMediaV1.spec.js new file mode 100644 index 0000000..b928b54 --- /dev/null +++ b/test/model/BatchQueryRawRequestsMediaV1.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.BatchQueryRawRequestsMediaV1(); + }); + + 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('BatchQueryRawRequestsMediaV1', function() { + it('should create an instance of BatchQueryRawRequestsMediaV1', function() { + // uncomment below and update the code to test BatchQueryRawRequestsMediaV1 + //var instance = new ArduinoIotClient.BatchQueryRawRequestsMediaV1(); + //expect(instance).to.be.a(ArduinoIotClient.BatchQueryRawRequestsMediaV1); + }); + + it('should have the property requests (base name: "requests")', function() { + // uncomment below and update the code to test the property requests + //var instance = new ArduinoIotClient.BatchQueryRawRequestsMediaV1(); + //expect(instance).to.be(); + }); + + it('should have the property respVersion (base name: "resp_version")', function() { + // uncomment below and update the code to test the property respVersion + //var instance = new ArduinoIotClient.BatchQueryRawRequestsMediaV1(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/BatchQueryRawResponseSeriesMediaV1.spec.js b/test/model/BatchQueryRawResponseSeriesMediaV1.spec.js new file mode 100644 index 0000000..8b0f27e --- /dev/null +++ b/test/model/BatchQueryRawResponseSeriesMediaV1.spec.js @@ -0,0 +1,65 @@ +/** + * 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.BatchQueryRawResponseSeriesMediaV1(); + }); + + 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('BatchQueryRawResponseSeriesMediaV1', function() { + it('should create an instance of BatchQueryRawResponseSeriesMediaV1', function() { + // uncomment below and update the code to test BatchQueryRawResponseSeriesMediaV1 + //var instance = new ArduinoIotClient.BatchQueryRawResponseSeriesMediaV1(); + //expect(instance).to.be.a(ArduinoIotClient.BatchQueryRawResponseSeriesMediaV1); + }); + + it('should have the property metric (base name: "metric")', function() { + // uncomment below and update the code to test the property metric + //var instance = new ArduinoIotClient.BatchQueryRawResponseSeriesMediaV1(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/BatchQueryRequestMediaV1.spec.js b/test/model/BatchQueryRequestMediaV1.spec.js new file mode 100644 index 0000000..57c3eaa --- /dev/null +++ b/test/model/BatchQueryRequestMediaV1.spec.js @@ -0,0 +1,95 @@ +/** + * 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.BatchQueryRequestMediaV1(); + }); + + 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('BatchQueryRequestMediaV1', function() { + it('should create an instance of BatchQueryRequestMediaV1', function() { + // uncomment below and update the code to test BatchQueryRequestMediaV1 + //var instance = new ArduinoIotClient.BatchQueryRequestMediaV1(); + //expect(instance).to.be.a(ArduinoIotClient.BatchQueryRequestMediaV1); + }); + + it('should have the property aggregation (base name: "aggregation")', function() { + // uncomment below and update the code to test the property aggregation + //var instance = new ArduinoIotClient.BatchQueryRequestMediaV1(); + //expect(instance).to.be(); + }); + + it('should have the property from (base name: "from")', function() { + // uncomment below and update the code to test the property from + //var instance = new ArduinoIotClient.BatchQueryRequestMediaV1(); + //expect(instance).to.be(); + }); + + it('should have the property interval (base name: "interval")', function() { + // uncomment below and update the code to test the property interval + //var instance = new ArduinoIotClient.BatchQueryRequestMediaV1(); + //expect(instance).to.be(); + }); + + it('should have the property q (base name: "q")', function() { + // uncomment below and update the code to test the property q + //var instance = new ArduinoIotClient.BatchQueryRequestMediaV1(); + //expect(instance).to.be(); + }); + + it('should have the property seriesLimit (base name: "series_limit")', function() { + // uncomment below and update the code to test the property seriesLimit + //var instance = new ArduinoIotClient.BatchQueryRequestMediaV1(); + //expect(instance).to.be(); + }); + + it('should have the property to (base name: "to")', function() { + // uncomment below and update the code to test the property to + //var instance = new ArduinoIotClient.BatchQueryRequestMediaV1(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/BatchQueryRequestsMediaV1.spec.js b/test/model/BatchQueryRequestsMediaV1.spec.js new file mode 100644 index 0000000..0dba2e8 --- /dev/null +++ b/test/model/BatchQueryRequestsMediaV1.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.BatchQueryRequestsMediaV1(); + }); + + 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('BatchQueryRequestsMediaV1', function() { + it('should create an instance of BatchQueryRequestsMediaV1', function() { + // uncomment below and update the code to test BatchQueryRequestsMediaV1 + //var instance = new ArduinoIotClient.BatchQueryRequestsMediaV1(); + //expect(instance).to.be.a(ArduinoIotClient.BatchQueryRequestsMediaV1); + }); + + it('should have the property requests (base name: "requests")', function() { + // uncomment below and update the code to test the property requests + //var instance = new ArduinoIotClient.BatchQueryRequestsMediaV1(); + //expect(instance).to.be(); + }); + + it('should have the property respVersion (base name: "resp_version")', function() { + // uncomment below and update the code to test the property respVersion + //var instance = new ArduinoIotClient.BatchQueryRequestsMediaV1(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/BatchQuerySampledRequestMediaV1.spec.js b/test/model/BatchQuerySampledRequestMediaV1.spec.js new file mode 100644 index 0000000..fbc13c0 --- /dev/null +++ b/test/model/BatchQuerySampledRequestMediaV1.spec.js @@ -0,0 +1,89 @@ +/** + * 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.BatchQuerySampledRequestMediaV1(); + }); + + 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('BatchQuerySampledRequestMediaV1', function() { + it('should create an instance of BatchQuerySampledRequestMediaV1', function() { + // uncomment below and update the code to test BatchQuerySampledRequestMediaV1 + //var instance = new ArduinoIotClient.BatchQuerySampledRequestMediaV1(); + //expect(instance).to.be.a(ArduinoIotClient.BatchQuerySampledRequestMediaV1); + }); + + it('should have the property from (base name: "from")', function() { + // uncomment below and update the code to test the property from + //var instance = new ArduinoIotClient.BatchQuerySampledRequestMediaV1(); + //expect(instance).to.be(); + }); + + it('should have the property interval (base name: "interval")', function() { + // uncomment below and update the code to test the property interval + //var instance = new ArduinoIotClient.BatchQuerySampledRequestMediaV1(); + //expect(instance).to.be(); + }); + + it('should have the property q (base name: "q")', function() { + // uncomment below and update the code to test the property q + //var instance = new ArduinoIotClient.BatchQuerySampledRequestMediaV1(); + //expect(instance).to.be(); + }); + + it('should have the property seriesLimit (base name: "series_limit")', function() { + // uncomment below and update the code to test the property seriesLimit + //var instance = new ArduinoIotClient.BatchQuerySampledRequestMediaV1(); + //expect(instance).to.be(); + }); + + it('should have the property to (base name: "to")', function() { + // uncomment below and update the code to test the property to + //var instance = new ArduinoIotClient.BatchQuerySampledRequestMediaV1(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/BatchQuerySampledRequestsMediaV1.spec.js b/test/model/BatchQuerySampledRequestsMediaV1.spec.js new file mode 100644 index 0000000..7df99cd --- /dev/null +++ b/test/model/BatchQuerySampledRequestsMediaV1.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.BatchQuerySampledRequestsMediaV1(); + }); + + 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('BatchQuerySampledRequestsMediaV1', function() { + it('should create an instance of BatchQuerySampledRequestsMediaV1', function() { + // uncomment below and update the code to test BatchQuerySampledRequestsMediaV1 + //var instance = new ArduinoIotClient.BatchQuerySampledRequestsMediaV1(); + //expect(instance).to.be.a(ArduinoIotClient.BatchQuerySampledRequestsMediaV1); + }); + + it('should have the property requests (base name: "requests")', function() { + // uncomment below and update the code to test the property requests + //var instance = new ArduinoIotClient.BatchQuerySampledRequestsMediaV1(); + //expect(instance).to.be(); + }); + + it('should have the property respVersion (base name: "resp_version")', function() { + // uncomment below and update the code to test the property respVersion + //var instance = new ArduinoIotClient.BatchQuerySampledRequestsMediaV1(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CheckDevicesV2PassPayload.spec.js b/test/model/CheckDevicesV2PassPayload.spec.js new file mode 100644 index 0000000..becfe62 --- /dev/null +++ b/test/model/CheckDevicesV2PassPayload.spec.js @@ -0,0 +1,65 @@ +/** + * 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.CheckDevicesV2PassPayload(); + }); + + 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('CheckDevicesV2PassPayload', function() { + it('should create an instance of CheckDevicesV2PassPayload', function() { + // uncomment below and update the code to test CheckDevicesV2PassPayload + //var instance = new ArduinoIotClient.CheckDevicesV2PassPayload(); + //expect(instance).to.be.a(ArduinoIotClient.CheckDevicesV2PassPayload); + }); + + it('should have the property password (base name: "password")', function() { + // uncomment below and update the code to test the property password + //var instance = new ArduinoIotClient.CheckDevicesV2PassPayload(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Clone.spec.js b/test/model/Clone.spec.js new file mode 100644 index 0000000..aaf519c --- /dev/null +++ b/test/model/Clone.spec.js @@ -0,0 +1,65 @@ +/** + * 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.Clone(); + }); + + 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('Clone', function() { + it('should create an instance of Clone', function() { + // uncomment below and update the code to test Clone + //var instance = new ArduinoIotClient.Clone(); + //expect(instance).to.be.a(ArduinoIotClient.Clone); + }); + + it('should have the property overrides (base name: "overrides")', function() { + // uncomment below and update the code to test the property overrides + //var instance = new ArduinoIotClient.Clone(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CreateDevicesV2CertsPayload.spec.js b/test/model/CreateDevicesV2CertsPayload.spec.js new file mode 100644 index 0000000..fe52198 --- /dev/null +++ b/test/model/CreateDevicesV2CertsPayload.spec.js @@ -0,0 +1,77 @@ +/** + * 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.CreateDevicesV2CertsPayload(); + }); + + 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('CreateDevicesV2CertsPayload', function() { + it('should create an instance of CreateDevicesV2CertsPayload', function() { + // uncomment below and update the code to test CreateDevicesV2CertsPayload + //var instance = new ArduinoIotClient.CreateDevicesV2CertsPayload(); + //expect(instance).to.be.a(ArduinoIotClient.CreateDevicesV2CertsPayload); + }); + + it('should have the property ca (base name: "ca")', function() { + // uncomment below and update the code to test the property ca + //var instance = new ArduinoIotClient.CreateDevicesV2CertsPayload(); + //expect(instance).to.be(); + }); + + it('should have the property csr (base name: "csr")', function() { + // uncomment below and update the code to test the property csr + //var instance = new ArduinoIotClient.CreateDevicesV2CertsPayload(); + //expect(instance).to.be(); + }); + + it('should have the property enabled (base name: "enabled")', function() { + // uncomment below and update the code to test the property enabled + //var instance = new ArduinoIotClient.CreateDevicesV2CertsPayload(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CreateDevicesV2Payload.spec.js b/test/model/CreateDevicesV2Payload.spec.js new file mode 100644 index 0000000..89309f9 --- /dev/null +++ b/test/model/CreateDevicesV2Payload.spec.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. + * + */ + +(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.CreateDevicesV2Payload(); + }); + + 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('CreateDevicesV2Payload', function() { + it('should create an instance of CreateDevicesV2Payload', function() { + // uncomment below and update the code to test CreateDevicesV2Payload + //var instance = new ArduinoIotClient.CreateDevicesV2Payload(); + //expect(instance).to.be.a(ArduinoIotClient.CreateDevicesV2Payload); + }); + + 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.CreateDevicesV2Payload(); + //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.CreateDevicesV2Payload(); + //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.CreateDevicesV2Payload(); + //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.CreateDevicesV2Payload(); + //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.CreateDevicesV2Payload(); + //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.CreateDevicesV2Payload(); + //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.CreateDevicesV2Payload(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CreateLoraDevicesV1Payload.spec.js b/test/model/CreateLoraDevicesV1Payload.spec.js new file mode 100644 index 0000000..ef913cc --- /dev/null +++ b/test/model/CreateLoraDevicesV1Payload.spec.js @@ -0,0 +1,113 @@ +/** + * 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.CreateLoraDevicesV1Payload(); + }); + + 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('CreateLoraDevicesV1Payload', function() { + it('should create an instance of CreateLoraDevicesV1Payload', function() { + // uncomment below and update the code to test CreateLoraDevicesV1Payload + //var instance = new ArduinoIotClient.CreateLoraDevicesV1Payload(); + //expect(instance).to.be.a(ArduinoIotClient.CreateLoraDevicesV1Payload); + }); + + it('should have the property app (base name: "app")', function() { + // uncomment below and update the code to test the property app + //var instance = new ArduinoIotClient.CreateLoraDevicesV1Payload(); + //expect(instance).to.be(); + }); + + it('should have the property appEui (base name: "app_eui")', function() { + // uncomment below and update the code to test the property appEui + //var instance = new ArduinoIotClient.CreateLoraDevicesV1Payload(); + //expect(instance).to.be(); + }); + + it('should have the property appKey (base name: "app_key")', function() { + // uncomment below and update the code to test the property appKey + //var instance = new ArduinoIotClient.CreateLoraDevicesV1Payload(); + //expect(instance).to.be(); + }); + + it('should have the property eui (base name: "eui")', function() { + // uncomment below and update the code to test the property eui + //var instance = new ArduinoIotClient.CreateLoraDevicesV1Payload(); + //expect(instance).to.be(); + }); + + it('should have the property frequencyPlan (base name: "frequency_plan")', function() { + // uncomment below and update the code to test the property frequencyPlan + //var instance = new ArduinoIotClient.CreateLoraDevicesV1Payload(); + //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.CreateLoraDevicesV1Payload(); + //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.CreateLoraDevicesV1Payload(); + //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.CreateLoraDevicesV1Payload(); + //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.CreateLoraDevicesV1Payload(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Dashboardshare.spec.js b/test/model/Dashboardshare.spec.js new file mode 100644 index 0000000..eb4da18 --- /dev/null +++ b/test/model/Dashboardshare.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.Dashboardshare(); + }); + + 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('Dashboardshare', function() { + it('should create an instance of Dashboardshare', function() { + // uncomment below and update the code to test Dashboardshare + //var instance = new ArduinoIotClient.Dashboardshare(); + //expect(instance).to.be.a(ArduinoIotClient.Dashboardshare); + }); + + 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.Dashboardshare(); + //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.Dashboardshare(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Dashboardv2.spec.js b/test/model/Dashboardv2.spec.js new file mode 100644 index 0000000..3f69a45 --- /dev/null +++ b/test/model/Dashboardv2.spec.js @@ -0,0 +1,77 @@ +/** + * 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.Dashboardv2(); + }); + + 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('Dashboardv2', function() { + it('should create an instance of Dashboardv2', function() { + // uncomment below and update the code to test Dashboardv2 + //var instance = new ArduinoIotClient.Dashboardv2(); + //expect(instance).to.be.a(ArduinoIotClient.Dashboardv2); + }); + + it('should have the property coverImage (base name: "cover_image")', function() { + // uncomment below and update the code to test the property coverImage + //var instance = new ArduinoIotClient.Dashboardv2(); + //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.Dashboardv2(); + //expect(instance).to.be(); + }); + + it('should have the property widgets (base name: "widgets")', function() { + // uncomment below and update the code to test the property widgets + //var instance = new ArduinoIotClient.Dashboardv2(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Devicev2.spec.js b/test/model/Devicev2.spec.js new file mode 100644 index 0000000..31c2c4e --- /dev/null +++ b/test/model/Devicev2.spec.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. + * + */ + +(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.Devicev2(); + }); + + 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('Devicev2', function() { + it('should create an instance of Devicev2', function() { + // uncomment below and update the code to test Devicev2 + //var instance = new ArduinoIotClient.Devicev2(); + //expect(instance).to.be.a(ArduinoIotClient.Devicev2); + }); + + 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.Devicev2(); + //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.Devicev2(); + //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.Devicev2(); + //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.Devicev2(); + //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.Devicev2(); + //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.Devicev2(); + //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.Devicev2(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Devicev2Cert.spec.js b/test/model/Devicev2Cert.spec.js new file mode 100644 index 0000000..f10e9ff --- /dev/null +++ b/test/model/Devicev2Cert.spec.js @@ -0,0 +1,77 @@ +/** + * 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.Devicev2Cert(); + }); + + 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('Devicev2Cert', function() { + it('should create an instance of Devicev2Cert', function() { + // uncomment below and update the code to test Devicev2Cert + //var instance = new ArduinoIotClient.Devicev2Cert(); + //expect(instance).to.be.a(ArduinoIotClient.Devicev2Cert); + }); + + it('should have the property ca (base name: "ca")', function() { + // uncomment below and update the code to test the property ca + //var instance = new ArduinoIotClient.Devicev2Cert(); + //expect(instance).to.be(); + }); + + it('should have the property csr (base name: "csr")', function() { + // uncomment below and update the code to test the property csr + //var instance = new ArduinoIotClient.Devicev2Cert(); + //expect(instance).to.be(); + }); + + it('should have the property enabled (base name: "enabled")', function() { + // uncomment below and update the code to test the property enabled + //var instance = new ArduinoIotClient.Devicev2Cert(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Devicev2Otabinaryurl.spec.js b/test/model/Devicev2Otabinaryurl.spec.js new file mode 100644 index 0000000..5f84692 --- /dev/null +++ b/test/model/Devicev2Otabinaryurl.spec.js @@ -0,0 +1,77 @@ +/** + * 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.Devicev2Otabinaryurl(); + }); + + 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('Devicev2Otabinaryurl', function() { + it('should create an instance of Devicev2Otabinaryurl', function() { + // uncomment below and update the code to test Devicev2Otabinaryurl + //var instance = new ArduinoIotClient.Devicev2Otabinaryurl(); + //expect(instance).to.be.a(ArduinoIotClient.Devicev2Otabinaryurl); + }); + + it('should have the property async (base name: "async")', function() { + // uncomment below and update the code to test the property async + //var instance = new ArduinoIotClient.Devicev2Otabinaryurl(); + //expect(instance).to.be(); + }); + + it('should have the property binaryKey (base name: "binary_key")', function() { + // uncomment below and update the code to test the property binaryKey + //var instance = new ArduinoIotClient.Devicev2Otabinaryurl(); + //expect(instance).to.be(); + }); + + it('should have the property expireInMins (base name: "expire_in_mins")', function() { + // uncomment below and update the code to test the property expireInMins + //var instance = new ArduinoIotClient.Devicev2Otabinaryurl(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Devicev2Otaurlpyalod.spec.js b/test/model/Devicev2Otaurlpyalod.spec.js new file mode 100644 index 0000000..d34304d --- /dev/null +++ b/test/model/Devicev2Otaurlpyalod.spec.js @@ -0,0 +1,77 @@ +/** + * 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.Devicev2Otaurlpyalod(); + }); + + 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('Devicev2Otaurlpyalod', function() { + it('should create an instance of Devicev2Otaurlpyalod', function() { + // uncomment below and update the code to test Devicev2Otaurlpyalod + //var instance = new ArduinoIotClient.Devicev2Otaurlpyalod(); + //expect(instance).to.be.a(ArduinoIotClient.Devicev2Otaurlpyalod); + }); + + it('should have the property binaryKey (base name: "binary_key")', function() { + // uncomment below and update the code to test the property binaryKey + //var instance = new ArduinoIotClient.Devicev2Otaurlpyalod(); + //expect(instance).to.be(); + }); + + it('should have the property sha256 (base name: "sha256")', function() { + // uncomment below and update the code to test the property sha256 + //var instance = new ArduinoIotClient.Devicev2Otaurlpyalod(); + //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.Devicev2Otaurlpyalod(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Devicev2Pass.spec.js b/test/model/Devicev2Pass.spec.js new file mode 100644 index 0000000..76794d1 --- /dev/null +++ b/test/model/Devicev2Pass.spec.js @@ -0,0 +1,65 @@ +/** + * 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.Devicev2Pass(); + }); + + 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('Devicev2Pass', function() { + it('should create an instance of Devicev2Pass', function() { + // uncomment below and update the code to test Devicev2Pass + //var instance = new ArduinoIotClient.Devicev2Pass(); + //expect(instance).to.be.a(ArduinoIotClient.Devicev2Pass); + }); + + it('should have the property password (base name: "password")', function() { + // uncomment below and update the code to test the property password + //var instance = new ArduinoIotClient.Devicev2Pass(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Error.spec.js b/test/model/Error.spec.js new file mode 100644 index 0000000..c17e31b --- /dev/null +++ b/test/model/Error.spec.js @@ -0,0 +1,89 @@ +/** + * 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.Error(); + }); + + 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('Error', function() { + it('should create an instance of Error', function() { + // uncomment below and update the code to test Error + //var instance = new ArduinoIotClient.Error(); + //expect(instance).to.be.a(ArduinoIotClient.Error); + }); + + it('should have the property code (base name: "code")', function() { + // uncomment below and update the code to test the property code + //var instance = new ArduinoIotClient.Error(); + //expect(instance).to.be(); + }); + + it('should have the property detail (base name: "detail")', function() { + // uncomment below and update the code to test the property detail + //var instance = new ArduinoIotClient.Error(); + //expect(instance).to.be(); + }); + + 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.Error(); + //expect(instance).to.be(); + }); + + it('should have the property meta (base name: "meta")', function() { + // uncomment below and update the code to test the property meta + //var instance = new ArduinoIotClient.Error(); + //expect(instance).to.be(); + }); + + it('should have the property status (base name: "status")', function() { + // uncomment below and update the code to test the property status + //var instance = new ArduinoIotClient.Error(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/HistoricDataRequest.spec.js b/test/model/HistoricDataRequest.spec.js new file mode 100644 index 0000000..2451c92 --- /dev/null +++ b/test/model/HistoricDataRequest.spec.js @@ -0,0 +1,77 @@ +/** + * 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.HistoricDataRequest(); + }); + + 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('HistoricDataRequest', function() { + it('should create an instance of HistoricDataRequest', function() { + // uncomment below and update the code to test HistoricDataRequest + //var instance = new ArduinoIotClient.HistoricDataRequest(); + //expect(instance).to.be.a(ArduinoIotClient.HistoricDataRequest); + }); + + it('should have the property from (base name: "from")', function() { + // uncomment below and update the code to test the property from + //var instance = new ArduinoIotClient.HistoricDataRequest(); + //expect(instance).to.be(); + }); + + it('should have the property properties (base name: "properties")', function() { + // uncomment below and update the code to test the property properties + //var instance = new ArduinoIotClient.HistoricDataRequest(); + //expect(instance).to.be(); + }); + + it('should have the property to (base name: "to")', function() { + // uncomment below and update the code to test the property to + //var instance = new ArduinoIotClient.HistoricDataRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Override.spec.js b/test/model/Override.spec.js new file mode 100644 index 0000000..4fdd832 --- /dev/null +++ b/test/model/Override.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.Override(); + }); + + 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('Override', function() { + it('should create an instance of Override', function() { + // uncomment below and update the code to test Override + //var instance = new ArduinoIotClient.Override(); + //expect(instance).to.be.a(ArduinoIotClient.Override); + }); + + it('should have the property newThingId (base name: "new_thing_id")', function() { + // uncomment below and update the code to test the property newThingId + //var instance = new ArduinoIotClient.Override(); + //expect(instance).to.be(); + }); + + it('should have the property oldThingId (base name: "old_thing_id")', function() { + // uncomment below and update the code to test the property oldThingId + //var instance = new ArduinoIotClient.Override(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PropertiesValue.spec.js b/test/model/PropertiesValue.spec.js new file mode 100644 index 0000000..9edbcc5 --- /dev/null +++ b/test/model/PropertiesValue.spec.js @@ -0,0 +1,77 @@ +/** + * 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.PropertiesValue(); + }); + + 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('PropertiesValue', function() { + it('should create an instance of PropertiesValue', function() { + // uncomment below and update the code to test PropertiesValue + //var instance = new ArduinoIotClient.PropertiesValue(); + //expect(instance).to.be.a(ArduinoIotClient.PropertiesValue); + }); + + 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.PropertiesValue(); + //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.PropertiesValue(); + //expect(instance).to.be(); + }); + + it('should have the property value (base name: "value")', function() { + // uncomment below and update the code to test the property value + //var instance = new ArduinoIotClient.PropertiesValue(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PropertiesValues.spec.js b/test/model/PropertiesValues.spec.js new file mode 100644 index 0000000..2d3220f --- /dev/null +++ b/test/model/PropertiesValues.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.PropertiesValues(); + }); + + 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('PropertiesValues', function() { + it('should create an instance of PropertiesValues', function() { + // uncomment below and update the code to test PropertiesValues + //var instance = new ArduinoIotClient.PropertiesValues(); + //expect(instance).to.be.a(ArduinoIotClient.PropertiesValues); + }); + + it('should have the property input (base name: "input")', function() { + // uncomment below and update the code to test the property input + //var instance = new ArduinoIotClient.PropertiesValues(); + //expect(instance).to.be(); + }); + + it('should have the property properties (base name: "properties")', function() { + // uncomment below and update the code to test the property properties + //var instance = new ArduinoIotClient.PropertiesValues(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Property.spec.js b/test/model/Property.spec.js new file mode 100644 index 0000000..e56f28b --- /dev/null +++ b/test/model/Property.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.Property(); + }); + + 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('Property', function() { + it('should create an instance of Property', function() { + // uncomment below and update the code to test Property + //var instance = new ArduinoIotClient.Property(); + //expect(instance).to.be.a(ArduinoIotClient.Property); + }); + + it('should have the property maxValue (base name: "max_value")', function() { + // uncomment below and update the code to test the property maxValue + //var instance = new ArduinoIotClient.Property(); + //expect(instance).to.be(); + }); + + it('should have the property minValue (base name: "min_value")', function() { + // uncomment below and update the code to test the property minValue + //var instance = new ArduinoIotClient.Property(); + //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.Property(); + //expect(instance).to.be(); + }); + + it('should have the property permission (base name: "permission")', function() { + // uncomment below and update the code to test the property permission + //var instance = new ArduinoIotClient.Property(); + //expect(instance).to.be(); + }); + + it('should have the property persist (base name: "persist")', function() { + // uncomment below and update the code to test the property persist + //var instance = new ArduinoIotClient.Property(); + //expect(instance).to.be(); + }); + + it('should have the property tag (base name: "tag")', function() { + // uncomment below and update the code to test the property tag + //var instance = new ArduinoIotClient.Property(); + //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.Property(); + //expect(instance).to.be(); + }); + + it('should have the property updateParameter (base name: "update_parameter")', function() { + // uncomment below and update the code to test the property updateParameter + //var instance = new ArduinoIotClient.Property(); + //expect(instance).to.be(); + }); + + it('should have the property updateStrategy (base name: "update_strategy")', function() { + // uncomment below and update the code to test the property updateStrategy + //var instance = new ArduinoIotClient.Property(); + //expect(instance).to.be(); + }); + + it('should have the property variableName (base name: "variable_name")', function() { + // uncomment below and update the code to test the property variableName + //var instance = new ArduinoIotClient.Property(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PropertyValue.spec.js b/test/model/PropertyValue.spec.js new file mode 100644 index 0000000..abbd20d --- /dev/null +++ b/test/model/PropertyValue.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.PropertyValue(); + }); + + 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('PropertyValue', function() { + it('should create an instance of PropertyValue', function() { + // uncomment below and update the code to test PropertyValue + //var instance = new ArduinoIotClient.PropertyValue(); + //expect(instance).to.be.a(ArduinoIotClient.PropertyValue); + }); + + it('should have the property deviceId (base name: "device_id")', function() { + // uncomment below and update the code to test the property deviceId + //var instance = new ArduinoIotClient.PropertyValue(); + //expect(instance).to.be(); + }); + + it('should have the property value (base name: "value")', function() { + // uncomment below and update the code to test the property value + //var instance = new ArduinoIotClient.PropertyValue(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Sharerequest.spec.js b/test/model/Sharerequest.spec.js new file mode 100644 index 0000000..d81af64 --- /dev/null +++ b/test/model/Sharerequest.spec.js @@ -0,0 +1,65 @@ +/** + * 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.Sharerequest(); + }); + + 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('Sharerequest', function() { + it('should create an instance of Sharerequest', function() { + // uncomment below and update the code to test Sharerequest + //var instance = new ArduinoIotClient.Sharerequest(); + //expect(instance).to.be.a(ArduinoIotClient.Sharerequest); + }); + + it('should have the property message (base name: "message")', function() { + // uncomment below and update the code to test the property message + //var instance = new ArduinoIotClient.Sharerequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Tag.spec.js b/test/model/Tag.spec.js new file mode 100644 index 0000000..5fad870 --- /dev/null +++ b/test/model/Tag.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.Tag(); + }); + + 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('Tag', function() { + it('should create an instance of Tag', function() { + // uncomment below and update the code to test Tag + //var instance = new ArduinoIotClient.Tag(); + //expect(instance).to.be.a(ArduinoIotClient.Tag); + }); + + it('should have the property key (base name: "key")', function() { + // uncomment below and update the code to test the property key + //var instance = new ArduinoIotClient.Tag(); + //expect(instance).to.be(); + }); + + it('should have the property value (base name: "value")', function() { + // uncomment below and update the code to test the property value + //var instance = new ArduinoIotClient.Tag(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Template.spec.js b/test/model/Template.spec.js new file mode 100644 index 0000000..a6de865 --- /dev/null +++ b/test/model/Template.spec.js @@ -0,0 +1,83 @@ +/** + * Arduino IoT Cloud API + * Provides a set of endpoints to manage Arduino IoT Cloud **Devices**, **Things**, **Properties** and **Timeseries**. This API can be called just with any HTTP Client, or using one of these clients: * [Javascript NPM package](https://www.npmjs.com/package/@arduino/arduino-iot-client) * [Python PYPI Package](https://pypi.org/project/arduino-iot-client/) * [Golang Module](https://github.com/arduino/iot-client-go) + * + * The version of the OpenAPI document: 2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(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.Template(); + }); + + 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('Template', function() { + it('should create an instance of Template', function() { + // uncomment below and update the code to test Template + //var instance = new ArduinoIotClient.Template(); + //expect(instance).to.be.a(ArduinoIotClient.Template); + }); + + it('should have the property customTemplateId (base name: "custom_template_id")', function() { + // uncomment below and update the code to test the property customTemplateId + //var instance = new ArduinoIotClient.Template(); + //expect(instance).to.be(); + }); + + it('should have the property prefixName (base name: "prefix_name")', function() { + // uncomment below and update the code to test the property prefixName + //var instance = new ArduinoIotClient.Template(); + //expect(instance).to.be(); + }); + + it('should have the property templateName (base name: "template_name")', function() { + // uncomment below and update the code to test the property templateName + //var instance = new ArduinoIotClient.Template(); + //expect(instance).to.be(); + }); + + it('should have the property thingsOptions (base name: "things_options")', function() { + // uncomment below and update the code to test the property thingsOptions + //var instance = new ArduinoIotClient.Template(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ThingClone.spec.js b/test/model/ThingClone.spec.js new file mode 100644 index 0000000..d206715 --- /dev/null +++ b/test/model/ThingClone.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.ThingClone(); + }); + + 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('ThingClone', function() { + it('should create an instance of ThingClone', function() { + // uncomment below and update the code to test ThingClone + //var instance = new ArduinoIotClient.ThingClone(); + //expect(instance).to.be.a(ArduinoIotClient.ThingClone); + }); + + it('should have the property includeTags (base name: "include_tags")', function() { + // uncomment below and update the code to test the property includeTags + //var instance = new ArduinoIotClient.ThingClone(); + //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.ThingClone(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ThingCreate.spec.js b/test/model/ThingCreate.spec.js new file mode 100644 index 0000000..743c68f --- /dev/null +++ b/test/model/ThingCreate.spec.js @@ -0,0 +1,113 @@ +/** + * 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.ThingCreate(); + }); + + 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('ThingCreate', function() { + it('should create an instance of ThingCreate', function() { + // uncomment below and update the code to test ThingCreate + //var instance = new ArduinoIotClient.ThingCreate(); + //expect(instance).to.be.a(ArduinoIotClient.ThingCreate); + }); + + it('should have the property assistant (base name: "assistant")', function() { + // uncomment below and update the code to test the property assistant + //var instance = new ArduinoIotClient.ThingCreate(); + //expect(instance).to.be(); + }); + + it('should have the property deviceId (base name: "device_id")', function() { + // uncomment below and update the code to test the property deviceId + //var instance = new ArduinoIotClient.ThingCreate(); + //expect(instance).to.be(); + }); + + 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.ThingCreate(); + //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.ThingCreate(); + //expect(instance).to.be(); + }); + + it('should have the property properties (base name: "properties")', function() { + // uncomment below and update the code to test the property properties + //var instance = new ArduinoIotClient.ThingCreate(); + //expect(instance).to.be(); + }); + + it('should have the property tags (base name: "tags")', function() { + // uncomment below and update the code to test the property tags + //var instance = new ArduinoIotClient.ThingCreate(); + //expect(instance).to.be(); + }); + + it('should have the property timezone (base name: "timezone")', function() { + // uncomment below and update the code to test the property timezone + //var instance = new ArduinoIotClient.ThingCreate(); + //expect(instance).to.be(); + }); + + it('should have the property webhookActive (base name: "webhook_active")', function() { + // uncomment below and update the code to test the property webhookActive + //var instance = new ArduinoIotClient.ThingCreate(); + //expect(instance).to.be(); + }); + + it('should have the property webhookUri (base name: "webhook_uri")', function() { + // uncomment below and update the code to test the property webhookUri + //var instance = new ArduinoIotClient.ThingCreate(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ThingSketch.spec.js b/test/model/ThingSketch.spec.js new file mode 100644 index 0000000..9b42276 --- /dev/null +++ b/test/model/ThingSketch.spec.js @@ -0,0 +1,65 @@ +/** + * 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.ThingSketch(); + }); + + 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('ThingSketch', function() { + it('should create an instance of ThingSketch', function() { + // uncomment below and update the code to test ThingSketch + //var instance = new ArduinoIotClient.ThingSketch(); + //expect(instance).to.be.a(ArduinoIotClient.ThingSketch); + }); + + it('should have the property sketchVersion (base name: "sketch_version")', function() { + // uncomment below and update the code to test the property sketchVersion + //var instance = new ArduinoIotClient.ThingSketch(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ThingUpdate.spec.js b/test/model/ThingUpdate.spec.js new file mode 100644 index 0000000..78d5e1b --- /dev/null +++ b/test/model/ThingUpdate.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.ThingUpdate(); + }); + + 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('ThingUpdate', function() { + it('should create an instance of ThingUpdate', function() { + // uncomment below and update the code to test ThingUpdate + //var instance = new ArduinoIotClient.ThingUpdate(); + //expect(instance).to.be.a(ArduinoIotClient.ThingUpdate); + }); + + it('should have the property assistant (base name: "assistant")', function() { + // uncomment below and update the code to test the property assistant + //var instance = new ArduinoIotClient.ThingUpdate(); + //expect(instance).to.be(); + }); + + it('should have the property deviceId (base name: "device_id")', function() { + // uncomment below and update the code to test the property deviceId + //var instance = new ArduinoIotClient.ThingUpdate(); + //expect(instance).to.be(); + }); + + 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.ThingUpdate(); + //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.ThingUpdate(); + //expect(instance).to.be(); + }); + + it('should have the property properties (base name: "properties")', function() { + // uncomment below and update the code to test the property properties + //var instance = new ArduinoIotClient.ThingUpdate(); + //expect(instance).to.be(); + }); + + it('should have the property timezone (base name: "timezone")', function() { + // uncomment below and update the code to test the property timezone + //var instance = new ArduinoIotClient.ThingUpdate(); + //expect(instance).to.be(); + }); + + it('should have the property webhookActive (base name: "webhook_active")', function() { + // uncomment below and update the code to test the property webhookActive + //var instance = new ArduinoIotClient.ThingUpdate(); + //expect(instance).to.be(); + }); + + it('should have the property webhookUri (base name: "webhook_uri")', function() { + // uncomment below and update the code to test the property webhookUri + //var instance = new ArduinoIotClient.ThingUpdate(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/TimeseriesDataPoint.spec.js b/test/model/TimeseriesDataPoint.spec.js new file mode 100644 index 0000000..27b5280 --- /dev/null +++ b/test/model/TimeseriesDataPoint.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.TimeseriesDataPoint(); + }); + + 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('TimeseriesDataPoint', function() { + it('should create an instance of TimeseriesDataPoint', function() { + // uncomment below and update the code to test TimeseriesDataPoint + //var instance = new ArduinoIotClient.TimeseriesDataPoint(); + //expect(instance).to.be.a(ArduinoIotClient.TimeseriesDataPoint); + }); + + it('should have the property time (base name: "time")', function() { + // uncomment below and update the code to test the property time + //var instance = new ArduinoIotClient.TimeseriesDataPoint(); + //expect(instance).to.be(); + }); + + it('should have the property value (base name: "value")', function() { + // uncomment below and update the code to test the property value + //var instance = new ArduinoIotClient.TimeseriesDataPoint(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UpdateSketch.spec.js b/test/model/UpdateSketch.spec.js new file mode 100644 index 0000000..2498a9a --- /dev/null +++ b/test/model/UpdateSketch.spec.js @@ -0,0 +1,65 @@ +/** + * 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.UpdateSketch(); + }); + + 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('UpdateSketch', function() { + it('should create an instance of UpdateSketch', function() { + // uncomment below and update the code to test UpdateSketch + //var instance = new ArduinoIotClient.UpdateSketch(); + //expect(instance).to.be.a(ArduinoIotClient.UpdateSketch); + }); + + it('should have the property sketchVersion (base name: "sketch_version")', function() { + // uncomment below and update the code to test the property sketchVersion + //var instance = new ArduinoIotClient.UpdateSketch(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Widget.spec.js b/test/model/Widget.spec.js new file mode 100644 index 0000000..32929e0 --- /dev/null +++ b/test/model/Widget.spec.js @@ -0,0 +1,137 @@ +/** + * 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.Widget(); + }); + + 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('Widget', function() { + it('should create an instance of Widget', function() { + // uncomment below and update the code to test Widget + //var instance = new ArduinoIotClient.Widget(); + //expect(instance).to.be.a(ArduinoIotClient.Widget); + }); + + it('should have the property height (base name: "height")', function() { + // uncomment below and update the code to test the property height + //var instance = new ArduinoIotClient.Widget(); + //expect(instance).to.be(); + }); + + it('should have the property heightMobile (base name: "height_mobile")', function() { + // uncomment below and update the code to test the property heightMobile + //var instance = new ArduinoIotClient.Widget(); + //expect(instance).to.be(); + }); + + 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.Widget(); + //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.Widget(); + //expect(instance).to.be(); + }); + + it('should have the property options (base name: "options")', function() { + // uncomment below and update the code to test the property options + //var instance = new ArduinoIotClient.Widget(); + //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.Widget(); + //expect(instance).to.be(); + }); + + it('should have the property variables (base name: "variables")', function() { + // uncomment below and update the code to test the property variables + //var instance = new ArduinoIotClient.Widget(); + //expect(instance).to.be(); + }); + + it('should have the property width (base name: "width")', function() { + // uncomment below and update the code to test the property width + //var instance = new ArduinoIotClient.Widget(); + //expect(instance).to.be(); + }); + + it('should have the property widthMobile (base name: "width_mobile")', function() { + // uncomment below and update the code to test the property widthMobile + //var instance = new ArduinoIotClient.Widget(); + //expect(instance).to.be(); + }); + + it('should have the property x (base name: "x")', function() { + // uncomment below and update the code to test the property x + //var instance = new ArduinoIotClient.Widget(); + //expect(instance).to.be(); + }); + + it('should have the property xMobile (base name: "x_mobile")', function() { + // uncomment below and update the code to test the property xMobile + //var instance = new ArduinoIotClient.Widget(); + //expect(instance).to.be(); + }); + + it('should have the property y (base name: "y")', function() { + // uncomment below and update the code to test the property y + //var instance = new ArduinoIotClient.Widget(); + //expect(instance).to.be(); + }); + + it('should have the property yMobile (base name: "y_mobile")', function() { + // uncomment below and update the code to test the property yMobile + //var instance = new ArduinoIotClient.Widget(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Widgetlink.spec.js b/test/model/Widgetlink.spec.js new file mode 100644 index 0000000..d969db4 --- /dev/null +++ b/test/model/Widgetlink.spec.js @@ -0,0 +1,65 @@ +/** + * 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.Widgetlink(); + }); + + 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('Widgetlink', function() { + it('should create an instance of Widgetlink', function() { + // uncomment below and update the code to test Widgetlink + //var instance = new ArduinoIotClient.Widgetlink(); + //expect(instance).to.be.a(ArduinoIotClient.Widgetlink); + }); + + it('should have the property variables (base name: "variables")', function() { + // uncomment below and update the code to test the property variables + //var instance = new ArduinoIotClient.Widgetlink(); + //expect(instance).to.be(); + }); + + }); + +}));