@blues-inc/notehub-js 4.0.0-beta.9 → 5.0.0
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 +244 -248
- package/dist/ApiClient.js +150 -150
- package/dist/api/AlertApi.js +22 -22
- package/dist/api/AuthorizationApi.js +31 -31
- package/dist/api/BillingAccountApi.js +14 -14
- package/dist/api/DeviceApi.js +359 -359
- 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 +387 -381
- package/dist/api/RouteApi.js +83 -77
- package/dist/api/UsageApi.js +63 -63
- package/dist/api/WebhookApi.js +51 -51
- package/dist/index.js +7 -0
- package/dist/model/AddDeviceToFleetsRequest.js +8 -8
- package/dist/model/Alert.js +74 -76
- package/dist/model/AlertDataInner.js +36 -36
- package/dist/model/AlertNotificationsInner.js +18 -18
- package/dist/model/AwsRoute.js +65 -65
- package/dist/model/AzureRoute.js +43 -43
- package/dist/model/BillingAccount.js +21 -21
- package/dist/model/BillingAccountRole.js +9 -9
- package/dist/model/BlynkRoute.js +28 -28
- package/dist/model/Body.js +5 -5
- package/dist/model/CellularPlan.js +34 -34
- package/dist/model/CloneProjectRequest.js +20 -20
- package/dist/model/Contact.js +22 -22
- package/dist/model/CreateFleetRequest.js +20 -20
- package/dist/model/CreateMonitor.js +126 -127
- 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 +106 -107
- package/dist/model/DeviceDfuHistory.js +19 -20
- package/dist/model/DeviceDfuHistoryCurrent.js +32 -32
- package/dist/model/DeviceDfuHistoryPage.js +12 -13
- package/dist/model/DeviceDfuStateMachine.js +24 -25
- package/dist/model/DeviceDfuStateMachineNode.js +22 -22
- package/dist/model/DeviceDfuStatus.js +20 -20
- package/dist/model/DeviceDfuStatusPage.js +12 -13
- 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 +67 -69
- package/dist/model/EnvVar.js +18 -18
- package/dist/model/EnvironmentVariables.js +8 -8
- package/dist/model/Error.js +31 -31
- package/dist/model/Event.js +248 -248
- package/dist/model/Filter.js +16 -16
- package/dist/model/Firmware.js +49 -49
- package/dist/model/FirmwareInfo.js +60 -60
- package/dist/model/Fleet.js +38 -38
- package/dist/model/FleetConnectivityAssurance.js +5 -5
- package/dist/model/GetAlerts200Response.js +14 -15
- package/dist/model/GetBillingAccounts200Response.js +9 -10
- package/dist/model/GetDataUsage200Response.js +9 -10
- package/dist/model/GetDataUsage200ResponseDataInner.js +43 -57
- package/dist/model/GetDbNote200Response.js +13 -13
- package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +16 -16
- package/dist/model/GetDeviceFleets200Response.js +11 -12
- package/dist/model/GetDeviceHealthLog200Response.js +11 -12
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
- package/dist/model/GetDeviceLatestEvents200Response.js +9 -10
- package/dist/model/GetDevicePlans200Response.js +9 -40
- package/dist/model/GetDevicePublicKey200Response.js +16 -16
- package/dist/model/GetDevicePublicKeys200Response.js +16 -17
- package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
- package/dist/model/GetDeviceSessions200Response.js +16 -17
- package/dist/model/GetDevices200Response.js +16 -17
- package/dist/model/GetEvents200Response.js +20 -21
- package/dist/model/GetEventsByCursor200Response.js +23 -24
- package/dist/model/GetNotefile200Response.js +11 -11
- package/dist/model/GetProducts200Response.js +9 -10
- package/dist/model/GetProjectMembers200Response.js +11 -12
- package/dist/model/GetProjects200Response.js +9 -10
- package/dist/model/GetRouteLogsUsage200Response.js +11 -12
- package/dist/model/GetSessionsUsage200Response.js +11 -12
- package/dist/model/GetWebhooks200Response.js +9 -10
- 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 -101
- package/dist/model/MonitorAlertRoutesInner.js +10 -9
- package/dist/model/MqttRoute.js +68 -68
- package/dist/model/Note.js +31 -31
- package/dist/model/NoteInput.js +9 -9
- package/dist/model/Notefile.js +22 -23
- package/dist/model/NotefileSchema.js +18 -19
- package/dist/model/NotehubRoute.js +103 -103
- package/dist/model/NotehubRouteSummary.js +23 -23
- package/dist/model/OAuth2Error.js +20 -20
- package/dist/model/OAuth2TokenResponse.js +23 -23
- package/dist/model/PersonalAccessToken.js +34 -34
- package/dist/model/PersonalAccessTokenCreatedBy.js +17 -17
- package/dist/model/PersonalAccessTokenInfo.js +18 -18
- package/dist/model/PersonalAccessTokenSecret.js +12 -12
- package/dist/model/Product.js +26 -26
- package/dist/model/Project.js +34 -34
- package/dist/model/ProjectMember.js +22 -22
- package/dist/model/ProvisionDeviceRequest.js +18 -18
- package/dist/model/ProxyRoute.js +29 -29
- package/dist/model/QubitroRoute.js +33 -33
- package/dist/model/RadRoute.js +31 -31
- package/dist/model/Repository.js +22 -22
- package/dist/model/Role.js +9 -9
- package/dist/model/RouteLog.js +38 -38
- package/dist/model/RouteTransformSettings.js +18 -18
- package/dist/model/S3ArchiveRoute.js +79 -79
- package/dist/model/SatelliteDataUsage.js +144 -0
- package/dist/model/SatellitePlan.js +39 -39
- package/dist/model/SchemaProperty.js +36 -38
- package/dist/model/SignalDevice200Response.js +5 -5
- package/dist/model/SimUsage.js +19 -19
- package/dist/model/SlackBearerNotification.js +25 -25
- package/dist/model/SlackRoute.js +48 -48
- package/dist/model/SlackWebHookNotification.js +20 -20
- package/dist/model/SnowflakeRoute.js +45 -45
- package/dist/model/SnowpipeStreamingRoute.js +60 -60
- package/dist/model/ThingworxRoute.js +33 -33
- package/dist/model/TowerLocation.js +54 -54
- package/dist/model/TwilioRoute.js +43 -43
- package/dist/model/UpdateFleetRequest.js +33 -33
- package/dist/model/UploadMetadata.js +64 -64
- package/dist/model/UsageData.js +33 -33
- package/dist/model/UsageEventsData.js +37 -37
- package/dist/model/UsageEventsResponse.js +11 -12
- package/dist/model/UsageRouteLogsData.js +27 -27
- package/dist/model/UsageSessionsData.js +32 -32
- package/dist/model/UserDfuStateMachine.js +20 -20
- package/dist/model/UserDfuStateMachineStatus.js +20 -20
- package/dist/model/UserFirmwareInfo.js +12 -12
- package/dist/model/WebhookSettings.js +15 -15
- package/package.json +3 -3
package/dist/api/ProjectApi.js
CHANGED
|
@@ -37,7 +37,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
37
37
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
38
38
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
39
39
|
* Notehub API
|
|
40
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
40
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
41
41
|
*
|
|
42
42
|
* The version of the OpenAPI document: 1.2.0
|
|
43
43
|
* Contact: engineering@blues.io
|
|
@@ -48,18 +48,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
48
48
|
*
|
|
49
49
|
*/
|
|
50
50
|
/**
|
|
51
|
-
* Project service.
|
|
52
|
-
* @module api/ProjectApi
|
|
53
|
-
* @version
|
|
54
|
-
*/
|
|
51
|
+
* Project service.
|
|
52
|
+
* @module api/ProjectApi
|
|
53
|
+
* @version 5.0.0
|
|
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
|
-
|
|
93
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
317
|
-
|
|
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
|
-
|
|
364
|
-
|
|
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
|
-
|
|
415
|
-
|
|
416
|
-
|
|
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
|
-
|
|
463
|
-
|
|
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
|
-
|
|
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
|
-
|
|
548
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
677
|
-
|
|
678
|
-
|
|
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
|
-
|
|
730
|
-
|
|
731
|
-
|
|
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
|
-
|
|
778
|
-
|
|
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
|
-
|
|
839
|
-
|
|
838
|
+
projectOrProductUID: projectOrProductUID,
|
|
839
|
+
firmwareType: firmwareType
|
|
840
840
|
};
|
|
841
841
|
var queryParams = {
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
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
|
-
|
|
928
|
-
|
|
927
|
+
projectOrProductUID: projectOrProductUID,
|
|
928
|
+
firmwareType: firmwareType
|
|
929
929
|
};
|
|
930
930
|
var queryParams = {
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
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,17 @@ 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
|
+
* @param {module:model/String} opts.sortBy Field to sort by (default to 'created')
|
|
994
|
+
* @param {module:model/String} opts.sortOrder Sort order (asc for ascending, desc for descending) (default to 'desc')
|
|
993
995
|
* @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
996
|
*/
|
|
995
997
|
}, {
|
|
@@ -1002,37 +1004,41 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1002
1004
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getFirmwareInfo");
|
|
1003
1005
|
}
|
|
1004
1006
|
var pathParams = {
|
|
1005
|
-
|
|
1007
|
+
projectOrProductUID: projectOrProductUID
|
|
1006
1008
|
};
|
|
1007
1009
|
var queryParams = {
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1010
|
+
product: opts["product"],
|
|
1011
|
+
firmwareType: opts["firmwareType"],
|
|
1012
|
+
version: opts["version"],
|
|
1013
|
+
target: opts["target"],
|
|
1014
|
+
filename: opts["filename"],
|
|
1015
|
+
md5: opts["md5"],
|
|
1016
|
+
unpublished: opts["unpublished"],
|
|
1017
|
+
sortBy: opts["sortBy"],
|
|
1018
|
+
sortOrder: opts["sortOrder"]
|
|
1015
1019
|
};
|
|
1016
1020
|
var headerParams = {};
|
|
1017
1021
|
var formParams = {};
|
|
1018
|
-
var authNames = [
|
|
1022
|
+
var authNames = ["personalAccessToken"];
|
|
1019
1023
|
var contentTypes = [];
|
|
1020
|
-
var accepts = [
|
|
1024
|
+
var accepts = ["application/json"];
|
|
1021
1025
|
var returnType = [_FirmwareInfo["default"]];
|
|
1022
|
-
return this.apiClient.callApi(
|
|
1026
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/firmware", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1023
1027
|
}
|
|
1024
1028
|
|
|
1025
1029
|
/**
|
|
1026
1030
|
* Get Available Firmware Information
|
|
1027
|
-
* @param {String} projectOrProductUID
|
|
1031
|
+
* @param {String} projectOrProductUID
|
|
1028
1032
|
* @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
|
|
1033
|
+
* @param {String} opts.product
|
|
1034
|
+
* @param {String} opts.firmwareType
|
|
1035
|
+
* @param {String} opts.version
|
|
1036
|
+
* @param {String} opts.target
|
|
1037
|
+
* @param {String} opts.filename
|
|
1038
|
+
* @param {String} opts.md5
|
|
1039
|
+
* @param {Boolean} opts.unpublished
|
|
1040
|
+
* @param {module:model/String} opts.sortBy Field to sort by (default to 'created')
|
|
1041
|
+
* @param {module:model/String} opts.sortOrder Sort order (asc for ascending, desc for descending) (default to 'desc')
|
|
1036
1042
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/FirmwareInfo>}
|
|
1037
1043
|
*/
|
|
1038
1044
|
}, {
|
|
@@ -1045,8 +1051,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1045
1051
|
|
|
1046
1052
|
/**
|
|
1047
1053
|
* Get Fleet
|
|
1048
|
-
* @param {String} projectOrProductUID
|
|
1049
|
-
* @param {String} fleetUID
|
|
1054
|
+
* @param {String} projectOrProductUID
|
|
1055
|
+
* @param {String} fleetUID
|
|
1050
1056
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
1051
1057
|
*/
|
|
1052
1058
|
}, {
|
|
@@ -1062,23 +1068,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1062
1068
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleet");
|
|
1063
1069
|
}
|
|
1064
1070
|
var pathParams = {
|
|
1065
|
-
|
|
1066
|
-
|
|
1071
|
+
projectOrProductUID: projectOrProductUID,
|
|
1072
|
+
fleetUID: fleetUID
|
|
1067
1073
|
};
|
|
1068
1074
|
var queryParams = {};
|
|
1069
1075
|
var headerParams = {};
|
|
1070
1076
|
var formParams = {};
|
|
1071
|
-
var authNames = [
|
|
1077
|
+
var authNames = ["personalAccessToken"];
|
|
1072
1078
|
var contentTypes = [];
|
|
1073
|
-
var accepts = [
|
|
1079
|
+
var accepts = ["application/json"];
|
|
1074
1080
|
var returnType = _Fleet["default"];
|
|
1075
|
-
return this.apiClient.callApi(
|
|
1081
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/fleets/{fleetUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1076
1082
|
}
|
|
1077
1083
|
|
|
1078
1084
|
/**
|
|
1079
1085
|
* Get Fleet
|
|
1080
|
-
* @param {String} projectOrProductUID
|
|
1081
|
-
* @param {String} fleetUID
|
|
1086
|
+
* @param {String} projectOrProductUID
|
|
1087
|
+
* @param {String} fleetUID
|
|
1082
1088
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
1083
1089
|
*/
|
|
1084
1090
|
}, {
|
|
@@ -1091,8 +1097,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1091
1097
|
|
|
1092
1098
|
/**
|
|
1093
1099
|
* Get environment variable hierarchy for a device
|
|
1094
|
-
* @param {String} projectOrProductUID
|
|
1095
|
-
* @param {String} fleetUID
|
|
1100
|
+
* @param {String} projectOrProductUID
|
|
1101
|
+
* @param {String} fleetUID
|
|
1096
1102
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
|
|
1097
1103
|
*/
|
|
1098
1104
|
}, {
|
|
@@ -1108,23 +1114,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1108
1114
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEnvironmentHierarchy");
|
|
1109
1115
|
}
|
|
1110
1116
|
var pathParams = {
|
|
1111
|
-
|
|
1112
|
-
|
|
1117
|
+
projectOrProductUID: projectOrProductUID,
|
|
1118
|
+
fleetUID: fleetUID
|
|
1113
1119
|
};
|
|
1114
1120
|
var queryParams = {};
|
|
1115
1121
|
var headerParams = {};
|
|
1116
1122
|
var formParams = {};
|
|
1117
|
-
var authNames = [
|
|
1123
|
+
var authNames = ["personalAccessToken"];
|
|
1118
1124
|
var contentTypes = [];
|
|
1119
|
-
var accepts = [
|
|
1125
|
+
var accepts = ["application/json"];
|
|
1120
1126
|
var returnType = _EnvTreeJsonNode["default"];
|
|
1121
|
-
return this.apiClient.callApi(
|
|
1127
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_hierarchy", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1122
1128
|
}
|
|
1123
1129
|
|
|
1124
1130
|
/**
|
|
1125
1131
|
* Get environment variable hierarchy for a device
|
|
1126
|
-
* @param {String} projectOrProductUID
|
|
1127
|
-
* @param {String} fleetUID
|
|
1132
|
+
* @param {String} projectOrProductUID
|
|
1133
|
+
* @param {String} fleetUID
|
|
1128
1134
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
|
|
1129
1135
|
*/
|
|
1130
1136
|
}, {
|
|
@@ -1137,8 +1143,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1137
1143
|
|
|
1138
1144
|
/**
|
|
1139
1145
|
* Get environment variables of a fleet
|
|
1140
|
-
* @param {String} projectOrProductUID
|
|
1141
|
-
* @param {String} fleetUID
|
|
1146
|
+
* @param {String} projectOrProductUID
|
|
1147
|
+
* @param {String} fleetUID
|
|
1142
1148
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1143
1149
|
*/
|
|
1144
1150
|
}, {
|
|
@@ -1154,23 +1160,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1154
1160
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEnvironmentVariables");
|
|
1155
1161
|
}
|
|
1156
1162
|
var pathParams = {
|
|
1157
|
-
|
|
1158
|
-
|
|
1163
|
+
projectOrProductUID: projectOrProductUID,
|
|
1164
|
+
fleetUID: fleetUID
|
|
1159
1165
|
};
|
|
1160
1166
|
var queryParams = {};
|
|
1161
1167
|
var headerParams = {};
|
|
1162
1168
|
var formParams = {};
|
|
1163
|
-
var authNames = [
|
|
1169
|
+
var authNames = ["personalAccessToken"];
|
|
1164
1170
|
var contentTypes = [];
|
|
1165
|
-
var accepts = [
|
|
1171
|
+
var accepts = ["application/json"];
|
|
1166
1172
|
var returnType = _EnvironmentVariables["default"];
|
|
1167
|
-
return this.apiClient.callApi(
|
|
1173
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1168
1174
|
}
|
|
1169
1175
|
|
|
1170
1176
|
/**
|
|
1171
1177
|
* Get environment variables of a fleet
|
|
1172
|
-
* @param {String} projectOrProductUID
|
|
1173
|
-
* @param {String} fleetUID
|
|
1178
|
+
* @param {String} projectOrProductUID
|
|
1179
|
+
* @param {String} fleetUID
|
|
1174
1180
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1175
1181
|
*/
|
|
1176
1182
|
}, {
|
|
@@ -1183,7 +1189,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1183
1189
|
|
|
1184
1190
|
/**
|
|
1185
1191
|
* Get Project Fleets
|
|
1186
|
-
* @param {String} projectOrProductUID
|
|
1192
|
+
* @param {String} projectOrProductUID
|
|
1187
1193
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
1188
1194
|
*/
|
|
1189
1195
|
}, {
|
|
@@ -1195,21 +1201,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1195
1201
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getFleets");
|
|
1196
1202
|
}
|
|
1197
1203
|
var pathParams = {
|
|
1198
|
-
|
|
1204
|
+
projectOrProductUID: projectOrProductUID
|
|
1199
1205
|
};
|
|
1200
1206
|
var queryParams = {};
|
|
1201
1207
|
var headerParams = {};
|
|
1202
1208
|
var formParams = {};
|
|
1203
|
-
var authNames = [
|
|
1209
|
+
var authNames = ["personalAccessToken"];
|
|
1204
1210
|
var contentTypes = [];
|
|
1205
|
-
var accepts = [
|
|
1211
|
+
var accepts = ["application/json"];
|
|
1206
1212
|
var returnType = _GetDeviceFleets200Response["default"];
|
|
1207
|
-
return this.apiClient.callApi(
|
|
1213
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/fleets", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1208
1214
|
}
|
|
1209
1215
|
|
|
1210
1216
|
/**
|
|
1211
1217
|
* Get Project Fleets
|
|
1212
|
-
* @param {String} projectOrProductUID
|
|
1218
|
+
* @param {String} projectOrProductUID
|
|
1213
1219
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
1214
1220
|
*/
|
|
1215
1221
|
}, {
|
|
@@ -1222,7 +1228,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1222
1228
|
|
|
1223
1229
|
/**
|
|
1224
1230
|
* Get variable format for a notefile
|
|
1225
|
-
* @param {String} projectOrProductUID
|
|
1231
|
+
* @param {String} projectOrProductUID
|
|
1226
1232
|
* @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
1233
|
*/
|
|
1228
1234
|
}, {
|
|
@@ -1234,21 +1240,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1234
1240
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getNotefileSchemas");
|
|
1235
1241
|
}
|
|
1236
1242
|
var pathParams = {
|
|
1237
|
-
|
|
1243
|
+
projectOrProductUID: projectOrProductUID
|
|
1238
1244
|
};
|
|
1239
1245
|
var queryParams = {};
|
|
1240
1246
|
var headerParams = {};
|
|
1241
1247
|
var formParams = {};
|
|
1242
1248
|
var authNames = [];
|
|
1243
1249
|
var contentTypes = [];
|
|
1244
|
-
var accepts = [
|
|
1250
|
+
var accepts = ["application/json"];
|
|
1245
1251
|
var returnType = [_NotefileSchema["default"]];
|
|
1246
|
-
return this.apiClient.callApi(
|
|
1252
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/schemas", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1247
1253
|
}
|
|
1248
1254
|
|
|
1249
1255
|
/**
|
|
1250
1256
|
* Get variable format for a notefile
|
|
1251
|
-
* @param {String} projectOrProductUID
|
|
1257
|
+
* @param {String} projectOrProductUID
|
|
1252
1258
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/NotefileSchema>}
|
|
1253
1259
|
*/
|
|
1254
1260
|
}, {
|
|
@@ -1261,7 +1267,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1261
1267
|
|
|
1262
1268
|
/**
|
|
1263
1269
|
* Get Products within a Project
|
|
1264
|
-
* @param {String} projectOrProductUID
|
|
1270
|
+
* @param {String} projectOrProductUID
|
|
1265
1271
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProducts200Response} and HTTP response
|
|
1266
1272
|
*/
|
|
1267
1273
|
}, {
|
|
@@ -1273,21 +1279,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1273
1279
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProducts");
|
|
1274
1280
|
}
|
|
1275
1281
|
var pathParams = {
|
|
1276
|
-
|
|
1282
|
+
projectOrProductUID: projectOrProductUID
|
|
1277
1283
|
};
|
|
1278
1284
|
var queryParams = {};
|
|
1279
1285
|
var headerParams = {};
|
|
1280
1286
|
var formParams = {};
|
|
1281
|
-
var authNames = [
|
|
1287
|
+
var authNames = ["personalAccessToken"];
|
|
1282
1288
|
var contentTypes = [];
|
|
1283
|
-
var accepts = [
|
|
1289
|
+
var accepts = ["application/json"];
|
|
1284
1290
|
var returnType = _GetProducts200Response["default"];
|
|
1285
|
-
return this.apiClient.callApi(
|
|
1291
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/products", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1286
1292
|
}
|
|
1287
1293
|
|
|
1288
1294
|
/**
|
|
1289
1295
|
* Get Products within a Project
|
|
1290
|
-
* @param {String} projectOrProductUID
|
|
1296
|
+
* @param {String} projectOrProductUID
|
|
1291
1297
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProducts200Response}
|
|
1292
1298
|
*/
|
|
1293
1299
|
}, {
|
|
@@ -1300,7 +1306,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1300
1306
|
|
|
1301
1307
|
/**
|
|
1302
1308
|
* Get a Project by ProjectUID
|
|
1303
|
-
* @param {String} projectOrProductUID
|
|
1309
|
+
* @param {String} projectOrProductUID
|
|
1304
1310
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
1305
1311
|
*/
|
|
1306
1312
|
}, {
|
|
@@ -1312,21 +1318,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1312
1318
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProject");
|
|
1313
1319
|
}
|
|
1314
1320
|
var pathParams = {
|
|
1315
|
-
|
|
1321
|
+
projectOrProductUID: projectOrProductUID
|
|
1316
1322
|
};
|
|
1317
1323
|
var queryParams = {};
|
|
1318
1324
|
var headerParams = {};
|
|
1319
1325
|
var formParams = {};
|
|
1320
|
-
var authNames = [
|
|
1326
|
+
var authNames = ["personalAccessToken"];
|
|
1321
1327
|
var contentTypes = [];
|
|
1322
|
-
var accepts = [
|
|
1328
|
+
var accepts = ["application/json"];
|
|
1323
1329
|
var returnType = _Project["default"];
|
|
1324
|
-
return this.apiClient.callApi(
|
|
1330
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1325
1331
|
}
|
|
1326
1332
|
|
|
1327
1333
|
/**
|
|
1328
1334
|
* Get a Project by ProjectUID
|
|
1329
|
-
* @param {String} projectOrProductUID
|
|
1335
|
+
* @param {String} projectOrProductUID
|
|
1330
1336
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
1331
1337
|
*/
|
|
1332
1338
|
}, {
|
|
@@ -1339,7 +1345,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1339
1345
|
|
|
1340
1346
|
/**
|
|
1341
1347
|
* Get a Project by ProductUID
|
|
1342
|
-
* @param {String} productUID
|
|
1348
|
+
* @param {String} productUID
|
|
1343
1349
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
1344
1350
|
*/
|
|
1345
1351
|
}, {
|
|
@@ -1351,21 +1357,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1351
1357
|
throw new _Error["default"]("Missing the required parameter 'productUID' when calling getProjectByProduct");
|
|
1352
1358
|
}
|
|
1353
1359
|
var pathParams = {
|
|
1354
|
-
|
|
1360
|
+
productUID: productUID
|
|
1355
1361
|
};
|
|
1356
1362
|
var queryParams = {};
|
|
1357
1363
|
var headerParams = {};
|
|
1358
1364
|
var formParams = {};
|
|
1359
|
-
var authNames = [
|
|
1365
|
+
var authNames = ["personalAccessToken"];
|
|
1360
1366
|
var contentTypes = [];
|
|
1361
|
-
var accepts = [
|
|
1367
|
+
var accepts = ["application/json"];
|
|
1362
1368
|
var returnType = _Project["default"];
|
|
1363
|
-
return this.apiClient.callApi(
|
|
1369
|
+
return this.apiClient.callApi("/v1/products/{productUID}/project", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1364
1370
|
}
|
|
1365
1371
|
|
|
1366
1372
|
/**
|
|
1367
1373
|
* Get a Project by ProductUID
|
|
1368
|
-
* @param {String} productUID
|
|
1374
|
+
* @param {String} productUID
|
|
1369
1375
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
1370
1376
|
*/
|
|
1371
1377
|
}, {
|
|
@@ -1378,7 +1384,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1378
1384
|
|
|
1379
1385
|
/**
|
|
1380
1386
|
* Get environment variable hierarchy for a device
|
|
1381
|
-
* @param {String} projectOrProductUID
|
|
1387
|
+
* @param {String} projectOrProductUID
|
|
1382
1388
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
|
|
1383
1389
|
*/
|
|
1384
1390
|
}, {
|
|
@@ -1390,21 +1396,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1390
1396
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectEnvironmentHierarchy");
|
|
1391
1397
|
}
|
|
1392
1398
|
var pathParams = {
|
|
1393
|
-
|
|
1399
|
+
projectOrProductUID: projectOrProductUID
|
|
1394
1400
|
};
|
|
1395
1401
|
var queryParams = {};
|
|
1396
1402
|
var headerParams = {};
|
|
1397
1403
|
var formParams = {};
|
|
1398
|
-
var authNames = [
|
|
1404
|
+
var authNames = ["personalAccessToken"];
|
|
1399
1405
|
var contentTypes = [];
|
|
1400
|
-
var accepts = [
|
|
1406
|
+
var accepts = ["application/json"];
|
|
1401
1407
|
var returnType = _EnvTreeJsonNode["default"];
|
|
1402
|
-
return this.apiClient.callApi(
|
|
1408
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/environment_hierarchy", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1403
1409
|
}
|
|
1404
1410
|
|
|
1405
1411
|
/**
|
|
1406
1412
|
* Get environment variable hierarchy for a device
|
|
1407
|
-
* @param {String} projectOrProductUID
|
|
1413
|
+
* @param {String} projectOrProductUID
|
|
1408
1414
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
|
|
1409
1415
|
*/
|
|
1410
1416
|
}, {
|
|
@@ -1417,7 +1423,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1417
1423
|
|
|
1418
1424
|
/**
|
|
1419
1425
|
* Get environment variables of a project
|
|
1420
|
-
* @param {String} projectOrProductUID
|
|
1426
|
+
* @param {String} projectOrProductUID
|
|
1421
1427
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1422
1428
|
*/
|
|
1423
1429
|
}, {
|
|
@@ -1429,21 +1435,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1429
1435
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectEnvironmentVariables");
|
|
1430
1436
|
}
|
|
1431
1437
|
var pathParams = {
|
|
1432
|
-
|
|
1438
|
+
projectOrProductUID: projectOrProductUID
|
|
1433
1439
|
};
|
|
1434
1440
|
var queryParams = {};
|
|
1435
1441
|
var headerParams = {};
|
|
1436
1442
|
var formParams = {};
|
|
1437
|
-
var authNames = [
|
|
1443
|
+
var authNames = ["personalAccessToken"];
|
|
1438
1444
|
var contentTypes = [];
|
|
1439
|
-
var accepts = [
|
|
1445
|
+
var accepts = ["application/json"];
|
|
1440
1446
|
var returnType = _EnvironmentVariables["default"];
|
|
1441
|
-
return this.apiClient.callApi(
|
|
1447
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/environment_variables", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1442
1448
|
}
|
|
1443
1449
|
|
|
1444
1450
|
/**
|
|
1445
1451
|
* Get environment variables of a project
|
|
1446
|
-
* @param {String} projectOrProductUID
|
|
1452
|
+
* @param {String} projectOrProductUID
|
|
1447
1453
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1448
1454
|
*/
|
|
1449
1455
|
}, {
|
|
@@ -1456,7 +1462,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1456
1462
|
|
|
1457
1463
|
/**
|
|
1458
1464
|
* Get Project Members
|
|
1459
|
-
* @param {String} projectOrProductUID
|
|
1465
|
+
* @param {String} projectOrProductUID
|
|
1460
1466
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectMembers200Response} and HTTP response
|
|
1461
1467
|
*/
|
|
1462
1468
|
}, {
|
|
@@ -1468,21 +1474,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1468
1474
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectMembers");
|
|
1469
1475
|
}
|
|
1470
1476
|
var pathParams = {
|
|
1471
|
-
|
|
1477
|
+
projectOrProductUID: projectOrProductUID
|
|
1472
1478
|
};
|
|
1473
1479
|
var queryParams = {};
|
|
1474
1480
|
var headerParams = {};
|
|
1475
1481
|
var formParams = {};
|
|
1476
|
-
var authNames = [
|
|
1482
|
+
var authNames = ["personalAccessToken"];
|
|
1477
1483
|
var contentTypes = [];
|
|
1478
|
-
var accepts = [
|
|
1484
|
+
var accepts = ["application/json"];
|
|
1479
1485
|
var returnType = _GetProjectMembers200Response["default"];
|
|
1480
|
-
return this.apiClient.callApi(
|
|
1486
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/members", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1481
1487
|
}
|
|
1482
1488
|
|
|
1483
1489
|
/**
|
|
1484
1490
|
* Get Project Members
|
|
1485
|
-
* @param {String} projectOrProductUID
|
|
1491
|
+
* @param {String} projectOrProductUID
|
|
1486
1492
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectMembers200Response}
|
|
1487
1493
|
*/
|
|
1488
1494
|
}, {
|
|
@@ -1505,11 +1511,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1505
1511
|
var queryParams = {};
|
|
1506
1512
|
var headerParams = {};
|
|
1507
1513
|
var formParams = {};
|
|
1508
|
-
var authNames = [
|
|
1514
|
+
var authNames = ["personalAccessToken"];
|
|
1509
1515
|
var contentTypes = [];
|
|
1510
|
-
var accepts = [
|
|
1516
|
+
var accepts = ["application/json"];
|
|
1511
1517
|
var returnType = _GetProjects200Response["default"];
|
|
1512
|
-
return this.apiClient.callApi(
|
|
1518
|
+
return this.apiClient.callApi("/v1/projects", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1513
1519
|
}
|
|
1514
1520
|
|
|
1515
1521
|
/**
|
|
@@ -1526,18 +1532,18 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1526
1532
|
|
|
1527
1533
|
/**
|
|
1528
1534
|
* Update/cancel host or notecard firmware updates
|
|
1529
|
-
* @param {String} projectOrProductUID
|
|
1530
|
-
* @param {module:model/String} firmwareType
|
|
1531
|
-
* @param {module:model/String} action
|
|
1535
|
+
* @param {String} projectOrProductUID
|
|
1536
|
+
* @param {module:model/String} firmwareType
|
|
1537
|
+
* @param {module:model/String} action
|
|
1532
1538
|
* @param {Object} opts Optional parameters
|
|
1533
1539
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
1534
1540
|
* @param {Array.<String>} opts.tag Tag filter
|
|
1535
1541
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1536
|
-
* @param {String} opts.fleetUID
|
|
1542
|
+
* @param {String} opts.fleetUID
|
|
1537
1543
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1538
1544
|
* @param {Array.<String>} opts.location Location filter
|
|
1539
1545
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1540
|
-
* @param {Array.<String>} opts.productUID
|
|
1546
|
+
* @param {Array.<String>} opts.productUID
|
|
1541
1547
|
* @param {Array.<String>} opts.sku SKU filter
|
|
1542
1548
|
* @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
|
|
1543
1549
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
@@ -1546,7 +1552,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1546
1552
|
key: "performDfuActionWithHttpInfo",
|
|
1547
1553
|
value: function performDfuActionWithHttpInfo(projectOrProductUID, firmwareType, action, opts) {
|
|
1548
1554
|
opts = opts || {};
|
|
1549
|
-
var postBody = opts[
|
|
1555
|
+
var postBody = opts["dfuActionRequest"];
|
|
1550
1556
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1551
1557
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1552
1558
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling performDfuAction");
|
|
@@ -1560,44 +1566,44 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1560
1566
|
throw new _Error["default"]("Missing the required parameter 'action' when calling performDfuAction");
|
|
1561
1567
|
}
|
|
1562
1568
|
var pathParams = {
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1569
|
+
projectOrProductUID: projectOrProductUID,
|
|
1570
|
+
firmwareType: firmwareType,
|
|
1571
|
+
action: action
|
|
1566
1572
|
};
|
|
1567
1573
|
var queryParams = {
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1574
|
+
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
1575
|
+
tag: this.apiClient.buildCollectionParam(opts["tag"], "multi"),
|
|
1576
|
+
serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
|
|
1577
|
+
fleetUID: opts["fleetUID"],
|
|
1578
|
+
notecardFirmware: this.apiClient.buildCollectionParam(opts["notecardFirmware"], "multi"),
|
|
1579
|
+
location: this.apiClient.buildCollectionParam(opts["location"], "multi"),
|
|
1580
|
+
hostFirmware: this.apiClient.buildCollectionParam(opts["hostFirmware"], "multi"),
|
|
1581
|
+
productUID: this.apiClient.buildCollectionParam(opts["productUID"], "multi"),
|
|
1582
|
+
sku: this.apiClient.buildCollectionParam(opts["sku"], "multi")
|
|
1577
1583
|
};
|
|
1578
1584
|
var headerParams = {};
|
|
1579
1585
|
var formParams = {};
|
|
1580
|
-
var authNames = [
|
|
1581
|
-
var contentTypes = [
|
|
1582
|
-
var accepts = [
|
|
1586
|
+
var authNames = ["personalAccessToken"];
|
|
1587
|
+
var contentTypes = ["application/json"];
|
|
1588
|
+
var accepts = ["application/json"];
|
|
1583
1589
|
var returnType = null;
|
|
1584
|
-
return this.apiClient.callApi(
|
|
1590
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/dfu/{firmwareType}/{action}", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1585
1591
|
}
|
|
1586
1592
|
|
|
1587
1593
|
/**
|
|
1588
1594
|
* Update/cancel host or notecard firmware updates
|
|
1589
|
-
* @param {String} projectOrProductUID
|
|
1590
|
-
* @param {module:model/String} firmwareType
|
|
1591
|
-
* @param {module:model/String} action
|
|
1595
|
+
* @param {String} projectOrProductUID
|
|
1596
|
+
* @param {module:model/String} firmwareType
|
|
1597
|
+
* @param {module:model/String} action
|
|
1592
1598
|
* @param {Object} opts Optional parameters
|
|
1593
1599
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
1594
1600
|
* @param {Array.<String>} opts.tag Tag filter
|
|
1595
1601
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1596
|
-
* @param {String} opts.fleetUID
|
|
1602
|
+
* @param {String} opts.fleetUID
|
|
1597
1603
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1598
1604
|
* @param {Array.<String>} opts.location Location filter
|
|
1599
1605
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1600
|
-
* @param {Array.<String>} opts.productUID
|
|
1606
|
+
* @param {Array.<String>} opts.productUID
|
|
1601
1607
|
* @param {Array.<String>} opts.sku SKU filter
|
|
1602
1608
|
* @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
|
|
1603
1609
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
@@ -1612,8 +1618,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1612
1618
|
|
|
1613
1619
|
/**
|
|
1614
1620
|
* Set environment variables of a fleet
|
|
1615
|
-
* @param {String} projectOrProductUID
|
|
1616
|
-
* @param {String} fleetUID
|
|
1621
|
+
* @param {String} projectOrProductUID
|
|
1622
|
+
* @param {String} fleetUID
|
|
1617
1623
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
1618
1624
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1619
1625
|
*/
|
|
@@ -1634,23 +1640,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1634
1640
|
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling setFleetEnvironmentVariables");
|
|
1635
1641
|
}
|
|
1636
1642
|
var pathParams = {
|
|
1637
|
-
|
|
1638
|
-
|
|
1643
|
+
projectOrProductUID: projectOrProductUID,
|
|
1644
|
+
fleetUID: fleetUID
|
|
1639
1645
|
};
|
|
1640
1646
|
var queryParams = {};
|
|
1641
1647
|
var headerParams = {};
|
|
1642
1648
|
var formParams = {};
|
|
1643
|
-
var authNames = [
|
|
1644
|
-
var contentTypes = [
|
|
1645
|
-
var accepts = [
|
|
1649
|
+
var authNames = ["personalAccessToken"];
|
|
1650
|
+
var contentTypes = ["application/json"];
|
|
1651
|
+
var accepts = ["application/json"];
|
|
1646
1652
|
var returnType = _EnvironmentVariables["default"];
|
|
1647
|
-
return this.apiClient.callApi(
|
|
1653
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1648
1654
|
}
|
|
1649
1655
|
|
|
1650
1656
|
/**
|
|
1651
1657
|
* Set environment variables of a fleet
|
|
1652
|
-
* @param {String} projectOrProductUID
|
|
1653
|
-
* @param {String} fleetUID
|
|
1658
|
+
* @param {String} projectOrProductUID
|
|
1659
|
+
* @param {String} fleetUID
|
|
1654
1660
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
1655
1661
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1656
1662
|
*/
|
|
@@ -1664,7 +1670,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1664
1670
|
|
|
1665
1671
|
/**
|
|
1666
1672
|
* Set the project-level event JSONata transformation
|
|
1667
|
-
* @param {String} projectOrProductUID
|
|
1673
|
+
* @param {String} projectOrProductUID
|
|
1668
1674
|
* @param {Object.<String, Object>} body JSONata expression which will be applied to each event before it is persisted and routed
|
|
1669
1675
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1670
1676
|
*/
|
|
@@ -1681,21 +1687,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1681
1687
|
throw new _Error["default"]("Missing the required parameter 'body' when calling setGlobalEventTransformation");
|
|
1682
1688
|
}
|
|
1683
1689
|
var pathParams = {
|
|
1684
|
-
|
|
1690
|
+
projectOrProductUID: projectOrProductUID
|
|
1685
1691
|
};
|
|
1686
1692
|
var queryParams = {};
|
|
1687
1693
|
var headerParams = {};
|
|
1688
1694
|
var formParams = {};
|
|
1689
|
-
var authNames = [
|
|
1690
|
-
var contentTypes = [
|
|
1691
|
-
var accepts = [
|
|
1695
|
+
var authNames = ["personalAccessToken"];
|
|
1696
|
+
var contentTypes = ["application/json"];
|
|
1697
|
+
var accepts = ["application/json"];
|
|
1692
1698
|
var returnType = null;
|
|
1693
|
-
return this.apiClient.callApi(
|
|
1699
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/global-transformation", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1694
1700
|
}
|
|
1695
1701
|
|
|
1696
1702
|
/**
|
|
1697
1703
|
* Set the project-level event JSONata transformation
|
|
1698
|
-
* @param {String} projectOrProductUID
|
|
1704
|
+
* @param {String} projectOrProductUID
|
|
1699
1705
|
* @param {Object.<String, Object>} body JSONata expression which will be applied to each event before it is persisted and routed
|
|
1700
1706
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1701
1707
|
*/
|
|
@@ -1709,38 +1715,38 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1709
1715
|
|
|
1710
1716
|
/**
|
|
1711
1717
|
* Set environment variables of a project
|
|
1712
|
-
* @param {String} projectOrProductUID
|
|
1718
|
+
* @param {String} projectOrProductUID
|
|
1713
1719
|
* @param {Object} opts Optional parameters
|
|
1714
|
-
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1720
|
+
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1715
1721
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1716
1722
|
*/
|
|
1717
1723
|
}, {
|
|
1718
1724
|
key: "setProjectEnvironmentVariablesWithHttpInfo",
|
|
1719
1725
|
value: function setProjectEnvironmentVariablesWithHttpInfo(projectOrProductUID, opts) {
|
|
1720
1726
|
opts = opts || {};
|
|
1721
|
-
var postBody = opts[
|
|
1727
|
+
var postBody = opts["environmentVariables"];
|
|
1722
1728
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1723
1729
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1724
1730
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling setProjectEnvironmentVariables");
|
|
1725
1731
|
}
|
|
1726
1732
|
var pathParams = {
|
|
1727
|
-
|
|
1733
|
+
projectOrProductUID: projectOrProductUID
|
|
1728
1734
|
};
|
|
1729
1735
|
var queryParams = {};
|
|
1730
1736
|
var headerParams = {};
|
|
1731
1737
|
var formParams = {};
|
|
1732
|
-
var authNames = [
|
|
1733
|
-
var contentTypes = [
|
|
1734
|
-
var accepts = [
|
|
1738
|
+
var authNames = ["personalAccessToken"];
|
|
1739
|
+
var contentTypes = ["application/json"];
|
|
1740
|
+
var accepts = ["application/json"];
|
|
1735
1741
|
var returnType = _EnvironmentVariables["default"];
|
|
1736
|
-
return this.apiClient.callApi(
|
|
1742
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/environment_variables", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1737
1743
|
}
|
|
1738
1744
|
|
|
1739
1745
|
/**
|
|
1740
1746
|
* Set environment variables of a project
|
|
1741
|
-
* @param {String} projectOrProductUID
|
|
1747
|
+
* @param {String} projectOrProductUID
|
|
1742
1748
|
* @param {Object} opts Optional parameters
|
|
1743
|
-
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1749
|
+
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1744
1750
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1745
1751
|
*/
|
|
1746
1752
|
}, {
|
|
@@ -1753,8 +1759,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1753
1759
|
|
|
1754
1760
|
/**
|
|
1755
1761
|
* Update Fleet
|
|
1756
|
-
* @param {String} projectOrProductUID
|
|
1757
|
-
* @param {String} fleetUID
|
|
1762
|
+
* @param {String} projectOrProductUID
|
|
1763
|
+
* @param {String} fleetUID
|
|
1758
1764
|
* @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
|
|
1759
1765
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
1760
1766
|
*/
|
|
@@ -1775,23 +1781,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1775
1781
|
throw new _Error["default"]("Missing the required parameter 'updateFleetRequest' when calling updateFleet");
|
|
1776
1782
|
}
|
|
1777
1783
|
var pathParams = {
|
|
1778
|
-
|
|
1779
|
-
|
|
1784
|
+
projectOrProductUID: projectOrProductUID,
|
|
1785
|
+
fleetUID: fleetUID
|
|
1780
1786
|
};
|
|
1781
1787
|
var queryParams = {};
|
|
1782
1788
|
var headerParams = {};
|
|
1783
1789
|
var formParams = {};
|
|
1784
|
-
var authNames = [
|
|
1785
|
-
var contentTypes = [
|
|
1786
|
-
var accepts = [
|
|
1790
|
+
var authNames = ["personalAccessToken"];
|
|
1791
|
+
var contentTypes = ["application/json"];
|
|
1792
|
+
var accepts = ["application/json"];
|
|
1787
1793
|
var returnType = _Fleet["default"];
|
|
1788
|
-
return this.apiClient.callApi(
|
|
1794
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/fleets/{fleetUID}", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1789
1795
|
}
|
|
1790
1796
|
|
|
1791
1797
|
/**
|
|
1792
1798
|
* Update Fleet
|
|
1793
|
-
* @param {String} projectOrProductUID
|
|
1794
|
-
* @param {String} fleetUID
|
|
1799
|
+
* @param {String} projectOrProductUID
|
|
1800
|
+
* @param {String} fleetUID
|
|
1795
1801
|
* @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
|
|
1796
1802
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
1797
1803
|
*/
|
|
@@ -1805,9 +1811,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1805
1811
|
|
|
1806
1812
|
/**
|
|
1807
1813
|
* Upload firmware binary
|
|
1808
|
-
* @param {String} projectOrProductUID
|
|
1809
|
-
* @param {module:model/String} firmwareType
|
|
1810
|
-
* @param {String} filename
|
|
1814
|
+
* @param {String} projectOrProductUID
|
|
1815
|
+
* @param {module:model/String} firmwareType
|
|
1816
|
+
* @param {String} filename
|
|
1811
1817
|
* @param {File} body contents of the firmware binary
|
|
1812
1818
|
* @param {Object} opts Optional parameters
|
|
1813
1819
|
* @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 +1842,28 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1836
1842
|
throw new _Error["default"]("Missing the required parameter 'body' when calling uploadFirmware");
|
|
1837
1843
|
}
|
|
1838
1844
|
var pathParams = {
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1845
|
+
projectOrProductUID: projectOrProductUID,
|
|
1846
|
+
firmwareType: firmwareType,
|
|
1847
|
+
filename: filename
|
|
1842
1848
|
};
|
|
1843
1849
|
var queryParams = {
|
|
1844
|
-
|
|
1845
|
-
|
|
1850
|
+
version: opts["version"],
|
|
1851
|
+
notes: opts["notes"]
|
|
1846
1852
|
};
|
|
1847
1853
|
var headerParams = {};
|
|
1848
1854
|
var formParams = {};
|
|
1849
|
-
var authNames = [
|
|
1850
|
-
var contentTypes = [
|
|
1851
|
-
var accepts = [
|
|
1855
|
+
var authNames = ["personalAccessToken"];
|
|
1856
|
+
var contentTypes = ["application/octet-stream"];
|
|
1857
|
+
var accepts = ["application/json"];
|
|
1852
1858
|
var returnType = _FirmwareInfo["default"];
|
|
1853
|
-
return this.apiClient.callApi(
|
|
1859
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/firmware/{firmwareType}/{filename}", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1854
1860
|
}
|
|
1855
1861
|
|
|
1856
1862
|
/**
|
|
1857
1863
|
* Upload firmware binary
|
|
1858
|
-
* @param {String} projectOrProductUID
|
|
1859
|
-
* @param {module:model/String} firmwareType
|
|
1860
|
-
* @param {String} filename
|
|
1864
|
+
* @param {String} projectOrProductUID
|
|
1865
|
+
* @param {module:model/String} firmwareType
|
|
1866
|
+
* @param {String} filename
|
|
1861
1867
|
* @param {File} body contents of the firmware binary
|
|
1862
1868
|
* @param {Object} opts Optional parameters
|
|
1863
1869
|
* @param {String} opts.version Firmware version (optional). If not provided, the version will be extracted from firmware binary if available, otherwise left empty
|