@blues-inc/notehub-js 5.0.0 → 6.0.0-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 +248 -244
- package/dist/ApiClient.js +150 -150
- package/dist/api/AlertApi.js +22 -22
- package/dist/api/AuthorizationApi.js +31 -31
- package/dist/api/BillingAccountApi.js +14 -14
- package/dist/api/DeviceApi.js +341 -433
- package/dist/api/EventApi.js +118 -118
- package/dist/api/ExternalDevicesApi.js +41 -41
- package/dist/api/MonitorApi.js +52 -52
- package/dist/api/ProjectApi.js +436 -383
- package/dist/api/RouteApi.js +83 -83
- package/dist/api/UsageApi.js +75 -63
- package/dist/api/WebhookApi.js +51 -51
- package/dist/model/AddDeviceToFleetsRequest.js +8 -8
- package/dist/model/Alert.js +76 -74
- package/dist/model/AlertDataInner.js +36 -36
- package/dist/model/AlertNotificationsInner.js +18 -18
- package/dist/model/AwsRoute.js +65 -65
- package/dist/model/AzureRoute.js +43 -43
- package/dist/model/BillingAccount.js +21 -21
- package/dist/model/BillingAccountRole.js +9 -9
- package/dist/model/BlynkRoute.js +28 -28
- package/dist/model/Body.js +5 -5
- package/dist/model/CellularPlan.js +34 -34
- package/dist/model/CloneProjectRequest.js +20 -20
- package/dist/model/Contact.js +22 -22
- package/dist/model/CreateFleetRequest.js +20 -20
- package/dist/model/CreateMonitor.js +132 -126
- 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/DataSetField.js +19 -19
- package/dist/model/DataUsage.js +14 -14
- package/dist/model/DatacakeRoute.js +35 -35
- package/dist/model/DeleteDeviceFromFleetsRequest.js +8 -8
- package/dist/model/DeleteNotefilesRequest.js +7 -7
- package/dist/model/Device.js +107 -106
- package/dist/model/DeviceDfuHistory.js +20 -19
- package/dist/model/DeviceDfuHistoryCurrent.js +32 -32
- 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/DeviceDfuStatusPage.js +13 -12
- package/dist/model/DeviceSession.js +221 -221
- 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/EnvTreeJsonNode.js +69 -67
- package/dist/model/EnvVar.js +18 -18
- package/dist/model/EnvironmentVariables.js +8 -8
- package/dist/model/Error.js +31 -31
- package/dist/model/Event.js +248 -248
- package/dist/model/Filter.js +16 -16
- package/dist/model/Firmware.js +49 -49
- package/dist/model/FirmwareInfo.js +60 -60
- package/dist/model/Fleet.js +38 -38
- package/dist/model/FleetConnectivityAssurance.js +5 -5
- package/dist/model/GetAlerts200Response.js +15 -14
- package/dist/model/GetBillingAccounts200Response.js +10 -9
- package/dist/model/GetDataUsage200Response.js +19 -9
- package/dist/model/GetDataUsage200ResponseDataInner.js +44 -43
- package/dist/model/GetDbNote200Response.js +13 -13
- package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +16 -16
- package/dist/model/GetDeviceFleets200Response.js +12 -11
- package/dist/model/GetDeviceHealthLog200Response.js +12 -11
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
- package/dist/model/GetDeviceLatestEvents200Response.js +10 -9
- package/dist/model/GetDevicePlans200Response.js +10 -9
- package/dist/model/GetDevicePublicKey200Response.js +16 -16
- package/dist/model/GetDevicePublicKeys200Response.js +17 -16
- package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
- package/dist/model/GetDeviceSessions200Response.js +17 -16
- package/dist/model/GetDevices200Response.js +17 -16
- package/dist/model/GetEvents200Response.js +21 -20
- package/dist/model/GetEventsByCursor200Response.js +24 -23
- package/dist/model/GetNotefile200Response.js +11 -11
- package/dist/model/GetProducts200Response.js +10 -9
- package/dist/model/GetProjectMembers200Response.js +12 -11
- package/dist/model/GetProjects200Response.js +10 -9
- package/dist/model/GetRouteLogsUsage200Response.js +21 -11
- package/dist/model/GetSessionsUsage200Response.js +27 -15
- package/dist/model/GetWebhooks200Response.js +10 -9
- package/dist/model/GoogleRoute.js +33 -33
- package/dist/model/HttpRoute.js +35 -35
- 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 +106 -100
- package/dist/model/MonitorAlertRoutesInner.js +9 -10
- package/dist/model/MqttRoute.js +68 -68
- package/dist/model/Note.js +31 -31
- package/dist/model/NoteInput.js +9 -9
- package/dist/model/Notefile.js +23 -22
- package/dist/model/NotefileSchema.js +19 -18
- package/dist/model/NotehubRoute.js +103 -103
- package/dist/model/NotehubRouteSummary.js +23 -23
- package/dist/model/OAuth2Error.js +20 -20
- package/dist/model/OAuth2TokenResponse.js +23 -23
- package/dist/model/PersonalAccessToken.js +34 -34
- package/dist/model/PersonalAccessTokenCreatedBy.js +17 -17
- package/dist/model/PersonalAccessTokenInfo.js +18 -18
- package/dist/model/PersonalAccessTokenSecret.js +12 -12
- package/dist/model/Product.js +26 -26
- package/dist/model/Project.js +34 -34
- package/dist/model/ProjectMember.js +22 -22
- package/dist/model/ProvisionDeviceRequest.js +18 -18
- package/dist/model/ProxyRoute.js +29 -29
- package/dist/model/QubitroRoute.js +33 -33
- package/dist/model/RadRoute.js +31 -31
- package/dist/model/Repository.js +22 -22
- package/dist/model/Role.js +9 -9
- package/dist/model/RouteLog.js +38 -38
- package/dist/model/RouteTransformSettings.js +18 -18
- package/dist/model/S3ArchiveRoute.js +79 -79
- package/dist/model/SatelliteDataUsage.js +18 -18
- package/dist/model/SatellitePlan.js +29 -29
- package/dist/model/SchemaProperty.js +38 -36
- package/dist/model/SignalDevice200Response.js +5 -5
- package/dist/model/SimUsage.js +19 -19
- package/dist/model/SlackBearerNotification.js +25 -25
- package/dist/model/SlackRoute.js +48 -48
- package/dist/model/SlackWebHookNotification.js +20 -20
- package/dist/model/SnowflakeRoute.js +45 -45
- package/dist/model/SnowpipeStreamingRoute.js +60 -60
- package/dist/model/ThingworxRoute.js +33 -33
- package/dist/model/TowerLocation.js +54 -54
- package/dist/model/TwilioRoute.js +43 -43
- package/dist/model/UpdateFleetRequest.js +33 -33
- package/dist/model/UploadMetadata.js +64 -64
- package/dist/model/UsageData.js +47 -47
- package/dist/model/UsageEventsData.js +55 -37
- package/dist/model/UsageEventsResponse.js +21 -11
- package/dist/model/UsageRouteLogsData.js +27 -27
- package/dist/model/UsageSessionsData.js +32 -32
- package/dist/model/UserDfuStateMachine.js +20 -20
- package/dist/model/UserDfuStateMachineStatus.js +20 -20
- package/dist/model/UserFirmwareInfo.js +12 -12
- package/dist/model/WebhookSettings.js +15 -15
- package/package.json +3 -3
package/dist/api/ProjectApi.js
CHANGED
|
@@ -37,7 +37,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
37
37
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
38
38
|
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); } /**
|
|
39
39
|
* Notehub API
|
|
40
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
40
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
41
41
|
*
|
|
42
42
|
* The version of the OpenAPI document: 1.2.0
|
|
43
43
|
* Contact: engineering@blues.io
|
|
@@ -48,18 +48,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
48
48
|
*
|
|
49
49
|
*/
|
|
50
50
|
/**
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
* Project service.
|
|
52
|
+
* @module api/ProjectApi
|
|
53
|
+
* @version 6.0.0-beta.1
|
|
54
|
+
*/
|
|
55
55
|
var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
56
56
|
/**
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
57
|
+
* Constructs a new ProjectApi.
|
|
58
|
+
* @alias module:api/ProjectApi
|
|
59
|
+
* @class
|
|
60
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
61
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
62
|
+
*/
|
|
63
63
|
function ProjectApi(apiClient) {
|
|
64
64
|
_classCallCheck(this, ProjectApi);
|
|
65
65
|
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
@@ -67,9 +67,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* Add Device to Fleets
|
|
70
|
-
* @param {String} projectOrProductUID
|
|
71
|
-
* @param {String} deviceUID
|
|
72
|
-
* @param {module:model/AddDeviceToFleetsRequest} addDeviceToFleetsRequest 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.
|
|
70
|
+
* @param {String} projectOrProductUID
|
|
71
|
+
* @param {String} deviceUID
|
|
72
|
+
* @param {module:model/AddDeviceToFleetsRequest} addDeviceToFleetsRequest 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.
|
|
73
73
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
74
74
|
*/
|
|
75
75
|
return _createClass(ProjectApi, [{
|
|
@@ -89,24 +89,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
89
89
|
throw new _Error["default"]("Missing the required parameter 'addDeviceToFleetsRequest' when calling addDeviceToFleets");
|
|
90
90
|
}
|
|
91
91
|
var pathParams = {
|
|
92
|
-
projectOrProductUID: projectOrProductUID,
|
|
93
|
-
deviceUID: deviceUID
|
|
92
|
+
'projectOrProductUID': projectOrProductUID,
|
|
93
|
+
'deviceUID': deviceUID
|
|
94
94
|
};
|
|
95
95
|
var queryParams = {};
|
|
96
96
|
var headerParams = {};
|
|
97
97
|
var formParams = {};
|
|
98
|
-
var authNames = [
|
|
99
|
-
var contentTypes = [
|
|
100
|
-
var accepts = [
|
|
98
|
+
var authNames = ['personalAccessToken'];
|
|
99
|
+
var contentTypes = ['application/json'];
|
|
100
|
+
var accepts = ['application/json'];
|
|
101
101
|
var returnType = _GetDeviceFleets200Response["default"];
|
|
102
|
-
return this.apiClient.callApi(
|
|
102
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/fleets', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
/**
|
|
106
106
|
* Add Device to Fleets
|
|
107
|
-
* @param {String} projectOrProductUID
|
|
108
|
-
* @param {String} deviceUID
|
|
109
|
-
* @param {module:model/AddDeviceToFleetsRequest} addDeviceToFleetsRequest 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.
|
|
107
|
+
* @param {String} projectOrProductUID
|
|
108
|
+
* @param {String} deviceUID
|
|
109
|
+
* @param {module:model/AddDeviceToFleetsRequest} addDeviceToFleetsRequest 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.
|
|
110
110
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
111
111
|
*/
|
|
112
112
|
}, {
|
|
@@ -119,7 +119,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
119
119
|
|
|
120
120
|
/**
|
|
121
121
|
* Clone a Project
|
|
122
|
-
* @param {String} projectOrProductUID
|
|
122
|
+
* @param {String} projectOrProductUID
|
|
123
123
|
* @param {module:model/CloneProjectRequest} cloneProjectRequest Project to be cloned
|
|
124
124
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
125
125
|
*/
|
|
@@ -136,21 +136,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
136
136
|
throw new _Error["default"]("Missing the required parameter 'cloneProjectRequest' when calling cloneProject");
|
|
137
137
|
}
|
|
138
138
|
var pathParams = {
|
|
139
|
-
projectOrProductUID: projectOrProductUID
|
|
139
|
+
'projectOrProductUID': projectOrProductUID
|
|
140
140
|
};
|
|
141
141
|
var queryParams = {};
|
|
142
142
|
var headerParams = {};
|
|
143
143
|
var formParams = {};
|
|
144
|
-
var authNames = [
|
|
145
|
-
var contentTypes = [
|
|
146
|
-
var accepts = [
|
|
144
|
+
var authNames = ['personalAccessToken'];
|
|
145
|
+
var contentTypes = ['application/json'];
|
|
146
|
+
var accepts = ['application/json'];
|
|
147
147
|
var returnType = _Project["default"];
|
|
148
|
-
return this.apiClient.callApi(
|
|
148
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/clone', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
/**
|
|
152
152
|
* Clone a Project
|
|
153
|
-
* @param {String} projectOrProductUID
|
|
153
|
+
* @param {String} projectOrProductUID
|
|
154
154
|
* @param {module:model/CloneProjectRequest} cloneProjectRequest Project to be cloned
|
|
155
155
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
156
156
|
*/
|
|
@@ -164,7 +164,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
164
164
|
|
|
165
165
|
/**
|
|
166
166
|
* Create Fleet
|
|
167
|
-
* @param {String} projectOrProductUID
|
|
167
|
+
* @param {String} projectOrProductUID
|
|
168
168
|
* @param {module:model/CreateFleetRequest} createFleetRequest Fleet to be added
|
|
169
169
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
170
170
|
*/
|
|
@@ -181,21 +181,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
181
181
|
throw new _Error["default"]("Missing the required parameter 'createFleetRequest' when calling createFleet");
|
|
182
182
|
}
|
|
183
183
|
var pathParams = {
|
|
184
|
-
projectOrProductUID: projectOrProductUID
|
|
184
|
+
'projectOrProductUID': projectOrProductUID
|
|
185
185
|
};
|
|
186
186
|
var queryParams = {};
|
|
187
187
|
var headerParams = {};
|
|
188
188
|
var formParams = {};
|
|
189
|
-
var authNames = [
|
|
190
|
-
var contentTypes = [
|
|
191
|
-
var accepts = [
|
|
189
|
+
var authNames = ['personalAccessToken'];
|
|
190
|
+
var contentTypes = ['application/json'];
|
|
191
|
+
var accepts = ['application/json'];
|
|
192
192
|
var returnType = _Fleet["default"];
|
|
193
|
-
return this.apiClient.callApi(
|
|
193
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
/**
|
|
197
197
|
* Create Fleet
|
|
198
|
-
* @param {String} projectOrProductUID
|
|
198
|
+
* @param {String} projectOrProductUID
|
|
199
199
|
* @param {module:model/CreateFleetRequest} createFleetRequest Fleet to be added
|
|
200
200
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
201
201
|
*/
|
|
@@ -209,7 +209,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
209
209
|
|
|
210
210
|
/**
|
|
211
211
|
* Create Product within a Project
|
|
212
|
-
* @param {String} projectOrProductUID
|
|
212
|
+
* @param {String} projectOrProductUID
|
|
213
213
|
* @param {module:model/CreateProductRequest} createProductRequest Product to be created
|
|
214
214
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Product} and HTTP response
|
|
215
215
|
*/
|
|
@@ -226,21 +226,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
226
226
|
throw new _Error["default"]("Missing the required parameter 'createProductRequest' when calling createProduct");
|
|
227
227
|
}
|
|
228
228
|
var pathParams = {
|
|
229
|
-
projectOrProductUID: projectOrProductUID
|
|
229
|
+
'projectOrProductUID': projectOrProductUID
|
|
230
230
|
};
|
|
231
231
|
var queryParams = {};
|
|
232
232
|
var headerParams = {};
|
|
233
233
|
var formParams = {};
|
|
234
|
-
var authNames = [
|
|
235
|
-
var contentTypes = [
|
|
236
|
-
var accepts = [
|
|
234
|
+
var authNames = ['personalAccessToken'];
|
|
235
|
+
var contentTypes = ['application/json'];
|
|
236
|
+
var accepts = ['application/json'];
|
|
237
237
|
var returnType = _Product["default"];
|
|
238
|
-
return this.apiClient.callApi(
|
|
238
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/products', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
239
239
|
}
|
|
240
240
|
|
|
241
241
|
/**
|
|
242
242
|
* Create Product within a Project
|
|
243
|
-
* @param {String} projectOrProductUID
|
|
243
|
+
* @param {String} projectOrProductUID
|
|
244
244
|
* @param {module:model/CreateProductRequest} createProductRequest Product to be created
|
|
245
245
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Product}
|
|
246
246
|
*/
|
|
@@ -269,11 +269,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
269
269
|
var queryParams = {};
|
|
270
270
|
var headerParams = {};
|
|
271
271
|
var formParams = {};
|
|
272
|
-
var authNames = [
|
|
273
|
-
var contentTypes = [
|
|
274
|
-
var accepts = [
|
|
272
|
+
var authNames = ['personalAccessToken'];
|
|
273
|
+
var contentTypes = ['application/json'];
|
|
274
|
+
var accepts = ['application/json'];
|
|
275
275
|
var returnType = _Project["default"];
|
|
276
|
-
return this.apiClient.callApi(
|
|
276
|
+
return this.apiClient.callApi('/v1/projects', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
277
277
|
}
|
|
278
278
|
|
|
279
279
|
/**
|
|
@@ -291,9 +291,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
291
291
|
|
|
292
292
|
/**
|
|
293
293
|
* Remove Device from Fleets
|
|
294
|
-
* @param {String} projectOrProductUID
|
|
295
|
-
* @param {String} deviceUID
|
|
296
|
-
* @param {module:model/DeleteDeviceFromFleetsRequest} deleteDeviceFromFleetsRequest 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.
|
|
294
|
+
* @param {String} projectOrProductUID
|
|
295
|
+
* @param {String} deviceUID
|
|
296
|
+
* @param {module:model/DeleteDeviceFromFleetsRequest} deleteDeviceFromFleetsRequest 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.
|
|
297
297
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
298
298
|
*/
|
|
299
299
|
}, {
|
|
@@ -313,24 +313,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
313
313
|
throw new _Error["default"]("Missing the required parameter 'deleteDeviceFromFleetsRequest' when calling deleteDeviceFromFleets");
|
|
314
314
|
}
|
|
315
315
|
var pathParams = {
|
|
316
|
-
projectOrProductUID: projectOrProductUID,
|
|
317
|
-
deviceUID: deviceUID
|
|
316
|
+
'projectOrProductUID': projectOrProductUID,
|
|
317
|
+
'deviceUID': deviceUID
|
|
318
318
|
};
|
|
319
319
|
var queryParams = {};
|
|
320
320
|
var headerParams = {};
|
|
321
321
|
var formParams = {};
|
|
322
|
-
var authNames = [
|
|
323
|
-
var contentTypes = [
|
|
324
|
-
var accepts = [
|
|
322
|
+
var authNames = ['personalAccessToken'];
|
|
323
|
+
var contentTypes = ['application/json'];
|
|
324
|
+
var accepts = ['application/json'];
|
|
325
325
|
var returnType = _GetDeviceFleets200Response["default"];
|
|
326
|
-
return this.apiClient.callApi(
|
|
326
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/fleets', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
327
327
|
}
|
|
328
328
|
|
|
329
329
|
/**
|
|
330
330
|
* Remove Device from Fleets
|
|
331
|
-
* @param {String} projectOrProductUID
|
|
332
|
-
* @param {String} deviceUID
|
|
333
|
-
* @param {module:model/DeleteDeviceFromFleetsRequest} deleteDeviceFromFleetsRequest 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.
|
|
331
|
+
* @param {String} projectOrProductUID
|
|
332
|
+
* @param {String} deviceUID
|
|
333
|
+
* @param {module:model/DeleteDeviceFromFleetsRequest} deleteDeviceFromFleetsRequest 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.
|
|
334
334
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
335
335
|
*/
|
|
336
336
|
}, {
|
|
@@ -343,8 +343,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
343
343
|
|
|
344
344
|
/**
|
|
345
345
|
* Delete Fleet
|
|
346
|
-
* @param {String} projectOrProductUID
|
|
347
|
-
* @param {String} fleetUID
|
|
346
|
+
* @param {String} projectOrProductUID
|
|
347
|
+
* @param {String} fleetUID
|
|
348
348
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
349
349
|
*/
|
|
350
350
|
}, {
|
|
@@ -360,23 +360,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
360
360
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling deleteFleet");
|
|
361
361
|
}
|
|
362
362
|
var pathParams = {
|
|
363
|
-
projectOrProductUID: projectOrProductUID,
|
|
364
|
-
fleetUID: fleetUID
|
|
363
|
+
'projectOrProductUID': projectOrProductUID,
|
|
364
|
+
'fleetUID': fleetUID
|
|
365
365
|
};
|
|
366
366
|
var queryParams = {};
|
|
367
367
|
var headerParams = {};
|
|
368
368
|
var formParams = {};
|
|
369
|
-
var authNames = [
|
|
369
|
+
var authNames = ['personalAccessToken'];
|
|
370
370
|
var contentTypes = [];
|
|
371
|
-
var accepts = [
|
|
371
|
+
var accepts = ['application/json'];
|
|
372
372
|
var returnType = null;
|
|
373
|
-
return this.apiClient.callApi(
|
|
373
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
374
374
|
}
|
|
375
375
|
|
|
376
376
|
/**
|
|
377
377
|
* Delete Fleet
|
|
378
|
-
* @param {String} projectOrProductUID
|
|
379
|
-
* @param {String} fleetUID
|
|
378
|
+
* @param {String} projectOrProductUID
|
|
379
|
+
* @param {String} fleetUID
|
|
380
380
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
381
381
|
*/
|
|
382
382
|
}, {
|
|
@@ -389,8 +389,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
389
389
|
|
|
390
390
|
/**
|
|
391
391
|
* Delete environment variables of a fleet
|
|
392
|
-
* @param {String} projectOrProductUID
|
|
393
|
-
* @param {String} fleetUID
|
|
392
|
+
* @param {String} projectOrProductUID
|
|
393
|
+
* @param {String} fleetUID
|
|
394
394
|
* @param {String} key The environment variable key to delete.
|
|
395
395
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
396
396
|
*/
|
|
@@ -411,24 +411,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
411
411
|
throw new _Error["default"]("Missing the required parameter 'key' when calling deleteFleetEnvironmentVariable");
|
|
412
412
|
}
|
|
413
413
|
var pathParams = {
|
|
414
|
-
projectOrProductUID: projectOrProductUID,
|
|
415
|
-
fleetUID: fleetUID,
|
|
416
|
-
key: key
|
|
414
|
+
'projectOrProductUID': projectOrProductUID,
|
|
415
|
+
'fleetUID': fleetUID,
|
|
416
|
+
'key': key
|
|
417
417
|
};
|
|
418
418
|
var queryParams = {};
|
|
419
419
|
var headerParams = {};
|
|
420
420
|
var formParams = {};
|
|
421
|
-
var authNames = [
|
|
421
|
+
var authNames = ['personalAccessToken'];
|
|
422
422
|
var contentTypes = [];
|
|
423
|
-
var accepts = [
|
|
423
|
+
var accepts = ['application/json'];
|
|
424
424
|
var returnType = _EnvironmentVariables["default"];
|
|
425
|
-
return this.apiClient.callApi(
|
|
425
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables/{key}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
426
426
|
}
|
|
427
427
|
|
|
428
428
|
/**
|
|
429
429
|
* Delete environment variables of a fleet
|
|
430
|
-
* @param {String} projectOrProductUID
|
|
431
|
-
* @param {String} fleetUID
|
|
430
|
+
* @param {String} projectOrProductUID
|
|
431
|
+
* @param {String} fleetUID
|
|
432
432
|
* @param {String} key The environment variable key to delete.
|
|
433
433
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
434
434
|
*/
|
|
@@ -442,8 +442,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
442
442
|
|
|
443
443
|
/**
|
|
444
444
|
* Delete a product
|
|
445
|
-
* @param {String} projectOrProductUID
|
|
446
|
-
* @param {String} productUID
|
|
445
|
+
* @param {String} projectOrProductUID
|
|
446
|
+
* @param {String} productUID
|
|
447
447
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
448
448
|
*/
|
|
449
449
|
}, {
|
|
@@ -459,23 +459,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
459
459
|
throw new _Error["default"]("Missing the required parameter 'productUID' when calling deleteProduct");
|
|
460
460
|
}
|
|
461
461
|
var pathParams = {
|
|
462
|
-
projectOrProductUID: projectOrProductUID,
|
|
463
|
-
productUID: productUID
|
|
462
|
+
'projectOrProductUID': projectOrProductUID,
|
|
463
|
+
'productUID': productUID
|
|
464
464
|
};
|
|
465
465
|
var queryParams = {};
|
|
466
466
|
var headerParams = {};
|
|
467
467
|
var formParams = {};
|
|
468
|
-
var authNames = [
|
|
468
|
+
var authNames = ['personalAccessToken'];
|
|
469
469
|
var contentTypes = [];
|
|
470
|
-
var accepts = [
|
|
470
|
+
var accepts = ['application/json'];
|
|
471
471
|
var returnType = null;
|
|
472
|
-
return this.apiClient.callApi(
|
|
472
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/products/{productUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
473
473
|
}
|
|
474
474
|
|
|
475
475
|
/**
|
|
476
476
|
* Delete a product
|
|
477
|
-
* @param {String} projectOrProductUID
|
|
478
|
-
* @param {String} productUID
|
|
477
|
+
* @param {String} projectOrProductUID
|
|
478
|
+
* @param {String} productUID
|
|
479
479
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
480
480
|
*/
|
|
481
481
|
}, {
|
|
@@ -488,7 +488,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
488
488
|
|
|
489
489
|
/**
|
|
490
490
|
* Delete a Project by ProjectUID
|
|
491
|
-
* @param {String} projectOrProductUID
|
|
491
|
+
* @param {String} projectOrProductUID
|
|
492
492
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
493
493
|
*/
|
|
494
494
|
}, {
|
|
@@ -500,21 +500,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
500
500
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteProject");
|
|
501
501
|
}
|
|
502
502
|
var pathParams = {
|
|
503
|
-
projectOrProductUID: projectOrProductUID
|
|
503
|
+
'projectOrProductUID': projectOrProductUID
|
|
504
504
|
};
|
|
505
505
|
var queryParams = {};
|
|
506
506
|
var headerParams = {};
|
|
507
507
|
var formParams = {};
|
|
508
|
-
var authNames = [
|
|
508
|
+
var authNames = ['personalAccessToken'];
|
|
509
509
|
var contentTypes = [];
|
|
510
|
-
var accepts = [
|
|
510
|
+
var accepts = ['application/json'];
|
|
511
511
|
var returnType = null;
|
|
512
|
-
return this.apiClient.callApi(
|
|
512
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
513
513
|
}
|
|
514
514
|
|
|
515
515
|
/**
|
|
516
516
|
* Delete a Project by ProjectUID
|
|
517
|
-
* @param {String} projectOrProductUID
|
|
517
|
+
* @param {String} projectOrProductUID
|
|
518
518
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
519
519
|
*/
|
|
520
520
|
}, {
|
|
@@ -527,7 +527,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
527
527
|
|
|
528
528
|
/**
|
|
529
529
|
* Delete an environment variable of a project by key
|
|
530
|
-
* @param {String} projectOrProductUID
|
|
530
|
+
* @param {String} projectOrProductUID
|
|
531
531
|
* @param {String} key The environment variable key to delete.
|
|
532
532
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
533
533
|
*/
|
|
@@ -544,22 +544,22 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
544
544
|
throw new _Error["default"]("Missing the required parameter 'key' when calling deleteProjectEnvironmentVariable");
|
|
545
545
|
}
|
|
546
546
|
var pathParams = {
|
|
547
|
-
projectOrProductUID: projectOrProductUID,
|
|
548
|
-
key: key
|
|
547
|
+
'projectOrProductUID': projectOrProductUID,
|
|
548
|
+
'key': key
|
|
549
549
|
};
|
|
550
550
|
var queryParams = {};
|
|
551
551
|
var headerParams = {};
|
|
552
552
|
var formParams = {};
|
|
553
|
-
var authNames = [
|
|
553
|
+
var authNames = ['personalAccessToken'];
|
|
554
554
|
var contentTypes = [];
|
|
555
|
-
var accepts = [
|
|
555
|
+
var accepts = ['application/json'];
|
|
556
556
|
var returnType = _EnvironmentVariables["default"];
|
|
557
|
-
return this.apiClient.callApi(
|
|
557
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/environment_variables/{key}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
558
558
|
}
|
|
559
559
|
|
|
560
560
|
/**
|
|
561
561
|
* Delete an environment variable of a project by key
|
|
562
|
-
* @param {String} projectOrProductUID
|
|
562
|
+
* @param {String} projectOrProductUID
|
|
563
563
|
* @param {String} key The environment variable key to delete.
|
|
564
564
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
565
565
|
*/
|
|
@@ -573,7 +573,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
573
573
|
|
|
574
574
|
/**
|
|
575
575
|
* Disable the project-level event JSONata transformation
|
|
576
|
-
* @param {String} projectOrProductUID
|
|
576
|
+
* @param {String} projectOrProductUID
|
|
577
577
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
578
578
|
*/
|
|
579
579
|
}, {
|
|
@@ -585,21 +585,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
585
585
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling disableGlobalEventTransformation");
|
|
586
586
|
}
|
|
587
587
|
var pathParams = {
|
|
588
|
-
projectOrProductUID: projectOrProductUID
|
|
588
|
+
'projectOrProductUID': projectOrProductUID
|
|
589
589
|
};
|
|
590
590
|
var queryParams = {};
|
|
591
591
|
var headerParams = {};
|
|
592
592
|
var formParams = {};
|
|
593
|
-
var authNames = [
|
|
593
|
+
var authNames = ['personalAccessToken'];
|
|
594
594
|
var contentTypes = [];
|
|
595
|
-
var accepts = [
|
|
595
|
+
var accepts = ['application/json'];
|
|
596
596
|
var returnType = null;
|
|
597
|
-
return this.apiClient.callApi(
|
|
597
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/global-transformation/disable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
598
598
|
}
|
|
599
599
|
|
|
600
600
|
/**
|
|
601
601
|
* Disable the project-level event JSONata transformation
|
|
602
|
-
* @param {String} projectOrProductUID
|
|
602
|
+
* @param {String} projectOrProductUID
|
|
603
603
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
604
604
|
*/
|
|
605
605
|
}, {
|
|
@@ -610,9 +610,62 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
610
610
|
});
|
|
611
611
|
}
|
|
612
612
|
|
|
613
|
+
/**
|
|
614
|
+
* Download firmware binary
|
|
615
|
+
* @param {String} projectOrProductUID
|
|
616
|
+
* @param {module:model/String} firmwareType
|
|
617
|
+
* @param {String} filename
|
|
618
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link File} and HTTP response
|
|
619
|
+
*/
|
|
620
|
+
}, {
|
|
621
|
+
key: "downloadFirmwareWithHttpInfo",
|
|
622
|
+
value: function downloadFirmwareWithHttpInfo(projectOrProductUID, firmwareType, filename) {
|
|
623
|
+
var postBody = null;
|
|
624
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
625
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
626
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling downloadFirmware");
|
|
627
|
+
}
|
|
628
|
+
// verify the required parameter 'firmwareType' is set
|
|
629
|
+
if (firmwareType === undefined || firmwareType === null) {
|
|
630
|
+
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling downloadFirmware");
|
|
631
|
+
}
|
|
632
|
+
// verify the required parameter 'filename' is set
|
|
633
|
+
if (filename === undefined || filename === null) {
|
|
634
|
+
throw new _Error["default"]("Missing the required parameter 'filename' when calling downloadFirmware");
|
|
635
|
+
}
|
|
636
|
+
var pathParams = {
|
|
637
|
+
'projectOrProductUID': projectOrProductUID,
|
|
638
|
+
'firmwareType': firmwareType,
|
|
639
|
+
'filename': filename
|
|
640
|
+
};
|
|
641
|
+
var queryParams = {};
|
|
642
|
+
var headerParams = {};
|
|
643
|
+
var formParams = {};
|
|
644
|
+
var authNames = ['personalAccessToken'];
|
|
645
|
+
var contentTypes = [];
|
|
646
|
+
var accepts = ['application/octet-stream', 'application/json'];
|
|
647
|
+
var returnType = File;
|
|
648
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/firmware/{firmwareType}/{filename}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
/**
|
|
652
|
+
* Download firmware binary
|
|
653
|
+
* @param {String} projectOrProductUID
|
|
654
|
+
* @param {module:model/String} firmwareType
|
|
655
|
+
* @param {String} filename
|
|
656
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link File}
|
|
657
|
+
*/
|
|
658
|
+
}, {
|
|
659
|
+
key: "downloadFirmware",
|
|
660
|
+
value: function downloadFirmware(projectOrProductUID, firmwareType, filename) {
|
|
661
|
+
return this.downloadFirmwareWithHttpInfo(projectOrProductUID, firmwareType, filename).then(function (response_and_data) {
|
|
662
|
+
return response_and_data.data;
|
|
663
|
+
});
|
|
664
|
+
}
|
|
665
|
+
|
|
613
666
|
/**
|
|
614
667
|
* Enable the project-level event JSONata transformation
|
|
615
|
-
* @param {String} projectOrProductUID
|
|
668
|
+
* @param {String} projectOrProductUID
|
|
616
669
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
617
670
|
*/
|
|
618
671
|
}, {
|
|
@@ -624,21 +677,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
624
677
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling enableGlobalEventTransformation");
|
|
625
678
|
}
|
|
626
679
|
var pathParams = {
|
|
627
|
-
projectOrProductUID: projectOrProductUID
|
|
680
|
+
'projectOrProductUID': projectOrProductUID
|
|
628
681
|
};
|
|
629
682
|
var queryParams = {};
|
|
630
683
|
var headerParams = {};
|
|
631
684
|
var formParams = {};
|
|
632
|
-
var authNames = [
|
|
685
|
+
var authNames = ['personalAccessToken'];
|
|
633
686
|
var contentTypes = [];
|
|
634
|
-
var accepts = [
|
|
687
|
+
var accepts = ['application/json'];
|
|
635
688
|
var returnType = null;
|
|
636
|
-
return this.apiClient.callApi(
|
|
689
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/global-transformation/enable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
637
690
|
}
|
|
638
691
|
|
|
639
692
|
/**
|
|
640
693
|
* Enable the project-level event JSONata transformation
|
|
641
|
-
* @param {String} projectOrProductUID
|
|
694
|
+
* @param {String} projectOrProductUID
|
|
642
695
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
643
696
|
*/
|
|
644
697
|
}, {
|
|
@@ -651,9 +704,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
651
704
|
|
|
652
705
|
/**
|
|
653
706
|
* Get device DFU history for host or Notecard firmware
|
|
654
|
-
* @param {String} projectOrProductUID
|
|
655
|
-
* @param {String} deviceUID
|
|
656
|
-
* @param {module:model/String} firmwareType
|
|
707
|
+
* @param {String} projectOrProductUID
|
|
708
|
+
* @param {String} deviceUID
|
|
709
|
+
* @param {module:model/String} firmwareType
|
|
657
710
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuHistory} and HTTP response
|
|
658
711
|
*/
|
|
659
712
|
}, {
|
|
@@ -673,25 +726,25 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
673
726
|
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDeviceDfuHistory");
|
|
674
727
|
}
|
|
675
728
|
var pathParams = {
|
|
676
|
-
projectOrProductUID: projectOrProductUID,
|
|
677
|
-
deviceUID: deviceUID,
|
|
678
|
-
firmwareType: firmwareType
|
|
729
|
+
'projectOrProductUID': projectOrProductUID,
|
|
730
|
+
'deviceUID': deviceUID,
|
|
731
|
+
'firmwareType': firmwareType
|
|
679
732
|
};
|
|
680
733
|
var queryParams = {};
|
|
681
734
|
var headerParams = {};
|
|
682
735
|
var formParams = {};
|
|
683
|
-
var authNames = [
|
|
736
|
+
var authNames = ['personalAccessToken'];
|
|
684
737
|
var contentTypes = [];
|
|
685
|
-
var accepts = [
|
|
738
|
+
var accepts = ['application/json'];
|
|
686
739
|
var returnType = _DeviceDfuHistory["default"];
|
|
687
|
-
return this.apiClient.callApi(
|
|
740
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/dfu/{firmwareType}/history', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
688
741
|
}
|
|
689
742
|
|
|
690
743
|
/**
|
|
691
744
|
* Get device DFU history for host or Notecard firmware
|
|
692
|
-
* @param {String} projectOrProductUID
|
|
693
|
-
* @param {String} deviceUID
|
|
694
|
-
* @param {module:model/String} firmwareType
|
|
745
|
+
* @param {String} projectOrProductUID
|
|
746
|
+
* @param {String} deviceUID
|
|
747
|
+
* @param {module:model/String} firmwareType
|
|
695
748
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuHistory}
|
|
696
749
|
*/
|
|
697
750
|
}, {
|
|
@@ -704,9 +757,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
704
757
|
|
|
705
758
|
/**
|
|
706
759
|
* Get device DFU history for host or Notecard firmware
|
|
707
|
-
* @param {String} projectOrProductUID
|
|
708
|
-
* @param {String} deviceUID
|
|
709
|
-
* @param {module:model/String} firmwareType
|
|
760
|
+
* @param {String} projectOrProductUID
|
|
761
|
+
* @param {String} deviceUID
|
|
762
|
+
* @param {module:model/String} firmwareType
|
|
710
763
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuStatus} and HTTP response
|
|
711
764
|
*/
|
|
712
765
|
}, {
|
|
@@ -726,25 +779,25 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
726
779
|
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDeviceDfuStatus");
|
|
727
780
|
}
|
|
728
781
|
var pathParams = {
|
|
729
|
-
projectOrProductUID: projectOrProductUID,
|
|
730
|
-
deviceUID: deviceUID,
|
|
731
|
-
firmwareType: firmwareType
|
|
782
|
+
'projectOrProductUID': projectOrProductUID,
|
|
783
|
+
'deviceUID': deviceUID,
|
|
784
|
+
'firmwareType': firmwareType
|
|
732
785
|
};
|
|
733
786
|
var queryParams = {};
|
|
734
787
|
var headerParams = {};
|
|
735
788
|
var formParams = {};
|
|
736
|
-
var authNames = [
|
|
789
|
+
var authNames = ['personalAccessToken'];
|
|
737
790
|
var contentTypes = [];
|
|
738
|
-
var accepts = [
|
|
791
|
+
var accepts = ['application/json'];
|
|
739
792
|
var returnType = _DeviceDfuStatus["default"];
|
|
740
|
-
return this.apiClient.callApi(
|
|
793
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/dfu/{firmwareType}/status', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
741
794
|
}
|
|
742
795
|
|
|
743
796
|
/**
|
|
744
797
|
* Get device DFU history for host or Notecard firmware
|
|
745
|
-
* @param {String} projectOrProductUID
|
|
746
|
-
* @param {String} deviceUID
|
|
747
|
-
* @param {module:model/String} firmwareType
|
|
798
|
+
* @param {String} projectOrProductUID
|
|
799
|
+
* @param {String} deviceUID
|
|
800
|
+
* @param {module:model/String} firmwareType
|
|
748
801
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuStatus}
|
|
749
802
|
*/
|
|
750
803
|
}, {
|
|
@@ -757,8 +810,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
757
810
|
|
|
758
811
|
/**
|
|
759
812
|
* Get Device Fleets
|
|
760
|
-
* @param {String} projectOrProductUID
|
|
761
|
-
* @param {String} deviceUID
|
|
813
|
+
* @param {String} projectOrProductUID
|
|
814
|
+
* @param {String} deviceUID
|
|
762
815
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
763
816
|
*/
|
|
764
817
|
}, {
|
|
@@ -774,23 +827,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
774
827
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceFleets");
|
|
775
828
|
}
|
|
776
829
|
var pathParams = {
|
|
777
|
-
projectOrProductUID: projectOrProductUID,
|
|
778
|
-
deviceUID: deviceUID
|
|
830
|
+
'projectOrProductUID': projectOrProductUID,
|
|
831
|
+
'deviceUID': deviceUID
|
|
779
832
|
};
|
|
780
833
|
var queryParams = {};
|
|
781
834
|
var headerParams = {};
|
|
782
835
|
var formParams = {};
|
|
783
|
-
var authNames = [
|
|
836
|
+
var authNames = ['personalAccessToken'];
|
|
784
837
|
var contentTypes = [];
|
|
785
|
-
var accepts = [
|
|
838
|
+
var accepts = ['application/json'];
|
|
786
839
|
var returnType = _GetDeviceFleets200Response["default"];
|
|
787
|
-
return this.apiClient.callApi(
|
|
840
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/fleets', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
788
841
|
}
|
|
789
842
|
|
|
790
843
|
/**
|
|
791
844
|
* Get Device Fleets
|
|
792
|
-
* @param {String} projectOrProductUID
|
|
793
|
-
* @param {String} deviceUID
|
|
845
|
+
* @param {String} projectOrProductUID
|
|
846
|
+
* @param {String} deviceUID
|
|
794
847
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
795
848
|
*/
|
|
796
849
|
}, {
|
|
@@ -803,8 +856,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
803
856
|
|
|
804
857
|
/**
|
|
805
858
|
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
806
|
-
* @param {String} projectOrProductUID
|
|
807
|
-
* @param {module:model/String} firmwareType
|
|
859
|
+
* @param {String} projectOrProductUID
|
|
860
|
+
* @param {module:model/String} firmwareType
|
|
808
861
|
* @param {Object} opts Optional parameters
|
|
809
862
|
* @param {Number} opts.pageSize (default to 50)
|
|
810
863
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -813,11 +866,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
813
866
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
814
867
|
* @param {Array.<String>} opts.tag Tag filter
|
|
815
868
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
816
|
-
* @param {String} opts.fleetUID
|
|
869
|
+
* @param {String} opts.fleetUID
|
|
817
870
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
818
871
|
* @param {Array.<String>} opts.location Location filter
|
|
819
872
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
820
|
-
* @param {Array.<String>} opts.productUID
|
|
873
|
+
* @param {Array.<String>} opts.productUID
|
|
821
874
|
* @param {Array.<String>} opts.sku SKU filter
|
|
822
875
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuHistoryPage} and HTTP response
|
|
823
876
|
*/
|
|
@@ -835,37 +888,37 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
835
888
|
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDevicesDfuHistory");
|
|
836
889
|
}
|
|
837
890
|
var pathParams = {
|
|
838
|
-
projectOrProductUID: projectOrProductUID,
|
|
839
|
-
firmwareType: firmwareType
|
|
891
|
+
'projectOrProductUID': projectOrProductUID,
|
|
892
|
+
'firmwareType': firmwareType
|
|
840
893
|
};
|
|
841
894
|
var queryParams = {
|
|
842
|
-
pageSize: opts[
|
|
843
|
-
pageNum: opts[
|
|
844
|
-
sortBy: opts[
|
|
845
|
-
sortOrder: opts[
|
|
846
|
-
deviceUID: this.apiClient.buildCollectionParam(opts[
|
|
847
|
-
tag: this.apiClient.buildCollectionParam(opts[
|
|
848
|
-
serialNumber: this.apiClient.buildCollectionParam(opts[
|
|
849
|
-
fleetUID: opts[
|
|
850
|
-
notecardFirmware: this.apiClient.buildCollectionParam(opts[
|
|
851
|
-
location: this.apiClient.buildCollectionParam(opts[
|
|
852
|
-
hostFirmware: this.apiClient.buildCollectionParam(opts[
|
|
853
|
-
productUID: this.apiClient.buildCollectionParam(opts[
|
|
854
|
-
sku: this.apiClient.buildCollectionParam(opts[
|
|
895
|
+
'pageSize': opts['pageSize'],
|
|
896
|
+
'pageNum': opts['pageNum'],
|
|
897
|
+
'sortBy': opts['sortBy'],
|
|
898
|
+
'sortOrder': opts['sortOrder'],
|
|
899
|
+
'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
|
|
900
|
+
'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
|
|
901
|
+
'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
|
|
902
|
+
'fleetUID': opts['fleetUID'],
|
|
903
|
+
'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
|
|
904
|
+
'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
|
|
905
|
+
'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
|
|
906
|
+
'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
|
|
907
|
+
'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
|
|
855
908
|
};
|
|
856
909
|
var headerParams = {};
|
|
857
910
|
var formParams = {};
|
|
858
|
-
var authNames = [
|
|
911
|
+
var authNames = ['personalAccessToken'];
|
|
859
912
|
var contentTypes = [];
|
|
860
|
-
var accepts = [
|
|
913
|
+
var accepts = ['application/json'];
|
|
861
914
|
var returnType = _DeviceDfuHistoryPage["default"];
|
|
862
|
-
return this.apiClient.callApi(
|
|
915
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/dfu/{firmwareType}/history', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
863
916
|
}
|
|
864
917
|
|
|
865
918
|
/**
|
|
866
919
|
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
867
|
-
* @param {String} projectOrProductUID
|
|
868
|
-
* @param {module:model/String} firmwareType
|
|
920
|
+
* @param {String} projectOrProductUID
|
|
921
|
+
* @param {module:model/String} firmwareType
|
|
869
922
|
* @param {Object} opts Optional parameters
|
|
870
923
|
* @param {Number} opts.pageSize (default to 50)
|
|
871
924
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -874,11 +927,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
874
927
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
875
928
|
* @param {Array.<String>} opts.tag Tag filter
|
|
876
929
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
877
|
-
* @param {String} opts.fleetUID
|
|
930
|
+
* @param {String} opts.fleetUID
|
|
878
931
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
879
932
|
* @param {Array.<String>} opts.location Location filter
|
|
880
933
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
881
|
-
* @param {Array.<String>} opts.productUID
|
|
934
|
+
* @param {Array.<String>} opts.productUID
|
|
882
935
|
* @param {Array.<String>} opts.sku SKU filter
|
|
883
936
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuHistoryPage}
|
|
884
937
|
*/
|
|
@@ -892,8 +945,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
892
945
|
|
|
893
946
|
/**
|
|
894
947
|
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
895
|
-
* @param {String} projectOrProductUID
|
|
896
|
-
* @param {module:model/String} firmwareType
|
|
948
|
+
* @param {String} projectOrProductUID
|
|
949
|
+
* @param {module:model/String} firmwareType
|
|
897
950
|
* @param {Object} opts Optional parameters
|
|
898
951
|
* @param {Number} opts.pageSize (default to 50)
|
|
899
952
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -902,11 +955,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
902
955
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
903
956
|
* @param {Array.<String>} opts.tag Tag filter
|
|
904
957
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
905
|
-
* @param {String} opts.fleetUID
|
|
958
|
+
* @param {String} opts.fleetUID
|
|
906
959
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
907
960
|
* @param {Array.<String>} opts.location Location filter
|
|
908
961
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
909
|
-
* @param {Array.<String>} opts.productUID
|
|
962
|
+
* @param {Array.<String>} opts.productUID
|
|
910
963
|
* @param {Array.<String>} opts.sku SKU filter
|
|
911
964
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuStatusPage} and HTTP response
|
|
912
965
|
*/
|
|
@@ -924,37 +977,37 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
924
977
|
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDevicesDfuStatus");
|
|
925
978
|
}
|
|
926
979
|
var pathParams = {
|
|
927
|
-
projectOrProductUID: projectOrProductUID,
|
|
928
|
-
firmwareType: firmwareType
|
|
980
|
+
'projectOrProductUID': projectOrProductUID,
|
|
981
|
+
'firmwareType': firmwareType
|
|
929
982
|
};
|
|
930
983
|
var queryParams = {
|
|
931
|
-
pageSize: opts[
|
|
932
|
-
pageNum: opts[
|
|
933
|
-
sortBy: opts[
|
|
934
|
-
sortOrder: opts[
|
|
935
|
-
deviceUID: this.apiClient.buildCollectionParam(opts[
|
|
936
|
-
tag: this.apiClient.buildCollectionParam(opts[
|
|
937
|
-
serialNumber: this.apiClient.buildCollectionParam(opts[
|
|
938
|
-
fleetUID: opts[
|
|
939
|
-
notecardFirmware: this.apiClient.buildCollectionParam(opts[
|
|
940
|
-
location: this.apiClient.buildCollectionParam(opts[
|
|
941
|
-
hostFirmware: this.apiClient.buildCollectionParam(opts[
|
|
942
|
-
productUID: this.apiClient.buildCollectionParam(opts[
|
|
943
|
-
sku: this.apiClient.buildCollectionParam(opts[
|
|
984
|
+
'pageSize': opts['pageSize'],
|
|
985
|
+
'pageNum': opts['pageNum'],
|
|
986
|
+
'sortBy': opts['sortBy'],
|
|
987
|
+
'sortOrder': opts['sortOrder'],
|
|
988
|
+
'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
|
|
989
|
+
'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
|
|
990
|
+
'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
|
|
991
|
+
'fleetUID': opts['fleetUID'],
|
|
992
|
+
'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
|
|
993
|
+
'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
|
|
994
|
+
'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
|
|
995
|
+
'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
|
|
996
|
+
'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
|
|
944
997
|
};
|
|
945
998
|
var headerParams = {};
|
|
946
999
|
var formParams = {};
|
|
947
|
-
var authNames = [
|
|
1000
|
+
var authNames = ['personalAccessToken'];
|
|
948
1001
|
var contentTypes = [];
|
|
949
|
-
var accepts = [
|
|
1002
|
+
var accepts = ['application/json'];
|
|
950
1003
|
var returnType = _DeviceDfuStatusPage["default"];
|
|
951
|
-
return this.apiClient.callApi(
|
|
1004
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/dfu/{firmwareType}/status', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
952
1005
|
}
|
|
953
1006
|
|
|
954
1007
|
/**
|
|
955
1008
|
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
956
|
-
* @param {String} projectOrProductUID
|
|
957
|
-
* @param {module:model/String} firmwareType
|
|
1009
|
+
* @param {String} projectOrProductUID
|
|
1010
|
+
* @param {module:model/String} firmwareType
|
|
958
1011
|
* @param {Object} opts Optional parameters
|
|
959
1012
|
* @param {Number} opts.pageSize (default to 50)
|
|
960
1013
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -963,11 +1016,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
963
1016
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
964
1017
|
* @param {Array.<String>} opts.tag Tag filter
|
|
965
1018
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
966
|
-
* @param {String} opts.fleetUID
|
|
1019
|
+
* @param {String} opts.fleetUID
|
|
967
1020
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
968
1021
|
* @param {Array.<String>} opts.location Location filter
|
|
969
1022
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
970
|
-
* @param {Array.<String>} opts.productUID
|
|
1023
|
+
* @param {Array.<String>} opts.productUID
|
|
971
1024
|
* @param {Array.<String>} opts.sku SKU filter
|
|
972
1025
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuStatusPage}
|
|
973
1026
|
*/
|
|
@@ -981,15 +1034,15 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
981
1034
|
|
|
982
1035
|
/**
|
|
983
1036
|
* Get Available Firmware Information
|
|
984
|
-
* @param {String} projectOrProductUID
|
|
1037
|
+
* @param {String} projectOrProductUID
|
|
985
1038
|
* @param {Object} opts Optional parameters
|
|
986
|
-
* @param {String} opts.product
|
|
987
|
-
* @param {String} opts.firmwareType
|
|
988
|
-
* @param {String} opts.version
|
|
989
|
-
* @param {String} opts.target
|
|
990
|
-
* @param {String} opts.filename
|
|
991
|
-
* @param {String} opts.md5
|
|
992
|
-
* @param {Boolean} opts.unpublished
|
|
1039
|
+
* @param {String} opts.product
|
|
1040
|
+
* @param {String} opts.firmwareType
|
|
1041
|
+
* @param {String} opts.version
|
|
1042
|
+
* @param {String} opts.target
|
|
1043
|
+
* @param {String} opts.filename
|
|
1044
|
+
* @param {String} opts.md5
|
|
1045
|
+
* @param {Boolean} opts.unpublished
|
|
993
1046
|
* @param {module:model/String} opts.sortBy Field to sort by (default to 'created')
|
|
994
1047
|
* @param {module:model/String} opts.sortOrder Sort order (asc for ascending, desc for descending) (default to 'desc')
|
|
995
1048
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/FirmwareInfo>} and HTTP response
|
|
@@ -1004,39 +1057,39 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1004
1057
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getFirmwareInfo");
|
|
1005
1058
|
}
|
|
1006
1059
|
var pathParams = {
|
|
1007
|
-
projectOrProductUID: projectOrProductUID
|
|
1060
|
+
'projectOrProductUID': projectOrProductUID
|
|
1008
1061
|
};
|
|
1009
1062
|
var queryParams = {
|
|
1010
|
-
product: opts[
|
|
1011
|
-
firmwareType: opts[
|
|
1012
|
-
version: opts[
|
|
1013
|
-
target: opts[
|
|
1014
|
-
filename: opts[
|
|
1015
|
-
md5: opts[
|
|
1016
|
-
unpublished: opts[
|
|
1017
|
-
sortBy: opts[
|
|
1018
|
-
sortOrder: opts[
|
|
1063
|
+
'product': opts['product'],
|
|
1064
|
+
'firmwareType': opts['firmwareType'],
|
|
1065
|
+
'version': opts['version'],
|
|
1066
|
+
'target': opts['target'],
|
|
1067
|
+
'filename': opts['filename'],
|
|
1068
|
+
'md5': opts['md5'],
|
|
1069
|
+
'unpublished': opts['unpublished'],
|
|
1070
|
+
'sortBy': opts['sortBy'],
|
|
1071
|
+
'sortOrder': opts['sortOrder']
|
|
1019
1072
|
};
|
|
1020
1073
|
var headerParams = {};
|
|
1021
1074
|
var formParams = {};
|
|
1022
|
-
var authNames = [
|
|
1075
|
+
var authNames = ['personalAccessToken'];
|
|
1023
1076
|
var contentTypes = [];
|
|
1024
|
-
var accepts = [
|
|
1077
|
+
var accepts = ['application/json'];
|
|
1025
1078
|
var returnType = [_FirmwareInfo["default"]];
|
|
1026
|
-
return this.apiClient.callApi(
|
|
1079
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/firmware', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1027
1080
|
}
|
|
1028
1081
|
|
|
1029
1082
|
/**
|
|
1030
1083
|
* Get Available Firmware Information
|
|
1031
|
-
* @param {String} projectOrProductUID
|
|
1084
|
+
* @param {String} projectOrProductUID
|
|
1032
1085
|
* @param {Object} opts Optional parameters
|
|
1033
|
-
* @param {String} opts.product
|
|
1034
|
-
* @param {String} opts.firmwareType
|
|
1035
|
-
* @param {String} opts.version
|
|
1036
|
-
* @param {String} opts.target
|
|
1037
|
-
* @param {String} opts.filename
|
|
1038
|
-
* @param {String} opts.md5
|
|
1039
|
-
* @param {Boolean} opts.unpublished
|
|
1086
|
+
* @param {String} opts.product
|
|
1087
|
+
* @param {String} opts.firmwareType
|
|
1088
|
+
* @param {String} opts.version
|
|
1089
|
+
* @param {String} opts.target
|
|
1090
|
+
* @param {String} opts.filename
|
|
1091
|
+
* @param {String} opts.md5
|
|
1092
|
+
* @param {Boolean} opts.unpublished
|
|
1040
1093
|
* @param {module:model/String} opts.sortBy Field to sort by (default to 'created')
|
|
1041
1094
|
* @param {module:model/String} opts.sortOrder Sort order (asc for ascending, desc for descending) (default to 'desc')
|
|
1042
1095
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/FirmwareInfo>}
|
|
@@ -1051,8 +1104,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1051
1104
|
|
|
1052
1105
|
/**
|
|
1053
1106
|
* Get Fleet
|
|
1054
|
-
* @param {String} projectOrProductUID
|
|
1055
|
-
* @param {String} fleetUID
|
|
1107
|
+
* @param {String} projectOrProductUID
|
|
1108
|
+
* @param {String} fleetUID
|
|
1056
1109
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
1057
1110
|
*/
|
|
1058
1111
|
}, {
|
|
@@ -1068,23 +1121,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1068
1121
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleet");
|
|
1069
1122
|
}
|
|
1070
1123
|
var pathParams = {
|
|
1071
|
-
projectOrProductUID: projectOrProductUID,
|
|
1072
|
-
fleetUID: fleetUID
|
|
1124
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1125
|
+
'fleetUID': fleetUID
|
|
1073
1126
|
};
|
|
1074
1127
|
var queryParams = {};
|
|
1075
1128
|
var headerParams = {};
|
|
1076
1129
|
var formParams = {};
|
|
1077
|
-
var authNames = [
|
|
1130
|
+
var authNames = ['personalAccessToken'];
|
|
1078
1131
|
var contentTypes = [];
|
|
1079
|
-
var accepts = [
|
|
1132
|
+
var accepts = ['application/json'];
|
|
1080
1133
|
var returnType = _Fleet["default"];
|
|
1081
|
-
return this.apiClient.callApi(
|
|
1134
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1082
1135
|
}
|
|
1083
1136
|
|
|
1084
1137
|
/**
|
|
1085
1138
|
* Get Fleet
|
|
1086
|
-
* @param {String} projectOrProductUID
|
|
1087
|
-
* @param {String} fleetUID
|
|
1139
|
+
* @param {String} projectOrProductUID
|
|
1140
|
+
* @param {String} fleetUID
|
|
1088
1141
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
1089
1142
|
*/
|
|
1090
1143
|
}, {
|
|
@@ -1097,8 +1150,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1097
1150
|
|
|
1098
1151
|
/**
|
|
1099
1152
|
* Get environment variable hierarchy for a device
|
|
1100
|
-
* @param {String} projectOrProductUID
|
|
1101
|
-
* @param {String} fleetUID
|
|
1153
|
+
* @param {String} projectOrProductUID
|
|
1154
|
+
* @param {String} fleetUID
|
|
1102
1155
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
|
|
1103
1156
|
*/
|
|
1104
1157
|
}, {
|
|
@@ -1114,23 +1167,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1114
1167
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEnvironmentHierarchy");
|
|
1115
1168
|
}
|
|
1116
1169
|
var pathParams = {
|
|
1117
|
-
projectOrProductUID: projectOrProductUID,
|
|
1118
|
-
fleetUID: fleetUID
|
|
1170
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1171
|
+
'fleetUID': fleetUID
|
|
1119
1172
|
};
|
|
1120
1173
|
var queryParams = {};
|
|
1121
1174
|
var headerParams = {};
|
|
1122
1175
|
var formParams = {};
|
|
1123
|
-
var authNames = [
|
|
1176
|
+
var authNames = ['personalAccessToken'];
|
|
1124
1177
|
var contentTypes = [];
|
|
1125
|
-
var accepts = [
|
|
1178
|
+
var accepts = ['application/json'];
|
|
1126
1179
|
var returnType = _EnvTreeJsonNode["default"];
|
|
1127
|
-
return this.apiClient.callApi(
|
|
1180
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_hierarchy', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1128
1181
|
}
|
|
1129
1182
|
|
|
1130
1183
|
/**
|
|
1131
1184
|
* Get environment variable hierarchy for a device
|
|
1132
|
-
* @param {String} projectOrProductUID
|
|
1133
|
-
* @param {String} fleetUID
|
|
1185
|
+
* @param {String} projectOrProductUID
|
|
1186
|
+
* @param {String} fleetUID
|
|
1134
1187
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
|
|
1135
1188
|
*/
|
|
1136
1189
|
}, {
|
|
@@ -1143,8 +1196,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1143
1196
|
|
|
1144
1197
|
/**
|
|
1145
1198
|
* Get environment variables of a fleet
|
|
1146
|
-
* @param {String} projectOrProductUID
|
|
1147
|
-
* @param {String} fleetUID
|
|
1199
|
+
* @param {String} projectOrProductUID
|
|
1200
|
+
* @param {String} fleetUID
|
|
1148
1201
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1149
1202
|
*/
|
|
1150
1203
|
}, {
|
|
@@ -1160,23 +1213,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1160
1213
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEnvironmentVariables");
|
|
1161
1214
|
}
|
|
1162
1215
|
var pathParams = {
|
|
1163
|
-
projectOrProductUID: projectOrProductUID,
|
|
1164
|
-
fleetUID: fleetUID
|
|
1216
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1217
|
+
'fleetUID': fleetUID
|
|
1165
1218
|
};
|
|
1166
1219
|
var queryParams = {};
|
|
1167
1220
|
var headerParams = {};
|
|
1168
1221
|
var formParams = {};
|
|
1169
|
-
var authNames = [
|
|
1222
|
+
var authNames = ['personalAccessToken'];
|
|
1170
1223
|
var contentTypes = [];
|
|
1171
|
-
var accepts = [
|
|
1224
|
+
var accepts = ['application/json'];
|
|
1172
1225
|
var returnType = _EnvironmentVariables["default"];
|
|
1173
|
-
return this.apiClient.callApi(
|
|
1226
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1174
1227
|
}
|
|
1175
1228
|
|
|
1176
1229
|
/**
|
|
1177
1230
|
* Get environment variables of a fleet
|
|
1178
|
-
* @param {String} projectOrProductUID
|
|
1179
|
-
* @param {String} fleetUID
|
|
1231
|
+
* @param {String} projectOrProductUID
|
|
1232
|
+
* @param {String} fleetUID
|
|
1180
1233
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1181
1234
|
*/
|
|
1182
1235
|
}, {
|
|
@@ -1189,7 +1242,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1189
1242
|
|
|
1190
1243
|
/**
|
|
1191
1244
|
* Get Project Fleets
|
|
1192
|
-
* @param {String} projectOrProductUID
|
|
1245
|
+
* @param {String} projectOrProductUID
|
|
1193
1246
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
1194
1247
|
*/
|
|
1195
1248
|
}, {
|
|
@@ -1201,21 +1254,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1201
1254
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getFleets");
|
|
1202
1255
|
}
|
|
1203
1256
|
var pathParams = {
|
|
1204
|
-
projectOrProductUID: projectOrProductUID
|
|
1257
|
+
'projectOrProductUID': projectOrProductUID
|
|
1205
1258
|
};
|
|
1206
1259
|
var queryParams = {};
|
|
1207
1260
|
var headerParams = {};
|
|
1208
1261
|
var formParams = {};
|
|
1209
|
-
var authNames = [
|
|
1262
|
+
var authNames = ['personalAccessToken'];
|
|
1210
1263
|
var contentTypes = [];
|
|
1211
|
-
var accepts = [
|
|
1264
|
+
var accepts = ['application/json'];
|
|
1212
1265
|
var returnType = _GetDeviceFleets200Response["default"];
|
|
1213
|
-
return this.apiClient.callApi(
|
|
1266
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1214
1267
|
}
|
|
1215
1268
|
|
|
1216
1269
|
/**
|
|
1217
1270
|
* Get Project Fleets
|
|
1218
|
-
* @param {String} projectOrProductUID
|
|
1271
|
+
* @param {String} projectOrProductUID
|
|
1219
1272
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
1220
1273
|
*/
|
|
1221
1274
|
}, {
|
|
@@ -1228,7 +1281,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1228
1281
|
|
|
1229
1282
|
/**
|
|
1230
1283
|
* Get variable format for a notefile
|
|
1231
|
-
* @param {String} projectOrProductUID
|
|
1284
|
+
* @param {String} projectOrProductUID
|
|
1232
1285
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/NotefileSchema>} and HTTP response
|
|
1233
1286
|
*/
|
|
1234
1287
|
}, {
|
|
@@ -1240,21 +1293,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1240
1293
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getNotefileSchemas");
|
|
1241
1294
|
}
|
|
1242
1295
|
var pathParams = {
|
|
1243
|
-
projectOrProductUID: projectOrProductUID
|
|
1296
|
+
'projectOrProductUID': projectOrProductUID
|
|
1244
1297
|
};
|
|
1245
1298
|
var queryParams = {};
|
|
1246
1299
|
var headerParams = {};
|
|
1247
1300
|
var formParams = {};
|
|
1248
1301
|
var authNames = [];
|
|
1249
1302
|
var contentTypes = [];
|
|
1250
|
-
var accepts = [
|
|
1303
|
+
var accepts = ['application/json'];
|
|
1251
1304
|
var returnType = [_NotefileSchema["default"]];
|
|
1252
|
-
return this.apiClient.callApi(
|
|
1305
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/schemas', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1253
1306
|
}
|
|
1254
1307
|
|
|
1255
1308
|
/**
|
|
1256
1309
|
* Get variable format for a notefile
|
|
1257
|
-
* @param {String} projectOrProductUID
|
|
1310
|
+
* @param {String} projectOrProductUID
|
|
1258
1311
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/NotefileSchema>}
|
|
1259
1312
|
*/
|
|
1260
1313
|
}, {
|
|
@@ -1267,7 +1320,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1267
1320
|
|
|
1268
1321
|
/**
|
|
1269
1322
|
* Get Products within a Project
|
|
1270
|
-
* @param {String} projectOrProductUID
|
|
1323
|
+
* @param {String} projectOrProductUID
|
|
1271
1324
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProducts200Response} and HTTP response
|
|
1272
1325
|
*/
|
|
1273
1326
|
}, {
|
|
@@ -1279,21 +1332,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1279
1332
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProducts");
|
|
1280
1333
|
}
|
|
1281
1334
|
var pathParams = {
|
|
1282
|
-
projectOrProductUID: projectOrProductUID
|
|
1335
|
+
'projectOrProductUID': projectOrProductUID
|
|
1283
1336
|
};
|
|
1284
1337
|
var queryParams = {};
|
|
1285
1338
|
var headerParams = {};
|
|
1286
1339
|
var formParams = {};
|
|
1287
|
-
var authNames = [
|
|
1340
|
+
var authNames = ['personalAccessToken'];
|
|
1288
1341
|
var contentTypes = [];
|
|
1289
|
-
var accepts = [
|
|
1342
|
+
var accepts = ['application/json'];
|
|
1290
1343
|
var returnType = _GetProducts200Response["default"];
|
|
1291
|
-
return this.apiClient.callApi(
|
|
1344
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/products', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1292
1345
|
}
|
|
1293
1346
|
|
|
1294
1347
|
/**
|
|
1295
1348
|
* Get Products within a Project
|
|
1296
|
-
* @param {String} projectOrProductUID
|
|
1349
|
+
* @param {String} projectOrProductUID
|
|
1297
1350
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProducts200Response}
|
|
1298
1351
|
*/
|
|
1299
1352
|
}, {
|
|
@@ -1306,7 +1359,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1306
1359
|
|
|
1307
1360
|
/**
|
|
1308
1361
|
* Get a Project by ProjectUID
|
|
1309
|
-
* @param {String} projectOrProductUID
|
|
1362
|
+
* @param {String} projectOrProductUID
|
|
1310
1363
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
1311
1364
|
*/
|
|
1312
1365
|
}, {
|
|
@@ -1318,21 +1371,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1318
1371
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProject");
|
|
1319
1372
|
}
|
|
1320
1373
|
var pathParams = {
|
|
1321
|
-
projectOrProductUID: projectOrProductUID
|
|
1374
|
+
'projectOrProductUID': projectOrProductUID
|
|
1322
1375
|
};
|
|
1323
1376
|
var queryParams = {};
|
|
1324
1377
|
var headerParams = {};
|
|
1325
1378
|
var formParams = {};
|
|
1326
|
-
var authNames = [
|
|
1379
|
+
var authNames = ['personalAccessToken'];
|
|
1327
1380
|
var contentTypes = [];
|
|
1328
|
-
var accepts = [
|
|
1381
|
+
var accepts = ['application/json'];
|
|
1329
1382
|
var returnType = _Project["default"];
|
|
1330
|
-
return this.apiClient.callApi(
|
|
1383
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1331
1384
|
}
|
|
1332
1385
|
|
|
1333
1386
|
/**
|
|
1334
1387
|
* Get a Project by ProjectUID
|
|
1335
|
-
* @param {String} projectOrProductUID
|
|
1388
|
+
* @param {String} projectOrProductUID
|
|
1336
1389
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
1337
1390
|
*/
|
|
1338
1391
|
}, {
|
|
@@ -1345,7 +1398,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1345
1398
|
|
|
1346
1399
|
/**
|
|
1347
1400
|
* Get a Project by ProductUID
|
|
1348
|
-
* @param {String} productUID
|
|
1401
|
+
* @param {String} productUID
|
|
1349
1402
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
1350
1403
|
*/
|
|
1351
1404
|
}, {
|
|
@@ -1357,21 +1410,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1357
1410
|
throw new _Error["default"]("Missing the required parameter 'productUID' when calling getProjectByProduct");
|
|
1358
1411
|
}
|
|
1359
1412
|
var pathParams = {
|
|
1360
|
-
productUID: productUID
|
|
1413
|
+
'productUID': productUID
|
|
1361
1414
|
};
|
|
1362
1415
|
var queryParams = {};
|
|
1363
1416
|
var headerParams = {};
|
|
1364
1417
|
var formParams = {};
|
|
1365
|
-
var authNames = [
|
|
1418
|
+
var authNames = ['personalAccessToken'];
|
|
1366
1419
|
var contentTypes = [];
|
|
1367
|
-
var accepts = [
|
|
1420
|
+
var accepts = ['application/json'];
|
|
1368
1421
|
var returnType = _Project["default"];
|
|
1369
|
-
return this.apiClient.callApi(
|
|
1422
|
+
return this.apiClient.callApi('/v1/products/{productUID}/project', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1370
1423
|
}
|
|
1371
1424
|
|
|
1372
1425
|
/**
|
|
1373
1426
|
* Get a Project by ProductUID
|
|
1374
|
-
* @param {String} productUID
|
|
1427
|
+
* @param {String} productUID
|
|
1375
1428
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
1376
1429
|
*/
|
|
1377
1430
|
}, {
|
|
@@ -1384,7 +1437,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1384
1437
|
|
|
1385
1438
|
/**
|
|
1386
1439
|
* Get environment variable hierarchy for a device
|
|
1387
|
-
* @param {String} projectOrProductUID
|
|
1440
|
+
* @param {String} projectOrProductUID
|
|
1388
1441
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
|
|
1389
1442
|
*/
|
|
1390
1443
|
}, {
|
|
@@ -1396,21 +1449,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1396
1449
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectEnvironmentHierarchy");
|
|
1397
1450
|
}
|
|
1398
1451
|
var pathParams = {
|
|
1399
|
-
projectOrProductUID: projectOrProductUID
|
|
1452
|
+
'projectOrProductUID': projectOrProductUID
|
|
1400
1453
|
};
|
|
1401
1454
|
var queryParams = {};
|
|
1402
1455
|
var headerParams = {};
|
|
1403
1456
|
var formParams = {};
|
|
1404
|
-
var authNames = [
|
|
1457
|
+
var authNames = ['personalAccessToken'];
|
|
1405
1458
|
var contentTypes = [];
|
|
1406
|
-
var accepts = [
|
|
1459
|
+
var accepts = ['application/json'];
|
|
1407
1460
|
var returnType = _EnvTreeJsonNode["default"];
|
|
1408
|
-
return this.apiClient.callApi(
|
|
1461
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/environment_hierarchy', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1409
1462
|
}
|
|
1410
1463
|
|
|
1411
1464
|
/**
|
|
1412
1465
|
* Get environment variable hierarchy for a device
|
|
1413
|
-
* @param {String} projectOrProductUID
|
|
1466
|
+
* @param {String} projectOrProductUID
|
|
1414
1467
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
|
|
1415
1468
|
*/
|
|
1416
1469
|
}, {
|
|
@@ -1423,7 +1476,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1423
1476
|
|
|
1424
1477
|
/**
|
|
1425
1478
|
* Get environment variables of a project
|
|
1426
|
-
* @param {String} projectOrProductUID
|
|
1479
|
+
* @param {String} projectOrProductUID
|
|
1427
1480
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1428
1481
|
*/
|
|
1429
1482
|
}, {
|
|
@@ -1435,21 +1488,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1435
1488
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectEnvironmentVariables");
|
|
1436
1489
|
}
|
|
1437
1490
|
var pathParams = {
|
|
1438
|
-
projectOrProductUID: projectOrProductUID
|
|
1491
|
+
'projectOrProductUID': projectOrProductUID
|
|
1439
1492
|
};
|
|
1440
1493
|
var queryParams = {};
|
|
1441
1494
|
var headerParams = {};
|
|
1442
1495
|
var formParams = {};
|
|
1443
|
-
var authNames = [
|
|
1496
|
+
var authNames = ['personalAccessToken'];
|
|
1444
1497
|
var contentTypes = [];
|
|
1445
|
-
var accepts = [
|
|
1498
|
+
var accepts = ['application/json'];
|
|
1446
1499
|
var returnType = _EnvironmentVariables["default"];
|
|
1447
|
-
return this.apiClient.callApi(
|
|
1500
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/environment_variables', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1448
1501
|
}
|
|
1449
1502
|
|
|
1450
1503
|
/**
|
|
1451
1504
|
* Get environment variables of a project
|
|
1452
|
-
* @param {String} projectOrProductUID
|
|
1505
|
+
* @param {String} projectOrProductUID
|
|
1453
1506
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1454
1507
|
*/
|
|
1455
1508
|
}, {
|
|
@@ -1462,7 +1515,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1462
1515
|
|
|
1463
1516
|
/**
|
|
1464
1517
|
* Get Project Members
|
|
1465
|
-
* @param {String} projectOrProductUID
|
|
1518
|
+
* @param {String} projectOrProductUID
|
|
1466
1519
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectMembers200Response} and HTTP response
|
|
1467
1520
|
*/
|
|
1468
1521
|
}, {
|
|
@@ -1474,21 +1527,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1474
1527
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectMembers");
|
|
1475
1528
|
}
|
|
1476
1529
|
var pathParams = {
|
|
1477
|
-
projectOrProductUID: projectOrProductUID
|
|
1530
|
+
'projectOrProductUID': projectOrProductUID
|
|
1478
1531
|
};
|
|
1479
1532
|
var queryParams = {};
|
|
1480
1533
|
var headerParams = {};
|
|
1481
1534
|
var formParams = {};
|
|
1482
|
-
var authNames = [
|
|
1535
|
+
var authNames = ['personalAccessToken'];
|
|
1483
1536
|
var contentTypes = [];
|
|
1484
|
-
var accepts = [
|
|
1537
|
+
var accepts = ['application/json'];
|
|
1485
1538
|
var returnType = _GetProjectMembers200Response["default"];
|
|
1486
|
-
return this.apiClient.callApi(
|
|
1539
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/members', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1487
1540
|
}
|
|
1488
1541
|
|
|
1489
1542
|
/**
|
|
1490
1543
|
* Get Project Members
|
|
1491
|
-
* @param {String} projectOrProductUID
|
|
1544
|
+
* @param {String} projectOrProductUID
|
|
1492
1545
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectMembers200Response}
|
|
1493
1546
|
*/
|
|
1494
1547
|
}, {
|
|
@@ -1511,11 +1564,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1511
1564
|
var queryParams = {};
|
|
1512
1565
|
var headerParams = {};
|
|
1513
1566
|
var formParams = {};
|
|
1514
|
-
var authNames = [
|
|
1567
|
+
var authNames = ['personalAccessToken'];
|
|
1515
1568
|
var contentTypes = [];
|
|
1516
|
-
var accepts = [
|
|
1569
|
+
var accepts = ['application/json'];
|
|
1517
1570
|
var returnType = _GetProjects200Response["default"];
|
|
1518
|
-
return this.apiClient.callApi(
|
|
1571
|
+
return this.apiClient.callApi('/v1/projects', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1519
1572
|
}
|
|
1520
1573
|
|
|
1521
1574
|
/**
|
|
@@ -1532,18 +1585,18 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1532
1585
|
|
|
1533
1586
|
/**
|
|
1534
1587
|
* Update/cancel host or notecard firmware updates
|
|
1535
|
-
* @param {String} projectOrProductUID
|
|
1536
|
-
* @param {module:model/String} firmwareType
|
|
1537
|
-
* @param {module:model/String} action
|
|
1588
|
+
* @param {String} projectOrProductUID
|
|
1589
|
+
* @param {module:model/String} firmwareType
|
|
1590
|
+
* @param {module:model/String} action
|
|
1538
1591
|
* @param {Object} opts Optional parameters
|
|
1539
1592
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
1540
1593
|
* @param {Array.<String>} opts.tag Tag filter
|
|
1541
1594
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1542
|
-
* @param {String} opts.fleetUID
|
|
1595
|
+
* @param {String} opts.fleetUID
|
|
1543
1596
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1544
1597
|
* @param {Array.<String>} opts.location Location filter
|
|
1545
1598
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1546
|
-
* @param {Array.<String>} opts.productUID
|
|
1599
|
+
* @param {Array.<String>} opts.productUID
|
|
1547
1600
|
* @param {Array.<String>} opts.sku SKU filter
|
|
1548
1601
|
* @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
|
|
1549
1602
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
@@ -1552,7 +1605,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1552
1605
|
key: "performDfuActionWithHttpInfo",
|
|
1553
1606
|
value: function performDfuActionWithHttpInfo(projectOrProductUID, firmwareType, action, opts) {
|
|
1554
1607
|
opts = opts || {};
|
|
1555
|
-
var postBody = opts[
|
|
1608
|
+
var postBody = opts['dfuActionRequest'];
|
|
1556
1609
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1557
1610
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1558
1611
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling performDfuAction");
|
|
@@ -1566,44 +1619,44 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1566
1619
|
throw new _Error["default"]("Missing the required parameter 'action' when calling performDfuAction");
|
|
1567
1620
|
}
|
|
1568
1621
|
var pathParams = {
|
|
1569
|
-
projectOrProductUID: projectOrProductUID,
|
|
1570
|
-
firmwareType: firmwareType,
|
|
1571
|
-
action: action
|
|
1622
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1623
|
+
'firmwareType': firmwareType,
|
|
1624
|
+
'action': action
|
|
1572
1625
|
};
|
|
1573
1626
|
var queryParams = {
|
|
1574
|
-
deviceUID: this.apiClient.buildCollectionParam(opts[
|
|
1575
|
-
tag: this.apiClient.buildCollectionParam(opts[
|
|
1576
|
-
serialNumber: this.apiClient.buildCollectionParam(opts[
|
|
1577
|
-
fleetUID: opts[
|
|
1578
|
-
notecardFirmware: this.apiClient.buildCollectionParam(opts[
|
|
1579
|
-
location: this.apiClient.buildCollectionParam(opts[
|
|
1580
|
-
hostFirmware: this.apiClient.buildCollectionParam(opts[
|
|
1581
|
-
productUID: this.apiClient.buildCollectionParam(opts[
|
|
1582
|
-
sku: this.apiClient.buildCollectionParam(opts[
|
|
1627
|
+
'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
|
|
1628
|
+
'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
|
|
1629
|
+
'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
|
|
1630
|
+
'fleetUID': opts['fleetUID'],
|
|
1631
|
+
'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
|
|
1632
|
+
'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
|
|
1633
|
+
'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
|
|
1634
|
+
'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
|
|
1635
|
+
'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
|
|
1583
1636
|
};
|
|
1584
1637
|
var headerParams = {};
|
|
1585
1638
|
var formParams = {};
|
|
1586
|
-
var authNames = [
|
|
1587
|
-
var contentTypes = [
|
|
1588
|
-
var accepts = [
|
|
1639
|
+
var authNames = ['personalAccessToken'];
|
|
1640
|
+
var contentTypes = ['application/json'];
|
|
1641
|
+
var accepts = ['application/json'];
|
|
1589
1642
|
var returnType = null;
|
|
1590
|
-
return this.apiClient.callApi(
|
|
1643
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/dfu/{firmwareType}/{action}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1591
1644
|
}
|
|
1592
1645
|
|
|
1593
1646
|
/**
|
|
1594
1647
|
* Update/cancel host or notecard firmware updates
|
|
1595
|
-
* @param {String} projectOrProductUID
|
|
1596
|
-
* @param {module:model/String} firmwareType
|
|
1597
|
-
* @param {module:model/String} action
|
|
1648
|
+
* @param {String} projectOrProductUID
|
|
1649
|
+
* @param {module:model/String} firmwareType
|
|
1650
|
+
* @param {module:model/String} action
|
|
1598
1651
|
* @param {Object} opts Optional parameters
|
|
1599
1652
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
1600
1653
|
* @param {Array.<String>} opts.tag Tag filter
|
|
1601
1654
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1602
|
-
* @param {String} opts.fleetUID
|
|
1655
|
+
* @param {String} opts.fleetUID
|
|
1603
1656
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1604
1657
|
* @param {Array.<String>} opts.location Location filter
|
|
1605
1658
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1606
|
-
* @param {Array.<String>} opts.productUID
|
|
1659
|
+
* @param {Array.<String>} opts.productUID
|
|
1607
1660
|
* @param {Array.<String>} opts.sku SKU filter
|
|
1608
1661
|
* @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
|
|
1609
1662
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
@@ -1618,8 +1671,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1618
1671
|
|
|
1619
1672
|
/**
|
|
1620
1673
|
* Set environment variables of a fleet
|
|
1621
|
-
* @param {String} projectOrProductUID
|
|
1622
|
-
* @param {String} fleetUID
|
|
1674
|
+
* @param {String} projectOrProductUID
|
|
1675
|
+
* @param {String} fleetUID
|
|
1623
1676
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
1624
1677
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1625
1678
|
*/
|
|
@@ -1640,23 +1693,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1640
1693
|
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling setFleetEnvironmentVariables");
|
|
1641
1694
|
}
|
|
1642
1695
|
var pathParams = {
|
|
1643
|
-
projectOrProductUID: projectOrProductUID,
|
|
1644
|
-
fleetUID: fleetUID
|
|
1696
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1697
|
+
'fleetUID': fleetUID
|
|
1645
1698
|
};
|
|
1646
1699
|
var queryParams = {};
|
|
1647
1700
|
var headerParams = {};
|
|
1648
1701
|
var formParams = {};
|
|
1649
|
-
var authNames = [
|
|
1650
|
-
var contentTypes = [
|
|
1651
|
-
var accepts = [
|
|
1702
|
+
var authNames = ['personalAccessToken'];
|
|
1703
|
+
var contentTypes = ['application/json'];
|
|
1704
|
+
var accepts = ['application/json'];
|
|
1652
1705
|
var returnType = _EnvironmentVariables["default"];
|
|
1653
|
-
return this.apiClient.callApi(
|
|
1706
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1654
1707
|
}
|
|
1655
1708
|
|
|
1656
1709
|
/**
|
|
1657
1710
|
* Set environment variables of a fleet
|
|
1658
|
-
* @param {String} projectOrProductUID
|
|
1659
|
-
* @param {String} fleetUID
|
|
1711
|
+
* @param {String} projectOrProductUID
|
|
1712
|
+
* @param {String} fleetUID
|
|
1660
1713
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
1661
1714
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1662
1715
|
*/
|
|
@@ -1670,7 +1723,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1670
1723
|
|
|
1671
1724
|
/**
|
|
1672
1725
|
* Set the project-level event JSONata transformation
|
|
1673
|
-
* @param {String} projectOrProductUID
|
|
1726
|
+
* @param {String} projectOrProductUID
|
|
1674
1727
|
* @param {Object.<String, Object>} body JSONata expression which will be applied to each event before it is persisted and routed
|
|
1675
1728
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1676
1729
|
*/
|
|
@@ -1687,21 +1740,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1687
1740
|
throw new _Error["default"]("Missing the required parameter 'body' when calling setGlobalEventTransformation");
|
|
1688
1741
|
}
|
|
1689
1742
|
var pathParams = {
|
|
1690
|
-
projectOrProductUID: projectOrProductUID
|
|
1743
|
+
'projectOrProductUID': projectOrProductUID
|
|
1691
1744
|
};
|
|
1692
1745
|
var queryParams = {};
|
|
1693
1746
|
var headerParams = {};
|
|
1694
1747
|
var formParams = {};
|
|
1695
|
-
var authNames = [
|
|
1696
|
-
var contentTypes = [
|
|
1697
|
-
var accepts = [
|
|
1748
|
+
var authNames = ['personalAccessToken'];
|
|
1749
|
+
var contentTypes = ['application/json'];
|
|
1750
|
+
var accepts = ['application/json'];
|
|
1698
1751
|
var returnType = null;
|
|
1699
|
-
return this.apiClient.callApi(
|
|
1752
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/global-transformation', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1700
1753
|
}
|
|
1701
1754
|
|
|
1702
1755
|
/**
|
|
1703
1756
|
* Set the project-level event JSONata transformation
|
|
1704
|
-
* @param {String} projectOrProductUID
|
|
1757
|
+
* @param {String} projectOrProductUID
|
|
1705
1758
|
* @param {Object.<String, Object>} body JSONata expression which will be applied to each event before it is persisted and routed
|
|
1706
1759
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1707
1760
|
*/
|
|
@@ -1715,38 +1768,38 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1715
1768
|
|
|
1716
1769
|
/**
|
|
1717
1770
|
* Set environment variables of a project
|
|
1718
|
-
* @param {String} projectOrProductUID
|
|
1771
|
+
* @param {String} projectOrProductUID
|
|
1719
1772
|
* @param {Object} opts Optional parameters
|
|
1720
|
-
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1773
|
+
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1721
1774
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1722
1775
|
*/
|
|
1723
1776
|
}, {
|
|
1724
1777
|
key: "setProjectEnvironmentVariablesWithHttpInfo",
|
|
1725
1778
|
value: function setProjectEnvironmentVariablesWithHttpInfo(projectOrProductUID, opts) {
|
|
1726
1779
|
opts = opts || {};
|
|
1727
|
-
var postBody = opts[
|
|
1780
|
+
var postBody = opts['environmentVariables'];
|
|
1728
1781
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1729
1782
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1730
1783
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling setProjectEnvironmentVariables");
|
|
1731
1784
|
}
|
|
1732
1785
|
var pathParams = {
|
|
1733
|
-
projectOrProductUID: projectOrProductUID
|
|
1786
|
+
'projectOrProductUID': projectOrProductUID
|
|
1734
1787
|
};
|
|
1735
1788
|
var queryParams = {};
|
|
1736
1789
|
var headerParams = {};
|
|
1737
1790
|
var formParams = {};
|
|
1738
|
-
var authNames = [
|
|
1739
|
-
var contentTypes = [
|
|
1740
|
-
var accepts = [
|
|
1791
|
+
var authNames = ['personalAccessToken'];
|
|
1792
|
+
var contentTypes = ['application/json'];
|
|
1793
|
+
var accepts = ['application/json'];
|
|
1741
1794
|
var returnType = _EnvironmentVariables["default"];
|
|
1742
|
-
return this.apiClient.callApi(
|
|
1795
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1743
1796
|
}
|
|
1744
1797
|
|
|
1745
1798
|
/**
|
|
1746
1799
|
* Set environment variables of a project
|
|
1747
|
-
* @param {String} projectOrProductUID
|
|
1800
|
+
* @param {String} projectOrProductUID
|
|
1748
1801
|
* @param {Object} opts Optional parameters
|
|
1749
|
-
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1802
|
+
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1750
1803
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1751
1804
|
*/
|
|
1752
1805
|
}, {
|
|
@@ -1759,8 +1812,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1759
1812
|
|
|
1760
1813
|
/**
|
|
1761
1814
|
* Update Fleet
|
|
1762
|
-
* @param {String} projectOrProductUID
|
|
1763
|
-
* @param {String} fleetUID
|
|
1815
|
+
* @param {String} projectOrProductUID
|
|
1816
|
+
* @param {String} fleetUID
|
|
1764
1817
|
* @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
|
|
1765
1818
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
1766
1819
|
*/
|
|
@@ -1781,23 +1834,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1781
1834
|
throw new _Error["default"]("Missing the required parameter 'updateFleetRequest' when calling updateFleet");
|
|
1782
1835
|
}
|
|
1783
1836
|
var pathParams = {
|
|
1784
|
-
projectOrProductUID: projectOrProductUID,
|
|
1785
|
-
fleetUID: fleetUID
|
|
1837
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1838
|
+
'fleetUID': fleetUID
|
|
1786
1839
|
};
|
|
1787
1840
|
var queryParams = {};
|
|
1788
1841
|
var headerParams = {};
|
|
1789
1842
|
var formParams = {};
|
|
1790
|
-
var authNames = [
|
|
1791
|
-
var contentTypes = [
|
|
1792
|
-
var accepts = [
|
|
1843
|
+
var authNames = ['personalAccessToken'];
|
|
1844
|
+
var contentTypes = ['application/json'];
|
|
1845
|
+
var accepts = ['application/json'];
|
|
1793
1846
|
var returnType = _Fleet["default"];
|
|
1794
|
-
return this.apiClient.callApi(
|
|
1847
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1795
1848
|
}
|
|
1796
1849
|
|
|
1797
1850
|
/**
|
|
1798
1851
|
* Update Fleet
|
|
1799
|
-
* @param {String} projectOrProductUID
|
|
1800
|
-
* @param {String} fleetUID
|
|
1852
|
+
* @param {String} projectOrProductUID
|
|
1853
|
+
* @param {String} fleetUID
|
|
1801
1854
|
* @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
|
|
1802
1855
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
1803
1856
|
*/
|
|
@@ -1811,9 +1864,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1811
1864
|
|
|
1812
1865
|
/**
|
|
1813
1866
|
* Upload firmware binary
|
|
1814
|
-
* @param {String} projectOrProductUID
|
|
1815
|
-
* @param {module:model/String} firmwareType
|
|
1816
|
-
* @param {String} filename
|
|
1867
|
+
* @param {String} projectOrProductUID
|
|
1868
|
+
* @param {module:model/String} firmwareType
|
|
1869
|
+
* @param {String} filename
|
|
1817
1870
|
* @param {File} body contents of the firmware binary
|
|
1818
1871
|
* @param {Object} opts Optional parameters
|
|
1819
1872
|
* @param {String} opts.version Firmware version (optional). If not provided, the version will be extracted from firmware binary if available, otherwise left empty
|
|
@@ -1842,28 +1895,28 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1842
1895
|
throw new _Error["default"]("Missing the required parameter 'body' when calling uploadFirmware");
|
|
1843
1896
|
}
|
|
1844
1897
|
var pathParams = {
|
|
1845
|
-
projectOrProductUID: projectOrProductUID,
|
|
1846
|
-
firmwareType: firmwareType,
|
|
1847
|
-
filename: filename
|
|
1898
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1899
|
+
'firmwareType': firmwareType,
|
|
1900
|
+
'filename': filename
|
|
1848
1901
|
};
|
|
1849
1902
|
var queryParams = {
|
|
1850
|
-
version: opts[
|
|
1851
|
-
notes: opts[
|
|
1903
|
+
'version': opts['version'],
|
|
1904
|
+
'notes': opts['notes']
|
|
1852
1905
|
};
|
|
1853
1906
|
var headerParams = {};
|
|
1854
1907
|
var formParams = {};
|
|
1855
|
-
var authNames = [
|
|
1856
|
-
var contentTypes = [
|
|
1857
|
-
var accepts = [
|
|
1908
|
+
var authNames = ['personalAccessToken'];
|
|
1909
|
+
var contentTypes = ['application/octet-stream'];
|
|
1910
|
+
var accepts = ['application/json'];
|
|
1858
1911
|
var returnType = _FirmwareInfo["default"];
|
|
1859
|
-
return this.apiClient.callApi(
|
|
1912
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/firmware/{firmwareType}/{filename}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1860
1913
|
}
|
|
1861
1914
|
|
|
1862
1915
|
/**
|
|
1863
1916
|
* Upload firmware binary
|
|
1864
|
-
* @param {String} projectOrProductUID
|
|
1865
|
-
* @param {module:model/String} firmwareType
|
|
1866
|
-
* @param {String} filename
|
|
1917
|
+
* @param {String} projectOrProductUID
|
|
1918
|
+
* @param {module:model/String} firmwareType
|
|
1919
|
+
* @param {String} filename
|
|
1867
1920
|
* @param {File} body contents of the firmware binary
|
|
1868
1921
|
* @param {Object} opts Optional parameters
|
|
1869
1922
|
* @param {String} opts.version Firmware version (optional). If not provided, the version will be extracted from firmware binary if available, otherwise left empty
|