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