@blues-inc/notehub-js 1.0.21 → 1.0.23-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +188 -178
- package/dist/ApiClient.js +156 -156
- package/dist/api/AlertApi.js +23 -20
- package/dist/api/AuthorizationApi.js +17 -17
- package/dist/api/BillingAccountApi.js +15 -15
- package/dist/api/DeviceApi.js +380 -329
- package/dist/api/EventApi.js +162 -121
- package/dist/api/MonitorApi.js +53 -53
- package/dist/api/ProjectApi.js +246 -246
- package/dist/api/RouteApi.js +77 -77
- package/dist/model/Alert.js +72 -57
- package/dist/model/AlertDataInner.js +36 -36
- package/dist/model/AlertNotificationsInner.js +19 -19
- package/dist/model/Aws.js +66 -66
- package/dist/model/Azure.js +44 -44
- package/dist/model/BillingAccount.js +22 -22
- package/dist/model/BillingAccountRole.js +10 -10
- package/dist/model/Body.js +6 -6
- package/dist/model/CloneProjectRequest.js +21 -21
- package/dist/model/Contact.js +23 -23
- package/dist/model/CreateFleetRequest.js +8 -8
- package/dist/model/CreateMonitor.js +127 -126
- package/dist/model/CreateProductRequest.js +23 -23
- package/dist/model/CreateProjectRequest.js +17 -17
- package/dist/model/DFUEnv.js +13 -13
- package/dist/model/DFUState.js +66 -66
- package/dist/model/DeleteDeviceFleetsRequest.js +9 -9
- package/dist/model/Device.js +85 -85
- package/dist/model/DeviceSession.js +183 -183
- package/dist/model/DeviceTowerInfo.js +15 -15
- package/dist/model/DeviceUsage.js +33 -33
- package/dist/model/EmailNotification.js +8 -8
- package/dist/model/EnvironmentVariables.js +9 -9
- package/dist/model/Error.js +32 -32
- package/dist/model/Event.js +224 -224
- package/dist/model/FirmwareInfo.js +61 -61
- package/dist/model/FirmwareStatus.js +28 -28
- package/dist/model/Fleet.js +22 -22
- package/dist/model/GetAlerts200Response.js +16 -15
- package/dist/model/GetBillingAccounts200Response.js +11 -10
- package/dist/model/GetDeviceEnvironmentVariables200Response.js +13 -13
- package/dist/model/GetDeviceHealthLog200Response.js +13 -12
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +20 -20
- package/dist/model/GetDeviceLatest200Response.js +11 -10
- package/dist/model/GetDevicePublicKey200Response.js +17 -17
- package/dist/model/GetDeviceSessions200Response.js +18 -17
- package/dist/model/GetProjectDevicePublicKeys200Response.js +18 -17
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +13 -13
- package/dist/model/GetProjectDevices200Response.js +18 -17
- package/dist/model/GetProjectEvents200Response.js +30 -16
- package/dist/model/GetProjectEventsByCursor200Response.js +25 -24
- package/dist/model/GetProjectFleets200Response.js +13 -12
- package/dist/model/GetProjectMembers200Response.js +13 -12
- package/dist/model/GetProjectProducts200Response.js +11 -10
- package/dist/model/GetProjects200Response.js +11 -10
- package/dist/model/GetRouteLogsByRoute200ResponseInner.js +36 -36
- package/dist/model/Google.js +34 -34
- package/dist/model/HandleNoteChanges200Response.js +12 -12
- package/dist/model/HandleNoteGet200Response.js +14 -14
- package/dist/model/HandleNoteSignal200Response.js +6 -6
- package/dist/model/HandleNotefileChanges200Response.js +12 -12
- package/dist/model/HandleNotefileChangesPending200Response.js +15 -15
- package/dist/model/HandleNotefileDeleteRequest.js +8 -8
- package/dist/model/Http.js +36 -36
- package/dist/model/HttpFilter.js +20 -20
- package/dist/model/HttpTransform.js +21 -21
- package/dist/model/Location.js +41 -41
- package/dist/model/Login200Response.js +8 -8
- package/dist/model/LoginRequest.js +13 -13
- package/dist/model/Monitor.js +101 -100
- package/dist/model/MonitorAlertRoutesInner.js +10 -11
- package/dist/model/Mqtt.js +67 -67
- package/dist/model/Note.js +11 -11
- package/dist/model/OTAStatus.js +89 -89
- package/dist/model/OTAStatusList.js +14 -13
- package/dist/model/OTAUpdateRequest.js +54 -54
- package/dist/model/OTAUpdateStatus.js +18 -18
- package/dist/model/PostProvisionProjectDeviceRequest.js +14 -14
- package/dist/model/Product.js +27 -27
- package/dist/model/Project.js +35 -35
- package/dist/model/ProjectMember.js +23 -23
- package/dist/model/Proxy.js +25 -25
- package/dist/model/PutDeviceFleetsRequest.js +9 -9
- package/dist/model/Radresponder.js +26 -26
- package/dist/model/Role.js +10 -10
- package/dist/model/Route.js +37 -37
- package/dist/model/RouteSchema.js +46 -47
- package/dist/model/Slack.js +54 -54
- package/dist/model/SlackBearerNotification.js +26 -26
- package/dist/model/SlackWebHookNotification.js +21 -21
- package/dist/model/Snowflake.js +46 -46
- package/dist/model/SnowflakeTransform.js +13 -13
- package/dist/model/Thingworx.js +34 -34
- package/dist/model/TowerLocation.js +53 -53
- package/dist/model/Twilio.js +44 -44
- package/dist/model/UpdateFleetRequest.js +18 -18
- package/dist/model/UserDbRoute.js +26 -26
- package/package.json +4 -4
package/dist/api/ProjectApi.js
CHANGED
|
@@ -33,9 +33,9 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
33
33
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
34
34
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
35
35
|
* Notehub API
|
|
36
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
36
|
+
* The OpenAPI definition for the Notehub.io API. Beta test change
|
|
37
37
|
*
|
|
38
|
-
* The version of the OpenAPI document: 1.1.
|
|
38
|
+
* The version of the OpenAPI document: 1.1.2
|
|
39
39
|
* Contact: engineering@blues.io
|
|
40
40
|
*
|
|
41
41
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -44,18 +44,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
44
44
|
*
|
|
45
45
|
*/
|
|
46
46
|
/**
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
* Project service.
|
|
48
|
+
* @module api/ProjectApi
|
|
49
|
+
* @version 1.0.23-beta.1
|
|
50
|
+
*/
|
|
51
51
|
var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
52
52
|
/**
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
53
|
+
* Constructs a new ProjectApi.
|
|
54
|
+
* @alias module:api/ProjectApi
|
|
55
|
+
* @class
|
|
56
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
57
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
58
|
+
*/
|
|
59
59
|
function ProjectApi(apiClient) {
|
|
60
60
|
_classCallCheck(this, ProjectApi);
|
|
61
61
|
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
@@ -80,16 +80,16 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
80
80
|
throw new _Error["default"]("Missing the required parameter 'cloneProjectRequest' when calling cloneProject");
|
|
81
81
|
}
|
|
82
82
|
var pathParams = {
|
|
83
|
-
projectUID: projectUID
|
|
83
|
+
'projectUID': projectUID
|
|
84
84
|
};
|
|
85
85
|
var queryParams = {};
|
|
86
86
|
var headerParams = {};
|
|
87
87
|
var formParams = {};
|
|
88
|
-
var authNames = [
|
|
89
|
-
var contentTypes = [
|
|
90
|
-
var accepts = [
|
|
88
|
+
var authNames = ['api_key'];
|
|
89
|
+
var contentTypes = ['application/json'];
|
|
90
|
+
var accepts = ['application/json'];
|
|
91
91
|
var returnType = _Project["default"];
|
|
92
|
-
return this.apiClient.callApi(
|
|
92
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/clone', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
/**
|
|
@@ -108,7 +108,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
108
108
|
|
|
109
109
|
/**
|
|
110
110
|
* Create Fleet
|
|
111
|
-
* @param {String} projectUID
|
|
111
|
+
* @param {String} projectUID
|
|
112
112
|
* @param {module:model/CreateFleetRequest} createFleetRequest Fleet to be added
|
|
113
113
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
114
114
|
*/
|
|
@@ -125,21 +125,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
125
125
|
throw new _Error["default"]("Missing the required parameter 'createFleetRequest' when calling createFleet");
|
|
126
126
|
}
|
|
127
127
|
var pathParams = {
|
|
128
|
-
projectUID: projectUID
|
|
128
|
+
'projectUID': projectUID
|
|
129
129
|
};
|
|
130
130
|
var queryParams = {};
|
|
131
131
|
var headerParams = {};
|
|
132
132
|
var formParams = {};
|
|
133
|
-
var authNames = [
|
|
134
|
-
var contentTypes = [
|
|
135
|
-
var accepts = [
|
|
133
|
+
var authNames = ['api_key'];
|
|
134
|
+
var contentTypes = ['application/json'];
|
|
135
|
+
var accepts = ['application/json'];
|
|
136
136
|
var returnType = _Fleet["default"];
|
|
137
|
-
return this.apiClient.callApi(
|
|
137
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/fleets', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
/**
|
|
141
141
|
* Create Fleet
|
|
142
|
-
* @param {String} projectUID
|
|
142
|
+
* @param {String} projectUID
|
|
143
143
|
* @param {module:model/CreateFleetRequest} createFleetRequest Fleet to be added
|
|
144
144
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
145
145
|
*/
|
|
@@ -153,7 +153,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
153
153
|
|
|
154
154
|
/**
|
|
155
155
|
* Create Product within a Project
|
|
156
|
-
* @param {String} projectUID
|
|
156
|
+
* @param {String} projectUID
|
|
157
157
|
* @param {module:model/CreateProductRequest} createProductRequest Product to be created
|
|
158
158
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Product} and HTTP response
|
|
159
159
|
*/
|
|
@@ -170,21 +170,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
170
170
|
throw new _Error["default"]("Missing the required parameter 'createProductRequest' when calling createProduct");
|
|
171
171
|
}
|
|
172
172
|
var pathParams = {
|
|
173
|
-
projectUID: projectUID
|
|
173
|
+
'projectUID': projectUID
|
|
174
174
|
};
|
|
175
175
|
var queryParams = {};
|
|
176
176
|
var headerParams = {};
|
|
177
177
|
var formParams = {};
|
|
178
|
-
var authNames = [
|
|
179
|
-
var contentTypes = [
|
|
180
|
-
var accepts = [
|
|
178
|
+
var authNames = ['api_key'];
|
|
179
|
+
var contentTypes = ['application/json'];
|
|
180
|
+
var accepts = ['application/json'];
|
|
181
181
|
var returnType = _Product["default"];
|
|
182
|
-
return this.apiClient.callApi(
|
|
182
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/products', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
/**
|
|
186
186
|
* Create Product within a Project
|
|
187
|
-
* @param {String} projectUID
|
|
187
|
+
* @param {String} projectUID
|
|
188
188
|
* @param {module:model/CreateProductRequest} createProductRequest Product to be created
|
|
189
189
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Product}
|
|
190
190
|
*/
|
|
@@ -213,11 +213,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
213
213
|
var queryParams = {};
|
|
214
214
|
var headerParams = {};
|
|
215
215
|
var formParams = {};
|
|
216
|
-
var authNames = [
|
|
217
|
-
var contentTypes = [
|
|
218
|
-
var accepts = [
|
|
216
|
+
var authNames = ['api_key'];
|
|
217
|
+
var contentTypes = ['application/json'];
|
|
218
|
+
var accepts = ['application/json'];
|
|
219
219
|
var returnType = _Project["default"];
|
|
220
|
-
return this.apiClient.callApi(
|
|
220
|
+
return this.apiClient.callApi('/v1/projects', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
/**
|
|
@@ -235,9 +235,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
235
235
|
|
|
236
236
|
/**
|
|
237
237
|
* Remove Device from Fleets
|
|
238
|
-
* @param {String} projectUID
|
|
239
|
-
* @param {String} deviceUID
|
|
240
|
-
* @param {module:model/DeleteDeviceFleetsRequest} deleteDeviceFleetsRequest The fleets to remove from the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
238
|
+
* @param {String} projectUID
|
|
239
|
+
* @param {String} deviceUID
|
|
240
|
+
* @param {module:model/DeleteDeviceFleetsRequest} deleteDeviceFleetsRequest The fleets to remove from the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
241
241
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectFleets200Response} and HTTP response
|
|
242
242
|
*/
|
|
243
243
|
}, {
|
|
@@ -257,24 +257,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
257
257
|
throw new _Error["default"]("Missing the required parameter 'deleteDeviceFleetsRequest' when calling deleteDeviceFleets");
|
|
258
258
|
}
|
|
259
259
|
var pathParams = {
|
|
260
|
-
projectUID: projectUID,
|
|
261
|
-
deviceUID: deviceUID
|
|
260
|
+
'projectUID': projectUID,
|
|
261
|
+
'deviceUID': deviceUID
|
|
262
262
|
};
|
|
263
263
|
var queryParams = {};
|
|
264
264
|
var headerParams = {};
|
|
265
265
|
var formParams = {};
|
|
266
|
-
var authNames = [
|
|
267
|
-
var contentTypes = [
|
|
268
|
-
var accepts = [
|
|
266
|
+
var authNames = ['api_key'];
|
|
267
|
+
var contentTypes = ['application/json'];
|
|
268
|
+
var accepts = ['application/json'];
|
|
269
269
|
var returnType = _GetProjectFleets200Response["default"];
|
|
270
|
-
return this.apiClient.callApi(
|
|
270
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/fleets', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
271
271
|
}
|
|
272
272
|
|
|
273
273
|
/**
|
|
274
274
|
* Remove Device from Fleets
|
|
275
|
-
* @param {String} projectUID
|
|
276
|
-
* @param {String} deviceUID
|
|
277
|
-
* @param {module:model/DeleteDeviceFleetsRequest} deleteDeviceFleetsRequest The fleets to remove from the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
275
|
+
* @param {String} projectUID
|
|
276
|
+
* @param {String} deviceUID
|
|
277
|
+
* @param {module:model/DeleteDeviceFleetsRequest} deleteDeviceFleetsRequest The fleets to remove from the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
278
278
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectFleets200Response}
|
|
279
279
|
*/
|
|
280
280
|
}, {
|
|
@@ -287,8 +287,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
287
287
|
|
|
288
288
|
/**
|
|
289
289
|
* Delete Fleet
|
|
290
|
-
* @param {String} projectUID
|
|
291
|
-
* @param {String} fleetUID
|
|
290
|
+
* @param {String} projectUID
|
|
291
|
+
* @param {String} fleetUID
|
|
292
292
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
293
293
|
*/
|
|
294
294
|
}, {
|
|
@@ -304,23 +304,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
304
304
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling deleteFleet");
|
|
305
305
|
}
|
|
306
306
|
var pathParams = {
|
|
307
|
-
projectUID: projectUID,
|
|
308
|
-
fleetUID: fleetUID
|
|
307
|
+
'projectUID': projectUID,
|
|
308
|
+
'fleetUID': fleetUID
|
|
309
309
|
};
|
|
310
310
|
var queryParams = {};
|
|
311
311
|
var headerParams = {};
|
|
312
312
|
var formParams = {};
|
|
313
|
-
var authNames = [
|
|
313
|
+
var authNames = ['api_key'];
|
|
314
314
|
var contentTypes = [];
|
|
315
|
-
var accepts = [
|
|
315
|
+
var accepts = ['application/json'];
|
|
316
316
|
var returnType = null;
|
|
317
|
-
return this.apiClient.callApi(
|
|
317
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/fleets/{fleetUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
318
318
|
}
|
|
319
319
|
|
|
320
320
|
/**
|
|
321
321
|
* Delete Fleet
|
|
322
|
-
* @param {String} projectUID
|
|
323
|
-
* @param {String} fleetUID
|
|
322
|
+
* @param {String} projectUID
|
|
323
|
+
* @param {String} fleetUID
|
|
324
324
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
325
325
|
*/
|
|
326
326
|
}, {
|
|
@@ -333,8 +333,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
333
333
|
|
|
334
334
|
/**
|
|
335
335
|
* Delete environment variables of a fleet
|
|
336
|
-
* @param {String} projectUID
|
|
337
|
-
* @param {String} fleetUID
|
|
336
|
+
* @param {String} projectUID
|
|
337
|
+
* @param {String} fleetUID
|
|
338
338
|
* @param {String} key The environment variable key to delete.
|
|
339
339
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
340
340
|
*/
|
|
@@ -355,24 +355,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
355
355
|
throw new _Error["default"]("Missing the required parameter 'key' when calling deleteFleetEnvironmentVariable");
|
|
356
356
|
}
|
|
357
357
|
var pathParams = {
|
|
358
|
-
projectUID: projectUID,
|
|
359
|
-
fleetUID: fleetUID,
|
|
360
|
-
key: key
|
|
358
|
+
'projectUID': projectUID,
|
|
359
|
+
'fleetUID': fleetUID,
|
|
360
|
+
'key': key
|
|
361
361
|
};
|
|
362
362
|
var queryParams = {};
|
|
363
363
|
var headerParams = {};
|
|
364
364
|
var formParams = {};
|
|
365
|
-
var authNames = [
|
|
365
|
+
var authNames = ['api_key'];
|
|
366
366
|
var contentTypes = [];
|
|
367
|
-
var accepts = [
|
|
367
|
+
var accepts = ['application/json'];
|
|
368
368
|
var returnType = _EnvironmentVariables["default"];
|
|
369
|
-
return this.apiClient.callApi(
|
|
369
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/fleets/{fleetUID}/environment_variables/{key}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
370
370
|
}
|
|
371
371
|
|
|
372
372
|
/**
|
|
373
373
|
* Delete environment variables of a fleet
|
|
374
|
-
* @param {String} projectUID
|
|
375
|
-
* @param {String} fleetUID
|
|
374
|
+
* @param {String} projectUID
|
|
375
|
+
* @param {String} fleetUID
|
|
376
376
|
* @param {String} key The environment variable key to delete.
|
|
377
377
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
378
378
|
*/
|
|
@@ -386,7 +386,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
386
386
|
|
|
387
387
|
/**
|
|
388
388
|
* Delete a Project by ProjectUID
|
|
389
|
-
* @param {String} projectUID
|
|
389
|
+
* @param {String} projectUID
|
|
390
390
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
391
391
|
*/
|
|
392
392
|
}, {
|
|
@@ -398,21 +398,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
398
398
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling deleteProject");
|
|
399
399
|
}
|
|
400
400
|
var pathParams = {
|
|
401
|
-
projectUID: projectUID
|
|
401
|
+
'projectUID': projectUID
|
|
402
402
|
};
|
|
403
403
|
var queryParams = {};
|
|
404
404
|
var headerParams = {};
|
|
405
405
|
var formParams = {};
|
|
406
|
-
var authNames = [
|
|
406
|
+
var authNames = ['api_key'];
|
|
407
407
|
var contentTypes = [];
|
|
408
|
-
var accepts = [
|
|
408
|
+
var accepts = ['application/json'];
|
|
409
409
|
var returnType = null;
|
|
410
|
-
return this.apiClient.callApi(
|
|
410
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
411
411
|
}
|
|
412
412
|
|
|
413
413
|
/**
|
|
414
414
|
* Delete a Project by ProjectUID
|
|
415
|
-
* @param {String} projectUID
|
|
415
|
+
* @param {String} projectUID
|
|
416
416
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
417
417
|
*/
|
|
418
418
|
}, {
|
|
@@ -425,7 +425,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
425
425
|
|
|
426
426
|
/**
|
|
427
427
|
* Delete an environment variable of a project by key
|
|
428
|
-
* @param {String} projectUID
|
|
428
|
+
* @param {String} projectUID
|
|
429
429
|
* @param {String} key The environment variable key to delete.
|
|
430
430
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
431
431
|
*/
|
|
@@ -442,22 +442,22 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
442
442
|
throw new _Error["default"]("Missing the required parameter 'key' when calling deleteProjectEnvironmentVariable");
|
|
443
443
|
}
|
|
444
444
|
var pathParams = {
|
|
445
|
-
projectUID: projectUID,
|
|
446
|
-
key: key
|
|
445
|
+
'projectUID': projectUID,
|
|
446
|
+
'key': key
|
|
447
447
|
};
|
|
448
448
|
var queryParams = {};
|
|
449
449
|
var headerParams = {};
|
|
450
450
|
var formParams = {};
|
|
451
|
-
var authNames = [
|
|
451
|
+
var authNames = ['api_key'];
|
|
452
452
|
var contentTypes = [];
|
|
453
|
-
var accepts = [
|
|
453
|
+
var accepts = ['application/json'];
|
|
454
454
|
var returnType = _EnvironmentVariables["default"];
|
|
455
|
-
return this.apiClient.callApi(
|
|
455
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/environment_variables/{key}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
456
456
|
}
|
|
457
457
|
|
|
458
458
|
/**
|
|
459
459
|
* Delete an environment variable of a project by key
|
|
460
|
-
* @param {String} projectUID
|
|
460
|
+
* @param {String} projectUID
|
|
461
461
|
* @param {String} key The environment variable key to delete.
|
|
462
462
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
463
463
|
*/
|
|
@@ -471,7 +471,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
471
471
|
|
|
472
472
|
/**
|
|
473
473
|
* Disable the project-level event JSONata transformation
|
|
474
|
-
* @param {String} projectUID
|
|
474
|
+
* @param {String} projectUID
|
|
475
475
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
476
476
|
*/
|
|
477
477
|
}, {
|
|
@@ -483,21 +483,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
483
483
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling disableGlobalTransformation");
|
|
484
484
|
}
|
|
485
485
|
var pathParams = {
|
|
486
|
-
projectUID: projectUID
|
|
486
|
+
'projectUID': projectUID
|
|
487
487
|
};
|
|
488
488
|
var queryParams = {};
|
|
489
489
|
var headerParams = {};
|
|
490
490
|
var formParams = {};
|
|
491
|
-
var authNames = [
|
|
491
|
+
var authNames = ['api_key'];
|
|
492
492
|
var contentTypes = [];
|
|
493
|
-
var accepts = [
|
|
493
|
+
var accepts = ['application/json'];
|
|
494
494
|
var returnType = null;
|
|
495
|
-
return this.apiClient.callApi(
|
|
495
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/global-transformation/disable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
496
496
|
}
|
|
497
497
|
|
|
498
498
|
/**
|
|
499
499
|
* Disable the project-level event JSONata transformation
|
|
500
|
-
* @param {String} projectUID
|
|
500
|
+
* @param {String} projectUID
|
|
501
501
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
502
502
|
*/
|
|
503
503
|
}, {
|
|
@@ -510,7 +510,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
510
510
|
|
|
511
511
|
/**
|
|
512
512
|
* Enable the project-level event JSONata transformation
|
|
513
|
-
* @param {String} projectUID
|
|
513
|
+
* @param {String} projectUID
|
|
514
514
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
515
515
|
*/
|
|
516
516
|
}, {
|
|
@@ -522,21 +522,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
522
522
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling enableGlobalTransformation");
|
|
523
523
|
}
|
|
524
524
|
var pathParams = {
|
|
525
|
-
projectUID: projectUID
|
|
525
|
+
'projectUID': projectUID
|
|
526
526
|
};
|
|
527
527
|
var queryParams = {};
|
|
528
528
|
var headerParams = {};
|
|
529
529
|
var formParams = {};
|
|
530
|
-
var authNames = [
|
|
530
|
+
var authNames = ['api_key'];
|
|
531
531
|
var contentTypes = [];
|
|
532
|
-
var accepts = [
|
|
532
|
+
var accepts = ['application/json'];
|
|
533
533
|
var returnType = null;
|
|
534
|
-
return this.apiClient.callApi(
|
|
534
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/global-transformation/enable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
535
535
|
}
|
|
536
536
|
|
|
537
537
|
/**
|
|
538
538
|
* Enable the project-level event JSONata transformation
|
|
539
|
-
* @param {String} projectUID
|
|
539
|
+
* @param {String} projectUID
|
|
540
540
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
541
541
|
*/
|
|
542
542
|
}, {
|
|
@@ -549,8 +549,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
549
549
|
|
|
550
550
|
/**
|
|
551
551
|
* Get Device Fleets
|
|
552
|
-
* @param {String} projectUID
|
|
553
|
-
* @param {String} deviceUID
|
|
552
|
+
* @param {String} projectUID
|
|
553
|
+
* @param {String} deviceUID
|
|
554
554
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectFleets200Response} and HTTP response
|
|
555
555
|
*/
|
|
556
556
|
}, {
|
|
@@ -566,23 +566,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
566
566
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceFleets");
|
|
567
567
|
}
|
|
568
568
|
var pathParams = {
|
|
569
|
-
projectUID: projectUID,
|
|
570
|
-
deviceUID: deviceUID
|
|
569
|
+
'projectUID': projectUID,
|
|
570
|
+
'deviceUID': deviceUID
|
|
571
571
|
};
|
|
572
572
|
var queryParams = {};
|
|
573
573
|
var headerParams = {};
|
|
574
574
|
var formParams = {};
|
|
575
|
-
var authNames = [
|
|
575
|
+
var authNames = ['api_key'];
|
|
576
576
|
var contentTypes = [];
|
|
577
|
-
var accepts = [
|
|
577
|
+
var accepts = ['application/json'];
|
|
578
578
|
var returnType = _GetProjectFleets200Response["default"];
|
|
579
|
-
return this.apiClient.callApi(
|
|
579
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/fleets', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
580
580
|
}
|
|
581
581
|
|
|
582
582
|
/**
|
|
583
583
|
* Get Device Fleets
|
|
584
|
-
* @param {String} projectUID
|
|
585
|
-
* @param {String} deviceUID
|
|
584
|
+
* @param {String} projectUID
|
|
585
|
+
* @param {String} deviceUID
|
|
586
586
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectFleets200Response}
|
|
587
587
|
*/
|
|
588
588
|
}, {
|
|
@@ -595,15 +595,15 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
595
595
|
|
|
596
596
|
/**
|
|
597
597
|
* Get Available Firmware Information
|
|
598
|
-
* @param {String} projectUID
|
|
598
|
+
* @param {String} projectUID
|
|
599
599
|
* @param {Object} opts Optional parameters
|
|
600
|
-
* @param {String} opts.product
|
|
601
|
-
* @param {String} opts.firmwareType
|
|
602
|
-
* @param {String} opts.version
|
|
603
|
-
* @param {String} opts.target
|
|
604
|
-
* @param {String} opts.filename
|
|
605
|
-
* @param {String} opts.md5
|
|
606
|
-
* @param {Boolean} opts.unpublished
|
|
600
|
+
* @param {String} opts.product
|
|
601
|
+
* @param {String} opts.firmwareType
|
|
602
|
+
* @param {String} opts.version
|
|
603
|
+
* @param {String} opts.target
|
|
604
|
+
* @param {String} opts.filename
|
|
605
|
+
* @param {String} opts.md5
|
|
606
|
+
* @param {Boolean} opts.unpublished
|
|
607
607
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/FirmwareInfo>} and HTTP response
|
|
608
608
|
*/
|
|
609
609
|
}, {
|
|
@@ -616,37 +616,37 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
616
616
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getFirmwareInfo");
|
|
617
617
|
}
|
|
618
618
|
var pathParams = {
|
|
619
|
-
projectUID: projectUID
|
|
619
|
+
'projectUID': projectUID
|
|
620
620
|
};
|
|
621
621
|
var queryParams = {
|
|
622
|
-
product: opts[
|
|
623
|
-
firmwareType: opts[
|
|
624
|
-
version: opts[
|
|
625
|
-
target: opts[
|
|
626
|
-
filename: opts[
|
|
627
|
-
md5: opts[
|
|
628
|
-
unpublished: opts[
|
|
622
|
+
'product': opts['product'],
|
|
623
|
+
'firmwareType': opts['firmwareType'],
|
|
624
|
+
'version': opts['version'],
|
|
625
|
+
'target': opts['target'],
|
|
626
|
+
'filename': opts['filename'],
|
|
627
|
+
'md5': opts['md5'],
|
|
628
|
+
'unpublished': opts['unpublished']
|
|
629
629
|
};
|
|
630
630
|
var headerParams = {};
|
|
631
631
|
var formParams = {};
|
|
632
|
-
var authNames = [
|
|
632
|
+
var authNames = ['api_key'];
|
|
633
633
|
var contentTypes = [];
|
|
634
|
-
var accepts = [
|
|
634
|
+
var accepts = ['application/json'];
|
|
635
635
|
var returnType = [_FirmwareInfo["default"]];
|
|
636
|
-
return this.apiClient.callApi(
|
|
636
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/firmware', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
637
637
|
}
|
|
638
638
|
|
|
639
639
|
/**
|
|
640
640
|
* Get Available Firmware Information
|
|
641
|
-
* @param {String} projectUID
|
|
641
|
+
* @param {String} projectUID
|
|
642
642
|
* @param {Object} opts Optional parameters
|
|
643
|
-
* @param {String} opts.product
|
|
644
|
-
* @param {String} opts.firmwareType
|
|
645
|
-
* @param {String} opts.version
|
|
646
|
-
* @param {String} opts.target
|
|
647
|
-
* @param {String} opts.filename
|
|
648
|
-
* @param {String} opts.md5
|
|
649
|
-
* @param {Boolean} opts.unpublished
|
|
643
|
+
* @param {String} opts.product
|
|
644
|
+
* @param {String} opts.firmwareType
|
|
645
|
+
* @param {String} opts.version
|
|
646
|
+
* @param {String} opts.target
|
|
647
|
+
* @param {String} opts.filename
|
|
648
|
+
* @param {String} opts.md5
|
|
649
|
+
* @param {Boolean} opts.unpublished
|
|
650
650
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/FirmwareInfo>}
|
|
651
651
|
*/
|
|
652
652
|
}, {
|
|
@@ -659,8 +659,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
659
659
|
|
|
660
660
|
/**
|
|
661
661
|
* Get environment variables of a fleet
|
|
662
|
-
* @param {String} projectUID
|
|
663
|
-
* @param {String} fleetUID
|
|
662
|
+
* @param {String} projectUID
|
|
663
|
+
* @param {String} fleetUID
|
|
664
664
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
665
665
|
*/
|
|
666
666
|
}, {
|
|
@@ -676,23 +676,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
676
676
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEnvironmentVariables");
|
|
677
677
|
}
|
|
678
678
|
var pathParams = {
|
|
679
|
-
projectUID: projectUID,
|
|
680
|
-
fleetUID: fleetUID
|
|
679
|
+
'projectUID': projectUID,
|
|
680
|
+
'fleetUID': fleetUID
|
|
681
681
|
};
|
|
682
682
|
var queryParams = {};
|
|
683
683
|
var headerParams = {};
|
|
684
684
|
var formParams = {};
|
|
685
|
-
var authNames = [
|
|
685
|
+
var authNames = ['api_key'];
|
|
686
686
|
var contentTypes = [];
|
|
687
|
-
var accepts = [
|
|
687
|
+
var accepts = ['application/json'];
|
|
688
688
|
var returnType = _EnvironmentVariables["default"];
|
|
689
|
-
return this.apiClient.callApi(
|
|
689
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/fleets/{fleetUID}/environment_variables', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
690
690
|
}
|
|
691
691
|
|
|
692
692
|
/**
|
|
693
693
|
* Get environment variables of a fleet
|
|
694
|
-
* @param {String} projectUID
|
|
695
|
-
* @param {String} fleetUID
|
|
694
|
+
* @param {String} projectUID
|
|
695
|
+
* @param {String} fleetUID
|
|
696
696
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
697
697
|
*/
|
|
698
698
|
}, {
|
|
@@ -705,7 +705,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
705
705
|
|
|
706
706
|
/**
|
|
707
707
|
* Get a Project by ProjectUID
|
|
708
|
-
* @param {String} projectUID
|
|
708
|
+
* @param {String} projectUID
|
|
709
709
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
710
710
|
*/
|
|
711
711
|
}, {
|
|
@@ -717,21 +717,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
717
717
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProject");
|
|
718
718
|
}
|
|
719
719
|
var pathParams = {
|
|
720
|
-
projectUID: projectUID
|
|
720
|
+
'projectUID': projectUID
|
|
721
721
|
};
|
|
722
722
|
var queryParams = {};
|
|
723
723
|
var headerParams = {};
|
|
724
724
|
var formParams = {};
|
|
725
|
-
var authNames = [
|
|
725
|
+
var authNames = ['api_key'];
|
|
726
726
|
var contentTypes = [];
|
|
727
|
-
var accepts = [
|
|
727
|
+
var accepts = ['application/json'];
|
|
728
728
|
var returnType = _Project["default"];
|
|
729
|
-
return this.apiClient.callApi(
|
|
729
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
730
730
|
}
|
|
731
731
|
|
|
732
732
|
/**
|
|
733
733
|
* Get a Project by ProjectUID
|
|
734
|
-
* @param {String} projectUID
|
|
734
|
+
* @param {String} projectUID
|
|
735
735
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
736
736
|
*/
|
|
737
737
|
}, {
|
|
@@ -744,7 +744,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
744
744
|
|
|
745
745
|
/**
|
|
746
746
|
* Get a Project by ProductUID
|
|
747
|
-
* @param {String} productUID
|
|
747
|
+
* @param {String} productUID
|
|
748
748
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
749
749
|
*/
|
|
750
750
|
}, {
|
|
@@ -756,21 +756,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
756
756
|
throw new _Error["default"]("Missing the required parameter 'productUID' when calling getProjectByProduct");
|
|
757
757
|
}
|
|
758
758
|
var pathParams = {
|
|
759
|
-
productUID: productUID
|
|
759
|
+
'productUID': productUID
|
|
760
760
|
};
|
|
761
761
|
var queryParams = {};
|
|
762
762
|
var headerParams = {};
|
|
763
763
|
var formParams = {};
|
|
764
|
-
var authNames = [
|
|
764
|
+
var authNames = ['api_key'];
|
|
765
765
|
var contentTypes = [];
|
|
766
|
-
var accepts = [
|
|
766
|
+
var accepts = ['application/json'];
|
|
767
767
|
var returnType = _Project["default"];
|
|
768
|
-
return this.apiClient.callApi(
|
|
768
|
+
return this.apiClient.callApi('/v1/products/{productUID}/project', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
769
769
|
}
|
|
770
770
|
|
|
771
771
|
/**
|
|
772
772
|
* Get a Project by ProductUID
|
|
773
|
-
* @param {String} productUID
|
|
773
|
+
* @param {String} productUID
|
|
774
774
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
775
775
|
*/
|
|
776
776
|
}, {
|
|
@@ -783,7 +783,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
783
783
|
|
|
784
784
|
/**
|
|
785
785
|
* Get environment variables of a project
|
|
786
|
-
* @param {String} projectUID
|
|
786
|
+
* @param {String} projectUID
|
|
787
787
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
788
788
|
*/
|
|
789
789
|
}, {
|
|
@@ -795,21 +795,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
795
795
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectEnvironmentVariables");
|
|
796
796
|
}
|
|
797
797
|
var pathParams = {
|
|
798
|
-
projectUID: projectUID
|
|
798
|
+
'projectUID': projectUID
|
|
799
799
|
};
|
|
800
800
|
var queryParams = {};
|
|
801
801
|
var headerParams = {};
|
|
802
802
|
var formParams = {};
|
|
803
|
-
var authNames = [
|
|
803
|
+
var authNames = ['api_key'];
|
|
804
804
|
var contentTypes = [];
|
|
805
|
-
var accepts = [
|
|
805
|
+
var accepts = ['application/json'];
|
|
806
806
|
var returnType = _EnvironmentVariables["default"];
|
|
807
|
-
return this.apiClient.callApi(
|
|
807
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/environment_variables', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
808
808
|
}
|
|
809
809
|
|
|
810
810
|
/**
|
|
811
811
|
* Get environment variables of a project
|
|
812
|
-
* @param {String} projectUID
|
|
812
|
+
* @param {String} projectUID
|
|
813
813
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
814
814
|
*/
|
|
815
815
|
}, {
|
|
@@ -822,7 +822,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
822
822
|
|
|
823
823
|
/**
|
|
824
824
|
* Get Project Fleets
|
|
825
|
-
* @param {String} projectUID
|
|
825
|
+
* @param {String} projectUID
|
|
826
826
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectFleets200Response} and HTTP response
|
|
827
827
|
*/
|
|
828
828
|
}, {
|
|
@@ -834,21 +834,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
834
834
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectFleets");
|
|
835
835
|
}
|
|
836
836
|
var pathParams = {
|
|
837
|
-
projectUID: projectUID
|
|
837
|
+
'projectUID': projectUID
|
|
838
838
|
};
|
|
839
839
|
var queryParams = {};
|
|
840
840
|
var headerParams = {};
|
|
841
841
|
var formParams = {};
|
|
842
|
-
var authNames = [
|
|
842
|
+
var authNames = ['api_key'];
|
|
843
843
|
var contentTypes = [];
|
|
844
|
-
var accepts = [
|
|
844
|
+
var accepts = ['application/json'];
|
|
845
845
|
var returnType = _GetProjectFleets200Response["default"];
|
|
846
|
-
return this.apiClient.callApi(
|
|
846
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/fleets', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
847
847
|
}
|
|
848
848
|
|
|
849
849
|
/**
|
|
850
850
|
* Get Project Fleets
|
|
851
|
-
* @param {String} projectUID
|
|
851
|
+
* @param {String} projectUID
|
|
852
852
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectFleets200Response}
|
|
853
853
|
*/
|
|
854
854
|
}, {
|
|
@@ -861,7 +861,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
861
861
|
|
|
862
862
|
/**
|
|
863
863
|
* Get Project Members
|
|
864
|
-
* @param {String} projectUID
|
|
864
|
+
* @param {String} projectUID
|
|
865
865
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectMembers200Response} and HTTP response
|
|
866
866
|
*/
|
|
867
867
|
}, {
|
|
@@ -873,21 +873,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
873
873
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectMembers");
|
|
874
874
|
}
|
|
875
875
|
var pathParams = {
|
|
876
|
-
projectUID: projectUID
|
|
876
|
+
'projectUID': projectUID
|
|
877
877
|
};
|
|
878
878
|
var queryParams = {};
|
|
879
879
|
var headerParams = {};
|
|
880
880
|
var formParams = {};
|
|
881
|
-
var authNames = [
|
|
881
|
+
var authNames = ['api_key'];
|
|
882
882
|
var contentTypes = [];
|
|
883
|
-
var accepts = [
|
|
883
|
+
var accepts = ['application/json'];
|
|
884
884
|
var returnType = _GetProjectMembers200Response["default"];
|
|
885
|
-
return this.apiClient.callApi(
|
|
885
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/members', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
886
886
|
}
|
|
887
887
|
|
|
888
888
|
/**
|
|
889
889
|
* Get Project Members
|
|
890
|
-
* @param {String} projectUID
|
|
890
|
+
* @param {String} projectUID
|
|
891
891
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectMembers200Response}
|
|
892
892
|
*/
|
|
893
893
|
}, {
|
|
@@ -900,11 +900,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
900
900
|
|
|
901
901
|
/**
|
|
902
902
|
* Get Project OTA Status
|
|
903
|
-
* @param {String} projectUID
|
|
903
|
+
* @param {String} projectUID
|
|
904
904
|
* @param {Object} opts Optional parameters
|
|
905
905
|
* @param {Array.<String>} opts.deviceUIDs An array of Device UIDs.
|
|
906
|
-
* @param {Array.<String>} opts.fleetUIDs
|
|
907
|
-
* @param {Array.<String>} opts.deviceTags
|
|
906
|
+
* @param {Array.<String>} opts.fleetUIDs
|
|
907
|
+
* @param {Array.<String>} opts.deviceTags
|
|
908
908
|
* @param {Number} opts.pageSize (default to 50)
|
|
909
909
|
* @param {Number} opts.pageNum (default to 1)
|
|
910
910
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/OTAStatusList>} and HTTP response
|
|
@@ -919,31 +919,31 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
919
919
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectOTAStatus");
|
|
920
920
|
}
|
|
921
921
|
var pathParams = {
|
|
922
|
-
projectUID: projectUID
|
|
922
|
+
'projectUID': projectUID
|
|
923
923
|
};
|
|
924
924
|
var queryParams = {
|
|
925
|
-
deviceUIDs: this.apiClient.buildCollectionParam(opts[
|
|
926
|
-
fleetUIDs: this.apiClient.buildCollectionParam(opts[
|
|
927
|
-
deviceTags: this.apiClient.buildCollectionParam(opts[
|
|
928
|
-
pageSize: opts[
|
|
929
|
-
pageNum: opts[
|
|
925
|
+
'deviceUIDs': this.apiClient.buildCollectionParam(opts['deviceUIDs'], 'multi'),
|
|
926
|
+
'fleetUIDs': this.apiClient.buildCollectionParam(opts['fleetUIDs'], 'multi'),
|
|
927
|
+
'deviceTags': this.apiClient.buildCollectionParam(opts['deviceTags'], 'multi'),
|
|
928
|
+
'pageSize': opts['pageSize'],
|
|
929
|
+
'pageNum': opts['pageNum']
|
|
930
930
|
};
|
|
931
931
|
var headerParams = {};
|
|
932
932
|
var formParams = {};
|
|
933
|
-
var authNames = [
|
|
933
|
+
var authNames = ['api_key'];
|
|
934
934
|
var contentTypes = [];
|
|
935
|
-
var accepts = [
|
|
935
|
+
var accepts = ['application/json'];
|
|
936
936
|
var returnType = [_OTAStatusList["default"]];
|
|
937
|
-
return this.apiClient.callApi(
|
|
937
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/ota/status', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
938
938
|
}
|
|
939
939
|
|
|
940
940
|
/**
|
|
941
941
|
* Get Project OTA Status
|
|
942
|
-
* @param {String} projectUID
|
|
942
|
+
* @param {String} projectUID
|
|
943
943
|
* @param {Object} opts Optional parameters
|
|
944
944
|
* @param {Array.<String>} opts.deviceUIDs An array of Device UIDs.
|
|
945
|
-
* @param {Array.<String>} opts.fleetUIDs
|
|
946
|
-
* @param {Array.<String>} opts.deviceTags
|
|
945
|
+
* @param {Array.<String>} opts.fleetUIDs
|
|
946
|
+
* @param {Array.<String>} opts.deviceTags
|
|
947
947
|
* @param {Number} opts.pageSize (default to 50)
|
|
948
948
|
* @param {Number} opts.pageNum (default to 1)
|
|
949
949
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/OTAStatusList>}
|
|
@@ -958,7 +958,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
958
958
|
|
|
959
959
|
/**
|
|
960
960
|
* Get Products within a Project
|
|
961
|
-
* @param {String} projectUID
|
|
961
|
+
* @param {String} projectUID
|
|
962
962
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectProducts200Response} and HTTP response
|
|
963
963
|
*/
|
|
964
964
|
}, {
|
|
@@ -970,21 +970,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
970
970
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectProducts");
|
|
971
971
|
}
|
|
972
972
|
var pathParams = {
|
|
973
|
-
projectUID: projectUID
|
|
973
|
+
'projectUID': projectUID
|
|
974
974
|
};
|
|
975
975
|
var queryParams = {};
|
|
976
976
|
var headerParams = {};
|
|
977
977
|
var formParams = {};
|
|
978
|
-
var authNames = [
|
|
978
|
+
var authNames = ['api_key'];
|
|
979
979
|
var contentTypes = [];
|
|
980
|
-
var accepts = [
|
|
980
|
+
var accepts = ['application/json'];
|
|
981
981
|
var returnType = _GetProjectProducts200Response["default"];
|
|
982
|
-
return this.apiClient.callApi(
|
|
982
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/products', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
983
983
|
}
|
|
984
984
|
|
|
985
985
|
/**
|
|
986
986
|
* Get Products within a Project
|
|
987
|
-
* @param {String} projectUID
|
|
987
|
+
* @param {String} projectUID
|
|
988
988
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectProducts200Response}
|
|
989
989
|
*/
|
|
990
990
|
}, {
|
|
@@ -1007,11 +1007,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1007
1007
|
var queryParams = {};
|
|
1008
1008
|
var headerParams = {};
|
|
1009
1009
|
var formParams = {};
|
|
1010
|
-
var authNames = [
|
|
1010
|
+
var authNames = ['api_key'];
|
|
1011
1011
|
var contentTypes = [];
|
|
1012
|
-
var accepts = [
|
|
1012
|
+
var accepts = ['application/json'];
|
|
1013
1013
|
var returnType = _GetProjects200Response["default"];
|
|
1014
|
-
return this.apiClient.callApi(
|
|
1014
|
+
return this.apiClient.callApi('/v1/projects', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1015
1015
|
}
|
|
1016
1016
|
|
|
1017
1017
|
/**
|
|
@@ -1028,9 +1028,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1028
1028
|
|
|
1029
1029
|
/**
|
|
1030
1030
|
* Add Device to Fleets
|
|
1031
|
-
* @param {String} projectUID
|
|
1032
|
-
* @param {String} deviceUID
|
|
1033
|
-
* @param {module:model/PutDeviceFleetsRequest} putDeviceFleetsRequest The fleets to add to the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
1031
|
+
* @param {String} projectUID
|
|
1032
|
+
* @param {String} deviceUID
|
|
1033
|
+
* @param {module:model/PutDeviceFleetsRequest} putDeviceFleetsRequest The fleets to add to the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
1034
1034
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectFleets200Response} and HTTP response
|
|
1035
1035
|
*/
|
|
1036
1036
|
}, {
|
|
@@ -1050,24 +1050,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1050
1050
|
throw new _Error["default"]("Missing the required parameter 'putDeviceFleetsRequest' when calling putDeviceFleets");
|
|
1051
1051
|
}
|
|
1052
1052
|
var pathParams = {
|
|
1053
|
-
projectUID: projectUID,
|
|
1054
|
-
deviceUID: deviceUID
|
|
1053
|
+
'projectUID': projectUID,
|
|
1054
|
+
'deviceUID': deviceUID
|
|
1055
1055
|
};
|
|
1056
1056
|
var queryParams = {};
|
|
1057
1057
|
var headerParams = {};
|
|
1058
1058
|
var formParams = {};
|
|
1059
|
-
var authNames = [
|
|
1060
|
-
var contentTypes = [
|
|
1061
|
-
var accepts = [
|
|
1059
|
+
var authNames = ['api_key'];
|
|
1060
|
+
var contentTypes = ['application/json'];
|
|
1061
|
+
var accepts = ['application/json'];
|
|
1062
1062
|
var returnType = _GetProjectFleets200Response["default"];
|
|
1063
|
-
return this.apiClient.callApi(
|
|
1063
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/fleets', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1064
1064
|
}
|
|
1065
1065
|
|
|
1066
1066
|
/**
|
|
1067
1067
|
* Add Device to Fleets
|
|
1068
|
-
* @param {String} projectUID
|
|
1069
|
-
* @param {String} deviceUID
|
|
1070
|
-
* @param {module:model/PutDeviceFleetsRequest} putDeviceFleetsRequest The fleets to add to the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
1068
|
+
* @param {String} projectUID
|
|
1069
|
+
* @param {String} deviceUID
|
|
1070
|
+
* @param {module:model/PutDeviceFleetsRequest} putDeviceFleetsRequest The fleets to add to the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
1071
1071
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectFleets200Response}
|
|
1072
1072
|
*/
|
|
1073
1073
|
}, {
|
|
@@ -1080,8 +1080,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1080
1080
|
|
|
1081
1081
|
/**
|
|
1082
1082
|
* Put environment variables of a fleet
|
|
1083
|
-
* @param {String} projectUID
|
|
1084
|
-
* @param {String} fleetUID
|
|
1083
|
+
* @param {String} projectUID
|
|
1084
|
+
* @param {String} fleetUID
|
|
1085
1085
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
1086
1086
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1087
1087
|
*/
|
|
@@ -1102,23 +1102,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1102
1102
|
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling putFleetEnvironmentVariables");
|
|
1103
1103
|
}
|
|
1104
1104
|
var pathParams = {
|
|
1105
|
-
projectUID: projectUID,
|
|
1106
|
-
fleetUID: fleetUID
|
|
1105
|
+
'projectUID': projectUID,
|
|
1106
|
+
'fleetUID': fleetUID
|
|
1107
1107
|
};
|
|
1108
1108
|
var queryParams = {};
|
|
1109
1109
|
var headerParams = {};
|
|
1110
1110
|
var formParams = {};
|
|
1111
|
-
var authNames = [
|
|
1112
|
-
var contentTypes = [
|
|
1113
|
-
var accepts = [
|
|
1111
|
+
var authNames = ['api_key'];
|
|
1112
|
+
var contentTypes = ['application/json'];
|
|
1113
|
+
var accepts = ['application/json'];
|
|
1114
1114
|
var returnType = _EnvironmentVariables["default"];
|
|
1115
|
-
return this.apiClient.callApi(
|
|
1115
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/fleets/{fleetUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1116
1116
|
}
|
|
1117
1117
|
|
|
1118
1118
|
/**
|
|
1119
1119
|
* Put environment variables of a fleet
|
|
1120
|
-
* @param {String} projectUID
|
|
1121
|
-
* @param {String} fleetUID
|
|
1120
|
+
* @param {String} projectUID
|
|
1121
|
+
* @param {String} fleetUID
|
|
1122
1122
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
1123
1123
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1124
1124
|
*/
|
|
@@ -1132,38 +1132,38 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1132
1132
|
|
|
1133
1133
|
/**
|
|
1134
1134
|
* Put environment variables of a project
|
|
1135
|
-
* @param {String} projectUID
|
|
1135
|
+
* @param {String} projectUID
|
|
1136
1136
|
* @param {Object} opts Optional parameters
|
|
1137
|
-
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1137
|
+
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1138
1138
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1139
1139
|
*/
|
|
1140
1140
|
}, {
|
|
1141
1141
|
key: "putProjectEnvironmentVariablesWithHttpInfo",
|
|
1142
1142
|
value: function putProjectEnvironmentVariablesWithHttpInfo(projectUID, opts) {
|
|
1143
1143
|
opts = opts || {};
|
|
1144
|
-
var postBody = opts[
|
|
1144
|
+
var postBody = opts['environmentVariables'];
|
|
1145
1145
|
// verify the required parameter 'projectUID' is set
|
|
1146
1146
|
if (projectUID === undefined || projectUID === null) {
|
|
1147
1147
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling putProjectEnvironmentVariables");
|
|
1148
1148
|
}
|
|
1149
1149
|
var pathParams = {
|
|
1150
|
-
projectUID: projectUID
|
|
1150
|
+
'projectUID': projectUID
|
|
1151
1151
|
};
|
|
1152
1152
|
var queryParams = {};
|
|
1153
1153
|
var headerParams = {};
|
|
1154
1154
|
var formParams = {};
|
|
1155
|
-
var authNames = [
|
|
1156
|
-
var contentTypes = [
|
|
1157
|
-
var accepts = [
|
|
1155
|
+
var authNames = ['api_key'];
|
|
1156
|
+
var contentTypes = ['application/json'];
|
|
1157
|
+
var accepts = ['application/json'];
|
|
1158
1158
|
var returnType = _EnvironmentVariables["default"];
|
|
1159
|
-
return this.apiClient.callApi(
|
|
1159
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1160
1160
|
}
|
|
1161
1161
|
|
|
1162
1162
|
/**
|
|
1163
1163
|
* Put environment variables of a project
|
|
1164
|
-
* @param {String} projectUID
|
|
1164
|
+
* @param {String} projectUID
|
|
1165
1165
|
* @param {Object} opts Optional parameters
|
|
1166
|
-
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1166
|
+
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1167
1167
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1168
1168
|
*/
|
|
1169
1169
|
}, {
|
|
@@ -1176,7 +1176,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1176
1176
|
|
|
1177
1177
|
/**
|
|
1178
1178
|
* Set the project-level event JSONata transformation
|
|
1179
|
-
* @param {String} projectUID
|
|
1179
|
+
* @param {String} projectUID
|
|
1180
1180
|
* @param {Object.<String, Object>} body JSONata expression which will be applied to each event before it is persisted and routed
|
|
1181
1181
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1182
1182
|
*/
|
|
@@ -1193,21 +1193,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1193
1193
|
throw new _Error["default"]("Missing the required parameter 'body' when calling setGlobalTransformation");
|
|
1194
1194
|
}
|
|
1195
1195
|
var pathParams = {
|
|
1196
|
-
projectUID: projectUID
|
|
1196
|
+
'projectUID': projectUID
|
|
1197
1197
|
};
|
|
1198
1198
|
var queryParams = {};
|
|
1199
1199
|
var headerParams = {};
|
|
1200
1200
|
var formParams = {};
|
|
1201
|
-
var authNames = [
|
|
1202
|
-
var contentTypes = [
|
|
1203
|
-
var accepts = [
|
|
1201
|
+
var authNames = ['api_key'];
|
|
1202
|
+
var contentTypes = ['application/json'];
|
|
1203
|
+
var accepts = ['application/json'];
|
|
1204
1204
|
var returnType = null;
|
|
1205
|
-
return this.apiClient.callApi(
|
|
1205
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/global-transformation', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1206
1206
|
}
|
|
1207
1207
|
|
|
1208
1208
|
/**
|
|
1209
1209
|
* Set the project-level event JSONata transformation
|
|
1210
|
-
* @param {String} projectUID
|
|
1210
|
+
* @param {String} projectUID
|
|
1211
1211
|
* @param {Object.<String, Object>} body JSONata expression which will be applied to each event before it is persisted and routed
|
|
1212
1212
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1213
1213
|
*/
|
|
@@ -1221,8 +1221,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1221
1221
|
|
|
1222
1222
|
/**
|
|
1223
1223
|
* Update Fleet
|
|
1224
|
-
* @param {String} projectUID
|
|
1225
|
-
* @param {String} fleetUID
|
|
1224
|
+
* @param {String} projectUID
|
|
1225
|
+
* @param {String} fleetUID
|
|
1226
1226
|
* @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
|
|
1227
1227
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
1228
1228
|
*/
|
|
@@ -1243,23 +1243,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1243
1243
|
throw new _Error["default"]("Missing the required parameter 'updateFleetRequest' when calling updateFleet");
|
|
1244
1244
|
}
|
|
1245
1245
|
var pathParams = {
|
|
1246
|
-
projectUID: projectUID,
|
|
1247
|
-
fleetUID: fleetUID
|
|
1246
|
+
'projectUID': projectUID,
|
|
1247
|
+
'fleetUID': fleetUID
|
|
1248
1248
|
};
|
|
1249
1249
|
var queryParams = {};
|
|
1250
1250
|
var headerParams = {};
|
|
1251
1251
|
var formParams = {};
|
|
1252
|
-
var authNames = [
|
|
1253
|
-
var contentTypes = [
|
|
1254
|
-
var accepts = [
|
|
1252
|
+
var authNames = ['api_key'];
|
|
1253
|
+
var contentTypes = ['application/json'];
|
|
1254
|
+
var accepts = ['application/json'];
|
|
1255
1255
|
var returnType = _Fleet["default"];
|
|
1256
|
-
return this.apiClient.callApi(
|
|
1256
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/fleets/{fleetUID}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1257
1257
|
}
|
|
1258
1258
|
|
|
1259
1259
|
/**
|
|
1260
1260
|
* Update Fleet
|
|
1261
|
-
* @param {String} projectUID
|
|
1262
|
-
* @param {String} fleetUID
|
|
1261
|
+
* @param {String} projectUID
|
|
1262
|
+
* @param {String} fleetUID
|
|
1263
1263
|
* @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
|
|
1264
1264
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
1265
1265
|
*/
|
|
@@ -1273,7 +1273,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1273
1273
|
|
|
1274
1274
|
/**
|
|
1275
1275
|
* Update Project Firmware
|
|
1276
|
-
* @param {String} projectUID
|
|
1276
|
+
* @param {String} projectUID
|
|
1277
1277
|
* @param {module:model/OTAUpdateRequest} oTAUpdateRequest Body or payload of firmware update
|
|
1278
1278
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/OTAUpdateStatus>} and HTTP response
|
|
1279
1279
|
*/
|
|
@@ -1290,21 +1290,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1290
1290
|
throw new _Error["default"]("Missing the required parameter 'oTAUpdateRequest' when calling updateProjectFirmware");
|
|
1291
1291
|
}
|
|
1292
1292
|
var pathParams = {
|
|
1293
|
-
projectUID: projectUID
|
|
1293
|
+
'projectUID': projectUID
|
|
1294
1294
|
};
|
|
1295
1295
|
var queryParams = {};
|
|
1296
1296
|
var headerParams = {};
|
|
1297
1297
|
var formParams = {};
|
|
1298
|
-
var authNames = [
|
|
1299
|
-
var contentTypes = [
|
|
1300
|
-
var accepts = [
|
|
1298
|
+
var authNames = ['api_key'];
|
|
1299
|
+
var contentTypes = ['application/json'];
|
|
1300
|
+
var accepts = ['application/json'];
|
|
1301
1301
|
var returnType = [_OTAUpdateStatus["default"]];
|
|
1302
|
-
return this.apiClient.callApi(
|
|
1302
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/ota/update', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1303
1303
|
}
|
|
1304
1304
|
|
|
1305
1305
|
/**
|
|
1306
1306
|
* Update Project Firmware
|
|
1307
|
-
* @param {String} projectUID
|
|
1307
|
+
* @param {String} projectUID
|
|
1308
1308
|
* @param {module:model/OTAUpdateRequest} oTAUpdateRequest Body or payload of firmware update
|
|
1309
1309
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/OTAUpdateStatus>}
|
|
1310
1310
|
*/
|