Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Regenerate client from commit 647474e of spec repo #77

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"spec_versions": {
"v2": {
"apigentools_version": "1.1.0",
"regenerated": "2024-07-24 13:05:09.714302",
"spec_repo_commit": "5a8f8ed"
"regenerated": "2024-09-20 07:37:07.953858",
"spec_repo_commit": "647474e"
}
}
}
6 changes: 6 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@arduino/arduino-iot-client",
"version": "2.0.5",
"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",
Expand Down
2 changes: 1 addition & 1 deletion src/ApiClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import querystring from "querystring";

/**
* @module ApiClient
* @version 2.0.5
* @version 2.0.6
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/api/DashboardsV2Api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down
2 changes: 1 addition & 1 deletion src/api/DevicesV2Api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down
2 changes: 1 addition & 1 deletion src/api/DevicesV2CertsApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import Error from '../model/Error';
/**
* DevicesV2Certs service.
* @module api/DevicesV2CertsApi
* @version 2.0.5
* @version 2.0.6
*/
export default class DevicesV2CertsApi {

Expand Down
2 changes: 1 addition & 1 deletion src/api/DevicesV2OtaApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down
2 changes: 1 addition & 1 deletion src/api/DevicesV2PassApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import Error from '../model/Error';
/**
* DevicesV2Pass service.
* @module api/DevicesV2PassApi
* @version 2.0.5
* @version 2.0.6
*/
export default class DevicesV2PassApi {

Expand Down
2 changes: 1 addition & 1 deletion src/api/DevicesV2TagsApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down
2 changes: 1 addition & 1 deletion src/api/LoraDevicesV1Api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down
2 changes: 1 addition & 1 deletion src/api/LoraFreqPlanV1Api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down
7 changes: 4 additions & 3 deletions src/api/NetworkCredentialsV1Api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/api/PropertiesV2Api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down
80 changes: 80 additions & 0 deletions src/api/PropertyTypesV1Api.js
Original file line number Diff line number Diff line change
@@ -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.<module:model/ArduinoPropertytype>} 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.<module:model/ArduinoPropertytype>}
*/
propertyTypesV1ListTypes() {
return this.propertyTypesV1ListTypesWithHttpInfo()
.then(function(response_and_data) {
return response_and_data.data;
});
}


}
2 changes: 1 addition & 1 deletion src/api/SeriesV2Api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down
2 changes: 1 addition & 1 deletion src/api/TemplatesApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down
2 changes: 1 addition & 1 deletion src/api/ThingsV2Api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down
2 changes: 1 addition & 1 deletion src/api/ThingsV2TagsApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down
16 changes: 15 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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';
Expand Down Expand Up @@ -144,7 +146,7 @@ import ThingsV2TagsApi from './api/ThingsV2TagsApi';
* </pre>
* </p>
* @module index
* @version 2.0.5
* @version 2.0.6
*/
export {
/**
Expand Down Expand Up @@ -315,6 +317,12 @@ export {
*/
ArduinoProperty,

/**
* The ArduinoPropertytype model constructor.
* @property {module:model/ArduinoPropertytype}
*/
ArduinoPropertytype,

/**
* The ArduinoSeriesBatch model constructor.
* @property {module:model/ArduinoSeriesBatch}
Expand Down Expand Up @@ -729,6 +737,12 @@ export {
*/
PropertiesV2Api,

/**
* The PropertyTypesV1Api service constructor.
* @property {module:api/PropertyTypesV1Api}
*/
PropertyTypesV1Api,

/**
* The SeriesV2Api service constructor.
* @property {module:api/SeriesV2Api}
Expand Down
2 changes: 1 addition & 1 deletion src/model/ArduinoCompressedv2.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
/**
Expand Down
2 changes: 1 addition & 1 deletion src/model/ArduinoCredentialsv1.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
/**
Expand Down
2 changes: 1 addition & 1 deletion src/model/ArduinoDashboardowner.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
/**
Expand Down
2 changes: 1 addition & 1 deletion src/model/ArduinoDashboardshare.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
/**
Expand Down
Loading
Loading