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