@blues-inc/notehub-js 1.0.28-beta.9 → 1.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +207 -217
- package/dist/ApiClient.js +156 -156
- package/dist/api/AlertApi.js +22 -22
- package/dist/api/AuthorizationApi.js +16 -16
- package/dist/api/BillingAccountApi.js +14 -14
- package/dist/api/DeviceApi.js +351 -351
- package/dist/api/EventApi.js +118 -118
- package/dist/api/MonitorApi.js +52 -52
- package/dist/api/ProjectApi.js +339 -384
- package/dist/api/RepositoryApi.js +103 -103
- package/dist/api/RouteApi.js +74 -74
- package/dist/model/Alert.js +74 -76
- package/dist/model/AlertDataInner.js +35 -35
- package/dist/model/AlertNotificationsInner.js +18 -18
- package/dist/model/Aws.js +65 -65
- package/dist/model/Azure.js +43 -43
- package/dist/model/BillingAccount.js +21 -21
- package/dist/model/BillingAccountRole.js +9 -9
- package/dist/model/Body.js +5 -5
- package/dist/model/CloneProjectRequest.js +20 -20
- package/dist/model/Contact.js +22 -22
- package/dist/model/CreateFleetRequest.js +12 -12
- package/dist/model/CreateMonitor.js +125 -126
- package/dist/model/CreateProductRequest.js +22 -22
- package/dist/model/CreateProjectRequest.js +16 -16
- package/dist/model/CreateUpdateRepository.js +17 -17
- package/dist/model/CurrentFirmware.js +12 -12
- package/dist/model/DFUEnv.js +12 -12
- package/dist/model/DFUState.js +65 -65
- package/dist/model/DataField.js +7 -7
- package/dist/model/DataSet.js +29 -30
- package/dist/model/DataSetField.js +19 -19
- package/dist/model/DeleteDeviceFleetsRequest.js +8 -8
- package/dist/model/Device.js +94 -94
- package/dist/model/DeviceDfuHistory.js +19 -20
- package/dist/model/DeviceDfuHistoryPage.js +12 -13
- package/dist/model/DeviceDfuStateMachine.js +24 -25
- package/dist/model/DeviceDfuStateMachineNode.js +22 -22
- package/dist/model/DeviceDfuStatus.js +20 -20
- package/dist/model/DeviceDfuStatusCurrent.js +32 -32
- package/dist/model/DeviceDfuStatusPage.js +12 -13
- package/dist/model/DeviceSession.js +182 -182
- package/dist/model/DeviceTowerInfo.js +14 -14
- package/dist/model/DeviceUsage.js +32 -32
- package/dist/model/DfuActionRequest.js +7 -7
- package/dist/model/EmailNotification.js +7 -7
- package/dist/model/EnvironmentVariables.js +8 -8
- package/dist/model/Error.js +31 -31
- package/dist/model/Event.js +243 -243
- package/dist/model/Firmware.js +49 -49
- package/dist/model/FirmwareInfo.js +60 -60
- package/dist/model/Fleet.js +23 -23
- package/dist/model/GetAlerts200Response.js +14 -15
- package/dist/model/GetBillingAccounts200Response.js +9 -10
- package/dist/model/GetDeviceEnvironmentVariables200Response.js +12 -12
- package/dist/model/GetDeviceHealthLog200Response.js +11 -12
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
- package/dist/model/GetDeviceLatest200Response.js +9 -10
- package/dist/model/GetDevicePublicKey200Response.js +16 -16
- package/dist/model/GetDeviceSessions200Response.js +16 -17
- package/dist/model/GetProjectDevicePublicKeys200Response.js +16 -17
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
- package/dist/model/GetProjectDevices200Response.js +16 -17
- package/dist/model/GetProjectEvents200Response.js +20 -21
- package/dist/model/GetProjectEventsByCursor200Response.js +23 -24
- package/dist/model/GetProjectFleets200Response.js +11 -12
- package/dist/model/GetProjectMembers200Response.js +11 -12
- package/dist/model/GetProjectProducts200Response.js +9 -10
- package/dist/model/GetProjects200Response.js +9 -10
- package/dist/model/GetRouteLogsByRoute200ResponseInner.js +35 -35
- package/dist/model/Google.js +33 -33
- package/dist/model/HandleNoteChanges200Response.js +11 -11
- package/dist/model/HandleNoteGet200Response.js +13 -13
- package/dist/model/HandleNoteSignal200Response.js +5 -5
- package/dist/model/HandleNotefileChanges200Response.js +11 -11
- package/dist/model/HandleNotefileChangesPending200Response.js +14 -14
- package/dist/model/HandleNotefileDeleteRequest.js +7 -7
- package/dist/model/Http.js +35 -35
- package/dist/model/HttpFilter.js +19 -19
- package/dist/model/HttpTransform.js +20 -20
- package/dist/model/Location.js +40 -40
- package/dist/model/Login200Response.js +7 -7
- package/dist/model/LoginRequest.js +12 -12
- package/dist/model/Monitor.js +99 -100
- package/dist/model/MonitorAlertRoutesInner.js +10 -9
- package/dist/model/Mqtt.js +66 -66
- package/dist/model/Note.js +10 -10
- package/dist/model/NotehubRoute.js +36 -36
- package/dist/model/NotehubRouteSchema.js +46 -45
- package/dist/model/PostProvisionProjectDeviceRequest.js +18 -18
- package/dist/model/Product.js +26 -26
- package/dist/model/Project.js +34 -34
- package/dist/model/ProjectMember.js +22 -22
- package/dist/model/Proxy.js +24 -24
- package/dist/model/PutDeviceFleetsRequest.js +8 -8
- package/dist/model/QuestionDataResponseLineChart.js +39 -39
- package/dist/model/QuestionDataResponseMap.js +16 -16
- package/dist/model/Radresponder.js +25 -25
- package/dist/model/Repository.js +22 -22
- package/dist/model/Role.js +9 -9
- package/dist/model/Slack.js +53 -53
- package/dist/model/SlackBearerNotification.js +25 -25
- package/dist/model/SlackWebHookNotification.js +20 -20
- package/dist/model/Snowflake.js +45 -45
- package/dist/model/SnowflakeTransform.js +12 -12
- package/dist/model/Thingworx.js +33 -33
- package/dist/model/TowerLocation.js +52 -52
- package/dist/model/Twilio.js +43 -43
- package/dist/model/UpdateFleetRequest.js +22 -22
- package/dist/model/UploadMetadata.js +59 -59
- package/dist/model/UserDbRoute.js +25 -25
- package/dist/model/UserDfuStateMachine.js +20 -20
- package/dist/model/UserDfuStateMachineStatus.js +20 -20
- package/dist/model/UserFirmwareInfo.js +12 -12
- package/package.json +3 -3
package/dist/api/ProjectApi.js
CHANGED
|
@@ -35,7 +35,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
35
35
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
36
36
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
37
37
|
* Notehub API
|
|
38
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
38
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
39
39
|
*
|
|
40
40
|
* The version of the OpenAPI document: 1.2.0
|
|
41
41
|
* Contact: engineering@blues.io
|
|
@@ -46,75 +46,30 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
46
46
|
*
|
|
47
47
|
*/
|
|
48
48
|
/**
|
|
49
|
-
* Project service.
|
|
50
|
-
* @module api/ProjectApi
|
|
51
|
-
* @version 1.0.
|
|
52
|
-
*/
|
|
49
|
+
* Project service.
|
|
50
|
+
* @module api/ProjectApi
|
|
51
|
+
* @version 1.0.29
|
|
52
|
+
*/
|
|
53
53
|
var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
54
54
|
/**
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
55
|
+
* Constructs a new ProjectApi.
|
|
56
|
+
* @alias module:api/ProjectApi
|
|
57
|
+
* @class
|
|
58
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
59
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
60
|
+
*/
|
|
61
61
|
function ProjectApi(apiClient) {
|
|
62
62
|
_classCallCheck(this, ProjectApi);
|
|
63
63
|
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
68
|
-
* @param {String} projectUID
|
|
69
|
-
* @param {
|
|
70
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
67
|
+
* Clone a Project
|
|
68
|
+
* @param {String} projectUID The project UID to be cloned.
|
|
69
|
+
* @param {module:model/CloneProjectRequest} cloneProjectRequest Project to be cloned
|
|
70
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
71
71
|
*/
|
|
72
72
|
return _createClass(ProjectApi, [{
|
|
73
|
-
key: "bulkProvisionWithHttpInfo",
|
|
74
|
-
value: function bulkProvisionWithHttpInfo(projectUID, body) {
|
|
75
|
-
var postBody = body;
|
|
76
|
-
// verify the required parameter 'projectUID' is set
|
|
77
|
-
if (projectUID === undefined || projectUID === null) {
|
|
78
|
-
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling bulkProvision");
|
|
79
|
-
}
|
|
80
|
-
// verify the required parameter 'body' is set
|
|
81
|
-
if (body === undefined || body === null) {
|
|
82
|
-
throw new _Error["default"]("Missing the required parameter 'body' when calling bulkProvision");
|
|
83
|
-
}
|
|
84
|
-
var pathParams = {
|
|
85
|
-
'projectUID': projectUID
|
|
86
|
-
};
|
|
87
|
-
var queryParams = {};
|
|
88
|
-
var headerParams = {};
|
|
89
|
-
var formParams = {};
|
|
90
|
-
var authNames = [];
|
|
91
|
-
var contentTypes = ['text/csv'];
|
|
92
|
-
var accepts = [];
|
|
93
|
-
var returnType = null;
|
|
94
|
-
return this.apiClient.callApi('/v1/project/{projectUID}/bulk-provision', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* Bulk provision devices via CSV upload
|
|
99
|
-
* @param {String} projectUID
|
|
100
|
-
* @param {String} body
|
|
101
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
102
|
-
*/
|
|
103
|
-
}, {
|
|
104
|
-
key: "bulkProvision",
|
|
105
|
-
value: function bulkProvision(projectUID, body) {
|
|
106
|
-
return this.bulkProvisionWithHttpInfo(projectUID, body).then(function (response_and_data) {
|
|
107
|
-
return response_and_data.data;
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* Clone a Project
|
|
113
|
-
* @param {String} projectUID The project UID to be cloned.
|
|
114
|
-
* @param {module:model/CloneProjectRequest} cloneProjectRequest Project to be cloned
|
|
115
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
116
|
-
*/
|
|
117
|
-
}, {
|
|
118
73
|
key: "cloneProjectWithHttpInfo",
|
|
119
74
|
value: function cloneProjectWithHttpInfo(projectUID, cloneProjectRequest) {
|
|
120
75
|
var postBody = cloneProjectRequest;
|
|
@@ -127,16 +82,16 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
127
82
|
throw new _Error["default"]("Missing the required parameter 'cloneProjectRequest' when calling cloneProject");
|
|
128
83
|
}
|
|
129
84
|
var pathParams = {
|
|
130
|
-
|
|
85
|
+
projectUID: projectUID
|
|
131
86
|
};
|
|
132
87
|
var queryParams = {};
|
|
133
88
|
var headerParams = {};
|
|
134
89
|
var formParams = {};
|
|
135
|
-
var authNames = [
|
|
136
|
-
var contentTypes = [
|
|
137
|
-
var accepts = [
|
|
90
|
+
var authNames = ["api_key"];
|
|
91
|
+
var contentTypes = ["application/json"];
|
|
92
|
+
var accepts = ["application/json"];
|
|
138
93
|
var returnType = _Project["default"];
|
|
139
|
-
return this.apiClient.callApi(
|
|
94
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/clone", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
140
95
|
}
|
|
141
96
|
|
|
142
97
|
/**
|
|
@@ -155,7 +110,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
155
110
|
|
|
156
111
|
/**
|
|
157
112
|
* Create Fleet
|
|
158
|
-
* @param {String} projectUID
|
|
113
|
+
* @param {String} projectUID
|
|
159
114
|
* @param {module:model/CreateFleetRequest} createFleetRequest Fleet to be added
|
|
160
115
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
161
116
|
*/
|
|
@@ -172,21 +127,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
172
127
|
throw new _Error["default"]("Missing the required parameter 'createFleetRequest' when calling createFleet");
|
|
173
128
|
}
|
|
174
129
|
var pathParams = {
|
|
175
|
-
|
|
130
|
+
projectUID: projectUID
|
|
176
131
|
};
|
|
177
132
|
var queryParams = {};
|
|
178
133
|
var headerParams = {};
|
|
179
134
|
var formParams = {};
|
|
180
|
-
var authNames = [
|
|
181
|
-
var contentTypes = [
|
|
182
|
-
var accepts = [
|
|
135
|
+
var authNames = ["api_key"];
|
|
136
|
+
var contentTypes = ["application/json"];
|
|
137
|
+
var accepts = ["application/json"];
|
|
183
138
|
var returnType = _Fleet["default"];
|
|
184
|
-
return this.apiClient.callApi(
|
|
139
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/fleets", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
185
140
|
}
|
|
186
141
|
|
|
187
142
|
/**
|
|
188
143
|
* Create Fleet
|
|
189
|
-
* @param {String} projectUID
|
|
144
|
+
* @param {String} projectUID
|
|
190
145
|
* @param {module:model/CreateFleetRequest} createFleetRequest Fleet to be added
|
|
191
146
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
192
147
|
*/
|
|
@@ -200,7 +155,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
200
155
|
|
|
201
156
|
/**
|
|
202
157
|
* Create Product within a Project
|
|
203
|
-
* @param {String} projectUID
|
|
158
|
+
* @param {String} projectUID
|
|
204
159
|
* @param {module:model/CreateProductRequest} createProductRequest Product to be created
|
|
205
160
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Product} and HTTP response
|
|
206
161
|
*/
|
|
@@ -217,21 +172,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
217
172
|
throw new _Error["default"]("Missing the required parameter 'createProductRequest' when calling createProduct");
|
|
218
173
|
}
|
|
219
174
|
var pathParams = {
|
|
220
|
-
|
|
175
|
+
projectUID: projectUID
|
|
221
176
|
};
|
|
222
177
|
var queryParams = {};
|
|
223
178
|
var headerParams = {};
|
|
224
179
|
var formParams = {};
|
|
225
|
-
var authNames = [
|
|
226
|
-
var contentTypes = [
|
|
227
|
-
var accepts = [
|
|
180
|
+
var authNames = ["api_key"];
|
|
181
|
+
var contentTypes = ["application/json"];
|
|
182
|
+
var accepts = ["application/json"];
|
|
228
183
|
var returnType = _Product["default"];
|
|
229
|
-
return this.apiClient.callApi(
|
|
184
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/products", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
230
185
|
}
|
|
231
186
|
|
|
232
187
|
/**
|
|
233
188
|
* Create Product within a Project
|
|
234
|
-
* @param {String} projectUID
|
|
189
|
+
* @param {String} projectUID
|
|
235
190
|
* @param {module:model/CreateProductRequest} createProductRequest Product to be created
|
|
236
191
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Product}
|
|
237
192
|
*/
|
|
@@ -260,11 +215,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
260
215
|
var queryParams = {};
|
|
261
216
|
var headerParams = {};
|
|
262
217
|
var formParams = {};
|
|
263
|
-
var authNames = [
|
|
264
|
-
var contentTypes = [
|
|
265
|
-
var accepts = [
|
|
218
|
+
var authNames = ["api_key"];
|
|
219
|
+
var contentTypes = ["application/json"];
|
|
220
|
+
var accepts = ["application/json"];
|
|
266
221
|
var returnType = _Project["default"];
|
|
267
|
-
return this.apiClient.callApi(
|
|
222
|
+
return this.apiClient.callApi("/v1/projects", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
268
223
|
}
|
|
269
224
|
|
|
270
225
|
/**
|
|
@@ -282,9 +237,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
282
237
|
|
|
283
238
|
/**
|
|
284
239
|
* Remove Device from Fleets
|
|
285
|
-
* @param {String} projectUID
|
|
286
|
-
* @param {String} deviceUID
|
|
287
|
-
* @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.
|
|
240
|
+
* @param {String} projectUID
|
|
241
|
+
* @param {String} deviceUID
|
|
242
|
+
* @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.
|
|
288
243
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectFleets200Response} and HTTP response
|
|
289
244
|
*/
|
|
290
245
|
}, {
|
|
@@ -304,24 +259,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
304
259
|
throw new _Error["default"]("Missing the required parameter 'deleteDeviceFleetsRequest' when calling deleteDeviceFleets");
|
|
305
260
|
}
|
|
306
261
|
var pathParams = {
|
|
307
|
-
|
|
308
|
-
|
|
262
|
+
projectUID: projectUID,
|
|
263
|
+
deviceUID: deviceUID
|
|
309
264
|
};
|
|
310
265
|
var queryParams = {};
|
|
311
266
|
var headerParams = {};
|
|
312
267
|
var formParams = {};
|
|
313
|
-
var authNames = [
|
|
314
|
-
var contentTypes = [
|
|
315
|
-
var accepts = [
|
|
268
|
+
var authNames = ["api_key"];
|
|
269
|
+
var contentTypes = ["application/json"];
|
|
270
|
+
var accepts = ["application/json"];
|
|
316
271
|
var returnType = _GetProjectFleets200Response["default"];
|
|
317
|
-
return this.apiClient.callApi(
|
|
272
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/fleets", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
318
273
|
}
|
|
319
274
|
|
|
320
275
|
/**
|
|
321
276
|
* Remove Device from Fleets
|
|
322
|
-
* @param {String} projectUID
|
|
323
|
-
* @param {String} deviceUID
|
|
324
|
-
* @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.
|
|
277
|
+
* @param {String} projectUID
|
|
278
|
+
* @param {String} deviceUID
|
|
279
|
+
* @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.
|
|
325
280
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectFleets200Response}
|
|
326
281
|
*/
|
|
327
282
|
}, {
|
|
@@ -334,8 +289,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
334
289
|
|
|
335
290
|
/**
|
|
336
291
|
* Delete Fleet
|
|
337
|
-
* @param {String} projectUID
|
|
338
|
-
* @param {String} fleetUID
|
|
292
|
+
* @param {String} projectUID
|
|
293
|
+
* @param {String} fleetUID
|
|
339
294
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
340
295
|
*/
|
|
341
296
|
}, {
|
|
@@ -351,23 +306,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
351
306
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling deleteFleet");
|
|
352
307
|
}
|
|
353
308
|
var pathParams = {
|
|
354
|
-
|
|
355
|
-
|
|
309
|
+
projectUID: projectUID,
|
|
310
|
+
fleetUID: fleetUID
|
|
356
311
|
};
|
|
357
312
|
var queryParams = {};
|
|
358
313
|
var headerParams = {};
|
|
359
314
|
var formParams = {};
|
|
360
|
-
var authNames = [
|
|
315
|
+
var authNames = ["api_key"];
|
|
361
316
|
var contentTypes = [];
|
|
362
|
-
var accepts = [
|
|
317
|
+
var accepts = ["application/json"];
|
|
363
318
|
var returnType = null;
|
|
364
|
-
return this.apiClient.callApi(
|
|
319
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/fleets/{fleetUID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
365
320
|
}
|
|
366
321
|
|
|
367
322
|
/**
|
|
368
323
|
* Delete Fleet
|
|
369
|
-
* @param {String} projectUID
|
|
370
|
-
* @param {String} fleetUID
|
|
324
|
+
* @param {String} projectUID
|
|
325
|
+
* @param {String} fleetUID
|
|
371
326
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
372
327
|
*/
|
|
373
328
|
}, {
|
|
@@ -380,8 +335,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
380
335
|
|
|
381
336
|
/**
|
|
382
337
|
* Delete environment variables of a fleet
|
|
383
|
-
* @param {String} projectUID
|
|
384
|
-
* @param {String} fleetUID
|
|
338
|
+
* @param {String} projectUID
|
|
339
|
+
* @param {String} fleetUID
|
|
385
340
|
* @param {String} key The environment variable key to delete.
|
|
386
341
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
387
342
|
*/
|
|
@@ -402,24 +357,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
402
357
|
throw new _Error["default"]("Missing the required parameter 'key' when calling deleteFleetEnvironmentVariable");
|
|
403
358
|
}
|
|
404
359
|
var pathParams = {
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
360
|
+
projectUID: projectUID,
|
|
361
|
+
fleetUID: fleetUID,
|
|
362
|
+
key: key
|
|
408
363
|
};
|
|
409
364
|
var queryParams = {};
|
|
410
365
|
var headerParams = {};
|
|
411
366
|
var formParams = {};
|
|
412
|
-
var authNames = [
|
|
367
|
+
var authNames = ["api_key"];
|
|
413
368
|
var contentTypes = [];
|
|
414
|
-
var accepts = [
|
|
369
|
+
var accepts = ["application/json"];
|
|
415
370
|
var returnType = _EnvironmentVariables["default"];
|
|
416
|
-
return this.apiClient.callApi(
|
|
371
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/fleets/{fleetUID}/environment_variables/{key}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
417
372
|
}
|
|
418
373
|
|
|
419
374
|
/**
|
|
420
375
|
* Delete environment variables of a fleet
|
|
421
|
-
* @param {String} projectUID
|
|
422
|
-
* @param {String} fleetUID
|
|
376
|
+
* @param {String} projectUID
|
|
377
|
+
* @param {String} fleetUID
|
|
423
378
|
* @param {String} key The environment variable key to delete.
|
|
424
379
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
425
380
|
*/
|
|
@@ -433,7 +388,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
433
388
|
|
|
434
389
|
/**
|
|
435
390
|
* Delete a Project by ProjectUID
|
|
436
|
-
* @param {String} projectUID
|
|
391
|
+
* @param {String} projectUID
|
|
437
392
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
438
393
|
*/
|
|
439
394
|
}, {
|
|
@@ -445,21 +400,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
445
400
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling deleteProject");
|
|
446
401
|
}
|
|
447
402
|
var pathParams = {
|
|
448
|
-
|
|
403
|
+
projectUID: projectUID
|
|
449
404
|
};
|
|
450
405
|
var queryParams = {};
|
|
451
406
|
var headerParams = {};
|
|
452
407
|
var formParams = {};
|
|
453
|
-
var authNames = [
|
|
408
|
+
var authNames = ["api_key"];
|
|
454
409
|
var contentTypes = [];
|
|
455
|
-
var accepts = [
|
|
410
|
+
var accepts = ["application/json"];
|
|
456
411
|
var returnType = null;
|
|
457
|
-
return this.apiClient.callApi(
|
|
412
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
458
413
|
}
|
|
459
414
|
|
|
460
415
|
/**
|
|
461
416
|
* Delete a Project by ProjectUID
|
|
462
|
-
* @param {String} projectUID
|
|
417
|
+
* @param {String} projectUID
|
|
463
418
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
464
419
|
*/
|
|
465
420
|
}, {
|
|
@@ -472,7 +427,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
472
427
|
|
|
473
428
|
/**
|
|
474
429
|
* Delete an environment variable of a project by key
|
|
475
|
-
* @param {String} projectUID
|
|
430
|
+
* @param {String} projectUID
|
|
476
431
|
* @param {String} key The environment variable key to delete.
|
|
477
432
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
478
433
|
*/
|
|
@@ -489,22 +444,22 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
489
444
|
throw new _Error["default"]("Missing the required parameter 'key' when calling deleteProjectEnvironmentVariable");
|
|
490
445
|
}
|
|
491
446
|
var pathParams = {
|
|
492
|
-
|
|
493
|
-
|
|
447
|
+
projectUID: projectUID,
|
|
448
|
+
key: key
|
|
494
449
|
};
|
|
495
450
|
var queryParams = {};
|
|
496
451
|
var headerParams = {};
|
|
497
452
|
var formParams = {};
|
|
498
|
-
var authNames = [
|
|
453
|
+
var authNames = ["api_key"];
|
|
499
454
|
var contentTypes = [];
|
|
500
|
-
var accepts = [
|
|
455
|
+
var accepts = ["application/json"];
|
|
501
456
|
var returnType = _EnvironmentVariables["default"];
|
|
502
|
-
return this.apiClient.callApi(
|
|
457
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/environment_variables/{key}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
503
458
|
}
|
|
504
459
|
|
|
505
460
|
/**
|
|
506
461
|
* Delete an environment variable of a project by key
|
|
507
|
-
* @param {String} projectUID
|
|
462
|
+
* @param {String} projectUID
|
|
508
463
|
* @param {String} key The environment variable key to delete.
|
|
509
464
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
510
465
|
*/
|
|
@@ -518,18 +473,18 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
518
473
|
|
|
519
474
|
/**
|
|
520
475
|
* Update/cancel host or notecard firmware updates
|
|
521
|
-
* @param {String} projectUID
|
|
522
|
-
* @param {module:model/String} firmwareType
|
|
523
|
-
* @param {module:model/String} action
|
|
476
|
+
* @param {String} projectUID
|
|
477
|
+
* @param {module:model/String} firmwareType
|
|
478
|
+
* @param {module:model/String} action
|
|
524
479
|
* @param {Object} opts Optional parameters
|
|
525
480
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
526
481
|
* @param {Array.<String>} opts.tag Tag filter
|
|
527
482
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
528
|
-
* @param {String} opts.fleetUID
|
|
483
|
+
* @param {String} opts.fleetUID
|
|
529
484
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
530
485
|
* @param {Array.<String>} opts.location Location filter
|
|
531
486
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
532
|
-
* @param {Array.<String>} opts.productUID
|
|
487
|
+
* @param {Array.<String>} opts.productUID
|
|
533
488
|
* @param {Array.<String>} opts.sku SKU filter
|
|
534
489
|
* @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
|
|
535
490
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
@@ -538,7 +493,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
538
493
|
key: "dfuActionWithHttpInfo",
|
|
539
494
|
value: function dfuActionWithHttpInfo(projectUID, firmwareType, action, opts) {
|
|
540
495
|
opts = opts || {};
|
|
541
|
-
var postBody = opts[
|
|
496
|
+
var postBody = opts["dfuActionRequest"];
|
|
542
497
|
// verify the required parameter 'projectUID' is set
|
|
543
498
|
if (projectUID === undefined || projectUID === null) {
|
|
544
499
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling dfuAction");
|
|
@@ -552,44 +507,44 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
552
507
|
throw new _Error["default"]("Missing the required parameter 'action' when calling dfuAction");
|
|
553
508
|
}
|
|
554
509
|
var pathParams = {
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
510
|
+
projectUID: projectUID,
|
|
511
|
+
firmwareType: firmwareType,
|
|
512
|
+
action: action
|
|
558
513
|
};
|
|
559
514
|
var queryParams = {
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
515
|
+
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
516
|
+
tag: this.apiClient.buildCollectionParam(opts["tag"], "multi"),
|
|
517
|
+
serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
|
|
518
|
+
fleetUID: opts["fleetUID"],
|
|
519
|
+
notecardFirmware: this.apiClient.buildCollectionParam(opts["notecardFirmware"], "multi"),
|
|
520
|
+
location: this.apiClient.buildCollectionParam(opts["location"], "multi"),
|
|
521
|
+
hostFirmware: this.apiClient.buildCollectionParam(opts["hostFirmware"], "multi"),
|
|
522
|
+
productUID: this.apiClient.buildCollectionParam(opts["productUID"], "multi"),
|
|
523
|
+
sku: this.apiClient.buildCollectionParam(opts["sku"], "multi")
|
|
569
524
|
};
|
|
570
525
|
var headerParams = {};
|
|
571
526
|
var formParams = {};
|
|
572
|
-
var authNames = [
|
|
573
|
-
var contentTypes = [
|
|
574
|
-
var accepts = [
|
|
527
|
+
var authNames = ["api_key"];
|
|
528
|
+
var contentTypes = ["application/json"];
|
|
529
|
+
var accepts = ["application/json"];
|
|
575
530
|
var returnType = null;
|
|
576
|
-
return this.apiClient.callApi(
|
|
531
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/dfu/{firmwareType}/{action}", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
577
532
|
}
|
|
578
533
|
|
|
579
534
|
/**
|
|
580
535
|
* Update/cancel host or notecard firmware updates
|
|
581
|
-
* @param {String} projectUID
|
|
582
|
-
* @param {module:model/String} firmwareType
|
|
583
|
-
* @param {module:model/String} action
|
|
536
|
+
* @param {String} projectUID
|
|
537
|
+
* @param {module:model/String} firmwareType
|
|
538
|
+
* @param {module:model/String} action
|
|
584
539
|
* @param {Object} opts Optional parameters
|
|
585
540
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
586
541
|
* @param {Array.<String>} opts.tag Tag filter
|
|
587
542
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
588
|
-
* @param {String} opts.fleetUID
|
|
543
|
+
* @param {String} opts.fleetUID
|
|
589
544
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
590
545
|
* @param {Array.<String>} opts.location Location filter
|
|
591
546
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
592
|
-
* @param {Array.<String>} opts.productUID
|
|
547
|
+
* @param {Array.<String>} opts.productUID
|
|
593
548
|
* @param {Array.<String>} opts.sku SKU filter
|
|
594
549
|
* @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
|
|
595
550
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
@@ -604,7 +559,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
604
559
|
|
|
605
560
|
/**
|
|
606
561
|
* Disable the project-level event JSONata transformation
|
|
607
|
-
* @param {String} projectUID
|
|
562
|
+
* @param {String} projectUID
|
|
608
563
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
609
564
|
*/
|
|
610
565
|
}, {
|
|
@@ -616,21 +571,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
616
571
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling disableGlobalTransformation");
|
|
617
572
|
}
|
|
618
573
|
var pathParams = {
|
|
619
|
-
|
|
574
|
+
projectUID: projectUID
|
|
620
575
|
};
|
|
621
576
|
var queryParams = {};
|
|
622
577
|
var headerParams = {};
|
|
623
578
|
var formParams = {};
|
|
624
|
-
var authNames = [
|
|
579
|
+
var authNames = ["api_key"];
|
|
625
580
|
var contentTypes = [];
|
|
626
|
-
var accepts = [
|
|
581
|
+
var accepts = ["application/json"];
|
|
627
582
|
var returnType = null;
|
|
628
|
-
return this.apiClient.callApi(
|
|
583
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/global-transformation/disable", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
629
584
|
}
|
|
630
585
|
|
|
631
586
|
/**
|
|
632
587
|
* Disable the project-level event JSONata transformation
|
|
633
|
-
* @param {String} projectUID
|
|
588
|
+
* @param {String} projectUID
|
|
634
589
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
635
590
|
*/
|
|
636
591
|
}, {
|
|
@@ -643,7 +598,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
643
598
|
|
|
644
599
|
/**
|
|
645
600
|
* Enable the project-level event JSONata transformation
|
|
646
|
-
* @param {String} projectUID
|
|
601
|
+
* @param {String} projectUID
|
|
647
602
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
648
603
|
*/
|
|
649
604
|
}, {
|
|
@@ -655,21 +610,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
655
610
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling enableGlobalTransformation");
|
|
656
611
|
}
|
|
657
612
|
var pathParams = {
|
|
658
|
-
|
|
613
|
+
projectUID: projectUID
|
|
659
614
|
};
|
|
660
615
|
var queryParams = {};
|
|
661
616
|
var headerParams = {};
|
|
662
617
|
var formParams = {};
|
|
663
|
-
var authNames = [
|
|
618
|
+
var authNames = ["api_key"];
|
|
664
619
|
var contentTypes = [];
|
|
665
|
-
var accepts = [
|
|
620
|
+
var accepts = ["application/json"];
|
|
666
621
|
var returnType = null;
|
|
667
|
-
return this.apiClient.callApi(
|
|
622
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/global-transformation/enable", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
668
623
|
}
|
|
669
624
|
|
|
670
625
|
/**
|
|
671
626
|
* Enable the project-level event JSONata transformation
|
|
672
|
-
* @param {String} projectUID
|
|
627
|
+
* @param {String} projectUID
|
|
673
628
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
674
629
|
*/
|
|
675
630
|
}, {
|
|
@@ -682,9 +637,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
682
637
|
|
|
683
638
|
/**
|
|
684
639
|
* Get device DFU history for host or Notecard firmware
|
|
685
|
-
* @param {String} projectUID
|
|
686
|
-
* @param {String} deviceUID
|
|
687
|
-
* @param {module:model/String} firmwareType
|
|
640
|
+
* @param {String} projectUID
|
|
641
|
+
* @param {String} deviceUID
|
|
642
|
+
* @param {module:model/String} firmwareType
|
|
688
643
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuHistory} and HTTP response
|
|
689
644
|
*/
|
|
690
645
|
}, {
|
|
@@ -704,25 +659,25 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
704
659
|
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDeviceDfuHistory");
|
|
705
660
|
}
|
|
706
661
|
var pathParams = {
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
662
|
+
projectUID: projectUID,
|
|
663
|
+
deviceUID: deviceUID,
|
|
664
|
+
firmwareType: firmwareType
|
|
710
665
|
};
|
|
711
666
|
var queryParams = {};
|
|
712
667
|
var headerParams = {};
|
|
713
668
|
var formParams = {};
|
|
714
|
-
var authNames = [
|
|
669
|
+
var authNames = ["api_key"];
|
|
715
670
|
var contentTypes = [];
|
|
716
|
-
var accepts = [
|
|
671
|
+
var accepts = ["application/json"];
|
|
717
672
|
var returnType = _DeviceDfuHistory["default"];
|
|
718
|
-
return this.apiClient.callApi(
|
|
673
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/dfu/{firmwareType}/history", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
719
674
|
}
|
|
720
675
|
|
|
721
676
|
/**
|
|
722
677
|
* Get device DFU history for host or Notecard firmware
|
|
723
|
-
* @param {String} projectUID
|
|
724
|
-
* @param {String} deviceUID
|
|
725
|
-
* @param {module:model/String} firmwareType
|
|
678
|
+
* @param {String} projectUID
|
|
679
|
+
* @param {String} deviceUID
|
|
680
|
+
* @param {module:model/String} firmwareType
|
|
726
681
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuHistory}
|
|
727
682
|
*/
|
|
728
683
|
}, {
|
|
@@ -735,9 +690,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
735
690
|
|
|
736
691
|
/**
|
|
737
692
|
* Get device DFU history for host or Notecard firmware
|
|
738
|
-
* @param {String} projectUID
|
|
739
|
-
* @param {String} deviceUID
|
|
740
|
-
* @param {module:model/String} firmwareType
|
|
693
|
+
* @param {String} projectUID
|
|
694
|
+
* @param {String} deviceUID
|
|
695
|
+
* @param {module:model/String} firmwareType
|
|
741
696
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuStatus} and HTTP response
|
|
742
697
|
*/
|
|
743
698
|
}, {
|
|
@@ -757,25 +712,25 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
757
712
|
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDeviceDfuStatus");
|
|
758
713
|
}
|
|
759
714
|
var pathParams = {
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
715
|
+
projectUID: projectUID,
|
|
716
|
+
deviceUID: deviceUID,
|
|
717
|
+
firmwareType: firmwareType
|
|
763
718
|
};
|
|
764
719
|
var queryParams = {};
|
|
765
720
|
var headerParams = {};
|
|
766
721
|
var formParams = {};
|
|
767
|
-
var authNames = [
|
|
722
|
+
var authNames = ["api_key"];
|
|
768
723
|
var contentTypes = [];
|
|
769
|
-
var accepts = [
|
|
724
|
+
var accepts = ["application/json"];
|
|
770
725
|
var returnType = _DeviceDfuStatus["default"];
|
|
771
|
-
return this.apiClient.callApi(
|
|
726
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/dfu/{firmwareType}/status", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
772
727
|
}
|
|
773
728
|
|
|
774
729
|
/**
|
|
775
730
|
* Get device DFU history for host or Notecard firmware
|
|
776
|
-
* @param {String} projectUID
|
|
777
|
-
* @param {String} deviceUID
|
|
778
|
-
* @param {module:model/String} firmwareType
|
|
731
|
+
* @param {String} projectUID
|
|
732
|
+
* @param {String} deviceUID
|
|
733
|
+
* @param {module:model/String} firmwareType
|
|
779
734
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuStatus}
|
|
780
735
|
*/
|
|
781
736
|
}, {
|
|
@@ -788,8 +743,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
788
743
|
|
|
789
744
|
/**
|
|
790
745
|
* Get Device Fleets
|
|
791
|
-
* @param {String} projectUID
|
|
792
|
-
* @param {String} deviceUID
|
|
746
|
+
* @param {String} projectUID
|
|
747
|
+
* @param {String} deviceUID
|
|
793
748
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectFleets200Response} and HTTP response
|
|
794
749
|
*/
|
|
795
750
|
}, {
|
|
@@ -805,23 +760,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
805
760
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceFleets");
|
|
806
761
|
}
|
|
807
762
|
var pathParams = {
|
|
808
|
-
|
|
809
|
-
|
|
763
|
+
projectUID: projectUID,
|
|
764
|
+
deviceUID: deviceUID
|
|
810
765
|
};
|
|
811
766
|
var queryParams = {};
|
|
812
767
|
var headerParams = {};
|
|
813
768
|
var formParams = {};
|
|
814
|
-
var authNames = [
|
|
769
|
+
var authNames = ["api_key"];
|
|
815
770
|
var contentTypes = [];
|
|
816
|
-
var accepts = [
|
|
771
|
+
var accepts = ["application/json"];
|
|
817
772
|
var returnType = _GetProjectFleets200Response["default"];
|
|
818
|
-
return this.apiClient.callApi(
|
|
773
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/fleets", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
819
774
|
}
|
|
820
775
|
|
|
821
776
|
/**
|
|
822
777
|
* Get Device Fleets
|
|
823
|
-
* @param {String} projectUID
|
|
824
|
-
* @param {String} deviceUID
|
|
778
|
+
* @param {String} projectUID
|
|
779
|
+
* @param {String} deviceUID
|
|
825
780
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectFleets200Response}
|
|
826
781
|
*/
|
|
827
782
|
}, {
|
|
@@ -834,8 +789,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
834
789
|
|
|
835
790
|
/**
|
|
836
791
|
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
837
|
-
* @param {String} projectUID
|
|
838
|
-
* @param {module:model/String} firmwareType
|
|
792
|
+
* @param {String} projectUID
|
|
793
|
+
* @param {module:model/String} firmwareType
|
|
839
794
|
* @param {Object} opts Optional parameters
|
|
840
795
|
* @param {Number} opts.pageSize (default to 50)
|
|
841
796
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -844,11 +799,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
844
799
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
845
800
|
* @param {Array.<String>} opts.tag Tag filter
|
|
846
801
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
847
|
-
* @param {String} opts.fleetUID
|
|
802
|
+
* @param {String} opts.fleetUID
|
|
848
803
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
849
804
|
* @param {Array.<String>} opts.location Location filter
|
|
850
805
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
851
|
-
* @param {Array.<String>} opts.productUID
|
|
806
|
+
* @param {Array.<String>} opts.productUID
|
|
852
807
|
* @param {Array.<String>} opts.sku SKU filter
|
|
853
808
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuHistoryPage} and HTTP response
|
|
854
809
|
*/
|
|
@@ -866,37 +821,37 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
866
821
|
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDevicesDfuHistory");
|
|
867
822
|
}
|
|
868
823
|
var pathParams = {
|
|
869
|
-
|
|
870
|
-
|
|
824
|
+
projectUID: projectUID,
|
|
825
|
+
firmwareType: firmwareType
|
|
871
826
|
};
|
|
872
827
|
var queryParams = {
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
828
|
+
pageSize: opts["pageSize"],
|
|
829
|
+
pageNum: opts["pageNum"],
|
|
830
|
+
sortBy: opts["sortBy"],
|
|
831
|
+
sortOrder: opts["sortOrder"],
|
|
832
|
+
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
833
|
+
tag: this.apiClient.buildCollectionParam(opts["tag"], "multi"),
|
|
834
|
+
serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
|
|
835
|
+
fleetUID: opts["fleetUID"],
|
|
836
|
+
notecardFirmware: this.apiClient.buildCollectionParam(opts["notecardFirmware"], "multi"),
|
|
837
|
+
location: this.apiClient.buildCollectionParam(opts["location"], "multi"),
|
|
838
|
+
hostFirmware: this.apiClient.buildCollectionParam(opts["hostFirmware"], "multi"),
|
|
839
|
+
productUID: this.apiClient.buildCollectionParam(opts["productUID"], "multi"),
|
|
840
|
+
sku: this.apiClient.buildCollectionParam(opts["sku"], "multi")
|
|
886
841
|
};
|
|
887
842
|
var headerParams = {};
|
|
888
843
|
var formParams = {};
|
|
889
|
-
var authNames = [
|
|
844
|
+
var authNames = ["api_key"];
|
|
890
845
|
var contentTypes = [];
|
|
891
|
-
var accepts = [
|
|
846
|
+
var accepts = ["application/json"];
|
|
892
847
|
var returnType = _DeviceDfuHistoryPage["default"];
|
|
893
|
-
return this.apiClient.callApi(
|
|
848
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/dfu/{firmwareType}/history", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
894
849
|
}
|
|
895
850
|
|
|
896
851
|
/**
|
|
897
852
|
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
898
|
-
* @param {String} projectUID
|
|
899
|
-
* @param {module:model/String} firmwareType
|
|
853
|
+
* @param {String} projectUID
|
|
854
|
+
* @param {module:model/String} firmwareType
|
|
900
855
|
* @param {Object} opts Optional parameters
|
|
901
856
|
* @param {Number} opts.pageSize (default to 50)
|
|
902
857
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -905,11 +860,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
905
860
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
906
861
|
* @param {Array.<String>} opts.tag Tag filter
|
|
907
862
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
908
|
-
* @param {String} opts.fleetUID
|
|
863
|
+
* @param {String} opts.fleetUID
|
|
909
864
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
910
865
|
* @param {Array.<String>} opts.location Location filter
|
|
911
866
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
912
|
-
* @param {Array.<String>} opts.productUID
|
|
867
|
+
* @param {Array.<String>} opts.productUID
|
|
913
868
|
* @param {Array.<String>} opts.sku SKU filter
|
|
914
869
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuHistoryPage}
|
|
915
870
|
*/
|
|
@@ -923,8 +878,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
923
878
|
|
|
924
879
|
/**
|
|
925
880
|
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
926
|
-
* @param {String} projectUID
|
|
927
|
-
* @param {module:model/String} firmwareType
|
|
881
|
+
* @param {String} projectUID
|
|
882
|
+
* @param {module:model/String} firmwareType
|
|
928
883
|
* @param {Object} opts Optional parameters
|
|
929
884
|
* @param {Number} opts.pageSize (default to 50)
|
|
930
885
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -933,11 +888,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
933
888
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
934
889
|
* @param {Array.<String>} opts.tag Tag filter
|
|
935
890
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
936
|
-
* @param {String} opts.fleetUID
|
|
891
|
+
* @param {String} opts.fleetUID
|
|
937
892
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
938
893
|
* @param {Array.<String>} opts.location Location filter
|
|
939
894
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
940
|
-
* @param {Array.<String>} opts.productUID
|
|
895
|
+
* @param {Array.<String>} opts.productUID
|
|
941
896
|
* @param {Array.<String>} opts.sku SKU filter
|
|
942
897
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuStatusPage} and HTTP response
|
|
943
898
|
*/
|
|
@@ -955,37 +910,37 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
955
910
|
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDevicesDfuStatus");
|
|
956
911
|
}
|
|
957
912
|
var pathParams = {
|
|
958
|
-
|
|
959
|
-
|
|
913
|
+
projectUID: projectUID,
|
|
914
|
+
firmwareType: firmwareType
|
|
960
915
|
};
|
|
961
916
|
var queryParams = {
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
917
|
+
pageSize: opts["pageSize"],
|
|
918
|
+
pageNum: opts["pageNum"],
|
|
919
|
+
sortBy: opts["sortBy"],
|
|
920
|
+
sortOrder: opts["sortOrder"],
|
|
921
|
+
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
922
|
+
tag: this.apiClient.buildCollectionParam(opts["tag"], "multi"),
|
|
923
|
+
serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
|
|
924
|
+
fleetUID: opts["fleetUID"],
|
|
925
|
+
notecardFirmware: this.apiClient.buildCollectionParam(opts["notecardFirmware"], "multi"),
|
|
926
|
+
location: this.apiClient.buildCollectionParam(opts["location"], "multi"),
|
|
927
|
+
hostFirmware: this.apiClient.buildCollectionParam(opts["hostFirmware"], "multi"),
|
|
928
|
+
productUID: this.apiClient.buildCollectionParam(opts["productUID"], "multi"),
|
|
929
|
+
sku: this.apiClient.buildCollectionParam(opts["sku"], "multi")
|
|
975
930
|
};
|
|
976
931
|
var headerParams = {};
|
|
977
932
|
var formParams = {};
|
|
978
|
-
var authNames = [
|
|
933
|
+
var authNames = ["api_key"];
|
|
979
934
|
var contentTypes = [];
|
|
980
|
-
var accepts = [
|
|
935
|
+
var accepts = ["application/json"];
|
|
981
936
|
var returnType = _DeviceDfuStatusPage["default"];
|
|
982
|
-
return this.apiClient.callApi(
|
|
937
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/dfu/{firmwareType}/status", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
983
938
|
}
|
|
984
939
|
|
|
985
940
|
/**
|
|
986
941
|
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
987
|
-
* @param {String} projectUID
|
|
988
|
-
* @param {module:model/String} firmwareType
|
|
942
|
+
* @param {String} projectUID
|
|
943
|
+
* @param {module:model/String} firmwareType
|
|
989
944
|
* @param {Object} opts Optional parameters
|
|
990
945
|
* @param {Number} opts.pageSize (default to 50)
|
|
991
946
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -994,11 +949,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
994
949
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
995
950
|
* @param {Array.<String>} opts.tag Tag filter
|
|
996
951
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
997
|
-
* @param {String} opts.fleetUID
|
|
952
|
+
* @param {String} opts.fleetUID
|
|
998
953
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
999
954
|
* @param {Array.<String>} opts.location Location filter
|
|
1000
955
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1001
|
-
* @param {Array.<String>} opts.productUID
|
|
956
|
+
* @param {Array.<String>} opts.productUID
|
|
1002
957
|
* @param {Array.<String>} opts.sku SKU filter
|
|
1003
958
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuStatusPage}
|
|
1004
959
|
*/
|
|
@@ -1012,15 +967,15 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1012
967
|
|
|
1013
968
|
/**
|
|
1014
969
|
* Get Available Firmware Information
|
|
1015
|
-
* @param {String} projectUID
|
|
970
|
+
* @param {String} projectUID
|
|
1016
971
|
* @param {Object} opts Optional parameters
|
|
1017
|
-
* @param {String} opts.product
|
|
1018
|
-
* @param {String} opts.firmwareType
|
|
1019
|
-
* @param {String} opts.version
|
|
1020
|
-
* @param {String} opts.target
|
|
1021
|
-
* @param {String} opts.filename
|
|
1022
|
-
* @param {String} opts.md5
|
|
1023
|
-
* @param {Boolean} opts.unpublished
|
|
972
|
+
* @param {String} opts.product
|
|
973
|
+
* @param {String} opts.firmwareType
|
|
974
|
+
* @param {String} opts.version
|
|
975
|
+
* @param {String} opts.target
|
|
976
|
+
* @param {String} opts.filename
|
|
977
|
+
* @param {String} opts.md5
|
|
978
|
+
* @param {Boolean} opts.unpublished
|
|
1024
979
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/FirmwareInfo>} and HTTP response
|
|
1025
980
|
*/
|
|
1026
981
|
}, {
|
|
@@ -1033,37 +988,37 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1033
988
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getFirmwareInfo");
|
|
1034
989
|
}
|
|
1035
990
|
var pathParams = {
|
|
1036
|
-
|
|
991
|
+
projectUID: projectUID
|
|
1037
992
|
};
|
|
1038
993
|
var queryParams = {
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
994
|
+
product: opts["product"],
|
|
995
|
+
firmwareType: opts["firmwareType"],
|
|
996
|
+
version: opts["version"],
|
|
997
|
+
target: opts["target"],
|
|
998
|
+
filename: opts["filename"],
|
|
999
|
+
md5: opts["md5"],
|
|
1000
|
+
unpublished: opts["unpublished"]
|
|
1046
1001
|
};
|
|
1047
1002
|
var headerParams = {};
|
|
1048
1003
|
var formParams = {};
|
|
1049
|
-
var authNames = [
|
|
1004
|
+
var authNames = ["api_key"];
|
|
1050
1005
|
var contentTypes = [];
|
|
1051
|
-
var accepts = [
|
|
1006
|
+
var accepts = ["application/json"];
|
|
1052
1007
|
var returnType = [_FirmwareInfo["default"]];
|
|
1053
|
-
return this.apiClient.callApi(
|
|
1008
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/firmware", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1054
1009
|
}
|
|
1055
1010
|
|
|
1056
1011
|
/**
|
|
1057
1012
|
* Get Available Firmware Information
|
|
1058
|
-
* @param {String} projectUID
|
|
1013
|
+
* @param {String} projectUID
|
|
1059
1014
|
* @param {Object} opts Optional parameters
|
|
1060
|
-
* @param {String} opts.product
|
|
1061
|
-
* @param {String} opts.firmwareType
|
|
1062
|
-
* @param {String} opts.version
|
|
1063
|
-
* @param {String} opts.target
|
|
1064
|
-
* @param {String} opts.filename
|
|
1065
|
-
* @param {String} opts.md5
|
|
1066
|
-
* @param {Boolean} opts.unpublished
|
|
1015
|
+
* @param {String} opts.product
|
|
1016
|
+
* @param {String} opts.firmwareType
|
|
1017
|
+
* @param {String} opts.version
|
|
1018
|
+
* @param {String} opts.target
|
|
1019
|
+
* @param {String} opts.filename
|
|
1020
|
+
* @param {String} opts.md5
|
|
1021
|
+
* @param {Boolean} opts.unpublished
|
|
1067
1022
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/FirmwareInfo>}
|
|
1068
1023
|
*/
|
|
1069
1024
|
}, {
|
|
@@ -1076,8 +1031,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1076
1031
|
|
|
1077
1032
|
/**
|
|
1078
1033
|
* Get Fleet
|
|
1079
|
-
* @param {String} projectUID
|
|
1080
|
-
* @param {String} fleetUID
|
|
1034
|
+
* @param {String} projectUID
|
|
1035
|
+
* @param {String} fleetUID
|
|
1081
1036
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
1082
1037
|
*/
|
|
1083
1038
|
}, {
|
|
@@ -1093,23 +1048,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1093
1048
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleet");
|
|
1094
1049
|
}
|
|
1095
1050
|
var pathParams = {
|
|
1096
|
-
|
|
1097
|
-
|
|
1051
|
+
projectUID: projectUID,
|
|
1052
|
+
fleetUID: fleetUID
|
|
1098
1053
|
};
|
|
1099
1054
|
var queryParams = {};
|
|
1100
1055
|
var headerParams = {};
|
|
1101
1056
|
var formParams = {};
|
|
1102
|
-
var authNames = [
|
|
1057
|
+
var authNames = ["api_key"];
|
|
1103
1058
|
var contentTypes = [];
|
|
1104
|
-
var accepts = [
|
|
1059
|
+
var accepts = ["application/json"];
|
|
1105
1060
|
var returnType = _Fleet["default"];
|
|
1106
|
-
return this.apiClient.callApi(
|
|
1061
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/fleets/{fleetUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1107
1062
|
}
|
|
1108
1063
|
|
|
1109
1064
|
/**
|
|
1110
1065
|
* Get Fleet
|
|
1111
|
-
* @param {String} projectUID
|
|
1112
|
-
* @param {String} fleetUID
|
|
1066
|
+
* @param {String} projectUID
|
|
1067
|
+
* @param {String} fleetUID
|
|
1113
1068
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
1114
1069
|
*/
|
|
1115
1070
|
}, {
|
|
@@ -1122,8 +1077,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1122
1077
|
|
|
1123
1078
|
/**
|
|
1124
1079
|
* Get environment variables of a fleet
|
|
1125
|
-
* @param {String} projectUID
|
|
1126
|
-
* @param {String} fleetUID
|
|
1080
|
+
* @param {String} projectUID
|
|
1081
|
+
* @param {String} fleetUID
|
|
1127
1082
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1128
1083
|
*/
|
|
1129
1084
|
}, {
|
|
@@ -1139,23 +1094,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1139
1094
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEnvironmentVariables");
|
|
1140
1095
|
}
|
|
1141
1096
|
var pathParams = {
|
|
1142
|
-
|
|
1143
|
-
|
|
1097
|
+
projectUID: projectUID,
|
|
1098
|
+
fleetUID: fleetUID
|
|
1144
1099
|
};
|
|
1145
1100
|
var queryParams = {};
|
|
1146
1101
|
var headerParams = {};
|
|
1147
1102
|
var formParams = {};
|
|
1148
|
-
var authNames = [
|
|
1103
|
+
var authNames = ["api_key"];
|
|
1149
1104
|
var contentTypes = [];
|
|
1150
|
-
var accepts = [
|
|
1105
|
+
var accepts = ["application/json"];
|
|
1151
1106
|
var returnType = _EnvironmentVariables["default"];
|
|
1152
|
-
return this.apiClient.callApi(
|
|
1107
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/fleets/{fleetUID}/environment_variables", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1153
1108
|
}
|
|
1154
1109
|
|
|
1155
1110
|
/**
|
|
1156
1111
|
* Get environment variables of a fleet
|
|
1157
|
-
* @param {String} projectUID
|
|
1158
|
-
* @param {String} fleetUID
|
|
1112
|
+
* @param {String} projectUID
|
|
1113
|
+
* @param {String} fleetUID
|
|
1159
1114
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1160
1115
|
*/
|
|
1161
1116
|
}, {
|
|
@@ -1168,7 +1123,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1168
1123
|
|
|
1169
1124
|
/**
|
|
1170
1125
|
* Get a Project by ProjectUID
|
|
1171
|
-
* @param {String} projectUID
|
|
1126
|
+
* @param {String} projectUID
|
|
1172
1127
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
1173
1128
|
*/
|
|
1174
1129
|
}, {
|
|
@@ -1180,21 +1135,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1180
1135
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProject");
|
|
1181
1136
|
}
|
|
1182
1137
|
var pathParams = {
|
|
1183
|
-
|
|
1138
|
+
projectUID: projectUID
|
|
1184
1139
|
};
|
|
1185
1140
|
var queryParams = {};
|
|
1186
1141
|
var headerParams = {};
|
|
1187
1142
|
var formParams = {};
|
|
1188
|
-
var authNames = [
|
|
1143
|
+
var authNames = ["api_key"];
|
|
1189
1144
|
var contentTypes = [];
|
|
1190
|
-
var accepts = [
|
|
1145
|
+
var accepts = ["application/json"];
|
|
1191
1146
|
var returnType = _Project["default"];
|
|
1192
|
-
return this.apiClient.callApi(
|
|
1147
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1193
1148
|
}
|
|
1194
1149
|
|
|
1195
1150
|
/**
|
|
1196
1151
|
* Get a Project by ProjectUID
|
|
1197
|
-
* @param {String} projectUID
|
|
1152
|
+
* @param {String} projectUID
|
|
1198
1153
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
1199
1154
|
*/
|
|
1200
1155
|
}, {
|
|
@@ -1207,7 +1162,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1207
1162
|
|
|
1208
1163
|
/**
|
|
1209
1164
|
* Get a Project by ProductUID
|
|
1210
|
-
* @param {String} productUID
|
|
1165
|
+
* @param {String} productUID
|
|
1211
1166
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
1212
1167
|
*/
|
|
1213
1168
|
}, {
|
|
@@ -1219,21 +1174,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1219
1174
|
throw new _Error["default"]("Missing the required parameter 'productUID' when calling getProjectByProduct");
|
|
1220
1175
|
}
|
|
1221
1176
|
var pathParams = {
|
|
1222
|
-
|
|
1177
|
+
productUID: productUID
|
|
1223
1178
|
};
|
|
1224
1179
|
var queryParams = {};
|
|
1225
1180
|
var headerParams = {};
|
|
1226
1181
|
var formParams = {};
|
|
1227
|
-
var authNames = [
|
|
1182
|
+
var authNames = ["api_key"];
|
|
1228
1183
|
var contentTypes = [];
|
|
1229
|
-
var accepts = [
|
|
1184
|
+
var accepts = ["application/json"];
|
|
1230
1185
|
var returnType = _Project["default"];
|
|
1231
|
-
return this.apiClient.callApi(
|
|
1186
|
+
return this.apiClient.callApi("/v1/products/{productUID}/project", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1232
1187
|
}
|
|
1233
1188
|
|
|
1234
1189
|
/**
|
|
1235
1190
|
* Get a Project by ProductUID
|
|
1236
|
-
* @param {String} productUID
|
|
1191
|
+
* @param {String} productUID
|
|
1237
1192
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
1238
1193
|
*/
|
|
1239
1194
|
}, {
|
|
@@ -1246,7 +1201,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1246
1201
|
|
|
1247
1202
|
/**
|
|
1248
1203
|
* Get environment variables of a project
|
|
1249
|
-
* @param {String} projectUID
|
|
1204
|
+
* @param {String} projectUID
|
|
1250
1205
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1251
1206
|
*/
|
|
1252
1207
|
}, {
|
|
@@ -1258,21 +1213,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1258
1213
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectEnvironmentVariables");
|
|
1259
1214
|
}
|
|
1260
1215
|
var pathParams = {
|
|
1261
|
-
|
|
1216
|
+
projectUID: projectUID
|
|
1262
1217
|
};
|
|
1263
1218
|
var queryParams = {};
|
|
1264
1219
|
var headerParams = {};
|
|
1265
1220
|
var formParams = {};
|
|
1266
|
-
var authNames = [
|
|
1221
|
+
var authNames = ["api_key"];
|
|
1267
1222
|
var contentTypes = [];
|
|
1268
|
-
var accepts = [
|
|
1223
|
+
var accepts = ["application/json"];
|
|
1269
1224
|
var returnType = _EnvironmentVariables["default"];
|
|
1270
|
-
return this.apiClient.callApi(
|
|
1225
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/environment_variables", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1271
1226
|
}
|
|
1272
1227
|
|
|
1273
1228
|
/**
|
|
1274
1229
|
* Get environment variables of a project
|
|
1275
|
-
* @param {String} projectUID
|
|
1230
|
+
* @param {String} projectUID
|
|
1276
1231
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1277
1232
|
*/
|
|
1278
1233
|
}, {
|
|
@@ -1285,7 +1240,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1285
1240
|
|
|
1286
1241
|
/**
|
|
1287
1242
|
* Get Project Fleets
|
|
1288
|
-
* @param {String} projectUID
|
|
1243
|
+
* @param {String} projectUID
|
|
1289
1244
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectFleets200Response} and HTTP response
|
|
1290
1245
|
*/
|
|
1291
1246
|
}, {
|
|
@@ -1297,21 +1252,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1297
1252
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectFleets");
|
|
1298
1253
|
}
|
|
1299
1254
|
var pathParams = {
|
|
1300
|
-
|
|
1255
|
+
projectUID: projectUID
|
|
1301
1256
|
};
|
|
1302
1257
|
var queryParams = {};
|
|
1303
1258
|
var headerParams = {};
|
|
1304
1259
|
var formParams = {};
|
|
1305
|
-
var authNames = [
|
|
1260
|
+
var authNames = ["api_key"];
|
|
1306
1261
|
var contentTypes = [];
|
|
1307
|
-
var accepts = [
|
|
1262
|
+
var accepts = ["application/json"];
|
|
1308
1263
|
var returnType = _GetProjectFleets200Response["default"];
|
|
1309
|
-
return this.apiClient.callApi(
|
|
1264
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/fleets", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1310
1265
|
}
|
|
1311
1266
|
|
|
1312
1267
|
/**
|
|
1313
1268
|
* Get Project Fleets
|
|
1314
|
-
* @param {String} projectUID
|
|
1269
|
+
* @param {String} projectUID
|
|
1315
1270
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectFleets200Response}
|
|
1316
1271
|
*/
|
|
1317
1272
|
}, {
|
|
@@ -1324,7 +1279,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1324
1279
|
|
|
1325
1280
|
/**
|
|
1326
1281
|
* Get Project Members
|
|
1327
|
-
* @param {String} projectUID
|
|
1282
|
+
* @param {String} projectUID
|
|
1328
1283
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectMembers200Response} and HTTP response
|
|
1329
1284
|
*/
|
|
1330
1285
|
}, {
|
|
@@ -1336,21 +1291,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1336
1291
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectMembers");
|
|
1337
1292
|
}
|
|
1338
1293
|
var pathParams = {
|
|
1339
|
-
|
|
1294
|
+
projectUID: projectUID
|
|
1340
1295
|
};
|
|
1341
1296
|
var queryParams = {};
|
|
1342
1297
|
var headerParams = {};
|
|
1343
1298
|
var formParams = {};
|
|
1344
|
-
var authNames = [
|
|
1299
|
+
var authNames = ["api_key"];
|
|
1345
1300
|
var contentTypes = [];
|
|
1346
|
-
var accepts = [
|
|
1301
|
+
var accepts = ["application/json"];
|
|
1347
1302
|
var returnType = _GetProjectMembers200Response["default"];
|
|
1348
|
-
return this.apiClient.callApi(
|
|
1303
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/members", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1349
1304
|
}
|
|
1350
1305
|
|
|
1351
1306
|
/**
|
|
1352
1307
|
* Get Project Members
|
|
1353
|
-
* @param {String} projectUID
|
|
1308
|
+
* @param {String} projectUID
|
|
1354
1309
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectMembers200Response}
|
|
1355
1310
|
*/
|
|
1356
1311
|
}, {
|
|
@@ -1363,7 +1318,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1363
1318
|
|
|
1364
1319
|
/**
|
|
1365
1320
|
* Get Products within a Project
|
|
1366
|
-
* @param {String} projectUID
|
|
1321
|
+
* @param {String} projectUID
|
|
1367
1322
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectProducts200Response} and HTTP response
|
|
1368
1323
|
*/
|
|
1369
1324
|
}, {
|
|
@@ -1375,21 +1330,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1375
1330
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectProducts");
|
|
1376
1331
|
}
|
|
1377
1332
|
var pathParams = {
|
|
1378
|
-
|
|
1333
|
+
projectUID: projectUID
|
|
1379
1334
|
};
|
|
1380
1335
|
var queryParams = {};
|
|
1381
1336
|
var headerParams = {};
|
|
1382
1337
|
var formParams = {};
|
|
1383
|
-
var authNames = [
|
|
1338
|
+
var authNames = ["api_key"];
|
|
1384
1339
|
var contentTypes = [];
|
|
1385
|
-
var accepts = [
|
|
1340
|
+
var accepts = ["application/json"];
|
|
1386
1341
|
var returnType = _GetProjectProducts200Response["default"];
|
|
1387
|
-
return this.apiClient.callApi(
|
|
1342
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/products", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1388
1343
|
}
|
|
1389
1344
|
|
|
1390
1345
|
/**
|
|
1391
1346
|
* Get Products within a Project
|
|
1392
|
-
* @param {String} projectUID
|
|
1347
|
+
* @param {String} projectUID
|
|
1393
1348
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectProducts200Response}
|
|
1394
1349
|
*/
|
|
1395
1350
|
}, {
|
|
@@ -1412,11 +1367,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1412
1367
|
var queryParams = {};
|
|
1413
1368
|
var headerParams = {};
|
|
1414
1369
|
var formParams = {};
|
|
1415
|
-
var authNames = [
|
|
1370
|
+
var authNames = ["api_key"];
|
|
1416
1371
|
var contentTypes = [];
|
|
1417
|
-
var accepts = [
|
|
1372
|
+
var accepts = ["application/json"];
|
|
1418
1373
|
var returnType = _GetProjects200Response["default"];
|
|
1419
|
-
return this.apiClient.callApi(
|
|
1374
|
+
return this.apiClient.callApi("/v1/projects", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1420
1375
|
}
|
|
1421
1376
|
|
|
1422
1377
|
/**
|
|
@@ -1433,9 +1388,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1433
1388
|
|
|
1434
1389
|
/**
|
|
1435
1390
|
* Add Device to Fleets
|
|
1436
|
-
* @param {String} projectUID
|
|
1437
|
-
* @param {String} deviceUID
|
|
1438
|
-
* @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.
|
|
1391
|
+
* @param {String} projectUID
|
|
1392
|
+
* @param {String} deviceUID
|
|
1393
|
+
* @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.
|
|
1439
1394
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectFleets200Response} and HTTP response
|
|
1440
1395
|
*/
|
|
1441
1396
|
}, {
|
|
@@ -1455,24 +1410,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1455
1410
|
throw new _Error["default"]("Missing the required parameter 'putDeviceFleetsRequest' when calling putDeviceFleets");
|
|
1456
1411
|
}
|
|
1457
1412
|
var pathParams = {
|
|
1458
|
-
|
|
1459
|
-
|
|
1413
|
+
projectUID: projectUID,
|
|
1414
|
+
deviceUID: deviceUID
|
|
1460
1415
|
};
|
|
1461
1416
|
var queryParams = {};
|
|
1462
1417
|
var headerParams = {};
|
|
1463
1418
|
var formParams = {};
|
|
1464
|
-
var authNames = [
|
|
1465
|
-
var contentTypes = [
|
|
1466
|
-
var accepts = [
|
|
1419
|
+
var authNames = ["api_key"];
|
|
1420
|
+
var contentTypes = ["application/json"];
|
|
1421
|
+
var accepts = ["application/json"];
|
|
1467
1422
|
var returnType = _GetProjectFleets200Response["default"];
|
|
1468
|
-
return this.apiClient.callApi(
|
|
1423
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/fleets", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1469
1424
|
}
|
|
1470
1425
|
|
|
1471
1426
|
/**
|
|
1472
1427
|
* Add Device to Fleets
|
|
1473
|
-
* @param {String} projectUID
|
|
1474
|
-
* @param {String} deviceUID
|
|
1475
|
-
* @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.
|
|
1428
|
+
* @param {String} projectUID
|
|
1429
|
+
* @param {String} deviceUID
|
|
1430
|
+
* @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.
|
|
1476
1431
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectFleets200Response}
|
|
1477
1432
|
*/
|
|
1478
1433
|
}, {
|
|
@@ -1485,8 +1440,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1485
1440
|
|
|
1486
1441
|
/**
|
|
1487
1442
|
* Put environment variables of a fleet
|
|
1488
|
-
* @param {String} projectUID
|
|
1489
|
-
* @param {String} fleetUID
|
|
1443
|
+
* @param {String} projectUID
|
|
1444
|
+
* @param {String} fleetUID
|
|
1490
1445
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
1491
1446
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1492
1447
|
*/
|
|
@@ -1507,23 +1462,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1507
1462
|
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling putFleetEnvironmentVariables");
|
|
1508
1463
|
}
|
|
1509
1464
|
var pathParams = {
|
|
1510
|
-
|
|
1511
|
-
|
|
1465
|
+
projectUID: projectUID,
|
|
1466
|
+
fleetUID: fleetUID
|
|
1512
1467
|
};
|
|
1513
1468
|
var queryParams = {};
|
|
1514
1469
|
var headerParams = {};
|
|
1515
1470
|
var formParams = {};
|
|
1516
|
-
var authNames = [
|
|
1517
|
-
var contentTypes = [
|
|
1518
|
-
var accepts = [
|
|
1471
|
+
var authNames = ["api_key"];
|
|
1472
|
+
var contentTypes = ["application/json"];
|
|
1473
|
+
var accepts = ["application/json"];
|
|
1519
1474
|
var returnType = _EnvironmentVariables["default"];
|
|
1520
|
-
return this.apiClient.callApi(
|
|
1475
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/fleets/{fleetUID}/environment_variables", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1521
1476
|
}
|
|
1522
1477
|
|
|
1523
1478
|
/**
|
|
1524
1479
|
* Put environment variables of a fleet
|
|
1525
|
-
* @param {String} projectUID
|
|
1526
|
-
* @param {String} fleetUID
|
|
1480
|
+
* @param {String} projectUID
|
|
1481
|
+
* @param {String} fleetUID
|
|
1527
1482
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
1528
1483
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1529
1484
|
*/
|
|
@@ -1537,38 +1492,38 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1537
1492
|
|
|
1538
1493
|
/**
|
|
1539
1494
|
* Put environment variables of a project
|
|
1540
|
-
* @param {String} projectUID
|
|
1495
|
+
* @param {String} projectUID
|
|
1541
1496
|
* @param {Object} opts Optional parameters
|
|
1542
|
-
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1497
|
+
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1543
1498
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1544
1499
|
*/
|
|
1545
1500
|
}, {
|
|
1546
1501
|
key: "putProjectEnvironmentVariablesWithHttpInfo",
|
|
1547
1502
|
value: function putProjectEnvironmentVariablesWithHttpInfo(projectUID, opts) {
|
|
1548
1503
|
opts = opts || {};
|
|
1549
|
-
var postBody = opts[
|
|
1504
|
+
var postBody = opts["environmentVariables"];
|
|
1550
1505
|
// verify the required parameter 'projectUID' is set
|
|
1551
1506
|
if (projectUID === undefined || projectUID === null) {
|
|
1552
1507
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling putProjectEnvironmentVariables");
|
|
1553
1508
|
}
|
|
1554
1509
|
var pathParams = {
|
|
1555
|
-
|
|
1510
|
+
projectUID: projectUID
|
|
1556
1511
|
};
|
|
1557
1512
|
var queryParams = {};
|
|
1558
1513
|
var headerParams = {};
|
|
1559
1514
|
var formParams = {};
|
|
1560
|
-
var authNames = [
|
|
1561
|
-
var contentTypes = [
|
|
1562
|
-
var accepts = [
|
|
1515
|
+
var authNames = ["api_key"];
|
|
1516
|
+
var contentTypes = ["application/json"];
|
|
1517
|
+
var accepts = ["application/json"];
|
|
1563
1518
|
var returnType = _EnvironmentVariables["default"];
|
|
1564
|
-
return this.apiClient.callApi(
|
|
1519
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/environment_variables", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1565
1520
|
}
|
|
1566
1521
|
|
|
1567
1522
|
/**
|
|
1568
1523
|
* Put environment variables of a project
|
|
1569
|
-
* @param {String} projectUID
|
|
1524
|
+
* @param {String} projectUID
|
|
1570
1525
|
* @param {Object} opts Optional parameters
|
|
1571
|
-
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1526
|
+
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1572
1527
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1573
1528
|
*/
|
|
1574
1529
|
}, {
|
|
@@ -1581,7 +1536,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1581
1536
|
|
|
1582
1537
|
/**
|
|
1583
1538
|
* Set the project-level event JSONata transformation
|
|
1584
|
-
* @param {String} projectUID
|
|
1539
|
+
* @param {String} projectUID
|
|
1585
1540
|
* @param {Object.<String, Object>} body JSONata expression which will be applied to each event before it is persisted and routed
|
|
1586
1541
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1587
1542
|
*/
|
|
@@ -1598,21 +1553,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1598
1553
|
throw new _Error["default"]("Missing the required parameter 'body' when calling setGlobalTransformation");
|
|
1599
1554
|
}
|
|
1600
1555
|
var pathParams = {
|
|
1601
|
-
|
|
1556
|
+
projectUID: projectUID
|
|
1602
1557
|
};
|
|
1603
1558
|
var queryParams = {};
|
|
1604
1559
|
var headerParams = {};
|
|
1605
1560
|
var formParams = {};
|
|
1606
|
-
var authNames = [
|
|
1607
|
-
var contentTypes = [
|
|
1608
|
-
var accepts = [
|
|
1561
|
+
var authNames = ["api_key"];
|
|
1562
|
+
var contentTypes = ["application/json"];
|
|
1563
|
+
var accepts = ["application/json"];
|
|
1609
1564
|
var returnType = null;
|
|
1610
|
-
return this.apiClient.callApi(
|
|
1565
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/global-transformation", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1611
1566
|
}
|
|
1612
1567
|
|
|
1613
1568
|
/**
|
|
1614
1569
|
* Set the project-level event JSONata transformation
|
|
1615
|
-
* @param {String} projectUID
|
|
1570
|
+
* @param {String} projectUID
|
|
1616
1571
|
* @param {Object.<String, Object>} body JSONata expression which will be applied to each event before it is persisted and routed
|
|
1617
1572
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1618
1573
|
*/
|
|
@@ -1626,8 +1581,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1626
1581
|
|
|
1627
1582
|
/**
|
|
1628
1583
|
* Update Fleet
|
|
1629
|
-
* @param {String} projectUID
|
|
1630
|
-
* @param {String} fleetUID
|
|
1584
|
+
* @param {String} projectUID
|
|
1585
|
+
* @param {String} fleetUID
|
|
1631
1586
|
* @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
|
|
1632
1587
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
1633
1588
|
*/
|
|
@@ -1648,23 +1603,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1648
1603
|
throw new _Error["default"]("Missing the required parameter 'updateFleetRequest' when calling updateFleet");
|
|
1649
1604
|
}
|
|
1650
1605
|
var pathParams = {
|
|
1651
|
-
|
|
1652
|
-
|
|
1606
|
+
projectUID: projectUID,
|
|
1607
|
+
fleetUID: fleetUID
|
|
1653
1608
|
};
|
|
1654
1609
|
var queryParams = {};
|
|
1655
1610
|
var headerParams = {};
|
|
1656
1611
|
var formParams = {};
|
|
1657
|
-
var authNames = [
|
|
1658
|
-
var contentTypes = [
|
|
1659
|
-
var accepts = [
|
|
1612
|
+
var authNames = ["api_key"];
|
|
1613
|
+
var contentTypes = ["application/json"];
|
|
1614
|
+
var accepts = ["application/json"];
|
|
1660
1615
|
var returnType = _Fleet["default"];
|
|
1661
|
-
return this.apiClient.callApi(
|
|
1616
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/fleets/{fleetUID}", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1662
1617
|
}
|
|
1663
1618
|
|
|
1664
1619
|
/**
|
|
1665
1620
|
* Update Fleet
|
|
1666
|
-
* @param {String} projectUID
|
|
1667
|
-
* @param {String} fleetUID
|
|
1621
|
+
* @param {String} projectUID
|
|
1622
|
+
* @param {String} fleetUID
|
|
1668
1623
|
* @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
|
|
1669
1624
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
1670
1625
|
*/
|