@blues-inc/notehub-js 3.0.0 → 4.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 +247 -247
- package/dist/ApiClient.js +150 -155
- 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 +471 -511
- 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 +381 -381
- package/dist/api/RouteApi.js +77 -77
- package/dist/api/UsageApi.js +117 -51
- package/dist/api/WebhookApi.js +51 -51
- package/dist/index.js +21 -14
- package/dist/model/AddDeviceToFleetsRequest.js +8 -8
- package/dist/model/Alert.js +76 -74
- package/dist/model/AlertDataInner.js +35 -35
- 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 +25 -17
- package/dist/model/CreateMonitor.js +126 -125
- package/dist/model/CreateProductRequest.js +22 -22
- package/dist/model/CreateProjectRequest.js +16 -16
- package/dist/model/CreateUpdateRepository.js +17 -17
- package/dist/model/CurrentFirmware.js +12 -12
- package/dist/model/DFUEnv.js +12 -12
- package/dist/model/DFUState.js +65 -65
- package/dist/model/DataField.js +7 -7
- package/dist/model/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 +115 -101
- 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 +43 -35
- package/dist/model/FleetConnectivityAssurance.js +8 -31
- package/dist/model/GetAlerts200Response.js +15 -14
- package/dist/model/GetBillingAccounts200Response.js +10 -9
- package/dist/model/GetDataUsage200Response.js +10 -9
- package/dist/model/GetDataUsage200ResponseDataInner.js +41 -40
- 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 +132 -0
- package/dist/model/GetSessionsUsage200Response.js +12 -11
- 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 +100 -99
- package/dist/model/MonitorAlertRoutesInner.js +9 -10
- package/dist/model/MqttRoute.js +68 -68
- package/dist/model/Note.js +95 -15
- package/dist/model/{ListNotefiles200Response.js → NoteInput.js} +30 -37
- package/dist/model/Notefile.js +159 -0
- 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/SatellitePlan.js +26 -26
- 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 +38 -30
- package/dist/model/UploadMetadata.js +64 -64
- package/dist/model/UsageData.js +18 -18
- package/dist/model/UsageEventsData.js +48 -37
- package/dist/model/UsageEventsResponse.js +12 -11
- package/dist/model/UsageRouteLogsData.js +27 -27
- package/dist/model/UsageSessionsData.js +41 -31
- 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/model/ListPendingNotefiles200Response.js +0 -115
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 4.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
|
}, {
|
|
@@ -612,7 +612,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
612
612
|
|
|
613
613
|
/**
|
|
614
614
|
* Enable the project-level event JSONata transformation
|
|
615
|
-
* @param {String} projectOrProductUID
|
|
615
|
+
* @param {String} projectOrProductUID
|
|
616
616
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
617
617
|
*/
|
|
618
618
|
}, {
|
|
@@ -624,21 +624,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
624
624
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling enableGlobalEventTransformation");
|
|
625
625
|
}
|
|
626
626
|
var pathParams = {
|
|
627
|
-
projectOrProductUID: projectOrProductUID
|
|
627
|
+
'projectOrProductUID': projectOrProductUID
|
|
628
628
|
};
|
|
629
629
|
var queryParams = {};
|
|
630
630
|
var headerParams = {};
|
|
631
631
|
var formParams = {};
|
|
632
|
-
var authNames = [
|
|
632
|
+
var authNames = ['personalAccessToken'];
|
|
633
633
|
var contentTypes = [];
|
|
634
|
-
var accepts = [
|
|
634
|
+
var accepts = ['application/json'];
|
|
635
635
|
var returnType = null;
|
|
636
|
-
return this.apiClient.callApi(
|
|
636
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/global-transformation/enable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
637
637
|
}
|
|
638
638
|
|
|
639
639
|
/**
|
|
640
640
|
* Enable the project-level event JSONata transformation
|
|
641
|
-
* @param {String} projectOrProductUID
|
|
641
|
+
* @param {String} projectOrProductUID
|
|
642
642
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
643
643
|
*/
|
|
644
644
|
}, {
|
|
@@ -651,9 +651,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
651
651
|
|
|
652
652
|
/**
|
|
653
653
|
* Get device DFU history for host or Notecard firmware
|
|
654
|
-
* @param {String} projectOrProductUID
|
|
655
|
-
* @param {String} deviceUID
|
|
656
|
-
* @param {module:model/String} firmwareType
|
|
654
|
+
* @param {String} projectOrProductUID
|
|
655
|
+
* @param {String} deviceUID
|
|
656
|
+
* @param {module:model/String} firmwareType
|
|
657
657
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuHistory} and HTTP response
|
|
658
658
|
*/
|
|
659
659
|
}, {
|
|
@@ -673,25 +673,25 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
673
673
|
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDeviceDfuHistory");
|
|
674
674
|
}
|
|
675
675
|
var pathParams = {
|
|
676
|
-
projectOrProductUID: projectOrProductUID,
|
|
677
|
-
deviceUID: deviceUID,
|
|
678
|
-
firmwareType: firmwareType
|
|
676
|
+
'projectOrProductUID': projectOrProductUID,
|
|
677
|
+
'deviceUID': deviceUID,
|
|
678
|
+
'firmwareType': firmwareType
|
|
679
679
|
};
|
|
680
680
|
var queryParams = {};
|
|
681
681
|
var headerParams = {};
|
|
682
682
|
var formParams = {};
|
|
683
|
-
var authNames = [
|
|
683
|
+
var authNames = ['personalAccessToken'];
|
|
684
684
|
var contentTypes = [];
|
|
685
|
-
var accepts = [
|
|
685
|
+
var accepts = ['application/json'];
|
|
686
686
|
var returnType = _DeviceDfuHistory["default"];
|
|
687
|
-
return this.apiClient.callApi(
|
|
687
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/dfu/{firmwareType}/history', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
688
688
|
}
|
|
689
689
|
|
|
690
690
|
/**
|
|
691
691
|
* Get device DFU history for host or Notecard firmware
|
|
692
|
-
* @param {String} projectOrProductUID
|
|
693
|
-
* @param {String} deviceUID
|
|
694
|
-
* @param {module:model/String} firmwareType
|
|
692
|
+
* @param {String} projectOrProductUID
|
|
693
|
+
* @param {String} deviceUID
|
|
694
|
+
* @param {module:model/String} firmwareType
|
|
695
695
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuHistory}
|
|
696
696
|
*/
|
|
697
697
|
}, {
|
|
@@ -704,9 +704,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
704
704
|
|
|
705
705
|
/**
|
|
706
706
|
* Get device DFU history for host or Notecard firmware
|
|
707
|
-
* @param {String} projectOrProductUID
|
|
708
|
-
* @param {String} deviceUID
|
|
709
|
-
* @param {module:model/String} firmwareType
|
|
707
|
+
* @param {String} projectOrProductUID
|
|
708
|
+
* @param {String} deviceUID
|
|
709
|
+
* @param {module:model/String} firmwareType
|
|
710
710
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuStatus} and HTTP response
|
|
711
711
|
*/
|
|
712
712
|
}, {
|
|
@@ -726,25 +726,25 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
726
726
|
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDeviceDfuStatus");
|
|
727
727
|
}
|
|
728
728
|
var pathParams = {
|
|
729
|
-
projectOrProductUID: projectOrProductUID,
|
|
730
|
-
deviceUID: deviceUID,
|
|
731
|
-
firmwareType: firmwareType
|
|
729
|
+
'projectOrProductUID': projectOrProductUID,
|
|
730
|
+
'deviceUID': deviceUID,
|
|
731
|
+
'firmwareType': firmwareType
|
|
732
732
|
};
|
|
733
733
|
var queryParams = {};
|
|
734
734
|
var headerParams = {};
|
|
735
735
|
var formParams = {};
|
|
736
|
-
var authNames = [
|
|
736
|
+
var authNames = ['personalAccessToken'];
|
|
737
737
|
var contentTypes = [];
|
|
738
|
-
var accepts = [
|
|
738
|
+
var accepts = ['application/json'];
|
|
739
739
|
var returnType = _DeviceDfuStatus["default"];
|
|
740
|
-
return this.apiClient.callApi(
|
|
740
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/dfu/{firmwareType}/status', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
741
741
|
}
|
|
742
742
|
|
|
743
743
|
/**
|
|
744
744
|
* Get device DFU history for host or Notecard firmware
|
|
745
|
-
* @param {String} projectOrProductUID
|
|
746
|
-
* @param {String} deviceUID
|
|
747
|
-
* @param {module:model/String} firmwareType
|
|
745
|
+
* @param {String} projectOrProductUID
|
|
746
|
+
* @param {String} deviceUID
|
|
747
|
+
* @param {module:model/String} firmwareType
|
|
748
748
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuStatus}
|
|
749
749
|
*/
|
|
750
750
|
}, {
|
|
@@ -757,8 +757,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
757
757
|
|
|
758
758
|
/**
|
|
759
759
|
* Get Device Fleets
|
|
760
|
-
* @param {String} projectOrProductUID
|
|
761
|
-
* @param {String} deviceUID
|
|
760
|
+
* @param {String} projectOrProductUID
|
|
761
|
+
* @param {String} deviceUID
|
|
762
762
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
763
763
|
*/
|
|
764
764
|
}, {
|
|
@@ -774,23 +774,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
774
774
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceFleets");
|
|
775
775
|
}
|
|
776
776
|
var pathParams = {
|
|
777
|
-
projectOrProductUID: projectOrProductUID,
|
|
778
|
-
deviceUID: deviceUID
|
|
777
|
+
'projectOrProductUID': projectOrProductUID,
|
|
778
|
+
'deviceUID': deviceUID
|
|
779
779
|
};
|
|
780
780
|
var queryParams = {};
|
|
781
781
|
var headerParams = {};
|
|
782
782
|
var formParams = {};
|
|
783
|
-
var authNames = [
|
|
783
|
+
var authNames = ['personalAccessToken'];
|
|
784
784
|
var contentTypes = [];
|
|
785
|
-
var accepts = [
|
|
785
|
+
var accepts = ['application/json'];
|
|
786
786
|
var returnType = _GetDeviceFleets200Response["default"];
|
|
787
|
-
return this.apiClient.callApi(
|
|
787
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/fleets', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
788
788
|
}
|
|
789
789
|
|
|
790
790
|
/**
|
|
791
791
|
* Get Device Fleets
|
|
792
|
-
* @param {String} projectOrProductUID
|
|
793
|
-
* @param {String} deviceUID
|
|
792
|
+
* @param {String} projectOrProductUID
|
|
793
|
+
* @param {String} deviceUID
|
|
794
794
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
795
795
|
*/
|
|
796
796
|
}, {
|
|
@@ -803,8 +803,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
803
803
|
|
|
804
804
|
/**
|
|
805
805
|
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
806
|
-
* @param {String} projectOrProductUID
|
|
807
|
-
* @param {module:model/String} firmwareType
|
|
806
|
+
* @param {String} projectOrProductUID
|
|
807
|
+
* @param {module:model/String} firmwareType
|
|
808
808
|
* @param {Object} opts Optional parameters
|
|
809
809
|
* @param {Number} opts.pageSize (default to 50)
|
|
810
810
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -813,11 +813,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
813
813
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
814
814
|
* @param {Array.<String>} opts.tag Tag filter
|
|
815
815
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
816
|
-
* @param {String} opts.fleetUID
|
|
816
|
+
* @param {String} opts.fleetUID
|
|
817
817
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
818
818
|
* @param {Array.<String>} opts.location Location filter
|
|
819
819
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
820
|
-
* @param {Array.<String>} opts.productUID
|
|
820
|
+
* @param {Array.<String>} opts.productUID
|
|
821
821
|
* @param {Array.<String>} opts.sku SKU filter
|
|
822
822
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuHistoryPage} and HTTP response
|
|
823
823
|
*/
|
|
@@ -835,37 +835,37 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
835
835
|
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDevicesDfuHistory");
|
|
836
836
|
}
|
|
837
837
|
var pathParams = {
|
|
838
|
-
projectOrProductUID: projectOrProductUID,
|
|
839
|
-
firmwareType: firmwareType
|
|
838
|
+
'projectOrProductUID': projectOrProductUID,
|
|
839
|
+
'firmwareType': firmwareType
|
|
840
840
|
};
|
|
841
841
|
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[
|
|
842
|
+
'pageSize': opts['pageSize'],
|
|
843
|
+
'pageNum': opts['pageNum'],
|
|
844
|
+
'sortBy': opts['sortBy'],
|
|
845
|
+
'sortOrder': opts['sortOrder'],
|
|
846
|
+
'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
|
|
847
|
+
'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
|
|
848
|
+
'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
|
|
849
|
+
'fleetUID': opts['fleetUID'],
|
|
850
|
+
'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
|
|
851
|
+
'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
|
|
852
|
+
'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
|
|
853
|
+
'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
|
|
854
|
+
'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
|
|
855
855
|
};
|
|
856
856
|
var headerParams = {};
|
|
857
857
|
var formParams = {};
|
|
858
|
-
var authNames = [
|
|
858
|
+
var authNames = ['personalAccessToken'];
|
|
859
859
|
var contentTypes = [];
|
|
860
|
-
var accepts = [
|
|
860
|
+
var accepts = ['application/json'];
|
|
861
861
|
var returnType = _DeviceDfuHistoryPage["default"];
|
|
862
|
-
return this.apiClient.callApi(
|
|
862
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/dfu/{firmwareType}/history', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
863
863
|
}
|
|
864
864
|
|
|
865
865
|
/**
|
|
866
866
|
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
867
|
-
* @param {String} projectOrProductUID
|
|
868
|
-
* @param {module:model/String} firmwareType
|
|
867
|
+
* @param {String} projectOrProductUID
|
|
868
|
+
* @param {module:model/String} firmwareType
|
|
869
869
|
* @param {Object} opts Optional parameters
|
|
870
870
|
* @param {Number} opts.pageSize (default to 50)
|
|
871
871
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -874,11 +874,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
874
874
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
875
875
|
* @param {Array.<String>} opts.tag Tag filter
|
|
876
876
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
877
|
-
* @param {String} opts.fleetUID
|
|
877
|
+
* @param {String} opts.fleetUID
|
|
878
878
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
879
879
|
* @param {Array.<String>} opts.location Location filter
|
|
880
880
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
881
|
-
* @param {Array.<String>} opts.productUID
|
|
881
|
+
* @param {Array.<String>} opts.productUID
|
|
882
882
|
* @param {Array.<String>} opts.sku SKU filter
|
|
883
883
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuHistoryPage}
|
|
884
884
|
*/
|
|
@@ -892,8 +892,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
892
892
|
|
|
893
893
|
/**
|
|
894
894
|
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
895
|
-
* @param {String} projectOrProductUID
|
|
896
|
-
* @param {module:model/String} firmwareType
|
|
895
|
+
* @param {String} projectOrProductUID
|
|
896
|
+
* @param {module:model/String} firmwareType
|
|
897
897
|
* @param {Object} opts Optional parameters
|
|
898
898
|
* @param {Number} opts.pageSize (default to 50)
|
|
899
899
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -902,11 +902,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
902
902
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
903
903
|
* @param {Array.<String>} opts.tag Tag filter
|
|
904
904
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
905
|
-
* @param {String} opts.fleetUID
|
|
905
|
+
* @param {String} opts.fleetUID
|
|
906
906
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
907
907
|
* @param {Array.<String>} opts.location Location filter
|
|
908
908
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
909
|
-
* @param {Array.<String>} opts.productUID
|
|
909
|
+
* @param {Array.<String>} opts.productUID
|
|
910
910
|
* @param {Array.<String>} opts.sku SKU filter
|
|
911
911
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuStatusPage} and HTTP response
|
|
912
912
|
*/
|
|
@@ -924,37 +924,37 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
924
924
|
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDevicesDfuStatus");
|
|
925
925
|
}
|
|
926
926
|
var pathParams = {
|
|
927
|
-
projectOrProductUID: projectOrProductUID,
|
|
928
|
-
firmwareType: firmwareType
|
|
927
|
+
'projectOrProductUID': projectOrProductUID,
|
|
928
|
+
'firmwareType': firmwareType
|
|
929
929
|
};
|
|
930
930
|
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[
|
|
931
|
+
'pageSize': opts['pageSize'],
|
|
932
|
+
'pageNum': opts['pageNum'],
|
|
933
|
+
'sortBy': opts['sortBy'],
|
|
934
|
+
'sortOrder': opts['sortOrder'],
|
|
935
|
+
'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
|
|
936
|
+
'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
|
|
937
|
+
'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
|
|
938
|
+
'fleetUID': opts['fleetUID'],
|
|
939
|
+
'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
|
|
940
|
+
'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
|
|
941
|
+
'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
|
|
942
|
+
'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
|
|
943
|
+
'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
|
|
944
944
|
};
|
|
945
945
|
var headerParams = {};
|
|
946
946
|
var formParams = {};
|
|
947
|
-
var authNames = [
|
|
947
|
+
var authNames = ['personalAccessToken'];
|
|
948
948
|
var contentTypes = [];
|
|
949
|
-
var accepts = [
|
|
949
|
+
var accepts = ['application/json'];
|
|
950
950
|
var returnType = _DeviceDfuStatusPage["default"];
|
|
951
|
-
return this.apiClient.callApi(
|
|
951
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/dfu/{firmwareType}/status', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
952
952
|
}
|
|
953
953
|
|
|
954
954
|
/**
|
|
955
955
|
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
956
|
-
* @param {String} projectOrProductUID
|
|
957
|
-
* @param {module:model/String} firmwareType
|
|
956
|
+
* @param {String} projectOrProductUID
|
|
957
|
+
* @param {module:model/String} firmwareType
|
|
958
958
|
* @param {Object} opts Optional parameters
|
|
959
959
|
* @param {Number} opts.pageSize (default to 50)
|
|
960
960
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -963,11 +963,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
963
963
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
964
964
|
* @param {Array.<String>} opts.tag Tag filter
|
|
965
965
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
966
|
-
* @param {String} opts.fleetUID
|
|
966
|
+
* @param {String} opts.fleetUID
|
|
967
967
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
968
968
|
* @param {Array.<String>} opts.location Location filter
|
|
969
969
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
970
|
-
* @param {Array.<String>} opts.productUID
|
|
970
|
+
* @param {Array.<String>} opts.productUID
|
|
971
971
|
* @param {Array.<String>} opts.sku SKU filter
|
|
972
972
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuStatusPage}
|
|
973
973
|
*/
|
|
@@ -981,15 +981,15 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
981
981
|
|
|
982
982
|
/**
|
|
983
983
|
* Get Available Firmware Information
|
|
984
|
-
* @param {String} projectOrProductUID
|
|
984
|
+
* @param {String} projectOrProductUID
|
|
985
985
|
* @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
|
|
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
|
|
993
993
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/FirmwareInfo>} and HTTP response
|
|
994
994
|
*/
|
|
995
995
|
}, {
|
|
@@ -1002,37 +1002,37 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1002
1002
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getFirmwareInfo");
|
|
1003
1003
|
}
|
|
1004
1004
|
var pathParams = {
|
|
1005
|
-
projectOrProductUID: projectOrProductUID
|
|
1005
|
+
'projectOrProductUID': projectOrProductUID
|
|
1006
1006
|
};
|
|
1007
1007
|
var queryParams = {
|
|
1008
|
-
product: opts[
|
|
1009
|
-
firmwareType: opts[
|
|
1010
|
-
version: opts[
|
|
1011
|
-
target: opts[
|
|
1012
|
-
filename: opts[
|
|
1013
|
-
md5: opts[
|
|
1014
|
-
unpublished: opts[
|
|
1008
|
+
'product': opts['product'],
|
|
1009
|
+
'firmwareType': opts['firmwareType'],
|
|
1010
|
+
'version': opts['version'],
|
|
1011
|
+
'target': opts['target'],
|
|
1012
|
+
'filename': opts['filename'],
|
|
1013
|
+
'md5': opts['md5'],
|
|
1014
|
+
'unpublished': opts['unpublished']
|
|
1015
1015
|
};
|
|
1016
1016
|
var headerParams = {};
|
|
1017
1017
|
var formParams = {};
|
|
1018
|
-
var authNames = [
|
|
1018
|
+
var authNames = ['personalAccessToken'];
|
|
1019
1019
|
var contentTypes = [];
|
|
1020
|
-
var accepts = [
|
|
1020
|
+
var accepts = ['application/json'];
|
|
1021
1021
|
var returnType = [_FirmwareInfo["default"]];
|
|
1022
|
-
return this.apiClient.callApi(
|
|
1022
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/firmware', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1023
1023
|
}
|
|
1024
1024
|
|
|
1025
1025
|
/**
|
|
1026
1026
|
* Get Available Firmware Information
|
|
1027
|
-
* @param {String} projectOrProductUID
|
|
1027
|
+
* @param {String} projectOrProductUID
|
|
1028
1028
|
* @param {Object} opts Optional parameters
|
|
1029
|
-
* @param {String} opts.product
|
|
1030
|
-
* @param {String} opts.firmwareType
|
|
1031
|
-
* @param {String} opts.version
|
|
1032
|
-
* @param {String} opts.target
|
|
1033
|
-
* @param {String} opts.filename
|
|
1034
|
-
* @param {String} opts.md5
|
|
1035
|
-
* @param {Boolean} opts.unpublished
|
|
1029
|
+
* @param {String} opts.product
|
|
1030
|
+
* @param {String} opts.firmwareType
|
|
1031
|
+
* @param {String} opts.version
|
|
1032
|
+
* @param {String} opts.target
|
|
1033
|
+
* @param {String} opts.filename
|
|
1034
|
+
* @param {String} opts.md5
|
|
1035
|
+
* @param {Boolean} opts.unpublished
|
|
1036
1036
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/FirmwareInfo>}
|
|
1037
1037
|
*/
|
|
1038
1038
|
}, {
|
|
@@ -1045,8 +1045,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1045
1045
|
|
|
1046
1046
|
/**
|
|
1047
1047
|
* Get Fleet
|
|
1048
|
-
* @param {String} projectOrProductUID
|
|
1049
|
-
* @param {String} fleetUID
|
|
1048
|
+
* @param {String} projectOrProductUID
|
|
1049
|
+
* @param {String} fleetUID
|
|
1050
1050
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
1051
1051
|
*/
|
|
1052
1052
|
}, {
|
|
@@ -1062,23 +1062,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1062
1062
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleet");
|
|
1063
1063
|
}
|
|
1064
1064
|
var pathParams = {
|
|
1065
|
-
projectOrProductUID: projectOrProductUID,
|
|
1066
|
-
fleetUID: fleetUID
|
|
1065
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1066
|
+
'fleetUID': fleetUID
|
|
1067
1067
|
};
|
|
1068
1068
|
var queryParams = {};
|
|
1069
1069
|
var headerParams = {};
|
|
1070
1070
|
var formParams = {};
|
|
1071
|
-
var authNames = [
|
|
1071
|
+
var authNames = ['personalAccessToken'];
|
|
1072
1072
|
var contentTypes = [];
|
|
1073
|
-
var accepts = [
|
|
1073
|
+
var accepts = ['application/json'];
|
|
1074
1074
|
var returnType = _Fleet["default"];
|
|
1075
|
-
return this.apiClient.callApi(
|
|
1075
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1076
1076
|
}
|
|
1077
1077
|
|
|
1078
1078
|
/**
|
|
1079
1079
|
* Get Fleet
|
|
1080
|
-
* @param {String} projectOrProductUID
|
|
1081
|
-
* @param {String} fleetUID
|
|
1080
|
+
* @param {String} projectOrProductUID
|
|
1081
|
+
* @param {String} fleetUID
|
|
1082
1082
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
1083
1083
|
*/
|
|
1084
1084
|
}, {
|
|
@@ -1091,8 +1091,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1091
1091
|
|
|
1092
1092
|
/**
|
|
1093
1093
|
* Get environment variable hierarchy for a device
|
|
1094
|
-
* @param {String} projectOrProductUID
|
|
1095
|
-
* @param {String} fleetUID
|
|
1094
|
+
* @param {String} projectOrProductUID
|
|
1095
|
+
* @param {String} fleetUID
|
|
1096
1096
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
|
|
1097
1097
|
*/
|
|
1098
1098
|
}, {
|
|
@@ -1108,23 +1108,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1108
1108
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEnvironmentHierarchy");
|
|
1109
1109
|
}
|
|
1110
1110
|
var pathParams = {
|
|
1111
|
-
projectOrProductUID: projectOrProductUID,
|
|
1112
|
-
fleetUID: fleetUID
|
|
1111
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1112
|
+
'fleetUID': fleetUID
|
|
1113
1113
|
};
|
|
1114
1114
|
var queryParams = {};
|
|
1115
1115
|
var headerParams = {};
|
|
1116
1116
|
var formParams = {};
|
|
1117
|
-
var authNames = [
|
|
1117
|
+
var authNames = ['personalAccessToken'];
|
|
1118
1118
|
var contentTypes = [];
|
|
1119
|
-
var accepts = [
|
|
1119
|
+
var accepts = ['application/json'];
|
|
1120
1120
|
var returnType = _EnvTreeJsonNode["default"];
|
|
1121
|
-
return this.apiClient.callApi(
|
|
1121
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_hierarchy', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1122
1122
|
}
|
|
1123
1123
|
|
|
1124
1124
|
/**
|
|
1125
1125
|
* Get environment variable hierarchy for a device
|
|
1126
|
-
* @param {String} projectOrProductUID
|
|
1127
|
-
* @param {String} fleetUID
|
|
1126
|
+
* @param {String} projectOrProductUID
|
|
1127
|
+
* @param {String} fleetUID
|
|
1128
1128
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
|
|
1129
1129
|
*/
|
|
1130
1130
|
}, {
|
|
@@ -1137,8 +1137,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1137
1137
|
|
|
1138
1138
|
/**
|
|
1139
1139
|
* Get environment variables of a fleet
|
|
1140
|
-
* @param {String} projectOrProductUID
|
|
1141
|
-
* @param {String} fleetUID
|
|
1140
|
+
* @param {String} projectOrProductUID
|
|
1141
|
+
* @param {String} fleetUID
|
|
1142
1142
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1143
1143
|
*/
|
|
1144
1144
|
}, {
|
|
@@ -1154,23 +1154,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1154
1154
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEnvironmentVariables");
|
|
1155
1155
|
}
|
|
1156
1156
|
var pathParams = {
|
|
1157
|
-
projectOrProductUID: projectOrProductUID,
|
|
1158
|
-
fleetUID: fleetUID
|
|
1157
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1158
|
+
'fleetUID': fleetUID
|
|
1159
1159
|
};
|
|
1160
1160
|
var queryParams = {};
|
|
1161
1161
|
var headerParams = {};
|
|
1162
1162
|
var formParams = {};
|
|
1163
|
-
var authNames = [
|
|
1163
|
+
var authNames = ['personalAccessToken'];
|
|
1164
1164
|
var contentTypes = [];
|
|
1165
|
-
var accepts = [
|
|
1165
|
+
var accepts = ['application/json'];
|
|
1166
1166
|
var returnType = _EnvironmentVariables["default"];
|
|
1167
|
-
return this.apiClient.callApi(
|
|
1167
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1168
1168
|
}
|
|
1169
1169
|
|
|
1170
1170
|
/**
|
|
1171
1171
|
* Get environment variables of a fleet
|
|
1172
|
-
* @param {String} projectOrProductUID
|
|
1173
|
-
* @param {String} fleetUID
|
|
1172
|
+
* @param {String} projectOrProductUID
|
|
1173
|
+
* @param {String} fleetUID
|
|
1174
1174
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1175
1175
|
*/
|
|
1176
1176
|
}, {
|
|
@@ -1183,7 +1183,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1183
1183
|
|
|
1184
1184
|
/**
|
|
1185
1185
|
* Get Project Fleets
|
|
1186
|
-
* @param {String} projectOrProductUID
|
|
1186
|
+
* @param {String} projectOrProductUID
|
|
1187
1187
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
1188
1188
|
*/
|
|
1189
1189
|
}, {
|
|
@@ -1195,21 +1195,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1195
1195
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getFleets");
|
|
1196
1196
|
}
|
|
1197
1197
|
var pathParams = {
|
|
1198
|
-
projectOrProductUID: projectOrProductUID
|
|
1198
|
+
'projectOrProductUID': projectOrProductUID
|
|
1199
1199
|
};
|
|
1200
1200
|
var queryParams = {};
|
|
1201
1201
|
var headerParams = {};
|
|
1202
1202
|
var formParams = {};
|
|
1203
|
-
var authNames = [
|
|
1203
|
+
var authNames = ['personalAccessToken'];
|
|
1204
1204
|
var contentTypes = [];
|
|
1205
|
-
var accepts = [
|
|
1205
|
+
var accepts = ['application/json'];
|
|
1206
1206
|
var returnType = _GetDeviceFleets200Response["default"];
|
|
1207
|
-
return this.apiClient.callApi(
|
|
1207
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1208
1208
|
}
|
|
1209
1209
|
|
|
1210
1210
|
/**
|
|
1211
1211
|
* Get Project Fleets
|
|
1212
|
-
* @param {String} projectOrProductUID
|
|
1212
|
+
* @param {String} projectOrProductUID
|
|
1213
1213
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
1214
1214
|
*/
|
|
1215
1215
|
}, {
|
|
@@ -1222,7 +1222,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1222
1222
|
|
|
1223
1223
|
/**
|
|
1224
1224
|
* Get variable format for a notefile
|
|
1225
|
-
* @param {String} projectOrProductUID
|
|
1225
|
+
* @param {String} projectOrProductUID
|
|
1226
1226
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/NotefileSchema>} and HTTP response
|
|
1227
1227
|
*/
|
|
1228
1228
|
}, {
|
|
@@ -1234,21 +1234,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1234
1234
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getNotefileSchemas");
|
|
1235
1235
|
}
|
|
1236
1236
|
var pathParams = {
|
|
1237
|
-
projectOrProductUID: projectOrProductUID
|
|
1237
|
+
'projectOrProductUID': projectOrProductUID
|
|
1238
1238
|
};
|
|
1239
1239
|
var queryParams = {};
|
|
1240
1240
|
var headerParams = {};
|
|
1241
1241
|
var formParams = {};
|
|
1242
1242
|
var authNames = [];
|
|
1243
1243
|
var contentTypes = [];
|
|
1244
|
-
var accepts = [
|
|
1244
|
+
var accepts = ['application/json'];
|
|
1245
1245
|
var returnType = [_NotefileSchema["default"]];
|
|
1246
|
-
return this.apiClient.callApi(
|
|
1246
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/schemas', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1247
1247
|
}
|
|
1248
1248
|
|
|
1249
1249
|
/**
|
|
1250
1250
|
* Get variable format for a notefile
|
|
1251
|
-
* @param {String} projectOrProductUID
|
|
1251
|
+
* @param {String} projectOrProductUID
|
|
1252
1252
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/NotefileSchema>}
|
|
1253
1253
|
*/
|
|
1254
1254
|
}, {
|
|
@@ -1261,7 +1261,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1261
1261
|
|
|
1262
1262
|
/**
|
|
1263
1263
|
* Get Products within a Project
|
|
1264
|
-
* @param {String} projectOrProductUID
|
|
1264
|
+
* @param {String} projectOrProductUID
|
|
1265
1265
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProducts200Response} and HTTP response
|
|
1266
1266
|
*/
|
|
1267
1267
|
}, {
|
|
@@ -1273,21 +1273,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1273
1273
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProducts");
|
|
1274
1274
|
}
|
|
1275
1275
|
var pathParams = {
|
|
1276
|
-
projectOrProductUID: projectOrProductUID
|
|
1276
|
+
'projectOrProductUID': projectOrProductUID
|
|
1277
1277
|
};
|
|
1278
1278
|
var queryParams = {};
|
|
1279
1279
|
var headerParams = {};
|
|
1280
1280
|
var formParams = {};
|
|
1281
|
-
var authNames = [
|
|
1281
|
+
var authNames = ['personalAccessToken'];
|
|
1282
1282
|
var contentTypes = [];
|
|
1283
|
-
var accepts = [
|
|
1283
|
+
var accepts = ['application/json'];
|
|
1284
1284
|
var returnType = _GetProducts200Response["default"];
|
|
1285
|
-
return this.apiClient.callApi(
|
|
1285
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/products', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1286
1286
|
}
|
|
1287
1287
|
|
|
1288
1288
|
/**
|
|
1289
1289
|
* Get Products within a Project
|
|
1290
|
-
* @param {String} projectOrProductUID
|
|
1290
|
+
* @param {String} projectOrProductUID
|
|
1291
1291
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProducts200Response}
|
|
1292
1292
|
*/
|
|
1293
1293
|
}, {
|
|
@@ -1300,7 +1300,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1300
1300
|
|
|
1301
1301
|
/**
|
|
1302
1302
|
* Get a Project by ProjectUID
|
|
1303
|
-
* @param {String} projectOrProductUID
|
|
1303
|
+
* @param {String} projectOrProductUID
|
|
1304
1304
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
1305
1305
|
*/
|
|
1306
1306
|
}, {
|
|
@@ -1312,21 +1312,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1312
1312
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProject");
|
|
1313
1313
|
}
|
|
1314
1314
|
var pathParams = {
|
|
1315
|
-
projectOrProductUID: projectOrProductUID
|
|
1315
|
+
'projectOrProductUID': projectOrProductUID
|
|
1316
1316
|
};
|
|
1317
1317
|
var queryParams = {};
|
|
1318
1318
|
var headerParams = {};
|
|
1319
1319
|
var formParams = {};
|
|
1320
|
-
var authNames = [
|
|
1320
|
+
var authNames = ['personalAccessToken'];
|
|
1321
1321
|
var contentTypes = [];
|
|
1322
|
-
var accepts = [
|
|
1322
|
+
var accepts = ['application/json'];
|
|
1323
1323
|
var returnType = _Project["default"];
|
|
1324
|
-
return this.apiClient.callApi(
|
|
1324
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1325
1325
|
}
|
|
1326
1326
|
|
|
1327
1327
|
/**
|
|
1328
1328
|
* Get a Project by ProjectUID
|
|
1329
|
-
* @param {String} projectOrProductUID
|
|
1329
|
+
* @param {String} projectOrProductUID
|
|
1330
1330
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
1331
1331
|
*/
|
|
1332
1332
|
}, {
|
|
@@ -1339,7 +1339,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1339
1339
|
|
|
1340
1340
|
/**
|
|
1341
1341
|
* Get a Project by ProductUID
|
|
1342
|
-
* @param {String} productUID
|
|
1342
|
+
* @param {String} productUID
|
|
1343
1343
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
1344
1344
|
*/
|
|
1345
1345
|
}, {
|
|
@@ -1351,21 +1351,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1351
1351
|
throw new _Error["default"]("Missing the required parameter 'productUID' when calling getProjectByProduct");
|
|
1352
1352
|
}
|
|
1353
1353
|
var pathParams = {
|
|
1354
|
-
productUID: productUID
|
|
1354
|
+
'productUID': productUID
|
|
1355
1355
|
};
|
|
1356
1356
|
var queryParams = {};
|
|
1357
1357
|
var headerParams = {};
|
|
1358
1358
|
var formParams = {};
|
|
1359
|
-
var authNames = [
|
|
1359
|
+
var authNames = ['personalAccessToken'];
|
|
1360
1360
|
var contentTypes = [];
|
|
1361
|
-
var accepts = [
|
|
1361
|
+
var accepts = ['application/json'];
|
|
1362
1362
|
var returnType = _Project["default"];
|
|
1363
|
-
return this.apiClient.callApi(
|
|
1363
|
+
return this.apiClient.callApi('/v1/products/{productUID}/project', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1364
1364
|
}
|
|
1365
1365
|
|
|
1366
1366
|
/**
|
|
1367
1367
|
* Get a Project by ProductUID
|
|
1368
|
-
* @param {String} productUID
|
|
1368
|
+
* @param {String} productUID
|
|
1369
1369
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
1370
1370
|
*/
|
|
1371
1371
|
}, {
|
|
@@ -1378,7 +1378,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1378
1378
|
|
|
1379
1379
|
/**
|
|
1380
1380
|
* Get environment variable hierarchy for a device
|
|
1381
|
-
* @param {String} projectOrProductUID
|
|
1381
|
+
* @param {String} projectOrProductUID
|
|
1382
1382
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
|
|
1383
1383
|
*/
|
|
1384
1384
|
}, {
|
|
@@ -1390,21 +1390,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1390
1390
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectEnvironmentHierarchy");
|
|
1391
1391
|
}
|
|
1392
1392
|
var pathParams = {
|
|
1393
|
-
projectOrProductUID: projectOrProductUID
|
|
1393
|
+
'projectOrProductUID': projectOrProductUID
|
|
1394
1394
|
};
|
|
1395
1395
|
var queryParams = {};
|
|
1396
1396
|
var headerParams = {};
|
|
1397
1397
|
var formParams = {};
|
|
1398
|
-
var authNames = [
|
|
1398
|
+
var authNames = ['personalAccessToken'];
|
|
1399
1399
|
var contentTypes = [];
|
|
1400
|
-
var accepts = [
|
|
1400
|
+
var accepts = ['application/json'];
|
|
1401
1401
|
var returnType = _EnvTreeJsonNode["default"];
|
|
1402
|
-
return this.apiClient.callApi(
|
|
1402
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/environment_hierarchy', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1403
1403
|
}
|
|
1404
1404
|
|
|
1405
1405
|
/**
|
|
1406
1406
|
* Get environment variable hierarchy for a device
|
|
1407
|
-
* @param {String} projectOrProductUID
|
|
1407
|
+
* @param {String} projectOrProductUID
|
|
1408
1408
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
|
|
1409
1409
|
*/
|
|
1410
1410
|
}, {
|
|
@@ -1417,7 +1417,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1417
1417
|
|
|
1418
1418
|
/**
|
|
1419
1419
|
* Get environment variables of a project
|
|
1420
|
-
* @param {String} projectOrProductUID
|
|
1420
|
+
* @param {String} projectOrProductUID
|
|
1421
1421
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1422
1422
|
*/
|
|
1423
1423
|
}, {
|
|
@@ -1429,21 +1429,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1429
1429
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectEnvironmentVariables");
|
|
1430
1430
|
}
|
|
1431
1431
|
var pathParams = {
|
|
1432
|
-
projectOrProductUID: projectOrProductUID
|
|
1432
|
+
'projectOrProductUID': projectOrProductUID
|
|
1433
1433
|
};
|
|
1434
1434
|
var queryParams = {};
|
|
1435
1435
|
var headerParams = {};
|
|
1436
1436
|
var formParams = {};
|
|
1437
|
-
var authNames = [
|
|
1437
|
+
var authNames = ['personalAccessToken'];
|
|
1438
1438
|
var contentTypes = [];
|
|
1439
|
-
var accepts = [
|
|
1439
|
+
var accepts = ['application/json'];
|
|
1440
1440
|
var returnType = _EnvironmentVariables["default"];
|
|
1441
|
-
return this.apiClient.callApi(
|
|
1441
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/environment_variables', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1442
1442
|
}
|
|
1443
1443
|
|
|
1444
1444
|
/**
|
|
1445
1445
|
* Get environment variables of a project
|
|
1446
|
-
* @param {String} projectOrProductUID
|
|
1446
|
+
* @param {String} projectOrProductUID
|
|
1447
1447
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1448
1448
|
*/
|
|
1449
1449
|
}, {
|
|
@@ -1456,7 +1456,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1456
1456
|
|
|
1457
1457
|
/**
|
|
1458
1458
|
* Get Project Members
|
|
1459
|
-
* @param {String} projectOrProductUID
|
|
1459
|
+
* @param {String} projectOrProductUID
|
|
1460
1460
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectMembers200Response} and HTTP response
|
|
1461
1461
|
*/
|
|
1462
1462
|
}, {
|
|
@@ -1468,21 +1468,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1468
1468
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectMembers");
|
|
1469
1469
|
}
|
|
1470
1470
|
var pathParams = {
|
|
1471
|
-
projectOrProductUID: projectOrProductUID
|
|
1471
|
+
'projectOrProductUID': projectOrProductUID
|
|
1472
1472
|
};
|
|
1473
1473
|
var queryParams = {};
|
|
1474
1474
|
var headerParams = {};
|
|
1475
1475
|
var formParams = {};
|
|
1476
|
-
var authNames = [
|
|
1476
|
+
var authNames = ['personalAccessToken'];
|
|
1477
1477
|
var contentTypes = [];
|
|
1478
|
-
var accepts = [
|
|
1478
|
+
var accepts = ['application/json'];
|
|
1479
1479
|
var returnType = _GetProjectMembers200Response["default"];
|
|
1480
|
-
return this.apiClient.callApi(
|
|
1480
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/members', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1481
1481
|
}
|
|
1482
1482
|
|
|
1483
1483
|
/**
|
|
1484
1484
|
* Get Project Members
|
|
1485
|
-
* @param {String} projectOrProductUID
|
|
1485
|
+
* @param {String} projectOrProductUID
|
|
1486
1486
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectMembers200Response}
|
|
1487
1487
|
*/
|
|
1488
1488
|
}, {
|
|
@@ -1505,11 +1505,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1505
1505
|
var queryParams = {};
|
|
1506
1506
|
var headerParams = {};
|
|
1507
1507
|
var formParams = {};
|
|
1508
|
-
var authNames = [
|
|
1508
|
+
var authNames = ['personalAccessToken'];
|
|
1509
1509
|
var contentTypes = [];
|
|
1510
|
-
var accepts = [
|
|
1510
|
+
var accepts = ['application/json'];
|
|
1511
1511
|
var returnType = _GetProjects200Response["default"];
|
|
1512
|
-
return this.apiClient.callApi(
|
|
1512
|
+
return this.apiClient.callApi('/v1/projects', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1513
1513
|
}
|
|
1514
1514
|
|
|
1515
1515
|
/**
|
|
@@ -1526,18 +1526,18 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1526
1526
|
|
|
1527
1527
|
/**
|
|
1528
1528
|
* Update/cancel host or notecard firmware updates
|
|
1529
|
-
* @param {String} projectOrProductUID
|
|
1530
|
-
* @param {module:model/String} firmwareType
|
|
1531
|
-
* @param {module:model/String} action
|
|
1529
|
+
* @param {String} projectOrProductUID
|
|
1530
|
+
* @param {module:model/String} firmwareType
|
|
1531
|
+
* @param {module:model/String} action
|
|
1532
1532
|
* @param {Object} opts Optional parameters
|
|
1533
1533
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
1534
1534
|
* @param {Array.<String>} opts.tag Tag filter
|
|
1535
1535
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1536
|
-
* @param {String} opts.fleetUID
|
|
1536
|
+
* @param {String} opts.fleetUID
|
|
1537
1537
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1538
1538
|
* @param {Array.<String>} opts.location Location filter
|
|
1539
1539
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1540
|
-
* @param {Array.<String>} opts.productUID
|
|
1540
|
+
* @param {Array.<String>} opts.productUID
|
|
1541
1541
|
* @param {Array.<String>} opts.sku SKU filter
|
|
1542
1542
|
* @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
|
|
1543
1543
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
@@ -1546,7 +1546,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1546
1546
|
key: "performDfuActionWithHttpInfo",
|
|
1547
1547
|
value: function performDfuActionWithHttpInfo(projectOrProductUID, firmwareType, action, opts) {
|
|
1548
1548
|
opts = opts || {};
|
|
1549
|
-
var postBody = opts[
|
|
1549
|
+
var postBody = opts['dfuActionRequest'];
|
|
1550
1550
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1551
1551
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1552
1552
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling performDfuAction");
|
|
@@ -1560,44 +1560,44 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1560
1560
|
throw new _Error["default"]("Missing the required parameter 'action' when calling performDfuAction");
|
|
1561
1561
|
}
|
|
1562
1562
|
var pathParams = {
|
|
1563
|
-
projectOrProductUID: projectOrProductUID,
|
|
1564
|
-
firmwareType: firmwareType,
|
|
1565
|
-
action: action
|
|
1563
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1564
|
+
'firmwareType': firmwareType,
|
|
1565
|
+
'action': action
|
|
1566
1566
|
};
|
|
1567
1567
|
var queryParams = {
|
|
1568
|
-
deviceUID: this.apiClient.buildCollectionParam(opts[
|
|
1569
|
-
tag: this.apiClient.buildCollectionParam(opts[
|
|
1570
|
-
serialNumber: this.apiClient.buildCollectionParam(opts[
|
|
1571
|
-
fleetUID: opts[
|
|
1572
|
-
notecardFirmware: this.apiClient.buildCollectionParam(opts[
|
|
1573
|
-
location: this.apiClient.buildCollectionParam(opts[
|
|
1574
|
-
hostFirmware: this.apiClient.buildCollectionParam(opts[
|
|
1575
|
-
productUID: this.apiClient.buildCollectionParam(opts[
|
|
1576
|
-
sku: this.apiClient.buildCollectionParam(opts[
|
|
1568
|
+
'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
|
|
1569
|
+
'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
|
|
1570
|
+
'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
|
|
1571
|
+
'fleetUID': opts['fleetUID'],
|
|
1572
|
+
'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
|
|
1573
|
+
'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
|
|
1574
|
+
'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
|
|
1575
|
+
'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
|
|
1576
|
+
'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
|
|
1577
1577
|
};
|
|
1578
1578
|
var headerParams = {};
|
|
1579
1579
|
var formParams = {};
|
|
1580
|
-
var authNames = [
|
|
1581
|
-
var contentTypes = [
|
|
1582
|
-
var accepts = [
|
|
1580
|
+
var authNames = ['personalAccessToken'];
|
|
1581
|
+
var contentTypes = ['application/json'];
|
|
1582
|
+
var accepts = ['application/json'];
|
|
1583
1583
|
var returnType = null;
|
|
1584
|
-
return this.apiClient.callApi(
|
|
1584
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/dfu/{firmwareType}/{action}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1585
1585
|
}
|
|
1586
1586
|
|
|
1587
1587
|
/**
|
|
1588
1588
|
* Update/cancel host or notecard firmware updates
|
|
1589
|
-
* @param {String} projectOrProductUID
|
|
1590
|
-
* @param {module:model/String} firmwareType
|
|
1591
|
-
* @param {module:model/String} action
|
|
1589
|
+
* @param {String} projectOrProductUID
|
|
1590
|
+
* @param {module:model/String} firmwareType
|
|
1591
|
+
* @param {module:model/String} action
|
|
1592
1592
|
* @param {Object} opts Optional parameters
|
|
1593
1593
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
1594
1594
|
* @param {Array.<String>} opts.tag Tag filter
|
|
1595
1595
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1596
|
-
* @param {String} opts.fleetUID
|
|
1596
|
+
* @param {String} opts.fleetUID
|
|
1597
1597
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1598
1598
|
* @param {Array.<String>} opts.location Location filter
|
|
1599
1599
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1600
|
-
* @param {Array.<String>} opts.productUID
|
|
1600
|
+
* @param {Array.<String>} opts.productUID
|
|
1601
1601
|
* @param {Array.<String>} opts.sku SKU filter
|
|
1602
1602
|
* @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
|
|
1603
1603
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
@@ -1612,8 +1612,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1612
1612
|
|
|
1613
1613
|
/**
|
|
1614
1614
|
* Set environment variables of a fleet
|
|
1615
|
-
* @param {String} projectOrProductUID
|
|
1616
|
-
* @param {String} fleetUID
|
|
1615
|
+
* @param {String} projectOrProductUID
|
|
1616
|
+
* @param {String} fleetUID
|
|
1617
1617
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
1618
1618
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1619
1619
|
*/
|
|
@@ -1634,23 +1634,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1634
1634
|
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling setFleetEnvironmentVariables");
|
|
1635
1635
|
}
|
|
1636
1636
|
var pathParams = {
|
|
1637
|
-
projectOrProductUID: projectOrProductUID,
|
|
1638
|
-
fleetUID: fleetUID
|
|
1637
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1638
|
+
'fleetUID': fleetUID
|
|
1639
1639
|
};
|
|
1640
1640
|
var queryParams = {};
|
|
1641
1641
|
var headerParams = {};
|
|
1642
1642
|
var formParams = {};
|
|
1643
|
-
var authNames = [
|
|
1644
|
-
var contentTypes = [
|
|
1645
|
-
var accepts = [
|
|
1643
|
+
var authNames = ['personalAccessToken'];
|
|
1644
|
+
var contentTypes = ['application/json'];
|
|
1645
|
+
var accepts = ['application/json'];
|
|
1646
1646
|
var returnType = _EnvironmentVariables["default"];
|
|
1647
|
-
return this.apiClient.callApi(
|
|
1647
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1648
1648
|
}
|
|
1649
1649
|
|
|
1650
1650
|
/**
|
|
1651
1651
|
* Set environment variables of a fleet
|
|
1652
|
-
* @param {String} projectOrProductUID
|
|
1653
|
-
* @param {String} fleetUID
|
|
1652
|
+
* @param {String} projectOrProductUID
|
|
1653
|
+
* @param {String} fleetUID
|
|
1654
1654
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
1655
1655
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1656
1656
|
*/
|
|
@@ -1664,7 +1664,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1664
1664
|
|
|
1665
1665
|
/**
|
|
1666
1666
|
* Set the project-level event JSONata transformation
|
|
1667
|
-
* @param {String} projectOrProductUID
|
|
1667
|
+
* @param {String} projectOrProductUID
|
|
1668
1668
|
* @param {Object.<String, Object>} body JSONata expression which will be applied to each event before it is persisted and routed
|
|
1669
1669
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1670
1670
|
*/
|
|
@@ -1681,21 +1681,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1681
1681
|
throw new _Error["default"]("Missing the required parameter 'body' when calling setGlobalEventTransformation");
|
|
1682
1682
|
}
|
|
1683
1683
|
var pathParams = {
|
|
1684
|
-
projectOrProductUID: projectOrProductUID
|
|
1684
|
+
'projectOrProductUID': projectOrProductUID
|
|
1685
1685
|
};
|
|
1686
1686
|
var queryParams = {};
|
|
1687
1687
|
var headerParams = {};
|
|
1688
1688
|
var formParams = {};
|
|
1689
|
-
var authNames = [
|
|
1690
|
-
var contentTypes = [
|
|
1691
|
-
var accepts = [
|
|
1689
|
+
var authNames = ['personalAccessToken'];
|
|
1690
|
+
var contentTypes = ['application/json'];
|
|
1691
|
+
var accepts = ['application/json'];
|
|
1692
1692
|
var returnType = null;
|
|
1693
|
-
return this.apiClient.callApi(
|
|
1693
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/global-transformation', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1694
1694
|
}
|
|
1695
1695
|
|
|
1696
1696
|
/**
|
|
1697
1697
|
* Set the project-level event JSONata transformation
|
|
1698
|
-
* @param {String} projectOrProductUID
|
|
1698
|
+
* @param {String} projectOrProductUID
|
|
1699
1699
|
* @param {Object.<String, Object>} body JSONata expression which will be applied to each event before it is persisted and routed
|
|
1700
1700
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1701
1701
|
*/
|
|
@@ -1709,38 +1709,38 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1709
1709
|
|
|
1710
1710
|
/**
|
|
1711
1711
|
* Set environment variables of a project
|
|
1712
|
-
* @param {String} projectOrProductUID
|
|
1712
|
+
* @param {String} projectOrProductUID
|
|
1713
1713
|
* @param {Object} opts Optional parameters
|
|
1714
|
-
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1714
|
+
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1715
1715
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1716
1716
|
*/
|
|
1717
1717
|
}, {
|
|
1718
1718
|
key: "setProjectEnvironmentVariablesWithHttpInfo",
|
|
1719
1719
|
value: function setProjectEnvironmentVariablesWithHttpInfo(projectOrProductUID, opts) {
|
|
1720
1720
|
opts = opts || {};
|
|
1721
|
-
var postBody = opts[
|
|
1721
|
+
var postBody = opts['environmentVariables'];
|
|
1722
1722
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1723
1723
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1724
1724
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling setProjectEnvironmentVariables");
|
|
1725
1725
|
}
|
|
1726
1726
|
var pathParams = {
|
|
1727
|
-
projectOrProductUID: projectOrProductUID
|
|
1727
|
+
'projectOrProductUID': projectOrProductUID
|
|
1728
1728
|
};
|
|
1729
1729
|
var queryParams = {};
|
|
1730
1730
|
var headerParams = {};
|
|
1731
1731
|
var formParams = {};
|
|
1732
|
-
var authNames = [
|
|
1733
|
-
var contentTypes = [
|
|
1734
|
-
var accepts = [
|
|
1732
|
+
var authNames = ['personalAccessToken'];
|
|
1733
|
+
var contentTypes = ['application/json'];
|
|
1734
|
+
var accepts = ['application/json'];
|
|
1735
1735
|
var returnType = _EnvironmentVariables["default"];
|
|
1736
|
-
return this.apiClient.callApi(
|
|
1736
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1737
1737
|
}
|
|
1738
1738
|
|
|
1739
1739
|
/**
|
|
1740
1740
|
* Set environment variables of a project
|
|
1741
|
-
* @param {String} projectOrProductUID
|
|
1741
|
+
* @param {String} projectOrProductUID
|
|
1742
1742
|
* @param {Object} opts Optional parameters
|
|
1743
|
-
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1743
|
+
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1744
1744
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1745
1745
|
*/
|
|
1746
1746
|
}, {
|
|
@@ -1753,8 +1753,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1753
1753
|
|
|
1754
1754
|
/**
|
|
1755
1755
|
* Update Fleet
|
|
1756
|
-
* @param {String} projectOrProductUID
|
|
1757
|
-
* @param {String} fleetUID
|
|
1756
|
+
* @param {String} projectOrProductUID
|
|
1757
|
+
* @param {String} fleetUID
|
|
1758
1758
|
* @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
|
|
1759
1759
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
1760
1760
|
*/
|
|
@@ -1775,23 +1775,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1775
1775
|
throw new _Error["default"]("Missing the required parameter 'updateFleetRequest' when calling updateFleet");
|
|
1776
1776
|
}
|
|
1777
1777
|
var pathParams = {
|
|
1778
|
-
projectOrProductUID: projectOrProductUID,
|
|
1779
|
-
fleetUID: fleetUID
|
|
1778
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1779
|
+
'fleetUID': fleetUID
|
|
1780
1780
|
};
|
|
1781
1781
|
var queryParams = {};
|
|
1782
1782
|
var headerParams = {};
|
|
1783
1783
|
var formParams = {};
|
|
1784
|
-
var authNames = [
|
|
1785
|
-
var contentTypes = [
|
|
1786
|
-
var accepts = [
|
|
1784
|
+
var authNames = ['personalAccessToken'];
|
|
1785
|
+
var contentTypes = ['application/json'];
|
|
1786
|
+
var accepts = ['application/json'];
|
|
1787
1787
|
var returnType = _Fleet["default"];
|
|
1788
|
-
return this.apiClient.callApi(
|
|
1788
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1789
1789
|
}
|
|
1790
1790
|
|
|
1791
1791
|
/**
|
|
1792
1792
|
* Update Fleet
|
|
1793
|
-
* @param {String} projectOrProductUID
|
|
1794
|
-
* @param {String} fleetUID
|
|
1793
|
+
* @param {String} projectOrProductUID
|
|
1794
|
+
* @param {String} fleetUID
|
|
1795
1795
|
* @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
|
|
1796
1796
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
1797
1797
|
*/
|
|
@@ -1805,9 +1805,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1805
1805
|
|
|
1806
1806
|
/**
|
|
1807
1807
|
* Upload firmware binary
|
|
1808
|
-
* @param {String} projectOrProductUID
|
|
1809
|
-
* @param {module:model/String} firmwareType
|
|
1810
|
-
* @param {String} filename
|
|
1808
|
+
* @param {String} projectOrProductUID
|
|
1809
|
+
* @param {module:model/String} firmwareType
|
|
1810
|
+
* @param {String} filename
|
|
1811
1811
|
* @param {File} body contents of the firmware binary
|
|
1812
1812
|
* @param {Object} opts Optional parameters
|
|
1813
1813
|
* @param {String} opts.version Firmware version (optional). If not provided, the version will be extracted from firmware binary if available, otherwise left empty
|
|
@@ -1836,28 +1836,28 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1836
1836
|
throw new _Error["default"]("Missing the required parameter 'body' when calling uploadFirmware");
|
|
1837
1837
|
}
|
|
1838
1838
|
var pathParams = {
|
|
1839
|
-
projectOrProductUID: projectOrProductUID,
|
|
1840
|
-
firmwareType: firmwareType,
|
|
1841
|
-
filename: filename
|
|
1839
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1840
|
+
'firmwareType': firmwareType,
|
|
1841
|
+
'filename': filename
|
|
1842
1842
|
};
|
|
1843
1843
|
var queryParams = {
|
|
1844
|
-
version: opts[
|
|
1845
|
-
notes: opts[
|
|
1844
|
+
'version': opts['version'],
|
|
1845
|
+
'notes': opts['notes']
|
|
1846
1846
|
};
|
|
1847
1847
|
var headerParams = {};
|
|
1848
1848
|
var formParams = {};
|
|
1849
|
-
var authNames = [
|
|
1850
|
-
var contentTypes = [
|
|
1851
|
-
var accepts = [
|
|
1849
|
+
var authNames = ['personalAccessToken'];
|
|
1850
|
+
var contentTypes = ['application/octet-stream'];
|
|
1851
|
+
var accepts = ['application/json'];
|
|
1852
1852
|
var returnType = _FirmwareInfo["default"];
|
|
1853
|
-
return this.apiClient.callApi(
|
|
1853
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/firmware/{firmwareType}/{filename}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1854
1854
|
}
|
|
1855
1855
|
|
|
1856
1856
|
/**
|
|
1857
1857
|
* Upload firmware binary
|
|
1858
|
-
* @param {String} projectOrProductUID
|
|
1859
|
-
* @param {module:model/String} firmwareType
|
|
1860
|
-
* @param {String} filename
|
|
1858
|
+
* @param {String} projectOrProductUID
|
|
1859
|
+
* @param {module:model/String} firmwareType
|
|
1860
|
+
* @param {String} filename
|
|
1861
1861
|
* @param {File} body contents of the firmware binary
|
|
1862
1862
|
* @param {Object} opts Optional parameters
|
|
1863
1863
|
* @param {String} opts.version Firmware version (optional). If not provided, the version will be extracted from firmware binary if available, otherwise left empty
|