@blues-inc/notehub-js 1.0.25 → 1.0.26-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 +198 -189
- 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 -130
- package/dist/api/MonitorApi.js +52 -52
- package/dist/api/ProjectApi.js +326 -326
- 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 +8 -8
- 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 +84 -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 +223 -223
- package/dist/model/Firmware.js +49 -49
- package/dist/model/FirmwareInfo.js +60 -60
- package/dist/model/Fleet.js +37 -21
- package/dist/model/GetAlerts200Response.js +15 -14
- package/dist/model/GetBillingAccounts200Response.js +10 -9
- package/dist/model/GetDeviceEnvironmentVariables200Response.js +12 -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 +30 -17
- 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.26-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 environment variables of a 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/EnvironmentVariables} 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 getFleetEnvironmentVariables");
|
|
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 = _EnvironmentVariables["default"];
|
|
1061
|
-
return this.apiClient.callApi(
|
|
1061
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/fleets/{fleetUID}/environment_variables', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1062
1062
|
}
|
|
1063
1063
|
|
|
1064
1064
|
/**
|
|
1065
1065
|
* Get environment variables of a 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/EnvironmentVariables}
|
|
1069
1069
|
*/
|
|
1070
1070
|
}, {
|
|
@@ -1077,7 +1077,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1077
1077
|
|
|
1078
1078
|
/**
|
|
1079
1079
|
* Get a Project by ProjectUID
|
|
1080
|
-
* @param {String} projectUID
|
|
1080
|
+
* @param {String} projectUID
|
|
1081
1081
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
1082
1082
|
*/
|
|
1083
1083
|
}, {
|
|
@@ -1089,21 +1089,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1089
1089
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProject");
|
|
1090
1090
|
}
|
|
1091
1091
|
var pathParams = {
|
|
1092
|
-
projectUID: projectUID
|
|
1092
|
+
'projectUID': projectUID
|
|
1093
1093
|
};
|
|
1094
1094
|
var queryParams = {};
|
|
1095
1095
|
var headerParams = {};
|
|
1096
1096
|
var formParams = {};
|
|
1097
|
-
var authNames = [
|
|
1097
|
+
var authNames = ['api_key'];
|
|
1098
1098
|
var contentTypes = [];
|
|
1099
|
-
var accepts = [
|
|
1099
|
+
var accepts = ['application/json'];
|
|
1100
1100
|
var returnType = _Project["default"];
|
|
1101
|
-
return this.apiClient.callApi(
|
|
1101
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1102
1102
|
}
|
|
1103
1103
|
|
|
1104
1104
|
/**
|
|
1105
1105
|
* Get a Project by ProjectUID
|
|
1106
|
-
* @param {String} projectUID
|
|
1106
|
+
* @param {String} projectUID
|
|
1107
1107
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
1108
1108
|
*/
|
|
1109
1109
|
}, {
|
|
@@ -1116,7 +1116,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1116
1116
|
|
|
1117
1117
|
/**
|
|
1118
1118
|
* Get a Project by ProductUID
|
|
1119
|
-
* @param {String} productUID
|
|
1119
|
+
* @param {String} productUID
|
|
1120
1120
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
1121
1121
|
*/
|
|
1122
1122
|
}, {
|
|
@@ -1128,21 +1128,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1128
1128
|
throw new _Error["default"]("Missing the required parameter 'productUID' when calling getProjectByProduct");
|
|
1129
1129
|
}
|
|
1130
1130
|
var pathParams = {
|
|
1131
|
-
productUID: productUID
|
|
1131
|
+
'productUID': productUID
|
|
1132
1132
|
};
|
|
1133
1133
|
var queryParams = {};
|
|
1134
1134
|
var headerParams = {};
|
|
1135
1135
|
var formParams = {};
|
|
1136
|
-
var authNames = [
|
|
1136
|
+
var authNames = ['api_key'];
|
|
1137
1137
|
var contentTypes = [];
|
|
1138
|
-
var accepts = [
|
|
1138
|
+
var accepts = ['application/json'];
|
|
1139
1139
|
var returnType = _Project["default"];
|
|
1140
|
-
return this.apiClient.callApi(
|
|
1140
|
+
return this.apiClient.callApi('/v1/products/{productUID}/project', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1141
1141
|
}
|
|
1142
1142
|
|
|
1143
1143
|
/**
|
|
1144
1144
|
* Get a Project by ProductUID
|
|
1145
|
-
* @param {String} productUID
|
|
1145
|
+
* @param {String} productUID
|
|
1146
1146
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
1147
1147
|
*/
|
|
1148
1148
|
}, {
|
|
@@ -1155,7 +1155,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1155
1155
|
|
|
1156
1156
|
/**
|
|
1157
1157
|
* Get environment variables of a project
|
|
1158
|
-
* @param {String} projectUID
|
|
1158
|
+
* @param {String} projectUID
|
|
1159
1159
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1160
1160
|
*/
|
|
1161
1161
|
}, {
|
|
@@ -1167,21 +1167,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1167
1167
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectEnvironmentVariables");
|
|
1168
1168
|
}
|
|
1169
1169
|
var pathParams = {
|
|
1170
|
-
projectUID: projectUID
|
|
1170
|
+
'projectUID': projectUID
|
|
1171
1171
|
};
|
|
1172
1172
|
var queryParams = {};
|
|
1173
1173
|
var headerParams = {};
|
|
1174
1174
|
var formParams = {};
|
|
1175
|
-
var authNames = [
|
|
1175
|
+
var authNames = ['api_key'];
|
|
1176
1176
|
var contentTypes = [];
|
|
1177
|
-
var accepts = [
|
|
1177
|
+
var accepts = ['application/json'];
|
|
1178
1178
|
var returnType = _EnvironmentVariables["default"];
|
|
1179
|
-
return this.apiClient.callApi(
|
|
1179
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/environment_variables', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1180
1180
|
}
|
|
1181
1181
|
|
|
1182
1182
|
/**
|
|
1183
1183
|
* Get environment variables of a project
|
|
1184
|
-
* @param {String} projectUID
|
|
1184
|
+
* @param {String} projectUID
|
|
1185
1185
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1186
1186
|
*/
|
|
1187
1187
|
}, {
|
|
@@ -1194,7 +1194,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1194
1194
|
|
|
1195
1195
|
/**
|
|
1196
1196
|
* Get Project Fleets
|
|
1197
|
-
* @param {String} projectUID
|
|
1197
|
+
* @param {String} projectUID
|
|
1198
1198
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectFleets200Response} and HTTP response
|
|
1199
1199
|
*/
|
|
1200
1200
|
}, {
|
|
@@ -1206,21 +1206,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1206
1206
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectFleets");
|
|
1207
1207
|
}
|
|
1208
1208
|
var pathParams = {
|
|
1209
|
-
projectUID: projectUID
|
|
1209
|
+
'projectUID': projectUID
|
|
1210
1210
|
};
|
|
1211
1211
|
var queryParams = {};
|
|
1212
1212
|
var headerParams = {};
|
|
1213
1213
|
var formParams = {};
|
|
1214
|
-
var authNames = [
|
|
1214
|
+
var authNames = ['api_key'];
|
|
1215
1215
|
var contentTypes = [];
|
|
1216
|
-
var accepts = [
|
|
1216
|
+
var accepts = ['application/json'];
|
|
1217
1217
|
var returnType = _GetProjectFleets200Response["default"];
|
|
1218
|
-
return this.apiClient.callApi(
|
|
1218
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/fleets', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1219
1219
|
}
|
|
1220
1220
|
|
|
1221
1221
|
/**
|
|
1222
1222
|
* Get Project Fleets
|
|
1223
|
-
* @param {String} projectUID
|
|
1223
|
+
* @param {String} projectUID
|
|
1224
1224
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectFleets200Response}
|
|
1225
1225
|
*/
|
|
1226
1226
|
}, {
|
|
@@ -1233,7 +1233,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1233
1233
|
|
|
1234
1234
|
/**
|
|
1235
1235
|
* Get Project Members
|
|
1236
|
-
* @param {String} projectUID
|
|
1236
|
+
* @param {String} projectUID
|
|
1237
1237
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectMembers200Response} and HTTP response
|
|
1238
1238
|
*/
|
|
1239
1239
|
}, {
|
|
@@ -1245,21 +1245,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1245
1245
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectMembers");
|
|
1246
1246
|
}
|
|
1247
1247
|
var pathParams = {
|
|
1248
|
-
projectUID: projectUID
|
|
1248
|
+
'projectUID': projectUID
|
|
1249
1249
|
};
|
|
1250
1250
|
var queryParams = {};
|
|
1251
1251
|
var headerParams = {};
|
|
1252
1252
|
var formParams = {};
|
|
1253
|
-
var authNames = [
|
|
1253
|
+
var authNames = ['api_key'];
|
|
1254
1254
|
var contentTypes = [];
|
|
1255
|
-
var accepts = [
|
|
1255
|
+
var accepts = ['application/json'];
|
|
1256
1256
|
var returnType = _GetProjectMembers200Response["default"];
|
|
1257
|
-
return this.apiClient.callApi(
|
|
1257
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/members', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1258
1258
|
}
|
|
1259
1259
|
|
|
1260
1260
|
/**
|
|
1261
1261
|
* Get Project Members
|
|
1262
|
-
* @param {String} projectUID
|
|
1262
|
+
* @param {String} projectUID
|
|
1263
1263
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectMembers200Response}
|
|
1264
1264
|
*/
|
|
1265
1265
|
}, {
|
|
@@ -1272,7 +1272,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1272
1272
|
|
|
1273
1273
|
/**
|
|
1274
1274
|
* Get Products within a Project
|
|
1275
|
-
* @param {String} projectUID
|
|
1275
|
+
* @param {String} projectUID
|
|
1276
1276
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectProducts200Response} and HTTP response
|
|
1277
1277
|
*/
|
|
1278
1278
|
}, {
|
|
@@ -1284,21 +1284,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1284
1284
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectProducts");
|
|
1285
1285
|
}
|
|
1286
1286
|
var pathParams = {
|
|
1287
|
-
projectUID: projectUID
|
|
1287
|
+
'projectUID': projectUID
|
|
1288
1288
|
};
|
|
1289
1289
|
var queryParams = {};
|
|
1290
1290
|
var headerParams = {};
|
|
1291
1291
|
var formParams = {};
|
|
1292
|
-
var authNames = [
|
|
1292
|
+
var authNames = ['api_key'];
|
|
1293
1293
|
var contentTypes = [];
|
|
1294
|
-
var accepts = [
|
|
1294
|
+
var accepts = ['application/json'];
|
|
1295
1295
|
var returnType = _GetProjectProducts200Response["default"];
|
|
1296
|
-
return this.apiClient.callApi(
|
|
1296
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/products', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1297
1297
|
}
|
|
1298
1298
|
|
|
1299
1299
|
/**
|
|
1300
1300
|
* Get Products within a Project
|
|
1301
|
-
* @param {String} projectUID
|
|
1301
|
+
* @param {String} projectUID
|
|
1302
1302
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectProducts200Response}
|
|
1303
1303
|
*/
|
|
1304
1304
|
}, {
|
|
@@ -1321,11 +1321,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1321
1321
|
var queryParams = {};
|
|
1322
1322
|
var headerParams = {};
|
|
1323
1323
|
var formParams = {};
|
|
1324
|
-
var authNames = [
|
|
1324
|
+
var authNames = ['api_key'];
|
|
1325
1325
|
var contentTypes = [];
|
|
1326
|
-
var accepts = [
|
|
1326
|
+
var accepts = ['application/json'];
|
|
1327
1327
|
var returnType = _GetProjects200Response["default"];
|
|
1328
|
-
return this.apiClient.callApi(
|
|
1328
|
+
return this.apiClient.callApi('/v1/projects', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1329
1329
|
}
|
|
1330
1330
|
|
|
1331
1331
|
/**
|
|
@@ -1342,9 +1342,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1342
1342
|
|
|
1343
1343
|
/**
|
|
1344
1344
|
* Add Device to Fleets
|
|
1345
|
-
* @param {String} projectUID
|
|
1346
|
-
* @param {String} deviceUID
|
|
1347
|
-
* @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.
|
|
1345
|
+
* @param {String} projectUID
|
|
1346
|
+
* @param {String} deviceUID
|
|
1347
|
+
* @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.
|
|
1348
1348
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectFleets200Response} and HTTP response
|
|
1349
1349
|
*/
|
|
1350
1350
|
}, {
|
|
@@ -1364,24 +1364,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1364
1364
|
throw new _Error["default"]("Missing the required parameter 'putDeviceFleetsRequest' when calling putDeviceFleets");
|
|
1365
1365
|
}
|
|
1366
1366
|
var pathParams = {
|
|
1367
|
-
projectUID: projectUID,
|
|
1368
|
-
deviceUID: deviceUID
|
|
1367
|
+
'projectUID': projectUID,
|
|
1368
|
+
'deviceUID': deviceUID
|
|
1369
1369
|
};
|
|
1370
1370
|
var queryParams = {};
|
|
1371
1371
|
var headerParams = {};
|
|
1372
1372
|
var formParams = {};
|
|
1373
|
-
var authNames = [
|
|
1374
|
-
var contentTypes = [
|
|
1375
|
-
var accepts = [
|
|
1373
|
+
var authNames = ['api_key'];
|
|
1374
|
+
var contentTypes = ['application/json'];
|
|
1375
|
+
var accepts = ['application/json'];
|
|
1376
1376
|
var returnType = _GetProjectFleets200Response["default"];
|
|
1377
|
-
return this.apiClient.callApi(
|
|
1377
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/fleets', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1378
1378
|
}
|
|
1379
1379
|
|
|
1380
1380
|
/**
|
|
1381
1381
|
* Add Device to Fleets
|
|
1382
|
-
* @param {String} projectUID
|
|
1383
|
-
* @param {String} deviceUID
|
|
1384
|
-
* @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.
|
|
1382
|
+
* @param {String} projectUID
|
|
1383
|
+
* @param {String} deviceUID
|
|
1384
|
+
* @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.
|
|
1385
1385
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectFleets200Response}
|
|
1386
1386
|
*/
|
|
1387
1387
|
}, {
|
|
@@ -1394,8 +1394,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1394
1394
|
|
|
1395
1395
|
/**
|
|
1396
1396
|
* Put environment variables of a fleet
|
|
1397
|
-
* @param {String} projectUID
|
|
1398
|
-
* @param {String} fleetUID
|
|
1397
|
+
* @param {String} projectUID
|
|
1398
|
+
* @param {String} fleetUID
|
|
1399
1399
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
1400
1400
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1401
1401
|
*/
|
|
@@ -1416,23 +1416,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1416
1416
|
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling putFleetEnvironmentVariables");
|
|
1417
1417
|
}
|
|
1418
1418
|
var pathParams = {
|
|
1419
|
-
projectUID: projectUID,
|
|
1420
|
-
fleetUID: fleetUID
|
|
1419
|
+
'projectUID': projectUID,
|
|
1420
|
+
'fleetUID': fleetUID
|
|
1421
1421
|
};
|
|
1422
1422
|
var queryParams = {};
|
|
1423
1423
|
var headerParams = {};
|
|
1424
1424
|
var formParams = {};
|
|
1425
|
-
var authNames = [
|
|
1426
|
-
var contentTypes = [
|
|
1427
|
-
var accepts = [
|
|
1425
|
+
var authNames = ['api_key'];
|
|
1426
|
+
var contentTypes = ['application/json'];
|
|
1427
|
+
var accepts = ['application/json'];
|
|
1428
1428
|
var returnType = _EnvironmentVariables["default"];
|
|
1429
|
-
return this.apiClient.callApi(
|
|
1429
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/fleets/{fleetUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1430
1430
|
}
|
|
1431
1431
|
|
|
1432
1432
|
/**
|
|
1433
1433
|
* Put environment variables of a fleet
|
|
1434
|
-
* @param {String} projectUID
|
|
1435
|
-
* @param {String} fleetUID
|
|
1434
|
+
* @param {String} projectUID
|
|
1435
|
+
* @param {String} fleetUID
|
|
1436
1436
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
1437
1437
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1438
1438
|
*/
|
|
@@ -1446,38 +1446,38 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1446
1446
|
|
|
1447
1447
|
/**
|
|
1448
1448
|
* Put environment variables of a project
|
|
1449
|
-
* @param {String} projectUID
|
|
1449
|
+
* @param {String} projectUID
|
|
1450
1450
|
* @param {Object} opts Optional parameters
|
|
1451
|
-
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1451
|
+
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1452
1452
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1453
1453
|
*/
|
|
1454
1454
|
}, {
|
|
1455
1455
|
key: "putProjectEnvironmentVariablesWithHttpInfo",
|
|
1456
1456
|
value: function putProjectEnvironmentVariablesWithHttpInfo(projectUID, opts) {
|
|
1457
1457
|
opts = opts || {};
|
|
1458
|
-
var postBody = opts[
|
|
1458
|
+
var postBody = opts['environmentVariables'];
|
|
1459
1459
|
// verify the required parameter 'projectUID' is set
|
|
1460
1460
|
if (projectUID === undefined || projectUID === null) {
|
|
1461
1461
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling putProjectEnvironmentVariables");
|
|
1462
1462
|
}
|
|
1463
1463
|
var pathParams = {
|
|
1464
|
-
projectUID: projectUID
|
|
1464
|
+
'projectUID': projectUID
|
|
1465
1465
|
};
|
|
1466
1466
|
var queryParams = {};
|
|
1467
1467
|
var headerParams = {};
|
|
1468
1468
|
var formParams = {};
|
|
1469
|
-
var authNames = [
|
|
1470
|
-
var contentTypes = [
|
|
1471
|
-
var accepts = [
|
|
1469
|
+
var authNames = ['api_key'];
|
|
1470
|
+
var contentTypes = ['application/json'];
|
|
1471
|
+
var accepts = ['application/json'];
|
|
1472
1472
|
var returnType = _EnvironmentVariables["default"];
|
|
1473
|
-
return this.apiClient.callApi(
|
|
1473
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1474
1474
|
}
|
|
1475
1475
|
|
|
1476
1476
|
/**
|
|
1477
1477
|
* Put environment variables of a project
|
|
1478
|
-
* @param {String} projectUID
|
|
1478
|
+
* @param {String} projectUID
|
|
1479
1479
|
* @param {Object} opts Optional parameters
|
|
1480
|
-
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1480
|
+
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1481
1481
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1482
1482
|
*/
|
|
1483
1483
|
}, {
|
|
@@ -1490,7 +1490,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1490
1490
|
|
|
1491
1491
|
/**
|
|
1492
1492
|
* Set the project-level event JSONata transformation
|
|
1493
|
-
* @param {String} projectUID
|
|
1493
|
+
* @param {String} projectUID
|
|
1494
1494
|
* @param {Object.<String, Object>} body JSONata expression which will be applied to each event before it is persisted and routed
|
|
1495
1495
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1496
1496
|
*/
|
|
@@ -1507,21 +1507,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1507
1507
|
throw new _Error["default"]("Missing the required parameter 'body' when calling setGlobalTransformation");
|
|
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 = null;
|
|
1519
|
-
return this.apiClient.callApi(
|
|
1519
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/global-transformation', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1520
1520
|
}
|
|
1521
1521
|
|
|
1522
1522
|
/**
|
|
1523
1523
|
* Set the project-level event JSONata transformation
|
|
1524
|
-
* @param {String} projectUID
|
|
1524
|
+
* @param {String} projectUID
|
|
1525
1525
|
* @param {Object.<String, Object>} body JSONata expression which will be applied to each event before it is persisted and routed
|
|
1526
1526
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1527
1527
|
*/
|
|
@@ -1535,8 +1535,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1535
1535
|
|
|
1536
1536
|
/**
|
|
1537
1537
|
* Update Fleet
|
|
1538
|
-
* @param {String} projectUID
|
|
1539
|
-
* @param {String} fleetUID
|
|
1538
|
+
* @param {String} projectUID
|
|
1539
|
+
* @param {String} fleetUID
|
|
1540
1540
|
* @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
|
|
1541
1541
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
1542
1542
|
*/
|
|
@@ -1557,23 +1557,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1557
1557
|
throw new _Error["default"]("Missing the required parameter 'updateFleetRequest' when calling updateFleet");
|
|
1558
1558
|
}
|
|
1559
1559
|
var pathParams = {
|
|
1560
|
-
projectUID: projectUID,
|
|
1561
|
-
fleetUID: fleetUID
|
|
1560
|
+
'projectUID': projectUID,
|
|
1561
|
+
'fleetUID': fleetUID
|
|
1562
1562
|
};
|
|
1563
1563
|
var queryParams = {};
|
|
1564
1564
|
var headerParams = {};
|
|
1565
1565
|
var formParams = {};
|
|
1566
|
-
var authNames = [
|
|
1567
|
-
var contentTypes = [
|
|
1568
|
-
var accepts = [
|
|
1566
|
+
var authNames = ['api_key'];
|
|
1567
|
+
var contentTypes = ['application/json'];
|
|
1568
|
+
var accepts = ['application/json'];
|
|
1569
1569
|
var returnType = _Fleet["default"];
|
|
1570
|
-
return this.apiClient.callApi(
|
|
1570
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/fleets/{fleetUID}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1571
1571
|
}
|
|
1572
1572
|
|
|
1573
1573
|
/**
|
|
1574
1574
|
* Update Fleet
|
|
1575
|
-
* @param {String} projectUID
|
|
1576
|
-
* @param {String} fleetUID
|
|
1575
|
+
* @param {String} projectUID
|
|
1576
|
+
* @param {String} fleetUID
|
|
1577
1577
|
* @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
|
|
1578
1578
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
1579
1579
|
*/
|