@blues-inc/notehub-js 2.2.0-beta.9 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +241 -249
- package/dist/ApiClient.js +154 -154
- 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 +370 -382
- package/dist/api/EventApi.js +118 -118
- package/dist/api/ExternalDevicesApi.js +41 -41
- package/dist/api/MonitorApi.js +52 -52
- package/dist/api/ProjectApi.js +381 -381
- package/dist/api/RouteApi.js +77 -77
- package/dist/api/UsageApi.js +51 -51
- package/dist/api/WebhookApi.js +51 -51
- package/dist/model/Alert.js +74 -76
- package/dist/model/AlertDataInner.js +35 -35
- package/dist/model/AlertNotificationsInner.js +18 -18
- package/dist/model/AwsRoute.js +65 -65
- package/dist/model/AzureRoute.js +43 -43
- package/dist/model/BillingAccount.js +21 -21
- package/dist/model/BillingAccountRole.js +9 -9
- package/dist/model/BlynkRoute.js +28 -28
- package/dist/model/Body.js +5 -5
- package/dist/model/CellularPlan.js +34 -34
- package/dist/model/CloneProjectRequest.js +20 -20
- package/dist/model/Contact.js +22 -22
- package/dist/model/CreateFleetRequest.js +17 -17
- package/dist/model/CreateMonitor.js +125 -126
- package/dist/model/CreateProductRequest.js +22 -22
- package/dist/model/CreateProjectRequest.js +16 -16
- package/dist/model/CreateUpdateRepository.js +17 -17
- package/dist/model/CurrentFirmware.js +12 -12
- package/dist/model/DFUEnv.js +12 -12
- package/dist/model/DFUState.js +65 -65
- package/dist/model/DataField.js +7 -7
- package/dist/model/DataSetField.js +19 -19
- package/dist/model/DataUsage.js +14 -14
- package/dist/model/DatacakeRoute.js +35 -35
- package/dist/model/DeleteDeviceFleetsRequest.js +8 -8
- package/dist/model/Device.js +101 -102
- 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 +35 -35
- package/dist/model/FleetConnectivityAssurance.js +6 -6
- 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 +40 -41
- 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/GetDeviceLatest200Response.js +9 -10
- package/dist/model/GetDevicePlans200Response.js +9 -10
- package/dist/model/GetDevicePublicKey200Response.js +16 -16
- package/dist/model/GetDeviceSessions200Response.js +16 -17
- package/dist/model/GetProducts200Response.js +9 -10
- package/dist/model/GetProjectDevicePublicKeys200Response.js +16 -17
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
- package/dist/model/GetProjectDevices200Response.js +16 -17
- package/dist/model/GetProjectEvents200Response.js +20 -21
- package/dist/model/GetProjectEventsByCursor200Response.js +23 -24
- package/dist/model/GetProjectMembers200Response.js +11 -12
- package/dist/model/GetProjects200Response.js +9 -10
- package/dist/model/GetSessionsUsage200Response.js +11 -12
- package/dist/model/GetWebhooks200Response.js +9 -10
- package/dist/model/GoogleRoute.js +33 -33
- package/dist/model/HandleNoteChanges200Response.js +11 -11
- package/dist/model/HandleNoteGet200Response.js +13 -13
- package/dist/model/HandleNoteSignal200Response.js +5 -5
- package/dist/model/HandleNotefileChanges200Response.js +11 -11
- package/dist/model/HandleNotefileChangesPending200Response.js +14 -14
- package/dist/model/HandleNotefileDeleteRequest.js +7 -7
- package/dist/model/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 +99 -100
- package/dist/model/MonitorAlertRoutesInner.js +10 -9
- package/dist/model/MqttRoute.js +68 -68
- package/dist/model/Note.js +10 -10
- package/dist/model/NotefileSchema.js +18 -19
- package/dist/model/NotehubRoute.js +98 -98
- 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/PostProvisionProjectDeviceRequest.js +18 -18
- package/dist/model/Product.js +26 -26
- package/dist/model/Project.js +34 -34
- package/dist/model/ProjectMember.js +22 -22
- package/dist/model/ProxyRoute.js +24 -24
- package/dist/model/PutDeviceFleetsRequest.js +8 -8
- 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 +13 -13
- package/dist/model/S3ArchiveRoute.js +79 -79
- package/dist/model/SatellitePlan.js +26 -26
- package/dist/model/SchemaProperty.js +36 -38
- 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/ThingworxRoute.js +33 -33
- package/dist/model/TowerLocation.js +54 -54
- package/dist/model/TwilioRoute.js +43 -43
- package/dist/model/UpdateFleetRequest.js +30 -30
- package/dist/model/UploadMetadata.js +64 -64
- package/dist/model/UsageData.js +18 -18
- package/dist/model/UsageEventsData.js +44 -31
- package/dist/model/UsageEventsResponse.js +11 -12
- package/dist/model/UsageRouteLogsData.js +28 -28
- package/dist/model/UsageSessionsData.js +27 -27
- 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 2.2.
|
|
54
|
-
*/
|
|
51
|
+
* Project service.
|
|
52
|
+
* @module api/ProjectApi
|
|
53
|
+
* @version 2.2.1
|
|
54
|
+
*/
|
|
55
55
|
var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
56
56
|
/**
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
57
|
+
* Constructs a new ProjectApi.
|
|
58
|
+
* @alias module:api/ProjectApi
|
|
59
|
+
* @class
|
|
60
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
61
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
62
|
+
*/
|
|
63
63
|
function ProjectApi(apiClient) {
|
|
64
64
|
_classCallCheck(this, ProjectApi);
|
|
65
65
|
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
@@ -67,7 +67,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* Clone a Project
|
|
70
|
-
* @param {String} projectOrProductUID
|
|
70
|
+
* @param {String} projectOrProductUID
|
|
71
71
|
* @param {module:model/CloneProjectRequest} cloneProjectRequest Project to be cloned
|
|
72
72
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
73
73
|
*/
|
|
@@ -84,21 +84,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
84
84
|
throw new _Error["default"]("Missing the required parameter 'cloneProjectRequest' when calling cloneProject");
|
|
85
85
|
}
|
|
86
86
|
var pathParams = {
|
|
87
|
-
|
|
87
|
+
projectOrProductUID: projectOrProductUID
|
|
88
88
|
};
|
|
89
89
|
var queryParams = {};
|
|
90
90
|
var headerParams = {};
|
|
91
91
|
var formParams = {};
|
|
92
|
-
var authNames = [
|
|
93
|
-
var contentTypes = [
|
|
94
|
-
var accepts = [
|
|
92
|
+
var authNames = ["personalAccessToken"];
|
|
93
|
+
var contentTypes = ["application/json"];
|
|
94
|
+
var accepts = ["application/json"];
|
|
95
95
|
var returnType = _Project["default"];
|
|
96
|
-
return this.apiClient.callApi(
|
|
96
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/clone", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
/**
|
|
100
100
|
* Clone a Project
|
|
101
|
-
* @param {String} projectOrProductUID
|
|
101
|
+
* @param {String} projectOrProductUID
|
|
102
102
|
* @param {module:model/CloneProjectRequest} cloneProjectRequest Project to be cloned
|
|
103
103
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
104
104
|
*/
|
|
@@ -112,7 +112,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
112
112
|
|
|
113
113
|
/**
|
|
114
114
|
* Create Fleet
|
|
115
|
-
* @param {String} projectOrProductUID
|
|
115
|
+
* @param {String} projectOrProductUID
|
|
116
116
|
* @param {module:model/CreateFleetRequest} createFleetRequest Fleet to be added
|
|
117
117
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
118
118
|
*/
|
|
@@ -129,21 +129,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
129
129
|
throw new _Error["default"]("Missing the required parameter 'createFleetRequest' when calling createFleet");
|
|
130
130
|
}
|
|
131
131
|
var pathParams = {
|
|
132
|
-
|
|
132
|
+
projectOrProductUID: projectOrProductUID
|
|
133
133
|
};
|
|
134
134
|
var queryParams = {};
|
|
135
135
|
var headerParams = {};
|
|
136
136
|
var formParams = {};
|
|
137
|
-
var authNames = [
|
|
138
|
-
var contentTypes = [
|
|
139
|
-
var accepts = [
|
|
137
|
+
var authNames = ["personalAccessToken"];
|
|
138
|
+
var contentTypes = ["application/json"];
|
|
139
|
+
var accepts = ["application/json"];
|
|
140
140
|
var returnType = _Fleet["default"];
|
|
141
|
-
return this.apiClient.callApi(
|
|
141
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/fleets", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
/**
|
|
145
145
|
* Create Fleet
|
|
146
|
-
* @param {String} projectOrProductUID
|
|
146
|
+
* @param {String} projectOrProductUID
|
|
147
147
|
* @param {module:model/CreateFleetRequest} createFleetRequest Fleet to be added
|
|
148
148
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
149
149
|
*/
|
|
@@ -157,7 +157,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
157
157
|
|
|
158
158
|
/**
|
|
159
159
|
* Create Product within a Project
|
|
160
|
-
* @param {String} projectOrProductUID
|
|
160
|
+
* @param {String} projectOrProductUID
|
|
161
161
|
* @param {module:model/CreateProductRequest} createProductRequest Product to be created
|
|
162
162
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Product} and HTTP response
|
|
163
163
|
*/
|
|
@@ -174,21 +174,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
174
174
|
throw new _Error["default"]("Missing the required parameter 'createProductRequest' when calling createProduct");
|
|
175
175
|
}
|
|
176
176
|
var pathParams = {
|
|
177
|
-
|
|
177
|
+
projectOrProductUID: projectOrProductUID
|
|
178
178
|
};
|
|
179
179
|
var queryParams = {};
|
|
180
180
|
var headerParams = {};
|
|
181
181
|
var formParams = {};
|
|
182
|
-
var authNames = [
|
|
183
|
-
var contentTypes = [
|
|
184
|
-
var accepts = [
|
|
182
|
+
var authNames = ["personalAccessToken"];
|
|
183
|
+
var contentTypes = ["application/json"];
|
|
184
|
+
var accepts = ["application/json"];
|
|
185
185
|
var returnType = _Product["default"];
|
|
186
|
-
return this.apiClient.callApi(
|
|
186
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/products", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
/**
|
|
190
190
|
* Create Product within a Project
|
|
191
|
-
* @param {String} projectOrProductUID
|
|
191
|
+
* @param {String} projectOrProductUID
|
|
192
192
|
* @param {module:model/CreateProductRequest} createProductRequest Product to be created
|
|
193
193
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Product}
|
|
194
194
|
*/
|
|
@@ -217,11 +217,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
217
217
|
var queryParams = {};
|
|
218
218
|
var headerParams = {};
|
|
219
219
|
var formParams = {};
|
|
220
|
-
var authNames = [
|
|
221
|
-
var contentTypes = [
|
|
222
|
-
var accepts = [
|
|
220
|
+
var authNames = ["personalAccessToken"];
|
|
221
|
+
var contentTypes = ["application/json"];
|
|
222
|
+
var accepts = ["application/json"];
|
|
223
223
|
var returnType = _Project["default"];
|
|
224
|
-
return this.apiClient.callApi(
|
|
224
|
+
return this.apiClient.callApi("/v1/projects", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
225
225
|
}
|
|
226
226
|
|
|
227
227
|
/**
|
|
@@ -239,9 +239,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
239
239
|
|
|
240
240
|
/**
|
|
241
241
|
* Remove Device from Fleets
|
|
242
|
-
* @param {String} projectOrProductUID
|
|
243
|
-
* @param {String} deviceUID
|
|
244
|
-
* @param {module:model/DeleteDeviceFleetsRequest} deleteDeviceFleetsRequest The fleets to remove from the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
242
|
+
* @param {String} projectOrProductUID
|
|
243
|
+
* @param {String} deviceUID
|
|
244
|
+
* @param {module:model/DeleteDeviceFleetsRequest} deleteDeviceFleetsRequest The fleets to remove from the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
245
245
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
246
246
|
*/
|
|
247
247
|
}, {
|
|
@@ -261,24 +261,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
261
261
|
throw new _Error["default"]("Missing the required parameter 'deleteDeviceFleetsRequest' when calling deleteDeviceFleets");
|
|
262
262
|
}
|
|
263
263
|
var pathParams = {
|
|
264
|
-
|
|
265
|
-
|
|
264
|
+
projectOrProductUID: projectOrProductUID,
|
|
265
|
+
deviceUID: deviceUID
|
|
266
266
|
};
|
|
267
267
|
var queryParams = {};
|
|
268
268
|
var headerParams = {};
|
|
269
269
|
var formParams = {};
|
|
270
|
-
var authNames = [
|
|
271
|
-
var contentTypes = [
|
|
272
|
-
var accepts = [
|
|
270
|
+
var authNames = ["personalAccessToken"];
|
|
271
|
+
var contentTypes = ["application/json"];
|
|
272
|
+
var accepts = ["application/json"];
|
|
273
273
|
var returnType = _GetDeviceFleets200Response["default"];
|
|
274
|
-
return this.apiClient.callApi(
|
|
274
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/fleets", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
275
275
|
}
|
|
276
276
|
|
|
277
277
|
/**
|
|
278
278
|
* Remove Device from Fleets
|
|
279
|
-
* @param {String} projectOrProductUID
|
|
280
|
-
* @param {String} deviceUID
|
|
281
|
-
* @param {module:model/DeleteDeviceFleetsRequest} deleteDeviceFleetsRequest The fleets to remove from the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
279
|
+
* @param {String} projectOrProductUID
|
|
280
|
+
* @param {String} deviceUID
|
|
281
|
+
* @param {module:model/DeleteDeviceFleetsRequest} deleteDeviceFleetsRequest The fleets to remove from the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
282
282
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
283
283
|
*/
|
|
284
284
|
}, {
|
|
@@ -291,8 +291,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
291
291
|
|
|
292
292
|
/**
|
|
293
293
|
* Delete Fleet
|
|
294
|
-
* @param {String} projectOrProductUID
|
|
295
|
-
* @param {String} fleetUID
|
|
294
|
+
* @param {String} projectOrProductUID
|
|
295
|
+
* @param {String} fleetUID
|
|
296
296
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
297
297
|
*/
|
|
298
298
|
}, {
|
|
@@ -308,23 +308,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
308
308
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling deleteFleet");
|
|
309
309
|
}
|
|
310
310
|
var pathParams = {
|
|
311
|
-
|
|
312
|
-
|
|
311
|
+
projectOrProductUID: projectOrProductUID,
|
|
312
|
+
fleetUID: fleetUID
|
|
313
313
|
};
|
|
314
314
|
var queryParams = {};
|
|
315
315
|
var headerParams = {};
|
|
316
316
|
var formParams = {};
|
|
317
|
-
var authNames = [
|
|
317
|
+
var authNames = ["personalAccessToken"];
|
|
318
318
|
var contentTypes = [];
|
|
319
|
-
var accepts = [
|
|
319
|
+
var accepts = ["application/json"];
|
|
320
320
|
var returnType = null;
|
|
321
|
-
return this.apiClient.callApi(
|
|
321
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/fleets/{fleetUID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
322
322
|
}
|
|
323
323
|
|
|
324
324
|
/**
|
|
325
325
|
* Delete Fleet
|
|
326
|
-
* @param {String} projectOrProductUID
|
|
327
|
-
* @param {String} fleetUID
|
|
326
|
+
* @param {String} projectOrProductUID
|
|
327
|
+
* @param {String} fleetUID
|
|
328
328
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
329
329
|
*/
|
|
330
330
|
}, {
|
|
@@ -337,8 +337,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
337
337
|
|
|
338
338
|
/**
|
|
339
339
|
* Delete environment variables of a fleet
|
|
340
|
-
* @param {String} projectOrProductUID
|
|
341
|
-
* @param {String} fleetUID
|
|
340
|
+
* @param {String} projectOrProductUID
|
|
341
|
+
* @param {String} fleetUID
|
|
342
342
|
* @param {String} key The environment variable key to delete.
|
|
343
343
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
344
344
|
*/
|
|
@@ -359,24 +359,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
359
359
|
throw new _Error["default"]("Missing the required parameter 'key' when calling deleteFleetEnvironmentVariable");
|
|
360
360
|
}
|
|
361
361
|
var pathParams = {
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
362
|
+
projectOrProductUID: projectOrProductUID,
|
|
363
|
+
fleetUID: fleetUID,
|
|
364
|
+
key: key
|
|
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 = _EnvironmentVariables["default"];
|
|
373
|
-
return this.apiClient.callApi(
|
|
373
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables/{key}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
374
374
|
}
|
|
375
375
|
|
|
376
376
|
/**
|
|
377
377
|
* Delete environment variables of a fleet
|
|
378
|
-
* @param {String} projectOrProductUID
|
|
379
|
-
* @param {String} fleetUID
|
|
378
|
+
* @param {String} projectOrProductUID
|
|
379
|
+
* @param {String} fleetUID
|
|
380
380
|
* @param {String} key The environment variable key to delete.
|
|
381
381
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
382
382
|
*/
|
|
@@ -390,8 +390,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
390
390
|
|
|
391
391
|
/**
|
|
392
392
|
* Delete a product
|
|
393
|
-
* @param {String} projectOrProductUID
|
|
394
|
-
* @param {String} productUID
|
|
393
|
+
* @param {String} projectOrProductUID
|
|
394
|
+
* @param {String} productUID
|
|
395
395
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
396
396
|
*/
|
|
397
397
|
}, {
|
|
@@ -407,23 +407,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
407
407
|
throw new _Error["default"]("Missing the required parameter 'productUID' when calling deleteProduct");
|
|
408
408
|
}
|
|
409
409
|
var pathParams = {
|
|
410
|
-
|
|
411
|
-
|
|
410
|
+
projectOrProductUID: projectOrProductUID,
|
|
411
|
+
productUID: productUID
|
|
412
412
|
};
|
|
413
413
|
var queryParams = {};
|
|
414
414
|
var headerParams = {};
|
|
415
415
|
var formParams = {};
|
|
416
|
-
var authNames = [
|
|
416
|
+
var authNames = ["personalAccessToken"];
|
|
417
417
|
var contentTypes = [];
|
|
418
|
-
var accepts = [
|
|
418
|
+
var accepts = ["application/json"];
|
|
419
419
|
var returnType = null;
|
|
420
|
-
return this.apiClient.callApi(
|
|
420
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/products/{productUID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
421
421
|
}
|
|
422
422
|
|
|
423
423
|
/**
|
|
424
424
|
* Delete a product
|
|
425
|
-
* @param {String} projectOrProductUID
|
|
426
|
-
* @param {String} productUID
|
|
425
|
+
* @param {String} projectOrProductUID
|
|
426
|
+
* @param {String} productUID
|
|
427
427
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
428
428
|
*/
|
|
429
429
|
}, {
|
|
@@ -436,7 +436,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
436
436
|
|
|
437
437
|
/**
|
|
438
438
|
* Delete a Project by ProjectUID
|
|
439
|
-
* @param {String} projectOrProductUID
|
|
439
|
+
* @param {String} projectOrProductUID
|
|
440
440
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
441
441
|
*/
|
|
442
442
|
}, {
|
|
@@ -448,21 +448,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
448
448
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteProject");
|
|
449
449
|
}
|
|
450
450
|
var pathParams = {
|
|
451
|
-
|
|
451
|
+
projectOrProductUID: projectOrProductUID
|
|
452
452
|
};
|
|
453
453
|
var queryParams = {};
|
|
454
454
|
var headerParams = {};
|
|
455
455
|
var formParams = {};
|
|
456
|
-
var authNames = [
|
|
456
|
+
var authNames = ["personalAccessToken"];
|
|
457
457
|
var contentTypes = [];
|
|
458
|
-
var accepts = [
|
|
458
|
+
var accepts = ["application/json"];
|
|
459
459
|
var returnType = null;
|
|
460
|
-
return this.apiClient.callApi(
|
|
460
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
461
461
|
}
|
|
462
462
|
|
|
463
463
|
/**
|
|
464
464
|
* Delete a Project by ProjectUID
|
|
465
|
-
* @param {String} projectOrProductUID
|
|
465
|
+
* @param {String} projectOrProductUID
|
|
466
466
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
467
467
|
*/
|
|
468
468
|
}, {
|
|
@@ -475,7 +475,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
475
475
|
|
|
476
476
|
/**
|
|
477
477
|
* Delete an environment variable of a project by key
|
|
478
|
-
* @param {String} projectOrProductUID
|
|
478
|
+
* @param {String} projectOrProductUID
|
|
479
479
|
* @param {String} key The environment variable key to delete.
|
|
480
480
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
481
481
|
*/
|
|
@@ -492,22 +492,22 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
492
492
|
throw new _Error["default"]("Missing the required parameter 'key' when calling deleteProjectEnvironmentVariable");
|
|
493
493
|
}
|
|
494
494
|
var pathParams = {
|
|
495
|
-
|
|
496
|
-
|
|
495
|
+
projectOrProductUID: projectOrProductUID,
|
|
496
|
+
key: key
|
|
497
497
|
};
|
|
498
498
|
var queryParams = {};
|
|
499
499
|
var headerParams = {};
|
|
500
500
|
var formParams = {};
|
|
501
|
-
var authNames = [
|
|
501
|
+
var authNames = ["personalAccessToken"];
|
|
502
502
|
var contentTypes = [];
|
|
503
|
-
var accepts = [
|
|
503
|
+
var accepts = ["application/json"];
|
|
504
504
|
var returnType = _EnvironmentVariables["default"];
|
|
505
|
-
return this.apiClient.callApi(
|
|
505
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/environment_variables/{key}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
506
506
|
}
|
|
507
507
|
|
|
508
508
|
/**
|
|
509
509
|
* Delete an environment variable of a project by key
|
|
510
|
-
* @param {String} projectOrProductUID
|
|
510
|
+
* @param {String} projectOrProductUID
|
|
511
511
|
* @param {String} key The environment variable key to delete.
|
|
512
512
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
513
513
|
*/
|
|
@@ -521,18 +521,18 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
521
521
|
|
|
522
522
|
/**
|
|
523
523
|
* Update/cancel host or notecard firmware updates
|
|
524
|
-
* @param {String} projectOrProductUID
|
|
525
|
-
* @param {module:model/String} firmwareType
|
|
526
|
-
* @param {module:model/String} action
|
|
524
|
+
* @param {String} projectOrProductUID
|
|
525
|
+
* @param {module:model/String} firmwareType
|
|
526
|
+
* @param {module:model/String} action
|
|
527
527
|
* @param {Object} opts Optional parameters
|
|
528
528
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
529
529
|
* @param {Array.<String>} opts.tag Tag filter
|
|
530
530
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
531
|
-
* @param {String} opts.fleetUID
|
|
531
|
+
* @param {String} opts.fleetUID
|
|
532
532
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
533
533
|
* @param {Array.<String>} opts.location Location filter
|
|
534
534
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
535
|
-
* @param {Array.<String>} opts.productUID
|
|
535
|
+
* @param {Array.<String>} opts.productUID
|
|
536
536
|
* @param {Array.<String>} opts.sku SKU filter
|
|
537
537
|
* @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
|
|
538
538
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
@@ -541,7 +541,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
541
541
|
key: "dfuActionWithHttpInfo",
|
|
542
542
|
value: function dfuActionWithHttpInfo(projectOrProductUID, firmwareType, action, opts) {
|
|
543
543
|
opts = opts || {};
|
|
544
|
-
var postBody = opts[
|
|
544
|
+
var postBody = opts["dfuActionRequest"];
|
|
545
545
|
// verify the required parameter 'projectOrProductUID' is set
|
|
546
546
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
547
547
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling dfuAction");
|
|
@@ -555,44 +555,44 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
555
555
|
throw new _Error["default"]("Missing the required parameter 'action' when calling dfuAction");
|
|
556
556
|
}
|
|
557
557
|
var pathParams = {
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
558
|
+
projectOrProductUID: projectOrProductUID,
|
|
559
|
+
firmwareType: firmwareType,
|
|
560
|
+
action: action
|
|
561
561
|
};
|
|
562
562
|
var queryParams = {
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
563
|
+
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
564
|
+
tag: this.apiClient.buildCollectionParam(opts["tag"], "multi"),
|
|
565
|
+
serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
|
|
566
|
+
fleetUID: opts["fleetUID"],
|
|
567
|
+
notecardFirmware: this.apiClient.buildCollectionParam(opts["notecardFirmware"], "multi"),
|
|
568
|
+
location: this.apiClient.buildCollectionParam(opts["location"], "multi"),
|
|
569
|
+
hostFirmware: this.apiClient.buildCollectionParam(opts["hostFirmware"], "multi"),
|
|
570
|
+
productUID: this.apiClient.buildCollectionParam(opts["productUID"], "multi"),
|
|
571
|
+
sku: this.apiClient.buildCollectionParam(opts["sku"], "multi")
|
|
572
572
|
};
|
|
573
573
|
var headerParams = {};
|
|
574
574
|
var formParams = {};
|
|
575
|
-
var authNames = [
|
|
576
|
-
var contentTypes = [
|
|
577
|
-
var accepts = [
|
|
575
|
+
var authNames = ["personalAccessToken"];
|
|
576
|
+
var contentTypes = ["application/json"];
|
|
577
|
+
var accepts = ["application/json"];
|
|
578
578
|
var returnType = null;
|
|
579
|
-
return this.apiClient.callApi(
|
|
579
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/dfu/{firmwareType}/{action}", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
580
580
|
}
|
|
581
581
|
|
|
582
582
|
/**
|
|
583
583
|
* Update/cancel host or notecard firmware updates
|
|
584
|
-
* @param {String} projectOrProductUID
|
|
585
|
-
* @param {module:model/String} firmwareType
|
|
586
|
-
* @param {module:model/String} action
|
|
584
|
+
* @param {String} projectOrProductUID
|
|
585
|
+
* @param {module:model/String} firmwareType
|
|
586
|
+
* @param {module:model/String} action
|
|
587
587
|
* @param {Object} opts Optional parameters
|
|
588
588
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
589
589
|
* @param {Array.<String>} opts.tag Tag filter
|
|
590
590
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
591
|
-
* @param {String} opts.fleetUID
|
|
591
|
+
* @param {String} opts.fleetUID
|
|
592
592
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
593
593
|
* @param {Array.<String>} opts.location Location filter
|
|
594
594
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
595
|
-
* @param {Array.<String>} opts.productUID
|
|
595
|
+
* @param {Array.<String>} opts.productUID
|
|
596
596
|
* @param {Array.<String>} opts.sku SKU filter
|
|
597
597
|
* @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
|
|
598
598
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
@@ -607,7 +607,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
607
607
|
|
|
608
608
|
/**
|
|
609
609
|
* Disable the project-level event JSONata transformation
|
|
610
|
-
* @param {String} projectOrProductUID
|
|
610
|
+
* @param {String} projectOrProductUID
|
|
611
611
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
612
612
|
*/
|
|
613
613
|
}, {
|
|
@@ -619,21 +619,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
619
619
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling disableGlobalTransformation");
|
|
620
620
|
}
|
|
621
621
|
var pathParams = {
|
|
622
|
-
|
|
622
|
+
projectOrProductUID: projectOrProductUID
|
|
623
623
|
};
|
|
624
624
|
var queryParams = {};
|
|
625
625
|
var headerParams = {};
|
|
626
626
|
var formParams = {};
|
|
627
|
-
var authNames = [
|
|
627
|
+
var authNames = ["personalAccessToken"];
|
|
628
628
|
var contentTypes = [];
|
|
629
|
-
var accepts = [
|
|
629
|
+
var accepts = ["application/json"];
|
|
630
630
|
var returnType = null;
|
|
631
|
-
return this.apiClient.callApi(
|
|
631
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/global-transformation/disable", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
632
632
|
}
|
|
633
633
|
|
|
634
634
|
/**
|
|
635
635
|
* Disable the project-level event JSONata transformation
|
|
636
|
-
* @param {String} projectOrProductUID
|
|
636
|
+
* @param {String} projectOrProductUID
|
|
637
637
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
638
638
|
*/
|
|
639
639
|
}, {
|
|
@@ -646,7 +646,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
646
646
|
|
|
647
647
|
/**
|
|
648
648
|
* Enable the project-level event JSONata transformation
|
|
649
|
-
* @param {String} projectOrProductUID
|
|
649
|
+
* @param {String} projectOrProductUID
|
|
650
650
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
651
651
|
*/
|
|
652
652
|
}, {
|
|
@@ -658,21 +658,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
658
658
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling enableGlobalTransformation");
|
|
659
659
|
}
|
|
660
660
|
var pathParams = {
|
|
661
|
-
|
|
661
|
+
projectOrProductUID: projectOrProductUID
|
|
662
662
|
};
|
|
663
663
|
var queryParams = {};
|
|
664
664
|
var headerParams = {};
|
|
665
665
|
var formParams = {};
|
|
666
|
-
var authNames = [
|
|
666
|
+
var authNames = ["personalAccessToken"];
|
|
667
667
|
var contentTypes = [];
|
|
668
|
-
var accepts = [
|
|
668
|
+
var accepts = ["application/json"];
|
|
669
669
|
var returnType = null;
|
|
670
|
-
return this.apiClient.callApi(
|
|
670
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/global-transformation/enable", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
671
671
|
}
|
|
672
672
|
|
|
673
673
|
/**
|
|
674
674
|
* Enable the project-level event JSONata transformation
|
|
675
|
-
* @param {String} projectOrProductUID
|
|
675
|
+
* @param {String} projectOrProductUID
|
|
676
676
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
677
677
|
*/
|
|
678
678
|
}, {
|
|
@@ -685,9 +685,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
685
685
|
|
|
686
686
|
/**
|
|
687
687
|
* Get device DFU history for host or Notecard firmware
|
|
688
|
-
* @param {String} projectOrProductUID
|
|
689
|
-
* @param {String} deviceUID
|
|
690
|
-
* @param {module:model/String} firmwareType
|
|
688
|
+
* @param {String} projectOrProductUID
|
|
689
|
+
* @param {String} deviceUID
|
|
690
|
+
* @param {module:model/String} firmwareType
|
|
691
691
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuHistory} and HTTP response
|
|
692
692
|
*/
|
|
693
693
|
}, {
|
|
@@ -707,25 +707,25 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
707
707
|
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDeviceDfuHistory");
|
|
708
708
|
}
|
|
709
709
|
var pathParams = {
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
710
|
+
projectOrProductUID: projectOrProductUID,
|
|
711
|
+
deviceUID: deviceUID,
|
|
712
|
+
firmwareType: firmwareType
|
|
713
713
|
};
|
|
714
714
|
var queryParams = {};
|
|
715
715
|
var headerParams = {};
|
|
716
716
|
var formParams = {};
|
|
717
|
-
var authNames = [
|
|
717
|
+
var authNames = ["personalAccessToken"];
|
|
718
718
|
var contentTypes = [];
|
|
719
|
-
var accepts = [
|
|
719
|
+
var accepts = ["application/json"];
|
|
720
720
|
var returnType = _DeviceDfuHistory["default"];
|
|
721
|
-
return this.apiClient.callApi(
|
|
721
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/dfu/{firmwareType}/history", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
722
722
|
}
|
|
723
723
|
|
|
724
724
|
/**
|
|
725
725
|
* Get device DFU history for host or Notecard firmware
|
|
726
|
-
* @param {String} projectOrProductUID
|
|
727
|
-
* @param {String} deviceUID
|
|
728
|
-
* @param {module:model/String} firmwareType
|
|
726
|
+
* @param {String} projectOrProductUID
|
|
727
|
+
* @param {String} deviceUID
|
|
728
|
+
* @param {module:model/String} firmwareType
|
|
729
729
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuHistory}
|
|
730
730
|
*/
|
|
731
731
|
}, {
|
|
@@ -738,9 +738,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
738
738
|
|
|
739
739
|
/**
|
|
740
740
|
* Get device DFU history for host or Notecard firmware
|
|
741
|
-
* @param {String} projectOrProductUID
|
|
742
|
-
* @param {String} deviceUID
|
|
743
|
-
* @param {module:model/String} firmwareType
|
|
741
|
+
* @param {String} projectOrProductUID
|
|
742
|
+
* @param {String} deviceUID
|
|
743
|
+
* @param {module:model/String} firmwareType
|
|
744
744
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuStatus} and HTTP response
|
|
745
745
|
*/
|
|
746
746
|
}, {
|
|
@@ -760,25 +760,25 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
760
760
|
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDeviceDfuStatus");
|
|
761
761
|
}
|
|
762
762
|
var pathParams = {
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
763
|
+
projectOrProductUID: projectOrProductUID,
|
|
764
|
+
deviceUID: deviceUID,
|
|
765
|
+
firmwareType: firmwareType
|
|
766
766
|
};
|
|
767
767
|
var queryParams = {};
|
|
768
768
|
var headerParams = {};
|
|
769
769
|
var formParams = {};
|
|
770
|
-
var authNames = [
|
|
770
|
+
var authNames = ["personalAccessToken"];
|
|
771
771
|
var contentTypes = [];
|
|
772
|
-
var accepts = [
|
|
772
|
+
var accepts = ["application/json"];
|
|
773
773
|
var returnType = _DeviceDfuStatus["default"];
|
|
774
|
-
return this.apiClient.callApi(
|
|
774
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/dfu/{firmwareType}/status", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
775
775
|
}
|
|
776
776
|
|
|
777
777
|
/**
|
|
778
778
|
* Get device DFU history for host or Notecard firmware
|
|
779
|
-
* @param {String} projectOrProductUID
|
|
780
|
-
* @param {String} deviceUID
|
|
781
|
-
* @param {module:model/String} firmwareType
|
|
779
|
+
* @param {String} projectOrProductUID
|
|
780
|
+
* @param {String} deviceUID
|
|
781
|
+
* @param {module:model/String} firmwareType
|
|
782
782
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuStatus}
|
|
783
783
|
*/
|
|
784
784
|
}, {
|
|
@@ -791,8 +791,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
791
791
|
|
|
792
792
|
/**
|
|
793
793
|
* Get Device Fleets
|
|
794
|
-
* @param {String} projectOrProductUID
|
|
795
|
-
* @param {String} deviceUID
|
|
794
|
+
* @param {String} projectOrProductUID
|
|
795
|
+
* @param {String} deviceUID
|
|
796
796
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
797
797
|
*/
|
|
798
798
|
}, {
|
|
@@ -808,23 +808,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
808
808
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceFleets");
|
|
809
809
|
}
|
|
810
810
|
var pathParams = {
|
|
811
|
-
|
|
812
|
-
|
|
811
|
+
projectOrProductUID: projectOrProductUID,
|
|
812
|
+
deviceUID: deviceUID
|
|
813
813
|
};
|
|
814
814
|
var queryParams = {};
|
|
815
815
|
var headerParams = {};
|
|
816
816
|
var formParams = {};
|
|
817
|
-
var authNames = [
|
|
817
|
+
var authNames = ["personalAccessToken"];
|
|
818
818
|
var contentTypes = [];
|
|
819
|
-
var accepts = [
|
|
819
|
+
var accepts = ["application/json"];
|
|
820
820
|
var returnType = _GetDeviceFleets200Response["default"];
|
|
821
|
-
return this.apiClient.callApi(
|
|
821
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/fleets", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
822
822
|
}
|
|
823
823
|
|
|
824
824
|
/**
|
|
825
825
|
* Get Device Fleets
|
|
826
|
-
* @param {String} projectOrProductUID
|
|
827
|
-
* @param {String} deviceUID
|
|
826
|
+
* @param {String} projectOrProductUID
|
|
827
|
+
* @param {String} deviceUID
|
|
828
828
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
829
829
|
*/
|
|
830
830
|
}, {
|
|
@@ -837,8 +837,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
837
837
|
|
|
838
838
|
/**
|
|
839
839
|
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
840
|
-
* @param {String} projectOrProductUID
|
|
841
|
-
* @param {module:model/String} firmwareType
|
|
840
|
+
* @param {String} projectOrProductUID
|
|
841
|
+
* @param {module:model/String} firmwareType
|
|
842
842
|
* @param {Object} opts Optional parameters
|
|
843
843
|
* @param {Number} opts.pageSize (default to 50)
|
|
844
844
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -847,11 +847,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
847
847
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
848
848
|
* @param {Array.<String>} opts.tag Tag filter
|
|
849
849
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
850
|
-
* @param {String} opts.fleetUID
|
|
850
|
+
* @param {String} opts.fleetUID
|
|
851
851
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
852
852
|
* @param {Array.<String>} opts.location Location filter
|
|
853
853
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
854
|
-
* @param {Array.<String>} opts.productUID
|
|
854
|
+
* @param {Array.<String>} opts.productUID
|
|
855
855
|
* @param {Array.<String>} opts.sku SKU filter
|
|
856
856
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuHistoryPage} and HTTP response
|
|
857
857
|
*/
|
|
@@ -869,37 +869,37 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
869
869
|
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDevicesDfuHistory");
|
|
870
870
|
}
|
|
871
871
|
var pathParams = {
|
|
872
|
-
|
|
873
|
-
|
|
872
|
+
projectOrProductUID: projectOrProductUID,
|
|
873
|
+
firmwareType: firmwareType
|
|
874
874
|
};
|
|
875
875
|
var queryParams = {
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
876
|
+
pageSize: opts["pageSize"],
|
|
877
|
+
pageNum: opts["pageNum"],
|
|
878
|
+
sortBy: opts["sortBy"],
|
|
879
|
+
sortOrder: opts["sortOrder"],
|
|
880
|
+
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
881
|
+
tag: this.apiClient.buildCollectionParam(opts["tag"], "multi"),
|
|
882
|
+
serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
|
|
883
|
+
fleetUID: opts["fleetUID"],
|
|
884
|
+
notecardFirmware: this.apiClient.buildCollectionParam(opts["notecardFirmware"], "multi"),
|
|
885
|
+
location: this.apiClient.buildCollectionParam(opts["location"], "multi"),
|
|
886
|
+
hostFirmware: this.apiClient.buildCollectionParam(opts["hostFirmware"], "multi"),
|
|
887
|
+
productUID: this.apiClient.buildCollectionParam(opts["productUID"], "multi"),
|
|
888
|
+
sku: this.apiClient.buildCollectionParam(opts["sku"], "multi")
|
|
889
889
|
};
|
|
890
890
|
var headerParams = {};
|
|
891
891
|
var formParams = {};
|
|
892
|
-
var authNames = [
|
|
892
|
+
var authNames = ["personalAccessToken"];
|
|
893
893
|
var contentTypes = [];
|
|
894
|
-
var accepts = [
|
|
894
|
+
var accepts = ["application/json"];
|
|
895
895
|
var returnType = _DeviceDfuHistoryPage["default"];
|
|
896
|
-
return this.apiClient.callApi(
|
|
896
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/dfu/{firmwareType}/history", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
897
897
|
}
|
|
898
898
|
|
|
899
899
|
/**
|
|
900
900
|
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
901
|
-
* @param {String} projectOrProductUID
|
|
902
|
-
* @param {module:model/String} firmwareType
|
|
901
|
+
* @param {String} projectOrProductUID
|
|
902
|
+
* @param {module:model/String} firmwareType
|
|
903
903
|
* @param {Object} opts Optional parameters
|
|
904
904
|
* @param {Number} opts.pageSize (default to 50)
|
|
905
905
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -908,11 +908,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
908
908
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
909
909
|
* @param {Array.<String>} opts.tag Tag filter
|
|
910
910
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
911
|
-
* @param {String} opts.fleetUID
|
|
911
|
+
* @param {String} opts.fleetUID
|
|
912
912
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
913
913
|
* @param {Array.<String>} opts.location Location filter
|
|
914
914
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
915
|
-
* @param {Array.<String>} opts.productUID
|
|
915
|
+
* @param {Array.<String>} opts.productUID
|
|
916
916
|
* @param {Array.<String>} opts.sku SKU filter
|
|
917
917
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuHistoryPage}
|
|
918
918
|
*/
|
|
@@ -926,8 +926,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
926
926
|
|
|
927
927
|
/**
|
|
928
928
|
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
929
|
-
* @param {String} projectOrProductUID
|
|
930
|
-
* @param {module:model/String} firmwareType
|
|
929
|
+
* @param {String} projectOrProductUID
|
|
930
|
+
* @param {module:model/String} firmwareType
|
|
931
931
|
* @param {Object} opts Optional parameters
|
|
932
932
|
* @param {Number} opts.pageSize (default to 50)
|
|
933
933
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -936,11 +936,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
936
936
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
937
937
|
* @param {Array.<String>} opts.tag Tag filter
|
|
938
938
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
939
|
-
* @param {String} opts.fleetUID
|
|
939
|
+
* @param {String} opts.fleetUID
|
|
940
940
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
941
941
|
* @param {Array.<String>} opts.location Location filter
|
|
942
942
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
943
|
-
* @param {Array.<String>} opts.productUID
|
|
943
|
+
* @param {Array.<String>} opts.productUID
|
|
944
944
|
* @param {Array.<String>} opts.sku SKU filter
|
|
945
945
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuStatusPage} and HTTP response
|
|
946
946
|
*/
|
|
@@ -958,37 +958,37 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
958
958
|
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDevicesDfuStatus");
|
|
959
959
|
}
|
|
960
960
|
var pathParams = {
|
|
961
|
-
|
|
962
|
-
|
|
961
|
+
projectOrProductUID: projectOrProductUID,
|
|
962
|
+
firmwareType: firmwareType
|
|
963
963
|
};
|
|
964
964
|
var queryParams = {
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
965
|
+
pageSize: opts["pageSize"],
|
|
966
|
+
pageNum: opts["pageNum"],
|
|
967
|
+
sortBy: opts["sortBy"],
|
|
968
|
+
sortOrder: opts["sortOrder"],
|
|
969
|
+
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
970
|
+
tag: this.apiClient.buildCollectionParam(opts["tag"], "multi"),
|
|
971
|
+
serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
|
|
972
|
+
fleetUID: opts["fleetUID"],
|
|
973
|
+
notecardFirmware: this.apiClient.buildCollectionParam(opts["notecardFirmware"], "multi"),
|
|
974
|
+
location: this.apiClient.buildCollectionParam(opts["location"], "multi"),
|
|
975
|
+
hostFirmware: this.apiClient.buildCollectionParam(opts["hostFirmware"], "multi"),
|
|
976
|
+
productUID: this.apiClient.buildCollectionParam(opts["productUID"], "multi"),
|
|
977
|
+
sku: this.apiClient.buildCollectionParam(opts["sku"], "multi")
|
|
978
978
|
};
|
|
979
979
|
var headerParams = {};
|
|
980
980
|
var formParams = {};
|
|
981
|
-
var authNames = [
|
|
981
|
+
var authNames = ["personalAccessToken"];
|
|
982
982
|
var contentTypes = [];
|
|
983
|
-
var accepts = [
|
|
983
|
+
var accepts = ["application/json"];
|
|
984
984
|
var returnType = _DeviceDfuStatusPage["default"];
|
|
985
|
-
return this.apiClient.callApi(
|
|
985
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/dfu/{firmwareType}/status", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
986
986
|
}
|
|
987
987
|
|
|
988
988
|
/**
|
|
989
989
|
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
990
|
-
* @param {String} projectOrProductUID
|
|
991
|
-
* @param {module:model/String} firmwareType
|
|
990
|
+
* @param {String} projectOrProductUID
|
|
991
|
+
* @param {module:model/String} firmwareType
|
|
992
992
|
* @param {Object} opts Optional parameters
|
|
993
993
|
* @param {Number} opts.pageSize (default to 50)
|
|
994
994
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -997,11 +997,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
997
997
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
998
998
|
* @param {Array.<String>} opts.tag Tag filter
|
|
999
999
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1000
|
-
* @param {String} opts.fleetUID
|
|
1000
|
+
* @param {String} opts.fleetUID
|
|
1001
1001
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1002
1002
|
* @param {Array.<String>} opts.location Location filter
|
|
1003
1003
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1004
|
-
* @param {Array.<String>} opts.productUID
|
|
1004
|
+
* @param {Array.<String>} opts.productUID
|
|
1005
1005
|
* @param {Array.<String>} opts.sku SKU filter
|
|
1006
1006
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuStatusPage}
|
|
1007
1007
|
*/
|
|
@@ -1015,15 +1015,15 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1015
1015
|
|
|
1016
1016
|
/**
|
|
1017
1017
|
* Get Available Firmware Information
|
|
1018
|
-
* @param {String} projectOrProductUID
|
|
1018
|
+
* @param {String} projectOrProductUID
|
|
1019
1019
|
* @param {Object} opts Optional parameters
|
|
1020
|
-
* @param {String} opts.product
|
|
1021
|
-
* @param {String} opts.firmwareType
|
|
1022
|
-
* @param {String} opts.version
|
|
1023
|
-
* @param {String} opts.target
|
|
1024
|
-
* @param {String} opts.filename
|
|
1025
|
-
* @param {String} opts.md5
|
|
1026
|
-
* @param {Boolean} opts.unpublished
|
|
1020
|
+
* @param {String} opts.product
|
|
1021
|
+
* @param {String} opts.firmwareType
|
|
1022
|
+
* @param {String} opts.version
|
|
1023
|
+
* @param {String} opts.target
|
|
1024
|
+
* @param {String} opts.filename
|
|
1025
|
+
* @param {String} opts.md5
|
|
1026
|
+
* @param {Boolean} opts.unpublished
|
|
1027
1027
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/FirmwareInfo>} and HTTP response
|
|
1028
1028
|
*/
|
|
1029
1029
|
}, {
|
|
@@ -1036,37 +1036,37 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1036
1036
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getFirmwareInfo");
|
|
1037
1037
|
}
|
|
1038
1038
|
var pathParams = {
|
|
1039
|
-
|
|
1039
|
+
projectOrProductUID: projectOrProductUID
|
|
1040
1040
|
};
|
|
1041
1041
|
var queryParams = {
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1042
|
+
product: opts["product"],
|
|
1043
|
+
firmwareType: opts["firmwareType"],
|
|
1044
|
+
version: opts["version"],
|
|
1045
|
+
target: opts["target"],
|
|
1046
|
+
filename: opts["filename"],
|
|
1047
|
+
md5: opts["md5"],
|
|
1048
|
+
unpublished: opts["unpublished"]
|
|
1049
1049
|
};
|
|
1050
1050
|
var headerParams = {};
|
|
1051
1051
|
var formParams = {};
|
|
1052
|
-
var authNames = [
|
|
1052
|
+
var authNames = ["personalAccessToken"];
|
|
1053
1053
|
var contentTypes = [];
|
|
1054
|
-
var accepts = [
|
|
1054
|
+
var accepts = ["application/json"];
|
|
1055
1055
|
var returnType = [_FirmwareInfo["default"]];
|
|
1056
|
-
return this.apiClient.callApi(
|
|
1056
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/firmware", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1057
1057
|
}
|
|
1058
1058
|
|
|
1059
1059
|
/**
|
|
1060
1060
|
* Get Available Firmware Information
|
|
1061
|
-
* @param {String} projectOrProductUID
|
|
1061
|
+
* @param {String} projectOrProductUID
|
|
1062
1062
|
* @param {Object} opts Optional parameters
|
|
1063
|
-
* @param {String} opts.product
|
|
1064
|
-
* @param {String} opts.firmwareType
|
|
1065
|
-
* @param {String} opts.version
|
|
1066
|
-
* @param {String} opts.target
|
|
1067
|
-
* @param {String} opts.filename
|
|
1068
|
-
* @param {String} opts.md5
|
|
1069
|
-
* @param {Boolean} opts.unpublished
|
|
1063
|
+
* @param {String} opts.product
|
|
1064
|
+
* @param {String} opts.firmwareType
|
|
1065
|
+
* @param {String} opts.version
|
|
1066
|
+
* @param {String} opts.target
|
|
1067
|
+
* @param {String} opts.filename
|
|
1068
|
+
* @param {String} opts.md5
|
|
1069
|
+
* @param {Boolean} opts.unpublished
|
|
1070
1070
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/FirmwareInfo>}
|
|
1071
1071
|
*/
|
|
1072
1072
|
}, {
|
|
@@ -1079,8 +1079,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1079
1079
|
|
|
1080
1080
|
/**
|
|
1081
1081
|
* Get Fleet
|
|
1082
|
-
* @param {String} projectOrProductUID
|
|
1083
|
-
* @param {String} fleetUID
|
|
1082
|
+
* @param {String} projectOrProductUID
|
|
1083
|
+
* @param {String} fleetUID
|
|
1084
1084
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
1085
1085
|
*/
|
|
1086
1086
|
}, {
|
|
@@ -1096,23 +1096,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1096
1096
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleet");
|
|
1097
1097
|
}
|
|
1098
1098
|
var pathParams = {
|
|
1099
|
-
|
|
1100
|
-
|
|
1099
|
+
projectOrProductUID: projectOrProductUID,
|
|
1100
|
+
fleetUID: fleetUID
|
|
1101
1101
|
};
|
|
1102
1102
|
var queryParams = {};
|
|
1103
1103
|
var headerParams = {};
|
|
1104
1104
|
var formParams = {};
|
|
1105
|
-
var authNames = [
|
|
1105
|
+
var authNames = ["personalAccessToken"];
|
|
1106
1106
|
var contentTypes = [];
|
|
1107
|
-
var accepts = [
|
|
1107
|
+
var accepts = ["application/json"];
|
|
1108
1108
|
var returnType = _Fleet["default"];
|
|
1109
|
-
return this.apiClient.callApi(
|
|
1109
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/fleets/{fleetUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1110
1110
|
}
|
|
1111
1111
|
|
|
1112
1112
|
/**
|
|
1113
1113
|
* Get Fleet
|
|
1114
|
-
* @param {String} projectOrProductUID
|
|
1115
|
-
* @param {String} fleetUID
|
|
1114
|
+
* @param {String} projectOrProductUID
|
|
1115
|
+
* @param {String} fleetUID
|
|
1116
1116
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
1117
1117
|
*/
|
|
1118
1118
|
}, {
|
|
@@ -1125,8 +1125,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1125
1125
|
|
|
1126
1126
|
/**
|
|
1127
1127
|
* Get environment variable hierarchy for a device
|
|
1128
|
-
* @param {String} projectOrProductUID
|
|
1129
|
-
* @param {String} fleetUID
|
|
1128
|
+
* @param {String} projectOrProductUID
|
|
1129
|
+
* @param {String} fleetUID
|
|
1130
1130
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
|
|
1131
1131
|
*/
|
|
1132
1132
|
}, {
|
|
@@ -1142,23 +1142,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1142
1142
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEnvironmentHierarchy");
|
|
1143
1143
|
}
|
|
1144
1144
|
var pathParams = {
|
|
1145
|
-
|
|
1146
|
-
|
|
1145
|
+
projectOrProductUID: projectOrProductUID,
|
|
1146
|
+
fleetUID: fleetUID
|
|
1147
1147
|
};
|
|
1148
1148
|
var queryParams = {};
|
|
1149
1149
|
var headerParams = {};
|
|
1150
1150
|
var formParams = {};
|
|
1151
|
-
var authNames = [
|
|
1151
|
+
var authNames = ["personalAccessToken"];
|
|
1152
1152
|
var contentTypes = [];
|
|
1153
|
-
var accepts = [
|
|
1153
|
+
var accepts = ["application/json"];
|
|
1154
1154
|
var returnType = _EnvTreeJsonNode["default"];
|
|
1155
|
-
return this.apiClient.callApi(
|
|
1155
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_hierarchy", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1156
1156
|
}
|
|
1157
1157
|
|
|
1158
1158
|
/**
|
|
1159
1159
|
* Get environment variable hierarchy for a device
|
|
1160
|
-
* @param {String} projectOrProductUID
|
|
1161
|
-
* @param {String} fleetUID
|
|
1160
|
+
* @param {String} projectOrProductUID
|
|
1161
|
+
* @param {String} fleetUID
|
|
1162
1162
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
|
|
1163
1163
|
*/
|
|
1164
1164
|
}, {
|
|
@@ -1171,8 +1171,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1171
1171
|
|
|
1172
1172
|
/**
|
|
1173
1173
|
* Get environment variables of a fleet
|
|
1174
|
-
* @param {String} projectOrProductUID
|
|
1175
|
-
* @param {String} fleetUID
|
|
1174
|
+
* @param {String} projectOrProductUID
|
|
1175
|
+
* @param {String} fleetUID
|
|
1176
1176
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1177
1177
|
*/
|
|
1178
1178
|
}, {
|
|
@@ -1188,23 +1188,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1188
1188
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEnvironmentVariables");
|
|
1189
1189
|
}
|
|
1190
1190
|
var pathParams = {
|
|
1191
|
-
|
|
1192
|
-
|
|
1191
|
+
projectOrProductUID: projectOrProductUID,
|
|
1192
|
+
fleetUID: fleetUID
|
|
1193
1193
|
};
|
|
1194
1194
|
var queryParams = {};
|
|
1195
1195
|
var headerParams = {};
|
|
1196
1196
|
var formParams = {};
|
|
1197
|
-
var authNames = [
|
|
1197
|
+
var authNames = ["personalAccessToken"];
|
|
1198
1198
|
var contentTypes = [];
|
|
1199
|
-
var accepts = [
|
|
1199
|
+
var accepts = ["application/json"];
|
|
1200
1200
|
var returnType = _EnvironmentVariables["default"];
|
|
1201
|
-
return this.apiClient.callApi(
|
|
1201
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1202
1202
|
}
|
|
1203
1203
|
|
|
1204
1204
|
/**
|
|
1205
1205
|
* Get environment variables of a fleet
|
|
1206
|
-
* @param {String} projectOrProductUID
|
|
1207
|
-
* @param {String} fleetUID
|
|
1206
|
+
* @param {String} projectOrProductUID
|
|
1207
|
+
* @param {String} fleetUID
|
|
1208
1208
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1209
1209
|
*/
|
|
1210
1210
|
}, {
|
|
@@ -1217,7 +1217,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1217
1217
|
|
|
1218
1218
|
/**
|
|
1219
1219
|
* Get variable format for a notefile
|
|
1220
|
-
* @param {String} projectOrProductUID
|
|
1220
|
+
* @param {String} projectOrProductUID
|
|
1221
1221
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/NotefileSchema>} and HTTP response
|
|
1222
1222
|
*/
|
|
1223
1223
|
}, {
|
|
@@ -1229,21 +1229,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1229
1229
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getNotefileSchemas");
|
|
1230
1230
|
}
|
|
1231
1231
|
var pathParams = {
|
|
1232
|
-
|
|
1232
|
+
projectOrProductUID: projectOrProductUID
|
|
1233
1233
|
};
|
|
1234
1234
|
var queryParams = {};
|
|
1235
1235
|
var headerParams = {};
|
|
1236
1236
|
var formParams = {};
|
|
1237
1237
|
var authNames = [];
|
|
1238
1238
|
var contentTypes = [];
|
|
1239
|
-
var accepts = [
|
|
1239
|
+
var accepts = ["application/json"];
|
|
1240
1240
|
var returnType = [_NotefileSchema["default"]];
|
|
1241
|
-
return this.apiClient.callApi(
|
|
1241
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/schemas", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1242
1242
|
}
|
|
1243
1243
|
|
|
1244
1244
|
/**
|
|
1245
1245
|
* Get variable format for a notefile
|
|
1246
|
-
* @param {String} projectOrProductUID
|
|
1246
|
+
* @param {String} projectOrProductUID
|
|
1247
1247
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/NotefileSchema>}
|
|
1248
1248
|
*/
|
|
1249
1249
|
}, {
|
|
@@ -1256,7 +1256,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1256
1256
|
|
|
1257
1257
|
/**
|
|
1258
1258
|
* Get Products within a Project
|
|
1259
|
-
* @param {String} projectOrProductUID
|
|
1259
|
+
* @param {String} projectOrProductUID
|
|
1260
1260
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProducts200Response} and HTTP response
|
|
1261
1261
|
*/
|
|
1262
1262
|
}, {
|
|
@@ -1268,21 +1268,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1268
1268
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProducts");
|
|
1269
1269
|
}
|
|
1270
1270
|
var pathParams = {
|
|
1271
|
-
|
|
1271
|
+
projectOrProductUID: projectOrProductUID
|
|
1272
1272
|
};
|
|
1273
1273
|
var queryParams = {};
|
|
1274
1274
|
var headerParams = {};
|
|
1275
1275
|
var formParams = {};
|
|
1276
|
-
var authNames = [
|
|
1276
|
+
var authNames = ["personalAccessToken"];
|
|
1277
1277
|
var contentTypes = [];
|
|
1278
|
-
var accepts = [
|
|
1278
|
+
var accepts = ["application/json"];
|
|
1279
1279
|
var returnType = _GetProducts200Response["default"];
|
|
1280
|
-
return this.apiClient.callApi(
|
|
1280
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/products", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1281
1281
|
}
|
|
1282
1282
|
|
|
1283
1283
|
/**
|
|
1284
1284
|
* Get Products within a Project
|
|
1285
|
-
* @param {String} projectOrProductUID
|
|
1285
|
+
* @param {String} projectOrProductUID
|
|
1286
1286
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProducts200Response}
|
|
1287
1287
|
*/
|
|
1288
1288
|
}, {
|
|
@@ -1295,7 +1295,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1295
1295
|
|
|
1296
1296
|
/**
|
|
1297
1297
|
* Get a Project by ProjectUID
|
|
1298
|
-
* @param {String} projectOrProductUID
|
|
1298
|
+
* @param {String} projectOrProductUID
|
|
1299
1299
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
1300
1300
|
*/
|
|
1301
1301
|
}, {
|
|
@@ -1307,21 +1307,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1307
1307
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProject");
|
|
1308
1308
|
}
|
|
1309
1309
|
var pathParams = {
|
|
1310
|
-
|
|
1310
|
+
projectOrProductUID: projectOrProductUID
|
|
1311
1311
|
};
|
|
1312
1312
|
var queryParams = {};
|
|
1313
1313
|
var headerParams = {};
|
|
1314
1314
|
var formParams = {};
|
|
1315
|
-
var authNames = [
|
|
1315
|
+
var authNames = ["personalAccessToken"];
|
|
1316
1316
|
var contentTypes = [];
|
|
1317
|
-
var accepts = [
|
|
1317
|
+
var accepts = ["application/json"];
|
|
1318
1318
|
var returnType = _Project["default"];
|
|
1319
|
-
return this.apiClient.callApi(
|
|
1319
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1320
1320
|
}
|
|
1321
1321
|
|
|
1322
1322
|
/**
|
|
1323
1323
|
* Get a Project by ProjectUID
|
|
1324
|
-
* @param {String} projectOrProductUID
|
|
1324
|
+
* @param {String} projectOrProductUID
|
|
1325
1325
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
1326
1326
|
*/
|
|
1327
1327
|
}, {
|
|
@@ -1334,7 +1334,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1334
1334
|
|
|
1335
1335
|
/**
|
|
1336
1336
|
* Get a Project by ProductUID
|
|
1337
|
-
* @param {String} productUID
|
|
1337
|
+
* @param {String} productUID
|
|
1338
1338
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
1339
1339
|
*/
|
|
1340
1340
|
}, {
|
|
@@ -1346,21 +1346,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1346
1346
|
throw new _Error["default"]("Missing the required parameter 'productUID' when calling getProjectByProduct");
|
|
1347
1347
|
}
|
|
1348
1348
|
var pathParams = {
|
|
1349
|
-
|
|
1349
|
+
productUID: productUID
|
|
1350
1350
|
};
|
|
1351
1351
|
var queryParams = {};
|
|
1352
1352
|
var headerParams = {};
|
|
1353
1353
|
var formParams = {};
|
|
1354
|
-
var authNames = [
|
|
1354
|
+
var authNames = ["personalAccessToken"];
|
|
1355
1355
|
var contentTypes = [];
|
|
1356
|
-
var accepts = [
|
|
1356
|
+
var accepts = ["application/json"];
|
|
1357
1357
|
var returnType = _Project["default"];
|
|
1358
|
-
return this.apiClient.callApi(
|
|
1358
|
+
return this.apiClient.callApi("/v1/products/{productUID}/project", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1359
1359
|
}
|
|
1360
1360
|
|
|
1361
1361
|
/**
|
|
1362
1362
|
* Get a Project by ProductUID
|
|
1363
|
-
* @param {String} productUID
|
|
1363
|
+
* @param {String} productUID
|
|
1364
1364
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
1365
1365
|
*/
|
|
1366
1366
|
}, {
|
|
@@ -1373,7 +1373,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1373
1373
|
|
|
1374
1374
|
/**
|
|
1375
1375
|
* Get environment variable hierarchy for a device
|
|
1376
|
-
* @param {String} projectOrProductUID
|
|
1376
|
+
* @param {String} projectOrProductUID
|
|
1377
1377
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
|
|
1378
1378
|
*/
|
|
1379
1379
|
}, {
|
|
@@ -1385,21 +1385,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1385
1385
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectEnvironmentHierarchy");
|
|
1386
1386
|
}
|
|
1387
1387
|
var pathParams = {
|
|
1388
|
-
|
|
1388
|
+
projectOrProductUID: projectOrProductUID
|
|
1389
1389
|
};
|
|
1390
1390
|
var queryParams = {};
|
|
1391
1391
|
var headerParams = {};
|
|
1392
1392
|
var formParams = {};
|
|
1393
|
-
var authNames = [
|
|
1393
|
+
var authNames = ["personalAccessToken"];
|
|
1394
1394
|
var contentTypes = [];
|
|
1395
|
-
var accepts = [
|
|
1395
|
+
var accepts = ["application/json"];
|
|
1396
1396
|
var returnType = _EnvTreeJsonNode["default"];
|
|
1397
|
-
return this.apiClient.callApi(
|
|
1397
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/environment_hierarchy", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1398
1398
|
}
|
|
1399
1399
|
|
|
1400
1400
|
/**
|
|
1401
1401
|
* Get environment variable hierarchy for a device
|
|
1402
|
-
* @param {String} projectOrProductUID
|
|
1402
|
+
* @param {String} projectOrProductUID
|
|
1403
1403
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
|
|
1404
1404
|
*/
|
|
1405
1405
|
}, {
|
|
@@ -1412,7 +1412,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1412
1412
|
|
|
1413
1413
|
/**
|
|
1414
1414
|
* Get environment variables of a project
|
|
1415
|
-
* @param {String} projectOrProductUID
|
|
1415
|
+
* @param {String} projectOrProductUID
|
|
1416
1416
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1417
1417
|
*/
|
|
1418
1418
|
}, {
|
|
@@ -1424,21 +1424,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1424
1424
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectEnvironmentVariables");
|
|
1425
1425
|
}
|
|
1426
1426
|
var pathParams = {
|
|
1427
|
-
|
|
1427
|
+
projectOrProductUID: projectOrProductUID
|
|
1428
1428
|
};
|
|
1429
1429
|
var queryParams = {};
|
|
1430
1430
|
var headerParams = {};
|
|
1431
1431
|
var formParams = {};
|
|
1432
|
-
var authNames = [
|
|
1432
|
+
var authNames = ["personalAccessToken"];
|
|
1433
1433
|
var contentTypes = [];
|
|
1434
|
-
var accepts = [
|
|
1434
|
+
var accepts = ["application/json"];
|
|
1435
1435
|
var returnType = _EnvironmentVariables["default"];
|
|
1436
|
-
return this.apiClient.callApi(
|
|
1436
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/environment_variables", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1437
1437
|
}
|
|
1438
1438
|
|
|
1439
1439
|
/**
|
|
1440
1440
|
* Get environment variables of a project
|
|
1441
|
-
* @param {String} projectOrProductUID
|
|
1441
|
+
* @param {String} projectOrProductUID
|
|
1442
1442
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1443
1443
|
*/
|
|
1444
1444
|
}, {
|
|
@@ -1451,7 +1451,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1451
1451
|
|
|
1452
1452
|
/**
|
|
1453
1453
|
* Get Project Fleets
|
|
1454
|
-
* @param {String} projectOrProductUID
|
|
1454
|
+
* @param {String} projectOrProductUID
|
|
1455
1455
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
1456
1456
|
*/
|
|
1457
1457
|
}, {
|
|
@@ -1463,21 +1463,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1463
1463
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectFleets");
|
|
1464
1464
|
}
|
|
1465
1465
|
var pathParams = {
|
|
1466
|
-
|
|
1466
|
+
projectOrProductUID: projectOrProductUID
|
|
1467
1467
|
};
|
|
1468
1468
|
var queryParams = {};
|
|
1469
1469
|
var headerParams = {};
|
|
1470
1470
|
var formParams = {};
|
|
1471
|
-
var authNames = [
|
|
1471
|
+
var authNames = ["personalAccessToken"];
|
|
1472
1472
|
var contentTypes = [];
|
|
1473
|
-
var accepts = [
|
|
1473
|
+
var accepts = ["application/json"];
|
|
1474
1474
|
var returnType = _GetDeviceFleets200Response["default"];
|
|
1475
|
-
return this.apiClient.callApi(
|
|
1475
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/fleets", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1476
1476
|
}
|
|
1477
1477
|
|
|
1478
1478
|
/**
|
|
1479
1479
|
* Get Project Fleets
|
|
1480
|
-
* @param {String} projectOrProductUID
|
|
1480
|
+
* @param {String} projectOrProductUID
|
|
1481
1481
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
1482
1482
|
*/
|
|
1483
1483
|
}, {
|
|
@@ -1490,7 +1490,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1490
1490
|
|
|
1491
1491
|
/**
|
|
1492
1492
|
* Get Project Members
|
|
1493
|
-
* @param {String} projectOrProductUID
|
|
1493
|
+
* @param {String} projectOrProductUID
|
|
1494
1494
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectMembers200Response} and HTTP response
|
|
1495
1495
|
*/
|
|
1496
1496
|
}, {
|
|
@@ -1502,21 +1502,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1502
1502
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectMembers");
|
|
1503
1503
|
}
|
|
1504
1504
|
var pathParams = {
|
|
1505
|
-
|
|
1505
|
+
projectOrProductUID: projectOrProductUID
|
|
1506
1506
|
};
|
|
1507
1507
|
var queryParams = {};
|
|
1508
1508
|
var headerParams = {};
|
|
1509
1509
|
var formParams = {};
|
|
1510
|
-
var authNames = [
|
|
1510
|
+
var authNames = ["personalAccessToken"];
|
|
1511
1511
|
var contentTypes = [];
|
|
1512
|
-
var accepts = [
|
|
1512
|
+
var accepts = ["application/json"];
|
|
1513
1513
|
var returnType = _GetProjectMembers200Response["default"];
|
|
1514
|
-
return this.apiClient.callApi(
|
|
1514
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/members", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1515
1515
|
}
|
|
1516
1516
|
|
|
1517
1517
|
/**
|
|
1518
1518
|
* Get Project Members
|
|
1519
|
-
* @param {String} projectOrProductUID
|
|
1519
|
+
* @param {String} projectOrProductUID
|
|
1520
1520
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectMembers200Response}
|
|
1521
1521
|
*/
|
|
1522
1522
|
}, {
|
|
@@ -1539,11 +1539,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1539
1539
|
var queryParams = {};
|
|
1540
1540
|
var headerParams = {};
|
|
1541
1541
|
var formParams = {};
|
|
1542
|
-
var authNames = [
|
|
1542
|
+
var authNames = ["personalAccessToken"];
|
|
1543
1543
|
var contentTypes = [];
|
|
1544
|
-
var accepts = [
|
|
1544
|
+
var accepts = ["application/json"];
|
|
1545
1545
|
var returnType = _GetProjects200Response["default"];
|
|
1546
|
-
return this.apiClient.callApi(
|
|
1546
|
+
return this.apiClient.callApi("/v1/projects", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1547
1547
|
}
|
|
1548
1548
|
|
|
1549
1549
|
/**
|
|
@@ -1560,9 +1560,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1560
1560
|
|
|
1561
1561
|
/**
|
|
1562
1562
|
* Add Device to Fleets
|
|
1563
|
-
* @param {String} projectOrProductUID
|
|
1564
|
-
* @param {String} deviceUID
|
|
1565
|
-
* @param {module:model/PutDeviceFleetsRequest} putDeviceFleetsRequest The fleets to add to the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
1563
|
+
* @param {String} projectOrProductUID
|
|
1564
|
+
* @param {String} deviceUID
|
|
1565
|
+
* @param {module:model/PutDeviceFleetsRequest} putDeviceFleetsRequest The fleets to add to the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
1566
1566
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
1567
1567
|
*/
|
|
1568
1568
|
}, {
|
|
@@ -1582,24 +1582,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1582
1582
|
throw new _Error["default"]("Missing the required parameter 'putDeviceFleetsRequest' when calling putDeviceFleets");
|
|
1583
1583
|
}
|
|
1584
1584
|
var pathParams = {
|
|
1585
|
-
|
|
1586
|
-
|
|
1585
|
+
projectOrProductUID: projectOrProductUID,
|
|
1586
|
+
deviceUID: deviceUID
|
|
1587
1587
|
};
|
|
1588
1588
|
var queryParams = {};
|
|
1589
1589
|
var headerParams = {};
|
|
1590
1590
|
var formParams = {};
|
|
1591
|
-
var authNames = [
|
|
1592
|
-
var contentTypes = [
|
|
1593
|
-
var accepts = [
|
|
1591
|
+
var authNames = ["personalAccessToken"];
|
|
1592
|
+
var contentTypes = ["application/json"];
|
|
1593
|
+
var accepts = ["application/json"];
|
|
1594
1594
|
var returnType = _GetDeviceFleets200Response["default"];
|
|
1595
|
-
return this.apiClient.callApi(
|
|
1595
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/fleets", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1596
1596
|
}
|
|
1597
1597
|
|
|
1598
1598
|
/**
|
|
1599
1599
|
* Add Device to Fleets
|
|
1600
|
-
* @param {String} projectOrProductUID
|
|
1601
|
-
* @param {String} deviceUID
|
|
1602
|
-
* @param {module:model/PutDeviceFleetsRequest} putDeviceFleetsRequest The fleets to add to the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
1600
|
+
* @param {String} projectOrProductUID
|
|
1601
|
+
* @param {String} deviceUID
|
|
1602
|
+
* @param {module:model/PutDeviceFleetsRequest} putDeviceFleetsRequest The fleets to add to the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
1603
1603
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
1604
1604
|
*/
|
|
1605
1605
|
}, {
|
|
@@ -1612,8 +1612,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1612
1612
|
|
|
1613
1613
|
/**
|
|
1614
1614
|
* Put environment variables of a fleet
|
|
1615
|
-
* @param {String} projectOrProductUID
|
|
1616
|
-
* @param {String} fleetUID
|
|
1615
|
+
* @param {String} projectOrProductUID
|
|
1616
|
+
* @param {String} fleetUID
|
|
1617
1617
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
1618
1618
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1619
1619
|
*/
|
|
@@ -1634,23 +1634,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1634
1634
|
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling putFleetEnvironmentVariables");
|
|
1635
1635
|
}
|
|
1636
1636
|
var pathParams = {
|
|
1637
|
-
|
|
1638
|
-
|
|
1637
|
+
projectOrProductUID: projectOrProductUID,
|
|
1638
|
+
fleetUID: fleetUID
|
|
1639
1639
|
};
|
|
1640
1640
|
var queryParams = {};
|
|
1641
1641
|
var headerParams = {};
|
|
1642
1642
|
var formParams = {};
|
|
1643
|
-
var authNames = [
|
|
1644
|
-
var contentTypes = [
|
|
1645
|
-
var accepts = [
|
|
1643
|
+
var authNames = ["personalAccessToken"];
|
|
1644
|
+
var contentTypes = ["application/json"];
|
|
1645
|
+
var accepts = ["application/json"];
|
|
1646
1646
|
var returnType = _EnvironmentVariables["default"];
|
|
1647
|
-
return this.apiClient.callApi(
|
|
1647
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1648
1648
|
}
|
|
1649
1649
|
|
|
1650
1650
|
/**
|
|
1651
1651
|
* Put environment variables of a fleet
|
|
1652
|
-
* @param {String} projectOrProductUID
|
|
1653
|
-
* @param {String} fleetUID
|
|
1652
|
+
* @param {String} projectOrProductUID
|
|
1653
|
+
* @param {String} fleetUID
|
|
1654
1654
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
1655
1655
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1656
1656
|
*/
|
|
@@ -1664,38 +1664,38 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1664
1664
|
|
|
1665
1665
|
/**
|
|
1666
1666
|
* Put environment variables of a project
|
|
1667
|
-
* @param {String} projectOrProductUID
|
|
1667
|
+
* @param {String} projectOrProductUID
|
|
1668
1668
|
* @param {Object} opts Optional parameters
|
|
1669
|
-
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1669
|
+
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1670
1670
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1671
1671
|
*/
|
|
1672
1672
|
}, {
|
|
1673
1673
|
key: "putProjectEnvironmentVariablesWithHttpInfo",
|
|
1674
1674
|
value: function putProjectEnvironmentVariablesWithHttpInfo(projectOrProductUID, opts) {
|
|
1675
1675
|
opts = opts || {};
|
|
1676
|
-
var postBody = opts[
|
|
1676
|
+
var postBody = opts["environmentVariables"];
|
|
1677
1677
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1678
1678
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1679
1679
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling putProjectEnvironmentVariables");
|
|
1680
1680
|
}
|
|
1681
1681
|
var pathParams = {
|
|
1682
|
-
|
|
1682
|
+
projectOrProductUID: projectOrProductUID
|
|
1683
1683
|
};
|
|
1684
1684
|
var queryParams = {};
|
|
1685
1685
|
var headerParams = {};
|
|
1686
1686
|
var formParams = {};
|
|
1687
|
-
var authNames = [
|
|
1688
|
-
var contentTypes = [
|
|
1689
|
-
var accepts = [
|
|
1687
|
+
var authNames = ["personalAccessToken"];
|
|
1688
|
+
var contentTypes = ["application/json"];
|
|
1689
|
+
var accepts = ["application/json"];
|
|
1690
1690
|
var returnType = _EnvironmentVariables["default"];
|
|
1691
|
-
return this.apiClient.callApi(
|
|
1691
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/environment_variables", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1692
1692
|
}
|
|
1693
1693
|
|
|
1694
1694
|
/**
|
|
1695
1695
|
* Put environment variables of a project
|
|
1696
|
-
* @param {String} projectOrProductUID
|
|
1696
|
+
* @param {String} projectOrProductUID
|
|
1697
1697
|
* @param {Object} opts Optional parameters
|
|
1698
|
-
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1698
|
+
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1699
1699
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1700
1700
|
*/
|
|
1701
1701
|
}, {
|
|
@@ -1708,7 +1708,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1708
1708
|
|
|
1709
1709
|
/**
|
|
1710
1710
|
* Set the project-level event JSONata transformation
|
|
1711
|
-
* @param {String} projectOrProductUID
|
|
1711
|
+
* @param {String} projectOrProductUID
|
|
1712
1712
|
* @param {Object.<String, Object>} body JSONata expression which will be applied to each event before it is persisted and routed
|
|
1713
1713
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1714
1714
|
*/
|
|
@@ -1725,21 +1725,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1725
1725
|
throw new _Error["default"]("Missing the required parameter 'body' when calling setGlobalTransformation");
|
|
1726
1726
|
}
|
|
1727
1727
|
var pathParams = {
|
|
1728
|
-
|
|
1728
|
+
projectOrProductUID: projectOrProductUID
|
|
1729
1729
|
};
|
|
1730
1730
|
var queryParams = {};
|
|
1731
1731
|
var headerParams = {};
|
|
1732
1732
|
var formParams = {};
|
|
1733
|
-
var authNames = [
|
|
1734
|
-
var contentTypes = [
|
|
1735
|
-
var accepts = [
|
|
1733
|
+
var authNames = ["personalAccessToken"];
|
|
1734
|
+
var contentTypes = ["application/json"];
|
|
1735
|
+
var accepts = ["application/json"];
|
|
1736
1736
|
var returnType = null;
|
|
1737
|
-
return this.apiClient.callApi(
|
|
1737
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/global-transformation", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1738
1738
|
}
|
|
1739
1739
|
|
|
1740
1740
|
/**
|
|
1741
1741
|
* Set the project-level event JSONata transformation
|
|
1742
|
-
* @param {String} projectOrProductUID
|
|
1742
|
+
* @param {String} projectOrProductUID
|
|
1743
1743
|
* @param {Object.<String, Object>} body JSONata expression which will be applied to each event before it is persisted and routed
|
|
1744
1744
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1745
1745
|
*/
|
|
@@ -1753,8 +1753,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1753
1753
|
|
|
1754
1754
|
/**
|
|
1755
1755
|
* Update Fleet
|
|
1756
|
-
* @param {String} projectOrProductUID
|
|
1757
|
-
* @param {String} fleetUID
|
|
1756
|
+
* @param {String} projectOrProductUID
|
|
1757
|
+
* @param {String} fleetUID
|
|
1758
1758
|
* @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
|
|
1759
1759
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
1760
1760
|
*/
|
|
@@ -1775,23 +1775,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1775
1775
|
throw new _Error["default"]("Missing the required parameter 'updateFleetRequest' when calling updateFleet");
|
|
1776
1776
|
}
|
|
1777
1777
|
var pathParams = {
|
|
1778
|
-
|
|
1779
|
-
|
|
1778
|
+
projectOrProductUID: projectOrProductUID,
|
|
1779
|
+
fleetUID: fleetUID
|
|
1780
1780
|
};
|
|
1781
1781
|
var queryParams = {};
|
|
1782
1782
|
var headerParams = {};
|
|
1783
1783
|
var formParams = {};
|
|
1784
|
-
var authNames = [
|
|
1785
|
-
var contentTypes = [
|
|
1786
|
-
var accepts = [
|
|
1784
|
+
var authNames = ["personalAccessToken"];
|
|
1785
|
+
var contentTypes = ["application/json"];
|
|
1786
|
+
var accepts = ["application/json"];
|
|
1787
1787
|
var returnType = _Fleet["default"];
|
|
1788
|
-
return this.apiClient.callApi(
|
|
1788
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/fleets/{fleetUID}", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1789
1789
|
}
|
|
1790
1790
|
|
|
1791
1791
|
/**
|
|
1792
1792
|
* Update Fleet
|
|
1793
|
-
* @param {String} projectOrProductUID
|
|
1794
|
-
* @param {String} fleetUID
|
|
1793
|
+
* @param {String} projectOrProductUID
|
|
1794
|
+
* @param {String} fleetUID
|
|
1795
1795
|
* @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
|
|
1796
1796
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
1797
1797
|
*/
|
|
@@ -1805,9 +1805,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1805
1805
|
|
|
1806
1806
|
/**
|
|
1807
1807
|
* Upload firmware binary
|
|
1808
|
-
* @param {String} projectOrProductUID
|
|
1809
|
-
* @param {module:model/String} firmwareType
|
|
1810
|
-
* @param {String} filename
|
|
1808
|
+
* @param {String} projectOrProductUID
|
|
1809
|
+
* @param {module:model/String} firmwareType
|
|
1810
|
+
* @param {String} filename
|
|
1811
1811
|
* @param {File} body contents of the firmware binary
|
|
1812
1812
|
* @param {Object} opts Optional parameters
|
|
1813
1813
|
* @param {String} opts.version Firmware version (optional). If not provided, the version will be extracted from firmware binary if available, otherwise left empty
|
|
@@ -1836,28 +1836,28 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1836
1836
|
throw new _Error["default"]("Missing the required parameter 'body' when calling uploadFirmware");
|
|
1837
1837
|
}
|
|
1838
1838
|
var pathParams = {
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1839
|
+
projectOrProductUID: projectOrProductUID,
|
|
1840
|
+
firmwareType: firmwareType,
|
|
1841
|
+
filename: filename
|
|
1842
1842
|
};
|
|
1843
1843
|
var queryParams = {
|
|
1844
|
-
|
|
1845
|
-
|
|
1844
|
+
version: opts["version"],
|
|
1845
|
+
notes: opts["notes"]
|
|
1846
1846
|
};
|
|
1847
1847
|
var headerParams = {};
|
|
1848
1848
|
var formParams = {};
|
|
1849
|
-
var authNames = [
|
|
1850
|
-
var contentTypes = [
|
|
1851
|
-
var accepts = [
|
|
1849
|
+
var authNames = ["personalAccessToken"];
|
|
1850
|
+
var contentTypes = ["application/octet-stream"];
|
|
1851
|
+
var accepts = ["application/json"];
|
|
1852
1852
|
var returnType = _FirmwareInfo["default"];
|
|
1853
|
-
return this.apiClient.callApi(
|
|
1853
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/firmware/{firmwareType}/{filename}", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1854
1854
|
}
|
|
1855
1855
|
|
|
1856
1856
|
/**
|
|
1857
1857
|
* Upload firmware binary
|
|
1858
|
-
* @param {String} projectOrProductUID
|
|
1859
|
-
* @param {module:model/String} firmwareType
|
|
1860
|
-
* @param {String} filename
|
|
1858
|
+
* @param {String} projectOrProductUID
|
|
1859
|
+
* @param {module:model/String} firmwareType
|
|
1860
|
+
* @param {String} filename
|
|
1861
1861
|
* @param {File} body contents of the firmware binary
|
|
1862
1862
|
* @param {Object} opts Optional parameters
|
|
1863
1863
|
* @param {String} opts.version Firmware version (optional). If not provided, the version will be extracted from firmware binary if available, otherwise left empty
|