@quantcdn/quant-client 3.0.4 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. package/README.md +147 -18
  2. package/api.ts +26156 -0
  3. package/base.ts +89 -0
  4. package/common.ts +150 -0
  5. package/configuration.ts +115 -0
  6. package/dist/api.d.ts +18714 -2
  7. package/dist/api.js +13862 -16
  8. package/dist/base.d.ts +66 -0
  9. package/dist/base.js +68 -0
  10. package/dist/common.d.ts +65 -0
  11. package/dist/common.js +161 -0
  12. package/dist/configuration.d.ts +91 -0
  13. package/dist/configuration.js +44 -0
  14. package/dist/esm/api.d.ts +18714 -0
  15. package/dist/esm/api.js +13756 -0
  16. package/dist/esm/base.d.ts +66 -0
  17. package/dist/esm/base.js +63 -0
  18. package/dist/esm/common.d.ts +65 -0
  19. package/dist/esm/common.js +149 -0
  20. package/dist/esm/configuration.d.ts +91 -0
  21. package/dist/esm/configuration.js +40 -0
  22. package/dist/esm/examples/basic-usage.d.ts +4 -0
  23. package/dist/esm/examples/basic-usage.js +93 -0
  24. package/dist/esm/index.d.ts +13 -0
  25. package/dist/esm/index.js +15 -0
  26. package/dist/examples/basic-usage.d.ts +4 -0
  27. package/dist/examples/basic-usage.js +95 -0
  28. package/dist/index.d.ts +13 -0
  29. package/dist/index.js +31 -0
  30. package/index.ts +18 -0
  31. package/package.json +44 -22
  32. package/tsconfig.json +20 -0
  33. package/dist/api/apis.d.ts +0 -32
  34. package/dist/api/apis.js +0 -50
  35. package/dist/api/applicationsApi.d.ts +0 -104
  36. package/dist/api/applicationsApi.js +0 -431
  37. package/dist/api/backupManagementApi.d.ts +0 -112
  38. package/dist/api/backupManagementApi.js +0 -464
  39. package/dist/api/commandsApi.d.ts +0 -80
  40. package/dist/api/commandsApi.js +0 -316
  41. package/dist/api/composeApi.d.ts +0 -67
  42. package/dist/api/composeApi.js +0 -240
  43. package/dist/api/containersApi.d.ts +0 -67
  44. package/dist/api/containersApi.js +0 -236
  45. package/dist/api/cronApi.d.ts +0 -151
  46. package/dist/api/cronApi.js +0 -681
  47. package/dist/api/environmentsApi.d.ts +0 -194
  48. package/dist/api/environmentsApi.js +0 -869
  49. package/dist/api/sSHAccessApi.d.ts +0 -50
  50. package/dist/api/sSHAccessApi.js +0 -162
  51. package/dist/api/scalingPolicyApi.d.ts +0 -82
  52. package/dist/api/scalingPolicyApi.js +0 -307
  53. package/dist/api/variablesApi.d.ts +0 -83
  54. package/dist/api/variablesApi.js +0 -313
  55. package/dist/api/volumesApi.d.ts +0 -97
  56. package/dist/api/volumesApi.js +0 -405
  57. package/dist/model/application.d.ts +0 -38
  58. package/dist/model/application.js +0 -93
  59. package/dist/model/command.d.ts +0 -34
  60. package/dist/model/command.js +0 -73
  61. package/dist/model/compose.d.ts +0 -32
  62. package/dist/model/compose.js +0 -58
  63. package/dist/model/configuration.d.ts +0 -26
  64. package/dist/model/configuration.js +0 -30
  65. package/dist/model/container.d.ts +0 -75
  66. package/dist/model/container.js +0 -121
  67. package/dist/model/containerDependsOnInner.d.ts +0 -40
  68. package/dist/model/containerDependsOnInner.js +0 -42
  69. package/dist/model/containerEnvironmentInner.d.ts +0 -32
  70. package/dist/model/containerEnvironmentInner.js +0 -33
  71. package/dist/model/containerHealthCheck.d.ts +0 -47
  72. package/dist/model/containerHealthCheck.js +0 -65
  73. package/dist/model/containerImageReference.d.ts +0 -38
  74. package/dist/model/containerImageReference.js +0 -40
  75. package/dist/model/containerMountPointsInner.d.ts +0 -33
  76. package/dist/model/containerMountPointsInner.js +0 -41
  77. package/dist/model/containerSecretsInner.d.ts +0 -32
  78. package/dist/model/containerSecretsInner.js +0 -33
  79. package/dist/model/createApplicationRequest.d.ts +0 -28
  80. package/dist/model/createApplicationRequest.js +0 -43
  81. package/dist/model/createBackup202Response.d.ts +0 -27
  82. package/dist/model/createBackup202Response.js +0 -38
  83. package/dist/model/createBackupRequest.d.ts +0 -32
  84. package/dist/model/createBackupRequest.js +0 -33
  85. package/dist/model/createCommandRequest.d.ts +0 -25
  86. package/dist/model/createCommandRequest.js +0 -28
  87. package/dist/model/createCronJob422Response.d.ts +0 -26
  88. package/dist/model/createCronJob422Response.js +0 -33
  89. package/dist/model/createCronJobRequest.d.ts +0 -30
  90. package/dist/model/createCronJobRequest.js +0 -56
  91. package/dist/model/createEnvironmentRequest.d.ts +0 -34
  92. package/dist/model/createEnvironmentRequest.js +0 -53
  93. package/dist/model/cron.d.ts +0 -27
  94. package/dist/model/cron.js +0 -38
  95. package/dist/model/cronRun.d.ts +0 -48
  96. package/dist/model/cronRun.js +0 -89
  97. package/dist/model/deleteBackup200Response.d.ts +0 -26
  98. package/dist/model/deleteBackup200Response.js +0 -33
  99. package/dist/model/downloadBackup200Response.d.ts +0 -36
  100. package/dist/model/downloadBackup200Response.js +0 -38
  101. package/dist/model/environment.d.ts +0 -45
  102. package/dist/model/environment.js +0 -103
  103. package/dist/model/getEcrLoginCredentials200Response.d.ts +0 -28
  104. package/dist/model/getEcrLoginCredentials200Response.js +0 -43
  105. package/dist/model/getScalingPolicies200Response.d.ts +0 -26
  106. package/dist/model/getScalingPolicies200Response.js +0 -28
  107. package/dist/model/getSshAccessCredentials200Response.d.ts +0 -34
  108. package/dist/model/getSshAccessCredentials200Response.js +0 -68
  109. package/dist/model/getSshAccessCredentials200ResponseCredentials.d.ts +0 -28
  110. package/dist/model/getSshAccessCredentials200ResponseCredentials.js +0 -43
  111. package/dist/model/listBackups200Response.d.ts +0 -32
  112. package/dist/model/listBackups200Response.js +0 -43
  113. package/dist/model/listBackups200ResponseBackupsInner.d.ts +0 -37
  114. package/dist/model/listBackups200ResponseBackupsInner.js +0 -88
  115. package/dist/model/listBackups422Response.d.ts +0 -25
  116. package/dist/model/listBackups422Response.js +0 -28
  117. package/dist/model/models.d.ts +0 -89
  118. package/dist/model/models.js +0 -387
  119. package/dist/model/scalingPolicy.d.ts +0 -35
  120. package/dist/model/scalingPolicy.js +0 -51
  121. package/dist/model/syncOperation.d.ts +0 -31
  122. package/dist/model/syncOperation.js +0 -58
  123. package/dist/model/syncToEnvironmentRequest.d.ts +0 -25
  124. package/dist/model/syncToEnvironmentRequest.js +0 -28
  125. package/dist/model/updateComposeRequest.d.ts +0 -26
  126. package/dist/model/updateComposeRequest.js +0 -28
  127. package/dist/model/updateCronJobRequest.d.ts +0 -29
  128. package/dist/model/updateCronJobRequest.js +0 -48
  129. package/dist/model/updateEnvironmentComposeRequest.d.ts +0 -26
  130. package/dist/model/updateEnvironmentComposeRequest.js +0 -28
  131. package/dist/model/updateEnvironmentRequest.d.ts +0 -34
  132. package/dist/model/updateEnvironmentRequest.js +0 -38
  133. package/dist/model/updateEnvironmentStateRequest.d.ts +0 -26
  134. package/dist/model/updateEnvironmentStateRequest.js +0 -33
  135. package/dist/model/updateEnvironmentVariableRequest.d.ts +0 -25
  136. package/dist/model/updateEnvironmentVariableRequest.js +0 -28
  137. package/dist/model/validateCompose200Response.d.ts +0 -33
  138. package/dist/model/validateCompose200Response.js +0 -38
  139. package/dist/model/validateCompose422Response.d.ts +0 -25
  140. package/dist/model/validateCompose422Response.js +0 -28
  141. package/dist/model/validateComposeRequest.d.ts +0 -36
  142. package/dist/model/validateComposeRequest.js +0 -38
  143. package/dist/model/variable.d.ts +0 -26
  144. package/dist/model/variable.js +0 -33
  145. package/dist/model/volume.d.ts +0 -32
  146. package/dist/model/volume.js +0 -63
@@ -1,431 +0,0 @@
1
- "use strict";
2
- /**
3
- * QuantCloud API
4
- * QuantCloud API
5
- *
6
- * The version of the OpenAPI document: 1.0.0
7
- *
8
- *
9
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
- * https://openapi-generator.tech
11
- * Do not edit the class manually.
12
- */
13
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
14
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
15
- return new (P || (P = Promise))(function (resolve, reject) {
16
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
17
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
18
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
19
- step((generator = generator.apply(thisArg, _arguments || [])).next());
20
- });
21
- };
22
- var __importDefault = (this && this.__importDefault) || function (mod) {
23
- return (mod && mod.__esModule) ? mod : { "default": mod };
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.ApplicationsApi = exports.ApplicationsApiApiKeys = void 0;
27
- const request_1 = __importDefault(require("request"));
28
- const models_1 = require("../model/models");
29
- const apis_1 = require("./apis");
30
- let defaultBasePath = 'http://localhost';
31
- // ===============================================
32
- // This file is autogenerated - Please do not edit
33
- // ===============================================
34
- var ApplicationsApiApiKeys;
35
- (function (ApplicationsApiApiKeys) {
36
- })(ApplicationsApiApiKeys = exports.ApplicationsApiApiKeys || (exports.ApplicationsApiApiKeys = {}));
37
- class ApplicationsApi {
38
- constructor(basePathOrUsername, password, basePath) {
39
- this._basePath = defaultBasePath;
40
- this._defaultHeaders = {};
41
- this._useQuerystring = false;
42
- this.authentications = {
43
- 'default': new models_1.VoidAuth(),
44
- };
45
- this.interceptors = [];
46
- if (password) {
47
- if (basePath) {
48
- this.basePath = basePath;
49
- }
50
- }
51
- else {
52
- if (basePathOrUsername) {
53
- this.basePath = basePathOrUsername;
54
- }
55
- }
56
- }
57
- set useQuerystring(value) {
58
- this._useQuerystring = value;
59
- }
60
- set basePath(basePath) {
61
- this._basePath = basePath;
62
- }
63
- set defaultHeaders(defaultHeaders) {
64
- this._defaultHeaders = defaultHeaders;
65
- }
66
- get defaultHeaders() {
67
- return this._defaultHeaders;
68
- }
69
- get basePath() {
70
- return this._basePath;
71
- }
72
- setDefaultAuthentication(auth) {
73
- this.authentications.default = auth;
74
- }
75
- setApiKey(key, value) {
76
- this.authentications[ApplicationsApiApiKeys[key]].apiKey = value;
77
- }
78
- addInterceptor(interceptor) {
79
- this.interceptors.push(interceptor);
80
- }
81
- /**
82
- *
83
- * @summary Create a new application
84
- * @param organisation The organisation ID
85
- * @param application
86
- */
87
- createApplication(organisation, application, options = { headers: {} }) {
88
- return __awaiter(this, void 0, void 0, function* () {
89
- const localVarPath = this.basePath + '/organisations/{organisation}/applications'
90
- .replace('{' + 'organisation' + '}', encodeURIComponent(String(organisation)));
91
- let localVarQueryParameters = {};
92
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
93
- const produces = ['application/json'];
94
- // give precedence to 'application/json'
95
- if (produces.indexOf('application/json') >= 0) {
96
- localVarHeaderParams.Accept = 'application/json';
97
- }
98
- else {
99
- localVarHeaderParams.Accept = produces.join(',');
100
- }
101
- let localVarFormParams = {};
102
- // verify required parameter 'organisation' is not null or undefined
103
- if (organisation === null || organisation === undefined) {
104
- throw new Error('Required parameter organisation was null or undefined when calling createApplication.');
105
- }
106
- // verify required parameter 'application' is not null or undefined
107
- if (application === null || application === undefined) {
108
- throw new Error('Required parameter application was null or undefined when calling createApplication.');
109
- }
110
- Object.assign(localVarHeaderParams, options.headers);
111
- let localVarUseFormData = false;
112
- let localVarRequestOptions = {
113
- method: 'POST',
114
- qs: localVarQueryParameters,
115
- headers: localVarHeaderParams,
116
- uri: localVarPath,
117
- useQuerystring: this._useQuerystring,
118
- json: true,
119
- body: models_1.ObjectSerializer.serialize(application, "Application")
120
- };
121
- let authenticationPromise = Promise.resolve();
122
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
123
- let interceptorPromise = authenticationPromise;
124
- for (const interceptor of this.interceptors) {
125
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
126
- }
127
- return interceptorPromise.then(() => {
128
- if (Object.keys(localVarFormParams).length) {
129
- if (localVarUseFormData) {
130
- localVarRequestOptions.formData = localVarFormParams;
131
- }
132
- else {
133
- localVarRequestOptions.form = localVarFormParams;
134
- }
135
- }
136
- return new Promise((resolve, reject) => {
137
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
138
- if (error) {
139
- reject(error);
140
- }
141
- else {
142
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
143
- body = models_1.ObjectSerializer.deserialize(body, "Application");
144
- resolve({ response: response, body: body });
145
- }
146
- else {
147
- reject(new apis_1.HttpError(response, body, response.statusCode));
148
- }
149
- }
150
- });
151
- });
152
- });
153
- });
154
- }
155
- /**
156
- *
157
- * @summary Delete an application
158
- * @param organisation The organisation ID
159
- * @param application The application ID
160
- */
161
- deleteApplication(organisation, application, options = { headers: {} }) {
162
- return __awaiter(this, void 0, void 0, function* () {
163
- const localVarPath = this.basePath + '/organisations/{organisation}/applications/{application}'
164
- .replace('{' + 'organisation' + '}', encodeURIComponent(String(organisation)))
165
- .replace('{' + 'application' + '}', encodeURIComponent(String(application)));
166
- let localVarQueryParameters = {};
167
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
168
- let localVarFormParams = {};
169
- // verify required parameter 'organisation' is not null or undefined
170
- if (organisation === null || organisation === undefined) {
171
- throw new Error('Required parameter organisation was null or undefined when calling deleteApplication.');
172
- }
173
- // verify required parameter 'application' is not null or undefined
174
- if (application === null || application === undefined) {
175
- throw new Error('Required parameter application was null or undefined when calling deleteApplication.');
176
- }
177
- Object.assign(localVarHeaderParams, options.headers);
178
- let localVarUseFormData = false;
179
- let localVarRequestOptions = {
180
- method: 'DELETE',
181
- qs: localVarQueryParameters,
182
- headers: localVarHeaderParams,
183
- uri: localVarPath,
184
- useQuerystring: this._useQuerystring,
185
- json: true,
186
- };
187
- let authenticationPromise = Promise.resolve();
188
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
189
- let interceptorPromise = authenticationPromise;
190
- for (const interceptor of this.interceptors) {
191
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
192
- }
193
- return interceptorPromise.then(() => {
194
- if (Object.keys(localVarFormParams).length) {
195
- if (localVarUseFormData) {
196
- localVarRequestOptions.formData = localVarFormParams;
197
- }
198
- else {
199
- localVarRequestOptions.form = localVarFormParams;
200
- }
201
- }
202
- return new Promise((resolve, reject) => {
203
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
204
- if (error) {
205
- reject(error);
206
- }
207
- else {
208
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
209
- resolve({ response: response, body: body });
210
- }
211
- else {
212
- reject(new apis_1.HttpError(response, body, response.statusCode));
213
- }
214
- }
215
- });
216
- });
217
- });
218
- });
219
- }
220
- /**
221
- *
222
- * @summary Get a single application
223
- * @param organisation The organisation ID
224
- * @param application The application ID
225
- */
226
- getApplication(organisation, application, options = { headers: {} }) {
227
- return __awaiter(this, void 0, void 0, function* () {
228
- const localVarPath = this.basePath + '/organisations/{organisation}/applications/{application}'
229
- .replace('{' + 'organisation' + '}', encodeURIComponent(String(organisation)))
230
- .replace('{' + 'application' + '}', encodeURIComponent(String(application)));
231
- let localVarQueryParameters = {};
232
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
233
- const produces = ['application/json'];
234
- // give precedence to 'application/json'
235
- if (produces.indexOf('application/json') >= 0) {
236
- localVarHeaderParams.Accept = 'application/json';
237
- }
238
- else {
239
- localVarHeaderParams.Accept = produces.join(',');
240
- }
241
- let localVarFormParams = {};
242
- // verify required parameter 'organisation' is not null or undefined
243
- if (organisation === null || organisation === undefined) {
244
- throw new Error('Required parameter organisation was null or undefined when calling getApplication.');
245
- }
246
- // verify required parameter 'application' is not null or undefined
247
- if (application === null || application === undefined) {
248
- throw new Error('Required parameter application was null or undefined when calling getApplication.');
249
- }
250
- Object.assign(localVarHeaderParams, options.headers);
251
- let localVarUseFormData = false;
252
- let localVarRequestOptions = {
253
- method: 'GET',
254
- qs: localVarQueryParameters,
255
- headers: localVarHeaderParams,
256
- uri: localVarPath,
257
- useQuerystring: this._useQuerystring,
258
- json: true,
259
- };
260
- let authenticationPromise = Promise.resolve();
261
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
262
- let interceptorPromise = authenticationPromise;
263
- for (const interceptor of this.interceptors) {
264
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
265
- }
266
- return interceptorPromise.then(() => {
267
- if (Object.keys(localVarFormParams).length) {
268
- if (localVarUseFormData) {
269
- localVarRequestOptions.formData = localVarFormParams;
270
- }
271
- else {
272
- localVarRequestOptions.form = localVarFormParams;
273
- }
274
- }
275
- return new Promise((resolve, reject) => {
276
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
277
- if (error) {
278
- reject(error);
279
- }
280
- else {
281
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
282
- body = models_1.ObjectSerializer.deserialize(body, "Application");
283
- resolve({ response: response, body: body });
284
- }
285
- else {
286
- reject(new apis_1.HttpError(response, body, response.statusCode));
287
- }
288
- }
289
- });
290
- });
291
- });
292
- });
293
- }
294
- /**
295
- *
296
- * @summary Get ECR login credentials
297
- * @param organisation The organisation ID
298
- */
299
- getEcrLoginCredentials(organisation, options = { headers: {} }) {
300
- return __awaiter(this, void 0, void 0, function* () {
301
- const localVarPath = this.basePath + '/organisations/{organisation}/applications/ecr-login'
302
- .replace('{' + 'organisation' + '}', encodeURIComponent(String(organisation)));
303
- let localVarQueryParameters = {};
304
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
305
- const produces = ['application/json'];
306
- // give precedence to 'application/json'
307
- if (produces.indexOf('application/json') >= 0) {
308
- localVarHeaderParams.Accept = 'application/json';
309
- }
310
- else {
311
- localVarHeaderParams.Accept = produces.join(',');
312
- }
313
- let localVarFormParams = {};
314
- // verify required parameter 'organisation' is not null or undefined
315
- if (organisation === null || organisation === undefined) {
316
- throw new Error('Required parameter organisation was null or undefined when calling getEcrLoginCredentials.');
317
- }
318
- Object.assign(localVarHeaderParams, options.headers);
319
- let localVarUseFormData = false;
320
- let localVarRequestOptions = {
321
- method: 'GET',
322
- qs: localVarQueryParameters,
323
- headers: localVarHeaderParams,
324
- uri: localVarPath,
325
- useQuerystring: this._useQuerystring,
326
- json: true,
327
- };
328
- let authenticationPromise = Promise.resolve();
329
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
330
- let interceptorPromise = authenticationPromise;
331
- for (const interceptor of this.interceptors) {
332
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
333
- }
334
- return interceptorPromise.then(() => {
335
- if (Object.keys(localVarFormParams).length) {
336
- if (localVarUseFormData) {
337
- localVarRequestOptions.formData = localVarFormParams;
338
- }
339
- else {
340
- localVarRequestOptions.form = localVarFormParams;
341
- }
342
- }
343
- return new Promise((resolve, reject) => {
344
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
345
- if (error) {
346
- reject(error);
347
- }
348
- else {
349
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
350
- body = models_1.ObjectSerializer.deserialize(body, "GetEcrLoginCredentials200Response");
351
- resolve({ response: response, body: body });
352
- }
353
- else {
354
- reject(new apis_1.HttpError(response, body, response.statusCode));
355
- }
356
- }
357
- });
358
- });
359
- });
360
- });
361
- }
362
- /**
363
- *
364
- * @summary Get all applications for an organisation
365
- * @param organisation The organisation ID
366
- */
367
- listApplications(organisation, options = { headers: {} }) {
368
- return __awaiter(this, void 0, void 0, function* () {
369
- const localVarPath = this.basePath + '/organisations/{organisation}/applications'
370
- .replace('{' + 'organisation' + '}', encodeURIComponent(String(organisation)));
371
- let localVarQueryParameters = {};
372
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
373
- const produces = ['application/json'];
374
- // give precedence to 'application/json'
375
- if (produces.indexOf('application/json') >= 0) {
376
- localVarHeaderParams.Accept = 'application/json';
377
- }
378
- else {
379
- localVarHeaderParams.Accept = produces.join(',');
380
- }
381
- let localVarFormParams = {};
382
- // verify required parameter 'organisation' is not null or undefined
383
- if (organisation === null || organisation === undefined) {
384
- throw new Error('Required parameter organisation was null or undefined when calling listApplications.');
385
- }
386
- Object.assign(localVarHeaderParams, options.headers);
387
- let localVarUseFormData = false;
388
- let localVarRequestOptions = {
389
- method: 'GET',
390
- qs: localVarQueryParameters,
391
- headers: localVarHeaderParams,
392
- uri: localVarPath,
393
- useQuerystring: this._useQuerystring,
394
- json: true,
395
- };
396
- let authenticationPromise = Promise.resolve();
397
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
398
- let interceptorPromise = authenticationPromise;
399
- for (const interceptor of this.interceptors) {
400
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
401
- }
402
- return interceptorPromise.then(() => {
403
- if (Object.keys(localVarFormParams).length) {
404
- if (localVarUseFormData) {
405
- localVarRequestOptions.formData = localVarFormParams;
406
- }
407
- else {
408
- localVarRequestOptions.form = localVarFormParams;
409
- }
410
- }
411
- return new Promise((resolve, reject) => {
412
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
413
- if (error) {
414
- reject(error);
415
- }
416
- else {
417
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
418
- body = models_1.ObjectSerializer.deserialize(body, "Array<Application>");
419
- resolve({ response: response, body: body });
420
- }
421
- else {
422
- reject(new apis_1.HttpError(response, body, response.statusCode));
423
- }
424
- }
425
- });
426
- });
427
- });
428
- });
429
- }
430
- }
431
- exports.ApplicationsApi = ApplicationsApi;
@@ -1,112 +0,0 @@
1
- /**
2
- * QuantCloud API
3
- * QuantCloud API
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /// <reference types="node" />
13
- import http from 'http';
14
- import { CreateBackup202Response } from '../model/createBackup202Response';
15
- import { CreateBackupRequest } from '../model/createBackupRequest';
16
- import { DeleteBackup200Response } from '../model/deleteBackup200Response';
17
- import { DownloadBackup200Response } from '../model/downloadBackup200Response';
18
- import { ListBackups200Response } from '../model/listBackups200Response';
19
- import { Authentication, Interceptor } from '../model/models';
20
- export declare enum BackupManagementApiApiKeys {
21
- }
22
- export declare class BackupManagementApi {
23
- protected _basePath: string;
24
- protected _defaultHeaders: any;
25
- protected _useQuerystring: boolean;
26
- protected authentications: {
27
- default: Authentication;
28
- };
29
- protected interceptors: Interceptor[];
30
- constructor(basePath?: string);
31
- set useQuerystring(value: boolean);
32
- set basePath(basePath: string);
33
- set defaultHeaders(defaultHeaders: any);
34
- get defaultHeaders(): any;
35
- get basePath(): string;
36
- setDefaultAuthentication(auth: Authentication): void;
37
- setApiKey(key: BackupManagementApiApiKeys, value: string): void;
38
- addInterceptor(interceptor: Interceptor): void;
39
- /**
40
- *
41
- * @summary Create a backup for an environment
42
- * @param organisation The organisation ID
43
- * @param application The application ID
44
- * @param environment The environment ID
45
- * @param type The backup type
46
- * @param createBackupRequest
47
- */
48
- createBackup(organisation: string, application: string, environment: string, type: 'database' | 'filesystem', createBackupRequest?: CreateBackupRequest, options?: {
49
- headers: {
50
- [name: string]: string;
51
- };
52
- }): Promise<{
53
- response: http.IncomingMessage;
54
- body: CreateBackup202Response;
55
- }>;
56
- /**
57
- *
58
- * @summary Delete a backup
59
- * @param organisation The organisation ID
60
- * @param application The application ID
61
- * @param environment The environment ID
62
- * @param type The backup type
63
- * @param backupId The backup ID
64
- */
65
- deleteBackup(organisation: string, application: string, environment: string, type: 'database' | 'filesystem', backupId: string, options?: {
66
- headers: {
67
- [name: string]: string;
68
- };
69
- }): Promise<{
70
- response: http.IncomingMessage;
71
- body: DeleteBackup200Response;
72
- }>;
73
- /**
74
- *
75
- * @summary Generate a download URL for a backup
76
- * @param organisation The organisation ID
77
- * @param application The application ID
78
- * @param environment The environment ID
79
- * @param type The backup type
80
- * @param backupId The backup ID
81
- */
82
- downloadBackup(organisation: string, application: string, environment: string, type: 'database' | 'filesystem', backupId: string, options?: {
83
- headers: {
84
- [name: string]: string;
85
- };
86
- }): Promise<{
87
- response: http.IncomingMessage;
88
- body: DownloadBackup200Response;
89
- }>;
90
- /**
91
- * Retrieves a list of backups (database or filesystem) for the environment with status, size, and metadata. Supports filtering and ordering via query parameters.
92
- * @summary List backups for an environment
93
- * @param organisation The organisation ID
94
- * @param application The application ID
95
- * @param environment The environment ID
96
- * @param type The backup type
97
- * @param order Sort order for backups by creation date (asc &#x3D; oldest first, desc &#x3D; newest first)
98
- * @param limit Maximum number of backups to return (max 100)
99
- * @param createdBefore Only return backups created before this ISO 8601 timestamp (e.g., 2025-01-01T00:00:00Z)
100
- * @param createdAfter Only return backups created after this ISO 8601 timestamp (e.g., 2024-12-01T00:00:00Z)
101
- * @param status Filter backups by status
102
- * @param nextToken Token for retrieving the next page of results
103
- */
104
- listBackups(organisation: string, application: string, environment: string, type: 'database' | 'filesystem', order?: 'asc' | 'desc', limit?: number, createdBefore?: Date, createdAfter?: Date, status?: 'completed' | 'failed' | 'running', nextToken?: string, options?: {
105
- headers: {
106
- [name: string]: string;
107
- };
108
- }): Promise<{
109
- response: http.IncomingMessage;
110
- body: ListBackups200Response;
111
- }>;
112
- }