@blues-inc/notehub-js 6.2.0-beta.2 → 6.2.0-beta.3
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 +285 -293
- package/dist/ApiClient.js +150 -150
- package/dist/api/AlertApi.js +22 -22
- package/dist/api/AuthorizationApi.js +31 -31
- package/dist/api/BillingAccountApi.js +30 -30
- package/dist/api/DeviceApi.js +354 -354
- package/dist/api/EventApi.js +118 -118
- package/dist/api/ExternalDevicesApi.js +41 -41
- package/dist/api/JobsApi.js +127 -74
- package/dist/api/MonitorApi.js +52 -52
- package/dist/api/ProjectApi.js +403 -702
- package/dist/api/RouteApi.js +83 -83
- package/dist/api/UsageApi.js +67 -67
- package/dist/api/WebhookApi.js +51 -51
- package/dist/index.js +0 -35
- package/dist/model/AWSRoleConfig.js +14 -14
- package/dist/model/AddDeviceToFleetsRequest.js +8 -8
- package/dist/model/Alert.js +76 -74
- package/dist/model/AlertDataInner.js +36 -36
- package/dist/model/AlertNotificationsInner.js +18 -18
- package/dist/model/AwsRoute.js +70 -70
- package/dist/model/AzureRoute.js +43 -43
- package/dist/model/BillingAccount.js +21 -21
- package/dist/model/BillingAccountRole.js +9 -9
- package/dist/model/BlynkRoute.js +28 -28
- package/dist/model/Body.js +5 -5
- package/dist/model/CancelJobRun200Response.js +6 -6
- package/dist/model/CellularPlan.js +34 -34
- package/dist/model/CloneProjectRequest.js +20 -20
- package/dist/model/Contact.js +22 -22
- package/dist/model/CreateFleetRequest.js +20 -20
- package/dist/model/CreateJob201Response.js +8 -8
- package/dist/model/CreateMonitor.js +128 -127
- package/dist/model/CreateProductRequest.js +22 -22
- package/dist/model/CreateProjectRequest.js +16 -16
- package/dist/model/CreateUpdateRepository.js +17 -17
- package/dist/model/CurrentFirmware.js +12 -12
- package/dist/model/DFUEnv.js +12 -12
- package/dist/model/DFUState.js +65 -65
- package/dist/model/DataField.js +7 -7
- package/dist/model/DataSetField.js +19 -19
- package/dist/model/DataUsage.js +14 -14
- package/dist/model/DatacakeRoute.js +35 -35
- package/dist/model/DeleteDeviceFromFleetsRequest.js +8 -8
- package/dist/model/DeleteJob200Response.js +6 -6
- package/dist/model/DeleteNotefilesRequest.js +7 -7
- package/dist/model/Device.js +107 -106
- 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/Filter.js +16 -16
- package/dist/model/Firmware.js +49 -49
- package/dist/model/FirmwareInfo.js +68 -68
- package/dist/model/Fleet.js +38 -38
- package/dist/model/FleetConnectivityAssurance.js +5 -5
- package/dist/model/GetAlerts200Response.js +15 -14
- package/dist/model/GetBillingAccount200Response.js +25 -25
- package/dist/model/GetBillingAccount200ResponsePlan.js +22 -22
- package/dist/model/GetBillingAccountBalanceHistory200Response.js +10 -9
- package/dist/model/GetBillingAccountBalanceHistory200ResponseDataInner.js +17 -17
- package/dist/model/GetBillingAccounts200Response.js +10 -9
- package/dist/model/GetDataUsage200Response.js +13 -12
- package/dist/model/GetDataUsage200ResponseDataInner.js +44 -43
- package/dist/model/GetDbNote200Response.js +13 -13
- 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/GetDeviceLatestEvents200Response.js +10 -9
- package/dist/model/GetDevicePlans200Response.js +10 -9
- package/dist/model/GetDevicePublicKey200Response.js +16 -16
- package/dist/model/GetDevicePublicKeys200Response.js +17 -16
- package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
- package/dist/model/GetDeviceSessions200Response.js +17 -16
- package/dist/model/GetDevices200Response.js +17 -16
- package/dist/model/GetEvents200Response.js +21 -20
- package/dist/model/GetEventsByCursor200Response.js +24 -23
- package/dist/model/GetJobRuns200Response.js +12 -11
- package/dist/model/GetJobs200Response.js +12 -11
- package/dist/model/GetNotefile200Response.js +11 -11
- package/dist/model/GetProducts200Response.js +10 -9
- package/dist/model/GetProjectMembers200Response.js +12 -11
- package/dist/model/GetProjects200Response.js +10 -9
- package/dist/model/GetRouteLogsUsage200Response.js +15 -14
- package/dist/model/GetSessionsUsage200Response.js +16 -15
- package/dist/model/GetWebhooks200Response.js +10 -9
- package/dist/model/GoogleRoute.js +33 -33
- package/dist/model/HttpRoute.js +35 -35
- package/dist/model/Job.js +50 -28
- package/dist/model/JobRun.js +57 -57
- 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 +102 -101
- package/dist/model/MonitorAlertRoutesInner.js +9 -10
- package/dist/model/MqttRoute.js +68 -68
- package/dist/model/Note.js +31 -31
- package/dist/model/NoteInput.js +9 -9
- package/dist/model/Notefile.js +23 -22
- package/dist/model/NotefileSchema.js +19 -18
- package/dist/model/NotehubRoute.js +103 -103
- package/dist/model/NotehubRouteSummary.js +23 -23
- package/dist/model/OAuth2Error.js +20 -20
- package/dist/model/OAuth2TokenResponse.js +23 -23
- package/dist/model/PersonalAccessToken.js +34 -34
- package/dist/model/PersonalAccessTokenCreatedBy.js +17 -17
- package/dist/model/PersonalAccessTokenInfo.js +18 -18
- package/dist/model/PersonalAccessTokenSecret.js +12 -12
- package/dist/model/Product.js +26 -26
- package/dist/model/Project.js +34 -34
- package/dist/model/ProjectMember.js +22 -22
- package/dist/model/ProvisionDeviceRequest.js +18 -18
- package/dist/model/ProxyRoute.js +29 -29
- package/dist/model/QubitroRoute.js +33 -33
- package/dist/model/RadRoute.js +31 -31
- package/dist/model/Repository.js +22 -22
- package/dist/model/Role.js +9 -9
- package/dist/model/RouteLog.js +38 -38
- package/dist/model/RouteTransformSettings.js +18 -18
- package/dist/model/RunJob200Response.js +8 -8
- package/dist/model/S3ArchiveRoute.js +79 -79
- package/dist/model/SatelliteDataUsage.js +18 -18
- package/dist/model/SatellitePlan.js +29 -29
- package/dist/model/SchemaProperty.js +38 -36
- package/dist/model/SignalDevice200Response.js +5 -5
- package/dist/model/SimUsage.js +19 -19
- package/dist/model/SlackBearerNotification.js +25 -25
- package/dist/model/SlackRoute.js +48 -48
- package/dist/model/SlackWebHookNotification.js +20 -20
- package/dist/model/SnowflakeRoute.js +45 -45
- package/dist/model/SnowpipeStreamingRoute.js +60 -60
- package/dist/model/ThingworxRoute.js +33 -33
- package/dist/model/TowerLocation.js +54 -54
- package/dist/model/TwilioRoute.js +43 -43
- package/dist/model/UpdateFleetRequest.js +33 -33
- package/dist/model/UploadMetadata.js +64 -64
- package/dist/model/UsageData.js +33 -33
- package/dist/model/UsageEventsData.js +49 -49
- package/dist/model/UsageEventsResponse.js +15 -14
- package/dist/model/UsageRouteLogsData.js +30 -30
- package/dist/model/UsageSessionsData.js +43 -43
- 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/model/CreateProjectSecretRequest.js +0 -130
- package/dist/model/GetProjectSecretsResponse.js +0 -131
- package/dist/model/ProjectSecret.js +0 -164
- package/dist/model/UpdateHostFirmwareRequest.js +0 -117
- package/dist/model/UpdateProjectSecretRequest.js +0 -115
package/dist/api/ProjectApi.js
CHANGED
|
@@ -11,7 +11,6 @@ var _CloneProjectRequest = _interopRequireDefault(require("../model/CloneProject
|
|
|
11
11
|
var _CreateFleetRequest = _interopRequireDefault(require("../model/CreateFleetRequest"));
|
|
12
12
|
var _CreateProductRequest = _interopRequireDefault(require("../model/CreateProductRequest"));
|
|
13
13
|
var _CreateProjectRequest = _interopRequireDefault(require("../model/CreateProjectRequest"));
|
|
14
|
-
var _CreateProjectSecretRequest = _interopRequireDefault(require("../model/CreateProjectSecretRequest"));
|
|
15
14
|
var _DeleteDeviceFromFleetsRequest = _interopRequireDefault(require("../model/DeleteDeviceFromFleetsRequest"));
|
|
16
15
|
var _DeviceDfuHistory = _interopRequireDefault(require("../model/DeviceDfuHistory"));
|
|
17
16
|
var _DeviceDfuHistoryPage = _interopRequireDefault(require("../model/DeviceDfuHistoryPage"));
|
|
@@ -26,15 +25,11 @@ var _Fleet = _interopRequireDefault(require("../model/Fleet"));
|
|
|
26
25
|
var _GetDeviceFleets200Response = _interopRequireDefault(require("../model/GetDeviceFleets200Response"));
|
|
27
26
|
var _GetProducts200Response = _interopRequireDefault(require("../model/GetProducts200Response"));
|
|
28
27
|
var _GetProjectMembers200Response = _interopRequireDefault(require("../model/GetProjectMembers200Response"));
|
|
29
|
-
var _GetProjectSecretsResponse = _interopRequireDefault(require("../model/GetProjectSecretsResponse"));
|
|
30
28
|
var _GetProjects200Response = _interopRequireDefault(require("../model/GetProjects200Response"));
|
|
31
29
|
var _NotefileSchema = _interopRequireDefault(require("../model/NotefileSchema"));
|
|
32
30
|
var _Product = _interopRequireDefault(require("../model/Product"));
|
|
33
31
|
var _Project = _interopRequireDefault(require("../model/Project"));
|
|
34
|
-
var _ProjectSecret = _interopRequireDefault(require("../model/ProjectSecret"));
|
|
35
32
|
var _UpdateFleetRequest = _interopRequireDefault(require("../model/UpdateFleetRequest"));
|
|
36
|
-
var _UpdateHostFirmwareRequest = _interopRequireDefault(require("../model/UpdateHostFirmwareRequest"));
|
|
37
|
-
var _UpdateProjectSecretRequest = _interopRequireDefault(require("../model/UpdateProjectSecretRequest"));
|
|
38
33
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
39
34
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
40
35
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
@@ -43,7 +38,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
43
38
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
44
39
|
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); } /**
|
|
45
40
|
* Notehub API
|
|
46
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
41
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
47
42
|
*
|
|
48
43
|
* The version of the OpenAPI document: 1.2.0
|
|
49
44
|
* Contact: engineering@blues.io
|
|
@@ -54,18 +49,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
54
49
|
*
|
|
55
50
|
*/
|
|
56
51
|
/**
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
52
|
+
* Project service.
|
|
53
|
+
* @module api/ProjectApi
|
|
54
|
+
* @version 6.2.0-beta.3
|
|
55
|
+
*/
|
|
61
56
|
var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
62
57
|
/**
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
58
|
+
* Constructs a new ProjectApi.
|
|
59
|
+
* @alias module:api/ProjectApi
|
|
60
|
+
* @class
|
|
61
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
62
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
63
|
+
*/
|
|
69
64
|
function ProjectApi(apiClient) {
|
|
70
65
|
_classCallCheck(this, ProjectApi);
|
|
71
66
|
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
@@ -73,9 +68,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
73
68
|
|
|
74
69
|
/**
|
|
75
70
|
* Add Device to Fleets
|
|
76
|
-
* @param {String} projectOrProductUID
|
|
77
|
-
* @param {String} deviceUID
|
|
78
|
-
* @param {module:model/AddDeviceToFleetsRequest} addDeviceToFleetsRequest The fleets to add to the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
71
|
+
* @param {String} projectOrProductUID
|
|
72
|
+
* @param {String} deviceUID
|
|
73
|
+
* @param {module:model/AddDeviceToFleetsRequest} addDeviceToFleetsRequest The fleets to add to the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
79
74
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
80
75
|
*/
|
|
81
76
|
return _createClass(ProjectApi, [{
|
|
@@ -95,24 +90,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
95
90
|
throw new _Error["default"]("Missing the required parameter 'addDeviceToFleetsRequest' when calling addDeviceToFleets");
|
|
96
91
|
}
|
|
97
92
|
var pathParams = {
|
|
98
|
-
projectOrProductUID: projectOrProductUID,
|
|
99
|
-
deviceUID: deviceUID
|
|
93
|
+
'projectOrProductUID': projectOrProductUID,
|
|
94
|
+
'deviceUID': deviceUID
|
|
100
95
|
};
|
|
101
96
|
var queryParams = {};
|
|
102
97
|
var headerParams = {};
|
|
103
98
|
var formParams = {};
|
|
104
|
-
var authNames = [
|
|
105
|
-
var contentTypes = [
|
|
106
|
-
var accepts = [
|
|
99
|
+
var authNames = ['personalAccessToken'];
|
|
100
|
+
var contentTypes = ['application/json'];
|
|
101
|
+
var accepts = ['application/json'];
|
|
107
102
|
var returnType = _GetDeviceFleets200Response["default"];
|
|
108
|
-
return this.apiClient.callApi(
|
|
103
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/fleets', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
109
104
|
}
|
|
110
105
|
|
|
111
106
|
/**
|
|
112
107
|
* Add Device to Fleets
|
|
113
|
-
* @param {String} projectOrProductUID
|
|
114
|
-
* @param {String} deviceUID
|
|
115
|
-
* @param {module:model/AddDeviceToFleetsRequest} addDeviceToFleetsRequest The fleets to add to the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
108
|
+
* @param {String} projectOrProductUID
|
|
109
|
+
* @param {String} deviceUID
|
|
110
|
+
* @param {module:model/AddDeviceToFleetsRequest} addDeviceToFleetsRequest The fleets to add to the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
116
111
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
117
112
|
*/
|
|
118
113
|
}, {
|
|
@@ -125,7 +120,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
125
120
|
|
|
126
121
|
/**
|
|
127
122
|
* Clone a Project
|
|
128
|
-
* @param {String} projectOrProductUID
|
|
123
|
+
* @param {String} projectOrProductUID
|
|
129
124
|
* @param {module:model/CloneProjectRequest} cloneProjectRequest Project to be cloned
|
|
130
125
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
131
126
|
*/
|
|
@@ -142,21 +137,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
142
137
|
throw new _Error["default"]("Missing the required parameter 'cloneProjectRequest' when calling cloneProject");
|
|
143
138
|
}
|
|
144
139
|
var pathParams = {
|
|
145
|
-
projectOrProductUID: projectOrProductUID
|
|
140
|
+
'projectOrProductUID': projectOrProductUID
|
|
146
141
|
};
|
|
147
142
|
var queryParams = {};
|
|
148
143
|
var headerParams = {};
|
|
149
144
|
var formParams = {};
|
|
150
|
-
var authNames = [
|
|
151
|
-
var contentTypes = [
|
|
152
|
-
var accepts = [
|
|
145
|
+
var authNames = ['personalAccessToken'];
|
|
146
|
+
var contentTypes = ['application/json'];
|
|
147
|
+
var accepts = ['application/json'];
|
|
153
148
|
var returnType = _Project["default"];
|
|
154
|
-
return this.apiClient.callApi(
|
|
149
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/clone', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
155
150
|
}
|
|
156
151
|
|
|
157
152
|
/**
|
|
158
153
|
* Clone a Project
|
|
159
|
-
* @param {String} projectOrProductUID
|
|
154
|
+
* @param {String} projectOrProductUID
|
|
160
155
|
* @param {module:model/CloneProjectRequest} cloneProjectRequest Project to be cloned
|
|
161
156
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
162
157
|
*/
|
|
@@ -170,7 +165,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
170
165
|
|
|
171
166
|
/**
|
|
172
167
|
* Create Fleet
|
|
173
|
-
* @param {String} projectOrProductUID
|
|
168
|
+
* @param {String} projectOrProductUID
|
|
174
169
|
* @param {module:model/CreateFleetRequest} createFleetRequest Fleet to be added
|
|
175
170
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
176
171
|
*/
|
|
@@ -187,21 +182,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
187
182
|
throw new _Error["default"]("Missing the required parameter 'createFleetRequest' when calling createFleet");
|
|
188
183
|
}
|
|
189
184
|
var pathParams = {
|
|
190
|
-
projectOrProductUID: projectOrProductUID
|
|
185
|
+
'projectOrProductUID': projectOrProductUID
|
|
191
186
|
};
|
|
192
187
|
var queryParams = {};
|
|
193
188
|
var headerParams = {};
|
|
194
189
|
var formParams = {};
|
|
195
|
-
var authNames = [
|
|
196
|
-
var contentTypes = [
|
|
197
|
-
var accepts = [
|
|
190
|
+
var authNames = ['personalAccessToken'];
|
|
191
|
+
var contentTypes = ['application/json'];
|
|
192
|
+
var accepts = ['application/json'];
|
|
198
193
|
var returnType = _Fleet["default"];
|
|
199
|
-
return this.apiClient.callApi(
|
|
194
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
200
195
|
}
|
|
201
196
|
|
|
202
197
|
/**
|
|
203
198
|
* Create Fleet
|
|
204
|
-
* @param {String} projectOrProductUID
|
|
199
|
+
* @param {String} projectOrProductUID
|
|
205
200
|
* @param {module:model/CreateFleetRequest} createFleetRequest Fleet to be added
|
|
206
201
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
207
202
|
*/
|
|
@@ -215,7 +210,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
215
210
|
|
|
216
211
|
/**
|
|
217
212
|
* Create Product within a Project
|
|
218
|
-
* @param {String} projectOrProductUID
|
|
213
|
+
* @param {String} projectOrProductUID
|
|
219
214
|
* @param {module:model/CreateProductRequest} createProductRequest Product to be created
|
|
220
215
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Product} and HTTP response
|
|
221
216
|
*/
|
|
@@ -232,21 +227,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
232
227
|
throw new _Error["default"]("Missing the required parameter 'createProductRequest' when calling createProduct");
|
|
233
228
|
}
|
|
234
229
|
var pathParams = {
|
|
235
|
-
projectOrProductUID: projectOrProductUID
|
|
230
|
+
'projectOrProductUID': projectOrProductUID
|
|
236
231
|
};
|
|
237
232
|
var queryParams = {};
|
|
238
233
|
var headerParams = {};
|
|
239
234
|
var formParams = {};
|
|
240
|
-
var authNames = [
|
|
241
|
-
var contentTypes = [
|
|
242
|
-
var accepts = [
|
|
235
|
+
var authNames = ['personalAccessToken'];
|
|
236
|
+
var contentTypes = ['application/json'];
|
|
237
|
+
var accepts = ['application/json'];
|
|
243
238
|
var returnType = _Product["default"];
|
|
244
|
-
return this.apiClient.callApi(
|
|
239
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/products', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
245
240
|
}
|
|
246
241
|
|
|
247
242
|
/**
|
|
248
243
|
* Create Product within a Project
|
|
249
|
-
* @param {String} projectOrProductUID
|
|
244
|
+
* @param {String} projectOrProductUID
|
|
250
245
|
* @param {module:model/CreateProductRequest} createProductRequest Product to be created
|
|
251
246
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Product}
|
|
252
247
|
*/
|
|
@@ -275,11 +270,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
275
270
|
var queryParams = {};
|
|
276
271
|
var headerParams = {};
|
|
277
272
|
var formParams = {};
|
|
278
|
-
var authNames = [
|
|
279
|
-
var contentTypes = [
|
|
280
|
-
var accepts = [
|
|
273
|
+
var authNames = ['personalAccessToken'];
|
|
274
|
+
var contentTypes = ['application/json'];
|
|
275
|
+
var accepts = ['application/json'];
|
|
281
276
|
var returnType = _Project["default"];
|
|
282
|
-
return this.apiClient.callApi(
|
|
277
|
+
return this.apiClient.callApi('/v1/projects', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
283
278
|
}
|
|
284
279
|
|
|
285
280
|
/**
|
|
@@ -295,56 +290,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
295
290
|
});
|
|
296
291
|
}
|
|
297
292
|
|
|
298
|
-
/**
|
|
299
|
-
* Create a new project secret
|
|
300
|
-
* @param {String} projectOrProductUID
|
|
301
|
-
* @param {module:model/CreateProjectSecretRequest} createProjectSecretRequest
|
|
302
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ProjectSecret} and HTTP response
|
|
303
|
-
*/
|
|
304
|
-
}, {
|
|
305
|
-
key: "createProjectSecretWithHttpInfo",
|
|
306
|
-
value: function createProjectSecretWithHttpInfo(projectOrProductUID, createProjectSecretRequest) {
|
|
307
|
-
var postBody = createProjectSecretRequest;
|
|
308
|
-
// verify the required parameter 'projectOrProductUID' is set
|
|
309
|
-
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
310
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling createProjectSecret");
|
|
311
|
-
}
|
|
312
|
-
// verify the required parameter 'createProjectSecretRequest' is set
|
|
313
|
-
if (createProjectSecretRequest === undefined || createProjectSecretRequest === null) {
|
|
314
|
-
throw new _Error["default"]("Missing the required parameter 'createProjectSecretRequest' when calling createProjectSecret");
|
|
315
|
-
}
|
|
316
|
-
var pathParams = {
|
|
317
|
-
projectOrProductUID: projectOrProductUID
|
|
318
|
-
};
|
|
319
|
-
var queryParams = {};
|
|
320
|
-
var headerParams = {};
|
|
321
|
-
var formParams = {};
|
|
322
|
-
var authNames = ["personalAccessToken"];
|
|
323
|
-
var contentTypes = ["application/json"];
|
|
324
|
-
var accepts = ["application/json"];
|
|
325
|
-
var returnType = _ProjectSecret["default"];
|
|
326
|
-
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/secrets", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
/**
|
|
330
|
-
* Create a new project secret
|
|
331
|
-
* @param {String} projectOrProductUID
|
|
332
|
-
* @param {module:model/CreateProjectSecretRequest} createProjectSecretRequest
|
|
333
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ProjectSecret}
|
|
334
|
-
*/
|
|
335
|
-
}, {
|
|
336
|
-
key: "createProjectSecret",
|
|
337
|
-
value: function createProjectSecret(projectOrProductUID, createProjectSecretRequest) {
|
|
338
|
-
return this.createProjectSecretWithHttpInfo(projectOrProductUID, createProjectSecretRequest).then(function (response_and_data) {
|
|
339
|
-
return response_and_data.data;
|
|
340
|
-
});
|
|
341
|
-
}
|
|
342
|
-
|
|
343
293
|
/**
|
|
344
294
|
* Remove Device from Fleets
|
|
345
|
-
* @param {String} projectOrProductUID
|
|
346
|
-
* @param {String} deviceUID
|
|
347
|
-
* @param {module:model/DeleteDeviceFromFleetsRequest} deleteDeviceFromFleetsRequest The fleets to remove from the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
295
|
+
* @param {String} projectOrProductUID
|
|
296
|
+
* @param {String} deviceUID
|
|
297
|
+
* @param {module:model/DeleteDeviceFromFleetsRequest} deleteDeviceFromFleetsRequest The fleets to remove from the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
348
298
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
349
299
|
*/
|
|
350
300
|
}, {
|
|
@@ -364,24 +314,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
364
314
|
throw new _Error["default"]("Missing the required parameter 'deleteDeviceFromFleetsRequest' when calling deleteDeviceFromFleets");
|
|
365
315
|
}
|
|
366
316
|
var pathParams = {
|
|
367
|
-
projectOrProductUID: projectOrProductUID,
|
|
368
|
-
deviceUID: deviceUID
|
|
317
|
+
'projectOrProductUID': projectOrProductUID,
|
|
318
|
+
'deviceUID': deviceUID
|
|
369
319
|
};
|
|
370
320
|
var queryParams = {};
|
|
371
321
|
var headerParams = {};
|
|
372
322
|
var formParams = {};
|
|
373
|
-
var authNames = [
|
|
374
|
-
var contentTypes = [
|
|
375
|
-
var accepts = [
|
|
323
|
+
var authNames = ['personalAccessToken'];
|
|
324
|
+
var contentTypes = ['application/json'];
|
|
325
|
+
var accepts = ['application/json'];
|
|
376
326
|
var returnType = _GetDeviceFleets200Response["default"];
|
|
377
|
-
return this.apiClient.callApi(
|
|
327
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/fleets', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
378
328
|
}
|
|
379
329
|
|
|
380
330
|
/**
|
|
381
331
|
* Remove Device from Fleets
|
|
382
|
-
* @param {String} projectOrProductUID
|
|
383
|
-
* @param {String} deviceUID
|
|
384
|
-
* @param {module:model/DeleteDeviceFromFleetsRequest} deleteDeviceFromFleetsRequest The fleets to remove from the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
332
|
+
* @param {String} projectOrProductUID
|
|
333
|
+
* @param {String} deviceUID
|
|
334
|
+
* @param {module:model/DeleteDeviceFromFleetsRequest} deleteDeviceFromFleetsRequest The fleets to remove from the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
385
335
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
386
336
|
*/
|
|
387
337
|
}, {
|
|
@@ -392,63 +342,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
392
342
|
});
|
|
393
343
|
}
|
|
394
344
|
|
|
395
|
-
/**
|
|
396
|
-
* Delete a host firmware binary. The filename must be the full stored filename including the timestamp suffix (e.g. test$20260324190911.bin) as returned by the firmware upload or list endpoints.
|
|
397
|
-
* @param {String} projectOrProductUID
|
|
398
|
-
* @param {module:model/String} firmwareType
|
|
399
|
-
* @param {String} filename
|
|
400
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
401
|
-
*/
|
|
402
|
-
}, {
|
|
403
|
-
key: "deleteFirmwareWithHttpInfo",
|
|
404
|
-
value: function deleteFirmwareWithHttpInfo(projectOrProductUID, firmwareType, filename) {
|
|
405
|
-
var postBody = null;
|
|
406
|
-
// verify the required parameter 'projectOrProductUID' is set
|
|
407
|
-
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
408
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteFirmware");
|
|
409
|
-
}
|
|
410
|
-
// verify the required parameter 'firmwareType' is set
|
|
411
|
-
if (firmwareType === undefined || firmwareType === null) {
|
|
412
|
-
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling deleteFirmware");
|
|
413
|
-
}
|
|
414
|
-
// verify the required parameter 'filename' is set
|
|
415
|
-
if (filename === undefined || filename === null) {
|
|
416
|
-
throw new _Error["default"]("Missing the required parameter 'filename' when calling deleteFirmware");
|
|
417
|
-
}
|
|
418
|
-
var pathParams = {
|
|
419
|
-
projectOrProductUID: projectOrProductUID,
|
|
420
|
-
firmwareType: firmwareType,
|
|
421
|
-
filename: filename
|
|
422
|
-
};
|
|
423
|
-
var queryParams = {};
|
|
424
|
-
var headerParams = {};
|
|
425
|
-
var formParams = {};
|
|
426
|
-
var authNames = ["personalAccessToken"];
|
|
427
|
-
var contentTypes = [];
|
|
428
|
-
var accepts = ["application/json"];
|
|
429
|
-
var returnType = null;
|
|
430
|
-
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/firmware/{firmwareType}/{filename}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
/**
|
|
434
|
-
* Delete a host firmware binary. The filename must be the full stored filename including the timestamp suffix (e.g. test$20260324190911.bin) as returned by the firmware upload or list endpoints.
|
|
435
|
-
* @param {String} projectOrProductUID
|
|
436
|
-
* @param {module:model/String} firmwareType
|
|
437
|
-
* @param {String} filename
|
|
438
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
439
|
-
*/
|
|
440
|
-
}, {
|
|
441
|
-
key: "deleteFirmware",
|
|
442
|
-
value: function deleteFirmware(projectOrProductUID, firmwareType, filename) {
|
|
443
|
-
return this.deleteFirmwareWithHttpInfo(projectOrProductUID, firmwareType, filename).then(function (response_and_data) {
|
|
444
|
-
return response_and_data.data;
|
|
445
|
-
});
|
|
446
|
-
}
|
|
447
|
-
|
|
448
345
|
/**
|
|
449
346
|
* Delete Fleet
|
|
450
|
-
* @param {String} projectOrProductUID
|
|
451
|
-
* @param {String} fleetUID
|
|
347
|
+
* @param {String} projectOrProductUID
|
|
348
|
+
* @param {String} fleetUID
|
|
452
349
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
453
350
|
*/
|
|
454
351
|
}, {
|
|
@@ -464,23 +361,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
464
361
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling deleteFleet");
|
|
465
362
|
}
|
|
466
363
|
var pathParams = {
|
|
467
|
-
projectOrProductUID: projectOrProductUID,
|
|
468
|
-
fleetUID: fleetUID
|
|
364
|
+
'projectOrProductUID': projectOrProductUID,
|
|
365
|
+
'fleetUID': fleetUID
|
|
469
366
|
};
|
|
470
367
|
var queryParams = {};
|
|
471
368
|
var headerParams = {};
|
|
472
369
|
var formParams = {};
|
|
473
|
-
var authNames = [
|
|
370
|
+
var authNames = ['personalAccessToken'];
|
|
474
371
|
var contentTypes = [];
|
|
475
|
-
var accepts = [
|
|
372
|
+
var accepts = ['application/json'];
|
|
476
373
|
var returnType = null;
|
|
477
|
-
return this.apiClient.callApi(
|
|
374
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
478
375
|
}
|
|
479
376
|
|
|
480
377
|
/**
|
|
481
378
|
* Delete Fleet
|
|
482
|
-
* @param {String} projectOrProductUID
|
|
483
|
-
* @param {String} fleetUID
|
|
379
|
+
* @param {String} projectOrProductUID
|
|
380
|
+
* @param {String} fleetUID
|
|
484
381
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
485
382
|
*/
|
|
486
383
|
}, {
|
|
@@ -493,8 +390,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
493
390
|
|
|
494
391
|
/**
|
|
495
392
|
* Delete environment variables of a fleet
|
|
496
|
-
* @param {String} projectOrProductUID
|
|
497
|
-
* @param {String} fleetUID
|
|
393
|
+
* @param {String} projectOrProductUID
|
|
394
|
+
* @param {String} fleetUID
|
|
498
395
|
* @param {String} key The environment variable key to delete.
|
|
499
396
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
500
397
|
*/
|
|
@@ -515,24 +412,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
515
412
|
throw new _Error["default"]("Missing the required parameter 'key' when calling deleteFleetEnvironmentVariable");
|
|
516
413
|
}
|
|
517
414
|
var pathParams = {
|
|
518
|
-
projectOrProductUID: projectOrProductUID,
|
|
519
|
-
fleetUID: fleetUID,
|
|
520
|
-
key: key
|
|
415
|
+
'projectOrProductUID': projectOrProductUID,
|
|
416
|
+
'fleetUID': fleetUID,
|
|
417
|
+
'key': key
|
|
521
418
|
};
|
|
522
419
|
var queryParams = {};
|
|
523
420
|
var headerParams = {};
|
|
524
421
|
var formParams = {};
|
|
525
|
-
var authNames = [
|
|
422
|
+
var authNames = ['personalAccessToken'];
|
|
526
423
|
var contentTypes = [];
|
|
527
|
-
var accepts = [
|
|
424
|
+
var accepts = ['application/json'];
|
|
528
425
|
var returnType = _EnvironmentVariables["default"];
|
|
529
|
-
return this.apiClient.callApi(
|
|
426
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables/{key}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
530
427
|
}
|
|
531
428
|
|
|
532
429
|
/**
|
|
533
430
|
* Delete environment variables of a fleet
|
|
534
|
-
* @param {String} projectOrProductUID
|
|
535
|
-
* @param {String} fleetUID
|
|
431
|
+
* @param {String} projectOrProductUID
|
|
432
|
+
* @param {String} fleetUID
|
|
536
433
|
* @param {String} key The environment variable key to delete.
|
|
537
434
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
538
435
|
*/
|
|
@@ -546,8 +443,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
546
443
|
|
|
547
444
|
/**
|
|
548
445
|
* Delete a product
|
|
549
|
-
* @param {String} projectOrProductUID
|
|
550
|
-
* @param {String} productUID
|
|
446
|
+
* @param {String} projectOrProductUID
|
|
447
|
+
* @param {String} productUID
|
|
551
448
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
552
449
|
*/
|
|
553
450
|
}, {
|
|
@@ -563,23 +460,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
563
460
|
throw new _Error["default"]("Missing the required parameter 'productUID' when calling deleteProduct");
|
|
564
461
|
}
|
|
565
462
|
var pathParams = {
|
|
566
|
-
projectOrProductUID: projectOrProductUID,
|
|
567
|
-
productUID: productUID
|
|
463
|
+
'projectOrProductUID': projectOrProductUID,
|
|
464
|
+
'productUID': productUID
|
|
568
465
|
};
|
|
569
466
|
var queryParams = {};
|
|
570
467
|
var headerParams = {};
|
|
571
468
|
var formParams = {};
|
|
572
|
-
var authNames = [
|
|
469
|
+
var authNames = ['personalAccessToken'];
|
|
573
470
|
var contentTypes = [];
|
|
574
|
-
var accepts = [
|
|
471
|
+
var accepts = ['application/json'];
|
|
575
472
|
var returnType = null;
|
|
576
|
-
return this.apiClient.callApi(
|
|
473
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/products/{productUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
577
474
|
}
|
|
578
475
|
|
|
579
476
|
/**
|
|
580
477
|
* Delete a product
|
|
581
|
-
* @param {String} projectOrProductUID
|
|
582
|
-
* @param {String} productUID
|
|
478
|
+
* @param {String} projectOrProductUID
|
|
479
|
+
* @param {String} productUID
|
|
583
480
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
584
481
|
*/
|
|
585
482
|
}, {
|
|
@@ -592,7 +489,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
592
489
|
|
|
593
490
|
/**
|
|
594
491
|
* Delete a Project by ProjectUID
|
|
595
|
-
* @param {String} projectOrProductUID
|
|
492
|
+
* @param {String} projectOrProductUID
|
|
596
493
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
597
494
|
*/
|
|
598
495
|
}, {
|
|
@@ -604,21 +501,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
604
501
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteProject");
|
|
605
502
|
}
|
|
606
503
|
var pathParams = {
|
|
607
|
-
projectOrProductUID: projectOrProductUID
|
|
504
|
+
'projectOrProductUID': projectOrProductUID
|
|
608
505
|
};
|
|
609
506
|
var queryParams = {};
|
|
610
507
|
var headerParams = {};
|
|
611
508
|
var formParams = {};
|
|
612
|
-
var authNames = [
|
|
509
|
+
var authNames = ['personalAccessToken'];
|
|
613
510
|
var contentTypes = [];
|
|
614
|
-
var accepts = [
|
|
511
|
+
var accepts = ['application/json'];
|
|
615
512
|
var returnType = null;
|
|
616
|
-
return this.apiClient.callApi(
|
|
513
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
617
514
|
}
|
|
618
515
|
|
|
619
516
|
/**
|
|
620
517
|
* Delete a Project by ProjectUID
|
|
621
|
-
* @param {String} projectOrProductUID
|
|
518
|
+
* @param {String} projectOrProductUID
|
|
622
519
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
623
520
|
*/
|
|
624
521
|
}, {
|
|
@@ -631,7 +528,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
631
528
|
|
|
632
529
|
/**
|
|
633
530
|
* Delete an environment variable of a project by key
|
|
634
|
-
* @param {String} projectOrProductUID
|
|
531
|
+
* @param {String} projectOrProductUID
|
|
635
532
|
* @param {String} key The environment variable key to delete.
|
|
636
533
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
637
534
|
*/
|
|
@@ -648,22 +545,22 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
648
545
|
throw new _Error["default"]("Missing the required parameter 'key' when calling deleteProjectEnvironmentVariable");
|
|
649
546
|
}
|
|
650
547
|
var pathParams = {
|
|
651
|
-
projectOrProductUID: projectOrProductUID,
|
|
652
|
-
key: key
|
|
548
|
+
'projectOrProductUID': projectOrProductUID,
|
|
549
|
+
'key': key
|
|
653
550
|
};
|
|
654
551
|
var queryParams = {};
|
|
655
552
|
var headerParams = {};
|
|
656
553
|
var formParams = {};
|
|
657
|
-
var authNames = [
|
|
554
|
+
var authNames = ['personalAccessToken'];
|
|
658
555
|
var contentTypes = [];
|
|
659
|
-
var accepts = [
|
|
556
|
+
var accepts = ['application/json'];
|
|
660
557
|
var returnType = _EnvironmentVariables["default"];
|
|
661
|
-
return this.apiClient.callApi(
|
|
558
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/environment_variables/{key}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
662
559
|
}
|
|
663
560
|
|
|
664
561
|
/**
|
|
665
562
|
* Delete an environment variable of a project by key
|
|
666
|
-
* @param {String} projectOrProductUID
|
|
563
|
+
* @param {String} projectOrProductUID
|
|
667
564
|
* @param {String} key The environment variable key to delete.
|
|
668
565
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
669
566
|
*/
|
|
@@ -675,55 +572,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
675
572
|
});
|
|
676
573
|
}
|
|
677
574
|
|
|
678
|
-
/**
|
|
679
|
-
* Delete a project secret by name
|
|
680
|
-
* @param {String} projectOrProductUID
|
|
681
|
-
* @param {String} secretName The name of the secret.
|
|
682
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
683
|
-
*/
|
|
684
|
-
}, {
|
|
685
|
-
key: "deleteProjectSecretWithHttpInfo",
|
|
686
|
-
value: function deleteProjectSecretWithHttpInfo(projectOrProductUID, secretName) {
|
|
687
|
-
var postBody = null;
|
|
688
|
-
// verify the required parameter 'projectOrProductUID' is set
|
|
689
|
-
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
690
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteProjectSecret");
|
|
691
|
-
}
|
|
692
|
-
// verify the required parameter 'secretName' is set
|
|
693
|
-
if (secretName === undefined || secretName === null) {
|
|
694
|
-
throw new _Error["default"]("Missing the required parameter 'secretName' when calling deleteProjectSecret");
|
|
695
|
-
}
|
|
696
|
-
var pathParams = {
|
|
697
|
-
projectOrProductUID: projectOrProductUID,
|
|
698
|
-
secretName: secretName
|
|
699
|
-
};
|
|
700
|
-
var queryParams = {};
|
|
701
|
-
var headerParams = {};
|
|
702
|
-
var formParams = {};
|
|
703
|
-
var authNames = ["personalAccessToken"];
|
|
704
|
-
var contentTypes = [];
|
|
705
|
-
var accepts = ["application/json"];
|
|
706
|
-
var returnType = null;
|
|
707
|
-
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/secrets/{secretName}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
708
|
-
}
|
|
709
|
-
|
|
710
|
-
/**
|
|
711
|
-
* Delete a project secret by name
|
|
712
|
-
* @param {String} projectOrProductUID
|
|
713
|
-
* @param {String} secretName The name of the secret.
|
|
714
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
715
|
-
*/
|
|
716
|
-
}, {
|
|
717
|
-
key: "deleteProjectSecret",
|
|
718
|
-
value: function deleteProjectSecret(projectOrProductUID, secretName) {
|
|
719
|
-
return this.deleteProjectSecretWithHttpInfo(projectOrProductUID, secretName).then(function (response_and_data) {
|
|
720
|
-
return response_and_data.data;
|
|
721
|
-
});
|
|
722
|
-
}
|
|
723
|
-
|
|
724
575
|
/**
|
|
725
576
|
* Disable the project-level event JSONata transformation
|
|
726
|
-
* @param {String} projectOrProductUID
|
|
577
|
+
* @param {String} projectOrProductUID
|
|
727
578
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
728
579
|
*/
|
|
729
580
|
}, {
|
|
@@ -735,21 +586,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
735
586
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling disableGlobalEventTransformation");
|
|
736
587
|
}
|
|
737
588
|
var pathParams = {
|
|
738
|
-
projectOrProductUID: projectOrProductUID
|
|
589
|
+
'projectOrProductUID': projectOrProductUID
|
|
739
590
|
};
|
|
740
591
|
var queryParams = {};
|
|
741
592
|
var headerParams = {};
|
|
742
593
|
var formParams = {};
|
|
743
|
-
var authNames = [
|
|
594
|
+
var authNames = ['personalAccessToken'];
|
|
744
595
|
var contentTypes = [];
|
|
745
|
-
var accepts = [
|
|
596
|
+
var accepts = ['application/json'];
|
|
746
597
|
var returnType = null;
|
|
747
|
-
return this.apiClient.callApi(
|
|
598
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/global-transformation/disable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
748
599
|
}
|
|
749
600
|
|
|
750
601
|
/**
|
|
751
602
|
* Disable the project-level event JSONata transformation
|
|
752
|
-
* @param {String} projectOrProductUID
|
|
603
|
+
* @param {String} projectOrProductUID
|
|
753
604
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
754
605
|
*/
|
|
755
606
|
}, {
|
|
@@ -762,9 +613,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
762
613
|
|
|
763
614
|
/**
|
|
764
615
|
* Download firmware binary
|
|
765
|
-
* @param {String} projectOrProductUID
|
|
766
|
-
* @param {module:model/String} firmwareType
|
|
767
|
-
* @param {String} filename
|
|
616
|
+
* @param {String} projectOrProductUID
|
|
617
|
+
* @param {module:model/String} firmwareType
|
|
618
|
+
* @param {String} filename
|
|
768
619
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link File} and HTTP response
|
|
769
620
|
*/
|
|
770
621
|
}, {
|
|
@@ -784,25 +635,25 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
784
635
|
throw new _Error["default"]("Missing the required parameter 'filename' when calling downloadFirmware");
|
|
785
636
|
}
|
|
786
637
|
var pathParams = {
|
|
787
|
-
projectOrProductUID: projectOrProductUID,
|
|
788
|
-
firmwareType: firmwareType,
|
|
789
|
-
filename: filename
|
|
638
|
+
'projectOrProductUID': projectOrProductUID,
|
|
639
|
+
'firmwareType': firmwareType,
|
|
640
|
+
'filename': filename
|
|
790
641
|
};
|
|
791
642
|
var queryParams = {};
|
|
792
643
|
var headerParams = {};
|
|
793
644
|
var formParams = {};
|
|
794
|
-
var authNames = [
|
|
645
|
+
var authNames = ['personalAccessToken'];
|
|
795
646
|
var contentTypes = [];
|
|
796
|
-
var accepts = [
|
|
647
|
+
var accepts = ['application/octet-stream', 'application/json'];
|
|
797
648
|
var returnType = File;
|
|
798
|
-
return this.apiClient.callApi(
|
|
649
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/firmware/{firmwareType}/{filename}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
799
650
|
}
|
|
800
651
|
|
|
801
652
|
/**
|
|
802
653
|
* Download firmware binary
|
|
803
|
-
* @param {String} projectOrProductUID
|
|
804
|
-
* @param {module:model/String} firmwareType
|
|
805
|
-
* @param {String} filename
|
|
654
|
+
* @param {String} projectOrProductUID
|
|
655
|
+
* @param {module:model/String} firmwareType
|
|
656
|
+
* @param {String} filename
|
|
806
657
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link File}
|
|
807
658
|
*/
|
|
808
659
|
}, {
|
|
@@ -815,7 +666,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
815
666
|
|
|
816
667
|
/**
|
|
817
668
|
* Enable the project-level event JSONata transformation
|
|
818
|
-
* @param {String} projectOrProductUID
|
|
669
|
+
* @param {String} projectOrProductUID
|
|
819
670
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
820
671
|
*/
|
|
821
672
|
}, {
|
|
@@ -827,21 +678,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
827
678
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling enableGlobalEventTransformation");
|
|
828
679
|
}
|
|
829
680
|
var pathParams = {
|
|
830
|
-
projectOrProductUID: projectOrProductUID
|
|
681
|
+
'projectOrProductUID': projectOrProductUID
|
|
831
682
|
};
|
|
832
683
|
var queryParams = {};
|
|
833
684
|
var headerParams = {};
|
|
834
685
|
var formParams = {};
|
|
835
|
-
var authNames = [
|
|
686
|
+
var authNames = ['personalAccessToken'];
|
|
836
687
|
var contentTypes = [];
|
|
837
|
-
var accepts = [
|
|
688
|
+
var accepts = ['application/json'];
|
|
838
689
|
var returnType = null;
|
|
839
|
-
return this.apiClient.callApi(
|
|
690
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/global-transformation/enable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
840
691
|
}
|
|
841
692
|
|
|
842
693
|
/**
|
|
843
694
|
* Enable the project-level event JSONata transformation
|
|
844
|
-
* @param {String} projectOrProductUID
|
|
695
|
+
* @param {String} projectOrProductUID
|
|
845
696
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
846
697
|
*/
|
|
847
698
|
}, {
|
|
@@ -854,8 +705,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
854
705
|
|
|
855
706
|
/**
|
|
856
707
|
* Get AWS role configuration for role-based authentication
|
|
857
|
-
* Returns the AWS Account ID and External ID needed to configure an IAM role trust policy for role-based authentication on AWS routes.
|
|
858
|
-
* @param {String} projectOrProductUID
|
|
708
|
+
* Returns the AWS Account ID and External ID needed to configure an IAM role trust policy for role-based authentication on AWS routes.
|
|
709
|
+
* @param {String} projectOrProductUID
|
|
859
710
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AWSRoleConfig} and HTTP response
|
|
860
711
|
*/
|
|
861
712
|
}, {
|
|
@@ -867,22 +718,22 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
867
718
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getAWSRoleConfig");
|
|
868
719
|
}
|
|
869
720
|
var pathParams = {
|
|
870
|
-
projectOrProductUID: projectOrProductUID
|
|
721
|
+
'projectOrProductUID': projectOrProductUID
|
|
871
722
|
};
|
|
872
723
|
var queryParams = {};
|
|
873
724
|
var headerParams = {};
|
|
874
725
|
var formParams = {};
|
|
875
|
-
var authNames = [
|
|
726
|
+
var authNames = ['personalAccessToken'];
|
|
876
727
|
var contentTypes = [];
|
|
877
|
-
var accepts = [
|
|
728
|
+
var accepts = ['application/json'];
|
|
878
729
|
var returnType = _AWSRoleConfig["default"];
|
|
879
|
-
return this.apiClient.callApi(
|
|
730
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/aws-role-config', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
880
731
|
}
|
|
881
732
|
|
|
882
733
|
/**
|
|
883
734
|
* Get AWS role configuration for role-based authentication
|
|
884
|
-
* Returns the AWS Account ID and External ID needed to configure an IAM role trust policy for role-based authentication on AWS routes.
|
|
885
|
-
* @param {String} projectOrProductUID
|
|
735
|
+
* Returns the AWS Account ID and External ID needed to configure an IAM role trust policy for role-based authentication on AWS routes.
|
|
736
|
+
* @param {String} projectOrProductUID
|
|
886
737
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AWSRoleConfig}
|
|
887
738
|
*/
|
|
888
739
|
}, {
|
|
@@ -895,9 +746,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
895
746
|
|
|
896
747
|
/**
|
|
897
748
|
* Get device DFU history for host or Notecard firmware
|
|
898
|
-
* @param {String} projectOrProductUID
|
|
899
|
-
* @param {String} deviceUID
|
|
900
|
-
* @param {module:model/String} firmwareType
|
|
749
|
+
* @param {String} projectOrProductUID
|
|
750
|
+
* @param {String} deviceUID
|
|
751
|
+
* @param {module:model/String} firmwareType
|
|
901
752
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuHistory} and HTTP response
|
|
902
753
|
*/
|
|
903
754
|
}, {
|
|
@@ -917,25 +768,25 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
917
768
|
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDeviceDfuHistory");
|
|
918
769
|
}
|
|
919
770
|
var pathParams = {
|
|
920
|
-
projectOrProductUID: projectOrProductUID,
|
|
921
|
-
deviceUID: deviceUID,
|
|
922
|
-
firmwareType: firmwareType
|
|
771
|
+
'projectOrProductUID': projectOrProductUID,
|
|
772
|
+
'deviceUID': deviceUID,
|
|
773
|
+
'firmwareType': firmwareType
|
|
923
774
|
};
|
|
924
775
|
var queryParams = {};
|
|
925
776
|
var headerParams = {};
|
|
926
777
|
var formParams = {};
|
|
927
|
-
var authNames = [
|
|
778
|
+
var authNames = ['personalAccessToken'];
|
|
928
779
|
var contentTypes = [];
|
|
929
|
-
var accepts = [
|
|
780
|
+
var accepts = ['application/json'];
|
|
930
781
|
var returnType = _DeviceDfuHistory["default"];
|
|
931
|
-
return this.apiClient.callApi(
|
|
782
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/dfu/{firmwareType}/history', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
932
783
|
}
|
|
933
784
|
|
|
934
785
|
/**
|
|
935
786
|
* Get device DFU history for host or Notecard firmware
|
|
936
|
-
* @param {String} projectOrProductUID
|
|
937
|
-
* @param {String} deviceUID
|
|
938
|
-
* @param {module:model/String} firmwareType
|
|
787
|
+
* @param {String} projectOrProductUID
|
|
788
|
+
* @param {String} deviceUID
|
|
789
|
+
* @param {module:model/String} firmwareType
|
|
939
790
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuHistory}
|
|
940
791
|
*/
|
|
941
792
|
}, {
|
|
@@ -948,9 +799,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
948
799
|
|
|
949
800
|
/**
|
|
950
801
|
* Get device DFU history for host or Notecard firmware
|
|
951
|
-
* @param {String} projectOrProductUID
|
|
952
|
-
* @param {String} deviceUID
|
|
953
|
-
* @param {module:model/String} firmwareType
|
|
802
|
+
* @param {String} projectOrProductUID
|
|
803
|
+
* @param {String} deviceUID
|
|
804
|
+
* @param {module:model/String} firmwareType
|
|
954
805
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuStatus} and HTTP response
|
|
955
806
|
*/
|
|
956
807
|
}, {
|
|
@@ -970,25 +821,25 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
970
821
|
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDeviceDfuStatus");
|
|
971
822
|
}
|
|
972
823
|
var pathParams = {
|
|
973
|
-
projectOrProductUID: projectOrProductUID,
|
|
974
|
-
deviceUID: deviceUID,
|
|
975
|
-
firmwareType: firmwareType
|
|
824
|
+
'projectOrProductUID': projectOrProductUID,
|
|
825
|
+
'deviceUID': deviceUID,
|
|
826
|
+
'firmwareType': firmwareType
|
|
976
827
|
};
|
|
977
828
|
var queryParams = {};
|
|
978
829
|
var headerParams = {};
|
|
979
830
|
var formParams = {};
|
|
980
|
-
var authNames = [
|
|
831
|
+
var authNames = ['personalAccessToken'];
|
|
981
832
|
var contentTypes = [];
|
|
982
|
-
var accepts = [
|
|
833
|
+
var accepts = ['application/json'];
|
|
983
834
|
var returnType = _DeviceDfuStatus["default"];
|
|
984
|
-
return this.apiClient.callApi(
|
|
835
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/dfu/{firmwareType}/status', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
985
836
|
}
|
|
986
837
|
|
|
987
838
|
/**
|
|
988
839
|
* Get device DFU history for host or Notecard firmware
|
|
989
|
-
* @param {String} projectOrProductUID
|
|
990
|
-
* @param {String} deviceUID
|
|
991
|
-
* @param {module:model/String} firmwareType
|
|
840
|
+
* @param {String} projectOrProductUID
|
|
841
|
+
* @param {String} deviceUID
|
|
842
|
+
* @param {module:model/String} firmwareType
|
|
992
843
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuStatus}
|
|
993
844
|
*/
|
|
994
845
|
}, {
|
|
@@ -1001,8 +852,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1001
852
|
|
|
1002
853
|
/**
|
|
1003
854
|
* Get Device Fleets
|
|
1004
|
-
* @param {String} projectOrProductUID
|
|
1005
|
-
* @param {String} deviceUID
|
|
855
|
+
* @param {String} projectOrProductUID
|
|
856
|
+
* @param {String} deviceUID
|
|
1006
857
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
1007
858
|
*/
|
|
1008
859
|
}, {
|
|
@@ -1018,23 +869,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1018
869
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceFleets");
|
|
1019
870
|
}
|
|
1020
871
|
var pathParams = {
|
|
1021
|
-
projectOrProductUID: projectOrProductUID,
|
|
1022
|
-
deviceUID: deviceUID
|
|
872
|
+
'projectOrProductUID': projectOrProductUID,
|
|
873
|
+
'deviceUID': deviceUID
|
|
1023
874
|
};
|
|
1024
875
|
var queryParams = {};
|
|
1025
876
|
var headerParams = {};
|
|
1026
877
|
var formParams = {};
|
|
1027
|
-
var authNames = [
|
|
878
|
+
var authNames = ['personalAccessToken'];
|
|
1028
879
|
var contentTypes = [];
|
|
1029
|
-
var accepts = [
|
|
880
|
+
var accepts = ['application/json'];
|
|
1030
881
|
var returnType = _GetDeviceFleets200Response["default"];
|
|
1031
|
-
return this.apiClient.callApi(
|
|
882
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/fleets', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1032
883
|
}
|
|
1033
884
|
|
|
1034
885
|
/**
|
|
1035
886
|
* Get Device Fleets
|
|
1036
|
-
* @param {String} projectOrProductUID
|
|
1037
|
-
* @param {String} deviceUID
|
|
887
|
+
* @param {String} projectOrProductUID
|
|
888
|
+
* @param {String} deviceUID
|
|
1038
889
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
1039
890
|
*/
|
|
1040
891
|
}, {
|
|
@@ -1047,8 +898,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1047
898
|
|
|
1048
899
|
/**
|
|
1049
900
|
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
1050
|
-
* @param {String} projectOrProductUID
|
|
1051
|
-
* @param {module:model/String} firmwareType
|
|
901
|
+
* @param {String} projectOrProductUID
|
|
902
|
+
* @param {module:model/String} firmwareType
|
|
1052
903
|
* @param {Object} opts Optional parameters
|
|
1053
904
|
* @param {Number} opts.pageSize (default to 50)
|
|
1054
905
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -1057,11 +908,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1057
908
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
1058
909
|
* @param {Array.<String>} opts.tag Tag filter
|
|
1059
910
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1060
|
-
* @param {String} opts.fleetUID
|
|
911
|
+
* @param {String} opts.fleetUID
|
|
1061
912
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1062
913
|
* @param {Array.<String>} opts.location Location filter
|
|
1063
914
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1064
|
-
* @param {Array.<String>} opts.productUID
|
|
915
|
+
* @param {Array.<String>} opts.productUID
|
|
1065
916
|
* @param {Array.<String>} opts.sku SKU filter
|
|
1066
917
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuHistoryPage} and HTTP response
|
|
1067
918
|
*/
|
|
@@ -1079,37 +930,37 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1079
930
|
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDevicesDfuHistory");
|
|
1080
931
|
}
|
|
1081
932
|
var pathParams = {
|
|
1082
|
-
projectOrProductUID: projectOrProductUID,
|
|
1083
|
-
firmwareType: firmwareType
|
|
933
|
+
'projectOrProductUID': projectOrProductUID,
|
|
934
|
+
'firmwareType': firmwareType
|
|
1084
935
|
};
|
|
1085
936
|
var queryParams = {
|
|
1086
|
-
pageSize: opts[
|
|
1087
|
-
pageNum: opts[
|
|
1088
|
-
sortBy: opts[
|
|
1089
|
-
sortOrder: opts[
|
|
1090
|
-
deviceUID: this.apiClient.buildCollectionParam(opts[
|
|
1091
|
-
tag: this.apiClient.buildCollectionParam(opts[
|
|
1092
|
-
serialNumber: this.apiClient.buildCollectionParam(opts[
|
|
1093
|
-
fleetUID: opts[
|
|
1094
|
-
notecardFirmware: this.apiClient.buildCollectionParam(opts[
|
|
1095
|
-
location: this.apiClient.buildCollectionParam(opts[
|
|
1096
|
-
hostFirmware: this.apiClient.buildCollectionParam(opts[
|
|
1097
|
-
productUID: this.apiClient.buildCollectionParam(opts[
|
|
1098
|
-
sku: this.apiClient.buildCollectionParam(opts[
|
|
937
|
+
'pageSize': opts['pageSize'],
|
|
938
|
+
'pageNum': opts['pageNum'],
|
|
939
|
+
'sortBy': opts['sortBy'],
|
|
940
|
+
'sortOrder': opts['sortOrder'],
|
|
941
|
+
'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
|
|
942
|
+
'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
|
|
943
|
+
'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
|
|
944
|
+
'fleetUID': opts['fleetUID'],
|
|
945
|
+
'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
|
|
946
|
+
'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
|
|
947
|
+
'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
|
|
948
|
+
'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
|
|
949
|
+
'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
|
|
1099
950
|
};
|
|
1100
951
|
var headerParams = {};
|
|
1101
952
|
var formParams = {};
|
|
1102
|
-
var authNames = [
|
|
953
|
+
var authNames = ['personalAccessToken'];
|
|
1103
954
|
var contentTypes = [];
|
|
1104
|
-
var accepts = [
|
|
955
|
+
var accepts = ['application/json'];
|
|
1105
956
|
var returnType = _DeviceDfuHistoryPage["default"];
|
|
1106
|
-
return this.apiClient.callApi(
|
|
957
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/dfu/{firmwareType}/history', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1107
958
|
}
|
|
1108
959
|
|
|
1109
960
|
/**
|
|
1110
961
|
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
1111
|
-
* @param {String} projectOrProductUID
|
|
1112
|
-
* @param {module:model/String} firmwareType
|
|
962
|
+
* @param {String} projectOrProductUID
|
|
963
|
+
* @param {module:model/String} firmwareType
|
|
1113
964
|
* @param {Object} opts Optional parameters
|
|
1114
965
|
* @param {Number} opts.pageSize (default to 50)
|
|
1115
966
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -1118,11 +969,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1118
969
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
1119
970
|
* @param {Array.<String>} opts.tag Tag filter
|
|
1120
971
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1121
|
-
* @param {String} opts.fleetUID
|
|
972
|
+
* @param {String} opts.fleetUID
|
|
1122
973
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1123
974
|
* @param {Array.<String>} opts.location Location filter
|
|
1124
975
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1125
|
-
* @param {Array.<String>} opts.productUID
|
|
976
|
+
* @param {Array.<String>} opts.productUID
|
|
1126
977
|
* @param {Array.<String>} opts.sku SKU filter
|
|
1127
978
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuHistoryPage}
|
|
1128
979
|
*/
|
|
@@ -1136,8 +987,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1136
987
|
|
|
1137
988
|
/**
|
|
1138
989
|
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
1139
|
-
* @param {String} projectOrProductUID
|
|
1140
|
-
* @param {module:model/String} firmwareType
|
|
990
|
+
* @param {String} projectOrProductUID
|
|
991
|
+
* @param {module:model/String} firmwareType
|
|
1141
992
|
* @param {Object} opts Optional parameters
|
|
1142
993
|
* @param {Number} opts.pageSize (default to 50)
|
|
1143
994
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -1146,11 +997,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1146
997
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
1147
998
|
* @param {Array.<String>} opts.tag Tag filter
|
|
1148
999
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1149
|
-
* @param {String} opts.fleetUID
|
|
1000
|
+
* @param {String} opts.fleetUID
|
|
1150
1001
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1151
1002
|
* @param {Array.<String>} opts.location Location filter
|
|
1152
1003
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1153
|
-
* @param {Array.<String>} opts.productUID
|
|
1004
|
+
* @param {Array.<String>} opts.productUID
|
|
1154
1005
|
* @param {Array.<String>} opts.sku SKU filter
|
|
1155
1006
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuStatusPage} and HTTP response
|
|
1156
1007
|
*/
|
|
@@ -1168,37 +1019,37 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1168
1019
|
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDevicesDfuStatus");
|
|
1169
1020
|
}
|
|
1170
1021
|
var pathParams = {
|
|
1171
|
-
projectOrProductUID: projectOrProductUID,
|
|
1172
|
-
firmwareType: firmwareType
|
|
1022
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1023
|
+
'firmwareType': firmwareType
|
|
1173
1024
|
};
|
|
1174
1025
|
var queryParams = {
|
|
1175
|
-
pageSize: opts[
|
|
1176
|
-
pageNum: opts[
|
|
1177
|
-
sortBy: opts[
|
|
1178
|
-
sortOrder: opts[
|
|
1179
|
-
deviceUID: this.apiClient.buildCollectionParam(opts[
|
|
1180
|
-
tag: this.apiClient.buildCollectionParam(opts[
|
|
1181
|
-
serialNumber: this.apiClient.buildCollectionParam(opts[
|
|
1182
|
-
fleetUID: opts[
|
|
1183
|
-
notecardFirmware: this.apiClient.buildCollectionParam(opts[
|
|
1184
|
-
location: this.apiClient.buildCollectionParam(opts[
|
|
1185
|
-
hostFirmware: this.apiClient.buildCollectionParam(opts[
|
|
1186
|
-
productUID: this.apiClient.buildCollectionParam(opts[
|
|
1187
|
-
sku: this.apiClient.buildCollectionParam(opts[
|
|
1026
|
+
'pageSize': opts['pageSize'],
|
|
1027
|
+
'pageNum': opts['pageNum'],
|
|
1028
|
+
'sortBy': opts['sortBy'],
|
|
1029
|
+
'sortOrder': opts['sortOrder'],
|
|
1030
|
+
'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
|
|
1031
|
+
'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
|
|
1032
|
+
'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
|
|
1033
|
+
'fleetUID': opts['fleetUID'],
|
|
1034
|
+
'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
|
|
1035
|
+
'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
|
|
1036
|
+
'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
|
|
1037
|
+
'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
|
|
1038
|
+
'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
|
|
1188
1039
|
};
|
|
1189
1040
|
var headerParams = {};
|
|
1190
1041
|
var formParams = {};
|
|
1191
|
-
var authNames = [
|
|
1042
|
+
var authNames = ['personalAccessToken'];
|
|
1192
1043
|
var contentTypes = [];
|
|
1193
|
-
var accepts = [
|
|
1044
|
+
var accepts = ['application/json'];
|
|
1194
1045
|
var returnType = _DeviceDfuStatusPage["default"];
|
|
1195
|
-
return this.apiClient.callApi(
|
|
1046
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/dfu/{firmwareType}/status', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1196
1047
|
}
|
|
1197
1048
|
|
|
1198
1049
|
/**
|
|
1199
1050
|
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
1200
|
-
* @param {String} projectOrProductUID
|
|
1201
|
-
* @param {module:model/String} firmwareType
|
|
1051
|
+
* @param {String} projectOrProductUID
|
|
1052
|
+
* @param {module:model/String} firmwareType
|
|
1202
1053
|
* @param {Object} opts Optional parameters
|
|
1203
1054
|
* @param {Number} opts.pageSize (default to 50)
|
|
1204
1055
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -1207,11 +1058,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1207
1058
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
1208
1059
|
* @param {Array.<String>} opts.tag Tag filter
|
|
1209
1060
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1210
|
-
* @param {String} opts.fleetUID
|
|
1061
|
+
* @param {String} opts.fleetUID
|
|
1211
1062
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1212
1063
|
* @param {Array.<String>} opts.location Location filter
|
|
1213
1064
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1214
|
-
* @param {Array.<String>} opts.productUID
|
|
1065
|
+
* @param {Array.<String>} opts.productUID
|
|
1215
1066
|
* @param {Array.<String>} opts.sku SKU filter
|
|
1216
1067
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuStatusPage}
|
|
1217
1068
|
*/
|
|
@@ -1225,15 +1076,15 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1225
1076
|
|
|
1226
1077
|
/**
|
|
1227
1078
|
* Get Available Firmware Information
|
|
1228
|
-
* @param {String} projectOrProductUID
|
|
1079
|
+
* @param {String} projectOrProductUID
|
|
1229
1080
|
* @param {Object} opts Optional parameters
|
|
1230
|
-
* @param {String} opts.product
|
|
1231
|
-
* @param {String} opts.firmwareType
|
|
1232
|
-
* @param {String} opts.version
|
|
1233
|
-
* @param {String} opts.target
|
|
1234
|
-
* @param {String} opts.filename
|
|
1235
|
-
* @param {String} opts.md5
|
|
1236
|
-
* @param {Boolean} opts.unpublished
|
|
1081
|
+
* @param {String} opts.product
|
|
1082
|
+
* @param {String} opts.firmwareType
|
|
1083
|
+
* @param {String} opts.version
|
|
1084
|
+
* @param {String} opts.target
|
|
1085
|
+
* @param {String} opts.filename
|
|
1086
|
+
* @param {String} opts.md5
|
|
1087
|
+
* @param {Boolean} opts.unpublished
|
|
1237
1088
|
* @param {module:model/String} opts.sortBy Field to sort by (default to 'created')
|
|
1238
1089
|
* @param {module:model/String} opts.sortOrder Sort order (asc for ascending, desc for descending) (default to 'desc')
|
|
1239
1090
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/FirmwareInfo>} and HTTP response
|
|
@@ -1248,39 +1099,39 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1248
1099
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getFirmwareInfo");
|
|
1249
1100
|
}
|
|
1250
1101
|
var pathParams = {
|
|
1251
|
-
projectOrProductUID: projectOrProductUID
|
|
1102
|
+
'projectOrProductUID': projectOrProductUID
|
|
1252
1103
|
};
|
|
1253
1104
|
var queryParams = {
|
|
1254
|
-
product: opts[
|
|
1255
|
-
firmwareType: opts[
|
|
1256
|
-
version: opts[
|
|
1257
|
-
target: opts[
|
|
1258
|
-
filename: opts[
|
|
1259
|
-
md5: opts[
|
|
1260
|
-
unpublished: opts[
|
|
1261
|
-
sortBy: opts[
|
|
1262
|
-
sortOrder: opts[
|
|
1105
|
+
'product': opts['product'],
|
|
1106
|
+
'firmwareType': opts['firmwareType'],
|
|
1107
|
+
'version': opts['version'],
|
|
1108
|
+
'target': opts['target'],
|
|
1109
|
+
'filename': opts['filename'],
|
|
1110
|
+
'md5': opts['md5'],
|
|
1111
|
+
'unpublished': opts['unpublished'],
|
|
1112
|
+
'sortBy': opts['sortBy'],
|
|
1113
|
+
'sortOrder': opts['sortOrder']
|
|
1263
1114
|
};
|
|
1264
1115
|
var headerParams = {};
|
|
1265
1116
|
var formParams = {};
|
|
1266
|
-
var authNames = [
|
|
1117
|
+
var authNames = ['personalAccessToken'];
|
|
1267
1118
|
var contentTypes = [];
|
|
1268
|
-
var accepts = [
|
|
1119
|
+
var accepts = ['application/json'];
|
|
1269
1120
|
var returnType = [_FirmwareInfo["default"]];
|
|
1270
|
-
return this.apiClient.callApi(
|
|
1121
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/firmware', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1271
1122
|
}
|
|
1272
1123
|
|
|
1273
1124
|
/**
|
|
1274
1125
|
* Get Available Firmware Information
|
|
1275
|
-
* @param {String} projectOrProductUID
|
|
1126
|
+
* @param {String} projectOrProductUID
|
|
1276
1127
|
* @param {Object} opts Optional parameters
|
|
1277
|
-
* @param {String} opts.product
|
|
1278
|
-
* @param {String} opts.firmwareType
|
|
1279
|
-
* @param {String} opts.version
|
|
1280
|
-
* @param {String} opts.target
|
|
1281
|
-
* @param {String} opts.filename
|
|
1282
|
-
* @param {String} opts.md5
|
|
1283
|
-
* @param {Boolean} opts.unpublished
|
|
1128
|
+
* @param {String} opts.product
|
|
1129
|
+
* @param {String} opts.firmwareType
|
|
1130
|
+
* @param {String} opts.version
|
|
1131
|
+
* @param {String} opts.target
|
|
1132
|
+
* @param {String} opts.filename
|
|
1133
|
+
* @param {String} opts.md5
|
|
1134
|
+
* @param {Boolean} opts.unpublished
|
|
1284
1135
|
* @param {module:model/String} opts.sortBy Field to sort by (default to 'created')
|
|
1285
1136
|
* @param {module:model/String} opts.sortOrder Sort order (asc for ascending, desc for descending) (default to 'desc')
|
|
1286
1137
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/FirmwareInfo>}
|
|
@@ -1295,8 +1146,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1295
1146
|
|
|
1296
1147
|
/**
|
|
1297
1148
|
* Get Fleet
|
|
1298
|
-
* @param {String} projectOrProductUID
|
|
1299
|
-
* @param {String} fleetUID
|
|
1149
|
+
* @param {String} projectOrProductUID
|
|
1150
|
+
* @param {String} fleetUID
|
|
1300
1151
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
1301
1152
|
*/
|
|
1302
1153
|
}, {
|
|
@@ -1312,23 +1163,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1312
1163
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleet");
|
|
1313
1164
|
}
|
|
1314
1165
|
var pathParams = {
|
|
1315
|
-
projectOrProductUID: projectOrProductUID,
|
|
1316
|
-
fleetUID: fleetUID
|
|
1166
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1167
|
+
'fleetUID': fleetUID
|
|
1317
1168
|
};
|
|
1318
1169
|
var queryParams = {};
|
|
1319
1170
|
var headerParams = {};
|
|
1320
1171
|
var formParams = {};
|
|
1321
|
-
var authNames = [
|
|
1172
|
+
var authNames = ['personalAccessToken'];
|
|
1322
1173
|
var contentTypes = [];
|
|
1323
|
-
var accepts = [
|
|
1174
|
+
var accepts = ['application/json'];
|
|
1324
1175
|
var returnType = _Fleet["default"];
|
|
1325
|
-
return this.apiClient.callApi(
|
|
1176
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1326
1177
|
}
|
|
1327
1178
|
|
|
1328
1179
|
/**
|
|
1329
1180
|
* Get Fleet
|
|
1330
|
-
* @param {String} projectOrProductUID
|
|
1331
|
-
* @param {String} fleetUID
|
|
1181
|
+
* @param {String} projectOrProductUID
|
|
1182
|
+
* @param {String} fleetUID
|
|
1332
1183
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
1333
1184
|
*/
|
|
1334
1185
|
}, {
|
|
@@ -1341,8 +1192,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1341
1192
|
|
|
1342
1193
|
/**
|
|
1343
1194
|
* Get environment variable hierarchy for a device
|
|
1344
|
-
* @param {String} projectOrProductUID
|
|
1345
|
-
* @param {String} fleetUID
|
|
1195
|
+
* @param {String} projectOrProductUID
|
|
1196
|
+
* @param {String} fleetUID
|
|
1346
1197
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
|
|
1347
1198
|
*/
|
|
1348
1199
|
}, {
|
|
@@ -1358,23 +1209,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1358
1209
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEnvironmentHierarchy");
|
|
1359
1210
|
}
|
|
1360
1211
|
var pathParams = {
|
|
1361
|
-
projectOrProductUID: projectOrProductUID,
|
|
1362
|
-
fleetUID: fleetUID
|
|
1212
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1213
|
+
'fleetUID': fleetUID
|
|
1363
1214
|
};
|
|
1364
1215
|
var queryParams = {};
|
|
1365
1216
|
var headerParams = {};
|
|
1366
1217
|
var formParams = {};
|
|
1367
|
-
var authNames = [
|
|
1218
|
+
var authNames = ['personalAccessToken'];
|
|
1368
1219
|
var contentTypes = [];
|
|
1369
|
-
var accepts = [
|
|
1220
|
+
var accepts = ['application/json'];
|
|
1370
1221
|
var returnType = _EnvTreeJsonNode["default"];
|
|
1371
|
-
return this.apiClient.callApi(
|
|
1222
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_hierarchy', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1372
1223
|
}
|
|
1373
1224
|
|
|
1374
1225
|
/**
|
|
1375
1226
|
* Get environment variable hierarchy for a device
|
|
1376
|
-
* @param {String} projectOrProductUID
|
|
1377
|
-
* @param {String} fleetUID
|
|
1227
|
+
* @param {String} projectOrProductUID
|
|
1228
|
+
* @param {String} fleetUID
|
|
1378
1229
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
|
|
1379
1230
|
*/
|
|
1380
1231
|
}, {
|
|
@@ -1387,8 +1238,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1387
1238
|
|
|
1388
1239
|
/**
|
|
1389
1240
|
* Get environment variables of a fleet
|
|
1390
|
-
* @param {String} projectOrProductUID
|
|
1391
|
-
* @param {String} fleetUID
|
|
1241
|
+
* @param {String} projectOrProductUID
|
|
1242
|
+
* @param {String} fleetUID
|
|
1392
1243
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1393
1244
|
*/
|
|
1394
1245
|
}, {
|
|
@@ -1404,23 +1255,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1404
1255
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEnvironmentVariables");
|
|
1405
1256
|
}
|
|
1406
1257
|
var pathParams = {
|
|
1407
|
-
projectOrProductUID: projectOrProductUID,
|
|
1408
|
-
fleetUID: fleetUID
|
|
1258
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1259
|
+
'fleetUID': fleetUID
|
|
1409
1260
|
};
|
|
1410
1261
|
var queryParams = {};
|
|
1411
1262
|
var headerParams = {};
|
|
1412
1263
|
var formParams = {};
|
|
1413
|
-
var authNames = [
|
|
1264
|
+
var authNames = ['personalAccessToken'];
|
|
1414
1265
|
var contentTypes = [];
|
|
1415
|
-
var accepts = [
|
|
1266
|
+
var accepts = ['application/json'];
|
|
1416
1267
|
var returnType = _EnvironmentVariables["default"];
|
|
1417
|
-
return this.apiClient.callApi(
|
|
1268
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1418
1269
|
}
|
|
1419
1270
|
|
|
1420
1271
|
/**
|
|
1421
1272
|
* Get environment variables of a fleet
|
|
1422
|
-
* @param {String} projectOrProductUID
|
|
1423
|
-
* @param {String} fleetUID
|
|
1273
|
+
* @param {String} projectOrProductUID
|
|
1274
|
+
* @param {String} fleetUID
|
|
1424
1275
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1425
1276
|
*/
|
|
1426
1277
|
}, {
|
|
@@ -1433,7 +1284,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1433
1284
|
|
|
1434
1285
|
/**
|
|
1435
1286
|
* Get Project Fleets
|
|
1436
|
-
* @param {String} projectOrProductUID
|
|
1287
|
+
* @param {String} projectOrProductUID
|
|
1437
1288
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
1438
1289
|
*/
|
|
1439
1290
|
}, {
|
|
@@ -1445,21 +1296,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1445
1296
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getFleets");
|
|
1446
1297
|
}
|
|
1447
1298
|
var pathParams = {
|
|
1448
|
-
projectOrProductUID: projectOrProductUID
|
|
1299
|
+
'projectOrProductUID': projectOrProductUID
|
|
1449
1300
|
};
|
|
1450
1301
|
var queryParams = {};
|
|
1451
1302
|
var headerParams = {};
|
|
1452
1303
|
var formParams = {};
|
|
1453
|
-
var authNames = [
|
|
1304
|
+
var authNames = ['personalAccessToken'];
|
|
1454
1305
|
var contentTypes = [];
|
|
1455
|
-
var accepts = [
|
|
1306
|
+
var accepts = ['application/json'];
|
|
1456
1307
|
var returnType = _GetDeviceFleets200Response["default"];
|
|
1457
|
-
return this.apiClient.callApi(
|
|
1308
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1458
1309
|
}
|
|
1459
1310
|
|
|
1460
1311
|
/**
|
|
1461
1312
|
* Get Project Fleets
|
|
1462
|
-
* @param {String} projectOrProductUID
|
|
1313
|
+
* @param {String} projectOrProductUID
|
|
1463
1314
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
1464
1315
|
*/
|
|
1465
1316
|
}, {
|
|
@@ -1472,7 +1323,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1472
1323
|
|
|
1473
1324
|
/**
|
|
1474
1325
|
* Get variable format for a notefile
|
|
1475
|
-
* @param {String} projectOrProductUID
|
|
1326
|
+
* @param {String} projectOrProductUID
|
|
1476
1327
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/NotefileSchema>} and HTTP response
|
|
1477
1328
|
*/
|
|
1478
1329
|
}, {
|
|
@@ -1484,21 +1335,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1484
1335
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getNotefileSchemas");
|
|
1485
1336
|
}
|
|
1486
1337
|
var pathParams = {
|
|
1487
|
-
projectOrProductUID: projectOrProductUID
|
|
1338
|
+
'projectOrProductUID': projectOrProductUID
|
|
1488
1339
|
};
|
|
1489
1340
|
var queryParams = {};
|
|
1490
1341
|
var headerParams = {};
|
|
1491
1342
|
var formParams = {};
|
|
1492
1343
|
var authNames = [];
|
|
1493
1344
|
var contentTypes = [];
|
|
1494
|
-
var accepts = [
|
|
1345
|
+
var accepts = ['application/json'];
|
|
1495
1346
|
var returnType = [_NotefileSchema["default"]];
|
|
1496
|
-
return this.apiClient.callApi(
|
|
1347
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/schemas', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1497
1348
|
}
|
|
1498
1349
|
|
|
1499
1350
|
/**
|
|
1500
1351
|
* Get variable format for a notefile
|
|
1501
|
-
* @param {String} projectOrProductUID
|
|
1352
|
+
* @param {String} projectOrProductUID
|
|
1502
1353
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/NotefileSchema>}
|
|
1503
1354
|
*/
|
|
1504
1355
|
}, {
|
|
@@ -1511,7 +1362,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1511
1362
|
|
|
1512
1363
|
/**
|
|
1513
1364
|
* Get Products within a Project
|
|
1514
|
-
* @param {String} projectOrProductUID
|
|
1365
|
+
* @param {String} projectOrProductUID
|
|
1515
1366
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProducts200Response} and HTTP response
|
|
1516
1367
|
*/
|
|
1517
1368
|
}, {
|
|
@@ -1523,21 +1374,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1523
1374
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProducts");
|
|
1524
1375
|
}
|
|
1525
1376
|
var pathParams = {
|
|
1526
|
-
projectOrProductUID: projectOrProductUID
|
|
1377
|
+
'projectOrProductUID': projectOrProductUID
|
|
1527
1378
|
};
|
|
1528
1379
|
var queryParams = {};
|
|
1529
1380
|
var headerParams = {};
|
|
1530
1381
|
var formParams = {};
|
|
1531
|
-
var authNames = [
|
|
1382
|
+
var authNames = ['personalAccessToken'];
|
|
1532
1383
|
var contentTypes = [];
|
|
1533
|
-
var accepts = [
|
|
1384
|
+
var accepts = ['application/json'];
|
|
1534
1385
|
var returnType = _GetProducts200Response["default"];
|
|
1535
|
-
return this.apiClient.callApi(
|
|
1386
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/products', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1536
1387
|
}
|
|
1537
1388
|
|
|
1538
1389
|
/**
|
|
1539
1390
|
* Get Products within a Project
|
|
1540
|
-
* @param {String} projectOrProductUID
|
|
1391
|
+
* @param {String} projectOrProductUID
|
|
1541
1392
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProducts200Response}
|
|
1542
1393
|
*/
|
|
1543
1394
|
}, {
|
|
@@ -1550,7 +1401,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1550
1401
|
|
|
1551
1402
|
/**
|
|
1552
1403
|
* Get a Project by ProjectUID
|
|
1553
|
-
* @param {String} projectOrProductUID
|
|
1404
|
+
* @param {String} projectOrProductUID
|
|
1554
1405
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
1555
1406
|
*/
|
|
1556
1407
|
}, {
|
|
@@ -1562,21 +1413,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1562
1413
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProject");
|
|
1563
1414
|
}
|
|
1564
1415
|
var pathParams = {
|
|
1565
|
-
projectOrProductUID: projectOrProductUID
|
|
1416
|
+
'projectOrProductUID': projectOrProductUID
|
|
1566
1417
|
};
|
|
1567
1418
|
var queryParams = {};
|
|
1568
1419
|
var headerParams = {};
|
|
1569
1420
|
var formParams = {};
|
|
1570
|
-
var authNames = [
|
|
1421
|
+
var authNames = ['personalAccessToken'];
|
|
1571
1422
|
var contentTypes = [];
|
|
1572
|
-
var accepts = [
|
|
1423
|
+
var accepts = ['application/json'];
|
|
1573
1424
|
var returnType = _Project["default"];
|
|
1574
|
-
return this.apiClient.callApi(
|
|
1425
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1575
1426
|
}
|
|
1576
1427
|
|
|
1577
1428
|
/**
|
|
1578
1429
|
* Get a Project by ProjectUID
|
|
1579
|
-
* @param {String} projectOrProductUID
|
|
1430
|
+
* @param {String} projectOrProductUID
|
|
1580
1431
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
1581
1432
|
*/
|
|
1582
1433
|
}, {
|
|
@@ -1589,7 +1440,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1589
1440
|
|
|
1590
1441
|
/**
|
|
1591
1442
|
* Get a Project by ProductUID
|
|
1592
|
-
* @param {String} productUID
|
|
1443
|
+
* @param {String} productUID
|
|
1593
1444
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
1594
1445
|
*/
|
|
1595
1446
|
}, {
|
|
@@ -1601,21 +1452,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1601
1452
|
throw new _Error["default"]("Missing the required parameter 'productUID' when calling getProjectByProduct");
|
|
1602
1453
|
}
|
|
1603
1454
|
var pathParams = {
|
|
1604
|
-
productUID: productUID
|
|
1455
|
+
'productUID': productUID
|
|
1605
1456
|
};
|
|
1606
1457
|
var queryParams = {};
|
|
1607
1458
|
var headerParams = {};
|
|
1608
1459
|
var formParams = {};
|
|
1609
|
-
var authNames = [
|
|
1460
|
+
var authNames = ['personalAccessToken'];
|
|
1610
1461
|
var contentTypes = [];
|
|
1611
|
-
var accepts = [
|
|
1462
|
+
var accepts = ['application/json'];
|
|
1612
1463
|
var returnType = _Project["default"];
|
|
1613
|
-
return this.apiClient.callApi(
|
|
1464
|
+
return this.apiClient.callApi('/v1/products/{productUID}/project', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1614
1465
|
}
|
|
1615
1466
|
|
|
1616
1467
|
/**
|
|
1617
1468
|
* Get a Project by ProductUID
|
|
1618
|
-
* @param {String} productUID
|
|
1469
|
+
* @param {String} productUID
|
|
1619
1470
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
1620
1471
|
*/
|
|
1621
1472
|
}, {
|
|
@@ -1628,7 +1479,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1628
1479
|
|
|
1629
1480
|
/**
|
|
1630
1481
|
* Get environment variable hierarchy for a device
|
|
1631
|
-
* @param {String} projectOrProductUID
|
|
1482
|
+
* @param {String} projectOrProductUID
|
|
1632
1483
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
|
|
1633
1484
|
*/
|
|
1634
1485
|
}, {
|
|
@@ -1640,21 +1491,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1640
1491
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectEnvironmentHierarchy");
|
|
1641
1492
|
}
|
|
1642
1493
|
var pathParams = {
|
|
1643
|
-
projectOrProductUID: projectOrProductUID
|
|
1494
|
+
'projectOrProductUID': projectOrProductUID
|
|
1644
1495
|
};
|
|
1645
1496
|
var queryParams = {};
|
|
1646
1497
|
var headerParams = {};
|
|
1647
1498
|
var formParams = {};
|
|
1648
|
-
var authNames = [
|
|
1499
|
+
var authNames = ['personalAccessToken'];
|
|
1649
1500
|
var contentTypes = [];
|
|
1650
|
-
var accepts = [
|
|
1501
|
+
var accepts = ['application/json'];
|
|
1651
1502
|
var returnType = _EnvTreeJsonNode["default"];
|
|
1652
|
-
return this.apiClient.callApi(
|
|
1503
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/environment_hierarchy', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1653
1504
|
}
|
|
1654
1505
|
|
|
1655
1506
|
/**
|
|
1656
1507
|
* Get environment variable hierarchy for a device
|
|
1657
|
-
* @param {String} projectOrProductUID
|
|
1508
|
+
* @param {String} projectOrProductUID
|
|
1658
1509
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
|
|
1659
1510
|
*/
|
|
1660
1511
|
}, {
|
|
@@ -1667,7 +1518,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1667
1518
|
|
|
1668
1519
|
/**
|
|
1669
1520
|
* Get environment variables of a project
|
|
1670
|
-
* @param {String} projectOrProductUID
|
|
1521
|
+
* @param {String} projectOrProductUID
|
|
1671
1522
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1672
1523
|
*/
|
|
1673
1524
|
}, {
|
|
@@ -1679,21 +1530,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1679
1530
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectEnvironmentVariables");
|
|
1680
1531
|
}
|
|
1681
1532
|
var pathParams = {
|
|
1682
|
-
projectOrProductUID: projectOrProductUID
|
|
1533
|
+
'projectOrProductUID': projectOrProductUID
|
|
1683
1534
|
};
|
|
1684
1535
|
var queryParams = {};
|
|
1685
1536
|
var headerParams = {};
|
|
1686
1537
|
var formParams = {};
|
|
1687
|
-
var authNames = [
|
|
1538
|
+
var authNames = ['personalAccessToken'];
|
|
1688
1539
|
var contentTypes = [];
|
|
1689
|
-
var accepts = [
|
|
1540
|
+
var accepts = ['application/json'];
|
|
1690
1541
|
var returnType = _EnvironmentVariables["default"];
|
|
1691
|
-
return this.apiClient.callApi(
|
|
1542
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/environment_variables', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1692
1543
|
}
|
|
1693
1544
|
|
|
1694
1545
|
/**
|
|
1695
1546
|
* Get environment variables of a project
|
|
1696
|
-
* @param {String} projectOrProductUID
|
|
1547
|
+
* @param {String} projectOrProductUID
|
|
1697
1548
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1698
1549
|
*/
|
|
1699
1550
|
}, {
|
|
@@ -1706,7 +1557,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1706
1557
|
|
|
1707
1558
|
/**
|
|
1708
1559
|
* Get Project Members
|
|
1709
|
-
* @param {String} projectOrProductUID
|
|
1560
|
+
* @param {String} projectOrProductUID
|
|
1710
1561
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectMembers200Response} and HTTP response
|
|
1711
1562
|
*/
|
|
1712
1563
|
}, {
|
|
@@ -1718,21 +1569,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1718
1569
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectMembers");
|
|
1719
1570
|
}
|
|
1720
1571
|
var pathParams = {
|
|
1721
|
-
projectOrProductUID: projectOrProductUID
|
|
1572
|
+
'projectOrProductUID': projectOrProductUID
|
|
1722
1573
|
};
|
|
1723
1574
|
var queryParams = {};
|
|
1724
1575
|
var headerParams = {};
|
|
1725
1576
|
var formParams = {};
|
|
1726
|
-
var authNames = [
|
|
1577
|
+
var authNames = ['personalAccessToken'];
|
|
1727
1578
|
var contentTypes = [];
|
|
1728
|
-
var accepts = [
|
|
1579
|
+
var accepts = ['application/json'];
|
|
1729
1580
|
var returnType = _GetProjectMembers200Response["default"];
|
|
1730
|
-
return this.apiClient.callApi(
|
|
1581
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/members', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1731
1582
|
}
|
|
1732
1583
|
|
|
1733
1584
|
/**
|
|
1734
1585
|
* Get Project Members
|
|
1735
|
-
* @param {String} projectOrProductUID
|
|
1586
|
+
* @param {String} projectOrProductUID
|
|
1736
1587
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectMembers200Response}
|
|
1737
1588
|
*/
|
|
1738
1589
|
}, {
|
|
@@ -1743,45 +1594,6 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1743
1594
|
});
|
|
1744
1595
|
}
|
|
1745
1596
|
|
|
1746
|
-
/**
|
|
1747
|
-
* Get all secrets for a project (metadata only, values are never returned)
|
|
1748
|
-
* @param {String} projectOrProductUID
|
|
1749
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectSecretsResponse} and HTTP response
|
|
1750
|
-
*/
|
|
1751
|
-
}, {
|
|
1752
|
-
key: "getProjectSecretsWithHttpInfo",
|
|
1753
|
-
value: function getProjectSecretsWithHttpInfo(projectOrProductUID) {
|
|
1754
|
-
var postBody = null;
|
|
1755
|
-
// verify the required parameter 'projectOrProductUID' is set
|
|
1756
|
-
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1757
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectSecrets");
|
|
1758
|
-
}
|
|
1759
|
-
var pathParams = {
|
|
1760
|
-
projectOrProductUID: projectOrProductUID
|
|
1761
|
-
};
|
|
1762
|
-
var queryParams = {};
|
|
1763
|
-
var headerParams = {};
|
|
1764
|
-
var formParams = {};
|
|
1765
|
-
var authNames = ["personalAccessToken"];
|
|
1766
|
-
var contentTypes = [];
|
|
1767
|
-
var accepts = ["application/json"];
|
|
1768
|
-
var returnType = _GetProjectSecretsResponse["default"];
|
|
1769
|
-
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/secrets", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1770
|
-
}
|
|
1771
|
-
|
|
1772
|
-
/**
|
|
1773
|
-
* Get all secrets for a project (metadata only, values are never returned)
|
|
1774
|
-
* @param {String} projectOrProductUID
|
|
1775
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectSecretsResponse}
|
|
1776
|
-
*/
|
|
1777
|
-
}, {
|
|
1778
|
-
key: "getProjectSecrets",
|
|
1779
|
-
value: function getProjectSecrets(projectOrProductUID) {
|
|
1780
|
-
return this.getProjectSecretsWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
|
|
1781
|
-
return response_and_data.data;
|
|
1782
|
-
});
|
|
1783
|
-
}
|
|
1784
|
-
|
|
1785
1597
|
/**
|
|
1786
1598
|
* Get Projects accessible by the api_key
|
|
1787
1599
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjects200Response} and HTTP response
|
|
@@ -1794,11 +1606,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1794
1606
|
var queryParams = {};
|
|
1795
1607
|
var headerParams = {};
|
|
1796
1608
|
var formParams = {};
|
|
1797
|
-
var authNames = [
|
|
1609
|
+
var authNames = ['personalAccessToken'];
|
|
1798
1610
|
var contentTypes = [];
|
|
1799
|
-
var accepts = [
|
|
1611
|
+
var accepts = ['application/json'];
|
|
1800
1612
|
var returnType = _GetProjects200Response["default"];
|
|
1801
|
-
return this.apiClient.callApi(
|
|
1613
|
+
return this.apiClient.callApi('/v1/projects', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1802
1614
|
}
|
|
1803
1615
|
|
|
1804
1616
|
/**
|
|
@@ -1815,18 +1627,18 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1815
1627
|
|
|
1816
1628
|
/**
|
|
1817
1629
|
* Update/cancel host or notecard firmware updates
|
|
1818
|
-
* @param {String} projectOrProductUID
|
|
1819
|
-
* @param {module:model/String} firmwareType
|
|
1820
|
-
* @param {module:model/String} action
|
|
1630
|
+
* @param {String} projectOrProductUID
|
|
1631
|
+
* @param {module:model/String} firmwareType
|
|
1632
|
+
* @param {module:model/String} action
|
|
1821
1633
|
* @param {Object} opts Optional parameters
|
|
1822
1634
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
1823
1635
|
* @param {Array.<String>} opts.tag Tag filter
|
|
1824
1636
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1825
|
-
* @param {String} opts.fleetUID
|
|
1637
|
+
* @param {String} opts.fleetUID
|
|
1826
1638
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1827
1639
|
* @param {Array.<String>} opts.location Location filter
|
|
1828
1640
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1829
|
-
* @param {Array.<String>} opts.productUID
|
|
1641
|
+
* @param {Array.<String>} opts.productUID
|
|
1830
1642
|
* @param {Array.<String>} opts.sku SKU filter
|
|
1831
1643
|
* @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
|
|
1832
1644
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
@@ -1835,7 +1647,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1835
1647
|
key: "performDfuActionWithHttpInfo",
|
|
1836
1648
|
value: function performDfuActionWithHttpInfo(projectOrProductUID, firmwareType, action, opts) {
|
|
1837
1649
|
opts = opts || {};
|
|
1838
|
-
var postBody = opts[
|
|
1650
|
+
var postBody = opts['dfuActionRequest'];
|
|
1839
1651
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1840
1652
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1841
1653
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling performDfuAction");
|
|
@@ -1849,44 +1661,44 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1849
1661
|
throw new _Error["default"]("Missing the required parameter 'action' when calling performDfuAction");
|
|
1850
1662
|
}
|
|
1851
1663
|
var pathParams = {
|
|
1852
|
-
projectOrProductUID: projectOrProductUID,
|
|
1853
|
-
firmwareType: firmwareType,
|
|
1854
|
-
action: action
|
|
1664
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1665
|
+
'firmwareType': firmwareType,
|
|
1666
|
+
'action': action
|
|
1855
1667
|
};
|
|
1856
1668
|
var queryParams = {
|
|
1857
|
-
deviceUID: this.apiClient.buildCollectionParam(opts[
|
|
1858
|
-
tag: this.apiClient.buildCollectionParam(opts[
|
|
1859
|
-
serialNumber: this.apiClient.buildCollectionParam(opts[
|
|
1860
|
-
fleetUID: opts[
|
|
1861
|
-
notecardFirmware: this.apiClient.buildCollectionParam(opts[
|
|
1862
|
-
location: this.apiClient.buildCollectionParam(opts[
|
|
1863
|
-
hostFirmware: this.apiClient.buildCollectionParam(opts[
|
|
1864
|
-
productUID: this.apiClient.buildCollectionParam(opts[
|
|
1865
|
-
sku: this.apiClient.buildCollectionParam(opts[
|
|
1669
|
+
'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
|
|
1670
|
+
'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
|
|
1671
|
+
'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
|
|
1672
|
+
'fleetUID': opts['fleetUID'],
|
|
1673
|
+
'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
|
|
1674
|
+
'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
|
|
1675
|
+
'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
|
|
1676
|
+
'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
|
|
1677
|
+
'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
|
|
1866
1678
|
};
|
|
1867
1679
|
var headerParams = {};
|
|
1868
1680
|
var formParams = {};
|
|
1869
|
-
var authNames = [
|
|
1870
|
-
var contentTypes = [
|
|
1871
|
-
var accepts = [
|
|
1681
|
+
var authNames = ['personalAccessToken'];
|
|
1682
|
+
var contentTypes = ['application/json'];
|
|
1683
|
+
var accepts = ['application/json'];
|
|
1872
1684
|
var returnType = null;
|
|
1873
|
-
return this.apiClient.callApi(
|
|
1685
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/dfu/{firmwareType}/{action}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1874
1686
|
}
|
|
1875
1687
|
|
|
1876
1688
|
/**
|
|
1877
1689
|
* Update/cancel host or notecard firmware updates
|
|
1878
|
-
* @param {String} projectOrProductUID
|
|
1879
|
-
* @param {module:model/String} firmwareType
|
|
1880
|
-
* @param {module:model/String} action
|
|
1690
|
+
* @param {String} projectOrProductUID
|
|
1691
|
+
* @param {module:model/String} firmwareType
|
|
1692
|
+
* @param {module:model/String} action
|
|
1881
1693
|
* @param {Object} opts Optional parameters
|
|
1882
1694
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
1883
1695
|
* @param {Array.<String>} opts.tag Tag filter
|
|
1884
1696
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1885
|
-
* @param {String} opts.fleetUID
|
|
1697
|
+
* @param {String} opts.fleetUID
|
|
1886
1698
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1887
1699
|
* @param {Array.<String>} opts.location Location filter
|
|
1888
1700
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1889
|
-
* @param {Array.<String>} opts.productUID
|
|
1701
|
+
* @param {Array.<String>} opts.productUID
|
|
1890
1702
|
* @param {Array.<String>} opts.sku SKU filter
|
|
1891
1703
|
* @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
|
|
1892
1704
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
@@ -1901,8 +1713,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1901
1713
|
|
|
1902
1714
|
/**
|
|
1903
1715
|
* Set environment variables of a fleet
|
|
1904
|
-
* @param {String} projectOrProductUID
|
|
1905
|
-
* @param {String} fleetUID
|
|
1716
|
+
* @param {String} projectOrProductUID
|
|
1717
|
+
* @param {String} fleetUID
|
|
1906
1718
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
1907
1719
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1908
1720
|
*/
|
|
@@ -1923,23 +1735,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1923
1735
|
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling setFleetEnvironmentVariables");
|
|
1924
1736
|
}
|
|
1925
1737
|
var pathParams = {
|
|
1926
|
-
projectOrProductUID: projectOrProductUID,
|
|
1927
|
-
fleetUID: fleetUID
|
|
1738
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1739
|
+
'fleetUID': fleetUID
|
|
1928
1740
|
};
|
|
1929
1741
|
var queryParams = {};
|
|
1930
1742
|
var headerParams = {};
|
|
1931
1743
|
var formParams = {};
|
|
1932
|
-
var authNames = [
|
|
1933
|
-
var contentTypes = [
|
|
1934
|
-
var accepts = [
|
|
1744
|
+
var authNames = ['personalAccessToken'];
|
|
1745
|
+
var contentTypes = ['application/json'];
|
|
1746
|
+
var accepts = ['application/json'];
|
|
1935
1747
|
var returnType = _EnvironmentVariables["default"];
|
|
1936
|
-
return this.apiClient.callApi(
|
|
1748
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1937
1749
|
}
|
|
1938
1750
|
|
|
1939
1751
|
/**
|
|
1940
1752
|
* Set environment variables of a fleet
|
|
1941
|
-
* @param {String} projectOrProductUID
|
|
1942
|
-
* @param {String} fleetUID
|
|
1753
|
+
* @param {String} projectOrProductUID
|
|
1754
|
+
* @param {String} fleetUID
|
|
1943
1755
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
1944
1756
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1945
1757
|
*/
|
|
@@ -1953,7 +1765,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1953
1765
|
|
|
1954
1766
|
/**
|
|
1955
1767
|
* Set the project-level event JSONata transformation
|
|
1956
|
-
* @param {String} projectOrProductUID
|
|
1768
|
+
* @param {String} projectOrProductUID
|
|
1957
1769
|
* @param {Object.<String, Object>} body JSONata expression which will be applied to each event before it is persisted and routed
|
|
1958
1770
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1959
1771
|
*/
|
|
@@ -1970,21 +1782,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1970
1782
|
throw new _Error["default"]("Missing the required parameter 'body' when calling setGlobalEventTransformation");
|
|
1971
1783
|
}
|
|
1972
1784
|
var pathParams = {
|
|
1973
|
-
projectOrProductUID: projectOrProductUID
|
|
1785
|
+
'projectOrProductUID': projectOrProductUID
|
|
1974
1786
|
};
|
|
1975
1787
|
var queryParams = {};
|
|
1976
1788
|
var headerParams = {};
|
|
1977
1789
|
var formParams = {};
|
|
1978
|
-
var authNames = [
|
|
1979
|
-
var contentTypes = [
|
|
1980
|
-
var accepts = [
|
|
1790
|
+
var authNames = ['personalAccessToken'];
|
|
1791
|
+
var contentTypes = ['application/json'];
|
|
1792
|
+
var accepts = ['application/json'];
|
|
1981
1793
|
var returnType = null;
|
|
1982
|
-
return this.apiClient.callApi(
|
|
1794
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/global-transformation', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1983
1795
|
}
|
|
1984
1796
|
|
|
1985
1797
|
/**
|
|
1986
1798
|
* Set the project-level event JSONata transformation
|
|
1987
|
-
* @param {String} projectOrProductUID
|
|
1799
|
+
* @param {String} projectOrProductUID
|
|
1988
1800
|
* @param {Object.<String, Object>} body JSONata expression which will be applied to each event before it is persisted and routed
|
|
1989
1801
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1990
1802
|
*/
|
|
@@ -1998,38 +1810,38 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1998
1810
|
|
|
1999
1811
|
/**
|
|
2000
1812
|
* Set environment variables of a project
|
|
2001
|
-
* @param {String} projectOrProductUID
|
|
1813
|
+
* @param {String} projectOrProductUID
|
|
2002
1814
|
* @param {Object} opts Optional parameters
|
|
2003
|
-
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1815
|
+
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
2004
1816
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
2005
1817
|
*/
|
|
2006
1818
|
}, {
|
|
2007
1819
|
key: "setProjectEnvironmentVariablesWithHttpInfo",
|
|
2008
1820
|
value: function setProjectEnvironmentVariablesWithHttpInfo(projectOrProductUID, opts) {
|
|
2009
1821
|
opts = opts || {};
|
|
2010
|
-
var postBody = opts[
|
|
1822
|
+
var postBody = opts['environmentVariables'];
|
|
2011
1823
|
// verify the required parameter 'projectOrProductUID' is set
|
|
2012
1824
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
2013
1825
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling setProjectEnvironmentVariables");
|
|
2014
1826
|
}
|
|
2015
1827
|
var pathParams = {
|
|
2016
|
-
projectOrProductUID: projectOrProductUID
|
|
1828
|
+
'projectOrProductUID': projectOrProductUID
|
|
2017
1829
|
};
|
|
2018
1830
|
var queryParams = {};
|
|
2019
1831
|
var headerParams = {};
|
|
2020
1832
|
var formParams = {};
|
|
2021
|
-
var authNames = [
|
|
2022
|
-
var contentTypes = [
|
|
2023
|
-
var accepts = [
|
|
1833
|
+
var authNames = ['personalAccessToken'];
|
|
1834
|
+
var contentTypes = ['application/json'];
|
|
1835
|
+
var accepts = ['application/json'];
|
|
2024
1836
|
var returnType = _EnvironmentVariables["default"];
|
|
2025
|
-
return this.apiClient.callApi(
|
|
1837
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
2026
1838
|
}
|
|
2027
1839
|
|
|
2028
1840
|
/**
|
|
2029
1841
|
* Set environment variables of a project
|
|
2030
|
-
* @param {String} projectOrProductUID
|
|
1842
|
+
* @param {String} projectOrProductUID
|
|
2031
1843
|
* @param {Object} opts Optional parameters
|
|
2032
|
-
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1844
|
+
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
2033
1845
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
2034
1846
|
*/
|
|
2035
1847
|
}, {
|
|
@@ -2040,69 +1852,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2040
1852
|
});
|
|
2041
1853
|
}
|
|
2042
1854
|
|
|
2043
|
-
/**
|
|
2044
|
-
* Update the metadata of an existing host firmware entry. The filename must be the full stored filename including the timestamp suffix (e.g. test$20260324190911.bin) as returned by the firmware upload or list endpoints.
|
|
2045
|
-
* @param {String} projectOrProductUID
|
|
2046
|
-
* @param {module:model/String} firmwareType
|
|
2047
|
-
* @param {String} filename
|
|
2048
|
-
* @param {module:model/UpdateHostFirmwareRequest} updateHostFirmwareRequest Firmware metadata fields to update. All fields are optional; only provided fields will be updated.
|
|
2049
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/FirmwareInfo} and HTTP response
|
|
2050
|
-
*/
|
|
2051
|
-
}, {
|
|
2052
|
-
key: "updateFirmwareWithHttpInfo",
|
|
2053
|
-
value: function updateFirmwareWithHttpInfo(projectOrProductUID, firmwareType, filename, updateHostFirmwareRequest) {
|
|
2054
|
-
var postBody = updateHostFirmwareRequest;
|
|
2055
|
-
// verify the required parameter 'projectOrProductUID' is set
|
|
2056
|
-
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
2057
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling updateFirmware");
|
|
2058
|
-
}
|
|
2059
|
-
// verify the required parameter 'firmwareType' is set
|
|
2060
|
-
if (firmwareType === undefined || firmwareType === null) {
|
|
2061
|
-
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling updateFirmware");
|
|
2062
|
-
}
|
|
2063
|
-
// verify the required parameter 'filename' is set
|
|
2064
|
-
if (filename === undefined || filename === null) {
|
|
2065
|
-
throw new _Error["default"]("Missing the required parameter 'filename' when calling updateFirmware");
|
|
2066
|
-
}
|
|
2067
|
-
// verify the required parameter 'updateHostFirmwareRequest' is set
|
|
2068
|
-
if (updateHostFirmwareRequest === undefined || updateHostFirmwareRequest === null) {
|
|
2069
|
-
throw new _Error["default"]("Missing the required parameter 'updateHostFirmwareRequest' when calling updateFirmware");
|
|
2070
|
-
}
|
|
2071
|
-
var pathParams = {
|
|
2072
|
-
projectOrProductUID: projectOrProductUID,
|
|
2073
|
-
firmwareType: firmwareType,
|
|
2074
|
-
filename: filename
|
|
2075
|
-
};
|
|
2076
|
-
var queryParams = {};
|
|
2077
|
-
var headerParams = {};
|
|
2078
|
-
var formParams = {};
|
|
2079
|
-
var authNames = ["personalAccessToken"];
|
|
2080
|
-
var contentTypes = ["application/json"];
|
|
2081
|
-
var accepts = ["application/json"];
|
|
2082
|
-
var returnType = _FirmwareInfo["default"];
|
|
2083
|
-
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/firmware/{firmwareType}/{filename}", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
2084
|
-
}
|
|
2085
|
-
|
|
2086
|
-
/**
|
|
2087
|
-
* Update the metadata of an existing host firmware entry. The filename must be the full stored filename including the timestamp suffix (e.g. test$20260324190911.bin) as returned by the firmware upload or list endpoints.
|
|
2088
|
-
* @param {String} projectOrProductUID
|
|
2089
|
-
* @param {module:model/String} firmwareType
|
|
2090
|
-
* @param {String} filename
|
|
2091
|
-
* @param {module:model/UpdateHostFirmwareRequest} updateHostFirmwareRequest Firmware metadata fields to update. All fields are optional; only provided fields will be updated.
|
|
2092
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/FirmwareInfo}
|
|
2093
|
-
*/
|
|
2094
|
-
}, {
|
|
2095
|
-
key: "updateFirmware",
|
|
2096
|
-
value: function updateFirmware(projectOrProductUID, firmwareType, filename, updateHostFirmwareRequest) {
|
|
2097
|
-
return this.updateFirmwareWithHttpInfo(projectOrProductUID, firmwareType, filename, updateHostFirmwareRequest).then(function (response_and_data) {
|
|
2098
|
-
return response_and_data.data;
|
|
2099
|
-
});
|
|
2100
|
-
}
|
|
2101
|
-
|
|
2102
1855
|
/**
|
|
2103
1856
|
* Update Fleet
|
|
2104
|
-
* @param {String} projectOrProductUID
|
|
2105
|
-
* @param {String} fleetUID
|
|
1857
|
+
* @param {String} projectOrProductUID
|
|
1858
|
+
* @param {String} fleetUID
|
|
2106
1859
|
* @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
|
|
2107
1860
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
2108
1861
|
*/
|
|
@@ -2123,23 +1876,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2123
1876
|
throw new _Error["default"]("Missing the required parameter 'updateFleetRequest' when calling updateFleet");
|
|
2124
1877
|
}
|
|
2125
1878
|
var pathParams = {
|
|
2126
|
-
projectOrProductUID: projectOrProductUID,
|
|
2127
|
-
fleetUID: fleetUID
|
|
1879
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1880
|
+
'fleetUID': fleetUID
|
|
2128
1881
|
};
|
|
2129
1882
|
var queryParams = {};
|
|
2130
1883
|
var headerParams = {};
|
|
2131
1884
|
var formParams = {};
|
|
2132
|
-
var authNames = [
|
|
2133
|
-
var contentTypes = [
|
|
2134
|
-
var accepts = [
|
|
1885
|
+
var authNames = ['personalAccessToken'];
|
|
1886
|
+
var contentTypes = ['application/json'];
|
|
1887
|
+
var accepts = ['application/json'];
|
|
2135
1888
|
var returnType = _Fleet["default"];
|
|
2136
|
-
return this.apiClient.callApi(
|
|
1889
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
2137
1890
|
}
|
|
2138
1891
|
|
|
2139
1892
|
/**
|
|
2140
1893
|
* Update Fleet
|
|
2141
|
-
* @param {String} projectOrProductUID
|
|
2142
|
-
* @param {String} fleetUID
|
|
1894
|
+
* @param {String} projectOrProductUID
|
|
1895
|
+
* @param {String} fleetUID
|
|
2143
1896
|
* @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
|
|
2144
1897
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
2145
1898
|
*/
|
|
@@ -2151,63 +1904,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2151
1904
|
});
|
|
2152
1905
|
}
|
|
2153
1906
|
|
|
2154
|
-
/**
|
|
2155
|
-
* Update the value of an existing project secret
|
|
2156
|
-
* @param {String} projectOrProductUID
|
|
2157
|
-
* @param {String} secretName The name of the secret.
|
|
2158
|
-
* @param {module:model/UpdateProjectSecretRequest} updateProjectSecretRequest
|
|
2159
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ProjectSecret} and HTTP response
|
|
2160
|
-
*/
|
|
2161
|
-
}, {
|
|
2162
|
-
key: "updateProjectSecretWithHttpInfo",
|
|
2163
|
-
value: function updateProjectSecretWithHttpInfo(projectOrProductUID, secretName, updateProjectSecretRequest) {
|
|
2164
|
-
var postBody = updateProjectSecretRequest;
|
|
2165
|
-
// verify the required parameter 'projectOrProductUID' is set
|
|
2166
|
-
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
2167
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling updateProjectSecret");
|
|
2168
|
-
}
|
|
2169
|
-
// verify the required parameter 'secretName' is set
|
|
2170
|
-
if (secretName === undefined || secretName === null) {
|
|
2171
|
-
throw new _Error["default"]("Missing the required parameter 'secretName' when calling updateProjectSecret");
|
|
2172
|
-
}
|
|
2173
|
-
// verify the required parameter 'updateProjectSecretRequest' is set
|
|
2174
|
-
if (updateProjectSecretRequest === undefined || updateProjectSecretRequest === null) {
|
|
2175
|
-
throw new _Error["default"]("Missing the required parameter 'updateProjectSecretRequest' when calling updateProjectSecret");
|
|
2176
|
-
}
|
|
2177
|
-
var pathParams = {
|
|
2178
|
-
projectOrProductUID: projectOrProductUID,
|
|
2179
|
-
secretName: secretName
|
|
2180
|
-
};
|
|
2181
|
-
var queryParams = {};
|
|
2182
|
-
var headerParams = {};
|
|
2183
|
-
var formParams = {};
|
|
2184
|
-
var authNames = ["personalAccessToken"];
|
|
2185
|
-
var contentTypes = ["application/json"];
|
|
2186
|
-
var accepts = ["application/json"];
|
|
2187
|
-
var returnType = _ProjectSecret["default"];
|
|
2188
|
-
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/secrets/{secretName}", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
2189
|
-
}
|
|
2190
|
-
|
|
2191
|
-
/**
|
|
2192
|
-
* Update the value of an existing project secret
|
|
2193
|
-
* @param {String} projectOrProductUID
|
|
2194
|
-
* @param {String} secretName The name of the secret.
|
|
2195
|
-
* @param {module:model/UpdateProjectSecretRequest} updateProjectSecretRequest
|
|
2196
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ProjectSecret}
|
|
2197
|
-
*/
|
|
2198
|
-
}, {
|
|
2199
|
-
key: "updateProjectSecret",
|
|
2200
|
-
value: function updateProjectSecret(projectOrProductUID, secretName, updateProjectSecretRequest) {
|
|
2201
|
-
return this.updateProjectSecretWithHttpInfo(projectOrProductUID, secretName, updateProjectSecretRequest).then(function (response_and_data) {
|
|
2202
|
-
return response_and_data.data;
|
|
2203
|
-
});
|
|
2204
|
-
}
|
|
2205
|
-
|
|
2206
1907
|
/**
|
|
2207
1908
|
* Upload firmware binary
|
|
2208
|
-
* @param {String} projectOrProductUID
|
|
2209
|
-
* @param {module:model/String} firmwareType
|
|
2210
|
-
* @param {String} filename
|
|
1909
|
+
* @param {String} projectOrProductUID
|
|
1910
|
+
* @param {module:model/String} firmwareType
|
|
1911
|
+
* @param {String} filename
|
|
2211
1912
|
* @param {File} body contents of the firmware binary
|
|
2212
1913
|
* @param {Object} opts Optional parameters
|
|
2213
1914
|
* @param {String} opts.version Firmware version (optional). If not provided, the version will be extracted from firmware binary if available, otherwise left empty
|
|
@@ -2236,28 +1937,28 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2236
1937
|
throw new _Error["default"]("Missing the required parameter 'body' when calling uploadFirmware");
|
|
2237
1938
|
}
|
|
2238
1939
|
var pathParams = {
|
|
2239
|
-
projectOrProductUID: projectOrProductUID,
|
|
2240
|
-
firmwareType: firmwareType,
|
|
2241
|
-
filename: filename
|
|
1940
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1941
|
+
'firmwareType': firmwareType,
|
|
1942
|
+
'filename': filename
|
|
2242
1943
|
};
|
|
2243
1944
|
var queryParams = {
|
|
2244
|
-
version: opts[
|
|
2245
|
-
notes: opts[
|
|
1945
|
+
'version': opts['version'],
|
|
1946
|
+
'notes': opts['notes']
|
|
2246
1947
|
};
|
|
2247
1948
|
var headerParams = {};
|
|
2248
1949
|
var formParams = {};
|
|
2249
|
-
var authNames = [
|
|
2250
|
-
var contentTypes = [
|
|
2251
|
-
var accepts = [
|
|
1950
|
+
var authNames = ['personalAccessToken'];
|
|
1951
|
+
var contentTypes = ['application/octet-stream'];
|
|
1952
|
+
var accepts = ['application/json'];
|
|
2252
1953
|
var returnType = _FirmwareInfo["default"];
|
|
2253
|
-
return this.apiClient.callApi(
|
|
1954
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/firmware/{firmwareType}/{filename}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
2254
1955
|
}
|
|
2255
1956
|
|
|
2256
1957
|
/**
|
|
2257
1958
|
* Upload firmware binary
|
|
2258
|
-
* @param {String} projectOrProductUID
|
|
2259
|
-
* @param {module:model/String} firmwareType
|
|
2260
|
-
* @param {String} filename
|
|
1959
|
+
* @param {String} projectOrProductUID
|
|
1960
|
+
* @param {module:model/String} firmwareType
|
|
1961
|
+
* @param {String} filename
|
|
2261
1962
|
* @param {File} body contents of the firmware binary
|
|
2262
1963
|
* @param {Object} opts Optional parameters
|
|
2263
1964
|
* @param {String} opts.version Firmware version (optional). If not provided, the version will be extracted from firmware binary if available, otherwise left empty
|