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