qovery-ws-typescript-axios 0.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.
- package/.github/workflows/npm-published.yaml +34 -0
- package/.github/workflows/tagging.yaml +43 -0
- package/.openapi-generator/FILES +12 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +45 -0
- package/api.ts +1251 -0
- package/base.ts +71 -0
- package/common.ts +138 -0
- package/configuration.ts +101 -0
- package/dist/api.d.ts +906 -0
- package/dist/api.js +761 -0
- package/dist/base.d.ts +55 -0
- package/dist/base.js +61 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +152 -0
- package/dist/configuration.d.ts +83 -0
- package/dist/configuration.js +42 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +27 -0
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/package.json +27 -0
- package/tsconfig.json +17 -0
package/api.ts
ADDED
|
@@ -0,0 +1,1251 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* websocket-gateway
|
|
5
|
+
* Describe the weboscket endpoints
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
* Contact: erebe@erebe.eu
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { Configuration } from './configuration';
|
|
17
|
+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApplicationStatusDto
|
|
28
|
+
*/
|
|
29
|
+
export interface ApplicationStatusDto {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<CertificateStatusDto>}
|
|
33
|
+
* @memberof ApplicationStatusDto
|
|
34
|
+
*/
|
|
35
|
+
'certificates': Array<CertificateStatusDto>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApplicationStatusDto
|
|
40
|
+
*/
|
|
41
|
+
'id': string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Array<PodStatusDto>}
|
|
45
|
+
* @memberof ApplicationStatusDto
|
|
46
|
+
*/
|
|
47
|
+
'pods': Array<PodStatusDto>;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {ServiceStateDto}
|
|
51
|
+
* @memberof ApplicationStatusDto
|
|
52
|
+
*/
|
|
53
|
+
'state': ServiceStateDto;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @export
|
|
58
|
+
* @interface CertificateStatusDto
|
|
59
|
+
*/
|
|
60
|
+
export interface CertificateStatusDto {
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {Array<string>}
|
|
64
|
+
* @memberof CertificateStatusDto
|
|
65
|
+
*/
|
|
66
|
+
'dns_names': Array<string>;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {number}
|
|
70
|
+
* @memberof CertificateStatusDto
|
|
71
|
+
*/
|
|
72
|
+
'failed_issuance_attempt_count': number;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {number}
|
|
76
|
+
* @memberof CertificateStatusDto
|
|
77
|
+
*/
|
|
78
|
+
'last_failure_issuance_time'?: number | null;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {number}
|
|
82
|
+
* @memberof CertificateStatusDto
|
|
83
|
+
*/
|
|
84
|
+
'not_after'?: number | null;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {number}
|
|
88
|
+
* @memberof CertificateStatusDto
|
|
89
|
+
*/
|
|
90
|
+
'not_before'?: number | null;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {number}
|
|
94
|
+
* @memberof CertificateStatusDto
|
|
95
|
+
*/
|
|
96
|
+
'renewal_time'?: number | null;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {ServiceStateDto}
|
|
100
|
+
* @memberof CertificateStatusDto
|
|
101
|
+
*/
|
|
102
|
+
'state': ServiceStateDto;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {string}
|
|
106
|
+
* @memberof CertificateStatusDto
|
|
107
|
+
*/
|
|
108
|
+
'state_message'?: string | null;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @export
|
|
113
|
+
* @interface ContainerStateDto
|
|
114
|
+
*/
|
|
115
|
+
export interface ContainerStateDto {
|
|
116
|
+
/**
|
|
117
|
+
*
|
|
118
|
+
* @type {number}
|
|
119
|
+
* @memberof ContainerStateDto
|
|
120
|
+
*/
|
|
121
|
+
'started_at'?: number | null;
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
* @type {ServiceStateDto}
|
|
125
|
+
* @memberof ContainerStateDto
|
|
126
|
+
*/
|
|
127
|
+
'state': ServiceStateDto;
|
|
128
|
+
/**
|
|
129
|
+
*
|
|
130
|
+
* @type {string}
|
|
131
|
+
* @memberof ContainerStateDto
|
|
132
|
+
*/
|
|
133
|
+
'state_message'?: string | null;
|
|
134
|
+
/**
|
|
135
|
+
*
|
|
136
|
+
* @type {string}
|
|
137
|
+
* @memberof ContainerStateDto
|
|
138
|
+
*/
|
|
139
|
+
'state_reason'?: string | null;
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* @export
|
|
144
|
+
* @interface ContainerStateTerminatedDto
|
|
145
|
+
*/
|
|
146
|
+
export interface ContainerStateTerminatedDto {
|
|
147
|
+
/**
|
|
148
|
+
*
|
|
149
|
+
* @type {number}
|
|
150
|
+
* @memberof ContainerStateTerminatedDto
|
|
151
|
+
*/
|
|
152
|
+
'exit_code': number;
|
|
153
|
+
/**
|
|
154
|
+
*
|
|
155
|
+
* @type {string}
|
|
156
|
+
* @memberof ContainerStateTerminatedDto
|
|
157
|
+
*/
|
|
158
|
+
'exit_code_message': string;
|
|
159
|
+
/**
|
|
160
|
+
*
|
|
161
|
+
* @type {number}
|
|
162
|
+
* @memberof ContainerStateTerminatedDto
|
|
163
|
+
*/
|
|
164
|
+
'finished_at'?: number | null;
|
|
165
|
+
/**
|
|
166
|
+
*
|
|
167
|
+
* @type {string}
|
|
168
|
+
* @memberof ContainerStateTerminatedDto
|
|
169
|
+
*/
|
|
170
|
+
'message': string;
|
|
171
|
+
/**
|
|
172
|
+
*
|
|
173
|
+
* @type {string}
|
|
174
|
+
* @memberof ContainerStateTerminatedDto
|
|
175
|
+
*/
|
|
176
|
+
'reason': string;
|
|
177
|
+
/**
|
|
178
|
+
*
|
|
179
|
+
* @type {number}
|
|
180
|
+
* @memberof ContainerStateTerminatedDto
|
|
181
|
+
*/
|
|
182
|
+
'signal': number;
|
|
183
|
+
/**
|
|
184
|
+
*
|
|
185
|
+
* @type {number}
|
|
186
|
+
* @memberof ContainerStateTerminatedDto
|
|
187
|
+
*/
|
|
188
|
+
'started_at'?: number | null;
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
*
|
|
192
|
+
* @export
|
|
193
|
+
* @interface ContainerStatusDto
|
|
194
|
+
*/
|
|
195
|
+
export interface ContainerStatusDto {
|
|
196
|
+
/**
|
|
197
|
+
*
|
|
198
|
+
* @type {ContainerStateDto}
|
|
199
|
+
* @memberof ContainerStatusDto
|
|
200
|
+
*/
|
|
201
|
+
'current_state'?: ContainerStateDto | null;
|
|
202
|
+
/**
|
|
203
|
+
*
|
|
204
|
+
* @type {string}
|
|
205
|
+
* @memberof ContainerStatusDto
|
|
206
|
+
*/
|
|
207
|
+
'image': string;
|
|
208
|
+
/**
|
|
209
|
+
*
|
|
210
|
+
* @type {ContainerStateTerminatedDto}
|
|
211
|
+
* @memberof ContainerStatusDto
|
|
212
|
+
*/
|
|
213
|
+
'last_terminated_state'?: ContainerStateTerminatedDto | null;
|
|
214
|
+
/**
|
|
215
|
+
*
|
|
216
|
+
* @type {string}
|
|
217
|
+
* @memberof ContainerStatusDto
|
|
218
|
+
*/
|
|
219
|
+
'name': string;
|
|
220
|
+
/**
|
|
221
|
+
*
|
|
222
|
+
* @type {number}
|
|
223
|
+
* @memberof ContainerStatusDto
|
|
224
|
+
*/
|
|
225
|
+
'restart_count': number;
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
*
|
|
229
|
+
* @export
|
|
230
|
+
* @interface DatabaseStatusDto
|
|
231
|
+
*/
|
|
232
|
+
export interface DatabaseStatusDto {
|
|
233
|
+
/**
|
|
234
|
+
*
|
|
235
|
+
* @type {string}
|
|
236
|
+
* @memberof DatabaseStatusDto
|
|
237
|
+
*/
|
|
238
|
+
'id': string;
|
|
239
|
+
/**
|
|
240
|
+
*
|
|
241
|
+
* @type {Array<PodStatusDto>}
|
|
242
|
+
* @memberof DatabaseStatusDto
|
|
243
|
+
*/
|
|
244
|
+
'pods': Array<PodStatusDto>;
|
|
245
|
+
/**
|
|
246
|
+
*
|
|
247
|
+
* @type {ServiceStateDto}
|
|
248
|
+
* @memberof DatabaseStatusDto
|
|
249
|
+
*/
|
|
250
|
+
'state': ServiceStateDto;
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
*
|
|
254
|
+
* @export
|
|
255
|
+
* @interface EnvironmentStatusDto
|
|
256
|
+
*/
|
|
257
|
+
export interface EnvironmentStatusDto {
|
|
258
|
+
/**
|
|
259
|
+
*
|
|
260
|
+
* @type {Array<ApplicationStatusDto>}
|
|
261
|
+
* @memberof EnvironmentStatusDto
|
|
262
|
+
*/
|
|
263
|
+
'applications': Array<ApplicationStatusDto>;
|
|
264
|
+
/**
|
|
265
|
+
*
|
|
266
|
+
* @type {Array<ApplicationStatusDto>}
|
|
267
|
+
* @memberof EnvironmentStatusDto
|
|
268
|
+
*/
|
|
269
|
+
'containers': Array<ApplicationStatusDto>;
|
|
270
|
+
/**
|
|
271
|
+
*
|
|
272
|
+
* @type {Array<DatabaseStatusDto>}
|
|
273
|
+
* @memberof EnvironmentStatusDto
|
|
274
|
+
*/
|
|
275
|
+
'databases': Array<DatabaseStatusDto>;
|
|
276
|
+
/**
|
|
277
|
+
*
|
|
278
|
+
* @type {string}
|
|
279
|
+
* @memberof EnvironmentStatusDto
|
|
280
|
+
*/
|
|
281
|
+
'id': string;
|
|
282
|
+
/**
|
|
283
|
+
*
|
|
284
|
+
* @type {Array<ApplicationStatusDto>}
|
|
285
|
+
* @memberof EnvironmentStatusDto
|
|
286
|
+
*/
|
|
287
|
+
'jobs': Array<ApplicationStatusDto>;
|
|
288
|
+
/**
|
|
289
|
+
*
|
|
290
|
+
* @type {string}
|
|
291
|
+
* @memberof EnvironmentStatusDto
|
|
292
|
+
*/
|
|
293
|
+
'project_id': string;
|
|
294
|
+
/**
|
|
295
|
+
*
|
|
296
|
+
* @type {ServiceStateDto}
|
|
297
|
+
* @memberof EnvironmentStatusDto
|
|
298
|
+
*/
|
|
299
|
+
'state': ServiceStateDto;
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
*
|
|
303
|
+
* @export
|
|
304
|
+
* @interface MetricDto
|
|
305
|
+
*/
|
|
306
|
+
export interface MetricDto {
|
|
307
|
+
/**
|
|
308
|
+
*
|
|
309
|
+
* @type {number}
|
|
310
|
+
* @memberof MetricDto
|
|
311
|
+
*/
|
|
312
|
+
'current': number;
|
|
313
|
+
/**
|
|
314
|
+
*
|
|
315
|
+
* @type {number}
|
|
316
|
+
* @memberof MetricDto
|
|
317
|
+
*/
|
|
318
|
+
'current_percent': number;
|
|
319
|
+
/**
|
|
320
|
+
*
|
|
321
|
+
* @type {number}
|
|
322
|
+
* @memberof MetricDto
|
|
323
|
+
*/
|
|
324
|
+
'limit': number;
|
|
325
|
+
/**
|
|
326
|
+
*
|
|
327
|
+
* @type {string}
|
|
328
|
+
* @memberof MetricDto
|
|
329
|
+
*/
|
|
330
|
+
'name'?: string | null;
|
|
331
|
+
/**
|
|
332
|
+
*
|
|
333
|
+
* @type {ResourceStatusDto}
|
|
334
|
+
* @memberof MetricDto
|
|
335
|
+
*/
|
|
336
|
+
'status': ResourceStatusDto;
|
|
337
|
+
/**
|
|
338
|
+
*
|
|
339
|
+
* @type {UnitDto}
|
|
340
|
+
* @memberof MetricDto
|
|
341
|
+
*/
|
|
342
|
+
'unit': UnitDto;
|
|
343
|
+
}
|
|
344
|
+
/**
|
|
345
|
+
*
|
|
346
|
+
* @export
|
|
347
|
+
* @interface PodStatusDto
|
|
348
|
+
*/
|
|
349
|
+
export interface PodStatusDto {
|
|
350
|
+
/**
|
|
351
|
+
*
|
|
352
|
+
* @type {Array<ContainerStatusDto>}
|
|
353
|
+
* @memberof PodStatusDto
|
|
354
|
+
*/
|
|
355
|
+
'containers': Array<ContainerStatusDto>;
|
|
356
|
+
/**
|
|
357
|
+
*
|
|
358
|
+
* @type {string}
|
|
359
|
+
* @memberof PodStatusDto
|
|
360
|
+
*/
|
|
361
|
+
'name': string;
|
|
362
|
+
/**
|
|
363
|
+
*
|
|
364
|
+
* @type {number}
|
|
365
|
+
* @memberof PodStatusDto
|
|
366
|
+
*/
|
|
367
|
+
'restart_count': number;
|
|
368
|
+
/**
|
|
369
|
+
*
|
|
370
|
+
* @type {string}
|
|
371
|
+
* @memberof PodStatusDto
|
|
372
|
+
*/
|
|
373
|
+
'service_version': string;
|
|
374
|
+
/**
|
|
375
|
+
*
|
|
376
|
+
* @type {number}
|
|
377
|
+
* @memberof PodStatusDto
|
|
378
|
+
*/
|
|
379
|
+
'started_at'?: number | null;
|
|
380
|
+
/**
|
|
381
|
+
*
|
|
382
|
+
* @type {ServiceStateDto}
|
|
383
|
+
* @memberof PodStatusDto
|
|
384
|
+
*/
|
|
385
|
+
'state': ServiceStateDto;
|
|
386
|
+
/**
|
|
387
|
+
*
|
|
388
|
+
* @type {string}
|
|
389
|
+
* @memberof PodStatusDto
|
|
390
|
+
*/
|
|
391
|
+
'state_message': string;
|
|
392
|
+
/**
|
|
393
|
+
*
|
|
394
|
+
* @type {string}
|
|
395
|
+
* @memberof PodStatusDto
|
|
396
|
+
*/
|
|
397
|
+
'state_reason': string;
|
|
398
|
+
}
|
|
399
|
+
/**
|
|
400
|
+
*
|
|
401
|
+
* @export
|
|
402
|
+
* @enum {string}
|
|
403
|
+
*/
|
|
404
|
+
|
|
405
|
+
export enum ResourceStatusDto {
|
|
406
|
+
OK = 'OK',
|
|
407
|
+
WARNING = 'WARNING',
|
|
408
|
+
ALERT = 'ALERT'
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
*
|
|
413
|
+
* @export
|
|
414
|
+
* @interface ServiceInfraLogResponseDto
|
|
415
|
+
*/
|
|
416
|
+
export interface ServiceInfraLogResponseDto {
|
|
417
|
+
/**
|
|
418
|
+
*
|
|
419
|
+
* @type {number}
|
|
420
|
+
* @memberof ServiceInfraLogResponseDto
|
|
421
|
+
*/
|
|
422
|
+
'created_at'?: number | null;
|
|
423
|
+
/**
|
|
424
|
+
*
|
|
425
|
+
* @type {string}
|
|
426
|
+
* @memberof ServiceInfraLogResponseDto
|
|
427
|
+
*/
|
|
428
|
+
'message': string;
|
|
429
|
+
}
|
|
430
|
+
/**
|
|
431
|
+
*
|
|
432
|
+
* @export
|
|
433
|
+
* @interface ServiceLogResponseDto
|
|
434
|
+
*/
|
|
435
|
+
export interface ServiceLogResponseDto {
|
|
436
|
+
/**
|
|
437
|
+
*
|
|
438
|
+
* @type {number}
|
|
439
|
+
* @memberof ServiceLogResponseDto
|
|
440
|
+
*/
|
|
441
|
+
'created_at'?: number | null;
|
|
442
|
+
/**
|
|
443
|
+
*
|
|
444
|
+
* @type {string}
|
|
445
|
+
* @memberof ServiceLogResponseDto
|
|
446
|
+
*/
|
|
447
|
+
'message': string;
|
|
448
|
+
/**
|
|
449
|
+
*
|
|
450
|
+
* @type {string}
|
|
451
|
+
* @memberof ServiceLogResponseDto
|
|
452
|
+
*/
|
|
453
|
+
'pod_name': string;
|
|
454
|
+
/**
|
|
455
|
+
*
|
|
456
|
+
* @type {string}
|
|
457
|
+
* @memberof ServiceLogResponseDto
|
|
458
|
+
*/
|
|
459
|
+
'version': string;
|
|
460
|
+
}
|
|
461
|
+
/**
|
|
462
|
+
*
|
|
463
|
+
* @export
|
|
464
|
+
* @interface ServiceMetricsDto
|
|
465
|
+
*/
|
|
466
|
+
export interface ServiceMetricsDto {
|
|
467
|
+
/**
|
|
468
|
+
*
|
|
469
|
+
* @type {MetricDto}
|
|
470
|
+
* @memberof ServiceMetricsDto
|
|
471
|
+
*/
|
|
472
|
+
'cpu': MetricDto;
|
|
473
|
+
/**
|
|
474
|
+
*
|
|
475
|
+
* @type {MetricDto}
|
|
476
|
+
* @memberof ServiceMetricsDto
|
|
477
|
+
*/
|
|
478
|
+
'memory': MetricDto;
|
|
479
|
+
/**
|
|
480
|
+
*
|
|
481
|
+
* @type {string}
|
|
482
|
+
* @memberof ServiceMetricsDto
|
|
483
|
+
*/
|
|
484
|
+
'pod_name': string;
|
|
485
|
+
/**
|
|
486
|
+
*
|
|
487
|
+
* @type {Array<MetricDto>}
|
|
488
|
+
* @memberof ServiceMetricsDto
|
|
489
|
+
*/
|
|
490
|
+
'storages': Array<MetricDto>;
|
|
491
|
+
}
|
|
492
|
+
/**
|
|
493
|
+
*
|
|
494
|
+
* @export
|
|
495
|
+
* @enum {string}
|
|
496
|
+
*/
|
|
497
|
+
|
|
498
|
+
export enum ServiceStateDto {
|
|
499
|
+
STARTING = 'STARTING',
|
|
500
|
+
RUNNING = 'RUNNING',
|
|
501
|
+
ERROR = 'ERROR',
|
|
502
|
+
STOPPING = 'STOPPING',
|
|
503
|
+
STOPPED = 'STOPPED',
|
|
504
|
+
COMPLETED = 'COMPLETED',
|
|
505
|
+
WARNING = 'WARNING',
|
|
506
|
+
UNKNOWN = 'UNKNOWN'
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
*
|
|
511
|
+
* @export
|
|
512
|
+
* @interface ServiceStatusDto
|
|
513
|
+
*/
|
|
514
|
+
export interface ServiceStatusDto {
|
|
515
|
+
/**
|
|
516
|
+
*
|
|
517
|
+
* @type {Array<EnvironmentStatusDto>}
|
|
518
|
+
* @memberof ServiceStatusDto
|
|
519
|
+
*/
|
|
520
|
+
'environments': Array<EnvironmentStatusDto>;
|
|
521
|
+
}
|
|
522
|
+
/**
|
|
523
|
+
*
|
|
524
|
+
* @export
|
|
525
|
+
* @enum {string}
|
|
526
|
+
*/
|
|
527
|
+
|
|
528
|
+
export enum ServiceType {
|
|
529
|
+
APPLICATION = 'APPLICATION',
|
|
530
|
+
CONTAINER = 'CONTAINER',
|
|
531
|
+
DATABASE = 'DATABASE',
|
|
532
|
+
JOB = 'JOB'
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
/**
|
|
536
|
+
*
|
|
537
|
+
* @export
|
|
538
|
+
* @enum {string}
|
|
539
|
+
*/
|
|
540
|
+
|
|
541
|
+
export enum UnitDto {
|
|
542
|
+
M_CPU = 'mCPU',
|
|
543
|
+
MI_B = 'MiB'
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* DeploymentApi - axios parameter creator
|
|
549
|
+
* @export
|
|
550
|
+
*/
|
|
551
|
+
export const DeploymentApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
552
|
+
return {
|
|
553
|
+
/**
|
|
554
|
+
*
|
|
555
|
+
* @param {string} organization
|
|
556
|
+
* @param {string} cluster
|
|
557
|
+
* @param {string} project
|
|
558
|
+
* @param {string} environment
|
|
559
|
+
* @param {string} version
|
|
560
|
+
* @param {*} [options] Override http request option.
|
|
561
|
+
* @throws {RequiredError}
|
|
562
|
+
*/
|
|
563
|
+
handleDeploymentLogsRequest: async (organization: string, cluster: string, project: string, environment: string, version: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
564
|
+
// verify required parameter 'organization' is not null or undefined
|
|
565
|
+
assertParamExists('handleDeploymentLogsRequest', 'organization', organization)
|
|
566
|
+
// verify required parameter 'cluster' is not null or undefined
|
|
567
|
+
assertParamExists('handleDeploymentLogsRequest', 'cluster', cluster)
|
|
568
|
+
// verify required parameter 'project' is not null or undefined
|
|
569
|
+
assertParamExists('handleDeploymentLogsRequest', 'project', project)
|
|
570
|
+
// verify required parameter 'environment' is not null or undefined
|
|
571
|
+
assertParamExists('handleDeploymentLogsRequest', 'environment', environment)
|
|
572
|
+
// verify required parameter 'version' is not null or undefined
|
|
573
|
+
assertParamExists('handleDeploymentLogsRequest', 'version', version)
|
|
574
|
+
const localVarPath = `/deployment/logs`
|
|
575
|
+
.replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
|
|
576
|
+
.replace(`{${"cluster"}}`, encodeURIComponent(String(cluster)))
|
|
577
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)))
|
|
578
|
+
.replace(`{${"environment"}}`, encodeURIComponent(String(environment)))
|
|
579
|
+
.replace(`{${"version"}}`, encodeURIComponent(String(version)));
|
|
580
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
581
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
582
|
+
let baseOptions;
|
|
583
|
+
if (configuration) {
|
|
584
|
+
baseOptions = configuration.baseOptions;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
588
|
+
const localVarHeaderParameter = {} as any;
|
|
589
|
+
const localVarQueryParameter = {} as any;
|
|
590
|
+
|
|
591
|
+
|
|
592
|
+
|
|
593
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
594
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
595
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
596
|
+
|
|
597
|
+
return {
|
|
598
|
+
url: toPathString(localVarUrlObj),
|
|
599
|
+
options: localVarRequestOptions,
|
|
600
|
+
};
|
|
601
|
+
},
|
|
602
|
+
/**
|
|
603
|
+
*
|
|
604
|
+
* @param {string} organization
|
|
605
|
+
* @param {string} cluster
|
|
606
|
+
* @param {string} project
|
|
607
|
+
* @param {string} environment
|
|
608
|
+
* @param {string} version
|
|
609
|
+
* @param {*} [options] Override http request option.
|
|
610
|
+
* @throws {RequiredError}
|
|
611
|
+
*/
|
|
612
|
+
handleDeploymentStatusRequest: async (organization: string, cluster: string, project: string, environment: string, version: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
613
|
+
// verify required parameter 'organization' is not null or undefined
|
|
614
|
+
assertParamExists('handleDeploymentStatusRequest', 'organization', organization)
|
|
615
|
+
// verify required parameter 'cluster' is not null or undefined
|
|
616
|
+
assertParamExists('handleDeploymentStatusRequest', 'cluster', cluster)
|
|
617
|
+
// verify required parameter 'project' is not null or undefined
|
|
618
|
+
assertParamExists('handleDeploymentStatusRequest', 'project', project)
|
|
619
|
+
// verify required parameter 'environment' is not null or undefined
|
|
620
|
+
assertParamExists('handleDeploymentStatusRequest', 'environment', environment)
|
|
621
|
+
// verify required parameter 'version' is not null or undefined
|
|
622
|
+
assertParamExists('handleDeploymentStatusRequest', 'version', version)
|
|
623
|
+
const localVarPath = `/deployment/status`
|
|
624
|
+
.replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
|
|
625
|
+
.replace(`{${"cluster"}}`, encodeURIComponent(String(cluster)))
|
|
626
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)))
|
|
627
|
+
.replace(`{${"environment"}}`, encodeURIComponent(String(environment)))
|
|
628
|
+
.replace(`{${"version"}}`, encodeURIComponent(String(version)));
|
|
629
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
630
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
631
|
+
let baseOptions;
|
|
632
|
+
if (configuration) {
|
|
633
|
+
baseOptions = configuration.baseOptions;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
637
|
+
const localVarHeaderParameter = {} as any;
|
|
638
|
+
const localVarQueryParameter = {} as any;
|
|
639
|
+
|
|
640
|
+
|
|
641
|
+
|
|
642
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
643
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
644
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
645
|
+
|
|
646
|
+
return {
|
|
647
|
+
url: toPathString(localVarUrlObj),
|
|
648
|
+
options: localVarRequestOptions,
|
|
649
|
+
};
|
|
650
|
+
},
|
|
651
|
+
}
|
|
652
|
+
};
|
|
653
|
+
|
|
654
|
+
/**
|
|
655
|
+
* DeploymentApi - functional programming interface
|
|
656
|
+
* @export
|
|
657
|
+
*/
|
|
658
|
+
export const DeploymentApiFp = function(configuration?: Configuration) {
|
|
659
|
+
const localVarAxiosParamCreator = DeploymentApiAxiosParamCreator(configuration)
|
|
660
|
+
return {
|
|
661
|
+
/**
|
|
662
|
+
*
|
|
663
|
+
* @param {string} organization
|
|
664
|
+
* @param {string} cluster
|
|
665
|
+
* @param {string} project
|
|
666
|
+
* @param {string} environment
|
|
667
|
+
* @param {string} version
|
|
668
|
+
* @param {*} [options] Override http request option.
|
|
669
|
+
* @throws {RequiredError}
|
|
670
|
+
*/
|
|
671
|
+
async handleDeploymentLogsRequest(organization: string, cluster: string, project: string, environment: string, version: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
672
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.handleDeploymentLogsRequest(organization, cluster, project, environment, version, options);
|
|
673
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
674
|
+
},
|
|
675
|
+
/**
|
|
676
|
+
*
|
|
677
|
+
* @param {string} organization
|
|
678
|
+
* @param {string} cluster
|
|
679
|
+
* @param {string} project
|
|
680
|
+
* @param {string} environment
|
|
681
|
+
* @param {string} version
|
|
682
|
+
* @param {*} [options] Override http request option.
|
|
683
|
+
* @throws {RequiredError}
|
|
684
|
+
*/
|
|
685
|
+
async handleDeploymentStatusRequest(organization: string, cluster: string, project: string, environment: string, version: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
686
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.handleDeploymentStatusRequest(organization, cluster, project, environment, version, options);
|
|
687
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
688
|
+
},
|
|
689
|
+
}
|
|
690
|
+
};
|
|
691
|
+
|
|
692
|
+
/**
|
|
693
|
+
* DeploymentApi - factory interface
|
|
694
|
+
* @export
|
|
695
|
+
*/
|
|
696
|
+
export const DeploymentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
697
|
+
const localVarFp = DeploymentApiFp(configuration)
|
|
698
|
+
return {
|
|
699
|
+
/**
|
|
700
|
+
*
|
|
701
|
+
* @param {string} organization
|
|
702
|
+
* @param {string} cluster
|
|
703
|
+
* @param {string} project
|
|
704
|
+
* @param {string} environment
|
|
705
|
+
* @param {string} version
|
|
706
|
+
* @param {*} [options] Override http request option.
|
|
707
|
+
* @throws {RequiredError}
|
|
708
|
+
*/
|
|
709
|
+
handleDeploymentLogsRequest(organization: string, cluster: string, project: string, environment: string, version: string, options?: any): AxiosPromise<string> {
|
|
710
|
+
return localVarFp.handleDeploymentLogsRequest(organization, cluster, project, environment, version, options).then((request) => request(axios, basePath));
|
|
711
|
+
},
|
|
712
|
+
/**
|
|
713
|
+
*
|
|
714
|
+
* @param {string} organization
|
|
715
|
+
* @param {string} cluster
|
|
716
|
+
* @param {string} project
|
|
717
|
+
* @param {string} environment
|
|
718
|
+
* @param {string} version
|
|
719
|
+
* @param {*} [options] Override http request option.
|
|
720
|
+
* @throws {RequiredError}
|
|
721
|
+
*/
|
|
722
|
+
handleDeploymentStatusRequest(organization: string, cluster: string, project: string, environment: string, version: string, options?: any): AxiosPromise<string> {
|
|
723
|
+
return localVarFp.handleDeploymentStatusRequest(organization, cluster, project, environment, version, options).then((request) => request(axios, basePath));
|
|
724
|
+
},
|
|
725
|
+
};
|
|
726
|
+
};
|
|
727
|
+
|
|
728
|
+
/**
|
|
729
|
+
* DeploymentApi - object-oriented interface
|
|
730
|
+
* @export
|
|
731
|
+
* @class DeploymentApi
|
|
732
|
+
* @extends {BaseAPI}
|
|
733
|
+
*/
|
|
734
|
+
export class DeploymentApi extends BaseAPI {
|
|
735
|
+
/**
|
|
736
|
+
*
|
|
737
|
+
* @param {string} organization
|
|
738
|
+
* @param {string} cluster
|
|
739
|
+
* @param {string} project
|
|
740
|
+
* @param {string} environment
|
|
741
|
+
* @param {string} version
|
|
742
|
+
* @param {*} [options] Override http request option.
|
|
743
|
+
* @throws {RequiredError}
|
|
744
|
+
* @memberof DeploymentApi
|
|
745
|
+
*/
|
|
746
|
+
public handleDeploymentLogsRequest(organization: string, cluster: string, project: string, environment: string, version: string, options?: AxiosRequestConfig) {
|
|
747
|
+
return DeploymentApiFp(this.configuration).handleDeploymentLogsRequest(organization, cluster, project, environment, version, options).then((request) => request(this.axios, this.basePath));
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
/**
|
|
751
|
+
*
|
|
752
|
+
* @param {string} organization
|
|
753
|
+
* @param {string} cluster
|
|
754
|
+
* @param {string} project
|
|
755
|
+
* @param {string} environment
|
|
756
|
+
* @param {string} version
|
|
757
|
+
* @param {*} [options] Override http request option.
|
|
758
|
+
* @throws {RequiredError}
|
|
759
|
+
* @memberof DeploymentApi
|
|
760
|
+
*/
|
|
761
|
+
public handleDeploymentStatusRequest(organization: string, cluster: string, project: string, environment: string, version: string, options?: AxiosRequestConfig) {
|
|
762
|
+
return DeploymentApiFp(this.configuration).handleDeploymentStatusRequest(organization, cluster, project, environment, version, options).then((request) => request(this.axios, this.basePath));
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
|
|
767
|
+
/**
|
|
768
|
+
* LogsApi - axios parameter creator
|
|
769
|
+
* @export
|
|
770
|
+
*/
|
|
771
|
+
export const LogsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
772
|
+
return {
|
|
773
|
+
/**
|
|
774
|
+
*
|
|
775
|
+
* @param {string} organization
|
|
776
|
+
* @param {string} cluster
|
|
777
|
+
* @param {string} project
|
|
778
|
+
* @param {string} environment
|
|
779
|
+
* @param {string} service
|
|
780
|
+
* @param {string} infraComponentType
|
|
781
|
+
* @param {*} [options] Override http request option.
|
|
782
|
+
* @throws {RequiredError}
|
|
783
|
+
*/
|
|
784
|
+
handleInfraLogsRequest: async (organization: string, cluster: string, project: string, environment: string, service: string, infraComponentType: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
785
|
+
// verify required parameter 'organization' is not null or undefined
|
|
786
|
+
assertParamExists('handleInfraLogsRequest', 'organization', organization)
|
|
787
|
+
// verify required parameter 'cluster' is not null or undefined
|
|
788
|
+
assertParamExists('handleInfraLogsRequest', 'cluster', cluster)
|
|
789
|
+
// verify required parameter 'project' is not null or undefined
|
|
790
|
+
assertParamExists('handleInfraLogsRequest', 'project', project)
|
|
791
|
+
// verify required parameter 'environment' is not null or undefined
|
|
792
|
+
assertParamExists('handleInfraLogsRequest', 'environment', environment)
|
|
793
|
+
// verify required parameter 'service' is not null or undefined
|
|
794
|
+
assertParamExists('handleInfraLogsRequest', 'service', service)
|
|
795
|
+
// verify required parameter 'infraComponentType' is not null or undefined
|
|
796
|
+
assertParamExists('handleInfraLogsRequest', 'infraComponentType', infraComponentType)
|
|
797
|
+
const localVarPath = `/infra/logs`
|
|
798
|
+
.replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
|
|
799
|
+
.replace(`{${"cluster"}}`, encodeURIComponent(String(cluster)))
|
|
800
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)))
|
|
801
|
+
.replace(`{${"environment"}}`, encodeURIComponent(String(environment)))
|
|
802
|
+
.replace(`{${"service"}}`, encodeURIComponent(String(service)))
|
|
803
|
+
.replace(`{${"infra_component_type"}}`, encodeURIComponent(String(infraComponentType)));
|
|
804
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
805
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
806
|
+
let baseOptions;
|
|
807
|
+
if (configuration) {
|
|
808
|
+
baseOptions = configuration.baseOptions;
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
812
|
+
const localVarHeaderParameter = {} as any;
|
|
813
|
+
const localVarQueryParameter = {} as any;
|
|
814
|
+
|
|
815
|
+
|
|
816
|
+
|
|
817
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
818
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
819
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
820
|
+
|
|
821
|
+
return {
|
|
822
|
+
url: toPathString(localVarUrlObj),
|
|
823
|
+
options: localVarRequestOptions,
|
|
824
|
+
};
|
|
825
|
+
},
|
|
826
|
+
/**
|
|
827
|
+
*
|
|
828
|
+
* @param {string} organization
|
|
829
|
+
* @param {string} cluster
|
|
830
|
+
* @param {string} project
|
|
831
|
+
* @param {string} environment
|
|
832
|
+
* @param {string} service
|
|
833
|
+
* @param {*} [options] Override http request option.
|
|
834
|
+
* @throws {RequiredError}
|
|
835
|
+
*/
|
|
836
|
+
handleServiceLogsRequest: async (organization: string, cluster: string, project: string, environment: string, service: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
837
|
+
// verify required parameter 'organization' is not null or undefined
|
|
838
|
+
assertParamExists('handleServiceLogsRequest', 'organization', organization)
|
|
839
|
+
// verify required parameter 'cluster' is not null or undefined
|
|
840
|
+
assertParamExists('handleServiceLogsRequest', 'cluster', cluster)
|
|
841
|
+
// verify required parameter 'project' is not null or undefined
|
|
842
|
+
assertParamExists('handleServiceLogsRequest', 'project', project)
|
|
843
|
+
// verify required parameter 'environment' is not null or undefined
|
|
844
|
+
assertParamExists('handleServiceLogsRequest', 'environment', environment)
|
|
845
|
+
// verify required parameter 'service' is not null or undefined
|
|
846
|
+
assertParamExists('handleServiceLogsRequest', 'service', service)
|
|
847
|
+
const localVarPath = `/service/logs`
|
|
848
|
+
.replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
|
|
849
|
+
.replace(`{${"cluster"}}`, encodeURIComponent(String(cluster)))
|
|
850
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)))
|
|
851
|
+
.replace(`{${"environment"}}`, encodeURIComponent(String(environment)))
|
|
852
|
+
.replace(`{${"service"}}`, encodeURIComponent(String(service)));
|
|
853
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
854
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
855
|
+
let baseOptions;
|
|
856
|
+
if (configuration) {
|
|
857
|
+
baseOptions = configuration.baseOptions;
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
861
|
+
const localVarHeaderParameter = {} as any;
|
|
862
|
+
const localVarQueryParameter = {} as any;
|
|
863
|
+
|
|
864
|
+
|
|
865
|
+
|
|
866
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
867
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
868
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
869
|
+
|
|
870
|
+
return {
|
|
871
|
+
url: toPathString(localVarUrlObj),
|
|
872
|
+
options: localVarRequestOptions,
|
|
873
|
+
};
|
|
874
|
+
},
|
|
875
|
+
}
|
|
876
|
+
};
|
|
877
|
+
|
|
878
|
+
/**
|
|
879
|
+
* LogsApi - functional programming interface
|
|
880
|
+
* @export
|
|
881
|
+
*/
|
|
882
|
+
export const LogsApiFp = function(configuration?: Configuration) {
|
|
883
|
+
const localVarAxiosParamCreator = LogsApiAxiosParamCreator(configuration)
|
|
884
|
+
return {
|
|
885
|
+
/**
|
|
886
|
+
*
|
|
887
|
+
* @param {string} organization
|
|
888
|
+
* @param {string} cluster
|
|
889
|
+
* @param {string} project
|
|
890
|
+
* @param {string} environment
|
|
891
|
+
* @param {string} service
|
|
892
|
+
* @param {string} infraComponentType
|
|
893
|
+
* @param {*} [options] Override http request option.
|
|
894
|
+
* @throws {RequiredError}
|
|
895
|
+
*/
|
|
896
|
+
async handleInfraLogsRequest(organization: string, cluster: string, project: string, environment: string, service: string, infraComponentType: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceInfraLogResponseDto>> {
|
|
897
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.handleInfraLogsRequest(organization, cluster, project, environment, service, infraComponentType, options);
|
|
898
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
899
|
+
},
|
|
900
|
+
/**
|
|
901
|
+
*
|
|
902
|
+
* @param {string} organization
|
|
903
|
+
* @param {string} cluster
|
|
904
|
+
* @param {string} project
|
|
905
|
+
* @param {string} environment
|
|
906
|
+
* @param {string} service
|
|
907
|
+
* @param {*} [options] Override http request option.
|
|
908
|
+
* @throws {RequiredError}
|
|
909
|
+
*/
|
|
910
|
+
async handleServiceLogsRequest(organization: string, cluster: string, project: string, environment: string, service: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceLogResponseDto>> {
|
|
911
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.handleServiceLogsRequest(organization, cluster, project, environment, service, options);
|
|
912
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
913
|
+
},
|
|
914
|
+
}
|
|
915
|
+
};
|
|
916
|
+
|
|
917
|
+
/**
|
|
918
|
+
* LogsApi - factory interface
|
|
919
|
+
* @export
|
|
920
|
+
*/
|
|
921
|
+
export const LogsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
922
|
+
const localVarFp = LogsApiFp(configuration)
|
|
923
|
+
return {
|
|
924
|
+
/**
|
|
925
|
+
*
|
|
926
|
+
* @param {string} organization
|
|
927
|
+
* @param {string} cluster
|
|
928
|
+
* @param {string} project
|
|
929
|
+
* @param {string} environment
|
|
930
|
+
* @param {string} service
|
|
931
|
+
* @param {string} infraComponentType
|
|
932
|
+
* @param {*} [options] Override http request option.
|
|
933
|
+
* @throws {RequiredError}
|
|
934
|
+
*/
|
|
935
|
+
handleInfraLogsRequest(organization: string, cluster: string, project: string, environment: string, service: string, infraComponentType: string, options?: any): AxiosPromise<ServiceInfraLogResponseDto> {
|
|
936
|
+
return localVarFp.handleInfraLogsRequest(organization, cluster, project, environment, service, infraComponentType, options).then((request) => request(axios, basePath));
|
|
937
|
+
},
|
|
938
|
+
/**
|
|
939
|
+
*
|
|
940
|
+
* @param {string} organization
|
|
941
|
+
* @param {string} cluster
|
|
942
|
+
* @param {string} project
|
|
943
|
+
* @param {string} environment
|
|
944
|
+
* @param {string} service
|
|
945
|
+
* @param {*} [options] Override http request option.
|
|
946
|
+
* @throws {RequiredError}
|
|
947
|
+
*/
|
|
948
|
+
handleServiceLogsRequest(organization: string, cluster: string, project: string, environment: string, service: string, options?: any): AxiosPromise<ServiceLogResponseDto> {
|
|
949
|
+
return localVarFp.handleServiceLogsRequest(organization, cluster, project, environment, service, options).then((request) => request(axios, basePath));
|
|
950
|
+
},
|
|
951
|
+
};
|
|
952
|
+
};
|
|
953
|
+
|
|
954
|
+
/**
|
|
955
|
+
* LogsApi - object-oriented interface
|
|
956
|
+
* @export
|
|
957
|
+
* @class LogsApi
|
|
958
|
+
* @extends {BaseAPI}
|
|
959
|
+
*/
|
|
960
|
+
export class LogsApi extends BaseAPI {
|
|
961
|
+
/**
|
|
962
|
+
*
|
|
963
|
+
* @param {string} organization
|
|
964
|
+
* @param {string} cluster
|
|
965
|
+
* @param {string} project
|
|
966
|
+
* @param {string} environment
|
|
967
|
+
* @param {string} service
|
|
968
|
+
* @param {string} infraComponentType
|
|
969
|
+
* @param {*} [options] Override http request option.
|
|
970
|
+
* @throws {RequiredError}
|
|
971
|
+
* @memberof LogsApi
|
|
972
|
+
*/
|
|
973
|
+
public handleInfraLogsRequest(organization: string, cluster: string, project: string, environment: string, service: string, infraComponentType: string, options?: AxiosRequestConfig) {
|
|
974
|
+
return LogsApiFp(this.configuration).handleInfraLogsRequest(organization, cluster, project, environment, service, infraComponentType, options).then((request) => request(this.axios, this.basePath));
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
/**
|
|
978
|
+
*
|
|
979
|
+
* @param {string} organization
|
|
980
|
+
* @param {string} cluster
|
|
981
|
+
* @param {string} project
|
|
982
|
+
* @param {string} environment
|
|
983
|
+
* @param {string} service
|
|
984
|
+
* @param {*} [options] Override http request option.
|
|
985
|
+
* @throws {RequiredError}
|
|
986
|
+
* @memberof LogsApi
|
|
987
|
+
*/
|
|
988
|
+
public handleServiceLogsRequest(organization: string, cluster: string, project: string, environment: string, service: string, options?: AxiosRequestConfig) {
|
|
989
|
+
return LogsApiFp(this.configuration).handleServiceLogsRequest(organization, cluster, project, environment, service, options).then((request) => request(this.axios, this.basePath));
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
|
|
994
|
+
/**
|
|
995
|
+
* ServiceMetricsApi - axios parameter creator
|
|
996
|
+
* @export
|
|
997
|
+
*/
|
|
998
|
+
export const ServiceMetricsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
999
|
+
return {
|
|
1000
|
+
/**
|
|
1001
|
+
*
|
|
1002
|
+
* @param {string} organization
|
|
1003
|
+
* @param {string} cluster
|
|
1004
|
+
* @param {string} project
|
|
1005
|
+
* @param {string} environment
|
|
1006
|
+
* @param {string} service
|
|
1007
|
+
* @param {ServiceType} serviceType
|
|
1008
|
+
* @param {*} [options] Override http request option.
|
|
1009
|
+
* @throws {RequiredError}
|
|
1010
|
+
*/
|
|
1011
|
+
handleMetricsRequest: async (organization: string, cluster: string, project: string, environment: string, service: string, serviceType: ServiceType, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1012
|
+
// verify required parameter 'organization' is not null or undefined
|
|
1013
|
+
assertParamExists('handleMetricsRequest', 'organization', organization)
|
|
1014
|
+
// verify required parameter 'cluster' is not null or undefined
|
|
1015
|
+
assertParamExists('handleMetricsRequest', 'cluster', cluster)
|
|
1016
|
+
// verify required parameter 'project' is not null or undefined
|
|
1017
|
+
assertParamExists('handleMetricsRequest', 'project', project)
|
|
1018
|
+
// verify required parameter 'environment' is not null or undefined
|
|
1019
|
+
assertParamExists('handleMetricsRequest', 'environment', environment)
|
|
1020
|
+
// verify required parameter 'service' is not null or undefined
|
|
1021
|
+
assertParamExists('handleMetricsRequest', 'service', service)
|
|
1022
|
+
// verify required parameter 'serviceType' is not null or undefined
|
|
1023
|
+
assertParamExists('handleMetricsRequest', 'serviceType', serviceType)
|
|
1024
|
+
const localVarPath = `/service/metrics`
|
|
1025
|
+
.replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
|
|
1026
|
+
.replace(`{${"cluster"}}`, encodeURIComponent(String(cluster)))
|
|
1027
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)))
|
|
1028
|
+
.replace(`{${"environment"}}`, encodeURIComponent(String(environment)))
|
|
1029
|
+
.replace(`{${"service"}}`, encodeURIComponent(String(service)))
|
|
1030
|
+
.replace(`{${"service_type"}}`, encodeURIComponent(String(serviceType)));
|
|
1031
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1032
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1033
|
+
let baseOptions;
|
|
1034
|
+
if (configuration) {
|
|
1035
|
+
baseOptions = configuration.baseOptions;
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1039
|
+
const localVarHeaderParameter = {} as any;
|
|
1040
|
+
const localVarQueryParameter = {} as any;
|
|
1041
|
+
|
|
1042
|
+
|
|
1043
|
+
|
|
1044
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1045
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1046
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1047
|
+
|
|
1048
|
+
return {
|
|
1049
|
+
url: toPathString(localVarUrlObj),
|
|
1050
|
+
options: localVarRequestOptions,
|
|
1051
|
+
};
|
|
1052
|
+
},
|
|
1053
|
+
}
|
|
1054
|
+
};
|
|
1055
|
+
|
|
1056
|
+
/**
|
|
1057
|
+
* ServiceMetricsApi - functional programming interface
|
|
1058
|
+
* @export
|
|
1059
|
+
*/
|
|
1060
|
+
export const ServiceMetricsApiFp = function(configuration?: Configuration) {
|
|
1061
|
+
const localVarAxiosParamCreator = ServiceMetricsApiAxiosParamCreator(configuration)
|
|
1062
|
+
return {
|
|
1063
|
+
/**
|
|
1064
|
+
*
|
|
1065
|
+
* @param {string} organization
|
|
1066
|
+
* @param {string} cluster
|
|
1067
|
+
* @param {string} project
|
|
1068
|
+
* @param {string} environment
|
|
1069
|
+
* @param {string} service
|
|
1070
|
+
* @param {ServiceType} serviceType
|
|
1071
|
+
* @param {*} [options] Override http request option.
|
|
1072
|
+
* @throws {RequiredError}
|
|
1073
|
+
*/
|
|
1074
|
+
async handleMetricsRequest(organization: string, cluster: string, project: string, environment: string, service: string, serviceType: ServiceType, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceMetricsDto>> {
|
|
1075
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.handleMetricsRequest(organization, cluster, project, environment, service, serviceType, options);
|
|
1076
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1077
|
+
},
|
|
1078
|
+
}
|
|
1079
|
+
};
|
|
1080
|
+
|
|
1081
|
+
/**
|
|
1082
|
+
* ServiceMetricsApi - factory interface
|
|
1083
|
+
* @export
|
|
1084
|
+
*/
|
|
1085
|
+
export const ServiceMetricsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1086
|
+
const localVarFp = ServiceMetricsApiFp(configuration)
|
|
1087
|
+
return {
|
|
1088
|
+
/**
|
|
1089
|
+
*
|
|
1090
|
+
* @param {string} organization
|
|
1091
|
+
* @param {string} cluster
|
|
1092
|
+
* @param {string} project
|
|
1093
|
+
* @param {string} environment
|
|
1094
|
+
* @param {string} service
|
|
1095
|
+
* @param {ServiceType} serviceType
|
|
1096
|
+
* @param {*} [options] Override http request option.
|
|
1097
|
+
* @throws {RequiredError}
|
|
1098
|
+
*/
|
|
1099
|
+
handleMetricsRequest(organization: string, cluster: string, project: string, environment: string, service: string, serviceType: ServiceType, options?: any): AxiosPromise<ServiceMetricsDto> {
|
|
1100
|
+
return localVarFp.handleMetricsRequest(organization, cluster, project, environment, service, serviceType, options).then((request) => request(axios, basePath));
|
|
1101
|
+
},
|
|
1102
|
+
};
|
|
1103
|
+
};
|
|
1104
|
+
|
|
1105
|
+
/**
|
|
1106
|
+
* ServiceMetricsApi - object-oriented interface
|
|
1107
|
+
* @export
|
|
1108
|
+
* @class ServiceMetricsApi
|
|
1109
|
+
* @extends {BaseAPI}
|
|
1110
|
+
*/
|
|
1111
|
+
export class ServiceMetricsApi extends BaseAPI {
|
|
1112
|
+
/**
|
|
1113
|
+
*
|
|
1114
|
+
* @param {string} organization
|
|
1115
|
+
* @param {string} cluster
|
|
1116
|
+
* @param {string} project
|
|
1117
|
+
* @param {string} environment
|
|
1118
|
+
* @param {string} service
|
|
1119
|
+
* @param {ServiceType} serviceType
|
|
1120
|
+
* @param {*} [options] Override http request option.
|
|
1121
|
+
* @throws {RequiredError}
|
|
1122
|
+
* @memberof ServiceMetricsApi
|
|
1123
|
+
*/
|
|
1124
|
+
public handleMetricsRequest(organization: string, cluster: string, project: string, environment: string, service: string, serviceType: ServiceType, options?: AxiosRequestConfig) {
|
|
1125
|
+
return ServiceMetricsApiFp(this.configuration).handleMetricsRequest(organization, cluster, project, environment, service, serviceType, options).then((request) => request(this.axios, this.basePath));
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
|
|
1130
|
+
/**
|
|
1131
|
+
* ServiceStatusApi - axios parameter creator
|
|
1132
|
+
* @export
|
|
1133
|
+
*/
|
|
1134
|
+
export const ServiceStatusApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1135
|
+
return {
|
|
1136
|
+
/**
|
|
1137
|
+
*
|
|
1138
|
+
* @param {string} organization
|
|
1139
|
+
* @param {string} cluster
|
|
1140
|
+
* @param {string} project
|
|
1141
|
+
* @param {string} environment
|
|
1142
|
+
* @param {*} [options] Override http request option.
|
|
1143
|
+
* @throws {RequiredError}
|
|
1144
|
+
*/
|
|
1145
|
+
handleServiceStatusRequest: async (organization: string, cluster: string, project: string, environment: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1146
|
+
// verify required parameter 'organization' is not null or undefined
|
|
1147
|
+
assertParamExists('handleServiceStatusRequest', 'organization', organization)
|
|
1148
|
+
// verify required parameter 'cluster' is not null or undefined
|
|
1149
|
+
assertParamExists('handleServiceStatusRequest', 'cluster', cluster)
|
|
1150
|
+
// verify required parameter 'project' is not null or undefined
|
|
1151
|
+
assertParamExists('handleServiceStatusRequest', 'project', project)
|
|
1152
|
+
// verify required parameter 'environment' is not null or undefined
|
|
1153
|
+
assertParamExists('handleServiceStatusRequest', 'environment', environment)
|
|
1154
|
+
const localVarPath = `/service/status`
|
|
1155
|
+
.replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
|
|
1156
|
+
.replace(`{${"cluster"}}`, encodeURIComponent(String(cluster)))
|
|
1157
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)))
|
|
1158
|
+
.replace(`{${"environment"}}`, encodeURIComponent(String(environment)));
|
|
1159
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1160
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1161
|
+
let baseOptions;
|
|
1162
|
+
if (configuration) {
|
|
1163
|
+
baseOptions = configuration.baseOptions;
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1167
|
+
const localVarHeaderParameter = {} as any;
|
|
1168
|
+
const localVarQueryParameter = {} as any;
|
|
1169
|
+
|
|
1170
|
+
|
|
1171
|
+
|
|
1172
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1173
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1174
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1175
|
+
|
|
1176
|
+
return {
|
|
1177
|
+
url: toPathString(localVarUrlObj),
|
|
1178
|
+
options: localVarRequestOptions,
|
|
1179
|
+
};
|
|
1180
|
+
},
|
|
1181
|
+
}
|
|
1182
|
+
};
|
|
1183
|
+
|
|
1184
|
+
/**
|
|
1185
|
+
* ServiceStatusApi - functional programming interface
|
|
1186
|
+
* @export
|
|
1187
|
+
*/
|
|
1188
|
+
export const ServiceStatusApiFp = function(configuration?: Configuration) {
|
|
1189
|
+
const localVarAxiosParamCreator = ServiceStatusApiAxiosParamCreator(configuration)
|
|
1190
|
+
return {
|
|
1191
|
+
/**
|
|
1192
|
+
*
|
|
1193
|
+
* @param {string} organization
|
|
1194
|
+
* @param {string} cluster
|
|
1195
|
+
* @param {string} project
|
|
1196
|
+
* @param {string} environment
|
|
1197
|
+
* @param {*} [options] Override http request option.
|
|
1198
|
+
* @throws {RequiredError}
|
|
1199
|
+
*/
|
|
1200
|
+
async handleServiceStatusRequest(organization: string, cluster: string, project: string, environment: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceStatusDto>> {
|
|
1201
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.handleServiceStatusRequest(organization, cluster, project, environment, options);
|
|
1202
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1203
|
+
},
|
|
1204
|
+
}
|
|
1205
|
+
};
|
|
1206
|
+
|
|
1207
|
+
/**
|
|
1208
|
+
* ServiceStatusApi - factory interface
|
|
1209
|
+
* @export
|
|
1210
|
+
*/
|
|
1211
|
+
export const ServiceStatusApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1212
|
+
const localVarFp = ServiceStatusApiFp(configuration)
|
|
1213
|
+
return {
|
|
1214
|
+
/**
|
|
1215
|
+
*
|
|
1216
|
+
* @param {string} organization
|
|
1217
|
+
* @param {string} cluster
|
|
1218
|
+
* @param {string} project
|
|
1219
|
+
* @param {string} environment
|
|
1220
|
+
* @param {*} [options] Override http request option.
|
|
1221
|
+
* @throws {RequiredError}
|
|
1222
|
+
*/
|
|
1223
|
+
handleServiceStatusRequest(organization: string, cluster: string, project: string, environment: string, options?: any): AxiosPromise<ServiceStatusDto> {
|
|
1224
|
+
return localVarFp.handleServiceStatusRequest(organization, cluster, project, environment, options).then((request) => request(axios, basePath));
|
|
1225
|
+
},
|
|
1226
|
+
};
|
|
1227
|
+
};
|
|
1228
|
+
|
|
1229
|
+
/**
|
|
1230
|
+
* ServiceStatusApi - object-oriented interface
|
|
1231
|
+
* @export
|
|
1232
|
+
* @class ServiceStatusApi
|
|
1233
|
+
* @extends {BaseAPI}
|
|
1234
|
+
*/
|
|
1235
|
+
export class ServiceStatusApi extends BaseAPI {
|
|
1236
|
+
/**
|
|
1237
|
+
*
|
|
1238
|
+
* @param {string} organization
|
|
1239
|
+
* @param {string} cluster
|
|
1240
|
+
* @param {string} project
|
|
1241
|
+
* @param {string} environment
|
|
1242
|
+
* @param {*} [options] Override http request option.
|
|
1243
|
+
* @throws {RequiredError}
|
|
1244
|
+
* @memberof ServiceStatusApi
|
|
1245
|
+
*/
|
|
1246
|
+
public handleServiceStatusRequest(organization: string, cluster: string, project: string, environment: string, options?: AxiosRequestConfig) {
|
|
1247
|
+
return ServiceStatusApiFp(this.configuration).handleServiceStatusRequest(organization, cluster, project, environment, options).then((request) => request(this.axios, this.basePath));
|
|
1248
|
+
}
|
|
1249
|
+
}
|
|
1250
|
+
|
|
1251
|
+
|