@blues-inc/notehub-js 2.0.0 → 2.1.0-beta.10
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 +246 -232
- package/dist/ApiClient.js +154 -154
- package/dist/api/AlertApi.js +22 -22
- package/dist/api/AuthorizationApi.js +31 -31
- package/dist/api/BillingAccountApi.js +14 -14
- package/dist/api/DeviceApi.js +426 -366
- package/dist/api/EventApi.js +118 -118
- package/dist/api/ExternalDevicesApi.js +41 -41
- package/dist/api/MonitorApi.js +52 -52
- package/dist/api/ProjectApi.js +452 -406
- package/dist/api/RouteApi.js +77 -77
- package/dist/api/UsageApi.js +68 -119
- package/dist/api/WebhookApi.js +51 -51
- package/dist/index.js +54 -19
- package/dist/model/Alert.js +76 -74
- package/dist/model/AlertDataInner.js +35 -35
- package/dist/model/AlertNotificationsInner.js +18 -18
- package/dist/model/Aws.js +65 -65
- package/dist/model/AwsFilter.js +19 -19
- package/dist/model/AwsTransform.js +20 -20
- 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/CellularPlan.js +167 -0
- 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 +126 -125
- package/dist/model/CreateProductRequest.js +22 -22
- package/dist/model/CreateProjectRequest.js +16 -16
- package/dist/model/CreateUpdateRepository.js +17 -17
- package/dist/model/CurrentFirmware.js +12 -12
- package/dist/model/DFUEnv.js +12 -12
- package/dist/model/DFUState.js +65 -65
- package/dist/model/DataField.js +7 -7
- package/dist/model/DataSetField.js +19 -19
- package/dist/model/{UsageRouteLogsResponse.js → DataUsage.js} +50 -48
- package/dist/model/DeleteDeviceFleetsRequest.js +8 -8
- package/dist/model/Device.js +102 -101
- package/dist/model/DeviceDfuHistory.js +20 -19
- package/dist/model/DeviceDfuHistoryCurrent.js +32 -32
- package/dist/model/DeviceDfuHistoryPage.js +13 -12
- package/dist/model/DeviceDfuStateMachine.js +25 -24
- package/dist/model/DeviceDfuStateMachineNode.js +22 -22
- package/dist/model/DeviceDfuStatus.js +20 -20
- package/dist/model/DeviceDfuStatusPage.js +13 -12
- package/dist/model/DeviceSession.js +221 -221
- package/dist/model/DeviceTowerInfo.js +14 -14
- package/dist/model/DeviceUsage.js +32 -32
- package/dist/model/DfuActionRequest.js +7 -7
- package/dist/model/EmailNotification.js +7 -7
- package/dist/model/EnvTreeJsonNode.js +69 -67
- package/dist/model/EnvVar.js +18 -18
- package/dist/model/EnvironmentVariables.js +8 -8
- package/dist/model/Error.js +31 -31
- package/dist/model/Event.js +248 -248
- package/dist/model/Firmware.js +49 -49
- package/dist/model/FirmwareInfo.js +60 -60
- package/dist/model/Fleet.js +30 -30
- package/dist/model/GetAlerts200Response.js +15 -14
- package/dist/model/GetBillingAccounts200Response.js +10 -9
- package/dist/model/GetDataUsage200Response.js +112 -0
- package/dist/model/GetDataUsage200ResponseDataInner.js +217 -0
- package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +16 -16
- package/dist/model/GetDeviceFleets200Response.js +12 -11
- package/dist/model/GetDeviceHealthLog200Response.js +12 -11
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
- package/dist/model/GetDeviceLatest200Response.js +10 -9
- package/dist/model/GetDevicePlans200Response.js +112 -0
- package/dist/model/GetDevicePublicKey200Response.js +16 -16
- package/dist/model/GetDeviceSessions200Response.js +17 -16
- package/dist/model/{GetProjectProducts200Response.js → GetProducts200Response.js} +26 -25
- package/dist/model/GetProjectDevicePublicKeys200Response.js +17 -16
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
- package/dist/model/GetProjectDevices200Response.js +17 -16
- package/dist/model/GetProjectEvents200Response.js +21 -20
- package/dist/model/GetProjectEventsByCursor200Response.js +24 -23
- package/dist/model/GetProjectMembers200Response.js +12 -11
- package/dist/model/GetProjects200Response.js +10 -9
- package/dist/model/{UsageSessionsResponse.js → GetSessionsUsage200Response.js} +33 -32
- package/dist/model/GetWebhooks200Response.js +10 -9
- 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/Location.js +40 -40
- package/dist/model/Login200Response.js +7 -7
- package/dist/model/LoginRequest.js +12 -12
- package/dist/model/Monitor.js +100 -99
- package/dist/model/MonitorAlertRoutesInner.js +9 -10
- package/dist/model/Mqtt.js +66 -66
- package/dist/model/Note.js +10 -10
- package/dist/model/NotefileSchema.js +19 -18
- package/dist/model/NotehubRoute.js +36 -36
- package/dist/model/NotehubRouteSchema.js +45 -46
- package/dist/model/OAuth2Error.js +20 -20
- package/dist/model/OAuth2TokenResponse.js +23 -23
- package/dist/model/PersonalAccessToken.js +34 -34
- package/dist/model/PersonalAccessTokenCreatedBy.js +17 -17
- package/dist/model/PersonalAccessTokenInfo.js +18 -18
- package/dist/model/PersonalAccessTokenSecret.js +12 -12
- package/dist/model/PostProvisionProjectDeviceRequest.js +18 -18
- package/dist/model/Product.js +26 -26
- package/dist/model/Project.js +34 -34
- package/dist/model/ProjectMember.js +22 -22
- package/dist/model/Proxy.js +24 -24
- package/dist/model/PutDeviceFleetsRequest.js +8 -8
- package/dist/model/Radresponder.js +25 -25
- package/dist/model/Repository.js +22 -22
- package/dist/model/Role.js +9 -9
- package/dist/model/RouteLog.js +38 -38
- package/dist/model/SatellitePlan.js +164 -0
- package/dist/model/SchemaProperty.js +38 -36
- package/dist/model/SimUsage.js +19 -19
- package/dist/model/Slack.js +53 -53
- package/dist/model/SlackBearerNotification.js +25 -25
- package/dist/model/SlackTransform.js +12 -12
- package/dist/model/SlackWebHookNotification.js +20 -20
- package/dist/model/Snowflake.js +45 -45
- package/dist/model/Thingworx.js +33 -33
- package/dist/model/TowerLocation.js +54 -54
- package/dist/model/Twilio.js +43 -43
- package/dist/model/UpdateFleetRequest.js +25 -25
- package/dist/model/UploadMetadata.js +64 -64
- package/dist/model/UsageData.js +18 -18
- package/dist/model/UsageEventsData.js +38 -28
- package/dist/model/UsageEventsResponse.js +12 -11
- package/dist/model/UsageRouteLogsData.js +35 -36
- package/dist/model/UsageSessionsData.js +38 -28
- 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/dist/model/WebhookSettings.js +15 -15
- package/package.json +3 -3
package/dist/api/ProjectApi.js
CHANGED
|
@@ -21,8 +21,8 @@ var _Error = _interopRequireDefault(require("../model/Error"));
|
|
|
21
21
|
var _FirmwareInfo = _interopRequireDefault(require("../model/FirmwareInfo"));
|
|
22
22
|
var _Fleet = _interopRequireDefault(require("../model/Fleet"));
|
|
23
23
|
var _GetDeviceFleets200Response = _interopRequireDefault(require("../model/GetDeviceFleets200Response"));
|
|
24
|
+
var _GetProducts200Response = _interopRequireDefault(require("../model/GetProducts200Response"));
|
|
24
25
|
var _GetProjectMembers200Response = _interopRequireDefault(require("../model/GetProjectMembers200Response"));
|
|
25
|
-
var _GetProjectProducts200Response = _interopRequireDefault(require("../model/GetProjectProducts200Response"));
|
|
26
26
|
var _GetProjects200Response = _interopRequireDefault(require("../model/GetProjects200Response"));
|
|
27
27
|
var _NotefileSchema = _interopRequireDefault(require("../model/NotefileSchema"));
|
|
28
28
|
var _Product = _interopRequireDefault(require("../model/Product"));
|
|
@@ -37,7 +37,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
37
37
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
38
38
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
39
39
|
* Notehub API
|
|
40
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
40
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
41
41
|
*
|
|
42
42
|
* The version of the OpenAPI document: 1.2.0
|
|
43
43
|
* Contact: engineering@blues.io
|
|
@@ -48,18 +48,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
48
48
|
*
|
|
49
49
|
*/
|
|
50
50
|
/**
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
* Project service.
|
|
52
|
+
* @module api/ProjectApi
|
|
53
|
+
* @version 2.1.0-beta.10
|
|
54
|
+
*/
|
|
55
55
|
var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
56
56
|
/**
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
57
|
+
* Constructs a new ProjectApi.
|
|
58
|
+
* @alias module:api/ProjectApi
|
|
59
|
+
* @class
|
|
60
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
61
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
62
|
+
*/
|
|
63
63
|
function ProjectApi(apiClient) {
|
|
64
64
|
_classCallCheck(this, ProjectApi);
|
|
65
65
|
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
@@ -67,7 +67,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* Clone a Project
|
|
70
|
-
* @param {String} projectOrProductUID
|
|
70
|
+
* @param {String} projectOrProductUID
|
|
71
71
|
* @param {module:model/CloneProjectRequest} cloneProjectRequest Project to be cloned
|
|
72
72
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
73
73
|
*/
|
|
@@ -84,21 +84,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
84
84
|
throw new _Error["default"]("Missing the required parameter 'cloneProjectRequest' when calling cloneProject");
|
|
85
85
|
}
|
|
86
86
|
var pathParams = {
|
|
87
|
-
projectOrProductUID: projectOrProductUID
|
|
87
|
+
'projectOrProductUID': projectOrProductUID
|
|
88
88
|
};
|
|
89
89
|
var queryParams = {};
|
|
90
90
|
var headerParams = {};
|
|
91
91
|
var formParams = {};
|
|
92
|
-
var authNames = [
|
|
93
|
-
var contentTypes = [
|
|
94
|
-
var accepts = [
|
|
92
|
+
var authNames = ['personalAccessToken'];
|
|
93
|
+
var contentTypes = ['application/json'];
|
|
94
|
+
var accepts = ['application/json'];
|
|
95
95
|
var returnType = _Project["default"];
|
|
96
|
-
return this.apiClient.callApi(
|
|
96
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/clone', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
/**
|
|
100
100
|
* Clone a Project
|
|
101
|
-
* @param {String} projectOrProductUID
|
|
101
|
+
* @param {String} projectOrProductUID
|
|
102
102
|
* @param {module:model/CloneProjectRequest} cloneProjectRequest Project to be cloned
|
|
103
103
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
104
104
|
*/
|
|
@@ -112,7 +112,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
112
112
|
|
|
113
113
|
/**
|
|
114
114
|
* Create Fleet
|
|
115
|
-
* @param {String} projectOrProductUID
|
|
115
|
+
* @param {String} projectOrProductUID
|
|
116
116
|
* @param {module:model/CreateFleetRequest} createFleetRequest Fleet to be added
|
|
117
117
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
118
118
|
*/
|
|
@@ -129,21 +129,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
129
129
|
throw new _Error["default"]("Missing the required parameter 'createFleetRequest' when calling createFleet");
|
|
130
130
|
}
|
|
131
131
|
var pathParams = {
|
|
132
|
-
projectOrProductUID: projectOrProductUID
|
|
132
|
+
'projectOrProductUID': projectOrProductUID
|
|
133
133
|
};
|
|
134
134
|
var queryParams = {};
|
|
135
135
|
var headerParams = {};
|
|
136
136
|
var formParams = {};
|
|
137
|
-
var authNames = [
|
|
138
|
-
var contentTypes = [
|
|
139
|
-
var accepts = [
|
|
137
|
+
var authNames = ['personalAccessToken'];
|
|
138
|
+
var contentTypes = ['application/json'];
|
|
139
|
+
var accepts = ['application/json'];
|
|
140
140
|
var returnType = _Fleet["default"];
|
|
141
|
-
return this.apiClient.callApi(
|
|
141
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
/**
|
|
145
145
|
* Create Fleet
|
|
146
|
-
* @param {String} projectOrProductUID
|
|
146
|
+
* @param {String} projectOrProductUID
|
|
147
147
|
* @param {module:model/CreateFleetRequest} createFleetRequest Fleet to be added
|
|
148
148
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
149
149
|
*/
|
|
@@ -157,7 +157,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
157
157
|
|
|
158
158
|
/**
|
|
159
159
|
* Create Product within a Project
|
|
160
|
-
* @param {String} projectOrProductUID
|
|
160
|
+
* @param {String} projectOrProductUID
|
|
161
161
|
* @param {module:model/CreateProductRequest} createProductRequest Product to be created
|
|
162
162
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Product} and HTTP response
|
|
163
163
|
*/
|
|
@@ -174,21 +174,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
174
174
|
throw new _Error["default"]("Missing the required parameter 'createProductRequest' when calling createProduct");
|
|
175
175
|
}
|
|
176
176
|
var pathParams = {
|
|
177
|
-
projectOrProductUID: projectOrProductUID
|
|
177
|
+
'projectOrProductUID': projectOrProductUID
|
|
178
178
|
};
|
|
179
179
|
var queryParams = {};
|
|
180
180
|
var headerParams = {};
|
|
181
181
|
var formParams = {};
|
|
182
|
-
var authNames = [
|
|
183
|
-
var contentTypes = [
|
|
184
|
-
var accepts = [
|
|
182
|
+
var authNames = ['personalAccessToken'];
|
|
183
|
+
var contentTypes = ['application/json'];
|
|
184
|
+
var accepts = ['application/json'];
|
|
185
185
|
var returnType = _Product["default"];
|
|
186
|
-
return this.apiClient.callApi(
|
|
186
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/products', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
/**
|
|
190
190
|
* Create Product within a Project
|
|
191
|
-
* @param {String} projectOrProductUID
|
|
191
|
+
* @param {String} projectOrProductUID
|
|
192
192
|
* @param {module:model/CreateProductRequest} createProductRequest Product to be created
|
|
193
193
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Product}
|
|
194
194
|
*/
|
|
@@ -217,11 +217,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
217
217
|
var queryParams = {};
|
|
218
218
|
var headerParams = {};
|
|
219
219
|
var formParams = {};
|
|
220
|
-
var authNames = [
|
|
221
|
-
var contentTypes = [
|
|
222
|
-
var accepts = [
|
|
220
|
+
var authNames = ['personalAccessToken'];
|
|
221
|
+
var contentTypes = ['application/json'];
|
|
222
|
+
var accepts = ['application/json'];
|
|
223
223
|
var returnType = _Project["default"];
|
|
224
|
-
return this.apiClient.callApi(
|
|
224
|
+
return this.apiClient.callApi('/v1/projects', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
225
225
|
}
|
|
226
226
|
|
|
227
227
|
/**
|
|
@@ -239,9 +239,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
239
239
|
|
|
240
240
|
/**
|
|
241
241
|
* Remove Device from Fleets
|
|
242
|
-
* @param {String} projectOrProductUID
|
|
243
|
-
* @param {String} deviceUID
|
|
244
|
-
* @param {module:model/DeleteDeviceFleetsRequest} deleteDeviceFleetsRequest The fleets to remove from the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
242
|
+
* @param {String} projectOrProductUID
|
|
243
|
+
* @param {String} deviceUID
|
|
244
|
+
* @param {module:model/DeleteDeviceFleetsRequest} deleteDeviceFleetsRequest The fleets to remove from the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
245
245
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
246
246
|
*/
|
|
247
247
|
}, {
|
|
@@ -261,24 +261,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
261
261
|
throw new _Error["default"]("Missing the required parameter 'deleteDeviceFleetsRequest' when calling deleteDeviceFleets");
|
|
262
262
|
}
|
|
263
263
|
var pathParams = {
|
|
264
|
-
projectOrProductUID: projectOrProductUID,
|
|
265
|
-
deviceUID: deviceUID
|
|
264
|
+
'projectOrProductUID': projectOrProductUID,
|
|
265
|
+
'deviceUID': deviceUID
|
|
266
266
|
};
|
|
267
267
|
var queryParams = {};
|
|
268
268
|
var headerParams = {};
|
|
269
269
|
var formParams = {};
|
|
270
|
-
var authNames = [
|
|
271
|
-
var contentTypes = [
|
|
272
|
-
var accepts = [
|
|
270
|
+
var authNames = ['personalAccessToken'];
|
|
271
|
+
var contentTypes = ['application/json'];
|
|
272
|
+
var accepts = ['application/json'];
|
|
273
273
|
var returnType = _GetDeviceFleets200Response["default"];
|
|
274
|
-
return this.apiClient.callApi(
|
|
274
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/fleets', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
275
275
|
}
|
|
276
276
|
|
|
277
277
|
/**
|
|
278
278
|
* Remove Device from Fleets
|
|
279
|
-
* @param {String} projectOrProductUID
|
|
280
|
-
* @param {String} deviceUID
|
|
281
|
-
* @param {module:model/DeleteDeviceFleetsRequest} deleteDeviceFleetsRequest The fleets to remove from the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
279
|
+
* @param {String} projectOrProductUID
|
|
280
|
+
* @param {String} deviceUID
|
|
281
|
+
* @param {module:model/DeleteDeviceFleetsRequest} deleteDeviceFleetsRequest The fleets to remove from the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
282
282
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
283
283
|
*/
|
|
284
284
|
}, {
|
|
@@ -291,8 +291,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
291
291
|
|
|
292
292
|
/**
|
|
293
293
|
* Delete Fleet
|
|
294
|
-
* @param {String} projectOrProductUID
|
|
295
|
-
* @param {String} fleetUID
|
|
294
|
+
* @param {String} projectOrProductUID
|
|
295
|
+
* @param {String} fleetUID
|
|
296
296
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
297
297
|
*/
|
|
298
298
|
}, {
|
|
@@ -308,23 +308,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
308
308
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling deleteFleet");
|
|
309
309
|
}
|
|
310
310
|
var pathParams = {
|
|
311
|
-
projectOrProductUID: projectOrProductUID,
|
|
312
|
-
fleetUID: fleetUID
|
|
311
|
+
'projectOrProductUID': projectOrProductUID,
|
|
312
|
+
'fleetUID': fleetUID
|
|
313
313
|
};
|
|
314
314
|
var queryParams = {};
|
|
315
315
|
var headerParams = {};
|
|
316
316
|
var formParams = {};
|
|
317
|
-
var authNames = [
|
|
317
|
+
var authNames = ['personalAccessToken'];
|
|
318
318
|
var contentTypes = [];
|
|
319
|
-
var accepts = [
|
|
319
|
+
var accepts = ['application/json'];
|
|
320
320
|
var returnType = null;
|
|
321
|
-
return this.apiClient.callApi(
|
|
321
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
322
322
|
}
|
|
323
323
|
|
|
324
324
|
/**
|
|
325
325
|
* Delete Fleet
|
|
326
|
-
* @param {String} projectOrProductUID
|
|
327
|
-
* @param {String} fleetUID
|
|
326
|
+
* @param {String} projectOrProductUID
|
|
327
|
+
* @param {String} fleetUID
|
|
328
328
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
329
329
|
*/
|
|
330
330
|
}, {
|
|
@@ -337,8 +337,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
337
337
|
|
|
338
338
|
/**
|
|
339
339
|
* Delete environment variables of a fleet
|
|
340
|
-
* @param {String} projectOrProductUID
|
|
341
|
-
* @param {String} fleetUID
|
|
340
|
+
* @param {String} projectOrProductUID
|
|
341
|
+
* @param {String} fleetUID
|
|
342
342
|
* @param {String} key The environment variable key to delete.
|
|
343
343
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
344
344
|
*/
|
|
@@ -359,24 +359,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
359
359
|
throw new _Error["default"]("Missing the required parameter 'key' when calling deleteFleetEnvironmentVariable");
|
|
360
360
|
}
|
|
361
361
|
var pathParams = {
|
|
362
|
-
projectOrProductUID: projectOrProductUID,
|
|
363
|
-
fleetUID: fleetUID,
|
|
364
|
-
key: key
|
|
362
|
+
'projectOrProductUID': projectOrProductUID,
|
|
363
|
+
'fleetUID': fleetUID,
|
|
364
|
+
'key': key
|
|
365
365
|
};
|
|
366
366
|
var queryParams = {};
|
|
367
367
|
var headerParams = {};
|
|
368
368
|
var formParams = {};
|
|
369
|
-
var authNames = [
|
|
369
|
+
var authNames = ['personalAccessToken'];
|
|
370
370
|
var contentTypes = [];
|
|
371
|
-
var accepts = [
|
|
371
|
+
var accepts = ['application/json'];
|
|
372
372
|
var returnType = _EnvironmentVariables["default"];
|
|
373
|
-
return this.apiClient.callApi(
|
|
373
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables/{key}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
374
374
|
}
|
|
375
375
|
|
|
376
376
|
/**
|
|
377
377
|
* Delete environment variables of a fleet
|
|
378
|
-
* @param {String} projectOrProductUID
|
|
379
|
-
* @param {String} fleetUID
|
|
378
|
+
* @param {String} projectOrProductUID
|
|
379
|
+
* @param {String} fleetUID
|
|
380
380
|
* @param {String} key The environment variable key to delete.
|
|
381
381
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
382
382
|
*/
|
|
@@ -388,9 +388,55 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
388
388
|
});
|
|
389
389
|
}
|
|
390
390
|
|
|
391
|
+
/**
|
|
392
|
+
* Delete a product
|
|
393
|
+
* @param {String} projectOrProductUID
|
|
394
|
+
* @param {String} productUID
|
|
395
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
396
|
+
*/
|
|
397
|
+
}, {
|
|
398
|
+
key: "deleteProductWithHttpInfo",
|
|
399
|
+
value: function deleteProductWithHttpInfo(projectOrProductUID, productUID) {
|
|
400
|
+
var postBody = null;
|
|
401
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
402
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
403
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteProduct");
|
|
404
|
+
}
|
|
405
|
+
// verify the required parameter 'productUID' is set
|
|
406
|
+
if (productUID === undefined || productUID === null) {
|
|
407
|
+
throw new _Error["default"]("Missing the required parameter 'productUID' when calling deleteProduct");
|
|
408
|
+
}
|
|
409
|
+
var pathParams = {
|
|
410
|
+
'projectOrProductUID': projectOrProductUID,
|
|
411
|
+
'productUID': productUID
|
|
412
|
+
};
|
|
413
|
+
var queryParams = {};
|
|
414
|
+
var headerParams = {};
|
|
415
|
+
var formParams = {};
|
|
416
|
+
var authNames = ['personalAccessToken'];
|
|
417
|
+
var contentTypes = [];
|
|
418
|
+
var accepts = ['application/json'];
|
|
419
|
+
var returnType = null;
|
|
420
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/products/{productUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* Delete a product
|
|
425
|
+
* @param {String} projectOrProductUID
|
|
426
|
+
* @param {String} productUID
|
|
427
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
428
|
+
*/
|
|
429
|
+
}, {
|
|
430
|
+
key: "deleteProduct",
|
|
431
|
+
value: function deleteProduct(projectOrProductUID, productUID) {
|
|
432
|
+
return this.deleteProductWithHttpInfo(projectOrProductUID, productUID).then(function (response_and_data) {
|
|
433
|
+
return response_and_data.data;
|
|
434
|
+
});
|
|
435
|
+
}
|
|
436
|
+
|
|
391
437
|
/**
|
|
392
438
|
* Delete a Project by ProjectUID
|
|
393
|
-
* @param {String} projectOrProductUID
|
|
439
|
+
* @param {String} projectOrProductUID
|
|
394
440
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
395
441
|
*/
|
|
396
442
|
}, {
|
|
@@ -402,21 +448,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
402
448
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteProject");
|
|
403
449
|
}
|
|
404
450
|
var pathParams = {
|
|
405
|
-
projectOrProductUID: projectOrProductUID
|
|
451
|
+
'projectOrProductUID': projectOrProductUID
|
|
406
452
|
};
|
|
407
453
|
var queryParams = {};
|
|
408
454
|
var headerParams = {};
|
|
409
455
|
var formParams = {};
|
|
410
|
-
var authNames = [
|
|
456
|
+
var authNames = ['personalAccessToken'];
|
|
411
457
|
var contentTypes = [];
|
|
412
|
-
var accepts = [
|
|
458
|
+
var accepts = ['application/json'];
|
|
413
459
|
var returnType = null;
|
|
414
|
-
return this.apiClient.callApi(
|
|
460
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
415
461
|
}
|
|
416
462
|
|
|
417
463
|
/**
|
|
418
464
|
* Delete a Project by ProjectUID
|
|
419
|
-
* @param {String} projectOrProductUID
|
|
465
|
+
* @param {String} projectOrProductUID
|
|
420
466
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
421
467
|
*/
|
|
422
468
|
}, {
|
|
@@ -429,7 +475,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
429
475
|
|
|
430
476
|
/**
|
|
431
477
|
* Delete an environment variable of a project by key
|
|
432
|
-
* @param {String} projectOrProductUID
|
|
478
|
+
* @param {String} projectOrProductUID
|
|
433
479
|
* @param {String} key The environment variable key to delete.
|
|
434
480
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
435
481
|
*/
|
|
@@ -446,22 +492,22 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
446
492
|
throw new _Error["default"]("Missing the required parameter 'key' when calling deleteProjectEnvironmentVariable");
|
|
447
493
|
}
|
|
448
494
|
var pathParams = {
|
|
449
|
-
projectOrProductUID: projectOrProductUID,
|
|
450
|
-
key: key
|
|
495
|
+
'projectOrProductUID': projectOrProductUID,
|
|
496
|
+
'key': key
|
|
451
497
|
};
|
|
452
498
|
var queryParams = {};
|
|
453
499
|
var headerParams = {};
|
|
454
500
|
var formParams = {};
|
|
455
|
-
var authNames = [
|
|
501
|
+
var authNames = ['personalAccessToken'];
|
|
456
502
|
var contentTypes = [];
|
|
457
|
-
var accepts = [
|
|
503
|
+
var accepts = ['application/json'];
|
|
458
504
|
var returnType = _EnvironmentVariables["default"];
|
|
459
|
-
return this.apiClient.callApi(
|
|
505
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/environment_variables/{key}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
460
506
|
}
|
|
461
507
|
|
|
462
508
|
/**
|
|
463
509
|
* Delete an environment variable of a project by key
|
|
464
|
-
* @param {String} projectOrProductUID
|
|
510
|
+
* @param {String} projectOrProductUID
|
|
465
511
|
* @param {String} key The environment variable key to delete.
|
|
466
512
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
467
513
|
*/
|
|
@@ -475,18 +521,18 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
475
521
|
|
|
476
522
|
/**
|
|
477
523
|
* Update/cancel host or notecard firmware updates
|
|
478
|
-
* @param {String} projectOrProductUID
|
|
479
|
-
* @param {module:model/String} firmwareType
|
|
480
|
-
* @param {module:model/String} action
|
|
524
|
+
* @param {String} projectOrProductUID
|
|
525
|
+
* @param {module:model/String} firmwareType
|
|
526
|
+
* @param {module:model/String} action
|
|
481
527
|
* @param {Object} opts Optional parameters
|
|
482
528
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
483
529
|
* @param {Array.<String>} opts.tag Tag filter
|
|
484
530
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
485
|
-
* @param {String} opts.fleetUID
|
|
531
|
+
* @param {String} opts.fleetUID
|
|
486
532
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
487
533
|
* @param {Array.<String>} opts.location Location filter
|
|
488
534
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
489
|
-
* @param {Array.<String>} opts.productUID
|
|
535
|
+
* @param {Array.<String>} opts.productUID
|
|
490
536
|
* @param {Array.<String>} opts.sku SKU filter
|
|
491
537
|
* @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
|
|
492
538
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
@@ -495,7 +541,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
495
541
|
key: "dfuActionWithHttpInfo",
|
|
496
542
|
value: function dfuActionWithHttpInfo(projectOrProductUID, firmwareType, action, opts) {
|
|
497
543
|
opts = opts || {};
|
|
498
|
-
var postBody = opts[
|
|
544
|
+
var postBody = opts['dfuActionRequest'];
|
|
499
545
|
// verify the required parameter 'projectOrProductUID' is set
|
|
500
546
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
501
547
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling dfuAction");
|
|
@@ -509,44 +555,44 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
509
555
|
throw new _Error["default"]("Missing the required parameter 'action' when calling dfuAction");
|
|
510
556
|
}
|
|
511
557
|
var pathParams = {
|
|
512
|
-
projectOrProductUID: projectOrProductUID,
|
|
513
|
-
firmwareType: firmwareType,
|
|
514
|
-
action: action
|
|
558
|
+
'projectOrProductUID': projectOrProductUID,
|
|
559
|
+
'firmwareType': firmwareType,
|
|
560
|
+
'action': action
|
|
515
561
|
};
|
|
516
562
|
var queryParams = {
|
|
517
|
-
deviceUID: this.apiClient.buildCollectionParam(opts[
|
|
518
|
-
tag: this.apiClient.buildCollectionParam(opts[
|
|
519
|
-
serialNumber: this.apiClient.buildCollectionParam(opts[
|
|
520
|
-
fleetUID: opts[
|
|
521
|
-
notecardFirmware: this.apiClient.buildCollectionParam(opts[
|
|
522
|
-
location: this.apiClient.buildCollectionParam(opts[
|
|
523
|
-
hostFirmware: this.apiClient.buildCollectionParam(opts[
|
|
524
|
-
productUID: this.apiClient.buildCollectionParam(opts[
|
|
525
|
-
sku: this.apiClient.buildCollectionParam(opts[
|
|
563
|
+
'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
|
|
564
|
+
'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
|
|
565
|
+
'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
|
|
566
|
+
'fleetUID': opts['fleetUID'],
|
|
567
|
+
'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
|
|
568
|
+
'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
|
|
569
|
+
'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
|
|
570
|
+
'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
|
|
571
|
+
'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
|
|
526
572
|
};
|
|
527
573
|
var headerParams = {};
|
|
528
574
|
var formParams = {};
|
|
529
|
-
var authNames = [
|
|
530
|
-
var contentTypes = [
|
|
531
|
-
var accepts = [
|
|
575
|
+
var authNames = ['personalAccessToken'];
|
|
576
|
+
var contentTypes = ['application/json'];
|
|
577
|
+
var accepts = ['application/json'];
|
|
532
578
|
var returnType = null;
|
|
533
|
-
return this.apiClient.callApi(
|
|
579
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/dfu/{firmwareType}/{action}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
534
580
|
}
|
|
535
581
|
|
|
536
582
|
/**
|
|
537
583
|
* Update/cancel host or notecard firmware updates
|
|
538
|
-
* @param {String} projectOrProductUID
|
|
539
|
-
* @param {module:model/String} firmwareType
|
|
540
|
-
* @param {module:model/String} action
|
|
584
|
+
* @param {String} projectOrProductUID
|
|
585
|
+
* @param {module:model/String} firmwareType
|
|
586
|
+
* @param {module:model/String} action
|
|
541
587
|
* @param {Object} opts Optional parameters
|
|
542
588
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
543
589
|
* @param {Array.<String>} opts.tag Tag filter
|
|
544
590
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
545
|
-
* @param {String} opts.fleetUID
|
|
591
|
+
* @param {String} opts.fleetUID
|
|
546
592
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
547
593
|
* @param {Array.<String>} opts.location Location filter
|
|
548
594
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
549
|
-
* @param {Array.<String>} opts.productUID
|
|
595
|
+
* @param {Array.<String>} opts.productUID
|
|
550
596
|
* @param {Array.<String>} opts.sku SKU filter
|
|
551
597
|
* @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
|
|
552
598
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
@@ -561,7 +607,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
561
607
|
|
|
562
608
|
/**
|
|
563
609
|
* Disable the project-level event JSONata transformation
|
|
564
|
-
* @param {String} projectOrProductUID
|
|
610
|
+
* @param {String} projectOrProductUID
|
|
565
611
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
566
612
|
*/
|
|
567
613
|
}, {
|
|
@@ -573,21 +619,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
573
619
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling disableGlobalTransformation");
|
|
574
620
|
}
|
|
575
621
|
var pathParams = {
|
|
576
|
-
projectOrProductUID: projectOrProductUID
|
|
622
|
+
'projectOrProductUID': projectOrProductUID
|
|
577
623
|
};
|
|
578
624
|
var queryParams = {};
|
|
579
625
|
var headerParams = {};
|
|
580
626
|
var formParams = {};
|
|
581
|
-
var authNames = [
|
|
627
|
+
var authNames = ['personalAccessToken'];
|
|
582
628
|
var contentTypes = [];
|
|
583
|
-
var accepts = [
|
|
629
|
+
var accepts = ['application/json'];
|
|
584
630
|
var returnType = null;
|
|
585
|
-
return this.apiClient.callApi(
|
|
631
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/global-transformation/disable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
586
632
|
}
|
|
587
633
|
|
|
588
634
|
/**
|
|
589
635
|
* Disable the project-level event JSONata transformation
|
|
590
|
-
* @param {String} projectOrProductUID
|
|
636
|
+
* @param {String} projectOrProductUID
|
|
591
637
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
592
638
|
*/
|
|
593
639
|
}, {
|
|
@@ -600,7 +646,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
600
646
|
|
|
601
647
|
/**
|
|
602
648
|
* Enable the project-level event JSONata transformation
|
|
603
|
-
* @param {String} projectOrProductUID
|
|
649
|
+
* @param {String} projectOrProductUID
|
|
604
650
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
605
651
|
*/
|
|
606
652
|
}, {
|
|
@@ -612,21 +658,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
612
658
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling enableGlobalTransformation");
|
|
613
659
|
}
|
|
614
660
|
var pathParams = {
|
|
615
|
-
projectOrProductUID: projectOrProductUID
|
|
661
|
+
'projectOrProductUID': projectOrProductUID
|
|
616
662
|
};
|
|
617
663
|
var queryParams = {};
|
|
618
664
|
var headerParams = {};
|
|
619
665
|
var formParams = {};
|
|
620
|
-
var authNames = [
|
|
666
|
+
var authNames = ['personalAccessToken'];
|
|
621
667
|
var contentTypes = [];
|
|
622
|
-
var accepts = [
|
|
668
|
+
var accepts = ['application/json'];
|
|
623
669
|
var returnType = null;
|
|
624
|
-
return this.apiClient.callApi(
|
|
670
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/global-transformation/enable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
625
671
|
}
|
|
626
672
|
|
|
627
673
|
/**
|
|
628
674
|
* Enable the project-level event JSONata transformation
|
|
629
|
-
* @param {String} projectOrProductUID
|
|
675
|
+
* @param {String} projectOrProductUID
|
|
630
676
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
631
677
|
*/
|
|
632
678
|
}, {
|
|
@@ -639,9 +685,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
639
685
|
|
|
640
686
|
/**
|
|
641
687
|
* Get device DFU history for host or Notecard firmware
|
|
642
|
-
* @param {String} projectOrProductUID
|
|
643
|
-
* @param {String} deviceUID
|
|
644
|
-
* @param {module:model/String} firmwareType
|
|
688
|
+
* @param {String} projectOrProductUID
|
|
689
|
+
* @param {String} deviceUID
|
|
690
|
+
* @param {module:model/String} firmwareType
|
|
645
691
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuHistory} and HTTP response
|
|
646
692
|
*/
|
|
647
693
|
}, {
|
|
@@ -661,25 +707,25 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
661
707
|
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDeviceDfuHistory");
|
|
662
708
|
}
|
|
663
709
|
var pathParams = {
|
|
664
|
-
projectOrProductUID: projectOrProductUID,
|
|
665
|
-
deviceUID: deviceUID,
|
|
666
|
-
firmwareType: firmwareType
|
|
710
|
+
'projectOrProductUID': projectOrProductUID,
|
|
711
|
+
'deviceUID': deviceUID,
|
|
712
|
+
'firmwareType': firmwareType
|
|
667
713
|
};
|
|
668
714
|
var queryParams = {};
|
|
669
715
|
var headerParams = {};
|
|
670
716
|
var formParams = {};
|
|
671
|
-
var authNames = [
|
|
717
|
+
var authNames = ['personalAccessToken'];
|
|
672
718
|
var contentTypes = [];
|
|
673
|
-
var accepts = [
|
|
719
|
+
var accepts = ['application/json'];
|
|
674
720
|
var returnType = _DeviceDfuHistory["default"];
|
|
675
|
-
return this.apiClient.callApi(
|
|
721
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/dfu/{firmwareType}/history', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
676
722
|
}
|
|
677
723
|
|
|
678
724
|
/**
|
|
679
725
|
* Get device DFU history for host or Notecard firmware
|
|
680
|
-
* @param {String} projectOrProductUID
|
|
681
|
-
* @param {String} deviceUID
|
|
682
|
-
* @param {module:model/String} firmwareType
|
|
726
|
+
* @param {String} projectOrProductUID
|
|
727
|
+
* @param {String} deviceUID
|
|
728
|
+
* @param {module:model/String} firmwareType
|
|
683
729
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuHistory}
|
|
684
730
|
*/
|
|
685
731
|
}, {
|
|
@@ -692,9 +738,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
692
738
|
|
|
693
739
|
/**
|
|
694
740
|
* Get device DFU history for host or Notecard firmware
|
|
695
|
-
* @param {String} projectOrProductUID
|
|
696
|
-
* @param {String} deviceUID
|
|
697
|
-
* @param {module:model/String} firmwareType
|
|
741
|
+
* @param {String} projectOrProductUID
|
|
742
|
+
* @param {String} deviceUID
|
|
743
|
+
* @param {module:model/String} firmwareType
|
|
698
744
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuStatus} and HTTP response
|
|
699
745
|
*/
|
|
700
746
|
}, {
|
|
@@ -714,25 +760,25 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
714
760
|
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDeviceDfuStatus");
|
|
715
761
|
}
|
|
716
762
|
var pathParams = {
|
|
717
|
-
projectOrProductUID: projectOrProductUID,
|
|
718
|
-
deviceUID: deviceUID,
|
|
719
|
-
firmwareType: firmwareType
|
|
763
|
+
'projectOrProductUID': projectOrProductUID,
|
|
764
|
+
'deviceUID': deviceUID,
|
|
765
|
+
'firmwareType': firmwareType
|
|
720
766
|
};
|
|
721
767
|
var queryParams = {};
|
|
722
768
|
var headerParams = {};
|
|
723
769
|
var formParams = {};
|
|
724
|
-
var authNames = [
|
|
770
|
+
var authNames = ['personalAccessToken'];
|
|
725
771
|
var contentTypes = [];
|
|
726
|
-
var accepts = [
|
|
772
|
+
var accepts = ['application/json'];
|
|
727
773
|
var returnType = _DeviceDfuStatus["default"];
|
|
728
|
-
return this.apiClient.callApi(
|
|
774
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/dfu/{firmwareType}/status', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
729
775
|
}
|
|
730
776
|
|
|
731
777
|
/**
|
|
732
778
|
* Get device DFU history for host or Notecard firmware
|
|
733
|
-
* @param {String} projectOrProductUID
|
|
734
|
-
* @param {String} deviceUID
|
|
735
|
-
* @param {module:model/String} firmwareType
|
|
779
|
+
* @param {String} projectOrProductUID
|
|
780
|
+
* @param {String} deviceUID
|
|
781
|
+
* @param {module:model/String} firmwareType
|
|
736
782
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuStatus}
|
|
737
783
|
*/
|
|
738
784
|
}, {
|
|
@@ -745,8 +791,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
745
791
|
|
|
746
792
|
/**
|
|
747
793
|
* Get Device Fleets
|
|
748
|
-
* @param {String} projectOrProductUID
|
|
749
|
-
* @param {String} deviceUID
|
|
794
|
+
* @param {String} projectOrProductUID
|
|
795
|
+
* @param {String} deviceUID
|
|
750
796
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
751
797
|
*/
|
|
752
798
|
}, {
|
|
@@ -762,23 +808,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
762
808
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceFleets");
|
|
763
809
|
}
|
|
764
810
|
var pathParams = {
|
|
765
|
-
projectOrProductUID: projectOrProductUID,
|
|
766
|
-
deviceUID: deviceUID
|
|
811
|
+
'projectOrProductUID': projectOrProductUID,
|
|
812
|
+
'deviceUID': deviceUID
|
|
767
813
|
};
|
|
768
814
|
var queryParams = {};
|
|
769
815
|
var headerParams = {};
|
|
770
816
|
var formParams = {};
|
|
771
|
-
var authNames = [
|
|
817
|
+
var authNames = ['personalAccessToken'];
|
|
772
818
|
var contentTypes = [];
|
|
773
|
-
var accepts = [
|
|
819
|
+
var accepts = ['application/json'];
|
|
774
820
|
var returnType = _GetDeviceFleets200Response["default"];
|
|
775
|
-
return this.apiClient.callApi(
|
|
821
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/fleets', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
776
822
|
}
|
|
777
823
|
|
|
778
824
|
/**
|
|
779
825
|
* Get Device Fleets
|
|
780
|
-
* @param {String} projectOrProductUID
|
|
781
|
-
* @param {String} deviceUID
|
|
826
|
+
* @param {String} projectOrProductUID
|
|
827
|
+
* @param {String} deviceUID
|
|
782
828
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
783
829
|
*/
|
|
784
830
|
}, {
|
|
@@ -791,8 +837,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
791
837
|
|
|
792
838
|
/**
|
|
793
839
|
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
794
|
-
* @param {String} projectOrProductUID
|
|
795
|
-
* @param {module:model/String} firmwareType
|
|
840
|
+
* @param {String} projectOrProductUID
|
|
841
|
+
* @param {module:model/String} firmwareType
|
|
796
842
|
* @param {Object} opts Optional parameters
|
|
797
843
|
* @param {Number} opts.pageSize (default to 50)
|
|
798
844
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -801,11 +847,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
801
847
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
802
848
|
* @param {Array.<String>} opts.tag Tag filter
|
|
803
849
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
804
|
-
* @param {String} opts.fleetUID
|
|
850
|
+
* @param {String} opts.fleetUID
|
|
805
851
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
806
852
|
* @param {Array.<String>} opts.location Location filter
|
|
807
853
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
808
|
-
* @param {Array.<String>} opts.productUID
|
|
854
|
+
* @param {Array.<String>} opts.productUID
|
|
809
855
|
* @param {Array.<String>} opts.sku SKU filter
|
|
810
856
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuHistoryPage} and HTTP response
|
|
811
857
|
*/
|
|
@@ -823,37 +869,37 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
823
869
|
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDevicesDfuHistory");
|
|
824
870
|
}
|
|
825
871
|
var pathParams = {
|
|
826
|
-
projectOrProductUID: projectOrProductUID,
|
|
827
|
-
firmwareType: firmwareType
|
|
872
|
+
'projectOrProductUID': projectOrProductUID,
|
|
873
|
+
'firmwareType': firmwareType
|
|
828
874
|
};
|
|
829
875
|
var queryParams = {
|
|
830
|
-
pageSize: opts[
|
|
831
|
-
pageNum: opts[
|
|
832
|
-
sortBy: opts[
|
|
833
|
-
sortOrder: opts[
|
|
834
|
-
deviceUID: this.apiClient.buildCollectionParam(opts[
|
|
835
|
-
tag: this.apiClient.buildCollectionParam(opts[
|
|
836
|
-
serialNumber: this.apiClient.buildCollectionParam(opts[
|
|
837
|
-
fleetUID: opts[
|
|
838
|
-
notecardFirmware: this.apiClient.buildCollectionParam(opts[
|
|
839
|
-
location: this.apiClient.buildCollectionParam(opts[
|
|
840
|
-
hostFirmware: this.apiClient.buildCollectionParam(opts[
|
|
841
|
-
productUID: this.apiClient.buildCollectionParam(opts[
|
|
842
|
-
sku: this.apiClient.buildCollectionParam(opts[
|
|
876
|
+
'pageSize': opts['pageSize'],
|
|
877
|
+
'pageNum': opts['pageNum'],
|
|
878
|
+
'sortBy': opts['sortBy'],
|
|
879
|
+
'sortOrder': opts['sortOrder'],
|
|
880
|
+
'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
|
|
881
|
+
'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
|
|
882
|
+
'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
|
|
883
|
+
'fleetUID': opts['fleetUID'],
|
|
884
|
+
'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
|
|
885
|
+
'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
|
|
886
|
+
'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
|
|
887
|
+
'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
|
|
888
|
+
'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
|
|
843
889
|
};
|
|
844
890
|
var headerParams = {};
|
|
845
891
|
var formParams = {};
|
|
846
|
-
var authNames = [
|
|
892
|
+
var authNames = ['personalAccessToken'];
|
|
847
893
|
var contentTypes = [];
|
|
848
|
-
var accepts = [
|
|
894
|
+
var accepts = ['application/json'];
|
|
849
895
|
var returnType = _DeviceDfuHistoryPage["default"];
|
|
850
|
-
return this.apiClient.callApi(
|
|
896
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/dfu/{firmwareType}/history', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
851
897
|
}
|
|
852
898
|
|
|
853
899
|
/**
|
|
854
900
|
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
855
|
-
* @param {String} projectOrProductUID
|
|
856
|
-
* @param {module:model/String} firmwareType
|
|
901
|
+
* @param {String} projectOrProductUID
|
|
902
|
+
* @param {module:model/String} firmwareType
|
|
857
903
|
* @param {Object} opts Optional parameters
|
|
858
904
|
* @param {Number} opts.pageSize (default to 50)
|
|
859
905
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -862,11 +908,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
862
908
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
863
909
|
* @param {Array.<String>} opts.tag Tag filter
|
|
864
910
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
865
|
-
* @param {String} opts.fleetUID
|
|
911
|
+
* @param {String} opts.fleetUID
|
|
866
912
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
867
913
|
* @param {Array.<String>} opts.location Location filter
|
|
868
914
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
869
|
-
* @param {Array.<String>} opts.productUID
|
|
915
|
+
* @param {Array.<String>} opts.productUID
|
|
870
916
|
* @param {Array.<String>} opts.sku SKU filter
|
|
871
917
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuHistoryPage}
|
|
872
918
|
*/
|
|
@@ -880,8 +926,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
880
926
|
|
|
881
927
|
/**
|
|
882
928
|
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
883
|
-
* @param {String} projectOrProductUID
|
|
884
|
-
* @param {module:model/String} firmwareType
|
|
929
|
+
* @param {String} projectOrProductUID
|
|
930
|
+
* @param {module:model/String} firmwareType
|
|
885
931
|
* @param {Object} opts Optional parameters
|
|
886
932
|
* @param {Number} opts.pageSize (default to 50)
|
|
887
933
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -890,11 +936,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
890
936
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
891
937
|
* @param {Array.<String>} opts.tag Tag filter
|
|
892
938
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
893
|
-
* @param {String} opts.fleetUID
|
|
939
|
+
* @param {String} opts.fleetUID
|
|
894
940
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
895
941
|
* @param {Array.<String>} opts.location Location filter
|
|
896
942
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
897
|
-
* @param {Array.<String>} opts.productUID
|
|
943
|
+
* @param {Array.<String>} opts.productUID
|
|
898
944
|
* @param {Array.<String>} opts.sku SKU filter
|
|
899
945
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuStatusPage} and HTTP response
|
|
900
946
|
*/
|
|
@@ -912,37 +958,37 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
912
958
|
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDevicesDfuStatus");
|
|
913
959
|
}
|
|
914
960
|
var pathParams = {
|
|
915
|
-
projectOrProductUID: projectOrProductUID,
|
|
916
|
-
firmwareType: firmwareType
|
|
961
|
+
'projectOrProductUID': projectOrProductUID,
|
|
962
|
+
'firmwareType': firmwareType
|
|
917
963
|
};
|
|
918
964
|
var queryParams = {
|
|
919
|
-
pageSize: opts[
|
|
920
|
-
pageNum: opts[
|
|
921
|
-
sortBy: opts[
|
|
922
|
-
sortOrder: opts[
|
|
923
|
-
deviceUID: this.apiClient.buildCollectionParam(opts[
|
|
924
|
-
tag: this.apiClient.buildCollectionParam(opts[
|
|
925
|
-
serialNumber: this.apiClient.buildCollectionParam(opts[
|
|
926
|
-
fleetUID: opts[
|
|
927
|
-
notecardFirmware: this.apiClient.buildCollectionParam(opts[
|
|
928
|
-
location: this.apiClient.buildCollectionParam(opts[
|
|
929
|
-
hostFirmware: this.apiClient.buildCollectionParam(opts[
|
|
930
|
-
productUID: this.apiClient.buildCollectionParam(opts[
|
|
931
|
-
sku: this.apiClient.buildCollectionParam(opts[
|
|
965
|
+
'pageSize': opts['pageSize'],
|
|
966
|
+
'pageNum': opts['pageNum'],
|
|
967
|
+
'sortBy': opts['sortBy'],
|
|
968
|
+
'sortOrder': opts['sortOrder'],
|
|
969
|
+
'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
|
|
970
|
+
'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
|
|
971
|
+
'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
|
|
972
|
+
'fleetUID': opts['fleetUID'],
|
|
973
|
+
'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
|
|
974
|
+
'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
|
|
975
|
+
'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
|
|
976
|
+
'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
|
|
977
|
+
'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
|
|
932
978
|
};
|
|
933
979
|
var headerParams = {};
|
|
934
980
|
var formParams = {};
|
|
935
|
-
var authNames = [
|
|
981
|
+
var authNames = ['personalAccessToken'];
|
|
936
982
|
var contentTypes = [];
|
|
937
|
-
var accepts = [
|
|
983
|
+
var accepts = ['application/json'];
|
|
938
984
|
var returnType = _DeviceDfuStatusPage["default"];
|
|
939
|
-
return this.apiClient.callApi(
|
|
985
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/dfu/{firmwareType}/status', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
940
986
|
}
|
|
941
987
|
|
|
942
988
|
/**
|
|
943
989
|
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
944
|
-
* @param {String} projectOrProductUID
|
|
945
|
-
* @param {module:model/String} firmwareType
|
|
990
|
+
* @param {String} projectOrProductUID
|
|
991
|
+
* @param {module:model/String} firmwareType
|
|
946
992
|
* @param {Object} opts Optional parameters
|
|
947
993
|
* @param {Number} opts.pageSize (default to 50)
|
|
948
994
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -951,11 +997,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
951
997
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
952
998
|
* @param {Array.<String>} opts.tag Tag filter
|
|
953
999
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
954
|
-
* @param {String} opts.fleetUID
|
|
1000
|
+
* @param {String} opts.fleetUID
|
|
955
1001
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
956
1002
|
* @param {Array.<String>} opts.location Location filter
|
|
957
1003
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
958
|
-
* @param {Array.<String>} opts.productUID
|
|
1004
|
+
* @param {Array.<String>} opts.productUID
|
|
959
1005
|
* @param {Array.<String>} opts.sku SKU filter
|
|
960
1006
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuStatusPage}
|
|
961
1007
|
*/
|
|
@@ -969,15 +1015,15 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
969
1015
|
|
|
970
1016
|
/**
|
|
971
1017
|
* Get Available Firmware Information
|
|
972
|
-
* @param {String} projectOrProductUID
|
|
1018
|
+
* @param {String} projectOrProductUID
|
|
973
1019
|
* @param {Object} opts Optional parameters
|
|
974
|
-
* @param {String} opts.product
|
|
975
|
-
* @param {String} opts.firmwareType
|
|
976
|
-
* @param {String} opts.version
|
|
977
|
-
* @param {String} opts.target
|
|
978
|
-
* @param {String} opts.filename
|
|
979
|
-
* @param {String} opts.md5
|
|
980
|
-
* @param {Boolean} opts.unpublished
|
|
1020
|
+
* @param {String} opts.product
|
|
1021
|
+
* @param {String} opts.firmwareType
|
|
1022
|
+
* @param {String} opts.version
|
|
1023
|
+
* @param {String} opts.target
|
|
1024
|
+
* @param {String} opts.filename
|
|
1025
|
+
* @param {String} opts.md5
|
|
1026
|
+
* @param {Boolean} opts.unpublished
|
|
981
1027
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/FirmwareInfo>} and HTTP response
|
|
982
1028
|
*/
|
|
983
1029
|
}, {
|
|
@@ -990,37 +1036,37 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
990
1036
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getFirmwareInfo");
|
|
991
1037
|
}
|
|
992
1038
|
var pathParams = {
|
|
993
|
-
projectOrProductUID: projectOrProductUID
|
|
1039
|
+
'projectOrProductUID': projectOrProductUID
|
|
994
1040
|
};
|
|
995
1041
|
var queryParams = {
|
|
996
|
-
product: opts[
|
|
997
|
-
firmwareType: opts[
|
|
998
|
-
version: opts[
|
|
999
|
-
target: opts[
|
|
1000
|
-
filename: opts[
|
|
1001
|
-
md5: opts[
|
|
1002
|
-
unpublished: opts[
|
|
1042
|
+
'product': opts['product'],
|
|
1043
|
+
'firmwareType': opts['firmwareType'],
|
|
1044
|
+
'version': opts['version'],
|
|
1045
|
+
'target': opts['target'],
|
|
1046
|
+
'filename': opts['filename'],
|
|
1047
|
+
'md5': opts['md5'],
|
|
1048
|
+
'unpublished': opts['unpublished']
|
|
1003
1049
|
};
|
|
1004
1050
|
var headerParams = {};
|
|
1005
1051
|
var formParams = {};
|
|
1006
|
-
var authNames = [
|
|
1052
|
+
var authNames = ['personalAccessToken'];
|
|
1007
1053
|
var contentTypes = [];
|
|
1008
|
-
var accepts = [
|
|
1054
|
+
var accepts = ['application/json'];
|
|
1009
1055
|
var returnType = [_FirmwareInfo["default"]];
|
|
1010
|
-
return this.apiClient.callApi(
|
|
1056
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/firmware', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1011
1057
|
}
|
|
1012
1058
|
|
|
1013
1059
|
/**
|
|
1014
1060
|
* Get Available Firmware Information
|
|
1015
|
-
* @param {String} projectOrProductUID
|
|
1061
|
+
* @param {String} projectOrProductUID
|
|
1016
1062
|
* @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
|
|
1063
|
+
* @param {String} opts.product
|
|
1064
|
+
* @param {String} opts.firmwareType
|
|
1065
|
+
* @param {String} opts.version
|
|
1066
|
+
* @param {String} opts.target
|
|
1067
|
+
* @param {String} opts.filename
|
|
1068
|
+
* @param {String} opts.md5
|
|
1069
|
+
* @param {Boolean} opts.unpublished
|
|
1024
1070
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/FirmwareInfo>}
|
|
1025
1071
|
*/
|
|
1026
1072
|
}, {
|
|
@@ -1033,8 +1079,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1033
1079
|
|
|
1034
1080
|
/**
|
|
1035
1081
|
* Get Fleet
|
|
1036
|
-
* @param {String} projectOrProductUID
|
|
1037
|
-
* @param {String} fleetUID
|
|
1082
|
+
* @param {String} projectOrProductUID
|
|
1083
|
+
* @param {String} fleetUID
|
|
1038
1084
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
1039
1085
|
*/
|
|
1040
1086
|
}, {
|
|
@@ -1050,23 +1096,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1050
1096
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleet");
|
|
1051
1097
|
}
|
|
1052
1098
|
var pathParams = {
|
|
1053
|
-
projectOrProductUID: projectOrProductUID,
|
|
1054
|
-
fleetUID: fleetUID
|
|
1099
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1100
|
+
'fleetUID': fleetUID
|
|
1055
1101
|
};
|
|
1056
1102
|
var queryParams = {};
|
|
1057
1103
|
var headerParams = {};
|
|
1058
1104
|
var formParams = {};
|
|
1059
|
-
var authNames = [
|
|
1105
|
+
var authNames = ['personalAccessToken'];
|
|
1060
1106
|
var contentTypes = [];
|
|
1061
|
-
var accepts = [
|
|
1107
|
+
var accepts = ['application/json'];
|
|
1062
1108
|
var returnType = _Fleet["default"];
|
|
1063
|
-
return this.apiClient.callApi(
|
|
1109
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1064
1110
|
}
|
|
1065
1111
|
|
|
1066
1112
|
/**
|
|
1067
1113
|
* Get Fleet
|
|
1068
|
-
* @param {String} projectOrProductUID
|
|
1069
|
-
* @param {String} fleetUID
|
|
1114
|
+
* @param {String} projectOrProductUID
|
|
1115
|
+
* @param {String} fleetUID
|
|
1070
1116
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
1071
1117
|
*/
|
|
1072
1118
|
}, {
|
|
@@ -1079,8 +1125,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1079
1125
|
|
|
1080
1126
|
/**
|
|
1081
1127
|
* Get environment variable hierarchy for a device
|
|
1082
|
-
* @param {String} projectOrProductUID
|
|
1083
|
-
* @param {String} fleetUID
|
|
1128
|
+
* @param {String} projectOrProductUID
|
|
1129
|
+
* @param {String} fleetUID
|
|
1084
1130
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
|
|
1085
1131
|
*/
|
|
1086
1132
|
}, {
|
|
@@ -1096,23 +1142,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1096
1142
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEnvironmentHierarchy");
|
|
1097
1143
|
}
|
|
1098
1144
|
var pathParams = {
|
|
1099
|
-
projectOrProductUID: projectOrProductUID,
|
|
1100
|
-
fleetUID: fleetUID
|
|
1145
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1146
|
+
'fleetUID': fleetUID
|
|
1101
1147
|
};
|
|
1102
1148
|
var queryParams = {};
|
|
1103
1149
|
var headerParams = {};
|
|
1104
1150
|
var formParams = {};
|
|
1105
|
-
var authNames = [
|
|
1151
|
+
var authNames = ['personalAccessToken'];
|
|
1106
1152
|
var contentTypes = [];
|
|
1107
|
-
var accepts = [
|
|
1153
|
+
var accepts = ['application/json'];
|
|
1108
1154
|
var returnType = _EnvTreeJsonNode["default"];
|
|
1109
|
-
return this.apiClient.callApi(
|
|
1155
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_hierarchy', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1110
1156
|
}
|
|
1111
1157
|
|
|
1112
1158
|
/**
|
|
1113
1159
|
* Get environment variable hierarchy for a device
|
|
1114
|
-
* @param {String} projectOrProductUID
|
|
1115
|
-
* @param {String} fleetUID
|
|
1160
|
+
* @param {String} projectOrProductUID
|
|
1161
|
+
* @param {String} fleetUID
|
|
1116
1162
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
|
|
1117
1163
|
*/
|
|
1118
1164
|
}, {
|
|
@@ -1125,8 +1171,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1125
1171
|
|
|
1126
1172
|
/**
|
|
1127
1173
|
* Get environment variables of a fleet
|
|
1128
|
-
* @param {String} projectOrProductUID
|
|
1129
|
-
* @param {String} fleetUID
|
|
1174
|
+
* @param {String} projectOrProductUID
|
|
1175
|
+
* @param {String} fleetUID
|
|
1130
1176
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1131
1177
|
*/
|
|
1132
1178
|
}, {
|
|
@@ -1142,23 +1188,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1142
1188
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEnvironmentVariables");
|
|
1143
1189
|
}
|
|
1144
1190
|
var pathParams = {
|
|
1145
|
-
projectOrProductUID: projectOrProductUID,
|
|
1146
|
-
fleetUID: fleetUID
|
|
1191
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1192
|
+
'fleetUID': fleetUID
|
|
1147
1193
|
};
|
|
1148
1194
|
var queryParams = {};
|
|
1149
1195
|
var headerParams = {};
|
|
1150
1196
|
var formParams = {};
|
|
1151
|
-
var authNames = [
|
|
1197
|
+
var authNames = ['personalAccessToken'];
|
|
1152
1198
|
var contentTypes = [];
|
|
1153
|
-
var accepts = [
|
|
1199
|
+
var accepts = ['application/json'];
|
|
1154
1200
|
var returnType = _EnvironmentVariables["default"];
|
|
1155
|
-
return this.apiClient.callApi(
|
|
1201
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1156
1202
|
}
|
|
1157
1203
|
|
|
1158
1204
|
/**
|
|
1159
1205
|
* Get environment variables of a fleet
|
|
1160
|
-
* @param {String} projectOrProductUID
|
|
1161
|
-
* @param {String} fleetUID
|
|
1206
|
+
* @param {String} projectOrProductUID
|
|
1207
|
+
* @param {String} fleetUID
|
|
1162
1208
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1163
1209
|
*/
|
|
1164
1210
|
}, {
|
|
@@ -1171,7 +1217,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1171
1217
|
|
|
1172
1218
|
/**
|
|
1173
1219
|
* Get variable format for a notefile
|
|
1174
|
-
* @param {String} projectOrProductUID
|
|
1220
|
+
* @param {String} projectOrProductUID
|
|
1175
1221
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/NotefileSchema>} and HTTP response
|
|
1176
1222
|
*/
|
|
1177
1223
|
}, {
|
|
@@ -1183,21 +1229,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1183
1229
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getNotefileSchemas");
|
|
1184
1230
|
}
|
|
1185
1231
|
var pathParams = {
|
|
1186
|
-
projectOrProductUID: projectOrProductUID
|
|
1232
|
+
'projectOrProductUID': projectOrProductUID
|
|
1187
1233
|
};
|
|
1188
1234
|
var queryParams = {};
|
|
1189
1235
|
var headerParams = {};
|
|
1190
1236
|
var formParams = {};
|
|
1191
1237
|
var authNames = [];
|
|
1192
1238
|
var contentTypes = [];
|
|
1193
|
-
var accepts = [
|
|
1239
|
+
var accepts = ['application/json'];
|
|
1194
1240
|
var returnType = [_NotefileSchema["default"]];
|
|
1195
|
-
return this.apiClient.callApi(
|
|
1241
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/schemas', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1196
1242
|
}
|
|
1197
1243
|
|
|
1198
1244
|
/**
|
|
1199
1245
|
* Get variable format for a notefile
|
|
1200
|
-
* @param {String} projectOrProductUID
|
|
1246
|
+
* @param {String} projectOrProductUID
|
|
1201
1247
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/NotefileSchema>}
|
|
1202
1248
|
*/
|
|
1203
1249
|
}, {
|
|
@@ -1208,9 +1254,48 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1208
1254
|
});
|
|
1209
1255
|
}
|
|
1210
1256
|
|
|
1257
|
+
/**
|
|
1258
|
+
* Get Products within a Project
|
|
1259
|
+
* @param {String} projectOrProductUID
|
|
1260
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProducts200Response} and HTTP response
|
|
1261
|
+
*/
|
|
1262
|
+
}, {
|
|
1263
|
+
key: "getProductsWithHttpInfo",
|
|
1264
|
+
value: function getProductsWithHttpInfo(projectOrProductUID) {
|
|
1265
|
+
var postBody = null;
|
|
1266
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
1267
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1268
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProducts");
|
|
1269
|
+
}
|
|
1270
|
+
var pathParams = {
|
|
1271
|
+
'projectOrProductUID': projectOrProductUID
|
|
1272
|
+
};
|
|
1273
|
+
var queryParams = {};
|
|
1274
|
+
var headerParams = {};
|
|
1275
|
+
var formParams = {};
|
|
1276
|
+
var authNames = ['personalAccessToken'];
|
|
1277
|
+
var contentTypes = [];
|
|
1278
|
+
var accepts = ['application/json'];
|
|
1279
|
+
var returnType = _GetProducts200Response["default"];
|
|
1280
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/products', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1283
|
+
/**
|
|
1284
|
+
* Get Products within a Project
|
|
1285
|
+
* @param {String} projectOrProductUID
|
|
1286
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProducts200Response}
|
|
1287
|
+
*/
|
|
1288
|
+
}, {
|
|
1289
|
+
key: "getProducts",
|
|
1290
|
+
value: function getProducts(projectOrProductUID) {
|
|
1291
|
+
return this.getProductsWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
|
|
1292
|
+
return response_and_data.data;
|
|
1293
|
+
});
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1211
1296
|
/**
|
|
1212
1297
|
* Get a Project by ProjectUID
|
|
1213
|
-
* @param {String} projectOrProductUID
|
|
1298
|
+
* @param {String} projectOrProductUID
|
|
1214
1299
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
1215
1300
|
*/
|
|
1216
1301
|
}, {
|
|
@@ -1222,21 +1307,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1222
1307
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProject");
|
|
1223
1308
|
}
|
|
1224
1309
|
var pathParams = {
|
|
1225
|
-
projectOrProductUID: projectOrProductUID
|
|
1310
|
+
'projectOrProductUID': projectOrProductUID
|
|
1226
1311
|
};
|
|
1227
1312
|
var queryParams = {};
|
|
1228
1313
|
var headerParams = {};
|
|
1229
1314
|
var formParams = {};
|
|
1230
|
-
var authNames = [
|
|
1315
|
+
var authNames = ['personalAccessToken'];
|
|
1231
1316
|
var contentTypes = [];
|
|
1232
|
-
var accepts = [
|
|
1317
|
+
var accepts = ['application/json'];
|
|
1233
1318
|
var returnType = _Project["default"];
|
|
1234
|
-
return this.apiClient.callApi(
|
|
1319
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1235
1320
|
}
|
|
1236
1321
|
|
|
1237
1322
|
/**
|
|
1238
1323
|
* Get a Project by ProjectUID
|
|
1239
|
-
* @param {String} projectOrProductUID
|
|
1324
|
+
* @param {String} projectOrProductUID
|
|
1240
1325
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
1241
1326
|
*/
|
|
1242
1327
|
}, {
|
|
@@ -1249,7 +1334,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1249
1334
|
|
|
1250
1335
|
/**
|
|
1251
1336
|
* Get a Project by ProductUID
|
|
1252
|
-
* @param {String} productUID
|
|
1337
|
+
* @param {String} productUID
|
|
1253
1338
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
1254
1339
|
*/
|
|
1255
1340
|
}, {
|
|
@@ -1261,21 +1346,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1261
1346
|
throw new _Error["default"]("Missing the required parameter 'productUID' when calling getProjectByProduct");
|
|
1262
1347
|
}
|
|
1263
1348
|
var pathParams = {
|
|
1264
|
-
productUID: productUID
|
|
1349
|
+
'productUID': productUID
|
|
1265
1350
|
};
|
|
1266
1351
|
var queryParams = {};
|
|
1267
1352
|
var headerParams = {};
|
|
1268
1353
|
var formParams = {};
|
|
1269
|
-
var authNames = [
|
|
1354
|
+
var authNames = ['personalAccessToken'];
|
|
1270
1355
|
var contentTypes = [];
|
|
1271
|
-
var accepts = [
|
|
1356
|
+
var accepts = ['application/json'];
|
|
1272
1357
|
var returnType = _Project["default"];
|
|
1273
|
-
return this.apiClient.callApi(
|
|
1358
|
+
return this.apiClient.callApi('/v1/products/{productUID}/project', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1274
1359
|
}
|
|
1275
1360
|
|
|
1276
1361
|
/**
|
|
1277
1362
|
* Get a Project by ProductUID
|
|
1278
|
-
* @param {String} productUID
|
|
1363
|
+
* @param {String} productUID
|
|
1279
1364
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
1280
1365
|
*/
|
|
1281
1366
|
}, {
|
|
@@ -1288,7 +1373,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1288
1373
|
|
|
1289
1374
|
/**
|
|
1290
1375
|
* Get environment variable hierarchy for a device
|
|
1291
|
-
* @param {String} projectOrProductUID
|
|
1376
|
+
* @param {String} projectOrProductUID
|
|
1292
1377
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
|
|
1293
1378
|
*/
|
|
1294
1379
|
}, {
|
|
@@ -1300,21 +1385,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1300
1385
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectEnvironmentHierarchy");
|
|
1301
1386
|
}
|
|
1302
1387
|
var pathParams = {
|
|
1303
|
-
projectOrProductUID: projectOrProductUID
|
|
1388
|
+
'projectOrProductUID': projectOrProductUID
|
|
1304
1389
|
};
|
|
1305
1390
|
var queryParams = {};
|
|
1306
1391
|
var headerParams = {};
|
|
1307
1392
|
var formParams = {};
|
|
1308
|
-
var authNames = [
|
|
1393
|
+
var authNames = ['personalAccessToken'];
|
|
1309
1394
|
var contentTypes = [];
|
|
1310
|
-
var accepts = [
|
|
1395
|
+
var accepts = ['application/json'];
|
|
1311
1396
|
var returnType = _EnvTreeJsonNode["default"];
|
|
1312
|
-
return this.apiClient.callApi(
|
|
1397
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/environment_hierarchy', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1313
1398
|
}
|
|
1314
1399
|
|
|
1315
1400
|
/**
|
|
1316
1401
|
* Get environment variable hierarchy for a device
|
|
1317
|
-
* @param {String} projectOrProductUID
|
|
1402
|
+
* @param {String} projectOrProductUID
|
|
1318
1403
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
|
|
1319
1404
|
*/
|
|
1320
1405
|
}, {
|
|
@@ -1327,7 +1412,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1327
1412
|
|
|
1328
1413
|
/**
|
|
1329
1414
|
* Get environment variables of a project
|
|
1330
|
-
* @param {String} projectOrProductUID
|
|
1415
|
+
* @param {String} projectOrProductUID
|
|
1331
1416
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1332
1417
|
*/
|
|
1333
1418
|
}, {
|
|
@@ -1339,21 +1424,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1339
1424
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectEnvironmentVariables");
|
|
1340
1425
|
}
|
|
1341
1426
|
var pathParams = {
|
|
1342
|
-
projectOrProductUID: projectOrProductUID
|
|
1427
|
+
'projectOrProductUID': projectOrProductUID
|
|
1343
1428
|
};
|
|
1344
1429
|
var queryParams = {};
|
|
1345
1430
|
var headerParams = {};
|
|
1346
1431
|
var formParams = {};
|
|
1347
|
-
var authNames = [
|
|
1432
|
+
var authNames = ['personalAccessToken'];
|
|
1348
1433
|
var contentTypes = [];
|
|
1349
|
-
var accepts = [
|
|
1434
|
+
var accepts = ['application/json'];
|
|
1350
1435
|
var returnType = _EnvironmentVariables["default"];
|
|
1351
|
-
return this.apiClient.callApi(
|
|
1436
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/environment_variables', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1352
1437
|
}
|
|
1353
1438
|
|
|
1354
1439
|
/**
|
|
1355
1440
|
* Get environment variables of a project
|
|
1356
|
-
* @param {String} projectOrProductUID
|
|
1441
|
+
* @param {String} projectOrProductUID
|
|
1357
1442
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1358
1443
|
*/
|
|
1359
1444
|
}, {
|
|
@@ -1366,7 +1451,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1366
1451
|
|
|
1367
1452
|
/**
|
|
1368
1453
|
* Get Project Fleets
|
|
1369
|
-
* @param {String} projectOrProductUID
|
|
1454
|
+
* @param {String} projectOrProductUID
|
|
1370
1455
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
1371
1456
|
*/
|
|
1372
1457
|
}, {
|
|
@@ -1378,21 +1463,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1378
1463
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectFleets");
|
|
1379
1464
|
}
|
|
1380
1465
|
var pathParams = {
|
|
1381
|
-
projectOrProductUID: projectOrProductUID
|
|
1466
|
+
'projectOrProductUID': projectOrProductUID
|
|
1382
1467
|
};
|
|
1383
1468
|
var queryParams = {};
|
|
1384
1469
|
var headerParams = {};
|
|
1385
1470
|
var formParams = {};
|
|
1386
|
-
var authNames = [
|
|
1471
|
+
var authNames = ['personalAccessToken'];
|
|
1387
1472
|
var contentTypes = [];
|
|
1388
|
-
var accepts = [
|
|
1473
|
+
var accepts = ['application/json'];
|
|
1389
1474
|
var returnType = _GetDeviceFleets200Response["default"];
|
|
1390
|
-
return this.apiClient.callApi(
|
|
1475
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1391
1476
|
}
|
|
1392
1477
|
|
|
1393
1478
|
/**
|
|
1394
1479
|
* Get Project Fleets
|
|
1395
|
-
* @param {String} projectOrProductUID
|
|
1480
|
+
* @param {String} projectOrProductUID
|
|
1396
1481
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
1397
1482
|
*/
|
|
1398
1483
|
}, {
|
|
@@ -1405,7 +1490,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1405
1490
|
|
|
1406
1491
|
/**
|
|
1407
1492
|
* Get Project Members
|
|
1408
|
-
* @param {String} projectOrProductUID
|
|
1493
|
+
* @param {String} projectOrProductUID
|
|
1409
1494
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectMembers200Response} and HTTP response
|
|
1410
1495
|
*/
|
|
1411
1496
|
}, {
|
|
@@ -1417,21 +1502,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1417
1502
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectMembers");
|
|
1418
1503
|
}
|
|
1419
1504
|
var pathParams = {
|
|
1420
|
-
projectOrProductUID: projectOrProductUID
|
|
1505
|
+
'projectOrProductUID': projectOrProductUID
|
|
1421
1506
|
};
|
|
1422
1507
|
var queryParams = {};
|
|
1423
1508
|
var headerParams = {};
|
|
1424
1509
|
var formParams = {};
|
|
1425
|
-
var authNames = [
|
|
1510
|
+
var authNames = ['personalAccessToken'];
|
|
1426
1511
|
var contentTypes = [];
|
|
1427
|
-
var accepts = [
|
|
1512
|
+
var accepts = ['application/json'];
|
|
1428
1513
|
var returnType = _GetProjectMembers200Response["default"];
|
|
1429
|
-
return this.apiClient.callApi(
|
|
1514
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/members', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1430
1515
|
}
|
|
1431
1516
|
|
|
1432
1517
|
/**
|
|
1433
1518
|
* Get Project Members
|
|
1434
|
-
* @param {String} projectOrProductUID
|
|
1519
|
+
* @param {String} projectOrProductUID
|
|
1435
1520
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectMembers200Response}
|
|
1436
1521
|
*/
|
|
1437
1522
|
}, {
|
|
@@ -1442,45 +1527,6 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1442
1527
|
});
|
|
1443
1528
|
}
|
|
1444
1529
|
|
|
1445
|
-
/**
|
|
1446
|
-
* Get Products within a Project
|
|
1447
|
-
* @param {String} projectOrProductUID
|
|
1448
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectProducts200Response} and HTTP response
|
|
1449
|
-
*/
|
|
1450
|
-
}, {
|
|
1451
|
-
key: "getProjectProductsWithHttpInfo",
|
|
1452
|
-
value: function getProjectProductsWithHttpInfo(projectOrProductUID) {
|
|
1453
|
-
var postBody = null;
|
|
1454
|
-
// verify the required parameter 'projectOrProductUID' is set
|
|
1455
|
-
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1456
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectProducts");
|
|
1457
|
-
}
|
|
1458
|
-
var pathParams = {
|
|
1459
|
-
projectOrProductUID: projectOrProductUID
|
|
1460
|
-
};
|
|
1461
|
-
var queryParams = {};
|
|
1462
|
-
var headerParams = {};
|
|
1463
|
-
var formParams = {};
|
|
1464
|
-
var authNames = ["personalAccessToken"];
|
|
1465
|
-
var contentTypes = [];
|
|
1466
|
-
var accepts = ["application/json"];
|
|
1467
|
-
var returnType = _GetProjectProducts200Response["default"];
|
|
1468
|
-
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/products", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1469
|
-
}
|
|
1470
|
-
|
|
1471
|
-
/**
|
|
1472
|
-
* Get Products within a Project
|
|
1473
|
-
* @param {String} projectOrProductUID
|
|
1474
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectProducts200Response}
|
|
1475
|
-
*/
|
|
1476
|
-
}, {
|
|
1477
|
-
key: "getProjectProducts",
|
|
1478
|
-
value: function getProjectProducts(projectOrProductUID) {
|
|
1479
|
-
return this.getProjectProductsWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
|
|
1480
|
-
return response_and_data.data;
|
|
1481
|
-
});
|
|
1482
|
-
}
|
|
1483
|
-
|
|
1484
1530
|
/**
|
|
1485
1531
|
* Get Projects accessible by the api_key
|
|
1486
1532
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjects200Response} and HTTP response
|
|
@@ -1493,11 +1539,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1493
1539
|
var queryParams = {};
|
|
1494
1540
|
var headerParams = {};
|
|
1495
1541
|
var formParams = {};
|
|
1496
|
-
var authNames = [
|
|
1542
|
+
var authNames = ['personalAccessToken'];
|
|
1497
1543
|
var contentTypes = [];
|
|
1498
|
-
var accepts = [
|
|
1544
|
+
var accepts = ['application/json'];
|
|
1499
1545
|
var returnType = _GetProjects200Response["default"];
|
|
1500
|
-
return this.apiClient.callApi(
|
|
1546
|
+
return this.apiClient.callApi('/v1/projects', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1501
1547
|
}
|
|
1502
1548
|
|
|
1503
1549
|
/**
|
|
@@ -1514,9 +1560,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1514
1560
|
|
|
1515
1561
|
/**
|
|
1516
1562
|
* Add Device to Fleets
|
|
1517
|
-
* @param {String} projectOrProductUID
|
|
1518
|
-
* @param {String} deviceUID
|
|
1519
|
-
* @param {module:model/PutDeviceFleetsRequest} putDeviceFleetsRequest The fleets to add to the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
1563
|
+
* @param {String} projectOrProductUID
|
|
1564
|
+
* @param {String} deviceUID
|
|
1565
|
+
* @param {module:model/PutDeviceFleetsRequest} putDeviceFleetsRequest The fleets to add to the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
1520
1566
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
1521
1567
|
*/
|
|
1522
1568
|
}, {
|
|
@@ -1536,24 +1582,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1536
1582
|
throw new _Error["default"]("Missing the required parameter 'putDeviceFleetsRequest' when calling putDeviceFleets");
|
|
1537
1583
|
}
|
|
1538
1584
|
var pathParams = {
|
|
1539
|
-
projectOrProductUID: projectOrProductUID,
|
|
1540
|
-
deviceUID: deviceUID
|
|
1585
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1586
|
+
'deviceUID': deviceUID
|
|
1541
1587
|
};
|
|
1542
1588
|
var queryParams = {};
|
|
1543
1589
|
var headerParams = {};
|
|
1544
1590
|
var formParams = {};
|
|
1545
|
-
var authNames = [
|
|
1546
|
-
var contentTypes = [
|
|
1547
|
-
var accepts = [
|
|
1591
|
+
var authNames = ['personalAccessToken'];
|
|
1592
|
+
var contentTypes = ['application/json'];
|
|
1593
|
+
var accepts = ['application/json'];
|
|
1548
1594
|
var returnType = _GetDeviceFleets200Response["default"];
|
|
1549
|
-
return this.apiClient.callApi(
|
|
1595
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/fleets', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1550
1596
|
}
|
|
1551
1597
|
|
|
1552
1598
|
/**
|
|
1553
1599
|
* Add Device to Fleets
|
|
1554
|
-
* @param {String} projectOrProductUID
|
|
1555
|
-
* @param {String} deviceUID
|
|
1556
|
-
* @param {module:model/PutDeviceFleetsRequest} putDeviceFleetsRequest The fleets to add to the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
1600
|
+
* @param {String} projectOrProductUID
|
|
1601
|
+
* @param {String} deviceUID
|
|
1602
|
+
* @param {module:model/PutDeviceFleetsRequest} putDeviceFleetsRequest The fleets to add to the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
1557
1603
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
1558
1604
|
*/
|
|
1559
1605
|
}, {
|
|
@@ -1566,8 +1612,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1566
1612
|
|
|
1567
1613
|
/**
|
|
1568
1614
|
* Put environment variables of a fleet
|
|
1569
|
-
* @param {String} projectOrProductUID
|
|
1570
|
-
* @param {String} fleetUID
|
|
1615
|
+
* @param {String} projectOrProductUID
|
|
1616
|
+
* @param {String} fleetUID
|
|
1571
1617
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
1572
1618
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1573
1619
|
*/
|
|
@@ -1588,23 +1634,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1588
1634
|
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling putFleetEnvironmentVariables");
|
|
1589
1635
|
}
|
|
1590
1636
|
var pathParams = {
|
|
1591
|
-
projectOrProductUID: projectOrProductUID,
|
|
1592
|
-
fleetUID: fleetUID
|
|
1637
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1638
|
+
'fleetUID': fleetUID
|
|
1593
1639
|
};
|
|
1594
1640
|
var queryParams = {};
|
|
1595
1641
|
var headerParams = {};
|
|
1596
1642
|
var formParams = {};
|
|
1597
|
-
var authNames = [
|
|
1598
|
-
var contentTypes = [
|
|
1599
|
-
var accepts = [
|
|
1643
|
+
var authNames = ['personalAccessToken'];
|
|
1644
|
+
var contentTypes = ['application/json'];
|
|
1645
|
+
var accepts = ['application/json'];
|
|
1600
1646
|
var returnType = _EnvironmentVariables["default"];
|
|
1601
|
-
return this.apiClient.callApi(
|
|
1647
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1602
1648
|
}
|
|
1603
1649
|
|
|
1604
1650
|
/**
|
|
1605
1651
|
* Put environment variables of a fleet
|
|
1606
|
-
* @param {String} projectOrProductUID
|
|
1607
|
-
* @param {String} fleetUID
|
|
1652
|
+
* @param {String} projectOrProductUID
|
|
1653
|
+
* @param {String} fleetUID
|
|
1608
1654
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
1609
1655
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1610
1656
|
*/
|
|
@@ -1618,38 +1664,38 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1618
1664
|
|
|
1619
1665
|
/**
|
|
1620
1666
|
* Put environment variables of a project
|
|
1621
|
-
* @param {String} projectOrProductUID
|
|
1667
|
+
* @param {String} projectOrProductUID
|
|
1622
1668
|
* @param {Object} opts Optional parameters
|
|
1623
|
-
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1669
|
+
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1624
1670
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1625
1671
|
*/
|
|
1626
1672
|
}, {
|
|
1627
1673
|
key: "putProjectEnvironmentVariablesWithHttpInfo",
|
|
1628
1674
|
value: function putProjectEnvironmentVariablesWithHttpInfo(projectOrProductUID, opts) {
|
|
1629
1675
|
opts = opts || {};
|
|
1630
|
-
var postBody = opts[
|
|
1676
|
+
var postBody = opts['environmentVariables'];
|
|
1631
1677
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1632
1678
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1633
1679
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling putProjectEnvironmentVariables");
|
|
1634
1680
|
}
|
|
1635
1681
|
var pathParams = {
|
|
1636
|
-
projectOrProductUID: projectOrProductUID
|
|
1682
|
+
'projectOrProductUID': projectOrProductUID
|
|
1637
1683
|
};
|
|
1638
1684
|
var queryParams = {};
|
|
1639
1685
|
var headerParams = {};
|
|
1640
1686
|
var formParams = {};
|
|
1641
|
-
var authNames = [
|
|
1642
|
-
var contentTypes = [
|
|
1643
|
-
var accepts = [
|
|
1687
|
+
var authNames = ['personalAccessToken'];
|
|
1688
|
+
var contentTypes = ['application/json'];
|
|
1689
|
+
var accepts = ['application/json'];
|
|
1644
1690
|
var returnType = _EnvironmentVariables["default"];
|
|
1645
|
-
return this.apiClient.callApi(
|
|
1691
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1646
1692
|
}
|
|
1647
1693
|
|
|
1648
1694
|
/**
|
|
1649
1695
|
* Put environment variables of a project
|
|
1650
|
-
* @param {String} projectOrProductUID
|
|
1696
|
+
* @param {String} projectOrProductUID
|
|
1651
1697
|
* @param {Object} opts Optional parameters
|
|
1652
|
-
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1698
|
+
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1653
1699
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1654
1700
|
*/
|
|
1655
1701
|
}, {
|
|
@@ -1662,7 +1708,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1662
1708
|
|
|
1663
1709
|
/**
|
|
1664
1710
|
* Set the project-level event JSONata transformation
|
|
1665
|
-
* @param {String} projectOrProductUID
|
|
1711
|
+
* @param {String} projectOrProductUID
|
|
1666
1712
|
* @param {Object.<String, Object>} body JSONata expression which will be applied to each event before it is persisted and routed
|
|
1667
1713
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1668
1714
|
*/
|
|
@@ -1679,21 +1725,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1679
1725
|
throw new _Error["default"]("Missing the required parameter 'body' when calling setGlobalTransformation");
|
|
1680
1726
|
}
|
|
1681
1727
|
var pathParams = {
|
|
1682
|
-
projectOrProductUID: projectOrProductUID
|
|
1728
|
+
'projectOrProductUID': projectOrProductUID
|
|
1683
1729
|
};
|
|
1684
1730
|
var queryParams = {};
|
|
1685
1731
|
var headerParams = {};
|
|
1686
1732
|
var formParams = {};
|
|
1687
|
-
var authNames = [
|
|
1688
|
-
var contentTypes = [
|
|
1689
|
-
var accepts = [
|
|
1733
|
+
var authNames = ['personalAccessToken'];
|
|
1734
|
+
var contentTypes = ['application/json'];
|
|
1735
|
+
var accepts = ['application/json'];
|
|
1690
1736
|
var returnType = null;
|
|
1691
|
-
return this.apiClient.callApi(
|
|
1737
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/global-transformation', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1692
1738
|
}
|
|
1693
1739
|
|
|
1694
1740
|
/**
|
|
1695
1741
|
* Set the project-level event JSONata transformation
|
|
1696
|
-
* @param {String} projectOrProductUID
|
|
1742
|
+
* @param {String} projectOrProductUID
|
|
1697
1743
|
* @param {Object.<String, Object>} body JSONata expression which will be applied to each event before it is persisted and routed
|
|
1698
1744
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1699
1745
|
*/
|
|
@@ -1707,8 +1753,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1707
1753
|
|
|
1708
1754
|
/**
|
|
1709
1755
|
* Update Fleet
|
|
1710
|
-
* @param {String} projectOrProductUID
|
|
1711
|
-
* @param {String} fleetUID
|
|
1756
|
+
* @param {String} projectOrProductUID
|
|
1757
|
+
* @param {String} fleetUID
|
|
1712
1758
|
* @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
|
|
1713
1759
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
1714
1760
|
*/
|
|
@@ -1729,23 +1775,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1729
1775
|
throw new _Error["default"]("Missing the required parameter 'updateFleetRequest' when calling updateFleet");
|
|
1730
1776
|
}
|
|
1731
1777
|
var pathParams = {
|
|
1732
|
-
projectOrProductUID: projectOrProductUID,
|
|
1733
|
-
fleetUID: fleetUID
|
|
1778
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1779
|
+
'fleetUID': fleetUID
|
|
1734
1780
|
};
|
|
1735
1781
|
var queryParams = {};
|
|
1736
1782
|
var headerParams = {};
|
|
1737
1783
|
var formParams = {};
|
|
1738
|
-
var authNames = [
|
|
1739
|
-
var contentTypes = [
|
|
1740
|
-
var accepts = [
|
|
1784
|
+
var authNames = ['personalAccessToken'];
|
|
1785
|
+
var contentTypes = ['application/json'];
|
|
1786
|
+
var accepts = ['application/json'];
|
|
1741
1787
|
var returnType = _Fleet["default"];
|
|
1742
|
-
return this.apiClient.callApi(
|
|
1788
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1743
1789
|
}
|
|
1744
1790
|
|
|
1745
1791
|
/**
|
|
1746
1792
|
* Update Fleet
|
|
1747
|
-
* @param {String} projectOrProductUID
|
|
1748
|
-
* @param {String} fleetUID
|
|
1793
|
+
* @param {String} projectOrProductUID
|
|
1794
|
+
* @param {String} fleetUID
|
|
1749
1795
|
* @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
|
|
1750
1796
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
1751
1797
|
*/
|
|
@@ -1759,9 +1805,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1759
1805
|
|
|
1760
1806
|
/**
|
|
1761
1807
|
* Upload firmware binary
|
|
1762
|
-
* @param {String} projectOrProductUID
|
|
1763
|
-
* @param {module:model/String} firmwareType
|
|
1764
|
-
* @param {String} filename
|
|
1808
|
+
* @param {String} projectOrProductUID
|
|
1809
|
+
* @param {module:model/String} firmwareType
|
|
1810
|
+
* @param {String} filename
|
|
1765
1811
|
* @param {File} body contents of the firmware binary
|
|
1766
1812
|
* @param {Object} opts Optional parameters
|
|
1767
1813
|
* @param {String} opts.version Firmware version (optional). If not provided, the version will be extracted from firmware binary if available, otherwise left empty
|
|
@@ -1790,28 +1836,28 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1790
1836
|
throw new _Error["default"]("Missing the required parameter 'body' when calling uploadFirmware");
|
|
1791
1837
|
}
|
|
1792
1838
|
var pathParams = {
|
|
1793
|
-
projectOrProductUID: projectOrProductUID,
|
|
1794
|
-
firmwareType: firmwareType,
|
|
1795
|
-
filename: filename
|
|
1839
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1840
|
+
'firmwareType': firmwareType,
|
|
1841
|
+
'filename': filename
|
|
1796
1842
|
};
|
|
1797
1843
|
var queryParams = {
|
|
1798
|
-
version: opts[
|
|
1799
|
-
notes: opts[
|
|
1844
|
+
'version': opts['version'],
|
|
1845
|
+
'notes': opts['notes']
|
|
1800
1846
|
};
|
|
1801
1847
|
var headerParams = {};
|
|
1802
1848
|
var formParams = {};
|
|
1803
|
-
var authNames = [
|
|
1804
|
-
var contentTypes = [
|
|
1805
|
-
var accepts = [
|
|
1849
|
+
var authNames = ['personalAccessToken'];
|
|
1850
|
+
var contentTypes = ['application/octet-stream'];
|
|
1851
|
+
var accepts = ['application/json'];
|
|
1806
1852
|
var returnType = _FirmwareInfo["default"];
|
|
1807
|
-
return this.apiClient.callApi(
|
|
1853
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/firmware/{firmwareType}/{filename}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1808
1854
|
}
|
|
1809
1855
|
|
|
1810
1856
|
/**
|
|
1811
1857
|
* Upload firmware binary
|
|
1812
|
-
* @param {String} projectOrProductUID
|
|
1813
|
-
* @param {module:model/String} firmwareType
|
|
1814
|
-
* @param {String} filename
|
|
1858
|
+
* @param {String} projectOrProductUID
|
|
1859
|
+
* @param {module:model/String} firmwareType
|
|
1860
|
+
* @param {String} filename
|
|
1815
1861
|
* @param {File} body contents of the firmware binary
|
|
1816
1862
|
* @param {Object} opts Optional parameters
|
|
1817
1863
|
* @param {String} opts.version Firmware version (optional). If not provided, the version will be extracted from firmware binary if available, otherwise left empty
|