@blues-inc/notehub-js 1.0.4
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 +297 -0
- package/dist/ApiClient.js +699 -0
- package/dist/api/AuthorizationApi.js +74 -0
- package/dist/api/BillingAccountApi.js +68 -0
- package/dist/api/DeviceApi.js +784 -0
- package/dist/api/DevicesApi.js +293 -0
- package/dist/api/EnvironmentVariablesApi.js +567 -0
- package/dist/api/EventApi.js +284 -0
- package/dist/api/FilesApi.js +193 -0
- package/dist/api/FleetApi.js +715 -0
- package/dist/api/NotesApi.js +435 -0
- package/dist/api/ProductApi.js +163 -0
- package/dist/api/ProjectApi.js +716 -0
- package/dist/api/RouteApi.js +266 -0
- package/dist/index.js +566 -0
- package/dist/model/Aws.js +233 -0
- package/dist/model/Azure.js +166 -0
- package/dist/model/BillingAccount.js +130 -0
- package/dist/model/BillingAccountRole.js +42 -0
- package/dist/model/Body.js +78 -0
- package/dist/model/Contact.js +118 -0
- package/dist/model/CreateFleetRequest.js +83 -0
- package/dist/model/CreateProductRequest.js +142 -0
- package/dist/model/CreateProjectRequest.js +119 -0
- package/dist/model/DFUEnv.js +97 -0
- package/dist/model/DFUState.js +276 -0
- package/dist/model/DeleteDeviceFleetsRequest.js +106 -0
- package/dist/model/Device.js +267 -0
- package/dist/model/DeviceSession.js +537 -0
- package/dist/model/DeviceTowerInfo.js +102 -0
- package/dist/model/DeviceUsage.js +150 -0
- package/dist/model/EnvironmentVariables.js +103 -0
- package/dist/model/Error.js +164 -0
- package/dist/model/Event.js +676 -0
- package/dist/model/Fleet.js +129 -0
- package/dist/model/GetBillingAccounts200Response.js +103 -0
- package/dist/model/GetDeviceEnvironmentVariables200Response.js +117 -0
- package/dist/model/GetDeviceHealthLog200Response.js +123 -0
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +125 -0
- package/dist/model/GetDeviceLatest200Response.js +104 -0
- package/dist/model/GetDevicePublicKey200Response.js +119 -0
- package/dist/model/GetDeviceSessions200Response.js +133 -0
- package/dist/model/GetProjectDevicePublicKeys200Response.js +133 -0
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +94 -0
- package/dist/model/GetProjectDevices200Response.js +133 -0
- package/dist/model/GetProjectEvents200Response.js +149 -0
- package/dist/model/GetProjectEventsByCursor200Response.js +149 -0
- package/dist/model/GetProjectFleets200Response.js +123 -0
- package/dist/model/GetProjectMembers200Response.js +123 -0
- package/dist/model/GetProjectProducts200Response.js +103 -0
- package/dist/model/GetProjects200Response.js +103 -0
- package/dist/model/Google.js +142 -0
- package/dist/model/HandleNoteChanges200Response.js +97 -0
- package/dist/model/HandleNoteGet200Response.js +101 -0
- package/dist/model/HandleNoteSignal200Response.js +79 -0
- package/dist/model/HandleNotefileChanges200Response.js +97 -0
- package/dist/model/HandleNotefileChangesPending200Response.js +106 -0
- package/dist/model/HandleNotefileDeleteRequest.js +83 -0
- package/dist/model/Http.js +163 -0
- package/dist/model/HttpFilter.js +128 -0
- package/dist/model/HttpTransform.js +139 -0
- package/dist/model/Location.js +167 -0
- package/dist/model/Login200Response.js +82 -0
- package/dist/model/LoginRequest.js +94 -0
- package/dist/model/Mqtt.js +240 -0
- package/dist/model/Note.js +90 -0
- package/dist/model/Product.js +141 -0
- package/dist/model/Project.js +165 -0
- package/dist/model/ProjectMember.js +131 -0
- package/dist/model/Proxy.js +128 -0
- package/dist/model/PutDeviceFleetsRequest.js +106 -0
- package/dist/model/Radresponder.js +130 -0
- package/dist/model/Role.js +43 -0
- package/dist/model/Route.js +245 -0
- package/dist/model/RouteSchema.js +427 -0
- package/dist/model/Snowflake.js +185 -0
- package/dist/model/SnowflakeTransform.js +97 -0
- package/dist/model/Thingworx.js +154 -0
- package/dist/model/TowerLocation.js +204 -0
- package/dist/model/Twilio.js +181 -0
- package/dist/model/UpdateFleetRequest.js +109 -0
- package/dist/model/UserDbRoute.js +131 -0
- package/package.json +49 -0
|
@@ -0,0 +1,567 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _EnvironmentVariables = _interopRequireDefault(require("../model/EnvironmentVariables"));
|
|
9
|
+
var _Error = _interopRequireDefault(require("../model/Error"));
|
|
10
|
+
var _GetDeviceEnvironmentVariables200Response = _interopRequireDefault(require("../model/GetDeviceEnvironmentVariables200Response"));
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
13
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
14
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
15
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
16
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
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
|
+
/**
|
|
19
|
+
* EnvironmentVariables service.
|
|
20
|
+
* @module api/EnvironmentVariablesApi
|
|
21
|
+
* @version 1.0.4
|
|
22
|
+
*/
|
|
23
|
+
var EnvironmentVariablesApi = /*#__PURE__*/function () {
|
|
24
|
+
/**
|
|
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
|
+
function EnvironmentVariablesApi(apiClient) {
|
|
32
|
+
_classCallCheck(this, EnvironmentVariablesApi);
|
|
33
|
+
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Delete environment variable of a device
|
|
38
|
+
* @param {String} projectUID
|
|
39
|
+
* @param {String} deviceUID
|
|
40
|
+
* @param {String} key The environment variable key to delete.
|
|
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
|
+
*/
|
|
43
|
+
_createClass(EnvironmentVariablesApi, [{
|
|
44
|
+
key: "deleteDeviceEnvironmentVariableWithHttpInfo",
|
|
45
|
+
value: function deleteDeviceEnvironmentVariableWithHttpInfo(projectUID, deviceUID, key) {
|
|
46
|
+
var postBody = null;
|
|
47
|
+
// verify the required parameter 'projectUID' is set
|
|
48
|
+
if (projectUID === undefined || projectUID === null) {
|
|
49
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling deleteDeviceEnvironmentVariable");
|
|
50
|
+
}
|
|
51
|
+
// verify the required parameter 'deviceUID' is set
|
|
52
|
+
if (deviceUID === undefined || deviceUID === null) {
|
|
53
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling deleteDeviceEnvironmentVariable");
|
|
54
|
+
}
|
|
55
|
+
// verify the required parameter 'key' is set
|
|
56
|
+
if (key === undefined || key === null) {
|
|
57
|
+
throw new _Error["default"]("Missing the required parameter 'key' when calling deleteDeviceEnvironmentVariable");
|
|
58
|
+
}
|
|
59
|
+
var pathParams = {
|
|
60
|
+
'projectUID': projectUID,
|
|
61
|
+
'deviceUID': deviceUID,
|
|
62
|
+
'key': key
|
|
63
|
+
};
|
|
64
|
+
var queryParams = {};
|
|
65
|
+
var headerParams = {};
|
|
66
|
+
var formParams = {};
|
|
67
|
+
var authNames = ['api_key'];
|
|
68
|
+
var contentTypes = [];
|
|
69
|
+
var accepts = ['application/json'];
|
|
70
|
+
var returnType = _EnvironmentVariables["default"];
|
|
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
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Delete environment variable of a device
|
|
76
|
+
* @param {String} projectUID
|
|
77
|
+
* @param {String} deviceUID
|
|
78
|
+
* @param {String} key The environment variable key to delete.
|
|
79
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
80
|
+
*/
|
|
81
|
+
}, {
|
|
82
|
+
key: "deleteDeviceEnvironmentVariable",
|
|
83
|
+
value: function deleteDeviceEnvironmentVariable(projectUID, deviceUID, key) {
|
|
84
|
+
return this.deleteDeviceEnvironmentVariableWithHttpInfo(projectUID, deviceUID, key).then(function (response_and_data) {
|
|
85
|
+
return response_and_data.data;
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Delete environment variables of a fleet
|
|
91
|
+
* @param {String} projectUID
|
|
92
|
+
* @param {String} fleetUID
|
|
93
|
+
* @param {String} key The environment variable key to delete.
|
|
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
|
+
*/
|
|
96
|
+
}, {
|
|
97
|
+
key: "deleteFleetEnvironmentVariableWithHttpInfo",
|
|
98
|
+
value: function deleteFleetEnvironmentVariableWithHttpInfo(projectUID, fleetUID, key) {
|
|
99
|
+
var postBody = null;
|
|
100
|
+
// verify the required parameter 'projectUID' is set
|
|
101
|
+
if (projectUID === undefined || projectUID === null) {
|
|
102
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling deleteFleetEnvironmentVariable");
|
|
103
|
+
}
|
|
104
|
+
// verify the required parameter 'fleetUID' is set
|
|
105
|
+
if (fleetUID === undefined || fleetUID === null) {
|
|
106
|
+
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling deleteFleetEnvironmentVariable");
|
|
107
|
+
}
|
|
108
|
+
// verify the required parameter 'key' is set
|
|
109
|
+
if (key === undefined || key === null) {
|
|
110
|
+
throw new _Error["default"]("Missing the required parameter 'key' when calling deleteFleetEnvironmentVariable");
|
|
111
|
+
}
|
|
112
|
+
var pathParams = {
|
|
113
|
+
'projectUID': projectUID,
|
|
114
|
+
'fleetUID': fleetUID,
|
|
115
|
+
'key': key
|
|
116
|
+
};
|
|
117
|
+
var queryParams = {};
|
|
118
|
+
var headerParams = {};
|
|
119
|
+
var formParams = {};
|
|
120
|
+
var authNames = ['api_key'];
|
|
121
|
+
var contentTypes = [];
|
|
122
|
+
var accepts = ['application/json'];
|
|
123
|
+
var returnType = _EnvironmentVariables["default"];
|
|
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
|
+
}
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Delete environment variables of a fleet
|
|
129
|
+
* @param {String} projectUID
|
|
130
|
+
* @param {String} fleetUID
|
|
131
|
+
* @param {String} key The environment variable key to delete.
|
|
132
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
133
|
+
*/
|
|
134
|
+
}, {
|
|
135
|
+
key: "deleteFleetEnvironmentVariable",
|
|
136
|
+
value: function deleteFleetEnvironmentVariable(projectUID, fleetUID, key) {
|
|
137
|
+
return this.deleteFleetEnvironmentVariableWithHttpInfo(projectUID, fleetUID, key).then(function (response_and_data) {
|
|
138
|
+
return response_and_data.data;
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Delete an environment variable of a project by key
|
|
144
|
+
* @param {String} projectUID
|
|
145
|
+
* @param {String} key The environment variable key to delete.
|
|
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
|
+
*/
|
|
148
|
+
}, {
|
|
149
|
+
key: "deleteProjectEnvironmentVariableWithHttpInfo",
|
|
150
|
+
value: function deleteProjectEnvironmentVariableWithHttpInfo(projectUID, key) {
|
|
151
|
+
var postBody = null;
|
|
152
|
+
// verify the required parameter 'projectUID' is set
|
|
153
|
+
if (projectUID === undefined || projectUID === null) {
|
|
154
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling deleteProjectEnvironmentVariable");
|
|
155
|
+
}
|
|
156
|
+
// verify the required parameter 'key' is set
|
|
157
|
+
if (key === undefined || key === null) {
|
|
158
|
+
throw new _Error["default"]("Missing the required parameter 'key' when calling deleteProjectEnvironmentVariable");
|
|
159
|
+
}
|
|
160
|
+
var pathParams = {
|
|
161
|
+
'projectUID': projectUID,
|
|
162
|
+
'key': key
|
|
163
|
+
};
|
|
164
|
+
var queryParams = {};
|
|
165
|
+
var headerParams = {};
|
|
166
|
+
var formParams = {};
|
|
167
|
+
var authNames = ['api_key'];
|
|
168
|
+
var contentTypes = [];
|
|
169
|
+
var accepts = ['application/json'];
|
|
170
|
+
var returnType = _EnvironmentVariables["default"];
|
|
171
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/environment_variables/{key}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Delete an environment variable of a project by key
|
|
176
|
+
* @param {String} projectUID
|
|
177
|
+
* @param {String} key The environment variable key to delete.
|
|
178
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
179
|
+
*/
|
|
180
|
+
}, {
|
|
181
|
+
key: "deleteProjectEnvironmentVariable",
|
|
182
|
+
value: function deleteProjectEnvironmentVariable(projectUID, key) {
|
|
183
|
+
return this.deleteProjectEnvironmentVariableWithHttpInfo(projectUID, key).then(function (response_and_data) {
|
|
184
|
+
return response_and_data.data;
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Get environment variables of a device
|
|
190
|
+
* @param {String} projectUID
|
|
191
|
+
* @param {String} deviceUID
|
|
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
|
+
*/
|
|
194
|
+
}, {
|
|
195
|
+
key: "getDeviceEnvironmentVariablesWithHttpInfo",
|
|
196
|
+
value: function getDeviceEnvironmentVariablesWithHttpInfo(projectUID, deviceUID) {
|
|
197
|
+
var postBody = null;
|
|
198
|
+
// verify the required parameter 'projectUID' is set
|
|
199
|
+
if (projectUID === undefined || projectUID === null) {
|
|
200
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getDeviceEnvironmentVariables");
|
|
201
|
+
}
|
|
202
|
+
// verify the required parameter 'deviceUID' is set
|
|
203
|
+
if (deviceUID === undefined || deviceUID === null) {
|
|
204
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentVariables");
|
|
205
|
+
}
|
|
206
|
+
var pathParams = {
|
|
207
|
+
'projectUID': projectUID,
|
|
208
|
+
'deviceUID': deviceUID
|
|
209
|
+
};
|
|
210
|
+
var queryParams = {};
|
|
211
|
+
var headerParams = {};
|
|
212
|
+
var formParams = {};
|
|
213
|
+
var authNames = ['api_key'];
|
|
214
|
+
var contentTypes = [];
|
|
215
|
+
var accepts = ['application/json'];
|
|
216
|
+
var returnType = _GetDeviceEnvironmentVariables200Response["default"];
|
|
217
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/environment_variables', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Get environment variables of a device
|
|
222
|
+
* @param {String} projectUID
|
|
223
|
+
* @param {String} deviceUID
|
|
224
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariables200Response}
|
|
225
|
+
*/
|
|
226
|
+
}, {
|
|
227
|
+
key: "getDeviceEnvironmentVariables",
|
|
228
|
+
value: function getDeviceEnvironmentVariables(projectUID, deviceUID) {
|
|
229
|
+
return this.getDeviceEnvironmentVariablesWithHttpInfo(projectUID, deviceUID).then(function (response_and_data) {
|
|
230
|
+
return response_and_data.data;
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Get environment variables of a device with device pin authorization
|
|
236
|
+
* @param {String} projectUID
|
|
237
|
+
* @param {String} deviceUID
|
|
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
|
+
*/
|
|
240
|
+
}, {
|
|
241
|
+
key: "getDeviceEnvironmentVariablesByPinWithHttpInfo",
|
|
242
|
+
value: function getDeviceEnvironmentVariablesByPinWithHttpInfo(projectUID, deviceUID) {
|
|
243
|
+
var postBody = null;
|
|
244
|
+
// verify the required parameter 'projectUID' is set
|
|
245
|
+
if (projectUID === undefined || projectUID === null) {
|
|
246
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getDeviceEnvironmentVariablesByPin");
|
|
247
|
+
}
|
|
248
|
+
// verify the required parameter 'deviceUID' is set
|
|
249
|
+
if (deviceUID === undefined || deviceUID === null) {
|
|
250
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentVariablesByPin");
|
|
251
|
+
}
|
|
252
|
+
var pathParams = {
|
|
253
|
+
'projectUID': projectUID,
|
|
254
|
+
'deviceUID': deviceUID
|
|
255
|
+
};
|
|
256
|
+
var queryParams = {};
|
|
257
|
+
var headerParams = {};
|
|
258
|
+
var formParams = {};
|
|
259
|
+
var authNames = ['pin'];
|
|
260
|
+
var contentTypes = [];
|
|
261
|
+
var accepts = ['application/json'];
|
|
262
|
+
var returnType = _GetDeviceEnvironmentVariables200Response["default"];
|
|
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
|
+
}
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Get environment variables of a device with device pin authorization
|
|
268
|
+
* @param {String} projectUID
|
|
269
|
+
* @param {String} deviceUID
|
|
270
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariables200Response}
|
|
271
|
+
*/
|
|
272
|
+
}, {
|
|
273
|
+
key: "getDeviceEnvironmentVariablesByPin",
|
|
274
|
+
value: function getDeviceEnvironmentVariablesByPin(projectUID, deviceUID) {
|
|
275
|
+
return this.getDeviceEnvironmentVariablesByPinWithHttpInfo(projectUID, deviceUID).then(function (response_and_data) {
|
|
276
|
+
return response_and_data.data;
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* Get environment variables of a fleet
|
|
282
|
+
* @param {String} projectUID
|
|
283
|
+
* @param {String} fleetUID
|
|
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
|
+
*/
|
|
286
|
+
}, {
|
|
287
|
+
key: "getFleetEnvironmentVariablesWithHttpInfo",
|
|
288
|
+
value: function getFleetEnvironmentVariablesWithHttpInfo(projectUID, fleetUID) {
|
|
289
|
+
var postBody = null;
|
|
290
|
+
// verify the required parameter 'projectUID' is set
|
|
291
|
+
if (projectUID === undefined || projectUID === null) {
|
|
292
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getFleetEnvironmentVariables");
|
|
293
|
+
}
|
|
294
|
+
// verify the required parameter 'fleetUID' is set
|
|
295
|
+
if (fleetUID === undefined || fleetUID === null) {
|
|
296
|
+
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEnvironmentVariables");
|
|
297
|
+
}
|
|
298
|
+
var pathParams = {
|
|
299
|
+
'projectUID': projectUID,
|
|
300
|
+
'fleetUID': fleetUID
|
|
301
|
+
};
|
|
302
|
+
var queryParams = {};
|
|
303
|
+
var headerParams = {};
|
|
304
|
+
var formParams = {};
|
|
305
|
+
var authNames = ['api_key'];
|
|
306
|
+
var contentTypes = [];
|
|
307
|
+
var accepts = ['application/json'];
|
|
308
|
+
var returnType = _EnvironmentVariables["default"];
|
|
309
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/fleets/{fleetUID}/environment_variables', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Get environment variables of a fleet
|
|
314
|
+
* @param {String} projectUID
|
|
315
|
+
* @param {String} fleetUID
|
|
316
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
317
|
+
*/
|
|
318
|
+
}, {
|
|
319
|
+
key: "getFleetEnvironmentVariables",
|
|
320
|
+
value: function getFleetEnvironmentVariables(projectUID, fleetUID) {
|
|
321
|
+
return this.getFleetEnvironmentVariablesWithHttpInfo(projectUID, fleetUID).then(function (response_and_data) {
|
|
322
|
+
return response_and_data.data;
|
|
323
|
+
});
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* Get environment variables of a project
|
|
328
|
+
* @param {String} projectUID
|
|
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
|
+
*/
|
|
331
|
+
}, {
|
|
332
|
+
key: "getProjectEnvironmentVariablesWithHttpInfo",
|
|
333
|
+
value: function getProjectEnvironmentVariablesWithHttpInfo(projectUID) {
|
|
334
|
+
var postBody = null;
|
|
335
|
+
// verify the required parameter 'projectUID' is set
|
|
336
|
+
if (projectUID === undefined || projectUID === null) {
|
|
337
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectEnvironmentVariables");
|
|
338
|
+
}
|
|
339
|
+
var pathParams = {
|
|
340
|
+
'projectUID': projectUID
|
|
341
|
+
};
|
|
342
|
+
var queryParams = {};
|
|
343
|
+
var headerParams = {};
|
|
344
|
+
var formParams = {};
|
|
345
|
+
var authNames = ['api_key'];
|
|
346
|
+
var contentTypes = [];
|
|
347
|
+
var accepts = ['application/json'];
|
|
348
|
+
var returnType = _EnvironmentVariables["default"];
|
|
349
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/environment_variables', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* Get environment variables of a project
|
|
354
|
+
* @param {String} projectUID
|
|
355
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
356
|
+
*/
|
|
357
|
+
}, {
|
|
358
|
+
key: "getProjectEnvironmentVariables",
|
|
359
|
+
value: function getProjectEnvironmentVariables(projectUID) {
|
|
360
|
+
return this.getProjectEnvironmentVariablesWithHttpInfo(projectUID).then(function (response_and_data) {
|
|
361
|
+
return response_and_data.data;
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* Put environment variables of a device
|
|
367
|
+
* @param {String} projectUID
|
|
368
|
+
* @param {String} deviceUID
|
|
369
|
+
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
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
|
+
*/
|
|
372
|
+
}, {
|
|
373
|
+
key: "putDeviceEnvironmentVariablesWithHttpInfo",
|
|
374
|
+
value: function putDeviceEnvironmentVariablesWithHttpInfo(projectUID, deviceUID, environmentVariables) {
|
|
375
|
+
var postBody = environmentVariables;
|
|
376
|
+
// verify the required parameter 'projectUID' is set
|
|
377
|
+
if (projectUID === undefined || projectUID === null) {
|
|
378
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling putDeviceEnvironmentVariables");
|
|
379
|
+
}
|
|
380
|
+
// verify the required parameter 'deviceUID' is set
|
|
381
|
+
if (deviceUID === undefined || deviceUID === null) {
|
|
382
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling putDeviceEnvironmentVariables");
|
|
383
|
+
}
|
|
384
|
+
// verify the required parameter 'environmentVariables' is set
|
|
385
|
+
if (environmentVariables === undefined || environmentVariables === null) {
|
|
386
|
+
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling putDeviceEnvironmentVariables");
|
|
387
|
+
}
|
|
388
|
+
var pathParams = {
|
|
389
|
+
'projectUID': projectUID,
|
|
390
|
+
'deviceUID': deviceUID
|
|
391
|
+
};
|
|
392
|
+
var queryParams = {};
|
|
393
|
+
var headerParams = {};
|
|
394
|
+
var formParams = {};
|
|
395
|
+
var authNames = ['api_key'];
|
|
396
|
+
var contentTypes = ['application/json'];
|
|
397
|
+
var accepts = ['application/json'];
|
|
398
|
+
var returnType = _EnvironmentVariables["default"];
|
|
399
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* Put environment variables of a device
|
|
404
|
+
* @param {String} projectUID
|
|
405
|
+
* @param {String} deviceUID
|
|
406
|
+
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
407
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
408
|
+
*/
|
|
409
|
+
}, {
|
|
410
|
+
key: "putDeviceEnvironmentVariables",
|
|
411
|
+
value: function putDeviceEnvironmentVariables(projectUID, deviceUID, environmentVariables) {
|
|
412
|
+
return this.putDeviceEnvironmentVariablesWithHttpInfo(projectUID, deviceUID, environmentVariables).then(function (response_and_data) {
|
|
413
|
+
return response_and_data.data;
|
|
414
|
+
});
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* Put environment variables of a device with device pin authorization
|
|
419
|
+
* @param {String} projectUID
|
|
420
|
+
* @param {String} deviceUID
|
|
421
|
+
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
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
|
+
*/
|
|
424
|
+
}, {
|
|
425
|
+
key: "putDeviceEnvironmentVariablesByPinWithHttpInfo",
|
|
426
|
+
value: function putDeviceEnvironmentVariablesByPinWithHttpInfo(projectUID, deviceUID, environmentVariables) {
|
|
427
|
+
var postBody = environmentVariables;
|
|
428
|
+
// verify the required parameter 'projectUID' is set
|
|
429
|
+
if (projectUID === undefined || projectUID === null) {
|
|
430
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling putDeviceEnvironmentVariablesByPin");
|
|
431
|
+
}
|
|
432
|
+
// verify the required parameter 'deviceUID' is set
|
|
433
|
+
if (deviceUID === undefined || deviceUID === null) {
|
|
434
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling putDeviceEnvironmentVariablesByPin");
|
|
435
|
+
}
|
|
436
|
+
// verify the required parameter 'environmentVariables' is set
|
|
437
|
+
if (environmentVariables === undefined || environmentVariables === null) {
|
|
438
|
+
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling putDeviceEnvironmentVariablesByPin");
|
|
439
|
+
}
|
|
440
|
+
var pathParams = {
|
|
441
|
+
'projectUID': projectUID,
|
|
442
|
+
'deviceUID': deviceUID
|
|
443
|
+
};
|
|
444
|
+
var queryParams = {};
|
|
445
|
+
var headerParams = {};
|
|
446
|
+
var formParams = {};
|
|
447
|
+
var authNames = ['pin'];
|
|
448
|
+
var contentTypes = ['application/json'];
|
|
449
|
+
var accepts = ['application/json'];
|
|
450
|
+
var returnType = _EnvironmentVariables["default"];
|
|
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
|
+
}
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* Put environment variables of a device with device pin authorization
|
|
456
|
+
* @param {String} projectUID
|
|
457
|
+
* @param {String} deviceUID
|
|
458
|
+
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
459
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
460
|
+
*/
|
|
461
|
+
}, {
|
|
462
|
+
key: "putDeviceEnvironmentVariablesByPin",
|
|
463
|
+
value: function putDeviceEnvironmentVariablesByPin(projectUID, deviceUID, environmentVariables) {
|
|
464
|
+
return this.putDeviceEnvironmentVariablesByPinWithHttpInfo(projectUID, deviceUID, environmentVariables).then(function (response_and_data) {
|
|
465
|
+
return response_and_data.data;
|
|
466
|
+
});
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
/**
|
|
470
|
+
* Put environment variables of a fleet
|
|
471
|
+
* @param {String} projectUID
|
|
472
|
+
* @param {String} fleetUID
|
|
473
|
+
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
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
|
+
*/
|
|
476
|
+
}, {
|
|
477
|
+
key: "putFleetEnvironmentVariablesWithHttpInfo",
|
|
478
|
+
value: function putFleetEnvironmentVariablesWithHttpInfo(projectUID, fleetUID, environmentVariables) {
|
|
479
|
+
var postBody = environmentVariables;
|
|
480
|
+
// verify the required parameter 'projectUID' is set
|
|
481
|
+
if (projectUID === undefined || projectUID === null) {
|
|
482
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling putFleetEnvironmentVariables");
|
|
483
|
+
}
|
|
484
|
+
// verify the required parameter 'fleetUID' is set
|
|
485
|
+
if (fleetUID === undefined || fleetUID === null) {
|
|
486
|
+
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling putFleetEnvironmentVariables");
|
|
487
|
+
}
|
|
488
|
+
// verify the required parameter 'environmentVariables' is set
|
|
489
|
+
if (environmentVariables === undefined || environmentVariables === null) {
|
|
490
|
+
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling putFleetEnvironmentVariables");
|
|
491
|
+
}
|
|
492
|
+
var pathParams = {
|
|
493
|
+
'projectUID': projectUID,
|
|
494
|
+
'fleetUID': fleetUID
|
|
495
|
+
};
|
|
496
|
+
var queryParams = {};
|
|
497
|
+
var headerParams = {};
|
|
498
|
+
var formParams = {};
|
|
499
|
+
var authNames = ['api_key'];
|
|
500
|
+
var contentTypes = ['application/json'];
|
|
501
|
+
var accepts = ['application/json'];
|
|
502
|
+
var returnType = _EnvironmentVariables["default"];
|
|
503
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/fleets/{fleetUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* Put environment variables of a fleet
|
|
508
|
+
* @param {String} projectUID
|
|
509
|
+
* @param {String} fleetUID
|
|
510
|
+
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
511
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
512
|
+
*/
|
|
513
|
+
}, {
|
|
514
|
+
key: "putFleetEnvironmentVariables",
|
|
515
|
+
value: function putFleetEnvironmentVariables(projectUID, fleetUID, environmentVariables) {
|
|
516
|
+
return this.putFleetEnvironmentVariablesWithHttpInfo(projectUID, fleetUID, environmentVariables).then(function (response_and_data) {
|
|
517
|
+
return response_and_data.data;
|
|
518
|
+
});
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
/**
|
|
522
|
+
* Put environment variables of a project
|
|
523
|
+
* @param {String} projectUID
|
|
524
|
+
* @param {Object} opts Optional parameters
|
|
525
|
+
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
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
|
+
*/
|
|
528
|
+
}, {
|
|
529
|
+
key: "putProjectEnvironmentVariablesWithHttpInfo",
|
|
530
|
+
value: function putProjectEnvironmentVariablesWithHttpInfo(projectUID, opts) {
|
|
531
|
+
opts = opts || {};
|
|
532
|
+
var postBody = opts['environmentVariables'];
|
|
533
|
+
// verify the required parameter 'projectUID' is set
|
|
534
|
+
if (projectUID === undefined || projectUID === null) {
|
|
535
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling putProjectEnvironmentVariables");
|
|
536
|
+
}
|
|
537
|
+
var pathParams = {
|
|
538
|
+
'projectUID': projectUID
|
|
539
|
+
};
|
|
540
|
+
var queryParams = {};
|
|
541
|
+
var headerParams = {};
|
|
542
|
+
var formParams = {};
|
|
543
|
+
var authNames = ['api_key'];
|
|
544
|
+
var contentTypes = ['application/json'];
|
|
545
|
+
var accepts = ['application/json'];
|
|
546
|
+
var returnType = _EnvironmentVariables["default"];
|
|
547
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
* Put environment variables of a project
|
|
552
|
+
* @param {String} projectUID
|
|
553
|
+
* @param {Object} opts Optional parameters
|
|
554
|
+
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
555
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
556
|
+
*/
|
|
557
|
+
}, {
|
|
558
|
+
key: "putProjectEnvironmentVariables",
|
|
559
|
+
value: function putProjectEnvironmentVariables(projectUID, opts) {
|
|
560
|
+
return this.putProjectEnvironmentVariablesWithHttpInfo(projectUID, opts).then(function (response_and_data) {
|
|
561
|
+
return response_and_data.data;
|
|
562
|
+
});
|
|
563
|
+
}
|
|
564
|
+
}]);
|
|
565
|
+
return EnvironmentVariablesApi;
|
|
566
|
+
}();
|
|
567
|
+
exports["default"] = EnvironmentVariablesApi;
|