@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,715 @@
|
|
|
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 _CreateFleetRequest = _interopRequireDefault(require("../model/CreateFleetRequest"));
|
|
9
|
+
var _DeleteDeviceFleetsRequest = _interopRequireDefault(require("../model/DeleteDeviceFleetsRequest"));
|
|
10
|
+
var _EnvironmentVariables = _interopRequireDefault(require("../model/EnvironmentVariables"));
|
|
11
|
+
var _Error = _interopRequireDefault(require("../model/Error"));
|
|
12
|
+
var _Fleet = _interopRequireDefault(require("../model/Fleet"));
|
|
13
|
+
var _GetProjectDevices200Response = _interopRequireDefault(require("../model/GetProjectDevices200Response"));
|
|
14
|
+
var _GetProjectEvents200Response = _interopRequireDefault(require("../model/GetProjectEvents200Response"));
|
|
15
|
+
var _GetProjectEventsByCursor200Response = _interopRequireDefault(require("../model/GetProjectEventsByCursor200Response"));
|
|
16
|
+
var _GetProjectFleets200Response = _interopRequireDefault(require("../model/GetProjectFleets200Response"));
|
|
17
|
+
var _PutDeviceFleetsRequest = _interopRequireDefault(require("../model/PutDeviceFleetsRequest"));
|
|
18
|
+
var _UpdateFleetRequest = _interopRequireDefault(require("../model/UpdateFleetRequest"));
|
|
19
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
20
|
+
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); }
|
|
21
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
22
|
+
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); } }
|
|
23
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
24
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
25
|
+
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); }
|
|
26
|
+
/**
|
|
27
|
+
* Fleet service.
|
|
28
|
+
* @module api/FleetApi
|
|
29
|
+
* @version 1.0.4
|
|
30
|
+
*/
|
|
31
|
+
var FleetApi = /*#__PURE__*/function () {
|
|
32
|
+
/**
|
|
33
|
+
* Constructs a new FleetApi.
|
|
34
|
+
* @alias module:api/FleetApi
|
|
35
|
+
* @class
|
|
36
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
37
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
38
|
+
*/
|
|
39
|
+
function FleetApi(apiClient) {
|
|
40
|
+
_classCallCheck(this, FleetApi);
|
|
41
|
+
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Create Fleet
|
|
46
|
+
* @param {String} projectUID
|
|
47
|
+
* @param {module:model/CreateFleetRequest} createFleetRequest Fleet to be added
|
|
48
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
49
|
+
*/
|
|
50
|
+
_createClass(FleetApi, [{
|
|
51
|
+
key: "createFleetWithHttpInfo",
|
|
52
|
+
value: function createFleetWithHttpInfo(projectUID, createFleetRequest) {
|
|
53
|
+
var postBody = createFleetRequest;
|
|
54
|
+
// verify the required parameter 'projectUID' is set
|
|
55
|
+
if (projectUID === undefined || projectUID === null) {
|
|
56
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling createFleet");
|
|
57
|
+
}
|
|
58
|
+
// verify the required parameter 'createFleetRequest' is set
|
|
59
|
+
if (createFleetRequest === undefined || createFleetRequest === null) {
|
|
60
|
+
throw new _Error["default"]("Missing the required parameter 'createFleetRequest' when calling createFleet");
|
|
61
|
+
}
|
|
62
|
+
var pathParams = {
|
|
63
|
+
'projectUID': projectUID
|
|
64
|
+
};
|
|
65
|
+
var queryParams = {};
|
|
66
|
+
var headerParams = {};
|
|
67
|
+
var formParams = {};
|
|
68
|
+
var authNames = ['api_key'];
|
|
69
|
+
var contentTypes = ['application/json'];
|
|
70
|
+
var accepts = ['application/json'];
|
|
71
|
+
var returnType = _Fleet["default"];
|
|
72
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/fleets', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Create Fleet
|
|
77
|
+
* @param {String} projectUID
|
|
78
|
+
* @param {module:model/CreateFleetRequest} createFleetRequest Fleet to be added
|
|
79
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
80
|
+
*/
|
|
81
|
+
}, {
|
|
82
|
+
key: "createFleet",
|
|
83
|
+
value: function createFleet(projectUID, createFleetRequest) {
|
|
84
|
+
return this.createFleetWithHttpInfo(projectUID, createFleetRequest).then(function (response_and_data) {
|
|
85
|
+
return response_and_data.data;
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Remove Device from Fleets
|
|
91
|
+
* @param {String} projectUID
|
|
92
|
+
* @param {String} deviceUID
|
|
93
|
+
* @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.
|
|
94
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectFleets200Response} and HTTP response
|
|
95
|
+
*/
|
|
96
|
+
}, {
|
|
97
|
+
key: "deleteDeviceFleetsWithHttpInfo",
|
|
98
|
+
value: function deleteDeviceFleetsWithHttpInfo(projectUID, deviceUID, deleteDeviceFleetsRequest) {
|
|
99
|
+
var postBody = deleteDeviceFleetsRequest;
|
|
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 deleteDeviceFleets");
|
|
103
|
+
}
|
|
104
|
+
// verify the required parameter 'deviceUID' is set
|
|
105
|
+
if (deviceUID === undefined || deviceUID === null) {
|
|
106
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling deleteDeviceFleets");
|
|
107
|
+
}
|
|
108
|
+
// verify the required parameter 'deleteDeviceFleetsRequest' is set
|
|
109
|
+
if (deleteDeviceFleetsRequest === undefined || deleteDeviceFleetsRequest === null) {
|
|
110
|
+
throw new _Error["default"]("Missing the required parameter 'deleteDeviceFleetsRequest' when calling deleteDeviceFleets");
|
|
111
|
+
}
|
|
112
|
+
var pathParams = {
|
|
113
|
+
'projectUID': projectUID,
|
|
114
|
+
'deviceUID': deviceUID
|
|
115
|
+
};
|
|
116
|
+
var queryParams = {};
|
|
117
|
+
var headerParams = {};
|
|
118
|
+
var formParams = {};
|
|
119
|
+
var authNames = ['api_key'];
|
|
120
|
+
var contentTypes = ['application/json'];
|
|
121
|
+
var accepts = ['application/json'];
|
|
122
|
+
var returnType = _GetProjectFleets200Response["default"];
|
|
123
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/fleets', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Remove Device from Fleets
|
|
128
|
+
* @param {String} projectUID
|
|
129
|
+
* @param {String} deviceUID
|
|
130
|
+
* @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.
|
|
131
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectFleets200Response}
|
|
132
|
+
*/
|
|
133
|
+
}, {
|
|
134
|
+
key: "deleteDeviceFleets",
|
|
135
|
+
value: function deleteDeviceFleets(projectUID, deviceUID, deleteDeviceFleetsRequest) {
|
|
136
|
+
return this.deleteDeviceFleetsWithHttpInfo(projectUID, deviceUID, deleteDeviceFleetsRequest).then(function (response_and_data) {
|
|
137
|
+
return response_and_data.data;
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Delete Fleet
|
|
143
|
+
* @param {String} projectUID
|
|
144
|
+
* @param {String} fleetUID
|
|
145
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
146
|
+
*/
|
|
147
|
+
}, {
|
|
148
|
+
key: "deleteFleetWithHttpInfo",
|
|
149
|
+
value: function deleteFleetWithHttpInfo(projectUID, fleetUID) {
|
|
150
|
+
var postBody = null;
|
|
151
|
+
// verify the required parameter 'projectUID' is set
|
|
152
|
+
if (projectUID === undefined || projectUID === null) {
|
|
153
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling deleteFleet");
|
|
154
|
+
}
|
|
155
|
+
// verify the required parameter 'fleetUID' is set
|
|
156
|
+
if (fleetUID === undefined || fleetUID === null) {
|
|
157
|
+
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling deleteFleet");
|
|
158
|
+
}
|
|
159
|
+
var pathParams = {
|
|
160
|
+
'projectUID': projectUID,
|
|
161
|
+
'fleetUID': fleetUID
|
|
162
|
+
};
|
|
163
|
+
var queryParams = {};
|
|
164
|
+
var headerParams = {};
|
|
165
|
+
var formParams = {};
|
|
166
|
+
var authNames = ['api_key'];
|
|
167
|
+
var contentTypes = [];
|
|
168
|
+
var accepts = ['application/json'];
|
|
169
|
+
var returnType = null;
|
|
170
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/fleets/{fleetUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Delete Fleet
|
|
175
|
+
* @param {String} projectUID
|
|
176
|
+
* @param {String} fleetUID
|
|
177
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
178
|
+
*/
|
|
179
|
+
}, {
|
|
180
|
+
key: "deleteFleet",
|
|
181
|
+
value: function deleteFleet(projectUID, fleetUID) {
|
|
182
|
+
return this.deleteFleetWithHttpInfo(projectUID, fleetUID).then(function (response_and_data) {
|
|
183
|
+
return response_and_data.data;
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Delete environment variables of a fleet
|
|
189
|
+
* @param {String} projectUID
|
|
190
|
+
* @param {String} fleetUID
|
|
191
|
+
* @param {String} key The environment variable key to delete.
|
|
192
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
193
|
+
*/
|
|
194
|
+
}, {
|
|
195
|
+
key: "deleteFleetEnvironmentVariableWithHttpInfo",
|
|
196
|
+
value: function deleteFleetEnvironmentVariableWithHttpInfo(projectUID, fleetUID, key) {
|
|
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 deleteFleetEnvironmentVariable");
|
|
201
|
+
}
|
|
202
|
+
// verify the required parameter 'fleetUID' is set
|
|
203
|
+
if (fleetUID === undefined || fleetUID === null) {
|
|
204
|
+
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling deleteFleetEnvironmentVariable");
|
|
205
|
+
}
|
|
206
|
+
// verify the required parameter 'key' is set
|
|
207
|
+
if (key === undefined || key === null) {
|
|
208
|
+
throw new _Error["default"]("Missing the required parameter 'key' when calling deleteFleetEnvironmentVariable");
|
|
209
|
+
}
|
|
210
|
+
var pathParams = {
|
|
211
|
+
'projectUID': projectUID,
|
|
212
|
+
'fleetUID': fleetUID,
|
|
213
|
+
'key': key
|
|
214
|
+
};
|
|
215
|
+
var queryParams = {};
|
|
216
|
+
var headerParams = {};
|
|
217
|
+
var formParams = {};
|
|
218
|
+
var authNames = ['api_key'];
|
|
219
|
+
var contentTypes = [];
|
|
220
|
+
var accepts = ['application/json'];
|
|
221
|
+
var returnType = _EnvironmentVariables["default"];
|
|
222
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/fleets/{fleetUID}/environment_variables/{key}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Delete environment variables of a fleet
|
|
227
|
+
* @param {String} projectUID
|
|
228
|
+
* @param {String} fleetUID
|
|
229
|
+
* @param {String} key The environment variable key to delete.
|
|
230
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
231
|
+
*/
|
|
232
|
+
}, {
|
|
233
|
+
key: "deleteFleetEnvironmentVariable",
|
|
234
|
+
value: function deleteFleetEnvironmentVariable(projectUID, fleetUID, key) {
|
|
235
|
+
return this.deleteFleetEnvironmentVariableWithHttpInfo(projectUID, fleetUID, key).then(function (response_and_data) {
|
|
236
|
+
return response_and_data.data;
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* Get Device Fleets
|
|
242
|
+
* @param {String} projectUID
|
|
243
|
+
* @param {String} deviceUID
|
|
244
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectFleets200Response} and HTTP response
|
|
245
|
+
*/
|
|
246
|
+
}, {
|
|
247
|
+
key: "getDeviceFleetsWithHttpInfo",
|
|
248
|
+
value: function getDeviceFleetsWithHttpInfo(projectUID, deviceUID) {
|
|
249
|
+
var postBody = null;
|
|
250
|
+
// verify the required parameter 'projectUID' is set
|
|
251
|
+
if (projectUID === undefined || projectUID === null) {
|
|
252
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getDeviceFleets");
|
|
253
|
+
}
|
|
254
|
+
// verify the required parameter 'deviceUID' is set
|
|
255
|
+
if (deviceUID === undefined || deviceUID === null) {
|
|
256
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceFleets");
|
|
257
|
+
}
|
|
258
|
+
var pathParams = {
|
|
259
|
+
'projectUID': projectUID,
|
|
260
|
+
'deviceUID': deviceUID
|
|
261
|
+
};
|
|
262
|
+
var queryParams = {};
|
|
263
|
+
var headerParams = {};
|
|
264
|
+
var formParams = {};
|
|
265
|
+
var authNames = ['api_key'];
|
|
266
|
+
var contentTypes = [];
|
|
267
|
+
var accepts = ['application/json'];
|
|
268
|
+
var returnType = _GetProjectFleets200Response["default"];
|
|
269
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/fleets', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Get Device Fleets
|
|
274
|
+
* @param {String} projectUID
|
|
275
|
+
* @param {String} deviceUID
|
|
276
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectFleets200Response}
|
|
277
|
+
*/
|
|
278
|
+
}, {
|
|
279
|
+
key: "getDeviceFleets",
|
|
280
|
+
value: function getDeviceFleets(projectUID, deviceUID) {
|
|
281
|
+
return this.getDeviceFleetsWithHttpInfo(projectUID, deviceUID).then(function (response_and_data) {
|
|
282
|
+
return response_and_data.data;
|
|
283
|
+
});
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* Get environment variables of a fleet
|
|
288
|
+
* @param {String} projectUID
|
|
289
|
+
* @param {String} fleetUID
|
|
290
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
291
|
+
*/
|
|
292
|
+
}, {
|
|
293
|
+
key: "getFleetEnvironmentVariablesWithHttpInfo",
|
|
294
|
+
value: function getFleetEnvironmentVariablesWithHttpInfo(projectUID, fleetUID) {
|
|
295
|
+
var postBody = null;
|
|
296
|
+
// verify the required parameter 'projectUID' is set
|
|
297
|
+
if (projectUID === undefined || projectUID === null) {
|
|
298
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getFleetEnvironmentVariables");
|
|
299
|
+
}
|
|
300
|
+
// verify the required parameter 'fleetUID' is set
|
|
301
|
+
if (fleetUID === undefined || fleetUID === null) {
|
|
302
|
+
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEnvironmentVariables");
|
|
303
|
+
}
|
|
304
|
+
var pathParams = {
|
|
305
|
+
'projectUID': projectUID,
|
|
306
|
+
'fleetUID': fleetUID
|
|
307
|
+
};
|
|
308
|
+
var queryParams = {};
|
|
309
|
+
var headerParams = {};
|
|
310
|
+
var formParams = {};
|
|
311
|
+
var authNames = ['api_key'];
|
|
312
|
+
var contentTypes = [];
|
|
313
|
+
var accepts = ['application/json'];
|
|
314
|
+
var returnType = _EnvironmentVariables["default"];
|
|
315
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/fleets/{fleetUID}/environment_variables', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* Get environment variables of a fleet
|
|
320
|
+
* @param {String} projectUID
|
|
321
|
+
* @param {String} fleetUID
|
|
322
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
323
|
+
*/
|
|
324
|
+
}, {
|
|
325
|
+
key: "getFleetEnvironmentVariables",
|
|
326
|
+
value: function getFleetEnvironmentVariables(projectUID, fleetUID) {
|
|
327
|
+
return this.getFleetEnvironmentVariablesWithHttpInfo(projectUID, fleetUID).then(function (response_and_data) {
|
|
328
|
+
return response_and_data.data;
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* Get Events of a Fleet
|
|
334
|
+
* @param {String} projectUID
|
|
335
|
+
* @param {String} fleetUID
|
|
336
|
+
* @param {Object} opts Optional parameters
|
|
337
|
+
* @param {Number} opts.pageSize (default to 50)
|
|
338
|
+
* @param {Number} opts.pageNum (default to 1)
|
|
339
|
+
* @param {Array.<String>} opts.deviceUIDs A comma separated list of Device UIDs.
|
|
340
|
+
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
341
|
+
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
342
|
+
* @param {Number} opts.startDate Unix timestamp
|
|
343
|
+
* @param {Number} opts.endDate Unix timestamp
|
|
344
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectEvents200Response} and HTTP response
|
|
345
|
+
*/
|
|
346
|
+
}, {
|
|
347
|
+
key: "getFleetEventsWithHttpInfo",
|
|
348
|
+
value: function getFleetEventsWithHttpInfo(projectUID, fleetUID, opts) {
|
|
349
|
+
opts = opts || {};
|
|
350
|
+
var postBody = null;
|
|
351
|
+
// verify the required parameter 'projectUID' is set
|
|
352
|
+
if (projectUID === undefined || projectUID === null) {
|
|
353
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getFleetEvents");
|
|
354
|
+
}
|
|
355
|
+
// verify the required parameter 'fleetUID' is set
|
|
356
|
+
if (fleetUID === undefined || fleetUID === null) {
|
|
357
|
+
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEvents");
|
|
358
|
+
}
|
|
359
|
+
var pathParams = {
|
|
360
|
+
'projectUID': projectUID,
|
|
361
|
+
'fleetUID': fleetUID
|
|
362
|
+
};
|
|
363
|
+
var queryParams = {
|
|
364
|
+
'pageSize': opts['pageSize'],
|
|
365
|
+
'pageNum': opts['pageNum'],
|
|
366
|
+
'deviceUIDs': this.apiClient.buildCollectionParam(opts['deviceUIDs'], 'csv'),
|
|
367
|
+
'sortBy': opts['sortBy'],
|
|
368
|
+
'sortOrder': opts['sortOrder'],
|
|
369
|
+
'startDate': opts['startDate'],
|
|
370
|
+
'endDate': opts['endDate']
|
|
371
|
+
};
|
|
372
|
+
var headerParams = {};
|
|
373
|
+
var formParams = {};
|
|
374
|
+
var authNames = ['api_key'];
|
|
375
|
+
var contentTypes = [];
|
|
376
|
+
var accepts = ['application/json'];
|
|
377
|
+
var returnType = _GetProjectEvents200Response["default"];
|
|
378
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/fleets/{fleetUID}/events', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* Get Events of a Fleet
|
|
383
|
+
* @param {String} projectUID
|
|
384
|
+
* @param {String} fleetUID
|
|
385
|
+
* @param {Object} opts Optional parameters
|
|
386
|
+
* @param {Number} opts.pageSize (default to 50)
|
|
387
|
+
* @param {Number} opts.pageNum (default to 1)
|
|
388
|
+
* @param {Array.<String>} opts.deviceUIDs A comma separated list of Device UIDs.
|
|
389
|
+
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
390
|
+
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
391
|
+
* @param {Number} opts.startDate Unix timestamp
|
|
392
|
+
* @param {Number} opts.endDate Unix timestamp
|
|
393
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectEvents200Response}
|
|
394
|
+
*/
|
|
395
|
+
}, {
|
|
396
|
+
key: "getFleetEvents",
|
|
397
|
+
value: function getFleetEvents(projectUID, fleetUID, opts) {
|
|
398
|
+
return this.getFleetEventsWithHttpInfo(projectUID, fleetUID, opts).then(function (response_and_data) {
|
|
399
|
+
return response_and_data.data;
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* Get Events of a Fleet by cursor
|
|
405
|
+
* @param {String} projectUID
|
|
406
|
+
* @param {String} fleetUID
|
|
407
|
+
* @param {Object} opts Optional parameters
|
|
408
|
+
* @param {Number} opts.limit (default to 50)
|
|
409
|
+
* @param {String} opts.cursor A cursor, which can be obtained from the `next_cursor` value from a previous call to this endpoint. The results set returned will include this event as its first result if the given identifier is actually the UID of an event. If this event UID is not found, the parameter is ignored and the results set is the same as if the parameter was not included.
|
|
410
|
+
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
411
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectEventsByCursor200Response} and HTTP response
|
|
412
|
+
*/
|
|
413
|
+
}, {
|
|
414
|
+
key: "getFleetEventsByCursorWithHttpInfo",
|
|
415
|
+
value: function getFleetEventsByCursorWithHttpInfo(projectUID, fleetUID, opts) {
|
|
416
|
+
opts = opts || {};
|
|
417
|
+
var postBody = null;
|
|
418
|
+
// verify the required parameter 'projectUID' is set
|
|
419
|
+
if (projectUID === undefined || projectUID === null) {
|
|
420
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getFleetEventsByCursor");
|
|
421
|
+
}
|
|
422
|
+
// verify the required parameter 'fleetUID' is set
|
|
423
|
+
if (fleetUID === undefined || fleetUID === null) {
|
|
424
|
+
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEventsByCursor");
|
|
425
|
+
}
|
|
426
|
+
var pathParams = {
|
|
427
|
+
'projectUID': projectUID,
|
|
428
|
+
'fleetUID': fleetUID
|
|
429
|
+
};
|
|
430
|
+
var queryParams = {
|
|
431
|
+
'limit': opts['limit'],
|
|
432
|
+
'cursor': opts['cursor'],
|
|
433
|
+
'sortOrder': opts['sortOrder']
|
|
434
|
+
};
|
|
435
|
+
var headerParams = {};
|
|
436
|
+
var formParams = {};
|
|
437
|
+
var authNames = ['api_key'];
|
|
438
|
+
var contentTypes = [];
|
|
439
|
+
var accepts = ['application/json'];
|
|
440
|
+
var returnType = _GetProjectEventsByCursor200Response["default"];
|
|
441
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/fleets/{fleetUID}/events-cursor', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* Get Events of a Fleet by cursor
|
|
446
|
+
* @param {String} projectUID
|
|
447
|
+
* @param {String} fleetUID
|
|
448
|
+
* @param {Object} opts Optional parameters
|
|
449
|
+
* @param {Number} opts.limit (default to 50)
|
|
450
|
+
* @param {String} opts.cursor A cursor, which can be obtained from the `next_cursor` value from a previous call to this endpoint. The results set returned will include this event as its first result if the given identifier is actually the UID of an event. If this event UID is not found, the parameter is ignored and the results set is the same as if the parameter was not included.
|
|
451
|
+
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
452
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectEventsByCursor200Response}
|
|
453
|
+
*/
|
|
454
|
+
}, {
|
|
455
|
+
key: "getFleetEventsByCursor",
|
|
456
|
+
value: function getFleetEventsByCursor(projectUID, fleetUID, opts) {
|
|
457
|
+
return this.getFleetEventsByCursorWithHttpInfo(projectUID, fleetUID, opts).then(function (response_and_data) {
|
|
458
|
+
return response_and_data.data;
|
|
459
|
+
});
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
/**
|
|
463
|
+
* Get Devices of a Fleet within a Project
|
|
464
|
+
* @param {String} projectUID
|
|
465
|
+
* @param {String} fleetUID
|
|
466
|
+
* @param {Object} opts Optional parameters
|
|
467
|
+
* @param {Number} opts.pageSize (default to 50)
|
|
468
|
+
* @param {Number} opts.pageNum (default to 1)
|
|
469
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectDevices200Response} and HTTP response
|
|
470
|
+
*/
|
|
471
|
+
}, {
|
|
472
|
+
key: "getProjectFleetDevicesWithHttpInfo",
|
|
473
|
+
value: function getProjectFleetDevicesWithHttpInfo(projectUID, fleetUID, opts) {
|
|
474
|
+
opts = opts || {};
|
|
475
|
+
var postBody = null;
|
|
476
|
+
// verify the required parameter 'projectUID' is set
|
|
477
|
+
if (projectUID === undefined || projectUID === null) {
|
|
478
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectFleetDevices");
|
|
479
|
+
}
|
|
480
|
+
// verify the required parameter 'fleetUID' is set
|
|
481
|
+
if (fleetUID === undefined || fleetUID === null) {
|
|
482
|
+
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getProjectFleetDevices");
|
|
483
|
+
}
|
|
484
|
+
var pathParams = {
|
|
485
|
+
'projectUID': projectUID,
|
|
486
|
+
'fleetUID': fleetUID
|
|
487
|
+
};
|
|
488
|
+
var queryParams = {
|
|
489
|
+
'pageSize': opts['pageSize'],
|
|
490
|
+
'pageNum': opts['pageNum']
|
|
491
|
+
};
|
|
492
|
+
var headerParams = {};
|
|
493
|
+
var formParams = {};
|
|
494
|
+
var authNames = ['api_key'];
|
|
495
|
+
var contentTypes = [];
|
|
496
|
+
var accepts = ['application/json'];
|
|
497
|
+
var returnType = _GetProjectDevices200Response["default"];
|
|
498
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/fleets/{fleetUID}/devices', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* Get Devices of a Fleet within a Project
|
|
503
|
+
* @param {String} projectUID
|
|
504
|
+
* @param {String} fleetUID
|
|
505
|
+
* @param {Object} opts Optional parameters
|
|
506
|
+
* @param {Number} opts.pageSize (default to 50)
|
|
507
|
+
* @param {Number} opts.pageNum (default to 1)
|
|
508
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectDevices200Response}
|
|
509
|
+
*/
|
|
510
|
+
}, {
|
|
511
|
+
key: "getProjectFleetDevices",
|
|
512
|
+
value: function getProjectFleetDevices(projectUID, fleetUID, opts) {
|
|
513
|
+
return this.getProjectFleetDevicesWithHttpInfo(projectUID, fleetUID, opts).then(function (response_and_data) {
|
|
514
|
+
return response_and_data.data;
|
|
515
|
+
});
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
* Get Project Fleets
|
|
520
|
+
* @param {String} projectUID
|
|
521
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectFleets200Response} and HTTP response
|
|
522
|
+
*/
|
|
523
|
+
}, {
|
|
524
|
+
key: "getProjectFleetsWithHttpInfo",
|
|
525
|
+
value: function getProjectFleetsWithHttpInfo(projectUID) {
|
|
526
|
+
var postBody = null;
|
|
527
|
+
// verify the required parameter 'projectUID' is set
|
|
528
|
+
if (projectUID === undefined || projectUID === null) {
|
|
529
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectFleets");
|
|
530
|
+
}
|
|
531
|
+
var pathParams = {
|
|
532
|
+
'projectUID': projectUID
|
|
533
|
+
};
|
|
534
|
+
var queryParams = {};
|
|
535
|
+
var headerParams = {};
|
|
536
|
+
var formParams = {};
|
|
537
|
+
var authNames = ['api_key'];
|
|
538
|
+
var contentTypes = [];
|
|
539
|
+
var accepts = ['application/json'];
|
|
540
|
+
var returnType = _GetProjectFleets200Response["default"];
|
|
541
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/fleets', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* Get Project Fleets
|
|
546
|
+
* @param {String} projectUID
|
|
547
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectFleets200Response}
|
|
548
|
+
*/
|
|
549
|
+
}, {
|
|
550
|
+
key: "getProjectFleets",
|
|
551
|
+
value: function getProjectFleets(projectUID) {
|
|
552
|
+
return this.getProjectFleetsWithHttpInfo(projectUID).then(function (response_and_data) {
|
|
553
|
+
return response_and_data.data;
|
|
554
|
+
});
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
/**
|
|
558
|
+
* Add Device to Fleets
|
|
559
|
+
* @param {String} projectUID
|
|
560
|
+
* @param {String} deviceUID
|
|
561
|
+
* @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.
|
|
562
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectFleets200Response} and HTTP response
|
|
563
|
+
*/
|
|
564
|
+
}, {
|
|
565
|
+
key: "putDeviceFleetsWithHttpInfo",
|
|
566
|
+
value: function putDeviceFleetsWithHttpInfo(projectUID, deviceUID, putDeviceFleetsRequest) {
|
|
567
|
+
var postBody = putDeviceFleetsRequest;
|
|
568
|
+
// verify the required parameter 'projectUID' is set
|
|
569
|
+
if (projectUID === undefined || projectUID === null) {
|
|
570
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling putDeviceFleets");
|
|
571
|
+
}
|
|
572
|
+
// verify the required parameter 'deviceUID' is set
|
|
573
|
+
if (deviceUID === undefined || deviceUID === null) {
|
|
574
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling putDeviceFleets");
|
|
575
|
+
}
|
|
576
|
+
// verify the required parameter 'putDeviceFleetsRequest' is set
|
|
577
|
+
if (putDeviceFleetsRequest === undefined || putDeviceFleetsRequest === null) {
|
|
578
|
+
throw new _Error["default"]("Missing the required parameter 'putDeviceFleetsRequest' when calling putDeviceFleets");
|
|
579
|
+
}
|
|
580
|
+
var pathParams = {
|
|
581
|
+
'projectUID': projectUID,
|
|
582
|
+
'deviceUID': deviceUID
|
|
583
|
+
};
|
|
584
|
+
var queryParams = {};
|
|
585
|
+
var headerParams = {};
|
|
586
|
+
var formParams = {};
|
|
587
|
+
var authNames = ['api_key'];
|
|
588
|
+
var contentTypes = ['application/json'];
|
|
589
|
+
var accepts = ['application/json'];
|
|
590
|
+
var returnType = _GetProjectFleets200Response["default"];
|
|
591
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/fleets', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
/**
|
|
595
|
+
* Add Device to Fleets
|
|
596
|
+
* @param {String} projectUID
|
|
597
|
+
* @param {String} deviceUID
|
|
598
|
+
* @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.
|
|
599
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectFleets200Response}
|
|
600
|
+
*/
|
|
601
|
+
}, {
|
|
602
|
+
key: "putDeviceFleets",
|
|
603
|
+
value: function putDeviceFleets(projectUID, deviceUID, putDeviceFleetsRequest) {
|
|
604
|
+
return this.putDeviceFleetsWithHttpInfo(projectUID, deviceUID, putDeviceFleetsRequest).then(function (response_and_data) {
|
|
605
|
+
return response_and_data.data;
|
|
606
|
+
});
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
/**
|
|
610
|
+
* Put environment variables of a fleet
|
|
611
|
+
* @param {String} projectUID
|
|
612
|
+
* @param {String} fleetUID
|
|
613
|
+
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
614
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
615
|
+
*/
|
|
616
|
+
}, {
|
|
617
|
+
key: "putFleetEnvironmentVariablesWithHttpInfo",
|
|
618
|
+
value: function putFleetEnvironmentVariablesWithHttpInfo(projectUID, fleetUID, environmentVariables) {
|
|
619
|
+
var postBody = environmentVariables;
|
|
620
|
+
// verify the required parameter 'projectUID' is set
|
|
621
|
+
if (projectUID === undefined || projectUID === null) {
|
|
622
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling putFleetEnvironmentVariables");
|
|
623
|
+
}
|
|
624
|
+
// verify the required parameter 'fleetUID' is set
|
|
625
|
+
if (fleetUID === undefined || fleetUID === null) {
|
|
626
|
+
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling putFleetEnvironmentVariables");
|
|
627
|
+
}
|
|
628
|
+
// verify the required parameter 'environmentVariables' is set
|
|
629
|
+
if (environmentVariables === undefined || environmentVariables === null) {
|
|
630
|
+
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling putFleetEnvironmentVariables");
|
|
631
|
+
}
|
|
632
|
+
var pathParams = {
|
|
633
|
+
'projectUID': projectUID,
|
|
634
|
+
'fleetUID': fleetUID
|
|
635
|
+
};
|
|
636
|
+
var queryParams = {};
|
|
637
|
+
var headerParams = {};
|
|
638
|
+
var formParams = {};
|
|
639
|
+
var authNames = ['api_key'];
|
|
640
|
+
var contentTypes = ['application/json'];
|
|
641
|
+
var accepts = ['application/json'];
|
|
642
|
+
var returnType = _EnvironmentVariables["default"];
|
|
643
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/fleets/{fleetUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
/**
|
|
647
|
+
* Put environment variables of a fleet
|
|
648
|
+
* @param {String} projectUID
|
|
649
|
+
* @param {String} fleetUID
|
|
650
|
+
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
651
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
652
|
+
*/
|
|
653
|
+
}, {
|
|
654
|
+
key: "putFleetEnvironmentVariables",
|
|
655
|
+
value: function putFleetEnvironmentVariables(projectUID, fleetUID, environmentVariables) {
|
|
656
|
+
return this.putFleetEnvironmentVariablesWithHttpInfo(projectUID, fleetUID, environmentVariables).then(function (response_and_data) {
|
|
657
|
+
return response_and_data.data;
|
|
658
|
+
});
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* Update Fleet
|
|
663
|
+
* @param {String} projectUID
|
|
664
|
+
* @param {String} fleetUID
|
|
665
|
+
* @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
|
|
666
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
667
|
+
*/
|
|
668
|
+
}, {
|
|
669
|
+
key: "updateFleetWithHttpInfo",
|
|
670
|
+
value: function updateFleetWithHttpInfo(projectUID, fleetUID, updateFleetRequest) {
|
|
671
|
+
var postBody = updateFleetRequest;
|
|
672
|
+
// verify the required parameter 'projectUID' is set
|
|
673
|
+
if (projectUID === undefined || projectUID === null) {
|
|
674
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling updateFleet");
|
|
675
|
+
}
|
|
676
|
+
// verify the required parameter 'fleetUID' is set
|
|
677
|
+
if (fleetUID === undefined || fleetUID === null) {
|
|
678
|
+
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling updateFleet");
|
|
679
|
+
}
|
|
680
|
+
// verify the required parameter 'updateFleetRequest' is set
|
|
681
|
+
if (updateFleetRequest === undefined || updateFleetRequest === null) {
|
|
682
|
+
throw new _Error["default"]("Missing the required parameter 'updateFleetRequest' when calling updateFleet");
|
|
683
|
+
}
|
|
684
|
+
var pathParams = {
|
|
685
|
+
'projectUID': projectUID,
|
|
686
|
+
'fleetUID': fleetUID
|
|
687
|
+
};
|
|
688
|
+
var queryParams = {};
|
|
689
|
+
var headerParams = {};
|
|
690
|
+
var formParams = {};
|
|
691
|
+
var authNames = ['api_key'];
|
|
692
|
+
var contentTypes = ['application/json'];
|
|
693
|
+
var accepts = ['application/json'];
|
|
694
|
+
var returnType = _Fleet["default"];
|
|
695
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/fleets/{fleetUID}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
/**
|
|
699
|
+
* Update Fleet
|
|
700
|
+
* @param {String} projectUID
|
|
701
|
+
* @param {String} fleetUID
|
|
702
|
+
* @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
|
|
703
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
704
|
+
*/
|
|
705
|
+
}, {
|
|
706
|
+
key: "updateFleet",
|
|
707
|
+
value: function updateFleet(projectUID, fleetUID, updateFleetRequest) {
|
|
708
|
+
return this.updateFleetWithHttpInfo(projectUID, fleetUID, updateFleetRequest).then(function (response_and_data) {
|
|
709
|
+
return response_and_data.data;
|
|
710
|
+
});
|
|
711
|
+
}
|
|
712
|
+
}]);
|
|
713
|
+
return FleetApi;
|
|
714
|
+
}();
|
|
715
|
+
exports["default"] = FleetApi;
|