@blues-inc/notehub-js 1.0.10 → 1.0.11
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 +181 -178
- package/dist/ApiClient.js +157 -154
- package/dist/api/AuthorizationApi.js +63 -18
- package/dist/api/BillingAccountApi.js +15 -15
- package/dist/api/DeviceApi.js +159 -159
- package/dist/api/DevicesApi.js +58 -58
- package/dist/api/EnvironmentVariablesApi.js +110 -110
- package/dist/api/EventApi.js +94 -94
- package/dist/api/FilesApi.js +42 -42
- package/dist/api/FleetApi.js +160 -160
- package/dist/api/NotesApi.js +105 -105
- package/dist/api/ProductApi.js +29 -29
- package/dist/api/ProjectApi.js +139 -139
- package/dist/api/RouteApi.js +51 -51
- package/dist/index.js +7 -0
- package/dist/model/Aws.js +64 -64
- package/dist/model/Azure.js +42 -42
- package/dist/model/BillingAccount.js +20 -20
- package/dist/model/Body.js +4 -4
- package/dist/model/Contact.js +21 -21
- package/dist/model/CreateFleetRequest.js +6 -6
- package/dist/model/CreateProductRequest.js +21 -21
- package/dist/model/CreateProjectRequest.js +13 -13
- package/dist/model/DFUEnv.js +11 -11
- package/dist/model/DFUState.js +64 -64
- package/dist/model/DeleteDeviceFleetsRequest.js +7 -7
- package/dist/model/Device.js +82 -82
- package/dist/model/DeviceSession.js +181 -181
- package/dist/model/DeviceTowerInfo.js +13 -13
- package/dist/model/DeviceUsage.js +31 -31
- package/dist/model/EnvironmentVariables.js +7 -7
- package/dist/model/Error.js +30 -30
- package/dist/model/Event.js +222 -222
- package/dist/model/Fleet.js +20 -20
- package/dist/model/GenerateAuthToken200Response.js +114 -0
- package/dist/model/GetBillingAccounts200Response.js +8 -9
- package/dist/model/GetDeviceEnvironmentVariables200Response.js +11 -11
- package/dist/model/GetDeviceHealthLog200Response.js +10 -11
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +18 -18
- package/dist/model/GetDeviceLatest200Response.js +8 -9
- package/dist/model/GetDevicePublicKey200Response.js +15 -15
- package/dist/model/GetDeviceSessions200Response.js +15 -16
- package/dist/model/GetProjectDevicePublicKeys200Response.js +15 -16
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +11 -11
- package/dist/model/GetProjectDevices200Response.js +15 -16
- package/dist/model/GetProjectEvents200Response.js +20 -21
- package/dist/model/GetProjectEventsByCursor200Response.js +22 -23
- package/dist/model/GetProjectFleets200Response.js +10 -11
- package/dist/model/GetProjectMembers200Response.js +10 -11
- package/dist/model/GetProjectProducts200Response.js +8 -9
- package/dist/model/GetProjects200Response.js +8 -9
- package/dist/model/Google.js +27 -27
- package/dist/model/HandleNoteChanges200Response.js +10 -10
- package/dist/model/HandleNoteGet200Response.js +12 -12
- package/dist/model/HandleNoteSignal200Response.js +4 -4
- package/dist/model/HandleNotefileChanges200Response.js +10 -10
- package/dist/model/HandleNotefileChangesPending200Response.js +13 -13
- package/dist/model/HandleNotefileDeleteRequest.js +6 -6
- package/dist/model/Http.js +34 -34
- package/dist/model/HttpFilter.js +18 -18
- package/dist/model/HttpTransform.js +19 -19
- package/dist/model/Location.js +39 -39
- package/dist/model/Login200Response.js +6 -6
- package/dist/model/LoginRequest.js +11 -11
- package/dist/model/Mqtt.js +65 -65
- package/dist/model/Note.js +9 -9
- package/dist/model/Product.js +25 -25
- package/dist/model/Project.js +33 -33
- package/dist/model/ProjectMember.js +21 -21
- package/dist/model/Proxy.js +23 -23
- package/dist/model/PutDeviceFleetsRequest.js +7 -7
- package/dist/model/Radresponder.js +24 -24
- package/dist/model/Route.js +35 -35
- package/dist/model/RouteSchema.js +39 -38
- package/dist/model/Snowflake.js +44 -44
- package/dist/model/SnowflakeTransform.js +11 -11
- package/dist/model/Thingworx.js +32 -32
- package/dist/model/TowerLocation.js +51 -51
- package/dist/model/Twilio.js +42 -42
- package/dist/model/UpdateFleetRequest.js +16 -16
- package/dist/model/UserDbRoute.js +24 -24
- package/package.json +3 -3
|
@@ -16,18 +16,18 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
16
16
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
17
17
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
18
18
|
/**
|
|
19
|
-
* EnvironmentVariables service.
|
|
20
|
-
* @module api/EnvironmentVariablesApi
|
|
21
|
-
* @version 1.0.
|
|
22
|
-
*/
|
|
19
|
+
* EnvironmentVariables service.
|
|
20
|
+
* @module api/EnvironmentVariablesApi
|
|
21
|
+
* @version 1.0.11
|
|
22
|
+
*/
|
|
23
23
|
var EnvironmentVariablesApi = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
* Constructs a new EnvironmentVariablesApi.
|
|
26
|
+
* @alias module:api/EnvironmentVariablesApi
|
|
27
|
+
* @class
|
|
28
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
29
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
30
|
+
*/
|
|
31
31
|
function EnvironmentVariablesApi(apiClient) {
|
|
32
32
|
_classCallCheck(this, EnvironmentVariablesApi);
|
|
33
33
|
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
@@ -35,8 +35,8 @@ var EnvironmentVariablesApi = /*#__PURE__*/function () {
|
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* Delete environment variable of a device
|
|
38
|
-
* @param {String} projectUID
|
|
39
|
-
* @param {String} deviceUID
|
|
38
|
+
* @param {String} projectUID
|
|
39
|
+
* @param {String} deviceUID
|
|
40
40
|
* @param {String} key The environment variable key to delete.
|
|
41
41
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
42
42
|
*/
|
|
@@ -57,24 +57,24 @@ var EnvironmentVariablesApi = /*#__PURE__*/function () {
|
|
|
57
57
|
throw new _Error["default"]("Missing the required parameter 'key' when calling deleteDeviceEnvironmentVariable");
|
|
58
58
|
}
|
|
59
59
|
var pathParams = {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
projectUID: projectUID,
|
|
61
|
+
deviceUID: deviceUID,
|
|
62
|
+
key: key
|
|
63
63
|
};
|
|
64
64
|
var queryParams = {};
|
|
65
65
|
var headerParams = {};
|
|
66
66
|
var formParams = {};
|
|
67
|
-
var authNames = [
|
|
67
|
+
var authNames = ["bearer_access_token"];
|
|
68
68
|
var contentTypes = [];
|
|
69
|
-
var accepts = [
|
|
69
|
+
var accepts = ["application/json"];
|
|
70
70
|
var returnType = _EnvironmentVariables["default"];
|
|
71
|
-
return this.apiClient.callApi(
|
|
71
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/environment_variables/{key}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
/**
|
|
75
75
|
* Delete environment variable of a device
|
|
76
|
-
* @param {String} projectUID
|
|
77
|
-
* @param {String} deviceUID
|
|
76
|
+
* @param {String} projectUID
|
|
77
|
+
* @param {String} deviceUID
|
|
78
78
|
* @param {String} key The environment variable key to delete.
|
|
79
79
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
80
80
|
*/
|
|
@@ -88,8 +88,8 @@ var EnvironmentVariablesApi = /*#__PURE__*/function () {
|
|
|
88
88
|
|
|
89
89
|
/**
|
|
90
90
|
* Delete environment variables of a fleet
|
|
91
|
-
* @param {String} projectUID
|
|
92
|
-
* @param {String} fleetUID
|
|
91
|
+
* @param {String} projectUID
|
|
92
|
+
* @param {String} fleetUID
|
|
93
93
|
* @param {String} key The environment variable key to delete.
|
|
94
94
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
95
95
|
*/
|
|
@@ -110,24 +110,24 @@ var EnvironmentVariablesApi = /*#__PURE__*/function () {
|
|
|
110
110
|
throw new _Error["default"]("Missing the required parameter 'key' when calling deleteFleetEnvironmentVariable");
|
|
111
111
|
}
|
|
112
112
|
var pathParams = {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
113
|
+
projectUID: projectUID,
|
|
114
|
+
fleetUID: fleetUID,
|
|
115
|
+
key: key
|
|
116
116
|
};
|
|
117
117
|
var queryParams = {};
|
|
118
118
|
var headerParams = {};
|
|
119
119
|
var formParams = {};
|
|
120
|
-
var authNames = [
|
|
120
|
+
var authNames = ["bearer_access_token"];
|
|
121
121
|
var contentTypes = [];
|
|
122
|
-
var accepts = [
|
|
122
|
+
var accepts = ["application/json"];
|
|
123
123
|
var returnType = _EnvironmentVariables["default"];
|
|
124
|
-
return this.apiClient.callApi(
|
|
124
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/fleets/{fleetUID}/environment_variables/{key}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
/**
|
|
128
128
|
* Delete environment variables of a fleet
|
|
129
|
-
* @param {String} projectUID
|
|
130
|
-
* @param {String} fleetUID
|
|
129
|
+
* @param {String} projectUID
|
|
130
|
+
* @param {String} fleetUID
|
|
131
131
|
* @param {String} key The environment variable key to delete.
|
|
132
132
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
133
133
|
*/
|
|
@@ -141,7 +141,7 @@ var EnvironmentVariablesApi = /*#__PURE__*/function () {
|
|
|
141
141
|
|
|
142
142
|
/**
|
|
143
143
|
* Delete an environment variable of a project by key
|
|
144
|
-
* @param {String} projectUID
|
|
144
|
+
* @param {String} projectUID
|
|
145
145
|
* @param {String} key The environment variable key to delete.
|
|
146
146
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
147
147
|
*/
|
|
@@ -158,22 +158,22 @@ var EnvironmentVariablesApi = /*#__PURE__*/function () {
|
|
|
158
158
|
throw new _Error["default"]("Missing the required parameter 'key' when calling deleteProjectEnvironmentVariable");
|
|
159
159
|
}
|
|
160
160
|
var pathParams = {
|
|
161
|
-
|
|
162
|
-
|
|
161
|
+
projectUID: projectUID,
|
|
162
|
+
key: key
|
|
163
163
|
};
|
|
164
164
|
var queryParams = {};
|
|
165
165
|
var headerParams = {};
|
|
166
166
|
var formParams = {};
|
|
167
|
-
var authNames = [
|
|
167
|
+
var authNames = ["bearer_access_token"];
|
|
168
168
|
var contentTypes = [];
|
|
169
|
-
var accepts = [
|
|
169
|
+
var accepts = ["application/json"];
|
|
170
170
|
var returnType = _EnvironmentVariables["default"];
|
|
171
|
-
return this.apiClient.callApi(
|
|
171
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/environment_variables/{key}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
172
172
|
}
|
|
173
173
|
|
|
174
174
|
/**
|
|
175
175
|
* Delete an environment variable of a project by key
|
|
176
|
-
* @param {String} projectUID
|
|
176
|
+
* @param {String} projectUID
|
|
177
177
|
* @param {String} key The environment variable key to delete.
|
|
178
178
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
179
179
|
*/
|
|
@@ -187,8 +187,8 @@ var EnvironmentVariablesApi = /*#__PURE__*/function () {
|
|
|
187
187
|
|
|
188
188
|
/**
|
|
189
189
|
* Get environment variables of a device
|
|
190
|
-
* @param {String} projectUID
|
|
191
|
-
* @param {String} deviceUID
|
|
190
|
+
* @param {String} projectUID
|
|
191
|
+
* @param {String} deviceUID
|
|
192
192
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariables200Response} and HTTP response
|
|
193
193
|
*/
|
|
194
194
|
}, {
|
|
@@ -204,23 +204,23 @@ var EnvironmentVariablesApi = /*#__PURE__*/function () {
|
|
|
204
204
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentVariables");
|
|
205
205
|
}
|
|
206
206
|
var pathParams = {
|
|
207
|
-
|
|
208
|
-
|
|
207
|
+
projectUID: projectUID,
|
|
208
|
+
deviceUID: deviceUID
|
|
209
209
|
};
|
|
210
210
|
var queryParams = {};
|
|
211
211
|
var headerParams = {};
|
|
212
212
|
var formParams = {};
|
|
213
|
-
var authNames = [
|
|
213
|
+
var authNames = ["bearer_access_token"];
|
|
214
214
|
var contentTypes = [];
|
|
215
|
-
var accepts = [
|
|
215
|
+
var accepts = ["application/json"];
|
|
216
216
|
var returnType = _GetDeviceEnvironmentVariables200Response["default"];
|
|
217
|
-
return this.apiClient.callApi(
|
|
217
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/environment_variables", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
218
218
|
}
|
|
219
219
|
|
|
220
220
|
/**
|
|
221
221
|
* Get environment variables of a device
|
|
222
|
-
* @param {String} projectUID
|
|
223
|
-
* @param {String} deviceUID
|
|
222
|
+
* @param {String} projectUID
|
|
223
|
+
* @param {String} deviceUID
|
|
224
224
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariables200Response}
|
|
225
225
|
*/
|
|
226
226
|
}, {
|
|
@@ -233,8 +233,8 @@ var EnvironmentVariablesApi = /*#__PURE__*/function () {
|
|
|
233
233
|
|
|
234
234
|
/**
|
|
235
235
|
* Get environment variables of a device with device pin authorization
|
|
236
|
-
* @param {String} projectUID
|
|
237
|
-
* @param {String} deviceUID
|
|
236
|
+
* @param {String} projectUID
|
|
237
|
+
* @param {String} deviceUID
|
|
238
238
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariables200Response} and HTTP response
|
|
239
239
|
*/
|
|
240
240
|
}, {
|
|
@@ -250,23 +250,23 @@ var EnvironmentVariablesApi = /*#__PURE__*/function () {
|
|
|
250
250
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentVariablesByPin");
|
|
251
251
|
}
|
|
252
252
|
var pathParams = {
|
|
253
|
-
|
|
254
|
-
|
|
253
|
+
projectUID: projectUID,
|
|
254
|
+
deviceUID: deviceUID
|
|
255
255
|
};
|
|
256
256
|
var queryParams = {};
|
|
257
257
|
var headerParams = {};
|
|
258
258
|
var formParams = {};
|
|
259
|
-
var authNames = [
|
|
259
|
+
var authNames = ["pin"];
|
|
260
260
|
var contentTypes = [];
|
|
261
|
-
var accepts = [
|
|
261
|
+
var accepts = ["application/json"];
|
|
262
262
|
var returnType = _GetDeviceEnvironmentVariables200Response["default"];
|
|
263
|
-
return this.apiClient.callApi(
|
|
263
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/environment_variables_with_pin", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
264
264
|
}
|
|
265
265
|
|
|
266
266
|
/**
|
|
267
267
|
* Get environment variables of a device with device pin authorization
|
|
268
|
-
* @param {String} projectUID
|
|
269
|
-
* @param {String} deviceUID
|
|
268
|
+
* @param {String} projectUID
|
|
269
|
+
* @param {String} deviceUID
|
|
270
270
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariables200Response}
|
|
271
271
|
*/
|
|
272
272
|
}, {
|
|
@@ -279,8 +279,8 @@ var EnvironmentVariablesApi = /*#__PURE__*/function () {
|
|
|
279
279
|
|
|
280
280
|
/**
|
|
281
281
|
* Get environment variables of a fleet
|
|
282
|
-
* @param {String} projectUID
|
|
283
|
-
* @param {String} fleetUID
|
|
282
|
+
* @param {String} projectUID
|
|
283
|
+
* @param {String} fleetUID
|
|
284
284
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
285
285
|
*/
|
|
286
286
|
}, {
|
|
@@ -296,23 +296,23 @@ var EnvironmentVariablesApi = /*#__PURE__*/function () {
|
|
|
296
296
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEnvironmentVariables");
|
|
297
297
|
}
|
|
298
298
|
var pathParams = {
|
|
299
|
-
|
|
300
|
-
|
|
299
|
+
projectUID: projectUID,
|
|
300
|
+
fleetUID: fleetUID
|
|
301
301
|
};
|
|
302
302
|
var queryParams = {};
|
|
303
303
|
var headerParams = {};
|
|
304
304
|
var formParams = {};
|
|
305
|
-
var authNames = [
|
|
305
|
+
var authNames = ["bearer_access_token"];
|
|
306
306
|
var contentTypes = [];
|
|
307
|
-
var accepts = [
|
|
307
|
+
var accepts = ["application/json"];
|
|
308
308
|
var returnType = _EnvironmentVariables["default"];
|
|
309
|
-
return this.apiClient.callApi(
|
|
309
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/fleets/{fleetUID}/environment_variables", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
310
310
|
}
|
|
311
311
|
|
|
312
312
|
/**
|
|
313
313
|
* Get environment variables of a fleet
|
|
314
|
-
* @param {String} projectUID
|
|
315
|
-
* @param {String} fleetUID
|
|
314
|
+
* @param {String} projectUID
|
|
315
|
+
* @param {String} fleetUID
|
|
316
316
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
317
317
|
*/
|
|
318
318
|
}, {
|
|
@@ -325,7 +325,7 @@ var EnvironmentVariablesApi = /*#__PURE__*/function () {
|
|
|
325
325
|
|
|
326
326
|
/**
|
|
327
327
|
* Get environment variables of a project
|
|
328
|
-
* @param {String} projectUID
|
|
328
|
+
* @param {String} projectUID
|
|
329
329
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
330
330
|
*/
|
|
331
331
|
}, {
|
|
@@ -337,21 +337,21 @@ var EnvironmentVariablesApi = /*#__PURE__*/function () {
|
|
|
337
337
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectEnvironmentVariables");
|
|
338
338
|
}
|
|
339
339
|
var pathParams = {
|
|
340
|
-
|
|
340
|
+
projectUID: projectUID
|
|
341
341
|
};
|
|
342
342
|
var queryParams = {};
|
|
343
343
|
var headerParams = {};
|
|
344
344
|
var formParams = {};
|
|
345
|
-
var authNames = [
|
|
345
|
+
var authNames = ["bearer_access_token"];
|
|
346
346
|
var contentTypes = [];
|
|
347
|
-
var accepts = [
|
|
347
|
+
var accepts = ["application/json"];
|
|
348
348
|
var returnType = _EnvironmentVariables["default"];
|
|
349
|
-
return this.apiClient.callApi(
|
|
349
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/environment_variables", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
350
350
|
}
|
|
351
351
|
|
|
352
352
|
/**
|
|
353
353
|
* Get environment variables of a project
|
|
354
|
-
* @param {String} projectUID
|
|
354
|
+
* @param {String} projectUID
|
|
355
355
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
356
356
|
*/
|
|
357
357
|
}, {
|
|
@@ -364,8 +364,8 @@ var EnvironmentVariablesApi = /*#__PURE__*/function () {
|
|
|
364
364
|
|
|
365
365
|
/**
|
|
366
366
|
* Put environment variables of a device
|
|
367
|
-
* @param {String} projectUID
|
|
368
|
-
* @param {String} deviceUID
|
|
367
|
+
* @param {String} projectUID
|
|
368
|
+
* @param {String} deviceUID
|
|
369
369
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
370
370
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
371
371
|
*/
|
|
@@ -386,23 +386,23 @@ var EnvironmentVariablesApi = /*#__PURE__*/function () {
|
|
|
386
386
|
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling putDeviceEnvironmentVariables");
|
|
387
387
|
}
|
|
388
388
|
var pathParams = {
|
|
389
|
-
|
|
390
|
-
|
|
389
|
+
projectUID: projectUID,
|
|
390
|
+
deviceUID: deviceUID
|
|
391
391
|
};
|
|
392
392
|
var queryParams = {};
|
|
393
393
|
var headerParams = {};
|
|
394
394
|
var formParams = {};
|
|
395
|
-
var authNames = [
|
|
396
|
-
var contentTypes = [
|
|
397
|
-
var accepts = [
|
|
395
|
+
var authNames = ["bearer_access_token"];
|
|
396
|
+
var contentTypes = ["application/json"];
|
|
397
|
+
var accepts = ["application/json"];
|
|
398
398
|
var returnType = _EnvironmentVariables["default"];
|
|
399
|
-
return this.apiClient.callApi(
|
|
399
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/environment_variables", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
400
400
|
}
|
|
401
401
|
|
|
402
402
|
/**
|
|
403
403
|
* Put environment variables of a device
|
|
404
|
-
* @param {String} projectUID
|
|
405
|
-
* @param {String} deviceUID
|
|
404
|
+
* @param {String} projectUID
|
|
405
|
+
* @param {String} deviceUID
|
|
406
406
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
407
407
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
408
408
|
*/
|
|
@@ -416,8 +416,8 @@ var EnvironmentVariablesApi = /*#__PURE__*/function () {
|
|
|
416
416
|
|
|
417
417
|
/**
|
|
418
418
|
* Put environment variables of a device with device pin authorization
|
|
419
|
-
* @param {String} projectUID
|
|
420
|
-
* @param {String} deviceUID
|
|
419
|
+
* @param {String} projectUID
|
|
420
|
+
* @param {String} deviceUID
|
|
421
421
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
422
422
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
423
423
|
*/
|
|
@@ -438,23 +438,23 @@ var EnvironmentVariablesApi = /*#__PURE__*/function () {
|
|
|
438
438
|
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling putDeviceEnvironmentVariablesByPin");
|
|
439
439
|
}
|
|
440
440
|
var pathParams = {
|
|
441
|
-
|
|
442
|
-
|
|
441
|
+
projectUID: projectUID,
|
|
442
|
+
deviceUID: deviceUID
|
|
443
443
|
};
|
|
444
444
|
var queryParams = {};
|
|
445
445
|
var headerParams = {};
|
|
446
446
|
var formParams = {};
|
|
447
|
-
var authNames = [
|
|
448
|
-
var contentTypes = [
|
|
449
|
-
var accepts = [
|
|
447
|
+
var authNames = ["pin"];
|
|
448
|
+
var contentTypes = ["application/json"];
|
|
449
|
+
var accepts = ["application/json"];
|
|
450
450
|
var returnType = _EnvironmentVariables["default"];
|
|
451
|
-
return this.apiClient.callApi(
|
|
451
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/environment_variables_with_pin", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
452
452
|
}
|
|
453
453
|
|
|
454
454
|
/**
|
|
455
455
|
* Put environment variables of a device with device pin authorization
|
|
456
|
-
* @param {String} projectUID
|
|
457
|
-
* @param {String} deviceUID
|
|
456
|
+
* @param {String} projectUID
|
|
457
|
+
* @param {String} deviceUID
|
|
458
458
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
459
459
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
460
460
|
*/
|
|
@@ -468,8 +468,8 @@ var EnvironmentVariablesApi = /*#__PURE__*/function () {
|
|
|
468
468
|
|
|
469
469
|
/**
|
|
470
470
|
* Put environment variables of a fleet
|
|
471
|
-
* @param {String} projectUID
|
|
472
|
-
* @param {String} fleetUID
|
|
471
|
+
* @param {String} projectUID
|
|
472
|
+
* @param {String} fleetUID
|
|
473
473
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
474
474
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
475
475
|
*/
|
|
@@ -490,23 +490,23 @@ var EnvironmentVariablesApi = /*#__PURE__*/function () {
|
|
|
490
490
|
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling putFleetEnvironmentVariables");
|
|
491
491
|
}
|
|
492
492
|
var pathParams = {
|
|
493
|
-
|
|
494
|
-
|
|
493
|
+
projectUID: projectUID,
|
|
494
|
+
fleetUID: fleetUID
|
|
495
495
|
};
|
|
496
496
|
var queryParams = {};
|
|
497
497
|
var headerParams = {};
|
|
498
498
|
var formParams = {};
|
|
499
|
-
var authNames = [
|
|
500
|
-
var contentTypes = [
|
|
501
|
-
var accepts = [
|
|
499
|
+
var authNames = ["bearer_access_token"];
|
|
500
|
+
var contentTypes = ["application/json"];
|
|
501
|
+
var accepts = ["application/json"];
|
|
502
502
|
var returnType = _EnvironmentVariables["default"];
|
|
503
|
-
return this.apiClient.callApi(
|
|
503
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/fleets/{fleetUID}/environment_variables", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
504
504
|
}
|
|
505
505
|
|
|
506
506
|
/**
|
|
507
507
|
* Put environment variables of a fleet
|
|
508
|
-
* @param {String} projectUID
|
|
509
|
-
* @param {String} fleetUID
|
|
508
|
+
* @param {String} projectUID
|
|
509
|
+
* @param {String} fleetUID
|
|
510
510
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
511
511
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
512
512
|
*/
|
|
@@ -520,38 +520,38 @@ var EnvironmentVariablesApi = /*#__PURE__*/function () {
|
|
|
520
520
|
|
|
521
521
|
/**
|
|
522
522
|
* Put environment variables of a project
|
|
523
|
-
* @param {String} projectUID
|
|
523
|
+
* @param {String} projectUID
|
|
524
524
|
* @param {Object} opts Optional parameters
|
|
525
|
-
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
525
|
+
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
526
526
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
527
527
|
*/
|
|
528
528
|
}, {
|
|
529
529
|
key: "putProjectEnvironmentVariablesWithHttpInfo",
|
|
530
530
|
value: function putProjectEnvironmentVariablesWithHttpInfo(projectUID, opts) {
|
|
531
531
|
opts = opts || {};
|
|
532
|
-
var postBody = opts[
|
|
532
|
+
var postBody = opts["environmentVariables"];
|
|
533
533
|
// verify the required parameter 'projectUID' is set
|
|
534
534
|
if (projectUID === undefined || projectUID === null) {
|
|
535
535
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling putProjectEnvironmentVariables");
|
|
536
536
|
}
|
|
537
537
|
var pathParams = {
|
|
538
|
-
|
|
538
|
+
projectUID: projectUID
|
|
539
539
|
};
|
|
540
540
|
var queryParams = {};
|
|
541
541
|
var headerParams = {};
|
|
542
542
|
var formParams = {};
|
|
543
|
-
var authNames = [
|
|
544
|
-
var contentTypes = [
|
|
545
|
-
var accepts = [
|
|
543
|
+
var authNames = ["bearer_access_token"];
|
|
544
|
+
var contentTypes = ["application/json"];
|
|
545
|
+
var accepts = ["application/json"];
|
|
546
546
|
var returnType = _EnvironmentVariables["default"];
|
|
547
|
-
return this.apiClient.callApi(
|
|
547
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/environment_variables", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
548
548
|
}
|
|
549
549
|
|
|
550
550
|
/**
|
|
551
551
|
* Put environment variables of a project
|
|
552
|
-
* @param {String} projectUID
|
|
552
|
+
* @param {String} projectUID
|
|
553
553
|
* @param {Object} opts Optional parameters
|
|
554
|
-
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
554
|
+
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
555
555
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
556
556
|
*/
|
|
557
557
|
}, {
|