@blues-inc/notehub-js 1.0.33-beta.2 → 1.0.33-beta.4

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.
Files changed (120) hide show
  1. package/README.md +76 -76
  2. package/dist/ApiClient.js +2 -2
  3. package/dist/api/AlertApi.js +11 -11
  4. package/dist/api/AuthorizationApi.js +1 -1
  5. package/dist/api/BillingAccountApi.js +1 -1
  6. package/dist/api/DeviceApi.js +271 -271
  7. package/dist/api/EventApi.js +51 -51
  8. package/dist/api/ExternalDevicesApi.js +1 -1
  9. package/dist/api/MonitorApi.js +51 -51
  10. package/dist/api/ProjectApi.js +309 -309
  11. package/dist/api/RepositoryApi.js +1 -1
  12. package/dist/api/RouteApi.js +61 -61
  13. package/dist/api/WebhookApi.js +1 -1
  14. package/dist/model/Alert.js +1 -1
  15. package/dist/model/AlertDataInner.js +1 -1
  16. package/dist/model/AlertNotificationsInner.js +1 -1
  17. package/dist/model/Aws.js +1 -1
  18. package/dist/model/Azure.js +1 -1
  19. package/dist/model/BillingAccount.js +1 -1
  20. package/dist/model/Body.js +1 -1
  21. package/dist/model/CloneProjectRequest.js +1 -1
  22. package/dist/model/Contact.js +1 -1
  23. package/dist/model/CreateFleetRequest.js +1 -1
  24. package/dist/model/CreateMonitor.js +1 -1
  25. package/dist/model/CreateProductRequest.js +1 -1
  26. package/dist/model/CreateProjectRequest.js +1 -1
  27. package/dist/model/CreateUpdateRepository.js +1 -1
  28. package/dist/model/CurrentFirmware.js +1 -1
  29. package/dist/model/DFUEnv.js +1 -1
  30. package/dist/model/DFUState.js +1 -1
  31. package/dist/model/DataField.js +1 -1
  32. package/dist/model/DataSet.js +1 -1
  33. package/dist/model/DataSetField.js +1 -1
  34. package/dist/model/DeleteDeviceFleetsRequest.js +1 -1
  35. package/dist/model/Device.js +1 -1
  36. package/dist/model/DeviceDfuHistory.js +1 -1
  37. package/dist/model/DeviceDfuHistoryPage.js +1 -1
  38. package/dist/model/DeviceDfuStateMachine.js +1 -1
  39. package/dist/model/DeviceDfuStateMachineNode.js +1 -1
  40. package/dist/model/DeviceDfuStatus.js +1 -1
  41. package/dist/model/DeviceDfuStatusCurrent.js +1 -1
  42. package/dist/model/DeviceDfuStatusPage.js +1 -1
  43. package/dist/model/DeviceSession.js +1 -1
  44. package/dist/model/DeviceTowerInfo.js +1 -1
  45. package/dist/model/DeviceUsage.js +1 -1
  46. package/dist/model/DfuActionRequest.js +1 -1
  47. package/dist/model/EmailNotification.js +1 -1
  48. package/dist/model/EnvironmentVariables.js +1 -1
  49. package/dist/model/Error.js +1 -1
  50. package/dist/model/Event.js +1 -1
  51. package/dist/model/Firmware.js +1 -1
  52. package/dist/model/FirmwareInfo.js +1 -1
  53. package/dist/model/Fleet.js +1 -1
  54. package/dist/model/GetAlerts200Response.js +1 -1
  55. package/dist/model/GetBillingAccounts200Response.js +1 -1
  56. package/dist/model/GetDeviceEnvironmentVariables200Response.js +1 -1
  57. package/dist/model/GetDeviceHealthLog200Response.js +1 -1
  58. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +1 -1
  59. package/dist/model/GetDeviceLatest200Response.js +1 -1
  60. package/dist/model/GetDevicePublicKey200Response.js +1 -1
  61. package/dist/model/GetDeviceSessions200Response.js +1 -1
  62. package/dist/model/GetProjectDevicePublicKeys200Response.js +1 -1
  63. package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +1 -1
  64. package/dist/model/GetProjectDevices200Response.js +1 -1
  65. package/dist/model/GetProjectEvents200Response.js +1 -1
  66. package/dist/model/GetProjectEventsByCursor200Response.js +1 -1
  67. package/dist/model/GetProjectFleets200Response.js +1 -1
  68. package/dist/model/GetProjectMembers200Response.js +1 -1
  69. package/dist/model/GetProjectProducts200Response.js +1 -1
  70. package/dist/model/GetProjects200Response.js +1 -1
  71. package/dist/model/GetRouteLogsByRoute200ResponseInner.js +1 -1
  72. package/dist/model/GetWebhooks200Response.js +1 -1
  73. package/dist/model/Google.js +1 -1
  74. package/dist/model/HandleNoteChanges200Response.js +1 -1
  75. package/dist/model/HandleNoteGet200Response.js +1 -1
  76. package/dist/model/HandleNoteSignal200Response.js +1 -1
  77. package/dist/model/HandleNotefileChanges200Response.js +1 -1
  78. package/dist/model/HandleNotefileChangesPending200Response.js +1 -1
  79. package/dist/model/HandleNotefileDeleteRequest.js +1 -1
  80. package/dist/model/Http.js +1 -1
  81. package/dist/model/HttpFilter.js +1 -1
  82. package/dist/model/HttpTransform.js +1 -1
  83. package/dist/model/Location.js +1 -1
  84. package/dist/model/Login200Response.js +1 -1
  85. package/dist/model/LoginRequest.js +1 -1
  86. package/dist/model/Monitor.js +1 -1
  87. package/dist/model/MonitorAlertRoutesInner.js +1 -1
  88. package/dist/model/Mqtt.js +1 -1
  89. package/dist/model/Note.js +1 -1
  90. package/dist/model/NotefileSchema.js +1 -1
  91. package/dist/model/NotehubRoute.js +1 -1
  92. package/dist/model/NotehubRouteSchema.js +1 -1
  93. package/dist/model/PostProvisionProjectDeviceRequest.js +1 -1
  94. package/dist/model/Product.js +1 -1
  95. package/dist/model/Project.js +1 -1
  96. package/dist/model/ProjectMember.js +1 -1
  97. package/dist/model/Proxy.js +1 -1
  98. package/dist/model/PutDeviceFleetsRequest.js +1 -1
  99. package/dist/model/QuestionDataResponseLineChart.js +1 -1
  100. package/dist/model/QuestionDataResponseMap.js +1 -1
  101. package/dist/model/Radresponder.js +1 -1
  102. package/dist/model/Repository.js +1 -1
  103. package/dist/model/SchemaProperty.js +1 -1
  104. package/dist/model/SimUsage.js +1 -1
  105. package/dist/model/Slack.js +1 -1
  106. package/dist/model/SlackBearerNotification.js +1 -1
  107. package/dist/model/SlackWebHookNotification.js +1 -1
  108. package/dist/model/Snowflake.js +1 -1
  109. package/dist/model/SnowflakeTransform.js +1 -1
  110. package/dist/model/Thingworx.js +1 -1
  111. package/dist/model/TowerLocation.js +1 -1
  112. package/dist/model/Twilio.js +1 -1
  113. package/dist/model/UpdateFleetRequest.js +1 -1
  114. package/dist/model/UploadMetadata.js +1 -1
  115. package/dist/model/UserDbRoute.js +1 -1
  116. package/dist/model/UserDfuStateMachine.js +1 -1
  117. package/dist/model/UserDfuStateMachineStatus.js +1 -1
  118. package/dist/model/UserFirmwareInfo.js +1 -1
  119. package/dist/model/WebhookSettings.js +1 -1
  120. package/package.json +1 -1
@@ -49,7 +49,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
49
49
  /**
50
50
  * Project service.
51
51
  * @module api/ProjectApi
52
- * @version 1.0.33-beta.2
52
+ * @version 1.0.33-beta.4
53
53
  */
54
54
  var ProjectApi = exports["default"] = /*#__PURE__*/function () {
55
55
  /**
@@ -66,24 +66,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
66
66
 
67
67
  /**
68
68
  * Clone a Project
69
- * @param {String} projectUID The project UID to be cloned.
69
+ * @param {String} projectOrProductUID
70
70
  * @param {module:model/CloneProjectRequest} cloneProjectRequest Project to be cloned
71
71
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
72
72
  */
73
73
  return _createClass(ProjectApi, [{
74
74
  key: "cloneProjectWithHttpInfo",
75
- value: function cloneProjectWithHttpInfo(projectUID, cloneProjectRequest) {
75
+ value: function cloneProjectWithHttpInfo(projectOrProductUID, cloneProjectRequest) {
76
76
  var postBody = cloneProjectRequest;
77
- // verify the required parameter 'projectUID' is set
78
- if (projectUID === undefined || projectUID === null) {
79
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling cloneProject");
77
+ // verify the required parameter 'projectOrProductUID' is set
78
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
79
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling cloneProject");
80
80
  }
81
81
  // verify the required parameter 'cloneProjectRequest' is set
82
82
  if (cloneProjectRequest === undefined || cloneProjectRequest === null) {
83
83
  throw new _Error["default"]("Missing the required parameter 'cloneProjectRequest' when calling cloneProject");
84
84
  }
85
85
  var pathParams = {
86
- 'projectUID': projectUID
86
+ 'projectOrProductUID': projectOrProductUID
87
87
  };
88
88
  var queryParams = {};
89
89
  var headerParams = {};
@@ -92,43 +92,43 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
92
92
  var contentTypes = ['application/json'];
93
93
  var accepts = ['application/json'];
94
94
  var returnType = _Project["default"];
95
- return this.apiClient.callApi('/v1/projects/{projectUID}/clone', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
95
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/clone', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
96
96
  }
97
97
 
98
98
  /**
99
99
  * Clone a Project
100
- * @param {String} projectUID The project UID to be cloned.
100
+ * @param {String} projectOrProductUID
101
101
  * @param {module:model/CloneProjectRequest} cloneProjectRequest Project to be cloned
102
102
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
103
103
  */
104
104
  }, {
105
105
  key: "cloneProject",
106
- value: function cloneProject(projectUID, cloneProjectRequest) {
107
- return this.cloneProjectWithHttpInfo(projectUID, cloneProjectRequest).then(function (response_and_data) {
106
+ value: function cloneProject(projectOrProductUID, cloneProjectRequest) {
107
+ return this.cloneProjectWithHttpInfo(projectOrProductUID, cloneProjectRequest).then(function (response_and_data) {
108
108
  return response_and_data.data;
109
109
  });
110
110
  }
111
111
 
112
112
  /**
113
113
  * Create Fleet
114
- * @param {String} projectUID
114
+ * @param {String} projectOrProductUID
115
115
  * @param {module:model/CreateFleetRequest} createFleetRequest Fleet to be added
116
116
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
117
117
  */
118
118
  }, {
119
119
  key: "createFleetWithHttpInfo",
120
- value: function createFleetWithHttpInfo(projectUID, createFleetRequest) {
120
+ value: function createFleetWithHttpInfo(projectOrProductUID, createFleetRequest) {
121
121
  var postBody = createFleetRequest;
122
- // verify the required parameter 'projectUID' is set
123
- if (projectUID === undefined || projectUID === null) {
124
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling createFleet");
122
+ // verify the required parameter 'projectOrProductUID' is set
123
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
124
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling createFleet");
125
125
  }
126
126
  // verify the required parameter 'createFleetRequest' is set
127
127
  if (createFleetRequest === undefined || createFleetRequest === null) {
128
128
  throw new _Error["default"]("Missing the required parameter 'createFleetRequest' when calling createFleet");
129
129
  }
130
130
  var pathParams = {
131
- 'projectUID': projectUID
131
+ 'projectOrProductUID': projectOrProductUID
132
132
  };
133
133
  var queryParams = {};
134
134
  var headerParams = {};
@@ -137,43 +137,43 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
137
137
  var contentTypes = ['application/json'];
138
138
  var accepts = ['application/json'];
139
139
  var returnType = _Fleet["default"];
140
- return this.apiClient.callApi('/v1/projects/{projectUID}/fleets', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
140
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
141
141
  }
142
142
 
143
143
  /**
144
144
  * Create Fleet
145
- * @param {String} projectUID
145
+ * @param {String} projectOrProductUID
146
146
  * @param {module:model/CreateFleetRequest} createFleetRequest Fleet to be added
147
147
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
148
148
  */
149
149
  }, {
150
150
  key: "createFleet",
151
- value: function createFleet(projectUID, createFleetRequest) {
152
- return this.createFleetWithHttpInfo(projectUID, createFleetRequest).then(function (response_and_data) {
151
+ value: function createFleet(projectOrProductUID, createFleetRequest) {
152
+ return this.createFleetWithHttpInfo(projectOrProductUID, createFleetRequest).then(function (response_and_data) {
153
153
  return response_and_data.data;
154
154
  });
155
155
  }
156
156
 
157
157
  /**
158
158
  * Create Product within a Project
159
- * @param {String} projectUID
159
+ * @param {String} projectOrProductUID
160
160
  * @param {module:model/CreateProductRequest} createProductRequest Product to be created
161
161
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Product} and HTTP response
162
162
  */
163
163
  }, {
164
164
  key: "createProductWithHttpInfo",
165
- value: function createProductWithHttpInfo(projectUID, createProductRequest) {
165
+ value: function createProductWithHttpInfo(projectOrProductUID, createProductRequest) {
166
166
  var postBody = createProductRequest;
167
- // verify the required parameter 'projectUID' is set
168
- if (projectUID === undefined || projectUID === null) {
169
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling createProduct");
167
+ // verify the required parameter 'projectOrProductUID' is set
168
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
169
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling createProduct");
170
170
  }
171
171
  // verify the required parameter 'createProductRequest' is set
172
172
  if (createProductRequest === undefined || createProductRequest === null) {
173
173
  throw new _Error["default"]("Missing the required parameter 'createProductRequest' when calling createProduct");
174
174
  }
175
175
  var pathParams = {
176
- 'projectUID': projectUID
176
+ 'projectOrProductUID': projectOrProductUID
177
177
  };
178
178
  var queryParams = {};
179
179
  var headerParams = {};
@@ -182,19 +182,19 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
182
182
  var contentTypes = ['application/json'];
183
183
  var accepts = ['application/json'];
184
184
  var returnType = _Product["default"];
185
- return this.apiClient.callApi('/v1/projects/{projectUID}/products', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
185
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/products', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
186
186
  }
187
187
 
188
188
  /**
189
189
  * Create Product within a Project
190
- * @param {String} projectUID
190
+ * @param {String} projectOrProductUID
191
191
  * @param {module:model/CreateProductRequest} createProductRequest Product to be created
192
192
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Product}
193
193
  */
194
194
  }, {
195
195
  key: "createProduct",
196
- value: function createProduct(projectUID, createProductRequest) {
197
- return this.createProductWithHttpInfo(projectUID, createProductRequest).then(function (response_and_data) {
196
+ value: function createProduct(projectOrProductUID, createProductRequest) {
197
+ return this.createProductWithHttpInfo(projectOrProductUID, createProductRequest).then(function (response_and_data) {
198
198
  return response_and_data.data;
199
199
  });
200
200
  }
@@ -238,18 +238,18 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
238
238
 
239
239
  /**
240
240
  * Remove Device from Fleets
241
- * @param {String} projectUID
241
+ * @param {String} projectOrProductUID
242
242
  * @param {String} deviceUID
243
243
  * @param {module:model/DeleteDeviceFleetsRequest} deleteDeviceFleetsRequest The fleets to remove from the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
244
244
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectFleets200Response} and HTTP response
245
245
  */
246
246
  }, {
247
247
  key: "deleteDeviceFleetsWithHttpInfo",
248
- value: function deleteDeviceFleetsWithHttpInfo(projectUID, deviceUID, deleteDeviceFleetsRequest) {
248
+ value: function deleteDeviceFleetsWithHttpInfo(projectOrProductUID, deviceUID, deleteDeviceFleetsRequest) {
249
249
  var postBody = deleteDeviceFleetsRequest;
250
- // verify the required parameter 'projectUID' is set
251
- if (projectUID === undefined || projectUID === null) {
252
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling deleteDeviceFleets");
250
+ // verify the required parameter 'projectOrProductUID' is set
251
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
252
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteDeviceFleets");
253
253
  }
254
254
  // verify the required parameter 'deviceUID' is set
255
255
  if (deviceUID === undefined || deviceUID === null) {
@@ -260,7 +260,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
260
260
  throw new _Error["default"]("Missing the required parameter 'deleteDeviceFleetsRequest' when calling deleteDeviceFleets");
261
261
  }
262
262
  var pathParams = {
263
- 'projectUID': projectUID,
263
+ 'projectOrProductUID': projectOrProductUID,
264
264
  'deviceUID': deviceUID
265
265
  };
266
266
  var queryParams = {};
@@ -270,44 +270,44 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
270
270
  var contentTypes = ['application/json'];
271
271
  var accepts = ['application/json'];
272
272
  var returnType = _GetProjectFleets200Response["default"];
273
- return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/fleets', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
273
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/fleets', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
274
274
  }
275
275
 
276
276
  /**
277
277
  * Remove Device from Fleets
278
- * @param {String} projectUID
278
+ * @param {String} projectOrProductUID
279
279
  * @param {String} deviceUID
280
280
  * @param {module:model/DeleteDeviceFleetsRequest} deleteDeviceFleetsRequest The fleets to remove from the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
281
281
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectFleets200Response}
282
282
  */
283
283
  }, {
284
284
  key: "deleteDeviceFleets",
285
- value: function deleteDeviceFleets(projectUID, deviceUID, deleteDeviceFleetsRequest) {
286
- return this.deleteDeviceFleetsWithHttpInfo(projectUID, deviceUID, deleteDeviceFleetsRequest).then(function (response_and_data) {
285
+ value: function deleteDeviceFleets(projectOrProductUID, deviceUID, deleteDeviceFleetsRequest) {
286
+ return this.deleteDeviceFleetsWithHttpInfo(projectOrProductUID, deviceUID, deleteDeviceFleetsRequest).then(function (response_and_data) {
287
287
  return response_and_data.data;
288
288
  });
289
289
  }
290
290
 
291
291
  /**
292
292
  * Delete Fleet
293
- * @param {String} projectUID
293
+ * @param {String} projectOrProductUID
294
294
  * @param {String} fleetUID
295
295
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
296
296
  */
297
297
  }, {
298
298
  key: "deleteFleetWithHttpInfo",
299
- value: function deleteFleetWithHttpInfo(projectUID, fleetUID) {
299
+ value: function deleteFleetWithHttpInfo(projectOrProductUID, fleetUID) {
300
300
  var postBody = null;
301
- // verify the required parameter 'projectUID' is set
302
- if (projectUID === undefined || projectUID === null) {
303
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling deleteFleet");
301
+ // verify the required parameter 'projectOrProductUID' is set
302
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
303
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteFleet");
304
304
  }
305
305
  // verify the required parameter 'fleetUID' is set
306
306
  if (fleetUID === undefined || fleetUID === null) {
307
307
  throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling deleteFleet");
308
308
  }
309
309
  var pathParams = {
310
- 'projectUID': projectUID,
310
+ 'projectOrProductUID': projectOrProductUID,
311
311
  'fleetUID': fleetUID
312
312
  };
313
313
  var queryParams = {};
@@ -317,37 +317,37 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
317
317
  var contentTypes = [];
318
318
  var accepts = ['application/json'];
319
319
  var returnType = null;
320
- return this.apiClient.callApi('/v1/projects/{projectUID}/fleets/{fleetUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
320
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
321
321
  }
322
322
 
323
323
  /**
324
324
  * Delete Fleet
325
- * @param {String} projectUID
325
+ * @param {String} projectOrProductUID
326
326
  * @param {String} fleetUID
327
327
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
328
328
  */
329
329
  }, {
330
330
  key: "deleteFleet",
331
- value: function deleteFleet(projectUID, fleetUID) {
332
- return this.deleteFleetWithHttpInfo(projectUID, fleetUID).then(function (response_and_data) {
331
+ value: function deleteFleet(projectOrProductUID, fleetUID) {
332
+ return this.deleteFleetWithHttpInfo(projectOrProductUID, fleetUID).then(function (response_and_data) {
333
333
  return response_and_data.data;
334
334
  });
335
335
  }
336
336
 
337
337
  /**
338
338
  * Delete environment variables of a fleet
339
- * @param {String} projectUID
339
+ * @param {String} projectOrProductUID
340
340
  * @param {String} fleetUID
341
341
  * @param {String} key The environment variable key to delete.
342
342
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
343
343
  */
344
344
  }, {
345
345
  key: "deleteFleetEnvironmentVariableWithHttpInfo",
346
- value: function deleteFleetEnvironmentVariableWithHttpInfo(projectUID, fleetUID, key) {
346
+ value: function deleteFleetEnvironmentVariableWithHttpInfo(projectOrProductUID, fleetUID, key) {
347
347
  var postBody = null;
348
- // verify the required parameter 'projectUID' is set
349
- if (projectUID === undefined || projectUID === null) {
350
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling deleteFleetEnvironmentVariable");
348
+ // verify the required parameter 'projectOrProductUID' is set
349
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
350
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteFleetEnvironmentVariable");
351
351
  }
352
352
  // verify the required parameter 'fleetUID' is set
353
353
  if (fleetUID === undefined || fleetUID === null) {
@@ -358,7 +358,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
358
358
  throw new _Error["default"]("Missing the required parameter 'key' when calling deleteFleetEnvironmentVariable");
359
359
  }
360
360
  var pathParams = {
361
- 'projectUID': projectUID,
361
+ 'projectOrProductUID': projectOrProductUID,
362
362
  'fleetUID': fleetUID,
363
363
  'key': key
364
364
  };
@@ -369,39 +369,39 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
369
369
  var contentTypes = [];
370
370
  var accepts = ['application/json'];
371
371
  var returnType = _EnvironmentVariables["default"];
372
- return this.apiClient.callApi('/v1/projects/{projectUID}/fleets/{fleetUID}/environment_variables/{key}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
372
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables/{key}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
373
373
  }
374
374
 
375
375
  /**
376
376
  * Delete environment variables of a fleet
377
- * @param {String} projectUID
377
+ * @param {String} projectOrProductUID
378
378
  * @param {String} fleetUID
379
379
  * @param {String} key The environment variable key to delete.
380
380
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
381
381
  */
382
382
  }, {
383
383
  key: "deleteFleetEnvironmentVariable",
384
- value: function deleteFleetEnvironmentVariable(projectUID, fleetUID, key) {
385
- return this.deleteFleetEnvironmentVariableWithHttpInfo(projectUID, fleetUID, key).then(function (response_and_data) {
384
+ value: function deleteFleetEnvironmentVariable(projectOrProductUID, fleetUID, key) {
385
+ return this.deleteFleetEnvironmentVariableWithHttpInfo(projectOrProductUID, fleetUID, key).then(function (response_and_data) {
386
386
  return response_and_data.data;
387
387
  });
388
388
  }
389
389
 
390
390
  /**
391
391
  * Delete a Project by ProjectUID
392
- * @param {String} projectUID
392
+ * @param {String} projectOrProductUID
393
393
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
394
394
  */
395
395
  }, {
396
396
  key: "deleteProjectWithHttpInfo",
397
- value: function deleteProjectWithHttpInfo(projectUID) {
397
+ value: function deleteProjectWithHttpInfo(projectOrProductUID) {
398
398
  var postBody = null;
399
- // verify the required parameter 'projectUID' is set
400
- if (projectUID === undefined || projectUID === null) {
401
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling deleteProject");
399
+ // verify the required parameter 'projectOrProductUID' is set
400
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
401
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteProject");
402
402
  }
403
403
  var pathParams = {
404
- 'projectUID': projectUID
404
+ 'projectOrProductUID': projectOrProductUID
405
405
  };
406
406
  var queryParams = {};
407
407
  var headerParams = {};
@@ -415,37 +415,37 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
415
415
 
416
416
  /**
417
417
  * Delete a Project by ProjectUID
418
- * @param {String} projectUID
418
+ * @param {String} projectOrProductUID
419
419
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
420
420
  */
421
421
  }, {
422
422
  key: "deleteProject",
423
- value: function deleteProject(projectUID) {
424
- return this.deleteProjectWithHttpInfo(projectUID).then(function (response_and_data) {
423
+ value: function deleteProject(projectOrProductUID) {
424
+ return this.deleteProjectWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
425
425
  return response_and_data.data;
426
426
  });
427
427
  }
428
428
 
429
429
  /**
430
430
  * Delete an environment variable of a project by key
431
- * @param {String} projectUID
431
+ * @param {String} projectOrProductUID
432
432
  * @param {String} key The environment variable key to delete.
433
433
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
434
434
  */
435
435
  }, {
436
436
  key: "deleteProjectEnvironmentVariableWithHttpInfo",
437
- value: function deleteProjectEnvironmentVariableWithHttpInfo(projectUID, key) {
437
+ value: function deleteProjectEnvironmentVariableWithHttpInfo(projectOrProductUID, key) {
438
438
  var postBody = null;
439
- // verify the required parameter 'projectUID' is set
440
- if (projectUID === undefined || projectUID === null) {
441
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling deleteProjectEnvironmentVariable");
439
+ // verify the required parameter 'projectOrProductUID' is set
440
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
441
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteProjectEnvironmentVariable");
442
442
  }
443
443
  // verify the required parameter 'key' is set
444
444
  if (key === undefined || key === null) {
445
445
  throw new _Error["default"]("Missing the required parameter 'key' when calling deleteProjectEnvironmentVariable");
446
446
  }
447
447
  var pathParams = {
448
- 'projectUID': projectUID,
448
+ 'projectOrProductUID': projectOrProductUID,
449
449
  'key': key
450
450
  };
451
451
  var queryParams = {};
@@ -455,26 +455,26 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
455
455
  var contentTypes = [];
456
456
  var accepts = ['application/json'];
457
457
  var returnType = _EnvironmentVariables["default"];
458
- return this.apiClient.callApi('/v1/projects/{projectUID}/environment_variables/{key}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
458
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/environment_variables/{key}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
459
459
  }
460
460
 
461
461
  /**
462
462
  * Delete an environment variable of a project by key
463
- * @param {String} projectUID
463
+ * @param {String} projectOrProductUID
464
464
  * @param {String} key The environment variable key to delete.
465
465
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
466
466
  */
467
467
  }, {
468
468
  key: "deleteProjectEnvironmentVariable",
469
- value: function deleteProjectEnvironmentVariable(projectUID, key) {
470
- return this.deleteProjectEnvironmentVariableWithHttpInfo(projectUID, key).then(function (response_and_data) {
469
+ value: function deleteProjectEnvironmentVariable(projectOrProductUID, key) {
470
+ return this.deleteProjectEnvironmentVariableWithHttpInfo(projectOrProductUID, key).then(function (response_and_data) {
471
471
  return response_and_data.data;
472
472
  });
473
473
  }
474
474
 
475
475
  /**
476
476
  * Update/cancel host or notecard firmware updates
477
- * @param {String} projectUID
477
+ * @param {String} projectOrProductUID
478
478
  * @param {module:model/String} firmwareType
479
479
  * @param {module:model/String} action
480
480
  * @param {Object} opts Optional parameters
@@ -492,12 +492,12 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
492
492
  */
493
493
  }, {
494
494
  key: "dfuActionWithHttpInfo",
495
- value: function dfuActionWithHttpInfo(projectUID, firmwareType, action, opts) {
495
+ value: function dfuActionWithHttpInfo(projectOrProductUID, firmwareType, action, opts) {
496
496
  opts = opts || {};
497
497
  var postBody = opts['dfuActionRequest'];
498
- // verify the required parameter 'projectUID' is set
499
- if (projectUID === undefined || projectUID === null) {
500
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling dfuAction");
498
+ // verify the required parameter 'projectOrProductUID' is set
499
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
500
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling dfuAction");
501
501
  }
502
502
  // verify the required parameter 'firmwareType' is set
503
503
  if (firmwareType === undefined || firmwareType === null) {
@@ -508,7 +508,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
508
508
  throw new _Error["default"]("Missing the required parameter 'action' when calling dfuAction");
509
509
  }
510
510
  var pathParams = {
511
- 'projectUID': projectUID,
511
+ 'projectOrProductUID': projectOrProductUID,
512
512
  'firmwareType': firmwareType,
513
513
  'action': action
514
514
  };
@@ -529,12 +529,12 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
529
529
  var contentTypes = ['application/json'];
530
530
  var accepts = ['application/json'];
531
531
  var returnType = null;
532
- return this.apiClient.callApi('/v1/projects/{projectUID}/dfu/{firmwareType}/{action}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
532
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/dfu/{firmwareType}/{action}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
533
533
  }
534
534
 
535
535
  /**
536
536
  * Update/cancel host or notecard firmware updates
537
- * @param {String} projectUID
537
+ * @param {String} projectOrProductUID
538
538
  * @param {module:model/String} firmwareType
539
539
  * @param {module:model/String} action
540
540
  * @param {Object} opts Optional parameters
@@ -552,27 +552,27 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
552
552
  */
553
553
  }, {
554
554
  key: "dfuAction",
555
- value: function dfuAction(projectUID, firmwareType, action, opts) {
556
- return this.dfuActionWithHttpInfo(projectUID, firmwareType, action, opts).then(function (response_and_data) {
555
+ value: function dfuAction(projectOrProductUID, firmwareType, action, opts) {
556
+ return this.dfuActionWithHttpInfo(projectOrProductUID, firmwareType, action, opts).then(function (response_and_data) {
557
557
  return response_and_data.data;
558
558
  });
559
559
  }
560
560
 
561
561
  /**
562
562
  * Disable the project-level event JSONata transformation
563
- * @param {String} projectUID
563
+ * @param {String} projectOrProductUID
564
564
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
565
565
  */
566
566
  }, {
567
567
  key: "disableGlobalTransformationWithHttpInfo",
568
- value: function disableGlobalTransformationWithHttpInfo(projectUID) {
568
+ value: function disableGlobalTransformationWithHttpInfo(projectOrProductUID) {
569
569
  var postBody = null;
570
- // verify the required parameter 'projectUID' is set
571
- if (projectUID === undefined || projectUID === null) {
572
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling disableGlobalTransformation");
570
+ // verify the required parameter 'projectOrProductUID' is set
571
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
572
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling disableGlobalTransformation");
573
573
  }
574
574
  var pathParams = {
575
- 'projectUID': projectUID
575
+ 'projectOrProductUID': projectOrProductUID
576
576
  };
577
577
  var queryParams = {};
578
578
  var headerParams = {};
@@ -581,37 +581,37 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
581
581
  var contentTypes = [];
582
582
  var accepts = ['application/json'];
583
583
  var returnType = null;
584
- return this.apiClient.callApi('/v1/projects/{projectUID}/global-transformation/disable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
584
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/global-transformation/disable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
585
585
  }
586
586
 
587
587
  /**
588
588
  * Disable the project-level event JSONata transformation
589
- * @param {String} projectUID
589
+ * @param {String} projectOrProductUID
590
590
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
591
591
  */
592
592
  }, {
593
593
  key: "disableGlobalTransformation",
594
- value: function disableGlobalTransformation(projectUID) {
595
- return this.disableGlobalTransformationWithHttpInfo(projectUID).then(function (response_and_data) {
594
+ value: function disableGlobalTransformation(projectOrProductUID) {
595
+ return this.disableGlobalTransformationWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
596
596
  return response_and_data.data;
597
597
  });
598
598
  }
599
599
 
600
600
  /**
601
601
  * Enable the project-level event JSONata transformation
602
- * @param {String} projectUID
602
+ * @param {String} projectOrProductUID
603
603
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
604
604
  */
605
605
  }, {
606
606
  key: "enableGlobalTransformationWithHttpInfo",
607
- value: function enableGlobalTransformationWithHttpInfo(projectUID) {
607
+ value: function enableGlobalTransformationWithHttpInfo(projectOrProductUID) {
608
608
  var postBody = null;
609
- // verify the required parameter 'projectUID' is set
610
- if (projectUID === undefined || projectUID === null) {
611
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling enableGlobalTransformation");
609
+ // verify the required parameter 'projectOrProductUID' is set
610
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
611
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling enableGlobalTransformation");
612
612
  }
613
613
  var pathParams = {
614
- 'projectUID': projectUID
614
+ 'projectOrProductUID': projectOrProductUID
615
615
  };
616
616
  var queryParams = {};
617
617
  var headerParams = {};
@@ -620,36 +620,36 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
620
620
  var contentTypes = [];
621
621
  var accepts = ['application/json'];
622
622
  var returnType = null;
623
- return this.apiClient.callApi('/v1/projects/{projectUID}/global-transformation/enable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
623
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/global-transformation/enable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
624
624
  }
625
625
 
626
626
  /**
627
627
  * Enable the project-level event JSONata transformation
628
- * @param {String} projectUID
628
+ * @param {String} projectOrProductUID
629
629
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
630
630
  */
631
631
  }, {
632
632
  key: "enableGlobalTransformation",
633
- value: function enableGlobalTransformation(projectUID) {
634
- return this.enableGlobalTransformationWithHttpInfo(projectUID).then(function (response_and_data) {
633
+ value: function enableGlobalTransformation(projectOrProductUID) {
634
+ return this.enableGlobalTransformationWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
635
635
  return response_and_data.data;
636
636
  });
637
637
  }
638
638
 
639
639
  /**
640
640
  * Get device DFU history for host or Notecard firmware
641
- * @param {String} projectUID
641
+ * @param {String} projectOrProductUID
642
642
  * @param {String} deviceUID
643
643
  * @param {module:model/String} firmwareType
644
644
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuHistory} and HTTP response
645
645
  */
646
646
  }, {
647
647
  key: "getDeviceDfuHistoryWithHttpInfo",
648
- value: function getDeviceDfuHistoryWithHttpInfo(projectUID, deviceUID, firmwareType) {
648
+ value: function getDeviceDfuHistoryWithHttpInfo(projectOrProductUID, deviceUID, firmwareType) {
649
649
  var postBody = null;
650
- // verify the required parameter 'projectUID' is set
651
- if (projectUID === undefined || projectUID === null) {
652
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getDeviceDfuHistory");
650
+ // verify the required parameter 'projectOrProductUID' is set
651
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
652
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDeviceDfuHistory");
653
653
  }
654
654
  // verify the required parameter 'deviceUID' is set
655
655
  if (deviceUID === undefined || deviceUID === null) {
@@ -660,7 +660,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
660
660
  throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDeviceDfuHistory");
661
661
  }
662
662
  var pathParams = {
663
- 'projectUID': projectUID,
663
+ 'projectOrProductUID': projectOrProductUID,
664
664
  'deviceUID': deviceUID,
665
665
  'firmwareType': firmwareType
666
666
  };
@@ -671,38 +671,38 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
671
671
  var contentTypes = [];
672
672
  var accepts = ['application/json'];
673
673
  var returnType = _DeviceDfuHistory["default"];
674
- return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/dfu/{firmwareType}/history', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
674
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/dfu/{firmwareType}/history', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
675
675
  }
676
676
 
677
677
  /**
678
678
  * Get device DFU history for host or Notecard firmware
679
- * @param {String} projectUID
679
+ * @param {String} projectOrProductUID
680
680
  * @param {String} deviceUID
681
681
  * @param {module:model/String} firmwareType
682
682
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuHistory}
683
683
  */
684
684
  }, {
685
685
  key: "getDeviceDfuHistory",
686
- value: function getDeviceDfuHistory(projectUID, deviceUID, firmwareType) {
687
- return this.getDeviceDfuHistoryWithHttpInfo(projectUID, deviceUID, firmwareType).then(function (response_and_data) {
686
+ value: function getDeviceDfuHistory(projectOrProductUID, deviceUID, firmwareType) {
687
+ return this.getDeviceDfuHistoryWithHttpInfo(projectOrProductUID, deviceUID, firmwareType).then(function (response_and_data) {
688
688
  return response_and_data.data;
689
689
  });
690
690
  }
691
691
 
692
692
  /**
693
693
  * Get device DFU history for host or Notecard firmware
694
- * @param {String} projectUID
694
+ * @param {String} projectOrProductUID
695
695
  * @param {String} deviceUID
696
696
  * @param {module:model/String} firmwareType
697
697
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuStatus} and HTTP response
698
698
  */
699
699
  }, {
700
700
  key: "getDeviceDfuStatusWithHttpInfo",
701
- value: function getDeviceDfuStatusWithHttpInfo(projectUID, deviceUID, firmwareType) {
701
+ value: function getDeviceDfuStatusWithHttpInfo(projectOrProductUID, deviceUID, firmwareType) {
702
702
  var postBody = null;
703
- // verify the required parameter 'projectUID' is set
704
- if (projectUID === undefined || projectUID === null) {
705
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getDeviceDfuStatus");
703
+ // verify the required parameter 'projectOrProductUID' is set
704
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
705
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDeviceDfuStatus");
706
706
  }
707
707
  // verify the required parameter 'deviceUID' is set
708
708
  if (deviceUID === undefined || deviceUID === null) {
@@ -713,7 +713,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
713
713
  throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDeviceDfuStatus");
714
714
  }
715
715
  var pathParams = {
716
- 'projectUID': projectUID,
716
+ 'projectOrProductUID': projectOrProductUID,
717
717
  'deviceUID': deviceUID,
718
718
  'firmwareType': firmwareType
719
719
  };
@@ -724,44 +724,44 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
724
724
  var contentTypes = [];
725
725
  var accepts = ['application/json'];
726
726
  var returnType = _DeviceDfuStatus["default"];
727
- return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/dfu/{firmwareType}/status', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
727
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/dfu/{firmwareType}/status', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
728
728
  }
729
729
 
730
730
  /**
731
731
  * Get device DFU history for host or Notecard firmware
732
- * @param {String} projectUID
732
+ * @param {String} projectOrProductUID
733
733
  * @param {String} deviceUID
734
734
  * @param {module:model/String} firmwareType
735
735
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuStatus}
736
736
  */
737
737
  }, {
738
738
  key: "getDeviceDfuStatus",
739
- value: function getDeviceDfuStatus(projectUID, deviceUID, firmwareType) {
740
- return this.getDeviceDfuStatusWithHttpInfo(projectUID, deviceUID, firmwareType).then(function (response_and_data) {
739
+ value: function getDeviceDfuStatus(projectOrProductUID, deviceUID, firmwareType) {
740
+ return this.getDeviceDfuStatusWithHttpInfo(projectOrProductUID, deviceUID, firmwareType).then(function (response_and_data) {
741
741
  return response_and_data.data;
742
742
  });
743
743
  }
744
744
 
745
745
  /**
746
746
  * Get Device Fleets
747
- * @param {String} projectUID
747
+ * @param {String} projectOrProductUID
748
748
  * @param {String} deviceUID
749
749
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectFleets200Response} and HTTP response
750
750
  */
751
751
  }, {
752
752
  key: "getDeviceFleetsWithHttpInfo",
753
- value: function getDeviceFleetsWithHttpInfo(projectUID, deviceUID) {
753
+ value: function getDeviceFleetsWithHttpInfo(projectOrProductUID, deviceUID) {
754
754
  var postBody = null;
755
- // verify the required parameter 'projectUID' is set
756
- if (projectUID === undefined || projectUID === null) {
757
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getDeviceFleets");
755
+ // verify the required parameter 'projectOrProductUID' is set
756
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
757
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDeviceFleets");
758
758
  }
759
759
  // verify the required parameter 'deviceUID' is set
760
760
  if (deviceUID === undefined || deviceUID === null) {
761
761
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceFleets");
762
762
  }
763
763
  var pathParams = {
764
- 'projectUID': projectUID,
764
+ 'projectOrProductUID': projectOrProductUID,
765
765
  'deviceUID': deviceUID
766
766
  };
767
767
  var queryParams = {};
@@ -771,26 +771,26 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
771
771
  var contentTypes = [];
772
772
  var accepts = ['application/json'];
773
773
  var returnType = _GetProjectFleets200Response["default"];
774
- return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/fleets', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
774
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/fleets', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
775
775
  }
776
776
 
777
777
  /**
778
778
  * Get Device Fleets
779
- * @param {String} projectUID
779
+ * @param {String} projectOrProductUID
780
780
  * @param {String} deviceUID
781
781
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectFleets200Response}
782
782
  */
783
783
  }, {
784
784
  key: "getDeviceFleets",
785
- value: function getDeviceFleets(projectUID, deviceUID) {
786
- return this.getDeviceFleetsWithHttpInfo(projectUID, deviceUID).then(function (response_and_data) {
785
+ value: function getDeviceFleets(projectOrProductUID, deviceUID) {
786
+ return this.getDeviceFleetsWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
787
787
  return response_and_data.data;
788
788
  });
789
789
  }
790
790
 
791
791
  /**
792
792
  * Get host or Notecard DFU history for all devices that match the filter criteria
793
- * @param {String} projectUID
793
+ * @param {String} projectOrProductUID
794
794
  * @param {module:model/String} firmwareType
795
795
  * @param {Object} opts Optional parameters
796
796
  * @param {Number} opts.pageSize (default to 50)
@@ -810,19 +810,19 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
810
810
  */
811
811
  }, {
812
812
  key: "getDevicesDfuHistoryWithHttpInfo",
813
- value: function getDevicesDfuHistoryWithHttpInfo(projectUID, firmwareType, opts) {
813
+ value: function getDevicesDfuHistoryWithHttpInfo(projectOrProductUID, firmwareType, opts) {
814
814
  opts = opts || {};
815
815
  var postBody = null;
816
- // verify the required parameter 'projectUID' is set
817
- if (projectUID === undefined || projectUID === null) {
818
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getDevicesDfuHistory");
816
+ // verify the required parameter 'projectOrProductUID' is set
817
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
818
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDevicesDfuHistory");
819
819
  }
820
820
  // verify the required parameter 'firmwareType' is set
821
821
  if (firmwareType === undefined || firmwareType === null) {
822
822
  throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDevicesDfuHistory");
823
823
  }
824
824
  var pathParams = {
825
- 'projectUID': projectUID,
825
+ 'projectOrProductUID': projectOrProductUID,
826
826
  'firmwareType': firmwareType
827
827
  };
828
828
  var queryParams = {
@@ -846,12 +846,12 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
846
846
  var contentTypes = [];
847
847
  var accepts = ['application/json'];
848
848
  var returnType = _DeviceDfuHistoryPage["default"];
849
- return this.apiClient.callApi('/v1/projects/{projectUID}/dfu/{firmwareType}/history', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
849
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/dfu/{firmwareType}/history', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
850
850
  }
851
851
 
852
852
  /**
853
853
  * Get host or Notecard DFU history for all devices that match the filter criteria
854
- * @param {String} projectUID
854
+ * @param {String} projectOrProductUID
855
855
  * @param {module:model/String} firmwareType
856
856
  * @param {Object} opts Optional parameters
857
857
  * @param {Number} opts.pageSize (default to 50)
@@ -871,15 +871,15 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
871
871
  */
872
872
  }, {
873
873
  key: "getDevicesDfuHistory",
874
- value: function getDevicesDfuHistory(projectUID, firmwareType, opts) {
875
- return this.getDevicesDfuHistoryWithHttpInfo(projectUID, firmwareType, opts).then(function (response_and_data) {
874
+ value: function getDevicesDfuHistory(projectOrProductUID, firmwareType, opts) {
875
+ return this.getDevicesDfuHistoryWithHttpInfo(projectOrProductUID, firmwareType, opts).then(function (response_and_data) {
876
876
  return response_and_data.data;
877
877
  });
878
878
  }
879
879
 
880
880
  /**
881
881
  * Get host or Notecard DFU history for all devices that match the filter criteria
882
- * @param {String} projectUID
882
+ * @param {String} projectOrProductUID
883
883
  * @param {module:model/String} firmwareType
884
884
  * @param {Object} opts Optional parameters
885
885
  * @param {Number} opts.pageSize (default to 50)
@@ -899,19 +899,19 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
899
899
  */
900
900
  }, {
901
901
  key: "getDevicesDfuStatusWithHttpInfo",
902
- value: function getDevicesDfuStatusWithHttpInfo(projectUID, firmwareType, opts) {
902
+ value: function getDevicesDfuStatusWithHttpInfo(projectOrProductUID, firmwareType, opts) {
903
903
  opts = opts || {};
904
904
  var postBody = null;
905
- // verify the required parameter 'projectUID' is set
906
- if (projectUID === undefined || projectUID === null) {
907
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getDevicesDfuStatus");
905
+ // verify the required parameter 'projectOrProductUID' is set
906
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
907
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDevicesDfuStatus");
908
908
  }
909
909
  // verify the required parameter 'firmwareType' is set
910
910
  if (firmwareType === undefined || firmwareType === null) {
911
911
  throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDevicesDfuStatus");
912
912
  }
913
913
  var pathParams = {
914
- 'projectUID': projectUID,
914
+ 'projectOrProductUID': projectOrProductUID,
915
915
  'firmwareType': firmwareType
916
916
  };
917
917
  var queryParams = {
@@ -935,12 +935,12 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
935
935
  var contentTypes = [];
936
936
  var accepts = ['application/json'];
937
937
  var returnType = _DeviceDfuStatusPage["default"];
938
- return this.apiClient.callApi('/v1/projects/{projectUID}/dfu/{firmwareType}/status', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
938
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/dfu/{firmwareType}/status', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
939
939
  }
940
940
 
941
941
  /**
942
942
  * Get host or Notecard DFU history for all devices that match the filter criteria
943
- * @param {String} projectUID
943
+ * @param {String} projectOrProductUID
944
944
  * @param {module:model/String} firmwareType
945
945
  * @param {Object} opts Optional parameters
946
946
  * @param {Number} opts.pageSize (default to 50)
@@ -960,15 +960,15 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
960
960
  */
961
961
  }, {
962
962
  key: "getDevicesDfuStatus",
963
- value: function getDevicesDfuStatus(projectUID, firmwareType, opts) {
964
- return this.getDevicesDfuStatusWithHttpInfo(projectUID, firmwareType, opts).then(function (response_and_data) {
963
+ value: function getDevicesDfuStatus(projectOrProductUID, firmwareType, opts) {
964
+ return this.getDevicesDfuStatusWithHttpInfo(projectOrProductUID, firmwareType, opts).then(function (response_and_data) {
965
965
  return response_and_data.data;
966
966
  });
967
967
  }
968
968
 
969
969
  /**
970
970
  * Get Available Firmware Information
971
- * @param {String} projectUID
971
+ * @param {String} projectOrProductUID
972
972
  * @param {Object} opts Optional parameters
973
973
  * @param {String} opts.product
974
974
  * @param {String} opts.firmwareType
@@ -981,15 +981,15 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
981
981
  */
982
982
  }, {
983
983
  key: "getFirmwareInfoWithHttpInfo",
984
- value: function getFirmwareInfoWithHttpInfo(projectUID, opts) {
984
+ value: function getFirmwareInfoWithHttpInfo(projectOrProductUID, opts) {
985
985
  opts = opts || {};
986
986
  var postBody = null;
987
- // verify the required parameter 'projectUID' is set
988
- if (projectUID === undefined || projectUID === null) {
989
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getFirmwareInfo");
987
+ // verify the required parameter 'projectOrProductUID' is set
988
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
989
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getFirmwareInfo");
990
990
  }
991
991
  var pathParams = {
992
- 'projectUID': projectUID
992
+ 'projectOrProductUID': projectOrProductUID
993
993
  };
994
994
  var queryParams = {
995
995
  'product': opts['product'],
@@ -1006,12 +1006,12 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1006
1006
  var contentTypes = [];
1007
1007
  var accepts = ['application/json'];
1008
1008
  var returnType = [_FirmwareInfo["default"]];
1009
- return this.apiClient.callApi('/v1/projects/{projectUID}/firmware', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1009
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/firmware', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1010
1010
  }
1011
1011
 
1012
1012
  /**
1013
1013
  * Get Available Firmware Information
1014
- * @param {String} projectUID
1014
+ * @param {String} projectOrProductUID
1015
1015
  * @param {Object} opts Optional parameters
1016
1016
  * @param {String} opts.product
1017
1017
  * @param {String} opts.firmwareType
@@ -1024,32 +1024,32 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1024
1024
  */
1025
1025
  }, {
1026
1026
  key: "getFirmwareInfo",
1027
- value: function getFirmwareInfo(projectUID, opts) {
1028
- return this.getFirmwareInfoWithHttpInfo(projectUID, opts).then(function (response_and_data) {
1027
+ value: function getFirmwareInfo(projectOrProductUID, opts) {
1028
+ return this.getFirmwareInfoWithHttpInfo(projectOrProductUID, opts).then(function (response_and_data) {
1029
1029
  return response_and_data.data;
1030
1030
  });
1031
1031
  }
1032
1032
 
1033
1033
  /**
1034
1034
  * Get Fleet
1035
- * @param {String} projectUID
1035
+ * @param {String} projectOrProductUID
1036
1036
  * @param {String} fleetUID
1037
1037
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
1038
1038
  */
1039
1039
  }, {
1040
1040
  key: "getFleetWithHttpInfo",
1041
- value: function getFleetWithHttpInfo(projectUID, fleetUID) {
1041
+ value: function getFleetWithHttpInfo(projectOrProductUID, fleetUID) {
1042
1042
  var postBody = null;
1043
- // verify the required parameter 'projectUID' is set
1044
- if (projectUID === undefined || projectUID === null) {
1045
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getFleet");
1043
+ // verify the required parameter 'projectOrProductUID' is set
1044
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
1045
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getFleet");
1046
1046
  }
1047
1047
  // verify the required parameter 'fleetUID' is set
1048
1048
  if (fleetUID === undefined || fleetUID === null) {
1049
1049
  throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleet");
1050
1050
  }
1051
1051
  var pathParams = {
1052
- 'projectUID': projectUID,
1052
+ 'projectOrProductUID': projectOrProductUID,
1053
1053
  'fleetUID': fleetUID
1054
1054
  };
1055
1055
  var queryParams = {};
@@ -1059,43 +1059,43 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1059
1059
  var contentTypes = [];
1060
1060
  var accepts = ['application/json'];
1061
1061
  var returnType = _Fleet["default"];
1062
- return this.apiClient.callApi('/v1/projects/{projectUID}/fleets/{fleetUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1062
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1063
1063
  }
1064
1064
 
1065
1065
  /**
1066
1066
  * Get Fleet
1067
- * @param {String} projectUID
1067
+ * @param {String} projectOrProductUID
1068
1068
  * @param {String} fleetUID
1069
1069
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
1070
1070
  */
1071
1071
  }, {
1072
1072
  key: "getFleet",
1073
- value: function getFleet(projectUID, fleetUID) {
1074
- return this.getFleetWithHttpInfo(projectUID, fleetUID).then(function (response_and_data) {
1073
+ value: function getFleet(projectOrProductUID, fleetUID) {
1074
+ return this.getFleetWithHttpInfo(projectOrProductUID, fleetUID).then(function (response_and_data) {
1075
1075
  return response_and_data.data;
1076
1076
  });
1077
1077
  }
1078
1078
 
1079
1079
  /**
1080
1080
  * Get environment variables of a fleet
1081
- * @param {String} projectUID
1081
+ * @param {String} projectOrProductUID
1082
1082
  * @param {String} fleetUID
1083
1083
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1084
1084
  */
1085
1085
  }, {
1086
1086
  key: "getFleetEnvironmentVariablesWithHttpInfo",
1087
- value: function getFleetEnvironmentVariablesWithHttpInfo(projectUID, fleetUID) {
1087
+ value: function getFleetEnvironmentVariablesWithHttpInfo(projectOrProductUID, fleetUID) {
1088
1088
  var postBody = null;
1089
- // verify the required parameter 'projectUID' is set
1090
- if (projectUID === undefined || projectUID === null) {
1091
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getFleetEnvironmentVariables");
1089
+ // verify the required parameter 'projectOrProductUID' is set
1090
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
1091
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getFleetEnvironmentVariables");
1092
1092
  }
1093
1093
  // verify the required parameter 'fleetUID' is set
1094
1094
  if (fleetUID === undefined || fleetUID === null) {
1095
1095
  throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEnvironmentVariables");
1096
1096
  }
1097
1097
  var pathParams = {
1098
- 'projectUID': projectUID,
1098
+ 'projectOrProductUID': projectOrProductUID,
1099
1099
  'fleetUID': fleetUID
1100
1100
  };
1101
1101
  var queryParams = {};
@@ -1105,38 +1105,38 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1105
1105
  var contentTypes = [];
1106
1106
  var accepts = ['application/json'];
1107
1107
  var returnType = _EnvironmentVariables["default"];
1108
- return this.apiClient.callApi('/v1/projects/{projectUID}/fleets/{fleetUID}/environment_variables', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1108
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1109
1109
  }
1110
1110
 
1111
1111
  /**
1112
1112
  * Get environment variables of a fleet
1113
- * @param {String} projectUID
1113
+ * @param {String} projectOrProductUID
1114
1114
  * @param {String} fleetUID
1115
1115
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1116
1116
  */
1117
1117
  }, {
1118
1118
  key: "getFleetEnvironmentVariables",
1119
- value: function getFleetEnvironmentVariables(projectUID, fleetUID) {
1120
- return this.getFleetEnvironmentVariablesWithHttpInfo(projectUID, fleetUID).then(function (response_and_data) {
1119
+ value: function getFleetEnvironmentVariables(projectOrProductUID, fleetUID) {
1120
+ return this.getFleetEnvironmentVariablesWithHttpInfo(projectOrProductUID, fleetUID).then(function (response_and_data) {
1121
1121
  return response_and_data.data;
1122
1122
  });
1123
1123
  }
1124
1124
 
1125
1125
  /**
1126
1126
  * Get variable format for a notefile
1127
- * @param {String} projectUID
1127
+ * @param {String} projectOrProductUID
1128
1128
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/NotefileSchema>} and HTTP response
1129
1129
  */
1130
1130
  }, {
1131
1131
  key: "getNotefileSchemasWithHttpInfo",
1132
- value: function getNotefileSchemasWithHttpInfo(projectUID) {
1132
+ value: function getNotefileSchemasWithHttpInfo(projectOrProductUID) {
1133
1133
  var postBody = null;
1134
- // verify the required parameter 'projectUID' is set
1135
- if (projectUID === undefined || projectUID === null) {
1136
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getNotefileSchemas");
1134
+ // verify the required parameter 'projectOrProductUID' is set
1135
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
1136
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getNotefileSchemas");
1137
1137
  }
1138
1138
  var pathParams = {
1139
- 'projectUID': projectUID
1139
+ 'projectOrProductUID': projectOrProductUID
1140
1140
  };
1141
1141
  var queryParams = {};
1142
1142
  var headerParams = {};
@@ -1145,37 +1145,37 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1145
1145
  var contentTypes = [];
1146
1146
  var accepts = ['application/json'];
1147
1147
  var returnType = [_NotefileSchema["default"]];
1148
- return this.apiClient.callApi('/v1/projects/{projectUID}/schemas', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1148
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/schemas', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1149
1149
  }
1150
1150
 
1151
1151
  /**
1152
1152
  * Get variable format for a notefile
1153
- * @param {String} projectUID
1153
+ * @param {String} projectOrProductUID
1154
1154
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/NotefileSchema>}
1155
1155
  */
1156
1156
  }, {
1157
1157
  key: "getNotefileSchemas",
1158
- value: function getNotefileSchemas(projectUID) {
1159
- return this.getNotefileSchemasWithHttpInfo(projectUID).then(function (response_and_data) {
1158
+ value: function getNotefileSchemas(projectOrProductUID) {
1159
+ return this.getNotefileSchemasWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
1160
1160
  return response_and_data.data;
1161
1161
  });
1162
1162
  }
1163
1163
 
1164
1164
  /**
1165
1165
  * Get a Project by ProjectUID
1166
- * @param {String} projectUID
1166
+ * @param {String} projectOrProductUID
1167
1167
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
1168
1168
  */
1169
1169
  }, {
1170
1170
  key: "getProjectWithHttpInfo",
1171
- value: function getProjectWithHttpInfo(projectUID) {
1171
+ value: function getProjectWithHttpInfo(projectOrProductUID) {
1172
1172
  var postBody = null;
1173
- // verify the required parameter 'projectUID' is set
1174
- if (projectUID === undefined || projectUID === null) {
1175
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProject");
1173
+ // verify the required parameter 'projectOrProductUID' is set
1174
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
1175
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProject");
1176
1176
  }
1177
1177
  var pathParams = {
1178
- 'projectUID': projectUID
1178
+ 'projectOrProductUID': projectOrProductUID
1179
1179
  };
1180
1180
  var queryParams = {};
1181
1181
  var headerParams = {};
@@ -1189,13 +1189,13 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1189
1189
 
1190
1190
  /**
1191
1191
  * Get a Project by ProjectUID
1192
- * @param {String} projectUID
1192
+ * @param {String} projectOrProductUID
1193
1193
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
1194
1194
  */
1195
1195
  }, {
1196
1196
  key: "getProject",
1197
- value: function getProject(projectUID) {
1198
- return this.getProjectWithHttpInfo(projectUID).then(function (response_and_data) {
1197
+ value: function getProject(projectOrProductUID) {
1198
+ return this.getProjectWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
1199
1199
  return response_and_data.data;
1200
1200
  });
1201
1201
  }
@@ -1241,19 +1241,19 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1241
1241
 
1242
1242
  /**
1243
1243
  * Get environment variables of a project
1244
- * @param {String} projectUID
1244
+ * @param {String} projectOrProductUID
1245
1245
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1246
1246
  */
1247
1247
  }, {
1248
1248
  key: "getProjectEnvironmentVariablesWithHttpInfo",
1249
- value: function getProjectEnvironmentVariablesWithHttpInfo(projectUID) {
1249
+ value: function getProjectEnvironmentVariablesWithHttpInfo(projectOrProductUID) {
1250
1250
  var postBody = null;
1251
- // verify the required parameter 'projectUID' is set
1252
- if (projectUID === undefined || projectUID === null) {
1253
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectEnvironmentVariables");
1251
+ // verify the required parameter 'projectOrProductUID' is set
1252
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
1253
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectEnvironmentVariables");
1254
1254
  }
1255
1255
  var pathParams = {
1256
- 'projectUID': projectUID
1256
+ 'projectOrProductUID': projectOrProductUID
1257
1257
  };
1258
1258
  var queryParams = {};
1259
1259
  var headerParams = {};
@@ -1262,37 +1262,37 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1262
1262
  var contentTypes = [];
1263
1263
  var accepts = ['application/json'];
1264
1264
  var returnType = _EnvironmentVariables["default"];
1265
- return this.apiClient.callApi('/v1/projects/{projectUID}/environment_variables', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1265
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/environment_variables', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1266
1266
  }
1267
1267
 
1268
1268
  /**
1269
1269
  * Get environment variables of a project
1270
- * @param {String} projectUID
1270
+ * @param {String} projectOrProductUID
1271
1271
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1272
1272
  */
1273
1273
  }, {
1274
1274
  key: "getProjectEnvironmentVariables",
1275
- value: function getProjectEnvironmentVariables(projectUID) {
1276
- return this.getProjectEnvironmentVariablesWithHttpInfo(projectUID).then(function (response_and_data) {
1275
+ value: function getProjectEnvironmentVariables(projectOrProductUID) {
1276
+ return this.getProjectEnvironmentVariablesWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
1277
1277
  return response_and_data.data;
1278
1278
  });
1279
1279
  }
1280
1280
 
1281
1281
  /**
1282
1282
  * Get Project Fleets
1283
- * @param {String} projectUID
1283
+ * @param {String} projectOrProductUID
1284
1284
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectFleets200Response} and HTTP response
1285
1285
  */
1286
1286
  }, {
1287
1287
  key: "getProjectFleetsWithHttpInfo",
1288
- value: function getProjectFleetsWithHttpInfo(projectUID) {
1288
+ value: function getProjectFleetsWithHttpInfo(projectOrProductUID) {
1289
1289
  var postBody = null;
1290
- // verify the required parameter 'projectUID' is set
1291
- if (projectUID === undefined || projectUID === null) {
1292
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectFleets");
1290
+ // verify the required parameter 'projectOrProductUID' is set
1291
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
1292
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectFleets");
1293
1293
  }
1294
1294
  var pathParams = {
1295
- 'projectUID': projectUID
1295
+ 'projectOrProductUID': projectOrProductUID
1296
1296
  };
1297
1297
  var queryParams = {};
1298
1298
  var headerParams = {};
@@ -1301,37 +1301,37 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1301
1301
  var contentTypes = [];
1302
1302
  var accepts = ['application/json'];
1303
1303
  var returnType = _GetProjectFleets200Response["default"];
1304
- return this.apiClient.callApi('/v1/projects/{projectUID}/fleets', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1304
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1305
1305
  }
1306
1306
 
1307
1307
  /**
1308
1308
  * Get Project Fleets
1309
- * @param {String} projectUID
1309
+ * @param {String} projectOrProductUID
1310
1310
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectFleets200Response}
1311
1311
  */
1312
1312
  }, {
1313
1313
  key: "getProjectFleets",
1314
- value: function getProjectFleets(projectUID) {
1315
- return this.getProjectFleetsWithHttpInfo(projectUID).then(function (response_and_data) {
1314
+ value: function getProjectFleets(projectOrProductUID) {
1315
+ return this.getProjectFleetsWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
1316
1316
  return response_and_data.data;
1317
1317
  });
1318
1318
  }
1319
1319
 
1320
1320
  /**
1321
1321
  * Get Project Members
1322
- * @param {String} projectUID
1322
+ * @param {String} projectOrProductUID
1323
1323
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectMembers200Response} and HTTP response
1324
1324
  */
1325
1325
  }, {
1326
1326
  key: "getProjectMembersWithHttpInfo",
1327
- value: function getProjectMembersWithHttpInfo(projectUID) {
1327
+ value: function getProjectMembersWithHttpInfo(projectOrProductUID) {
1328
1328
  var postBody = null;
1329
- // verify the required parameter 'projectUID' is set
1330
- if (projectUID === undefined || projectUID === null) {
1331
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectMembers");
1329
+ // verify the required parameter 'projectOrProductUID' is set
1330
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
1331
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectMembers");
1332
1332
  }
1333
1333
  var pathParams = {
1334
- 'projectUID': projectUID
1334
+ 'projectOrProductUID': projectOrProductUID
1335
1335
  };
1336
1336
  var queryParams = {};
1337
1337
  var headerParams = {};
@@ -1340,37 +1340,37 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1340
1340
  var contentTypes = [];
1341
1341
  var accepts = ['application/json'];
1342
1342
  var returnType = _GetProjectMembers200Response["default"];
1343
- return this.apiClient.callApi('/v1/projects/{projectUID}/members', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1343
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/members', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1344
1344
  }
1345
1345
 
1346
1346
  /**
1347
1347
  * Get Project Members
1348
- * @param {String} projectUID
1348
+ * @param {String} projectOrProductUID
1349
1349
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectMembers200Response}
1350
1350
  */
1351
1351
  }, {
1352
1352
  key: "getProjectMembers",
1353
- value: function getProjectMembers(projectUID) {
1354
- return this.getProjectMembersWithHttpInfo(projectUID).then(function (response_and_data) {
1353
+ value: function getProjectMembers(projectOrProductUID) {
1354
+ return this.getProjectMembersWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
1355
1355
  return response_and_data.data;
1356
1356
  });
1357
1357
  }
1358
1358
 
1359
1359
  /**
1360
1360
  * Get Products within a Project
1361
- * @param {String} projectUID
1361
+ * @param {String} projectOrProductUID
1362
1362
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectProducts200Response} and HTTP response
1363
1363
  */
1364
1364
  }, {
1365
1365
  key: "getProjectProductsWithHttpInfo",
1366
- value: function getProjectProductsWithHttpInfo(projectUID) {
1366
+ value: function getProjectProductsWithHttpInfo(projectOrProductUID) {
1367
1367
  var postBody = null;
1368
- // verify the required parameter 'projectUID' is set
1369
- if (projectUID === undefined || projectUID === null) {
1370
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectProducts");
1368
+ // verify the required parameter 'projectOrProductUID' is set
1369
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
1370
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectProducts");
1371
1371
  }
1372
1372
  var pathParams = {
1373
- 'projectUID': projectUID
1373
+ 'projectOrProductUID': projectOrProductUID
1374
1374
  };
1375
1375
  var queryParams = {};
1376
1376
  var headerParams = {};
@@ -1379,18 +1379,18 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1379
1379
  var contentTypes = [];
1380
1380
  var accepts = ['application/json'];
1381
1381
  var returnType = _GetProjectProducts200Response["default"];
1382
- return this.apiClient.callApi('/v1/projects/{projectUID}/products', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1382
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/products', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1383
1383
  }
1384
1384
 
1385
1385
  /**
1386
1386
  * Get Products within a Project
1387
- * @param {String} projectUID
1387
+ * @param {String} projectOrProductUID
1388
1388
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectProducts200Response}
1389
1389
  */
1390
1390
  }, {
1391
1391
  key: "getProjectProducts",
1392
- value: function getProjectProducts(projectUID) {
1393
- return this.getProjectProductsWithHttpInfo(projectUID).then(function (response_and_data) {
1392
+ value: function getProjectProducts(projectOrProductUID) {
1393
+ return this.getProjectProductsWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
1394
1394
  return response_and_data.data;
1395
1395
  });
1396
1396
  }
@@ -1428,18 +1428,18 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1428
1428
 
1429
1429
  /**
1430
1430
  * Add Device to Fleets
1431
- * @param {String} projectUID
1431
+ * @param {String} projectOrProductUID
1432
1432
  * @param {String} deviceUID
1433
1433
  * @param {module:model/PutDeviceFleetsRequest} putDeviceFleetsRequest The fleets to add to the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
1434
1434
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectFleets200Response} and HTTP response
1435
1435
  */
1436
1436
  }, {
1437
1437
  key: "putDeviceFleetsWithHttpInfo",
1438
- value: function putDeviceFleetsWithHttpInfo(projectUID, deviceUID, putDeviceFleetsRequest) {
1438
+ value: function putDeviceFleetsWithHttpInfo(projectOrProductUID, deviceUID, putDeviceFleetsRequest) {
1439
1439
  var postBody = putDeviceFleetsRequest;
1440
- // verify the required parameter 'projectUID' is set
1441
- if (projectUID === undefined || projectUID === null) {
1442
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling putDeviceFleets");
1440
+ // verify the required parameter 'projectOrProductUID' is set
1441
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
1442
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling putDeviceFleets");
1443
1443
  }
1444
1444
  // verify the required parameter 'deviceUID' is set
1445
1445
  if (deviceUID === undefined || deviceUID === null) {
@@ -1450,7 +1450,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1450
1450
  throw new _Error["default"]("Missing the required parameter 'putDeviceFleetsRequest' when calling putDeviceFleets");
1451
1451
  }
1452
1452
  var pathParams = {
1453
- 'projectUID': projectUID,
1453
+ 'projectOrProductUID': projectOrProductUID,
1454
1454
  'deviceUID': deviceUID
1455
1455
  };
1456
1456
  var queryParams = {};
@@ -1460,38 +1460,38 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1460
1460
  var contentTypes = ['application/json'];
1461
1461
  var accepts = ['application/json'];
1462
1462
  var returnType = _GetProjectFleets200Response["default"];
1463
- return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/fleets', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1463
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/fleets', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1464
1464
  }
1465
1465
 
1466
1466
  /**
1467
1467
  * Add Device to Fleets
1468
- * @param {String} projectUID
1468
+ * @param {String} projectOrProductUID
1469
1469
  * @param {String} deviceUID
1470
1470
  * @param {module:model/PutDeviceFleetsRequest} putDeviceFleetsRequest The fleets to add to the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
1471
1471
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectFleets200Response}
1472
1472
  */
1473
1473
  }, {
1474
1474
  key: "putDeviceFleets",
1475
- value: function putDeviceFleets(projectUID, deviceUID, putDeviceFleetsRequest) {
1476
- return this.putDeviceFleetsWithHttpInfo(projectUID, deviceUID, putDeviceFleetsRequest).then(function (response_and_data) {
1475
+ value: function putDeviceFleets(projectOrProductUID, deviceUID, putDeviceFleetsRequest) {
1476
+ return this.putDeviceFleetsWithHttpInfo(projectOrProductUID, deviceUID, putDeviceFleetsRequest).then(function (response_and_data) {
1477
1477
  return response_and_data.data;
1478
1478
  });
1479
1479
  }
1480
1480
 
1481
1481
  /**
1482
1482
  * Put environment variables of a fleet
1483
- * @param {String} projectUID
1483
+ * @param {String} projectOrProductUID
1484
1484
  * @param {String} fleetUID
1485
1485
  * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
1486
1486
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1487
1487
  */
1488
1488
  }, {
1489
1489
  key: "putFleetEnvironmentVariablesWithHttpInfo",
1490
- value: function putFleetEnvironmentVariablesWithHttpInfo(projectUID, fleetUID, environmentVariables) {
1490
+ value: function putFleetEnvironmentVariablesWithHttpInfo(projectOrProductUID, fleetUID, environmentVariables) {
1491
1491
  var postBody = environmentVariables;
1492
- // verify the required parameter 'projectUID' is set
1493
- if (projectUID === undefined || projectUID === null) {
1494
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling putFleetEnvironmentVariables");
1492
+ // verify the required parameter 'projectOrProductUID' is set
1493
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
1494
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling putFleetEnvironmentVariables");
1495
1495
  }
1496
1496
  // verify the required parameter 'fleetUID' is set
1497
1497
  if (fleetUID === undefined || fleetUID === null) {
@@ -1502,7 +1502,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1502
1502
  throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling putFleetEnvironmentVariables");
1503
1503
  }
1504
1504
  var pathParams = {
1505
- 'projectUID': projectUID,
1505
+ 'projectOrProductUID': projectOrProductUID,
1506
1506
  'fleetUID': fleetUID
1507
1507
  };
1508
1508
  var queryParams = {};
@@ -1512,42 +1512,42 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1512
1512
  var contentTypes = ['application/json'];
1513
1513
  var accepts = ['application/json'];
1514
1514
  var returnType = _EnvironmentVariables["default"];
1515
- return this.apiClient.callApi('/v1/projects/{projectUID}/fleets/{fleetUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1515
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1516
1516
  }
1517
1517
 
1518
1518
  /**
1519
1519
  * Put environment variables of a fleet
1520
- * @param {String} projectUID
1520
+ * @param {String} projectOrProductUID
1521
1521
  * @param {String} fleetUID
1522
1522
  * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
1523
1523
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1524
1524
  */
1525
1525
  }, {
1526
1526
  key: "putFleetEnvironmentVariables",
1527
- value: function putFleetEnvironmentVariables(projectUID, fleetUID, environmentVariables) {
1528
- return this.putFleetEnvironmentVariablesWithHttpInfo(projectUID, fleetUID, environmentVariables).then(function (response_and_data) {
1527
+ value: function putFleetEnvironmentVariables(projectOrProductUID, fleetUID, environmentVariables) {
1528
+ return this.putFleetEnvironmentVariablesWithHttpInfo(projectOrProductUID, fleetUID, environmentVariables).then(function (response_and_data) {
1529
1529
  return response_and_data.data;
1530
1530
  });
1531
1531
  }
1532
1532
 
1533
1533
  /**
1534
1534
  * Put environment variables of a project
1535
- * @param {String} projectUID
1535
+ * @param {String} projectOrProductUID
1536
1536
  * @param {Object} opts Optional parameters
1537
1537
  * @param {module:model/EnvironmentVariables} opts.environmentVariables
1538
1538
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1539
1539
  */
1540
1540
  }, {
1541
1541
  key: "putProjectEnvironmentVariablesWithHttpInfo",
1542
- value: function putProjectEnvironmentVariablesWithHttpInfo(projectUID, opts) {
1542
+ value: function putProjectEnvironmentVariablesWithHttpInfo(projectOrProductUID, opts) {
1543
1543
  opts = opts || {};
1544
1544
  var postBody = opts['environmentVariables'];
1545
- // verify the required parameter 'projectUID' is set
1546
- if (projectUID === undefined || projectUID === null) {
1547
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling putProjectEnvironmentVariables");
1545
+ // verify the required parameter 'projectOrProductUID' is set
1546
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
1547
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling putProjectEnvironmentVariables");
1548
1548
  }
1549
1549
  var pathParams = {
1550
- 'projectUID': projectUID
1550
+ 'projectOrProductUID': projectOrProductUID
1551
1551
  };
1552
1552
  var queryParams = {};
1553
1553
  var headerParams = {};
@@ -1556,44 +1556,44 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1556
1556
  var contentTypes = ['application/json'];
1557
1557
  var accepts = ['application/json'];
1558
1558
  var returnType = _EnvironmentVariables["default"];
1559
- return this.apiClient.callApi('/v1/projects/{projectUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1559
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1560
1560
  }
1561
1561
 
1562
1562
  /**
1563
1563
  * Put environment variables of a project
1564
- * @param {String} projectUID
1564
+ * @param {String} projectOrProductUID
1565
1565
  * @param {Object} opts Optional parameters
1566
1566
  * @param {module:model/EnvironmentVariables} opts.environmentVariables
1567
1567
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1568
1568
  */
1569
1569
  }, {
1570
1570
  key: "putProjectEnvironmentVariables",
1571
- value: function putProjectEnvironmentVariables(projectUID, opts) {
1572
- return this.putProjectEnvironmentVariablesWithHttpInfo(projectUID, opts).then(function (response_and_data) {
1571
+ value: function putProjectEnvironmentVariables(projectOrProductUID, opts) {
1572
+ return this.putProjectEnvironmentVariablesWithHttpInfo(projectOrProductUID, opts).then(function (response_and_data) {
1573
1573
  return response_and_data.data;
1574
1574
  });
1575
1575
  }
1576
1576
 
1577
1577
  /**
1578
1578
  * Set the project-level event JSONata transformation
1579
- * @param {String} projectUID
1579
+ * @param {String} projectOrProductUID
1580
1580
  * @param {Object.<String, Object>} body JSONata expression which will be applied to each event before it is persisted and routed
1581
1581
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1582
1582
  */
1583
1583
  }, {
1584
1584
  key: "setGlobalTransformationWithHttpInfo",
1585
- value: function setGlobalTransformationWithHttpInfo(projectUID, body) {
1585
+ value: function setGlobalTransformationWithHttpInfo(projectOrProductUID, body) {
1586
1586
  var postBody = body;
1587
- // verify the required parameter 'projectUID' is set
1588
- if (projectUID === undefined || projectUID === null) {
1589
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling setGlobalTransformation");
1587
+ // verify the required parameter 'projectOrProductUID' is set
1588
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
1589
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling setGlobalTransformation");
1590
1590
  }
1591
1591
  // verify the required parameter 'body' is set
1592
1592
  if (body === undefined || body === null) {
1593
1593
  throw new _Error["default"]("Missing the required parameter 'body' when calling setGlobalTransformation");
1594
1594
  }
1595
1595
  var pathParams = {
1596
- 'projectUID': projectUID
1596
+ 'projectOrProductUID': projectOrProductUID
1597
1597
  };
1598
1598
  var queryParams = {};
1599
1599
  var headerParams = {};
@@ -1602,37 +1602,37 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1602
1602
  var contentTypes = ['application/json'];
1603
1603
  var accepts = ['application/json'];
1604
1604
  var returnType = null;
1605
- return this.apiClient.callApi('/v1/projects/{projectUID}/global-transformation', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1605
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/global-transformation', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1606
1606
  }
1607
1607
 
1608
1608
  /**
1609
1609
  * Set the project-level event JSONata transformation
1610
- * @param {String} projectUID
1610
+ * @param {String} projectOrProductUID
1611
1611
  * @param {Object.<String, Object>} body JSONata expression which will be applied to each event before it is persisted and routed
1612
1612
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1613
1613
  */
1614
1614
  }, {
1615
1615
  key: "setGlobalTransformation",
1616
- value: function setGlobalTransformation(projectUID, body) {
1617
- return this.setGlobalTransformationWithHttpInfo(projectUID, body).then(function (response_and_data) {
1616
+ value: function setGlobalTransformation(projectOrProductUID, body) {
1617
+ return this.setGlobalTransformationWithHttpInfo(projectOrProductUID, body).then(function (response_and_data) {
1618
1618
  return response_and_data.data;
1619
1619
  });
1620
1620
  }
1621
1621
 
1622
1622
  /**
1623
1623
  * Update Fleet
1624
- * @param {String} projectUID
1624
+ * @param {String} projectOrProductUID
1625
1625
  * @param {String} fleetUID
1626
1626
  * @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
1627
1627
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
1628
1628
  */
1629
1629
  }, {
1630
1630
  key: "updateFleetWithHttpInfo",
1631
- value: function updateFleetWithHttpInfo(projectUID, fleetUID, updateFleetRequest) {
1631
+ value: function updateFleetWithHttpInfo(projectOrProductUID, fleetUID, updateFleetRequest) {
1632
1632
  var postBody = updateFleetRequest;
1633
- // verify the required parameter 'projectUID' is set
1634
- if (projectUID === undefined || projectUID === null) {
1635
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling updateFleet");
1633
+ // verify the required parameter 'projectOrProductUID' is set
1634
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
1635
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling updateFleet");
1636
1636
  }
1637
1637
  // verify the required parameter 'fleetUID' is set
1638
1638
  if (fleetUID === undefined || fleetUID === null) {
@@ -1643,7 +1643,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1643
1643
  throw new _Error["default"]("Missing the required parameter 'updateFleetRequest' when calling updateFleet");
1644
1644
  }
1645
1645
  var pathParams = {
1646
- 'projectUID': projectUID,
1646
+ 'projectOrProductUID': projectOrProductUID,
1647
1647
  'fleetUID': fleetUID
1648
1648
  };
1649
1649
  var queryParams = {};
@@ -1653,27 +1653,27 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1653
1653
  var contentTypes = ['application/json'];
1654
1654
  var accepts = ['application/json'];
1655
1655
  var returnType = _Fleet["default"];
1656
- return this.apiClient.callApi('/v1/projects/{projectUID}/fleets/{fleetUID}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1656
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1657
1657
  }
1658
1658
 
1659
1659
  /**
1660
1660
  * Update Fleet
1661
- * @param {String} projectUID
1661
+ * @param {String} projectOrProductUID
1662
1662
  * @param {String} fleetUID
1663
1663
  * @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
1664
1664
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
1665
1665
  */
1666
1666
  }, {
1667
1667
  key: "updateFleet",
1668
- value: function updateFleet(projectUID, fleetUID, updateFleetRequest) {
1669
- return this.updateFleetWithHttpInfo(projectUID, fleetUID, updateFleetRequest).then(function (response_and_data) {
1668
+ value: function updateFleet(projectOrProductUID, fleetUID, updateFleetRequest) {
1669
+ return this.updateFleetWithHttpInfo(projectOrProductUID, fleetUID, updateFleetRequest).then(function (response_and_data) {
1670
1670
  return response_and_data.data;
1671
1671
  });
1672
1672
  }
1673
1673
 
1674
1674
  /**
1675
1675
  * Upload firmware binary
1676
- * @param {String} projectUID
1676
+ * @param {String} projectOrProductUID
1677
1677
  * @param {module:model/String} firmwareType
1678
1678
  * @param {String} filename
1679
1679
  * @param {File} body contents of the firmware binary
@@ -1681,11 +1681,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1681
1681
  */
1682
1682
  }, {
1683
1683
  key: "uploadFirmwareWithHttpInfo",
1684
- value: function uploadFirmwareWithHttpInfo(projectUID, firmwareType, filename, body) {
1684
+ value: function uploadFirmwareWithHttpInfo(projectOrProductUID, firmwareType, filename, body) {
1685
1685
  var postBody = body;
1686
- // verify the required parameter 'projectUID' is set
1687
- if (projectUID === undefined || projectUID === null) {
1688
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling uploadFirmware");
1686
+ // verify the required parameter 'projectOrProductUID' is set
1687
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
1688
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling uploadFirmware");
1689
1689
  }
1690
1690
  // verify the required parameter 'firmwareType' is set
1691
1691
  if (firmwareType === undefined || firmwareType === null) {
@@ -1700,7 +1700,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1700
1700
  throw new _Error["default"]("Missing the required parameter 'body' when calling uploadFirmware");
1701
1701
  }
1702
1702
  var pathParams = {
1703
- 'projectUID': projectUID,
1703
+ 'projectOrProductUID': projectOrProductUID,
1704
1704
  'firmwareType': firmwareType,
1705
1705
  'filename': filename
1706
1706
  };
@@ -1711,12 +1711,12 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1711
1711
  var contentTypes = ['application/octet-stream'];
1712
1712
  var accepts = ['application/json'];
1713
1713
  var returnType = _FirmwareInfo["default"];
1714
- return this.apiClient.callApi('/v1/projects/{projectUID}/firmware/{firmwareType}/{filename}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1714
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/firmware/{firmwareType}/{filename}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1715
1715
  }
1716
1716
 
1717
1717
  /**
1718
1718
  * Upload firmware binary
1719
- * @param {String} projectUID
1719
+ * @param {String} projectOrProductUID
1720
1720
  * @param {module:model/String} firmwareType
1721
1721
  * @param {String} filename
1722
1722
  * @param {File} body contents of the firmware binary
@@ -1724,8 +1724,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1724
1724
  */
1725
1725
  }, {
1726
1726
  key: "uploadFirmware",
1727
- value: function uploadFirmware(projectUID, firmwareType, filename, body) {
1728
- return this.uploadFirmwareWithHttpInfo(projectUID, firmwareType, filename, body).then(function (response_and_data) {
1727
+ value: function uploadFirmware(projectOrProductUID, firmwareType, filename, body) {
1728
+ return this.uploadFirmwareWithHttpInfo(projectOrProductUID, firmwareType, filename, body).then(function (response_and_data) {
1729
1729
  return response_and_data.data;
1730
1730
  });
1731
1731
  }