@blues-inc/notehub-js 1.0.27 → 1.0.28-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 +199 -190
- package/dist/ApiClient.js +156 -156
- package/dist/api/AlertApi.js +22 -22
- package/dist/api/AuthorizationApi.js +16 -16
- package/dist/api/BillingAccountApi.js +14 -14
- package/dist/api/DeviceApi.js +351 -351
- package/dist/api/EventApi.js +118 -118
- package/dist/api/MonitorApi.js +52 -52
- package/dist/api/ProjectApi.js +335 -335
- package/dist/api/RouteApi.js +74 -74
- package/dist/model/Alert.js +76 -74
- package/dist/model/AlertDataInner.js +35 -35
- package/dist/model/AlertNotificationsInner.js +18 -18
- package/dist/model/Aws.js +65 -65
- package/dist/model/Azure.js +43 -43
- package/dist/model/BillingAccount.js +21 -21
- package/dist/model/BillingAccountRole.js +9 -9
- package/dist/model/Body.js +5 -5
- package/dist/model/CloneProjectRequest.js +20 -20
- package/dist/model/Contact.js +22 -22
- package/dist/model/CreateFleetRequest.js +12 -12
- package/dist/model/CreateMonitor.js +126 -125
- package/dist/model/CreateProductRequest.js +22 -22
- package/dist/model/CreateProjectRequest.js +16 -16
- package/dist/model/CurrentFirmware.js +12 -12
- package/dist/model/DFUEnv.js +12 -12
- package/dist/model/DFUState.js +65 -65
- package/dist/model/DeleteDeviceFleetsRequest.js +8 -8
- package/dist/model/Device.js +108 -84
- package/dist/model/DeviceDfuHistory.js +20 -19
- package/dist/model/DeviceDfuHistoryPage.js +13 -12
- package/dist/model/DeviceDfuStateMachine.js +25 -24
- package/dist/model/DeviceDfuStateMachineNode.js +22 -22
- package/dist/model/DeviceDfuStatus.js +20 -20
- package/dist/model/DeviceDfuStatusCurrent.js +32 -32
- package/dist/model/DeviceDfuStatusPage.js +13 -12
- package/dist/model/DeviceSession.js +182 -182
- package/dist/model/DeviceTowerInfo.js +14 -14
- package/dist/model/DeviceUsage.js +32 -32
- package/dist/model/DfuActionRequest.js +7 -7
- package/dist/model/EmailNotification.js +7 -7
- package/dist/model/EnvironmentVariables.js +8 -8
- package/dist/model/Error.js +31 -31
- package/dist/model/Event.js +275 -223
- package/dist/model/Firmware.js +49 -49
- package/dist/model/FirmwareInfo.js +60 -60
- package/dist/model/Fleet.js +34 -23
- package/dist/model/GetAlerts200Response.js +15 -14
- package/dist/model/GetBillingAccounts200Response.js +10 -9
- package/dist/model/GetDeviceEnvironmentVariables200Response.js +23 -12
- package/dist/model/GetDeviceHealthLog200Response.js +12 -11
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
- package/dist/model/GetDeviceLatest200Response.js +10 -9
- package/dist/model/GetDevicePublicKey200Response.js +16 -16
- package/dist/model/GetDeviceSessions200Response.js +17 -16
- package/dist/model/GetProjectDevicePublicKeys200Response.js +17 -16
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
- package/dist/model/GetProjectDevices200Response.js +17 -16
- package/dist/model/GetProjectEvents200Response.js +21 -20
- package/dist/model/GetProjectEventsByCursor200Response.js +24 -23
- package/dist/model/GetProjectFleets200Response.js +12 -11
- package/dist/model/GetProjectMembers200Response.js +12 -11
- package/dist/model/GetProjectProducts200Response.js +10 -9
- package/dist/model/GetProjects200Response.js +10 -9
- package/dist/model/GetRouteLogsByRoute200ResponseInner.js +35 -35
- package/dist/model/Google.js +33 -33
- package/dist/model/HandleNoteChanges200Response.js +11 -11
- package/dist/model/HandleNoteGet200Response.js +13 -13
- package/dist/model/HandleNoteSignal200Response.js +5 -5
- package/dist/model/HandleNotefileChanges200Response.js +11 -11
- package/dist/model/HandleNotefileChangesPending200Response.js +14 -14
- package/dist/model/HandleNotefileDeleteRequest.js +7 -7
- package/dist/model/Http.js +35 -35
- package/dist/model/HttpFilter.js +19 -19
- package/dist/model/HttpTransform.js +20 -20
- package/dist/model/Location.js +40 -40
- package/dist/model/Login200Response.js +7 -7
- package/dist/model/LoginRequest.js +12 -12
- package/dist/model/Monitor.js +100 -99
- package/dist/model/MonitorAlertRoutesInner.js +9 -10
- package/dist/model/Mqtt.js +66 -66
- package/dist/model/Note.js +10 -10
- package/dist/model/NotehubRoute.js +36 -36
- package/dist/model/NotehubRouteSchema.js +45 -46
- package/dist/model/PostProvisionProjectDeviceRequest.js +18 -18
- package/dist/model/Product.js +26 -26
- package/dist/model/Project.js +34 -34
- package/dist/model/ProjectMember.js +22 -22
- package/dist/model/Proxy.js +24 -24
- package/dist/model/PutDeviceFleetsRequest.js +8 -8
- package/dist/model/Radresponder.js +25 -25
- package/dist/model/Role.js +9 -9
- package/dist/model/Slack.js +53 -53
- package/dist/model/SlackBearerNotification.js +25 -25
- package/dist/model/SlackWebHookNotification.js +20 -20
- package/dist/model/Snowflake.js +45 -45
- package/dist/model/SnowflakeTransform.js +12 -12
- package/dist/model/Thingworx.js +33 -33
- package/dist/model/TowerLocation.js +52 -52
- package/dist/model/Twilio.js +43 -43
- package/dist/model/UpdateFleetRequest.js +22 -22
- package/dist/model/UploadMetadata.js +59 -59
- package/dist/model/UserDbRoute.js +25 -25
- package/dist/model/UserDfuStateMachine.js +20 -20
- package/dist/model/UserDfuStateMachineStatus.js +20 -20
- package/dist/model/UserFirmwareInfo.js +12 -12
- package/package.json +3 -3
package/dist/api/ProjectApi.js
CHANGED
|
@@ -35,7 +35,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
35
35
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
36
36
|
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); } /**
|
|
37
37
|
* Notehub API
|
|
38
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
38
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
39
39
|
*
|
|
40
40
|
* The version of the OpenAPI document: 1.2.0
|
|
41
41
|
* Contact: engineering@blues.io
|
|
@@ -46,18 +46,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
46
46
|
*
|
|
47
47
|
*/
|
|
48
48
|
/**
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
* Project service.
|
|
50
|
+
* @module api/ProjectApi
|
|
51
|
+
* @version 1.0.28-beta.1
|
|
52
|
+
*/
|
|
53
53
|
var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
54
54
|
/**
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
55
|
+
* Constructs a new ProjectApi.
|
|
56
|
+
* @alias module:api/ProjectApi
|
|
57
|
+
* @class
|
|
58
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
59
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
60
|
+
*/
|
|
61
61
|
function ProjectApi(apiClient) {
|
|
62
62
|
_classCallCheck(this, ProjectApi);
|
|
63
63
|
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
@@ -82,16 +82,16 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
82
82
|
throw new _Error["default"]("Missing the required parameter 'cloneProjectRequest' when calling cloneProject");
|
|
83
83
|
}
|
|
84
84
|
var pathParams = {
|
|
85
|
-
projectUID: projectUID
|
|
85
|
+
'projectUID': projectUID
|
|
86
86
|
};
|
|
87
87
|
var queryParams = {};
|
|
88
88
|
var headerParams = {};
|
|
89
89
|
var formParams = {};
|
|
90
|
-
var authNames = [
|
|
91
|
-
var contentTypes = [
|
|
92
|
-
var accepts = [
|
|
90
|
+
var authNames = ['api_key'];
|
|
91
|
+
var contentTypes = ['application/json'];
|
|
92
|
+
var accepts = ['application/json'];
|
|
93
93
|
var returnType = _Project["default"];
|
|
94
|
-
return this.apiClient.callApi(
|
|
94
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/clone', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
/**
|
|
@@ -110,7 +110,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
110
110
|
|
|
111
111
|
/**
|
|
112
112
|
* Create Fleet
|
|
113
|
-
* @param {String} projectUID
|
|
113
|
+
* @param {String} projectUID
|
|
114
114
|
* @param {module:model/CreateFleetRequest} createFleetRequest Fleet to be added
|
|
115
115
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
116
116
|
*/
|
|
@@ -127,21 +127,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
127
127
|
throw new _Error["default"]("Missing the required parameter 'createFleetRequest' when calling createFleet");
|
|
128
128
|
}
|
|
129
129
|
var pathParams = {
|
|
130
|
-
projectUID: projectUID
|
|
130
|
+
'projectUID': projectUID
|
|
131
131
|
};
|
|
132
132
|
var queryParams = {};
|
|
133
133
|
var headerParams = {};
|
|
134
134
|
var formParams = {};
|
|
135
|
-
var authNames = [
|
|
136
|
-
var contentTypes = [
|
|
137
|
-
var accepts = [
|
|
135
|
+
var authNames = ['api_key'];
|
|
136
|
+
var contentTypes = ['application/json'];
|
|
137
|
+
var accepts = ['application/json'];
|
|
138
138
|
var returnType = _Fleet["default"];
|
|
139
|
-
return this.apiClient.callApi(
|
|
139
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/fleets', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
/**
|
|
143
143
|
* Create Fleet
|
|
144
|
-
* @param {String} projectUID
|
|
144
|
+
* @param {String} projectUID
|
|
145
145
|
* @param {module:model/CreateFleetRequest} createFleetRequest Fleet to be added
|
|
146
146
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
147
147
|
*/
|
|
@@ -155,7 +155,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
155
155
|
|
|
156
156
|
/**
|
|
157
157
|
* Create Product within a Project
|
|
158
|
-
* @param {String} projectUID
|
|
158
|
+
* @param {String} projectUID
|
|
159
159
|
* @param {module:model/CreateProductRequest} createProductRequest Product to be created
|
|
160
160
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Product} and HTTP response
|
|
161
161
|
*/
|
|
@@ -172,21 +172,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
172
172
|
throw new _Error["default"]("Missing the required parameter 'createProductRequest' when calling createProduct");
|
|
173
173
|
}
|
|
174
174
|
var pathParams = {
|
|
175
|
-
projectUID: projectUID
|
|
175
|
+
'projectUID': projectUID
|
|
176
176
|
};
|
|
177
177
|
var queryParams = {};
|
|
178
178
|
var headerParams = {};
|
|
179
179
|
var formParams = {};
|
|
180
|
-
var authNames = [
|
|
181
|
-
var contentTypes = [
|
|
182
|
-
var accepts = [
|
|
180
|
+
var authNames = ['api_key'];
|
|
181
|
+
var contentTypes = ['application/json'];
|
|
182
|
+
var accepts = ['application/json'];
|
|
183
183
|
var returnType = _Product["default"];
|
|
184
|
-
return this.apiClient.callApi(
|
|
184
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/products', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
/**
|
|
188
188
|
* Create Product within a Project
|
|
189
|
-
* @param {String} projectUID
|
|
189
|
+
* @param {String} projectUID
|
|
190
190
|
* @param {module:model/CreateProductRequest} createProductRequest Product to be created
|
|
191
191
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Product}
|
|
192
192
|
*/
|
|
@@ -215,11 +215,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
215
215
|
var queryParams = {};
|
|
216
216
|
var headerParams = {};
|
|
217
217
|
var formParams = {};
|
|
218
|
-
var authNames = [
|
|
219
|
-
var contentTypes = [
|
|
220
|
-
var accepts = [
|
|
218
|
+
var authNames = ['api_key'];
|
|
219
|
+
var contentTypes = ['application/json'];
|
|
220
|
+
var accepts = ['application/json'];
|
|
221
221
|
var returnType = _Project["default"];
|
|
222
|
-
return this.apiClient.callApi(
|
|
222
|
+
return this.apiClient.callApi('/v1/projects', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
223
223
|
}
|
|
224
224
|
|
|
225
225
|
/**
|
|
@@ -237,9 +237,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
237
237
|
|
|
238
238
|
/**
|
|
239
239
|
* Remove Device from Fleets
|
|
240
|
-
* @param {String} projectUID
|
|
241
|
-
* @param {String} deviceUID
|
|
242
|
-
* @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.
|
|
240
|
+
* @param {String} projectUID
|
|
241
|
+
* @param {String} deviceUID
|
|
242
|
+
* @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.
|
|
243
243
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectFleets200Response} and HTTP response
|
|
244
244
|
*/
|
|
245
245
|
}, {
|
|
@@ -259,24 +259,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
259
259
|
throw new _Error["default"]("Missing the required parameter 'deleteDeviceFleetsRequest' when calling deleteDeviceFleets");
|
|
260
260
|
}
|
|
261
261
|
var pathParams = {
|
|
262
|
-
projectUID: projectUID,
|
|
263
|
-
deviceUID: deviceUID
|
|
262
|
+
'projectUID': projectUID,
|
|
263
|
+
'deviceUID': deviceUID
|
|
264
264
|
};
|
|
265
265
|
var queryParams = {};
|
|
266
266
|
var headerParams = {};
|
|
267
267
|
var formParams = {};
|
|
268
|
-
var authNames = [
|
|
269
|
-
var contentTypes = [
|
|
270
|
-
var accepts = [
|
|
268
|
+
var authNames = ['api_key'];
|
|
269
|
+
var contentTypes = ['application/json'];
|
|
270
|
+
var accepts = ['application/json'];
|
|
271
271
|
var returnType = _GetProjectFleets200Response["default"];
|
|
272
|
-
return this.apiClient.callApi(
|
|
272
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/fleets', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
273
273
|
}
|
|
274
274
|
|
|
275
275
|
/**
|
|
276
276
|
* Remove Device from Fleets
|
|
277
|
-
* @param {String} projectUID
|
|
278
|
-
* @param {String} deviceUID
|
|
279
|
-
* @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.
|
|
277
|
+
* @param {String} projectUID
|
|
278
|
+
* @param {String} deviceUID
|
|
279
|
+
* @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.
|
|
280
280
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectFleets200Response}
|
|
281
281
|
*/
|
|
282
282
|
}, {
|
|
@@ -289,8 +289,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
289
289
|
|
|
290
290
|
/**
|
|
291
291
|
* Delete Fleet
|
|
292
|
-
* @param {String} projectUID
|
|
293
|
-
* @param {String} fleetUID
|
|
292
|
+
* @param {String} projectUID
|
|
293
|
+
* @param {String} fleetUID
|
|
294
294
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
295
295
|
*/
|
|
296
296
|
}, {
|
|
@@ -306,23 +306,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
306
306
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling deleteFleet");
|
|
307
307
|
}
|
|
308
308
|
var pathParams = {
|
|
309
|
-
projectUID: projectUID,
|
|
310
|
-
fleetUID: fleetUID
|
|
309
|
+
'projectUID': projectUID,
|
|
310
|
+
'fleetUID': fleetUID
|
|
311
311
|
};
|
|
312
312
|
var queryParams = {};
|
|
313
313
|
var headerParams = {};
|
|
314
314
|
var formParams = {};
|
|
315
|
-
var authNames = [
|
|
315
|
+
var authNames = ['api_key'];
|
|
316
316
|
var contentTypes = [];
|
|
317
|
-
var accepts = [
|
|
317
|
+
var accepts = ['application/json'];
|
|
318
318
|
var returnType = null;
|
|
319
|
-
return this.apiClient.callApi(
|
|
319
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/fleets/{fleetUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
320
320
|
}
|
|
321
321
|
|
|
322
322
|
/**
|
|
323
323
|
* Delete Fleet
|
|
324
|
-
* @param {String} projectUID
|
|
325
|
-
* @param {String} fleetUID
|
|
324
|
+
* @param {String} projectUID
|
|
325
|
+
* @param {String} fleetUID
|
|
326
326
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
327
327
|
*/
|
|
328
328
|
}, {
|
|
@@ -335,8 +335,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
335
335
|
|
|
336
336
|
/**
|
|
337
337
|
* Delete environment variables of a fleet
|
|
338
|
-
* @param {String} projectUID
|
|
339
|
-
* @param {String} fleetUID
|
|
338
|
+
* @param {String} projectUID
|
|
339
|
+
* @param {String} fleetUID
|
|
340
340
|
* @param {String} key The environment variable key to delete.
|
|
341
341
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
342
342
|
*/
|
|
@@ -357,24 +357,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
357
357
|
throw new _Error["default"]("Missing the required parameter 'key' when calling deleteFleetEnvironmentVariable");
|
|
358
358
|
}
|
|
359
359
|
var pathParams = {
|
|
360
|
-
projectUID: projectUID,
|
|
361
|
-
fleetUID: fleetUID,
|
|
362
|
-
key: key
|
|
360
|
+
'projectUID': projectUID,
|
|
361
|
+
'fleetUID': fleetUID,
|
|
362
|
+
'key': key
|
|
363
363
|
};
|
|
364
364
|
var queryParams = {};
|
|
365
365
|
var headerParams = {};
|
|
366
366
|
var formParams = {};
|
|
367
|
-
var authNames = [
|
|
367
|
+
var authNames = ['api_key'];
|
|
368
368
|
var contentTypes = [];
|
|
369
|
-
var accepts = [
|
|
369
|
+
var accepts = ['application/json'];
|
|
370
370
|
var returnType = _EnvironmentVariables["default"];
|
|
371
|
-
return this.apiClient.callApi(
|
|
371
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/fleets/{fleetUID}/environment_variables/{key}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
372
372
|
}
|
|
373
373
|
|
|
374
374
|
/**
|
|
375
375
|
* Delete environment variables of a fleet
|
|
376
|
-
* @param {String} projectUID
|
|
377
|
-
* @param {String} fleetUID
|
|
376
|
+
* @param {String} projectUID
|
|
377
|
+
* @param {String} fleetUID
|
|
378
378
|
* @param {String} key The environment variable key to delete.
|
|
379
379
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
380
380
|
*/
|
|
@@ -388,7 +388,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
388
388
|
|
|
389
389
|
/**
|
|
390
390
|
* Delete a Project by ProjectUID
|
|
391
|
-
* @param {String} projectUID
|
|
391
|
+
* @param {String} projectUID
|
|
392
392
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
393
393
|
*/
|
|
394
394
|
}, {
|
|
@@ -400,21 +400,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
400
400
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling deleteProject");
|
|
401
401
|
}
|
|
402
402
|
var pathParams = {
|
|
403
|
-
projectUID: projectUID
|
|
403
|
+
'projectUID': projectUID
|
|
404
404
|
};
|
|
405
405
|
var queryParams = {};
|
|
406
406
|
var headerParams = {};
|
|
407
407
|
var formParams = {};
|
|
408
|
-
var authNames = [
|
|
408
|
+
var authNames = ['api_key'];
|
|
409
409
|
var contentTypes = [];
|
|
410
|
-
var accepts = [
|
|
410
|
+
var accepts = ['application/json'];
|
|
411
411
|
var returnType = null;
|
|
412
|
-
return this.apiClient.callApi(
|
|
412
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
413
413
|
}
|
|
414
414
|
|
|
415
415
|
/**
|
|
416
416
|
* Delete a Project by ProjectUID
|
|
417
|
-
* @param {String} projectUID
|
|
417
|
+
* @param {String} projectUID
|
|
418
418
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
419
419
|
*/
|
|
420
420
|
}, {
|
|
@@ -427,7 +427,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
427
427
|
|
|
428
428
|
/**
|
|
429
429
|
* Delete an environment variable of a project by key
|
|
430
|
-
* @param {String} projectUID
|
|
430
|
+
* @param {String} projectUID
|
|
431
431
|
* @param {String} key The environment variable key to delete.
|
|
432
432
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
433
433
|
*/
|
|
@@ -444,22 +444,22 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
444
444
|
throw new _Error["default"]("Missing the required parameter 'key' when calling deleteProjectEnvironmentVariable");
|
|
445
445
|
}
|
|
446
446
|
var pathParams = {
|
|
447
|
-
projectUID: projectUID,
|
|
448
|
-
key: key
|
|
447
|
+
'projectUID': projectUID,
|
|
448
|
+
'key': key
|
|
449
449
|
};
|
|
450
450
|
var queryParams = {};
|
|
451
451
|
var headerParams = {};
|
|
452
452
|
var formParams = {};
|
|
453
|
-
var authNames = [
|
|
453
|
+
var authNames = ['api_key'];
|
|
454
454
|
var contentTypes = [];
|
|
455
|
-
var accepts = [
|
|
455
|
+
var accepts = ['application/json'];
|
|
456
456
|
var returnType = _EnvironmentVariables["default"];
|
|
457
|
-
return this.apiClient.callApi(
|
|
457
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/environment_variables/{key}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
458
458
|
}
|
|
459
459
|
|
|
460
460
|
/**
|
|
461
461
|
* Delete an environment variable of a project by key
|
|
462
|
-
* @param {String} projectUID
|
|
462
|
+
* @param {String} projectUID
|
|
463
463
|
* @param {String} key The environment variable key to delete.
|
|
464
464
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
465
465
|
*/
|
|
@@ -473,18 +473,18 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
473
473
|
|
|
474
474
|
/**
|
|
475
475
|
* Update/cancel host or notecard firmware updates
|
|
476
|
-
* @param {String} projectUID
|
|
477
|
-
* @param {module:model/String} firmwareType
|
|
478
|
-
* @param {module:model/String} action
|
|
476
|
+
* @param {String} projectUID
|
|
477
|
+
* @param {module:model/String} firmwareType
|
|
478
|
+
* @param {module:model/String} action
|
|
479
479
|
* @param {Object} opts Optional parameters
|
|
480
480
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
481
481
|
* @param {Array.<String>} opts.tag Tag filter
|
|
482
482
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
483
|
-
* @param {String} opts.fleetUID
|
|
483
|
+
* @param {String} opts.fleetUID
|
|
484
484
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
485
485
|
* @param {Array.<String>} opts.location Location filter
|
|
486
486
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
487
|
-
* @param {Array.<String>} opts.productUID
|
|
487
|
+
* @param {Array.<String>} opts.productUID
|
|
488
488
|
* @param {Array.<String>} opts.sku SKU filter
|
|
489
489
|
* @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
|
|
490
490
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
@@ -493,7 +493,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
493
493
|
key: "dfuActionWithHttpInfo",
|
|
494
494
|
value: function dfuActionWithHttpInfo(projectUID, firmwareType, action, opts) {
|
|
495
495
|
opts = opts || {};
|
|
496
|
-
var postBody = opts[
|
|
496
|
+
var postBody = opts['dfuActionRequest'];
|
|
497
497
|
// verify the required parameter 'projectUID' is set
|
|
498
498
|
if (projectUID === undefined || projectUID === null) {
|
|
499
499
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling dfuAction");
|
|
@@ -507,44 +507,44 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
507
507
|
throw new _Error["default"]("Missing the required parameter 'action' when calling dfuAction");
|
|
508
508
|
}
|
|
509
509
|
var pathParams = {
|
|
510
|
-
projectUID: projectUID,
|
|
511
|
-
firmwareType: firmwareType,
|
|
512
|
-
action: action
|
|
510
|
+
'projectUID': projectUID,
|
|
511
|
+
'firmwareType': firmwareType,
|
|
512
|
+
'action': action
|
|
513
513
|
};
|
|
514
514
|
var queryParams = {
|
|
515
|
-
deviceUID: this.apiClient.buildCollectionParam(opts[
|
|
516
|
-
tag: this.apiClient.buildCollectionParam(opts[
|
|
517
|
-
serialNumber: this.apiClient.buildCollectionParam(opts[
|
|
518
|
-
fleetUID: opts[
|
|
519
|
-
notecardFirmware: this.apiClient.buildCollectionParam(opts[
|
|
520
|
-
location: this.apiClient.buildCollectionParam(opts[
|
|
521
|
-
hostFirmware: this.apiClient.buildCollectionParam(opts[
|
|
522
|
-
productUID: this.apiClient.buildCollectionParam(opts[
|
|
523
|
-
sku: this.apiClient.buildCollectionParam(opts[
|
|
515
|
+
'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
|
|
516
|
+
'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
|
|
517
|
+
'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
|
|
518
|
+
'fleetUID': opts['fleetUID'],
|
|
519
|
+
'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
|
|
520
|
+
'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
|
|
521
|
+
'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
|
|
522
|
+
'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
|
|
523
|
+
'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
|
|
524
524
|
};
|
|
525
525
|
var headerParams = {};
|
|
526
526
|
var formParams = {};
|
|
527
|
-
var authNames = [
|
|
528
|
-
var contentTypes = [
|
|
529
|
-
var accepts = [
|
|
527
|
+
var authNames = ['api_key'];
|
|
528
|
+
var contentTypes = ['application/json'];
|
|
529
|
+
var accepts = ['application/json'];
|
|
530
530
|
var returnType = null;
|
|
531
|
-
return this.apiClient.callApi(
|
|
531
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/dfu/{firmwareType}/{action}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
532
532
|
}
|
|
533
533
|
|
|
534
534
|
/**
|
|
535
535
|
* Update/cancel host or notecard firmware updates
|
|
536
|
-
* @param {String} projectUID
|
|
537
|
-
* @param {module:model/String} firmwareType
|
|
538
|
-
* @param {module:model/String} action
|
|
536
|
+
* @param {String} projectUID
|
|
537
|
+
* @param {module:model/String} firmwareType
|
|
538
|
+
* @param {module:model/String} action
|
|
539
539
|
* @param {Object} opts Optional parameters
|
|
540
540
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
541
541
|
* @param {Array.<String>} opts.tag Tag filter
|
|
542
542
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
543
|
-
* @param {String} opts.fleetUID
|
|
543
|
+
* @param {String} opts.fleetUID
|
|
544
544
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
545
545
|
* @param {Array.<String>} opts.location Location filter
|
|
546
546
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
547
|
-
* @param {Array.<String>} opts.productUID
|
|
547
|
+
* @param {Array.<String>} opts.productUID
|
|
548
548
|
* @param {Array.<String>} opts.sku SKU filter
|
|
549
549
|
* @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
|
|
550
550
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
@@ -559,7 +559,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
559
559
|
|
|
560
560
|
/**
|
|
561
561
|
* Disable the project-level event JSONata transformation
|
|
562
|
-
* @param {String} projectUID
|
|
562
|
+
* @param {String} projectUID
|
|
563
563
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
564
564
|
*/
|
|
565
565
|
}, {
|
|
@@ -571,21 +571,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
571
571
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling disableGlobalTransformation");
|
|
572
572
|
}
|
|
573
573
|
var pathParams = {
|
|
574
|
-
projectUID: projectUID
|
|
574
|
+
'projectUID': projectUID
|
|
575
575
|
};
|
|
576
576
|
var queryParams = {};
|
|
577
577
|
var headerParams = {};
|
|
578
578
|
var formParams = {};
|
|
579
|
-
var authNames = [
|
|
579
|
+
var authNames = ['api_key'];
|
|
580
580
|
var contentTypes = [];
|
|
581
|
-
var accepts = [
|
|
581
|
+
var accepts = ['application/json'];
|
|
582
582
|
var returnType = null;
|
|
583
|
-
return this.apiClient.callApi(
|
|
583
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/global-transformation/disable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
584
584
|
}
|
|
585
585
|
|
|
586
586
|
/**
|
|
587
587
|
* Disable the project-level event JSONata transformation
|
|
588
|
-
* @param {String} projectUID
|
|
588
|
+
* @param {String} projectUID
|
|
589
589
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
590
590
|
*/
|
|
591
591
|
}, {
|
|
@@ -598,7 +598,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
598
598
|
|
|
599
599
|
/**
|
|
600
600
|
* Enable the project-level event JSONata transformation
|
|
601
|
-
* @param {String} projectUID
|
|
601
|
+
* @param {String} projectUID
|
|
602
602
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
603
603
|
*/
|
|
604
604
|
}, {
|
|
@@ -610,21 +610,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
610
610
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling enableGlobalTransformation");
|
|
611
611
|
}
|
|
612
612
|
var pathParams = {
|
|
613
|
-
projectUID: projectUID
|
|
613
|
+
'projectUID': projectUID
|
|
614
614
|
};
|
|
615
615
|
var queryParams = {};
|
|
616
616
|
var headerParams = {};
|
|
617
617
|
var formParams = {};
|
|
618
|
-
var authNames = [
|
|
618
|
+
var authNames = ['api_key'];
|
|
619
619
|
var contentTypes = [];
|
|
620
|
-
var accepts = [
|
|
620
|
+
var accepts = ['application/json'];
|
|
621
621
|
var returnType = null;
|
|
622
|
-
return this.apiClient.callApi(
|
|
622
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/global-transformation/enable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
623
623
|
}
|
|
624
624
|
|
|
625
625
|
/**
|
|
626
626
|
* Enable the project-level event JSONata transformation
|
|
627
|
-
* @param {String} projectUID
|
|
627
|
+
* @param {String} projectUID
|
|
628
628
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
629
629
|
*/
|
|
630
630
|
}, {
|
|
@@ -637,9 +637,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
637
637
|
|
|
638
638
|
/**
|
|
639
639
|
* Get device DFU history for host or Notecard firmware
|
|
640
|
-
* @param {String} projectUID
|
|
641
|
-
* @param {String} deviceUID
|
|
642
|
-
* @param {module:model/String} firmwareType
|
|
640
|
+
* @param {String} projectUID
|
|
641
|
+
* @param {String} deviceUID
|
|
642
|
+
* @param {module:model/String} firmwareType
|
|
643
643
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuHistory} and HTTP response
|
|
644
644
|
*/
|
|
645
645
|
}, {
|
|
@@ -659,25 +659,25 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
659
659
|
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDeviceDfuHistory");
|
|
660
660
|
}
|
|
661
661
|
var pathParams = {
|
|
662
|
-
projectUID: projectUID,
|
|
663
|
-
deviceUID: deviceUID,
|
|
664
|
-
firmwareType: firmwareType
|
|
662
|
+
'projectUID': projectUID,
|
|
663
|
+
'deviceUID': deviceUID,
|
|
664
|
+
'firmwareType': firmwareType
|
|
665
665
|
};
|
|
666
666
|
var queryParams = {};
|
|
667
667
|
var headerParams = {};
|
|
668
668
|
var formParams = {};
|
|
669
|
-
var authNames = [
|
|
669
|
+
var authNames = ['api_key'];
|
|
670
670
|
var contentTypes = [];
|
|
671
|
-
var accepts = [
|
|
671
|
+
var accepts = ['application/json'];
|
|
672
672
|
var returnType = _DeviceDfuHistory["default"];
|
|
673
|
-
return this.apiClient.callApi(
|
|
673
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/dfu/{firmwareType}/history', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
674
674
|
}
|
|
675
675
|
|
|
676
676
|
/**
|
|
677
677
|
* Get device DFU history for host or Notecard firmware
|
|
678
|
-
* @param {String} projectUID
|
|
679
|
-
* @param {String} deviceUID
|
|
680
|
-
* @param {module:model/String} firmwareType
|
|
678
|
+
* @param {String} projectUID
|
|
679
|
+
* @param {String} deviceUID
|
|
680
|
+
* @param {module:model/String} firmwareType
|
|
681
681
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuHistory}
|
|
682
682
|
*/
|
|
683
683
|
}, {
|
|
@@ -690,9 +690,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
690
690
|
|
|
691
691
|
/**
|
|
692
692
|
* Get device DFU history for host or Notecard firmware
|
|
693
|
-
* @param {String} projectUID
|
|
694
|
-
* @param {String} deviceUID
|
|
695
|
-
* @param {module:model/String} firmwareType
|
|
693
|
+
* @param {String} projectUID
|
|
694
|
+
* @param {String} deviceUID
|
|
695
|
+
* @param {module:model/String} firmwareType
|
|
696
696
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuStatus} and HTTP response
|
|
697
697
|
*/
|
|
698
698
|
}, {
|
|
@@ -712,25 +712,25 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
712
712
|
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDeviceDfuStatus");
|
|
713
713
|
}
|
|
714
714
|
var pathParams = {
|
|
715
|
-
projectUID: projectUID,
|
|
716
|
-
deviceUID: deviceUID,
|
|
717
|
-
firmwareType: firmwareType
|
|
715
|
+
'projectUID': projectUID,
|
|
716
|
+
'deviceUID': deviceUID,
|
|
717
|
+
'firmwareType': firmwareType
|
|
718
718
|
};
|
|
719
719
|
var queryParams = {};
|
|
720
720
|
var headerParams = {};
|
|
721
721
|
var formParams = {};
|
|
722
|
-
var authNames = [
|
|
722
|
+
var authNames = ['api_key'];
|
|
723
723
|
var contentTypes = [];
|
|
724
|
-
var accepts = [
|
|
724
|
+
var accepts = ['application/json'];
|
|
725
725
|
var returnType = _DeviceDfuStatus["default"];
|
|
726
|
-
return this.apiClient.callApi(
|
|
726
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/dfu/{firmwareType}/status', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
727
727
|
}
|
|
728
728
|
|
|
729
729
|
/**
|
|
730
730
|
* Get device DFU history for host or Notecard firmware
|
|
731
|
-
* @param {String} projectUID
|
|
732
|
-
* @param {String} deviceUID
|
|
733
|
-
* @param {module:model/String} firmwareType
|
|
731
|
+
* @param {String} projectUID
|
|
732
|
+
* @param {String} deviceUID
|
|
733
|
+
* @param {module:model/String} firmwareType
|
|
734
734
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuStatus}
|
|
735
735
|
*/
|
|
736
736
|
}, {
|
|
@@ -743,8 +743,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
743
743
|
|
|
744
744
|
/**
|
|
745
745
|
* Get Device Fleets
|
|
746
|
-
* @param {String} projectUID
|
|
747
|
-
* @param {String} deviceUID
|
|
746
|
+
* @param {String} projectUID
|
|
747
|
+
* @param {String} deviceUID
|
|
748
748
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectFleets200Response} and HTTP response
|
|
749
749
|
*/
|
|
750
750
|
}, {
|
|
@@ -760,23 +760,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
760
760
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceFleets");
|
|
761
761
|
}
|
|
762
762
|
var pathParams = {
|
|
763
|
-
projectUID: projectUID,
|
|
764
|
-
deviceUID: deviceUID
|
|
763
|
+
'projectUID': projectUID,
|
|
764
|
+
'deviceUID': deviceUID
|
|
765
765
|
};
|
|
766
766
|
var queryParams = {};
|
|
767
767
|
var headerParams = {};
|
|
768
768
|
var formParams = {};
|
|
769
|
-
var authNames = [
|
|
769
|
+
var authNames = ['api_key'];
|
|
770
770
|
var contentTypes = [];
|
|
771
|
-
var accepts = [
|
|
771
|
+
var accepts = ['application/json'];
|
|
772
772
|
var returnType = _GetProjectFleets200Response["default"];
|
|
773
|
-
return this.apiClient.callApi(
|
|
773
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/fleets', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
774
774
|
}
|
|
775
775
|
|
|
776
776
|
/**
|
|
777
777
|
* Get Device Fleets
|
|
778
|
-
* @param {String} projectUID
|
|
779
|
-
* @param {String} deviceUID
|
|
778
|
+
* @param {String} projectUID
|
|
779
|
+
* @param {String} deviceUID
|
|
780
780
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectFleets200Response}
|
|
781
781
|
*/
|
|
782
782
|
}, {
|
|
@@ -789,8 +789,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
789
789
|
|
|
790
790
|
/**
|
|
791
791
|
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
792
|
-
* @param {String} projectUID
|
|
793
|
-
* @param {module:model/String} firmwareType
|
|
792
|
+
* @param {String} projectUID
|
|
793
|
+
* @param {module:model/String} firmwareType
|
|
794
794
|
* @param {Object} opts Optional parameters
|
|
795
795
|
* @param {Number} opts.pageSize (default to 50)
|
|
796
796
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -799,11 +799,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
799
799
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
800
800
|
* @param {Array.<String>} opts.tag Tag filter
|
|
801
801
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
802
|
-
* @param {String} opts.fleetUID
|
|
802
|
+
* @param {String} opts.fleetUID
|
|
803
803
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
804
804
|
* @param {Array.<String>} opts.location Location filter
|
|
805
805
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
806
|
-
* @param {Array.<String>} opts.productUID
|
|
806
|
+
* @param {Array.<String>} opts.productUID
|
|
807
807
|
* @param {Array.<String>} opts.sku SKU filter
|
|
808
808
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuHistoryPage} and HTTP response
|
|
809
809
|
*/
|
|
@@ -821,37 +821,37 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
821
821
|
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDevicesDfuHistory");
|
|
822
822
|
}
|
|
823
823
|
var pathParams = {
|
|
824
|
-
projectUID: projectUID,
|
|
825
|
-
firmwareType: firmwareType
|
|
824
|
+
'projectUID': projectUID,
|
|
825
|
+
'firmwareType': firmwareType
|
|
826
826
|
};
|
|
827
827
|
var queryParams = {
|
|
828
|
-
pageSize: opts[
|
|
829
|
-
pageNum: opts[
|
|
830
|
-
sortBy: opts[
|
|
831
|
-
sortOrder: opts[
|
|
832
|
-
deviceUID: this.apiClient.buildCollectionParam(opts[
|
|
833
|
-
tag: this.apiClient.buildCollectionParam(opts[
|
|
834
|
-
serialNumber: this.apiClient.buildCollectionParam(opts[
|
|
835
|
-
fleetUID: opts[
|
|
836
|
-
notecardFirmware: this.apiClient.buildCollectionParam(opts[
|
|
837
|
-
location: this.apiClient.buildCollectionParam(opts[
|
|
838
|
-
hostFirmware: this.apiClient.buildCollectionParam(opts[
|
|
839
|
-
productUID: this.apiClient.buildCollectionParam(opts[
|
|
840
|
-
sku: this.apiClient.buildCollectionParam(opts[
|
|
828
|
+
'pageSize': opts['pageSize'],
|
|
829
|
+
'pageNum': opts['pageNum'],
|
|
830
|
+
'sortBy': opts['sortBy'],
|
|
831
|
+
'sortOrder': opts['sortOrder'],
|
|
832
|
+
'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
|
|
833
|
+
'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
|
|
834
|
+
'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
|
|
835
|
+
'fleetUID': opts['fleetUID'],
|
|
836
|
+
'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
|
|
837
|
+
'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
|
|
838
|
+
'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
|
|
839
|
+
'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
|
|
840
|
+
'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
|
|
841
841
|
};
|
|
842
842
|
var headerParams = {};
|
|
843
843
|
var formParams = {};
|
|
844
|
-
var authNames = [
|
|
844
|
+
var authNames = ['api_key'];
|
|
845
845
|
var contentTypes = [];
|
|
846
|
-
var accepts = [
|
|
846
|
+
var accepts = ['application/json'];
|
|
847
847
|
var returnType = _DeviceDfuHistoryPage["default"];
|
|
848
|
-
return this.apiClient.callApi(
|
|
848
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/dfu/{firmwareType}/history', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
849
849
|
}
|
|
850
850
|
|
|
851
851
|
/**
|
|
852
852
|
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
853
|
-
* @param {String} projectUID
|
|
854
|
-
* @param {module:model/String} firmwareType
|
|
853
|
+
* @param {String} projectUID
|
|
854
|
+
* @param {module:model/String} firmwareType
|
|
855
855
|
* @param {Object} opts Optional parameters
|
|
856
856
|
* @param {Number} opts.pageSize (default to 50)
|
|
857
857
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -860,11 +860,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
860
860
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
861
861
|
* @param {Array.<String>} opts.tag Tag filter
|
|
862
862
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
863
|
-
* @param {String} opts.fleetUID
|
|
863
|
+
* @param {String} opts.fleetUID
|
|
864
864
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
865
865
|
* @param {Array.<String>} opts.location Location filter
|
|
866
866
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
867
|
-
* @param {Array.<String>} opts.productUID
|
|
867
|
+
* @param {Array.<String>} opts.productUID
|
|
868
868
|
* @param {Array.<String>} opts.sku SKU filter
|
|
869
869
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuHistoryPage}
|
|
870
870
|
*/
|
|
@@ -878,8 +878,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
878
878
|
|
|
879
879
|
/**
|
|
880
880
|
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
881
|
-
* @param {String} projectUID
|
|
882
|
-
* @param {module:model/String} firmwareType
|
|
881
|
+
* @param {String} projectUID
|
|
882
|
+
* @param {module:model/String} firmwareType
|
|
883
883
|
* @param {Object} opts Optional parameters
|
|
884
884
|
* @param {Number} opts.pageSize (default to 50)
|
|
885
885
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -888,11 +888,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
888
888
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
889
889
|
* @param {Array.<String>} opts.tag Tag filter
|
|
890
890
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
891
|
-
* @param {String} opts.fleetUID
|
|
891
|
+
* @param {String} opts.fleetUID
|
|
892
892
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
893
893
|
* @param {Array.<String>} opts.location Location filter
|
|
894
894
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
895
|
-
* @param {Array.<String>} opts.productUID
|
|
895
|
+
* @param {Array.<String>} opts.productUID
|
|
896
896
|
* @param {Array.<String>} opts.sku SKU filter
|
|
897
897
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuStatusPage} and HTTP response
|
|
898
898
|
*/
|
|
@@ -910,37 +910,37 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
910
910
|
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDevicesDfuStatus");
|
|
911
911
|
}
|
|
912
912
|
var pathParams = {
|
|
913
|
-
projectUID: projectUID,
|
|
914
|
-
firmwareType: firmwareType
|
|
913
|
+
'projectUID': projectUID,
|
|
914
|
+
'firmwareType': firmwareType
|
|
915
915
|
};
|
|
916
916
|
var queryParams = {
|
|
917
|
-
pageSize: opts[
|
|
918
|
-
pageNum: opts[
|
|
919
|
-
sortBy: opts[
|
|
920
|
-
sortOrder: opts[
|
|
921
|
-
deviceUID: this.apiClient.buildCollectionParam(opts[
|
|
922
|
-
tag: this.apiClient.buildCollectionParam(opts[
|
|
923
|
-
serialNumber: this.apiClient.buildCollectionParam(opts[
|
|
924
|
-
fleetUID: opts[
|
|
925
|
-
notecardFirmware: this.apiClient.buildCollectionParam(opts[
|
|
926
|
-
location: this.apiClient.buildCollectionParam(opts[
|
|
927
|
-
hostFirmware: this.apiClient.buildCollectionParam(opts[
|
|
928
|
-
productUID: this.apiClient.buildCollectionParam(opts[
|
|
929
|
-
sku: this.apiClient.buildCollectionParam(opts[
|
|
917
|
+
'pageSize': opts['pageSize'],
|
|
918
|
+
'pageNum': opts['pageNum'],
|
|
919
|
+
'sortBy': opts['sortBy'],
|
|
920
|
+
'sortOrder': opts['sortOrder'],
|
|
921
|
+
'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
|
|
922
|
+
'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
|
|
923
|
+
'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
|
|
924
|
+
'fleetUID': opts['fleetUID'],
|
|
925
|
+
'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
|
|
926
|
+
'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
|
|
927
|
+
'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
|
|
928
|
+
'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
|
|
929
|
+
'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
|
|
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 = _DeviceDfuStatusPage["default"];
|
|
937
|
-
return this.apiClient.callApi(
|
|
937
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/dfu/{firmwareType}/status', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
938
938
|
}
|
|
939
939
|
|
|
940
940
|
/**
|
|
941
941
|
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
942
|
-
* @param {String} projectUID
|
|
943
|
-
* @param {module:model/String} firmwareType
|
|
942
|
+
* @param {String} projectUID
|
|
943
|
+
* @param {module:model/String} firmwareType
|
|
944
944
|
* @param {Object} opts Optional parameters
|
|
945
945
|
* @param {Number} opts.pageSize (default to 50)
|
|
946
946
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -949,11 +949,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
949
949
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
950
950
|
* @param {Array.<String>} opts.tag Tag filter
|
|
951
951
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
952
|
-
* @param {String} opts.fleetUID
|
|
952
|
+
* @param {String} opts.fleetUID
|
|
953
953
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
954
954
|
* @param {Array.<String>} opts.location Location filter
|
|
955
955
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
956
|
-
* @param {Array.<String>} opts.productUID
|
|
956
|
+
* @param {Array.<String>} opts.productUID
|
|
957
957
|
* @param {Array.<String>} opts.sku SKU filter
|
|
958
958
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuStatusPage}
|
|
959
959
|
*/
|
|
@@ -967,15 +967,15 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
967
967
|
|
|
968
968
|
/**
|
|
969
969
|
* Get Available Firmware Information
|
|
970
|
-
* @param {String} projectUID
|
|
970
|
+
* @param {String} projectUID
|
|
971
971
|
* @param {Object} opts Optional parameters
|
|
972
|
-
* @param {String} opts.product
|
|
973
|
-
* @param {String} opts.firmwareType
|
|
974
|
-
* @param {String} opts.version
|
|
975
|
-
* @param {String} opts.target
|
|
976
|
-
* @param {String} opts.filename
|
|
977
|
-
* @param {String} opts.md5
|
|
978
|
-
* @param {Boolean} opts.unpublished
|
|
972
|
+
* @param {String} opts.product
|
|
973
|
+
* @param {String} opts.firmwareType
|
|
974
|
+
* @param {String} opts.version
|
|
975
|
+
* @param {String} opts.target
|
|
976
|
+
* @param {String} opts.filename
|
|
977
|
+
* @param {String} opts.md5
|
|
978
|
+
* @param {Boolean} opts.unpublished
|
|
979
979
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/FirmwareInfo>} and HTTP response
|
|
980
980
|
*/
|
|
981
981
|
}, {
|
|
@@ -988,37 +988,37 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
988
988
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getFirmwareInfo");
|
|
989
989
|
}
|
|
990
990
|
var pathParams = {
|
|
991
|
-
projectUID: projectUID
|
|
991
|
+
'projectUID': projectUID
|
|
992
992
|
};
|
|
993
993
|
var queryParams = {
|
|
994
|
-
product: opts[
|
|
995
|
-
firmwareType: opts[
|
|
996
|
-
version: opts[
|
|
997
|
-
target: opts[
|
|
998
|
-
filename: opts[
|
|
999
|
-
md5: opts[
|
|
1000
|
-
unpublished: opts[
|
|
994
|
+
'product': opts['product'],
|
|
995
|
+
'firmwareType': opts['firmwareType'],
|
|
996
|
+
'version': opts['version'],
|
|
997
|
+
'target': opts['target'],
|
|
998
|
+
'filename': opts['filename'],
|
|
999
|
+
'md5': opts['md5'],
|
|
1000
|
+
'unpublished': opts['unpublished']
|
|
1001
1001
|
};
|
|
1002
1002
|
var headerParams = {};
|
|
1003
1003
|
var formParams = {};
|
|
1004
|
-
var authNames = [
|
|
1004
|
+
var authNames = ['api_key'];
|
|
1005
1005
|
var contentTypes = [];
|
|
1006
|
-
var accepts = [
|
|
1006
|
+
var accepts = ['application/json'];
|
|
1007
1007
|
var returnType = [_FirmwareInfo["default"]];
|
|
1008
|
-
return this.apiClient.callApi(
|
|
1008
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/firmware', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1009
1009
|
}
|
|
1010
1010
|
|
|
1011
1011
|
/**
|
|
1012
1012
|
* Get Available Firmware Information
|
|
1013
|
-
* @param {String} projectUID
|
|
1013
|
+
* @param {String} projectUID
|
|
1014
1014
|
* @param {Object} opts Optional parameters
|
|
1015
|
-
* @param {String} opts.product
|
|
1016
|
-
* @param {String} opts.firmwareType
|
|
1017
|
-
* @param {String} opts.version
|
|
1018
|
-
* @param {String} opts.target
|
|
1019
|
-
* @param {String} opts.filename
|
|
1020
|
-
* @param {String} opts.md5
|
|
1021
|
-
* @param {Boolean} opts.unpublished
|
|
1015
|
+
* @param {String} opts.product
|
|
1016
|
+
* @param {String} opts.firmwareType
|
|
1017
|
+
* @param {String} opts.version
|
|
1018
|
+
* @param {String} opts.target
|
|
1019
|
+
* @param {String} opts.filename
|
|
1020
|
+
* @param {String} opts.md5
|
|
1021
|
+
* @param {Boolean} opts.unpublished
|
|
1022
1022
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/FirmwareInfo>}
|
|
1023
1023
|
*/
|
|
1024
1024
|
}, {
|
|
@@ -1031,8 +1031,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1031
1031
|
|
|
1032
1032
|
/**
|
|
1033
1033
|
* Get Fleet
|
|
1034
|
-
* @param {String} projectUID
|
|
1035
|
-
* @param {String} fleetUID
|
|
1034
|
+
* @param {String} projectUID
|
|
1035
|
+
* @param {String} fleetUID
|
|
1036
1036
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
1037
1037
|
*/
|
|
1038
1038
|
}, {
|
|
@@ -1048,23 +1048,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1048
1048
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleet");
|
|
1049
1049
|
}
|
|
1050
1050
|
var pathParams = {
|
|
1051
|
-
projectUID: projectUID,
|
|
1052
|
-
fleetUID: fleetUID
|
|
1051
|
+
'projectUID': projectUID,
|
|
1052
|
+
'fleetUID': fleetUID
|
|
1053
1053
|
};
|
|
1054
1054
|
var queryParams = {};
|
|
1055
1055
|
var headerParams = {};
|
|
1056
1056
|
var formParams = {};
|
|
1057
|
-
var authNames = [
|
|
1057
|
+
var authNames = ['api_key'];
|
|
1058
1058
|
var contentTypes = [];
|
|
1059
|
-
var accepts = [
|
|
1059
|
+
var accepts = ['application/json'];
|
|
1060
1060
|
var returnType = _Fleet["default"];
|
|
1061
|
-
return this.apiClient.callApi(
|
|
1061
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/fleets/{fleetUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1062
1062
|
}
|
|
1063
1063
|
|
|
1064
1064
|
/**
|
|
1065
1065
|
* Get Fleet
|
|
1066
|
-
* @param {String} projectUID
|
|
1067
|
-
* @param {String} fleetUID
|
|
1066
|
+
* @param {String} projectUID
|
|
1067
|
+
* @param {String} fleetUID
|
|
1068
1068
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
1069
1069
|
*/
|
|
1070
1070
|
}, {
|
|
@@ -1077,8 +1077,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1077
1077
|
|
|
1078
1078
|
/**
|
|
1079
1079
|
* Get environment variables of a fleet
|
|
1080
|
-
* @param {String} projectUID
|
|
1081
|
-
* @param {String} fleetUID
|
|
1080
|
+
* @param {String} projectUID
|
|
1081
|
+
* @param {String} fleetUID
|
|
1082
1082
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1083
1083
|
*/
|
|
1084
1084
|
}, {
|
|
@@ -1094,23 +1094,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1094
1094
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEnvironmentVariables");
|
|
1095
1095
|
}
|
|
1096
1096
|
var pathParams = {
|
|
1097
|
-
projectUID: projectUID,
|
|
1098
|
-
fleetUID: fleetUID
|
|
1097
|
+
'projectUID': projectUID,
|
|
1098
|
+
'fleetUID': fleetUID
|
|
1099
1099
|
};
|
|
1100
1100
|
var queryParams = {};
|
|
1101
1101
|
var headerParams = {};
|
|
1102
1102
|
var formParams = {};
|
|
1103
|
-
var authNames = [
|
|
1103
|
+
var authNames = ['api_key'];
|
|
1104
1104
|
var contentTypes = [];
|
|
1105
|
-
var accepts = [
|
|
1105
|
+
var accepts = ['application/json'];
|
|
1106
1106
|
var returnType = _EnvironmentVariables["default"];
|
|
1107
|
-
return this.apiClient.callApi(
|
|
1107
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/fleets/{fleetUID}/environment_variables', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1108
1108
|
}
|
|
1109
1109
|
|
|
1110
1110
|
/**
|
|
1111
1111
|
* Get environment variables of a fleet
|
|
1112
|
-
* @param {String} projectUID
|
|
1113
|
-
* @param {String} fleetUID
|
|
1112
|
+
* @param {String} projectUID
|
|
1113
|
+
* @param {String} fleetUID
|
|
1114
1114
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1115
1115
|
*/
|
|
1116
1116
|
}, {
|
|
@@ -1123,7 +1123,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1123
1123
|
|
|
1124
1124
|
/**
|
|
1125
1125
|
* Get a Project by ProjectUID
|
|
1126
|
-
* @param {String} projectUID
|
|
1126
|
+
* @param {String} projectUID
|
|
1127
1127
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
1128
1128
|
*/
|
|
1129
1129
|
}, {
|
|
@@ -1135,21 +1135,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1135
1135
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProject");
|
|
1136
1136
|
}
|
|
1137
1137
|
var pathParams = {
|
|
1138
|
-
projectUID: projectUID
|
|
1138
|
+
'projectUID': projectUID
|
|
1139
1139
|
};
|
|
1140
1140
|
var queryParams = {};
|
|
1141
1141
|
var headerParams = {};
|
|
1142
1142
|
var formParams = {};
|
|
1143
|
-
var authNames = [
|
|
1143
|
+
var authNames = ['api_key'];
|
|
1144
1144
|
var contentTypes = [];
|
|
1145
|
-
var accepts = [
|
|
1145
|
+
var accepts = ['application/json'];
|
|
1146
1146
|
var returnType = _Project["default"];
|
|
1147
|
-
return this.apiClient.callApi(
|
|
1147
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1148
1148
|
}
|
|
1149
1149
|
|
|
1150
1150
|
/**
|
|
1151
1151
|
* Get a Project by ProjectUID
|
|
1152
|
-
* @param {String} projectUID
|
|
1152
|
+
* @param {String} projectUID
|
|
1153
1153
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
1154
1154
|
*/
|
|
1155
1155
|
}, {
|
|
@@ -1162,7 +1162,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1162
1162
|
|
|
1163
1163
|
/**
|
|
1164
1164
|
* Get a Project by ProductUID
|
|
1165
|
-
* @param {String} productUID
|
|
1165
|
+
* @param {String} productUID
|
|
1166
1166
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
1167
1167
|
*/
|
|
1168
1168
|
}, {
|
|
@@ -1174,21 +1174,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1174
1174
|
throw new _Error["default"]("Missing the required parameter 'productUID' when calling getProjectByProduct");
|
|
1175
1175
|
}
|
|
1176
1176
|
var pathParams = {
|
|
1177
|
-
productUID: productUID
|
|
1177
|
+
'productUID': productUID
|
|
1178
1178
|
};
|
|
1179
1179
|
var queryParams = {};
|
|
1180
1180
|
var headerParams = {};
|
|
1181
1181
|
var formParams = {};
|
|
1182
|
-
var authNames = [
|
|
1182
|
+
var authNames = ['api_key'];
|
|
1183
1183
|
var contentTypes = [];
|
|
1184
|
-
var accepts = [
|
|
1184
|
+
var accepts = ['application/json'];
|
|
1185
1185
|
var returnType = _Project["default"];
|
|
1186
|
-
return this.apiClient.callApi(
|
|
1186
|
+
return this.apiClient.callApi('/v1/products/{productUID}/project', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1187
1187
|
}
|
|
1188
1188
|
|
|
1189
1189
|
/**
|
|
1190
1190
|
* Get a Project by ProductUID
|
|
1191
|
-
* @param {String} productUID
|
|
1191
|
+
* @param {String} productUID
|
|
1192
1192
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
1193
1193
|
*/
|
|
1194
1194
|
}, {
|
|
@@ -1201,7 +1201,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1201
1201
|
|
|
1202
1202
|
/**
|
|
1203
1203
|
* Get environment variables of a project
|
|
1204
|
-
* @param {String} projectUID
|
|
1204
|
+
* @param {String} projectUID
|
|
1205
1205
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1206
1206
|
*/
|
|
1207
1207
|
}, {
|
|
@@ -1213,21 +1213,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1213
1213
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectEnvironmentVariables");
|
|
1214
1214
|
}
|
|
1215
1215
|
var pathParams = {
|
|
1216
|
-
projectUID: projectUID
|
|
1216
|
+
'projectUID': projectUID
|
|
1217
1217
|
};
|
|
1218
1218
|
var queryParams = {};
|
|
1219
1219
|
var headerParams = {};
|
|
1220
1220
|
var formParams = {};
|
|
1221
|
-
var authNames = [
|
|
1221
|
+
var authNames = ['api_key'];
|
|
1222
1222
|
var contentTypes = [];
|
|
1223
|
-
var accepts = [
|
|
1223
|
+
var accepts = ['application/json'];
|
|
1224
1224
|
var returnType = _EnvironmentVariables["default"];
|
|
1225
|
-
return this.apiClient.callApi(
|
|
1225
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/environment_variables', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1226
1226
|
}
|
|
1227
1227
|
|
|
1228
1228
|
/**
|
|
1229
1229
|
* Get environment variables of a project
|
|
1230
|
-
* @param {String} projectUID
|
|
1230
|
+
* @param {String} projectUID
|
|
1231
1231
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1232
1232
|
*/
|
|
1233
1233
|
}, {
|
|
@@ -1240,7 +1240,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1240
1240
|
|
|
1241
1241
|
/**
|
|
1242
1242
|
* Get Project Fleets
|
|
1243
|
-
* @param {String} projectUID
|
|
1243
|
+
* @param {String} projectUID
|
|
1244
1244
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectFleets200Response} and HTTP response
|
|
1245
1245
|
*/
|
|
1246
1246
|
}, {
|
|
@@ -1252,21 +1252,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1252
1252
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectFleets");
|
|
1253
1253
|
}
|
|
1254
1254
|
var pathParams = {
|
|
1255
|
-
projectUID: projectUID
|
|
1255
|
+
'projectUID': projectUID
|
|
1256
1256
|
};
|
|
1257
1257
|
var queryParams = {};
|
|
1258
1258
|
var headerParams = {};
|
|
1259
1259
|
var formParams = {};
|
|
1260
|
-
var authNames = [
|
|
1260
|
+
var authNames = ['api_key'];
|
|
1261
1261
|
var contentTypes = [];
|
|
1262
|
-
var accepts = [
|
|
1262
|
+
var accepts = ['application/json'];
|
|
1263
1263
|
var returnType = _GetProjectFleets200Response["default"];
|
|
1264
|
-
return this.apiClient.callApi(
|
|
1264
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/fleets', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1265
1265
|
}
|
|
1266
1266
|
|
|
1267
1267
|
/**
|
|
1268
1268
|
* Get Project Fleets
|
|
1269
|
-
* @param {String} projectUID
|
|
1269
|
+
* @param {String} projectUID
|
|
1270
1270
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectFleets200Response}
|
|
1271
1271
|
*/
|
|
1272
1272
|
}, {
|
|
@@ -1279,7 +1279,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1279
1279
|
|
|
1280
1280
|
/**
|
|
1281
1281
|
* Get Project Members
|
|
1282
|
-
* @param {String} projectUID
|
|
1282
|
+
* @param {String} projectUID
|
|
1283
1283
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectMembers200Response} and HTTP response
|
|
1284
1284
|
*/
|
|
1285
1285
|
}, {
|
|
@@ -1291,21 +1291,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1291
1291
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectMembers");
|
|
1292
1292
|
}
|
|
1293
1293
|
var pathParams = {
|
|
1294
|
-
projectUID: projectUID
|
|
1294
|
+
'projectUID': projectUID
|
|
1295
1295
|
};
|
|
1296
1296
|
var queryParams = {};
|
|
1297
1297
|
var headerParams = {};
|
|
1298
1298
|
var formParams = {};
|
|
1299
|
-
var authNames = [
|
|
1299
|
+
var authNames = ['api_key'];
|
|
1300
1300
|
var contentTypes = [];
|
|
1301
|
-
var accepts = [
|
|
1301
|
+
var accepts = ['application/json'];
|
|
1302
1302
|
var returnType = _GetProjectMembers200Response["default"];
|
|
1303
|
-
return this.apiClient.callApi(
|
|
1303
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/members', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1304
1304
|
}
|
|
1305
1305
|
|
|
1306
1306
|
/**
|
|
1307
1307
|
* Get Project Members
|
|
1308
|
-
* @param {String} projectUID
|
|
1308
|
+
* @param {String} projectUID
|
|
1309
1309
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectMembers200Response}
|
|
1310
1310
|
*/
|
|
1311
1311
|
}, {
|
|
@@ -1318,7 +1318,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1318
1318
|
|
|
1319
1319
|
/**
|
|
1320
1320
|
* Get Products within a Project
|
|
1321
|
-
* @param {String} projectUID
|
|
1321
|
+
* @param {String} projectUID
|
|
1322
1322
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectProducts200Response} and HTTP response
|
|
1323
1323
|
*/
|
|
1324
1324
|
}, {
|
|
@@ -1330,21 +1330,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1330
1330
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectProducts");
|
|
1331
1331
|
}
|
|
1332
1332
|
var pathParams = {
|
|
1333
|
-
projectUID: projectUID
|
|
1333
|
+
'projectUID': projectUID
|
|
1334
1334
|
};
|
|
1335
1335
|
var queryParams = {};
|
|
1336
1336
|
var headerParams = {};
|
|
1337
1337
|
var formParams = {};
|
|
1338
|
-
var authNames = [
|
|
1338
|
+
var authNames = ['api_key'];
|
|
1339
1339
|
var contentTypes = [];
|
|
1340
|
-
var accepts = [
|
|
1340
|
+
var accepts = ['application/json'];
|
|
1341
1341
|
var returnType = _GetProjectProducts200Response["default"];
|
|
1342
|
-
return this.apiClient.callApi(
|
|
1342
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/products', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1343
1343
|
}
|
|
1344
1344
|
|
|
1345
1345
|
/**
|
|
1346
1346
|
* Get Products within a Project
|
|
1347
|
-
* @param {String} projectUID
|
|
1347
|
+
* @param {String} projectUID
|
|
1348
1348
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectProducts200Response}
|
|
1349
1349
|
*/
|
|
1350
1350
|
}, {
|
|
@@ -1367,11 +1367,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1367
1367
|
var queryParams = {};
|
|
1368
1368
|
var headerParams = {};
|
|
1369
1369
|
var formParams = {};
|
|
1370
|
-
var authNames = [
|
|
1370
|
+
var authNames = ['api_key'];
|
|
1371
1371
|
var contentTypes = [];
|
|
1372
|
-
var accepts = [
|
|
1372
|
+
var accepts = ['application/json'];
|
|
1373
1373
|
var returnType = _GetProjects200Response["default"];
|
|
1374
|
-
return this.apiClient.callApi(
|
|
1374
|
+
return this.apiClient.callApi('/v1/projects', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1375
1375
|
}
|
|
1376
1376
|
|
|
1377
1377
|
/**
|
|
@@ -1388,9 +1388,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1388
1388
|
|
|
1389
1389
|
/**
|
|
1390
1390
|
* Add Device to Fleets
|
|
1391
|
-
* @param {String} projectUID
|
|
1392
|
-
* @param {String} deviceUID
|
|
1393
|
-
* @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.
|
|
1391
|
+
* @param {String} projectUID
|
|
1392
|
+
* @param {String} deviceUID
|
|
1393
|
+
* @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.
|
|
1394
1394
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectFleets200Response} and HTTP response
|
|
1395
1395
|
*/
|
|
1396
1396
|
}, {
|
|
@@ -1410,24 +1410,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1410
1410
|
throw new _Error["default"]("Missing the required parameter 'putDeviceFleetsRequest' when calling putDeviceFleets");
|
|
1411
1411
|
}
|
|
1412
1412
|
var pathParams = {
|
|
1413
|
-
projectUID: projectUID,
|
|
1414
|
-
deviceUID: deviceUID
|
|
1413
|
+
'projectUID': projectUID,
|
|
1414
|
+
'deviceUID': deviceUID
|
|
1415
1415
|
};
|
|
1416
1416
|
var queryParams = {};
|
|
1417
1417
|
var headerParams = {};
|
|
1418
1418
|
var formParams = {};
|
|
1419
|
-
var authNames = [
|
|
1420
|
-
var contentTypes = [
|
|
1421
|
-
var accepts = [
|
|
1419
|
+
var authNames = ['api_key'];
|
|
1420
|
+
var contentTypes = ['application/json'];
|
|
1421
|
+
var accepts = ['application/json'];
|
|
1422
1422
|
var returnType = _GetProjectFleets200Response["default"];
|
|
1423
|
-
return this.apiClient.callApi(
|
|
1423
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/fleets', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1424
1424
|
}
|
|
1425
1425
|
|
|
1426
1426
|
/**
|
|
1427
1427
|
* Add Device to Fleets
|
|
1428
|
-
* @param {String} projectUID
|
|
1429
|
-
* @param {String} deviceUID
|
|
1430
|
-
* @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.
|
|
1428
|
+
* @param {String} projectUID
|
|
1429
|
+
* @param {String} deviceUID
|
|
1430
|
+
* @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.
|
|
1431
1431
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectFleets200Response}
|
|
1432
1432
|
*/
|
|
1433
1433
|
}, {
|
|
@@ -1440,8 +1440,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1440
1440
|
|
|
1441
1441
|
/**
|
|
1442
1442
|
* Put environment variables of a fleet
|
|
1443
|
-
* @param {String} projectUID
|
|
1444
|
-
* @param {String} fleetUID
|
|
1443
|
+
* @param {String} projectUID
|
|
1444
|
+
* @param {String} fleetUID
|
|
1445
1445
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
1446
1446
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1447
1447
|
*/
|
|
@@ -1462,23 +1462,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1462
1462
|
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling putFleetEnvironmentVariables");
|
|
1463
1463
|
}
|
|
1464
1464
|
var pathParams = {
|
|
1465
|
-
projectUID: projectUID,
|
|
1466
|
-
fleetUID: fleetUID
|
|
1465
|
+
'projectUID': projectUID,
|
|
1466
|
+
'fleetUID': fleetUID
|
|
1467
1467
|
};
|
|
1468
1468
|
var queryParams = {};
|
|
1469
1469
|
var headerParams = {};
|
|
1470
1470
|
var formParams = {};
|
|
1471
|
-
var authNames = [
|
|
1472
|
-
var contentTypes = [
|
|
1473
|
-
var accepts = [
|
|
1471
|
+
var authNames = ['api_key'];
|
|
1472
|
+
var contentTypes = ['application/json'];
|
|
1473
|
+
var accepts = ['application/json'];
|
|
1474
1474
|
var returnType = _EnvironmentVariables["default"];
|
|
1475
|
-
return this.apiClient.callApi(
|
|
1475
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/fleets/{fleetUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1476
1476
|
}
|
|
1477
1477
|
|
|
1478
1478
|
/**
|
|
1479
1479
|
* Put environment variables of a fleet
|
|
1480
|
-
* @param {String} projectUID
|
|
1481
|
-
* @param {String} fleetUID
|
|
1480
|
+
* @param {String} projectUID
|
|
1481
|
+
* @param {String} fleetUID
|
|
1482
1482
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
1483
1483
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1484
1484
|
*/
|
|
@@ -1492,38 +1492,38 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1492
1492
|
|
|
1493
1493
|
/**
|
|
1494
1494
|
* Put environment variables of a project
|
|
1495
|
-
* @param {String} projectUID
|
|
1495
|
+
* @param {String} projectUID
|
|
1496
1496
|
* @param {Object} opts Optional parameters
|
|
1497
|
-
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1497
|
+
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1498
1498
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1499
1499
|
*/
|
|
1500
1500
|
}, {
|
|
1501
1501
|
key: "putProjectEnvironmentVariablesWithHttpInfo",
|
|
1502
1502
|
value: function putProjectEnvironmentVariablesWithHttpInfo(projectUID, opts) {
|
|
1503
1503
|
opts = opts || {};
|
|
1504
|
-
var postBody = opts[
|
|
1504
|
+
var postBody = opts['environmentVariables'];
|
|
1505
1505
|
// verify the required parameter 'projectUID' is set
|
|
1506
1506
|
if (projectUID === undefined || projectUID === null) {
|
|
1507
1507
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling putProjectEnvironmentVariables");
|
|
1508
1508
|
}
|
|
1509
1509
|
var pathParams = {
|
|
1510
|
-
projectUID: projectUID
|
|
1510
|
+
'projectUID': projectUID
|
|
1511
1511
|
};
|
|
1512
1512
|
var queryParams = {};
|
|
1513
1513
|
var headerParams = {};
|
|
1514
1514
|
var formParams = {};
|
|
1515
|
-
var authNames = [
|
|
1516
|
-
var contentTypes = [
|
|
1517
|
-
var accepts = [
|
|
1515
|
+
var authNames = ['api_key'];
|
|
1516
|
+
var contentTypes = ['application/json'];
|
|
1517
|
+
var accepts = ['application/json'];
|
|
1518
1518
|
var returnType = _EnvironmentVariables["default"];
|
|
1519
|
-
return this.apiClient.callApi(
|
|
1519
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1520
1520
|
}
|
|
1521
1521
|
|
|
1522
1522
|
/**
|
|
1523
1523
|
* Put environment variables of a project
|
|
1524
|
-
* @param {String} projectUID
|
|
1524
|
+
* @param {String} projectUID
|
|
1525
1525
|
* @param {Object} opts Optional parameters
|
|
1526
|
-
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1526
|
+
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1527
1527
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1528
1528
|
*/
|
|
1529
1529
|
}, {
|
|
@@ -1536,7 +1536,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1536
1536
|
|
|
1537
1537
|
/**
|
|
1538
1538
|
* Set the project-level event JSONata transformation
|
|
1539
|
-
* @param {String} projectUID
|
|
1539
|
+
* @param {String} projectUID
|
|
1540
1540
|
* @param {Object.<String, Object>} body JSONata expression which will be applied to each event before it is persisted and routed
|
|
1541
1541
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1542
1542
|
*/
|
|
@@ -1553,21 +1553,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1553
1553
|
throw new _Error["default"]("Missing the required parameter 'body' when calling setGlobalTransformation");
|
|
1554
1554
|
}
|
|
1555
1555
|
var pathParams = {
|
|
1556
|
-
projectUID: projectUID
|
|
1556
|
+
'projectUID': projectUID
|
|
1557
1557
|
};
|
|
1558
1558
|
var queryParams = {};
|
|
1559
1559
|
var headerParams = {};
|
|
1560
1560
|
var formParams = {};
|
|
1561
|
-
var authNames = [
|
|
1562
|
-
var contentTypes = [
|
|
1563
|
-
var accepts = [
|
|
1561
|
+
var authNames = ['api_key'];
|
|
1562
|
+
var contentTypes = ['application/json'];
|
|
1563
|
+
var accepts = ['application/json'];
|
|
1564
1564
|
var returnType = null;
|
|
1565
|
-
return this.apiClient.callApi(
|
|
1565
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/global-transformation', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1566
1566
|
}
|
|
1567
1567
|
|
|
1568
1568
|
/**
|
|
1569
1569
|
* Set the project-level event JSONata transformation
|
|
1570
|
-
* @param {String} projectUID
|
|
1570
|
+
* @param {String} projectUID
|
|
1571
1571
|
* @param {Object.<String, Object>} body JSONata expression which will be applied to each event before it is persisted and routed
|
|
1572
1572
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1573
1573
|
*/
|
|
@@ -1581,8 +1581,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1581
1581
|
|
|
1582
1582
|
/**
|
|
1583
1583
|
* Update Fleet
|
|
1584
|
-
* @param {String} projectUID
|
|
1585
|
-
* @param {String} fleetUID
|
|
1584
|
+
* @param {String} projectUID
|
|
1585
|
+
* @param {String} fleetUID
|
|
1586
1586
|
* @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
|
|
1587
1587
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
1588
1588
|
*/
|
|
@@ -1603,23 +1603,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1603
1603
|
throw new _Error["default"]("Missing the required parameter 'updateFleetRequest' when calling updateFleet");
|
|
1604
1604
|
}
|
|
1605
1605
|
var pathParams = {
|
|
1606
|
-
projectUID: projectUID,
|
|
1607
|
-
fleetUID: fleetUID
|
|
1606
|
+
'projectUID': projectUID,
|
|
1607
|
+
'fleetUID': fleetUID
|
|
1608
1608
|
};
|
|
1609
1609
|
var queryParams = {};
|
|
1610
1610
|
var headerParams = {};
|
|
1611
1611
|
var formParams = {};
|
|
1612
|
-
var authNames = [
|
|
1613
|
-
var contentTypes = [
|
|
1614
|
-
var accepts = [
|
|
1612
|
+
var authNames = ['api_key'];
|
|
1613
|
+
var contentTypes = ['application/json'];
|
|
1614
|
+
var accepts = ['application/json'];
|
|
1615
1615
|
var returnType = _Fleet["default"];
|
|
1616
|
-
return this.apiClient.callApi(
|
|
1616
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/fleets/{fleetUID}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1617
1617
|
}
|
|
1618
1618
|
|
|
1619
1619
|
/**
|
|
1620
1620
|
* Update Fleet
|
|
1621
|
-
* @param {String} projectUID
|
|
1622
|
-
* @param {String} fleetUID
|
|
1621
|
+
* @param {String} projectUID
|
|
1622
|
+
* @param {String} fleetUID
|
|
1623
1623
|
* @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
|
|
1624
1624
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
1625
1625
|
*/
|