qovery-typescript-axios 1.1.708 → 1.1.711

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/api.ts CHANGED
@@ -154,6 +154,420 @@ export const AksInfrastructureOutputsKindEnum = {
154
154
 
155
155
  export type AksInfrastructureOutputsKindEnum = typeof AksInfrastructureOutputsKindEnum[keyof typeof AksInfrastructureOutputsKindEnum];
156
156
 
157
+ /**
158
+ *
159
+ * @export
160
+ * @interface AlertPresentation
161
+ */
162
+ export interface AlertPresentation {
163
+ /**
164
+ *
165
+ * @type {string}
166
+ * @memberof AlertPresentation
167
+ */
168
+ 'summary'?: string | null;
169
+ /**
170
+ * URL to runbook with remediation steps
171
+ * @type {string}
172
+ * @memberof AlertPresentation
173
+ */
174
+ 'runbook_url'?: string | null;
175
+ }
176
+ /**
177
+ *
178
+ * @export
179
+ * @interface AlertPresentationResponse
180
+ */
181
+ export interface AlertPresentationResponse {
182
+ /**
183
+ * Alert summary template
184
+ * @type {string}
185
+ * @memberof AlertPresentationResponse
186
+ */
187
+ 'summary'?: string | null;
188
+ /**
189
+ * URL to runbook with remediation steps
190
+ * @type {string}
191
+ * @memberof AlertPresentationResponse
192
+ */
193
+ 'runbook_url'?: string | null;
194
+ }
195
+ /**
196
+ *
197
+ * @export
198
+ * @interface AlertReceiverCreationRequest
199
+ */
200
+ export interface AlertReceiverCreationRequest {
201
+ /**
202
+ *
203
+ * @type {string}
204
+ * @memberof AlertReceiverCreationRequest
205
+ */
206
+ 'organization_id': string;
207
+ /**
208
+ *
209
+ * @type {string}
210
+ * @memberof AlertReceiverCreationRequest
211
+ */
212
+ 'name': string;
213
+ /**
214
+ *
215
+ * @type {string}
216
+ * @memberof AlertReceiverCreationRequest
217
+ */
218
+ 'description': string;
219
+ /**
220
+ *
221
+ * @type {AlertReceiverType}
222
+ * @memberof AlertReceiverCreationRequest
223
+ */
224
+ 'type': AlertReceiverType;
225
+ /**
226
+ *
227
+ * @type {boolean}
228
+ * @memberof AlertReceiverCreationRequest
229
+ */
230
+ 'send_resolved': boolean;
231
+ }
232
+
233
+
234
+ /**
235
+ *
236
+ * @export
237
+ * @interface AlertReceiverEditRequest
238
+ */
239
+ export interface AlertReceiverEditRequest {
240
+ /**
241
+ *
242
+ * @type {string}
243
+ * @memberof AlertReceiverEditRequest
244
+ */
245
+ 'name': string;
246
+ /**
247
+ *
248
+ * @type {string}
249
+ * @memberof AlertReceiverEditRequest
250
+ */
251
+ 'description': string;
252
+ /**
253
+ *
254
+ * @type {AlertReceiverType}
255
+ * @memberof AlertReceiverEditRequest
256
+ */
257
+ 'type': AlertReceiverType;
258
+ /**
259
+ *
260
+ * @type {boolean}
261
+ * @memberof AlertReceiverEditRequest
262
+ */
263
+ 'send_resolved': boolean;
264
+ }
265
+
266
+
267
+ /**
268
+ *
269
+ * @export
270
+ * @interface AlertReceiverList
271
+ */
272
+ export interface AlertReceiverList {
273
+ /**
274
+ *
275
+ * @type {Array<AlertReceiverResponse>}
276
+ * @memberof AlertReceiverList
277
+ */
278
+ 'results': Array<AlertReceiverResponse>;
279
+ }
280
+ /**
281
+ *
282
+ * @export
283
+ * @interface AlertReceiverResponse
284
+ */
285
+ export interface AlertReceiverResponse {
286
+ /**
287
+ *
288
+ * @type {string}
289
+ * @memberof AlertReceiverResponse
290
+ */
291
+ 'id': string;
292
+ /**
293
+ *
294
+ * @type {string}
295
+ * @memberof AlertReceiverResponse
296
+ */
297
+ 'created_at': string;
298
+ /**
299
+ *
300
+ * @type {string}
301
+ * @memberof AlertReceiverResponse
302
+ */
303
+ 'updated_at'?: string;
304
+ /**
305
+ *
306
+ * @type {string}
307
+ * @memberof AlertReceiverResponse
308
+ */
309
+ 'name': string;
310
+ /**
311
+ *
312
+ * @type {string}
313
+ * @memberof AlertReceiverResponse
314
+ */
315
+ 'description': string;
316
+ /**
317
+ *
318
+ * @type {AlertReceiverType}
319
+ * @memberof AlertReceiverResponse
320
+ */
321
+ 'type': AlertReceiverType;
322
+ /**
323
+ *
324
+ * @type {boolean}
325
+ * @memberof AlertReceiverResponse
326
+ */
327
+ 'send_resolved': boolean;
328
+ }
329
+
330
+
331
+ /**
332
+ *
333
+ * @export
334
+ * @enum {string}
335
+ */
336
+
337
+ export const AlertReceiverType = {
338
+ SLACK: 'SLACK'
339
+ } as const;
340
+
341
+ export type AlertReceiverType = typeof AlertReceiverType[keyof typeof AlertReceiverType];
342
+
343
+
344
+ /**
345
+ *
346
+ * @export
347
+ * @interface AlertRuleCreationRequest
348
+ */
349
+ export interface AlertRuleCreationRequest {
350
+ /**
351
+ * Organization identifier
352
+ * @type {string}
353
+ * @memberof AlertRuleCreationRequest
354
+ */
355
+ 'organization_id': string;
356
+ /**
357
+ * Cluster identifier where the rule will be deployed
358
+ * @type {string}
359
+ * @memberof AlertRuleCreationRequest
360
+ */
361
+ 'cluster_id': string;
362
+ /**
363
+ * Name of the alert rule
364
+ * @type {string}
365
+ * @memberof AlertRuleCreationRequest
366
+ */
367
+ 'name': string;
368
+ /**
369
+ * Description of what the alert monitors
370
+ * @type {string}
371
+ * @memberof AlertRuleCreationRequest
372
+ */
373
+ 'description': string;
374
+ /**
375
+ * PromQL expression to evaluate
376
+ * @type {string}
377
+ * @memberof AlertRuleCreationRequest
378
+ */
379
+ 'promql_expr': string;
380
+ /**
381
+ * Duration the condition must be true before firing (ISO-8601 duration format)
382
+ * @type {string}
383
+ * @memberof AlertRuleCreationRequest
384
+ */
385
+ 'for_duration': string;
386
+ /**
387
+ *
388
+ * @type {AlertSeverity}
389
+ * @memberof AlertRuleCreationRequest
390
+ */
391
+ 'severity': AlertSeverity;
392
+ /**
393
+ * Whether the alert rule is enabled
394
+ * @type {boolean}
395
+ * @memberof AlertRuleCreationRequest
396
+ */
397
+ 'enabled': boolean;
398
+ /**
399
+ * List of alert receiver IDs to send notifications to
400
+ * @type {Array<string>}
401
+ * @memberof AlertRuleCreationRequest
402
+ */
403
+ 'alert_receiver_ids': Array<string>;
404
+ /**
405
+ *
406
+ * @type {AlertPresentation}
407
+ * @memberof AlertRuleCreationRequest
408
+ */
409
+ 'presentation': AlertPresentation;
410
+ }
411
+
412
+
413
+ /**
414
+ *
415
+ * @export
416
+ * @interface AlertRuleEditRequest
417
+ */
418
+ export interface AlertRuleEditRequest {
419
+ /**
420
+ * Name of the alert rule
421
+ * @type {string}
422
+ * @memberof AlertRuleEditRequest
423
+ */
424
+ 'name': string;
425
+ /**
426
+ * Description of what the alert monitors
427
+ * @type {string}
428
+ * @memberof AlertRuleEditRequest
429
+ */
430
+ 'description': string;
431
+ /**
432
+ * PromQL expression to evaluate
433
+ * @type {string}
434
+ * @memberof AlertRuleEditRequest
435
+ */
436
+ 'promql_expr': string;
437
+ /**
438
+ * Duration the condition must be true before firing (ISO-8601 duration format)
439
+ * @type {string}
440
+ * @memberof AlertRuleEditRequest
441
+ */
442
+ 'for_duration': string;
443
+ /**
444
+ *
445
+ * @type {AlertSeverity}
446
+ * @memberof AlertRuleEditRequest
447
+ */
448
+ 'severity': AlertSeverity;
449
+ /**
450
+ * Whether the alert rule is enabled
451
+ * @type {boolean}
452
+ * @memberof AlertRuleEditRequest
453
+ */
454
+ 'enabled': boolean;
455
+ /**
456
+ * List of alert receiver IDs to send notifications to
457
+ * @type {Array<string>}
458
+ * @memberof AlertRuleEditRequest
459
+ */
460
+ 'alert_receiver_ids': Array<string>;
461
+ /**
462
+ *
463
+ * @type {AlertPresentation}
464
+ * @memberof AlertRuleEditRequest
465
+ */
466
+ 'presentation': AlertPresentation;
467
+ }
468
+
469
+
470
+ /**
471
+ *
472
+ * @export
473
+ * @interface AlertRuleResponse
474
+ */
475
+ export interface AlertRuleResponse {
476
+ /**
477
+ *
478
+ * @type {string}
479
+ * @memberof AlertRuleResponse
480
+ */
481
+ 'id': string;
482
+ /**
483
+ *
484
+ * @type {string}
485
+ * @memberof AlertRuleResponse
486
+ */
487
+ 'created_at': string;
488
+ /**
489
+ *
490
+ * @type {string}
491
+ * @memberof AlertRuleResponse
492
+ */
493
+ 'updated_at'?: string;
494
+ /**
495
+ * Organization identifier
496
+ * @type {string}
497
+ * @memberof AlertRuleResponse
498
+ */
499
+ 'organization_id': string;
500
+ /**
501
+ * Cluster identifier
502
+ * @type {string}
503
+ * @memberof AlertRuleResponse
504
+ */
505
+ 'cluster_id': string;
506
+ /**
507
+ * Name of the alert rule
508
+ * @type {string}
509
+ * @memberof AlertRuleResponse
510
+ */
511
+ 'name': string;
512
+ /**
513
+ * Description of what the alert monitors
514
+ * @type {string}
515
+ * @memberof AlertRuleResponse
516
+ */
517
+ 'description': string;
518
+ /**
519
+ * PromQL expression to evaluate
520
+ * @type {string}
521
+ * @memberof AlertRuleResponse
522
+ */
523
+ 'promql_expr': string;
524
+ /**
525
+ * Duration the condition must be true before firing (ISO-8601 duration format)
526
+ * @type {string}
527
+ * @memberof AlertRuleResponse
528
+ */
529
+ 'for_duration': string;
530
+ /**
531
+ *
532
+ * @type {AlertSeverity}
533
+ * @memberof AlertRuleResponse
534
+ */
535
+ 'severity': AlertSeverity;
536
+ /**
537
+ * Whether the alert rule is enabled
538
+ * @type {boolean}
539
+ * @memberof AlertRuleResponse
540
+ */
541
+ 'enabled': boolean;
542
+ /**
543
+ * List of alert receiver IDs to send notifications to
544
+ * @type {Array<string>}
545
+ * @memberof AlertRuleResponse
546
+ */
547
+ 'alert_receiver_ids': Array<string>;
548
+ /**
549
+ *
550
+ * @type {AlertPresentationResponse}
551
+ * @memberof AlertRuleResponse
552
+ */
553
+ 'presentation': AlertPresentationResponse;
554
+ }
555
+
556
+
557
+ /**
558
+ * Alert severity level: - WARNING: Non-critical issue requiring attention - CRITICAL: Critical issue requiring immediate action
559
+ * @export
560
+ * @enum {string}
561
+ */
562
+
563
+ export const AlertSeverity = {
564
+ WARNING: 'WARNING',
565
+ CRITICAL: 'CRITICAL'
566
+ } as const;
567
+
568
+ export type AlertSeverity = typeof AlertSeverity[keyof typeof AlertSeverity];
569
+
570
+
157
571
  /**
158
572
  *
159
573
  * @export
@@ -17312,6 +17726,36 @@ export interface SignUpRequest {
17312
17726
  }
17313
17727
 
17314
17728
 
17729
+ /**
17730
+ *
17731
+ * @export
17732
+ * @interface SlackAlertReceiverCreationRequest
17733
+ */
17734
+ export interface SlackAlertReceiverCreationRequest extends AlertReceiverCreationRequest {
17735
+ /**
17736
+ *
17737
+ * @type {string}
17738
+ * @memberof SlackAlertReceiverCreationRequest
17739
+ */
17740
+ 'webhook_url': string;
17741
+ }
17742
+
17743
+
17744
+ /**
17745
+ *
17746
+ * @export
17747
+ * @interface SlackAlertReceiverEditRequest
17748
+ */
17749
+ export interface SlackAlertReceiverEditRequest extends AlertReceiverEditRequest {
17750
+ /**
17751
+ *
17752
+ * @type {string}
17753
+ * @memberof SlackAlertReceiverEditRequest
17754
+ */
17755
+ 'webhook_url'?: string | null;
17756
+ }
17757
+
17758
+
17315
17759
  /**
17316
17760
  *
17317
17761
  * @export
@@ -18332,6 +18776,32 @@ export interface TerraformVariablesSourceResponse {
18332
18776
  */
18333
18777
  'tf_var_file_paths': Array<string>;
18334
18778
  }
18779
+ /**
18780
+ *
18781
+ * @export
18782
+ * @interface TerraformVersionResponse
18783
+ */
18784
+ export interface TerraformVersionResponse {
18785
+ /**
18786
+ * Terraform version string
18787
+ * @type {string}
18788
+ * @memberof TerraformVersionResponse
18789
+ */
18790
+ 'version'?: string;
18791
+ }
18792
+ /**
18793
+ *
18794
+ * @export
18795
+ * @interface TerraformVersionResponseList
18796
+ */
18797
+ export interface TerraformVersionResponseList {
18798
+ /**
18799
+ *
18800
+ * @type {Array<TerraformVersionResponse>}
18801
+ * @memberof TerraformVersionResponseList
18802
+ */
18803
+ 'results'?: Array<TerraformVersionResponse>;
18804
+ }
18335
18805
  /**
18336
18806
  *
18337
18807
  * @export
@@ -19162,24 +19632,20 @@ export class AccountInfoApi extends BaseAPI {
19162
19632
 
19163
19633
 
19164
19634
  /**
19165
- * ApplicationActionsApi - axios parameter creator
19635
+ * AlertReceiversApi - axios parameter creator
19166
19636
  * @export
19167
19637
  */
19168
- export const ApplicationActionsApiAxiosParamCreator = function (configuration?: Configuration) {
19638
+ export const AlertReceiversApiAxiosParamCreator = function (configuration?: Configuration) {
19169
19639
  return {
19170
19640
  /**
19171
- * You must provide a git commit id
19172
- * @summary Deploy application
19173
- * @param {string} applicationId Application ID
19174
- * @param {DeployRequest} [deployRequest]
19641
+ * Create a new alert receiver
19642
+ * @summary Create alert receiver
19643
+ * @param {AlertReceiverCreationRequest} [alertReceiverCreationRequest]
19175
19644
  * @param {*} [options] Override http request option.
19176
19645
  * @throws {RequiredError}
19177
19646
  */
19178
- deployApplication: async (applicationId: string, deployRequest?: DeployRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19179
- // verify required parameter 'applicationId' is not null or undefined
19180
- assertParamExists('deployApplication', 'applicationId', applicationId)
19181
- const localVarPath = `/application/{applicationId}/deploy`
19182
- .replace(`{${"applicationId"}}`, encodeURIComponent(String(applicationId)));
19647
+ createAlertReceiver: async (alertReceiverCreationRequest?: AlertReceiverCreationRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19648
+ const localVarPath = `/api/alert-receivers`;
19183
19649
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
19184
19650
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19185
19651
  let baseOptions;
@@ -19205,7 +19671,7 @@ export const ApplicationActionsApiAxiosParamCreator = function (configuration?:
19205
19671
  setSearchParams(localVarUrlObj, localVarQueryParameter);
19206
19672
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19207
19673
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19208
- localVarRequestOptions.data = serializeDataIfNeeded(deployRequest, localVarRequestOptions, configuration)
19674
+ localVarRequestOptions.data = serializeDataIfNeeded(alertReceiverCreationRequest, localVarRequestOptions, configuration)
19209
19675
 
19210
19676
  return {
19211
19677
  url: toPathString(localVarUrlObj),
@@ -19213,17 +19679,17 @@ export const ApplicationActionsApiAxiosParamCreator = function (configuration?:
19213
19679
  };
19214
19680
  },
19215
19681
  /**
19216
- *
19217
- * @summary Reboot application
19218
- * @param {string} applicationId Application ID
19682
+ * Delete an alert receiver
19683
+ * @summary Delete alert receiver
19684
+ * @param {string} alertReceiverId Alert Receiver ID
19219
19685
  * @param {*} [options] Override http request option.
19220
19686
  * @throws {RequiredError}
19221
19687
  */
19222
- rebootApplication: async (applicationId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19223
- // verify required parameter 'applicationId' is not null or undefined
19224
- assertParamExists('rebootApplication', 'applicationId', applicationId)
19225
- const localVarPath = `/application/{applicationId}/restart-service`
19226
- .replace(`{${"applicationId"}}`, encodeURIComponent(String(applicationId)));
19688
+ deleteAlertReceiver: async (alertReceiverId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19689
+ // verify required parameter 'alertReceiverId' is not null or undefined
19690
+ assertParamExists('deleteAlertReceiver', 'alertReceiverId', alertReceiverId)
19691
+ const localVarPath = `/api/alert-receivers/{alertReceiverId}`
19692
+ .replace(`{${"alertReceiverId"}}`, encodeURIComponent(String(alertReceiverId)));
19227
19693
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
19228
19694
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19229
19695
  let baseOptions;
@@ -19231,7 +19697,7 @@ export const ApplicationActionsApiAxiosParamCreator = function (configuration?:
19231
19697
  baseOptions = configuration.baseOptions;
19232
19698
  }
19233
19699
 
19234
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
19700
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
19235
19701
  const localVarHeaderParameter = {} as any;
19236
19702
  const localVarQueryParameter = {} as any;
19237
19703
 
@@ -19254,17 +19720,18 @@ export const ApplicationActionsApiAxiosParamCreator = function (configuration?:
19254
19720
  };
19255
19721
  },
19256
19722
  /**
19257
- *
19258
- * @summary Redeploy application
19259
- * @param {string} applicationId Application ID
19723
+ * Update an existing alert receiver
19724
+ * @summary Update alert receiver
19725
+ * @param {string} alertReceiverId Alert Receiver ID
19726
+ * @param {AlertReceiverEditRequest} [alertReceiverEditRequest]
19260
19727
  * @param {*} [options] Override http request option.
19261
19728
  * @throws {RequiredError}
19262
19729
  */
19263
- redeployApplication: async (applicationId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19264
- // verify required parameter 'applicationId' is not null or undefined
19265
- assertParamExists('redeployApplication', 'applicationId', applicationId)
19266
- const localVarPath = `/application/{applicationId}/redeploy`
19267
- .replace(`{${"applicationId"}}`, encodeURIComponent(String(applicationId)));
19730
+ editAlertReceiver: async (alertReceiverId: string, alertReceiverEditRequest?: AlertReceiverEditRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19731
+ // verify required parameter 'alertReceiverId' is not null or undefined
19732
+ assertParamExists('editAlertReceiver', 'alertReceiverId', alertReceiverId)
19733
+ const localVarPath = `/api/alert-receivers/{alertReceiverId}`
19734
+ .replace(`{${"alertReceiverId"}}`, encodeURIComponent(String(alertReceiverId)));
19268
19735
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
19269
19736
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19270
19737
  let baseOptions;
@@ -19272,7 +19739,7 @@ export const ApplicationActionsApiAxiosParamCreator = function (configuration?:
19272
19739
  baseOptions = configuration.baseOptions;
19273
19740
  }
19274
19741
 
19275
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
19742
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
19276
19743
  const localVarHeaderParameter = {} as any;
19277
19744
  const localVarQueryParameter = {} as any;
19278
19745
 
@@ -19285,9 +19752,12 @@ export const ApplicationActionsApiAxiosParamCreator = function (configuration?:
19285
19752
 
19286
19753
 
19287
19754
 
19755
+ localVarHeaderParameter['Content-Type'] = 'application/json';
19756
+
19288
19757
  setSearchParams(localVarUrlObj, localVarQueryParameter);
19289
19758
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19290
19759
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19760
+ localVarRequestOptions.data = serializeDataIfNeeded(alertReceiverEditRequest, localVarRequestOptions, configuration)
19291
19761
 
19292
19762
  return {
19293
19763
  url: toPathString(localVarUrlObj),
@@ -19295,17 +19765,17 @@ export const ApplicationActionsApiAxiosParamCreator = function (configuration?:
19295
19765
  };
19296
19766
  },
19297
19767
  /**
19298
- *
19299
- * @summary Stop application
19300
- * @param {string} applicationId Application ID
19768
+ * Retrieve a specific alert receiver by its ID
19769
+ * @summary Get alert receiver
19770
+ * @param {string} alertReceiverId Alert Receiver ID
19301
19771
  * @param {*} [options] Override http request option.
19302
19772
  * @throws {RequiredError}
19303
19773
  */
19304
- stopApplication: async (applicationId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19305
- // verify required parameter 'applicationId' is not null or undefined
19306
- assertParamExists('stopApplication', 'applicationId', applicationId)
19307
- const localVarPath = `/application/{applicationId}/stop`
19308
- .replace(`{${"applicationId"}}`, encodeURIComponent(String(applicationId)));
19774
+ getAlertReceiver: async (alertReceiverId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19775
+ // verify required parameter 'alertReceiverId' is not null or undefined
19776
+ assertParamExists('getAlertReceiver', 'alertReceiverId', alertReceiverId)
19777
+ const localVarPath = `/api/alert-receivers/{alertReceiverId}`
19778
+ .replace(`{${"alertReceiverId"}}`, encodeURIComponent(String(alertReceiverId)));
19309
19779
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
19310
19780
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19311
19781
  let baseOptions;
@@ -19313,7 +19783,7 @@ export const ApplicationActionsApiAxiosParamCreator = function (configuration?:
19313
19783
  baseOptions = configuration.baseOptions;
19314
19784
  }
19315
19785
 
19316
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
19786
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
19317
19787
  const localVarHeaderParameter = {} as any;
19318
19788
  const localVarQueryParameter = {} as any;
19319
19789
 
@@ -19336,18 +19806,17 @@ export const ApplicationActionsApiAxiosParamCreator = function (configuration?:
19336
19806
  };
19337
19807
  },
19338
19808
  /**
19339
- * Delete the resources of an application but keep the Qovery config.
19340
- * @summary Uninstall application
19341
- * @param {string} applicationId Application ID
19342
- * @param {object} [body]
19809
+ * Retrieve all alert receivers for a specific organization
19810
+ * @summary List alert receivers
19811
+ * @param {string} organizationId Organization ID
19343
19812
  * @param {*} [options] Override http request option.
19344
19813
  * @throws {RequiredError}
19345
19814
  */
19346
- uninstallApplication: async (applicationId: string, body?: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19347
- // verify required parameter 'applicationId' is not null or undefined
19348
- assertParamExists('uninstallApplication', 'applicationId', applicationId)
19349
- const localVarPath = `/application/{applicationId}/uninstall`
19350
- .replace(`{${"applicationId"}}`, encodeURIComponent(String(applicationId)));
19815
+ getAlertReceivers: async (organizationId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19816
+ // verify required parameter 'organizationId' is not null or undefined
19817
+ assertParamExists('getAlertReceivers', 'organizationId', organizationId)
19818
+ const localVarPath = `/api/organization/{organizationId}/alert-receivers`
19819
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
19351
19820
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
19352
19821
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19353
19822
  let baseOptions;
@@ -19355,7 +19824,7 @@ export const ApplicationActionsApiAxiosParamCreator = function (configuration?:
19355
19824
  baseOptions = configuration.baseOptions;
19356
19825
  }
19357
19826
 
19358
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
19827
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
19359
19828
  const localVarHeaderParameter = {} as any;
19360
19829
  const localVarQueryParameter = {} as any;
19361
19830
 
@@ -19368,12 +19837,9 @@ export const ApplicationActionsApiAxiosParamCreator = function (configuration?:
19368
19837
 
19369
19838
 
19370
19839
 
19371
- localVarHeaderParameter['Content-Type'] = 'application/json';
19372
-
19373
19840
  setSearchParams(localVarUrlObj, localVarQueryParameter);
19374
19841
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19375
19842
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19376
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
19377
19843
 
19378
19844
  return {
19379
19845
  url: toPathString(localVarUrlObj),
@@ -19384,235 +19850,228 @@ export const ApplicationActionsApiAxiosParamCreator = function (configuration?:
19384
19850
  };
19385
19851
 
19386
19852
  /**
19387
- * ApplicationActionsApi - functional programming interface
19853
+ * AlertReceiversApi - functional programming interface
19388
19854
  * @export
19389
19855
  */
19390
- export const ApplicationActionsApiFp = function(configuration?: Configuration) {
19391
- const localVarAxiosParamCreator = ApplicationActionsApiAxiosParamCreator(configuration)
19856
+ export const AlertReceiversApiFp = function(configuration?: Configuration) {
19857
+ const localVarAxiosParamCreator = AlertReceiversApiAxiosParamCreator(configuration)
19392
19858
  return {
19393
19859
  /**
19394
- * You must provide a git commit id
19395
- * @summary Deploy application
19396
- * @param {string} applicationId Application ID
19397
- * @param {DeployRequest} [deployRequest]
19860
+ * Create a new alert receiver
19861
+ * @summary Create alert receiver
19862
+ * @param {AlertReceiverCreationRequest} [alertReceiverCreationRequest]
19398
19863
  * @param {*} [options] Override http request option.
19399
19864
  * @throws {RequiredError}
19400
19865
  */
19401
- async deployApplication(applicationId: string, deployRequest?: DeployRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Status>> {
19402
- const localVarAxiosArgs = await localVarAxiosParamCreator.deployApplication(applicationId, deployRequest, options);
19866
+ async createAlertReceiver(alertReceiverCreationRequest?: AlertReceiverCreationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlertReceiverResponse>> {
19867
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createAlertReceiver(alertReceiverCreationRequest, options);
19403
19868
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19404
- const localVarOperationServerBasePath = operationServerMap['ApplicationActionsApi.deployApplication']?.[localVarOperationServerIndex]?.url;
19869
+ const localVarOperationServerBasePath = operationServerMap['AlertReceiversApi.createAlertReceiver']?.[localVarOperationServerIndex]?.url;
19405
19870
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19406
19871
  },
19407
19872
  /**
19408
- *
19409
- * @summary Reboot application
19410
- * @param {string} applicationId Application ID
19873
+ * Delete an alert receiver
19874
+ * @summary Delete alert receiver
19875
+ * @param {string} alertReceiverId Alert Receiver ID
19411
19876
  * @param {*} [options] Override http request option.
19412
19877
  * @throws {RequiredError}
19413
19878
  */
19414
- async rebootApplication(applicationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Status>> {
19415
- const localVarAxiosArgs = await localVarAxiosParamCreator.rebootApplication(applicationId, options);
19879
+ async deleteAlertReceiver(alertReceiverId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
19880
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAlertReceiver(alertReceiverId, options);
19416
19881
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19417
- const localVarOperationServerBasePath = operationServerMap['ApplicationActionsApi.rebootApplication']?.[localVarOperationServerIndex]?.url;
19882
+ const localVarOperationServerBasePath = operationServerMap['AlertReceiversApi.deleteAlertReceiver']?.[localVarOperationServerIndex]?.url;
19418
19883
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19419
19884
  },
19420
19885
  /**
19421
- *
19422
- * @summary Redeploy application
19423
- * @param {string} applicationId Application ID
19886
+ * Update an existing alert receiver
19887
+ * @summary Update alert receiver
19888
+ * @param {string} alertReceiverId Alert Receiver ID
19889
+ * @param {AlertReceiverEditRequest} [alertReceiverEditRequest]
19424
19890
  * @param {*} [options] Override http request option.
19425
19891
  * @throws {RequiredError}
19426
19892
  */
19427
- async redeployApplication(applicationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Status>> {
19428
- const localVarAxiosArgs = await localVarAxiosParamCreator.redeployApplication(applicationId, options);
19893
+ async editAlertReceiver(alertReceiverId: string, alertReceiverEditRequest?: AlertReceiverEditRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlertReceiverResponse>> {
19894
+ const localVarAxiosArgs = await localVarAxiosParamCreator.editAlertReceiver(alertReceiverId, alertReceiverEditRequest, options);
19429
19895
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19430
- const localVarOperationServerBasePath = operationServerMap['ApplicationActionsApi.redeployApplication']?.[localVarOperationServerIndex]?.url;
19896
+ const localVarOperationServerBasePath = operationServerMap['AlertReceiversApi.editAlertReceiver']?.[localVarOperationServerIndex]?.url;
19431
19897
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19432
19898
  },
19433
19899
  /**
19434
- *
19435
- * @summary Stop application
19436
- * @param {string} applicationId Application ID
19900
+ * Retrieve a specific alert receiver by its ID
19901
+ * @summary Get alert receiver
19902
+ * @param {string} alertReceiverId Alert Receiver ID
19437
19903
  * @param {*} [options] Override http request option.
19438
19904
  * @throws {RequiredError}
19439
19905
  */
19440
- async stopApplication(applicationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Status>> {
19441
- const localVarAxiosArgs = await localVarAxiosParamCreator.stopApplication(applicationId, options);
19906
+ async getAlertReceiver(alertReceiverId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlertReceiverResponse>> {
19907
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAlertReceiver(alertReceiverId, options);
19442
19908
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19443
- const localVarOperationServerBasePath = operationServerMap['ApplicationActionsApi.stopApplication']?.[localVarOperationServerIndex]?.url;
19909
+ const localVarOperationServerBasePath = operationServerMap['AlertReceiversApi.getAlertReceiver']?.[localVarOperationServerIndex]?.url;
19444
19910
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19445
19911
  },
19446
19912
  /**
19447
- * Delete the resources of an application but keep the Qovery config.
19448
- * @summary Uninstall application
19449
- * @param {string} applicationId Application ID
19450
- * @param {object} [body]
19913
+ * Retrieve all alert receivers for a specific organization
19914
+ * @summary List alert receivers
19915
+ * @param {string} organizationId Organization ID
19451
19916
  * @param {*} [options] Override http request option.
19452
19917
  * @throws {RequiredError}
19453
19918
  */
19454
- async uninstallApplication(applicationId: string, body?: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Status>> {
19455
- const localVarAxiosArgs = await localVarAxiosParamCreator.uninstallApplication(applicationId, body, options);
19919
+ async getAlertReceivers(organizationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlertReceiverList>> {
19920
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAlertReceivers(organizationId, options);
19456
19921
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19457
- const localVarOperationServerBasePath = operationServerMap['ApplicationActionsApi.uninstallApplication']?.[localVarOperationServerIndex]?.url;
19922
+ const localVarOperationServerBasePath = operationServerMap['AlertReceiversApi.getAlertReceivers']?.[localVarOperationServerIndex]?.url;
19458
19923
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19459
19924
  },
19460
19925
  }
19461
19926
  };
19462
19927
 
19463
19928
  /**
19464
- * ApplicationActionsApi - factory interface
19929
+ * AlertReceiversApi - factory interface
19465
19930
  * @export
19466
19931
  */
19467
- export const ApplicationActionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
19468
- const localVarFp = ApplicationActionsApiFp(configuration)
19932
+ export const AlertReceiversApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
19933
+ const localVarFp = AlertReceiversApiFp(configuration)
19469
19934
  return {
19470
19935
  /**
19471
- * You must provide a git commit id
19472
- * @summary Deploy application
19473
- * @param {string} applicationId Application ID
19474
- * @param {DeployRequest} [deployRequest]
19936
+ * Create a new alert receiver
19937
+ * @summary Create alert receiver
19938
+ * @param {AlertReceiverCreationRequest} [alertReceiverCreationRequest]
19475
19939
  * @param {*} [options] Override http request option.
19476
19940
  * @throws {RequiredError}
19477
19941
  */
19478
- deployApplication(applicationId: string, deployRequest?: DeployRequest, options?: RawAxiosRequestConfig): AxiosPromise<Status> {
19479
- return localVarFp.deployApplication(applicationId, deployRequest, options).then((request) => request(axios, basePath));
19942
+ createAlertReceiver(alertReceiverCreationRequest?: AlertReceiverCreationRequest, options?: RawAxiosRequestConfig): AxiosPromise<AlertReceiverResponse> {
19943
+ return localVarFp.createAlertReceiver(alertReceiverCreationRequest, options).then((request) => request(axios, basePath));
19480
19944
  },
19481
19945
  /**
19482
- *
19483
- * @summary Reboot application
19484
- * @param {string} applicationId Application ID
19946
+ * Delete an alert receiver
19947
+ * @summary Delete alert receiver
19948
+ * @param {string} alertReceiverId Alert Receiver ID
19485
19949
  * @param {*} [options] Override http request option.
19486
19950
  * @throws {RequiredError}
19487
19951
  */
19488
- rebootApplication(applicationId: string, options?: RawAxiosRequestConfig): AxiosPromise<Status> {
19489
- return localVarFp.rebootApplication(applicationId, options).then((request) => request(axios, basePath));
19952
+ deleteAlertReceiver(alertReceiverId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
19953
+ return localVarFp.deleteAlertReceiver(alertReceiverId, options).then((request) => request(axios, basePath));
19490
19954
  },
19491
19955
  /**
19492
- *
19493
- * @summary Redeploy application
19494
- * @param {string} applicationId Application ID
19956
+ * Update an existing alert receiver
19957
+ * @summary Update alert receiver
19958
+ * @param {string} alertReceiverId Alert Receiver ID
19959
+ * @param {AlertReceiverEditRequest} [alertReceiverEditRequest]
19495
19960
  * @param {*} [options] Override http request option.
19496
19961
  * @throws {RequiredError}
19497
19962
  */
19498
- redeployApplication(applicationId: string, options?: RawAxiosRequestConfig): AxiosPromise<Status> {
19499
- return localVarFp.redeployApplication(applicationId, options).then((request) => request(axios, basePath));
19963
+ editAlertReceiver(alertReceiverId: string, alertReceiverEditRequest?: AlertReceiverEditRequest, options?: RawAxiosRequestConfig): AxiosPromise<AlertReceiverResponse> {
19964
+ return localVarFp.editAlertReceiver(alertReceiverId, alertReceiverEditRequest, options).then((request) => request(axios, basePath));
19500
19965
  },
19501
19966
  /**
19502
- *
19503
- * @summary Stop application
19504
- * @param {string} applicationId Application ID
19967
+ * Retrieve a specific alert receiver by its ID
19968
+ * @summary Get alert receiver
19969
+ * @param {string} alertReceiverId Alert Receiver ID
19505
19970
  * @param {*} [options] Override http request option.
19506
19971
  * @throws {RequiredError}
19507
19972
  */
19508
- stopApplication(applicationId: string, options?: RawAxiosRequestConfig): AxiosPromise<Status> {
19509
- return localVarFp.stopApplication(applicationId, options).then((request) => request(axios, basePath));
19973
+ getAlertReceiver(alertReceiverId: string, options?: RawAxiosRequestConfig): AxiosPromise<AlertReceiverResponse> {
19974
+ return localVarFp.getAlertReceiver(alertReceiverId, options).then((request) => request(axios, basePath));
19510
19975
  },
19511
19976
  /**
19512
- * Delete the resources of an application but keep the Qovery config.
19513
- * @summary Uninstall application
19514
- * @param {string} applicationId Application ID
19515
- * @param {object} [body]
19977
+ * Retrieve all alert receivers for a specific organization
19978
+ * @summary List alert receivers
19979
+ * @param {string} organizationId Organization ID
19516
19980
  * @param {*} [options] Override http request option.
19517
19981
  * @throws {RequiredError}
19518
19982
  */
19519
- uninstallApplication(applicationId: string, body?: object, options?: RawAxiosRequestConfig): AxiosPromise<Status> {
19520
- return localVarFp.uninstallApplication(applicationId, body, options).then((request) => request(axios, basePath));
19983
+ getAlertReceivers(organizationId: string, options?: RawAxiosRequestConfig): AxiosPromise<AlertReceiverList> {
19984
+ return localVarFp.getAlertReceivers(organizationId, options).then((request) => request(axios, basePath));
19521
19985
  },
19522
19986
  };
19523
19987
  };
19524
19988
 
19525
19989
  /**
19526
- * ApplicationActionsApi - object-oriented interface
19990
+ * AlertReceiversApi - object-oriented interface
19527
19991
  * @export
19528
- * @class ApplicationActionsApi
19992
+ * @class AlertReceiversApi
19529
19993
  * @extends {BaseAPI}
19530
19994
  */
19531
- export class ApplicationActionsApi extends BaseAPI {
19995
+ export class AlertReceiversApi extends BaseAPI {
19532
19996
  /**
19533
- * You must provide a git commit id
19534
- * @summary Deploy application
19535
- * @param {string} applicationId Application ID
19536
- * @param {DeployRequest} [deployRequest]
19997
+ * Create a new alert receiver
19998
+ * @summary Create alert receiver
19999
+ * @param {AlertReceiverCreationRequest} [alertReceiverCreationRequest]
19537
20000
  * @param {*} [options] Override http request option.
19538
20001
  * @throws {RequiredError}
19539
- * @memberof ApplicationActionsApi
20002
+ * @memberof AlertReceiversApi
19540
20003
  */
19541
- public deployApplication(applicationId: string, deployRequest?: DeployRequest, options?: RawAxiosRequestConfig) {
19542
- return ApplicationActionsApiFp(this.configuration).deployApplication(applicationId, deployRequest, options).then((request) => request(this.axios, this.basePath));
20004
+ public createAlertReceiver(alertReceiverCreationRequest?: AlertReceiverCreationRequest, options?: RawAxiosRequestConfig) {
20005
+ return AlertReceiversApiFp(this.configuration).createAlertReceiver(alertReceiverCreationRequest, options).then((request) => request(this.axios, this.basePath));
19543
20006
  }
19544
20007
 
19545
20008
  /**
19546
- *
19547
- * @summary Reboot application
19548
- * @param {string} applicationId Application ID
20009
+ * Delete an alert receiver
20010
+ * @summary Delete alert receiver
20011
+ * @param {string} alertReceiverId Alert Receiver ID
19549
20012
  * @param {*} [options] Override http request option.
19550
20013
  * @throws {RequiredError}
19551
- * @memberof ApplicationActionsApi
20014
+ * @memberof AlertReceiversApi
19552
20015
  */
19553
- public rebootApplication(applicationId: string, options?: RawAxiosRequestConfig) {
19554
- return ApplicationActionsApiFp(this.configuration).rebootApplication(applicationId, options).then((request) => request(this.axios, this.basePath));
20016
+ public deleteAlertReceiver(alertReceiverId: string, options?: RawAxiosRequestConfig) {
20017
+ return AlertReceiversApiFp(this.configuration).deleteAlertReceiver(alertReceiverId, options).then((request) => request(this.axios, this.basePath));
19555
20018
  }
19556
20019
 
19557
20020
  /**
19558
- *
19559
- * @summary Redeploy application
19560
- * @param {string} applicationId Application ID
20021
+ * Update an existing alert receiver
20022
+ * @summary Update alert receiver
20023
+ * @param {string} alertReceiverId Alert Receiver ID
20024
+ * @param {AlertReceiverEditRequest} [alertReceiverEditRequest]
19561
20025
  * @param {*} [options] Override http request option.
19562
20026
  * @throws {RequiredError}
19563
- * @memberof ApplicationActionsApi
20027
+ * @memberof AlertReceiversApi
19564
20028
  */
19565
- public redeployApplication(applicationId: string, options?: RawAxiosRequestConfig) {
19566
- return ApplicationActionsApiFp(this.configuration).redeployApplication(applicationId, options).then((request) => request(this.axios, this.basePath));
20029
+ public editAlertReceiver(alertReceiverId: string, alertReceiverEditRequest?: AlertReceiverEditRequest, options?: RawAxiosRequestConfig) {
20030
+ return AlertReceiversApiFp(this.configuration).editAlertReceiver(alertReceiverId, alertReceiverEditRequest, options).then((request) => request(this.axios, this.basePath));
19567
20031
  }
19568
20032
 
19569
20033
  /**
19570
- *
19571
- * @summary Stop application
19572
- * @param {string} applicationId Application ID
20034
+ * Retrieve a specific alert receiver by its ID
20035
+ * @summary Get alert receiver
20036
+ * @param {string} alertReceiverId Alert Receiver ID
19573
20037
  * @param {*} [options] Override http request option.
19574
20038
  * @throws {RequiredError}
19575
- * @memberof ApplicationActionsApi
20039
+ * @memberof AlertReceiversApi
19576
20040
  */
19577
- public stopApplication(applicationId: string, options?: RawAxiosRequestConfig) {
19578
- return ApplicationActionsApiFp(this.configuration).stopApplication(applicationId, options).then((request) => request(this.axios, this.basePath));
20041
+ public getAlertReceiver(alertReceiverId: string, options?: RawAxiosRequestConfig) {
20042
+ return AlertReceiversApiFp(this.configuration).getAlertReceiver(alertReceiverId, options).then((request) => request(this.axios, this.basePath));
19579
20043
  }
19580
20044
 
19581
20045
  /**
19582
- * Delete the resources of an application but keep the Qovery config.
19583
- * @summary Uninstall application
19584
- * @param {string} applicationId Application ID
19585
- * @param {object} [body]
20046
+ * Retrieve all alert receivers for a specific organization
20047
+ * @summary List alert receivers
20048
+ * @param {string} organizationId Organization ID
19586
20049
  * @param {*} [options] Override http request option.
19587
20050
  * @throws {RequiredError}
19588
- * @memberof ApplicationActionsApi
20051
+ * @memberof AlertReceiversApi
19589
20052
  */
19590
- public uninstallApplication(applicationId: string, body?: object, options?: RawAxiosRequestConfig) {
19591
- return ApplicationActionsApiFp(this.configuration).uninstallApplication(applicationId, body, options).then((request) => request(this.axios, this.basePath));
20053
+ public getAlertReceivers(organizationId: string, options?: RawAxiosRequestConfig) {
20054
+ return AlertReceiversApiFp(this.configuration).getAlertReceivers(organizationId, options).then((request) => request(this.axios, this.basePath));
19592
20055
  }
19593
20056
  }
19594
20057
 
19595
20058
 
19596
20059
 
19597
20060
  /**
19598
- * ApplicationConfigurationApi - axios parameter creator
20061
+ * AlertRulesApi - axios parameter creator
19599
20062
  * @export
19600
20063
  */
19601
- export const ApplicationConfigurationApiAxiosParamCreator = function (configuration?: Configuration) {
20064
+ export const AlertRulesApiAxiosParamCreator = function (configuration?: Configuration) {
19602
20065
  return {
19603
20066
  /**
19604
- * Edit advanced settings by returning table of advanced settings.
19605
- * @summary Edit advanced settings
19606
- * @param {string} applicationId Application ID
19607
- * @param {ApplicationAdvancedSettings} [applicationAdvancedSettings]
20067
+ * Create a new alert rule with PromQL expression
20068
+ * @summary Create alert rule
20069
+ * @param {AlertRuleCreationRequest} [alertRuleCreationRequest]
19608
20070
  * @param {*} [options] Override http request option.
19609
20071
  * @throws {RequiredError}
19610
20072
  */
19611
- editAdvancedSettings: async (applicationId: string, applicationAdvancedSettings?: ApplicationAdvancedSettings, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19612
- // verify required parameter 'applicationId' is not null or undefined
19613
- assertParamExists('editAdvancedSettings', 'applicationId', applicationId)
19614
- const localVarPath = `/application/{applicationId}/advancedSettings`
19615
- .replace(`{${"applicationId"}}`, encodeURIComponent(String(applicationId)));
20073
+ createAlertRule: async (alertRuleCreationRequest?: AlertRuleCreationRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20074
+ const localVarPath = `/api/alert-rules`;
19616
20075
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
19617
20076
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19618
20077
  let baseOptions;
@@ -19620,7 +20079,7 @@ export const ApplicationConfigurationApiAxiosParamCreator = function (configurat
19620
20079
  baseOptions = configuration.baseOptions;
19621
20080
  }
19622
20081
 
19623
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
20082
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
19624
20083
  const localVarHeaderParameter = {} as any;
19625
20084
  const localVarQueryParameter = {} as any;
19626
20085
 
@@ -19638,7 +20097,7 @@ export const ApplicationConfigurationApiAxiosParamCreator = function (configurat
19638
20097
  setSearchParams(localVarUrlObj, localVarQueryParameter);
19639
20098
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19640
20099
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19641
- localVarRequestOptions.data = serializeDataIfNeeded(applicationAdvancedSettings, localVarRequestOptions, configuration)
20100
+ localVarRequestOptions.data = serializeDataIfNeeded(alertRuleCreationRequest, localVarRequestOptions, configuration)
19642
20101
 
19643
20102
  return {
19644
20103
  url: toPathString(localVarUrlObj),
@@ -19646,18 +20105,59 @@ export const ApplicationConfigurationApiAxiosParamCreator = function (configurat
19646
20105
  };
19647
20106
  },
19648
20107
  /**
19649
- * Edit the Network settings of the application.
19650
- * @summary Edit Application Network
19651
- * @param {string} applicationId Application ID
19652
- * @param {ApplicationNetworkRequest} [applicationNetworkRequest]
20108
+ * Delete an alert rule
20109
+ * @summary Delete alert rule
20110
+ * @param {string} alertRuleId Alert Rule ID
19653
20111
  * @param {*} [options] Override http request option.
19654
20112
  * @throws {RequiredError}
19655
20113
  */
19656
- editApplicationNetwork: async (applicationId: string, applicationNetworkRequest?: ApplicationNetworkRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19657
- // verify required parameter 'applicationId' is not null or undefined
19658
- assertParamExists('editApplicationNetwork', 'applicationId', applicationId)
19659
- const localVarPath = `/application/{applicationId}/network`
19660
- .replace(`{${"applicationId"}}`, encodeURIComponent(String(applicationId)));
20114
+ deleteAlertRule: async (alertRuleId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20115
+ // verify required parameter 'alertRuleId' is not null or undefined
20116
+ assertParamExists('deleteAlertRule', 'alertRuleId', alertRuleId)
20117
+ const localVarPath = `/api/alert-rules/{alertRuleId}`
20118
+ .replace(`{${"alertRuleId"}}`, encodeURIComponent(String(alertRuleId)));
20119
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20120
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20121
+ let baseOptions;
20122
+ if (configuration) {
20123
+ baseOptions = configuration.baseOptions;
20124
+ }
20125
+
20126
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
20127
+ const localVarHeaderParameter = {} as any;
20128
+ const localVarQueryParameter = {} as any;
20129
+
20130
+ // authentication ApiKeyAuth required
20131
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
20132
+
20133
+ // authentication bearerAuth required
20134
+ // http bearer authentication required
20135
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
20136
+
20137
+
20138
+
20139
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
20140
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20141
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20142
+
20143
+ return {
20144
+ url: toPathString(localVarUrlObj),
20145
+ options: localVarRequestOptions,
20146
+ };
20147
+ },
20148
+ /**
20149
+ * Update an existing alert rule
20150
+ * @summary Update alert rule
20151
+ * @param {string} alertRuleId Alert Rule ID
20152
+ * @param {AlertRuleEditRequest} [alertRuleEditRequest]
20153
+ * @param {*} [options] Override http request option.
20154
+ * @throws {RequiredError}
20155
+ */
20156
+ editAlertRule: async (alertRuleId: string, alertRuleEditRequest?: AlertRuleEditRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20157
+ // verify required parameter 'alertRuleId' is not null or undefined
20158
+ assertParamExists('editAlertRule', 'alertRuleId', alertRuleId)
20159
+ const localVarPath = `/api/alert-rules/{alertRuleId}`
20160
+ .replace(`{${"alertRuleId"}}`, encodeURIComponent(String(alertRuleId)));
19661
20161
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
19662
20162
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19663
20163
  let baseOptions;
@@ -19683,7 +20183,7 @@ export const ApplicationConfigurationApiAxiosParamCreator = function (configurat
19683
20183
  setSearchParams(localVarUrlObj, localVarQueryParameter);
19684
20184
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19685
20185
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19686
- localVarRequestOptions.data = serializeDataIfNeeded(applicationNetworkRequest, localVarRequestOptions, configuration)
20186
+ localVarRequestOptions.data = serializeDataIfNeeded(alertRuleEditRequest, localVarRequestOptions, configuration)
19687
20187
 
19688
20188
  return {
19689
20189
  url: toPathString(localVarUrlObj),
@@ -19691,17 +20191,763 @@ export const ApplicationConfigurationApiAxiosParamCreator = function (configurat
19691
20191
  };
19692
20192
  },
19693
20193
  /**
19694
- * Get list and values of the advanced settings of the application. Default values for each setting are available in [our documentation](https://hub.qovery.com/docs/using-qovery/configuration/advanced-settings/)
19695
- * @summary Get advanced settings
19696
- * @param {string} applicationId Application ID
20194
+ * Retrieve a specific alert rule by its ID
20195
+ * @summary Get alert rule
20196
+ * @param {string} alertRuleId Alert Rule ID
19697
20197
  * @param {*} [options] Override http request option.
19698
20198
  * @throws {RequiredError}
19699
20199
  */
19700
- getAdvancedSettings: async (applicationId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19701
- // verify required parameter 'applicationId' is not null or undefined
19702
- assertParamExists('getAdvancedSettings', 'applicationId', applicationId)
19703
- const localVarPath = `/application/{applicationId}/advancedSettings`
19704
- .replace(`{${"applicationId"}}`, encodeURIComponent(String(applicationId)));
20200
+ getAlertRule: async (alertRuleId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20201
+ // verify required parameter 'alertRuleId' is not null or undefined
20202
+ assertParamExists('getAlertRule', 'alertRuleId', alertRuleId)
20203
+ const localVarPath = `/api/alert-rules/{alertRuleId}`
20204
+ .replace(`{${"alertRuleId"}}`, encodeURIComponent(String(alertRuleId)));
20205
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20206
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20207
+ let baseOptions;
20208
+ if (configuration) {
20209
+ baseOptions = configuration.baseOptions;
20210
+ }
20211
+
20212
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
20213
+ const localVarHeaderParameter = {} as any;
20214
+ const localVarQueryParameter = {} as any;
20215
+
20216
+ // authentication ApiKeyAuth required
20217
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
20218
+
20219
+ // authentication bearerAuth required
20220
+ // http bearer authentication required
20221
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
20222
+
20223
+
20224
+
20225
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
20226
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20227
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20228
+
20229
+ return {
20230
+ url: toPathString(localVarUrlObj),
20231
+ options: localVarRequestOptions,
20232
+ };
20233
+ },
20234
+ }
20235
+ };
20236
+
20237
+ /**
20238
+ * AlertRulesApi - functional programming interface
20239
+ * @export
20240
+ */
20241
+ export const AlertRulesApiFp = function(configuration?: Configuration) {
20242
+ const localVarAxiosParamCreator = AlertRulesApiAxiosParamCreator(configuration)
20243
+ return {
20244
+ /**
20245
+ * Create a new alert rule with PromQL expression
20246
+ * @summary Create alert rule
20247
+ * @param {AlertRuleCreationRequest} [alertRuleCreationRequest]
20248
+ * @param {*} [options] Override http request option.
20249
+ * @throws {RequiredError}
20250
+ */
20251
+ async createAlertRule(alertRuleCreationRequest?: AlertRuleCreationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlertRuleResponse>> {
20252
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createAlertRule(alertRuleCreationRequest, options);
20253
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
20254
+ const localVarOperationServerBasePath = operationServerMap['AlertRulesApi.createAlertRule']?.[localVarOperationServerIndex]?.url;
20255
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20256
+ },
20257
+ /**
20258
+ * Delete an alert rule
20259
+ * @summary Delete alert rule
20260
+ * @param {string} alertRuleId Alert Rule ID
20261
+ * @param {*} [options] Override http request option.
20262
+ * @throws {RequiredError}
20263
+ */
20264
+ async deleteAlertRule(alertRuleId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
20265
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAlertRule(alertRuleId, options);
20266
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
20267
+ const localVarOperationServerBasePath = operationServerMap['AlertRulesApi.deleteAlertRule']?.[localVarOperationServerIndex]?.url;
20268
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20269
+ },
20270
+ /**
20271
+ * Update an existing alert rule
20272
+ * @summary Update alert rule
20273
+ * @param {string} alertRuleId Alert Rule ID
20274
+ * @param {AlertRuleEditRequest} [alertRuleEditRequest]
20275
+ * @param {*} [options] Override http request option.
20276
+ * @throws {RequiredError}
20277
+ */
20278
+ async editAlertRule(alertRuleId: string, alertRuleEditRequest?: AlertRuleEditRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlertRuleResponse>> {
20279
+ const localVarAxiosArgs = await localVarAxiosParamCreator.editAlertRule(alertRuleId, alertRuleEditRequest, options);
20280
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
20281
+ const localVarOperationServerBasePath = operationServerMap['AlertRulesApi.editAlertRule']?.[localVarOperationServerIndex]?.url;
20282
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20283
+ },
20284
+ /**
20285
+ * Retrieve a specific alert rule by its ID
20286
+ * @summary Get alert rule
20287
+ * @param {string} alertRuleId Alert Rule ID
20288
+ * @param {*} [options] Override http request option.
20289
+ * @throws {RequiredError}
20290
+ */
20291
+ async getAlertRule(alertRuleId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlertRuleResponse>> {
20292
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAlertRule(alertRuleId, options);
20293
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
20294
+ const localVarOperationServerBasePath = operationServerMap['AlertRulesApi.getAlertRule']?.[localVarOperationServerIndex]?.url;
20295
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20296
+ },
20297
+ }
20298
+ };
20299
+
20300
+ /**
20301
+ * AlertRulesApi - factory interface
20302
+ * @export
20303
+ */
20304
+ export const AlertRulesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
20305
+ const localVarFp = AlertRulesApiFp(configuration)
20306
+ return {
20307
+ /**
20308
+ * Create a new alert rule with PromQL expression
20309
+ * @summary Create alert rule
20310
+ * @param {AlertRuleCreationRequest} [alertRuleCreationRequest]
20311
+ * @param {*} [options] Override http request option.
20312
+ * @throws {RequiredError}
20313
+ */
20314
+ createAlertRule(alertRuleCreationRequest?: AlertRuleCreationRequest, options?: RawAxiosRequestConfig): AxiosPromise<AlertRuleResponse> {
20315
+ return localVarFp.createAlertRule(alertRuleCreationRequest, options).then((request) => request(axios, basePath));
20316
+ },
20317
+ /**
20318
+ * Delete an alert rule
20319
+ * @summary Delete alert rule
20320
+ * @param {string} alertRuleId Alert Rule ID
20321
+ * @param {*} [options] Override http request option.
20322
+ * @throws {RequiredError}
20323
+ */
20324
+ deleteAlertRule(alertRuleId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
20325
+ return localVarFp.deleteAlertRule(alertRuleId, options).then((request) => request(axios, basePath));
20326
+ },
20327
+ /**
20328
+ * Update an existing alert rule
20329
+ * @summary Update alert rule
20330
+ * @param {string} alertRuleId Alert Rule ID
20331
+ * @param {AlertRuleEditRequest} [alertRuleEditRequest]
20332
+ * @param {*} [options] Override http request option.
20333
+ * @throws {RequiredError}
20334
+ */
20335
+ editAlertRule(alertRuleId: string, alertRuleEditRequest?: AlertRuleEditRequest, options?: RawAxiosRequestConfig): AxiosPromise<AlertRuleResponse> {
20336
+ return localVarFp.editAlertRule(alertRuleId, alertRuleEditRequest, options).then((request) => request(axios, basePath));
20337
+ },
20338
+ /**
20339
+ * Retrieve a specific alert rule by its ID
20340
+ * @summary Get alert rule
20341
+ * @param {string} alertRuleId Alert Rule ID
20342
+ * @param {*} [options] Override http request option.
20343
+ * @throws {RequiredError}
20344
+ */
20345
+ getAlertRule(alertRuleId: string, options?: RawAxiosRequestConfig): AxiosPromise<AlertRuleResponse> {
20346
+ return localVarFp.getAlertRule(alertRuleId, options).then((request) => request(axios, basePath));
20347
+ },
20348
+ };
20349
+ };
20350
+
20351
+ /**
20352
+ * AlertRulesApi - object-oriented interface
20353
+ * @export
20354
+ * @class AlertRulesApi
20355
+ * @extends {BaseAPI}
20356
+ */
20357
+ export class AlertRulesApi extends BaseAPI {
20358
+ /**
20359
+ * Create a new alert rule with PromQL expression
20360
+ * @summary Create alert rule
20361
+ * @param {AlertRuleCreationRequest} [alertRuleCreationRequest]
20362
+ * @param {*} [options] Override http request option.
20363
+ * @throws {RequiredError}
20364
+ * @memberof AlertRulesApi
20365
+ */
20366
+ public createAlertRule(alertRuleCreationRequest?: AlertRuleCreationRequest, options?: RawAxiosRequestConfig) {
20367
+ return AlertRulesApiFp(this.configuration).createAlertRule(alertRuleCreationRequest, options).then((request) => request(this.axios, this.basePath));
20368
+ }
20369
+
20370
+ /**
20371
+ * Delete an alert rule
20372
+ * @summary Delete alert rule
20373
+ * @param {string} alertRuleId Alert Rule ID
20374
+ * @param {*} [options] Override http request option.
20375
+ * @throws {RequiredError}
20376
+ * @memberof AlertRulesApi
20377
+ */
20378
+ public deleteAlertRule(alertRuleId: string, options?: RawAxiosRequestConfig) {
20379
+ return AlertRulesApiFp(this.configuration).deleteAlertRule(alertRuleId, options).then((request) => request(this.axios, this.basePath));
20380
+ }
20381
+
20382
+ /**
20383
+ * Update an existing alert rule
20384
+ * @summary Update alert rule
20385
+ * @param {string} alertRuleId Alert Rule ID
20386
+ * @param {AlertRuleEditRequest} [alertRuleEditRequest]
20387
+ * @param {*} [options] Override http request option.
20388
+ * @throws {RequiredError}
20389
+ * @memberof AlertRulesApi
20390
+ */
20391
+ public editAlertRule(alertRuleId: string, alertRuleEditRequest?: AlertRuleEditRequest, options?: RawAxiosRequestConfig) {
20392
+ return AlertRulesApiFp(this.configuration).editAlertRule(alertRuleId, alertRuleEditRequest, options).then((request) => request(this.axios, this.basePath));
20393
+ }
20394
+
20395
+ /**
20396
+ * Retrieve a specific alert rule by its ID
20397
+ * @summary Get alert rule
20398
+ * @param {string} alertRuleId Alert Rule ID
20399
+ * @param {*} [options] Override http request option.
20400
+ * @throws {RequiredError}
20401
+ * @memberof AlertRulesApi
20402
+ */
20403
+ public getAlertRule(alertRuleId: string, options?: RawAxiosRequestConfig) {
20404
+ return AlertRulesApiFp(this.configuration).getAlertRule(alertRuleId, options).then((request) => request(this.axios, this.basePath));
20405
+ }
20406
+ }
20407
+
20408
+
20409
+
20410
+ /**
20411
+ * ApplicationActionsApi - axios parameter creator
20412
+ * @export
20413
+ */
20414
+ export const ApplicationActionsApiAxiosParamCreator = function (configuration?: Configuration) {
20415
+ return {
20416
+ /**
20417
+ * You must provide a git commit id
20418
+ * @summary Deploy application
20419
+ * @param {string} applicationId Application ID
20420
+ * @param {DeployRequest} [deployRequest]
20421
+ * @param {*} [options] Override http request option.
20422
+ * @throws {RequiredError}
20423
+ */
20424
+ deployApplication: async (applicationId: string, deployRequest?: DeployRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20425
+ // verify required parameter 'applicationId' is not null or undefined
20426
+ assertParamExists('deployApplication', 'applicationId', applicationId)
20427
+ const localVarPath = `/application/{applicationId}/deploy`
20428
+ .replace(`{${"applicationId"}}`, encodeURIComponent(String(applicationId)));
20429
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20430
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20431
+ let baseOptions;
20432
+ if (configuration) {
20433
+ baseOptions = configuration.baseOptions;
20434
+ }
20435
+
20436
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
20437
+ const localVarHeaderParameter = {} as any;
20438
+ const localVarQueryParameter = {} as any;
20439
+
20440
+ // authentication ApiKeyAuth required
20441
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
20442
+
20443
+ // authentication bearerAuth required
20444
+ // http bearer authentication required
20445
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
20446
+
20447
+
20448
+
20449
+ localVarHeaderParameter['Content-Type'] = 'application/json';
20450
+
20451
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
20452
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20453
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20454
+ localVarRequestOptions.data = serializeDataIfNeeded(deployRequest, localVarRequestOptions, configuration)
20455
+
20456
+ return {
20457
+ url: toPathString(localVarUrlObj),
20458
+ options: localVarRequestOptions,
20459
+ };
20460
+ },
20461
+ /**
20462
+ *
20463
+ * @summary Reboot application
20464
+ * @param {string} applicationId Application ID
20465
+ * @param {*} [options] Override http request option.
20466
+ * @throws {RequiredError}
20467
+ */
20468
+ rebootApplication: async (applicationId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20469
+ // verify required parameter 'applicationId' is not null or undefined
20470
+ assertParamExists('rebootApplication', 'applicationId', applicationId)
20471
+ const localVarPath = `/application/{applicationId}/restart-service`
20472
+ .replace(`{${"applicationId"}}`, encodeURIComponent(String(applicationId)));
20473
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20474
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20475
+ let baseOptions;
20476
+ if (configuration) {
20477
+ baseOptions = configuration.baseOptions;
20478
+ }
20479
+
20480
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
20481
+ const localVarHeaderParameter = {} as any;
20482
+ const localVarQueryParameter = {} as any;
20483
+
20484
+ // authentication ApiKeyAuth required
20485
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
20486
+
20487
+ // authentication bearerAuth required
20488
+ // http bearer authentication required
20489
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
20490
+
20491
+
20492
+
20493
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
20494
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20495
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20496
+
20497
+ return {
20498
+ url: toPathString(localVarUrlObj),
20499
+ options: localVarRequestOptions,
20500
+ };
20501
+ },
20502
+ /**
20503
+ *
20504
+ * @summary Redeploy application
20505
+ * @param {string} applicationId Application ID
20506
+ * @param {*} [options] Override http request option.
20507
+ * @throws {RequiredError}
20508
+ */
20509
+ redeployApplication: async (applicationId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20510
+ // verify required parameter 'applicationId' is not null or undefined
20511
+ assertParamExists('redeployApplication', 'applicationId', applicationId)
20512
+ const localVarPath = `/application/{applicationId}/redeploy`
20513
+ .replace(`{${"applicationId"}}`, encodeURIComponent(String(applicationId)));
20514
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20515
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20516
+ let baseOptions;
20517
+ if (configuration) {
20518
+ baseOptions = configuration.baseOptions;
20519
+ }
20520
+
20521
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
20522
+ const localVarHeaderParameter = {} as any;
20523
+ const localVarQueryParameter = {} as any;
20524
+
20525
+ // authentication ApiKeyAuth required
20526
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
20527
+
20528
+ // authentication bearerAuth required
20529
+ // http bearer authentication required
20530
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
20531
+
20532
+
20533
+
20534
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
20535
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20536
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20537
+
20538
+ return {
20539
+ url: toPathString(localVarUrlObj),
20540
+ options: localVarRequestOptions,
20541
+ };
20542
+ },
20543
+ /**
20544
+ *
20545
+ * @summary Stop application
20546
+ * @param {string} applicationId Application ID
20547
+ * @param {*} [options] Override http request option.
20548
+ * @throws {RequiredError}
20549
+ */
20550
+ stopApplication: async (applicationId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20551
+ // verify required parameter 'applicationId' is not null or undefined
20552
+ assertParamExists('stopApplication', 'applicationId', applicationId)
20553
+ const localVarPath = `/application/{applicationId}/stop`
20554
+ .replace(`{${"applicationId"}}`, encodeURIComponent(String(applicationId)));
20555
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20556
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20557
+ let baseOptions;
20558
+ if (configuration) {
20559
+ baseOptions = configuration.baseOptions;
20560
+ }
20561
+
20562
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
20563
+ const localVarHeaderParameter = {} as any;
20564
+ const localVarQueryParameter = {} as any;
20565
+
20566
+ // authentication ApiKeyAuth required
20567
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
20568
+
20569
+ // authentication bearerAuth required
20570
+ // http bearer authentication required
20571
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
20572
+
20573
+
20574
+
20575
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
20576
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20577
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20578
+
20579
+ return {
20580
+ url: toPathString(localVarUrlObj),
20581
+ options: localVarRequestOptions,
20582
+ };
20583
+ },
20584
+ /**
20585
+ * Delete the resources of an application but keep the Qovery config.
20586
+ * @summary Uninstall application
20587
+ * @param {string} applicationId Application ID
20588
+ * @param {object} [body]
20589
+ * @param {*} [options] Override http request option.
20590
+ * @throws {RequiredError}
20591
+ */
20592
+ uninstallApplication: async (applicationId: string, body?: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20593
+ // verify required parameter 'applicationId' is not null or undefined
20594
+ assertParamExists('uninstallApplication', 'applicationId', applicationId)
20595
+ const localVarPath = `/application/{applicationId}/uninstall`
20596
+ .replace(`{${"applicationId"}}`, encodeURIComponent(String(applicationId)));
20597
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20598
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20599
+ let baseOptions;
20600
+ if (configuration) {
20601
+ baseOptions = configuration.baseOptions;
20602
+ }
20603
+
20604
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
20605
+ const localVarHeaderParameter = {} as any;
20606
+ const localVarQueryParameter = {} as any;
20607
+
20608
+ // authentication ApiKeyAuth required
20609
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
20610
+
20611
+ // authentication bearerAuth required
20612
+ // http bearer authentication required
20613
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
20614
+
20615
+
20616
+
20617
+ localVarHeaderParameter['Content-Type'] = 'application/json';
20618
+
20619
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
20620
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20621
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20622
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
20623
+
20624
+ return {
20625
+ url: toPathString(localVarUrlObj),
20626
+ options: localVarRequestOptions,
20627
+ };
20628
+ },
20629
+ }
20630
+ };
20631
+
20632
+ /**
20633
+ * ApplicationActionsApi - functional programming interface
20634
+ * @export
20635
+ */
20636
+ export const ApplicationActionsApiFp = function(configuration?: Configuration) {
20637
+ const localVarAxiosParamCreator = ApplicationActionsApiAxiosParamCreator(configuration)
20638
+ return {
20639
+ /**
20640
+ * You must provide a git commit id
20641
+ * @summary Deploy application
20642
+ * @param {string} applicationId Application ID
20643
+ * @param {DeployRequest} [deployRequest]
20644
+ * @param {*} [options] Override http request option.
20645
+ * @throws {RequiredError}
20646
+ */
20647
+ async deployApplication(applicationId: string, deployRequest?: DeployRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Status>> {
20648
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deployApplication(applicationId, deployRequest, options);
20649
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
20650
+ const localVarOperationServerBasePath = operationServerMap['ApplicationActionsApi.deployApplication']?.[localVarOperationServerIndex]?.url;
20651
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20652
+ },
20653
+ /**
20654
+ *
20655
+ * @summary Reboot application
20656
+ * @param {string} applicationId Application ID
20657
+ * @param {*} [options] Override http request option.
20658
+ * @throws {RequiredError}
20659
+ */
20660
+ async rebootApplication(applicationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Status>> {
20661
+ const localVarAxiosArgs = await localVarAxiosParamCreator.rebootApplication(applicationId, options);
20662
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
20663
+ const localVarOperationServerBasePath = operationServerMap['ApplicationActionsApi.rebootApplication']?.[localVarOperationServerIndex]?.url;
20664
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20665
+ },
20666
+ /**
20667
+ *
20668
+ * @summary Redeploy application
20669
+ * @param {string} applicationId Application ID
20670
+ * @param {*} [options] Override http request option.
20671
+ * @throws {RequiredError}
20672
+ */
20673
+ async redeployApplication(applicationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Status>> {
20674
+ const localVarAxiosArgs = await localVarAxiosParamCreator.redeployApplication(applicationId, options);
20675
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
20676
+ const localVarOperationServerBasePath = operationServerMap['ApplicationActionsApi.redeployApplication']?.[localVarOperationServerIndex]?.url;
20677
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20678
+ },
20679
+ /**
20680
+ *
20681
+ * @summary Stop application
20682
+ * @param {string} applicationId Application ID
20683
+ * @param {*} [options] Override http request option.
20684
+ * @throws {RequiredError}
20685
+ */
20686
+ async stopApplication(applicationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Status>> {
20687
+ const localVarAxiosArgs = await localVarAxiosParamCreator.stopApplication(applicationId, options);
20688
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
20689
+ const localVarOperationServerBasePath = operationServerMap['ApplicationActionsApi.stopApplication']?.[localVarOperationServerIndex]?.url;
20690
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20691
+ },
20692
+ /**
20693
+ * Delete the resources of an application but keep the Qovery config.
20694
+ * @summary Uninstall application
20695
+ * @param {string} applicationId Application ID
20696
+ * @param {object} [body]
20697
+ * @param {*} [options] Override http request option.
20698
+ * @throws {RequiredError}
20699
+ */
20700
+ async uninstallApplication(applicationId: string, body?: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Status>> {
20701
+ const localVarAxiosArgs = await localVarAxiosParamCreator.uninstallApplication(applicationId, body, options);
20702
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
20703
+ const localVarOperationServerBasePath = operationServerMap['ApplicationActionsApi.uninstallApplication']?.[localVarOperationServerIndex]?.url;
20704
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20705
+ },
20706
+ }
20707
+ };
20708
+
20709
+ /**
20710
+ * ApplicationActionsApi - factory interface
20711
+ * @export
20712
+ */
20713
+ export const ApplicationActionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
20714
+ const localVarFp = ApplicationActionsApiFp(configuration)
20715
+ return {
20716
+ /**
20717
+ * You must provide a git commit id
20718
+ * @summary Deploy application
20719
+ * @param {string} applicationId Application ID
20720
+ * @param {DeployRequest} [deployRequest]
20721
+ * @param {*} [options] Override http request option.
20722
+ * @throws {RequiredError}
20723
+ */
20724
+ deployApplication(applicationId: string, deployRequest?: DeployRequest, options?: RawAxiosRequestConfig): AxiosPromise<Status> {
20725
+ return localVarFp.deployApplication(applicationId, deployRequest, options).then((request) => request(axios, basePath));
20726
+ },
20727
+ /**
20728
+ *
20729
+ * @summary Reboot application
20730
+ * @param {string} applicationId Application ID
20731
+ * @param {*} [options] Override http request option.
20732
+ * @throws {RequiredError}
20733
+ */
20734
+ rebootApplication(applicationId: string, options?: RawAxiosRequestConfig): AxiosPromise<Status> {
20735
+ return localVarFp.rebootApplication(applicationId, options).then((request) => request(axios, basePath));
20736
+ },
20737
+ /**
20738
+ *
20739
+ * @summary Redeploy application
20740
+ * @param {string} applicationId Application ID
20741
+ * @param {*} [options] Override http request option.
20742
+ * @throws {RequiredError}
20743
+ */
20744
+ redeployApplication(applicationId: string, options?: RawAxiosRequestConfig): AxiosPromise<Status> {
20745
+ return localVarFp.redeployApplication(applicationId, options).then((request) => request(axios, basePath));
20746
+ },
20747
+ /**
20748
+ *
20749
+ * @summary Stop application
20750
+ * @param {string} applicationId Application ID
20751
+ * @param {*} [options] Override http request option.
20752
+ * @throws {RequiredError}
20753
+ */
20754
+ stopApplication(applicationId: string, options?: RawAxiosRequestConfig): AxiosPromise<Status> {
20755
+ return localVarFp.stopApplication(applicationId, options).then((request) => request(axios, basePath));
20756
+ },
20757
+ /**
20758
+ * Delete the resources of an application but keep the Qovery config.
20759
+ * @summary Uninstall application
20760
+ * @param {string} applicationId Application ID
20761
+ * @param {object} [body]
20762
+ * @param {*} [options] Override http request option.
20763
+ * @throws {RequiredError}
20764
+ */
20765
+ uninstallApplication(applicationId: string, body?: object, options?: RawAxiosRequestConfig): AxiosPromise<Status> {
20766
+ return localVarFp.uninstallApplication(applicationId, body, options).then((request) => request(axios, basePath));
20767
+ },
20768
+ };
20769
+ };
20770
+
20771
+ /**
20772
+ * ApplicationActionsApi - object-oriented interface
20773
+ * @export
20774
+ * @class ApplicationActionsApi
20775
+ * @extends {BaseAPI}
20776
+ */
20777
+ export class ApplicationActionsApi extends BaseAPI {
20778
+ /**
20779
+ * You must provide a git commit id
20780
+ * @summary Deploy application
20781
+ * @param {string} applicationId Application ID
20782
+ * @param {DeployRequest} [deployRequest]
20783
+ * @param {*} [options] Override http request option.
20784
+ * @throws {RequiredError}
20785
+ * @memberof ApplicationActionsApi
20786
+ */
20787
+ public deployApplication(applicationId: string, deployRequest?: DeployRequest, options?: RawAxiosRequestConfig) {
20788
+ return ApplicationActionsApiFp(this.configuration).deployApplication(applicationId, deployRequest, options).then((request) => request(this.axios, this.basePath));
20789
+ }
20790
+
20791
+ /**
20792
+ *
20793
+ * @summary Reboot application
20794
+ * @param {string} applicationId Application ID
20795
+ * @param {*} [options] Override http request option.
20796
+ * @throws {RequiredError}
20797
+ * @memberof ApplicationActionsApi
20798
+ */
20799
+ public rebootApplication(applicationId: string, options?: RawAxiosRequestConfig) {
20800
+ return ApplicationActionsApiFp(this.configuration).rebootApplication(applicationId, options).then((request) => request(this.axios, this.basePath));
20801
+ }
20802
+
20803
+ /**
20804
+ *
20805
+ * @summary Redeploy application
20806
+ * @param {string} applicationId Application ID
20807
+ * @param {*} [options] Override http request option.
20808
+ * @throws {RequiredError}
20809
+ * @memberof ApplicationActionsApi
20810
+ */
20811
+ public redeployApplication(applicationId: string, options?: RawAxiosRequestConfig) {
20812
+ return ApplicationActionsApiFp(this.configuration).redeployApplication(applicationId, options).then((request) => request(this.axios, this.basePath));
20813
+ }
20814
+
20815
+ /**
20816
+ *
20817
+ * @summary Stop application
20818
+ * @param {string} applicationId Application ID
20819
+ * @param {*} [options] Override http request option.
20820
+ * @throws {RequiredError}
20821
+ * @memberof ApplicationActionsApi
20822
+ */
20823
+ public stopApplication(applicationId: string, options?: RawAxiosRequestConfig) {
20824
+ return ApplicationActionsApiFp(this.configuration).stopApplication(applicationId, options).then((request) => request(this.axios, this.basePath));
20825
+ }
20826
+
20827
+ /**
20828
+ * Delete the resources of an application but keep the Qovery config.
20829
+ * @summary Uninstall application
20830
+ * @param {string} applicationId Application ID
20831
+ * @param {object} [body]
20832
+ * @param {*} [options] Override http request option.
20833
+ * @throws {RequiredError}
20834
+ * @memberof ApplicationActionsApi
20835
+ */
20836
+ public uninstallApplication(applicationId: string, body?: object, options?: RawAxiosRequestConfig) {
20837
+ return ApplicationActionsApiFp(this.configuration).uninstallApplication(applicationId, body, options).then((request) => request(this.axios, this.basePath));
20838
+ }
20839
+ }
20840
+
20841
+
20842
+
20843
+ /**
20844
+ * ApplicationConfigurationApi - axios parameter creator
20845
+ * @export
20846
+ */
20847
+ export const ApplicationConfigurationApiAxiosParamCreator = function (configuration?: Configuration) {
20848
+ return {
20849
+ /**
20850
+ * Edit advanced settings by returning table of advanced settings.
20851
+ * @summary Edit advanced settings
20852
+ * @param {string} applicationId Application ID
20853
+ * @param {ApplicationAdvancedSettings} [applicationAdvancedSettings]
20854
+ * @param {*} [options] Override http request option.
20855
+ * @throws {RequiredError}
20856
+ */
20857
+ editAdvancedSettings: async (applicationId: string, applicationAdvancedSettings?: ApplicationAdvancedSettings, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20858
+ // verify required parameter 'applicationId' is not null or undefined
20859
+ assertParamExists('editAdvancedSettings', 'applicationId', applicationId)
20860
+ const localVarPath = `/application/{applicationId}/advancedSettings`
20861
+ .replace(`{${"applicationId"}}`, encodeURIComponent(String(applicationId)));
20862
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20863
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20864
+ let baseOptions;
20865
+ if (configuration) {
20866
+ baseOptions = configuration.baseOptions;
20867
+ }
20868
+
20869
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
20870
+ const localVarHeaderParameter = {} as any;
20871
+ const localVarQueryParameter = {} as any;
20872
+
20873
+ // authentication ApiKeyAuth required
20874
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
20875
+
20876
+ // authentication bearerAuth required
20877
+ // http bearer authentication required
20878
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
20879
+
20880
+
20881
+
20882
+ localVarHeaderParameter['Content-Type'] = 'application/json';
20883
+
20884
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
20885
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20886
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20887
+ localVarRequestOptions.data = serializeDataIfNeeded(applicationAdvancedSettings, localVarRequestOptions, configuration)
20888
+
20889
+ return {
20890
+ url: toPathString(localVarUrlObj),
20891
+ options: localVarRequestOptions,
20892
+ };
20893
+ },
20894
+ /**
20895
+ * Edit the Network settings of the application.
20896
+ * @summary Edit Application Network
20897
+ * @param {string} applicationId Application ID
20898
+ * @param {ApplicationNetworkRequest} [applicationNetworkRequest]
20899
+ * @param {*} [options] Override http request option.
20900
+ * @throws {RequiredError}
20901
+ */
20902
+ editApplicationNetwork: async (applicationId: string, applicationNetworkRequest?: ApplicationNetworkRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20903
+ // verify required parameter 'applicationId' is not null or undefined
20904
+ assertParamExists('editApplicationNetwork', 'applicationId', applicationId)
20905
+ const localVarPath = `/application/{applicationId}/network`
20906
+ .replace(`{${"applicationId"}}`, encodeURIComponent(String(applicationId)));
20907
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20908
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20909
+ let baseOptions;
20910
+ if (configuration) {
20911
+ baseOptions = configuration.baseOptions;
20912
+ }
20913
+
20914
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
20915
+ const localVarHeaderParameter = {} as any;
20916
+ const localVarQueryParameter = {} as any;
20917
+
20918
+ // authentication ApiKeyAuth required
20919
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
20920
+
20921
+ // authentication bearerAuth required
20922
+ // http bearer authentication required
20923
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
20924
+
20925
+
20926
+
20927
+ localVarHeaderParameter['Content-Type'] = 'application/json';
20928
+
20929
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
20930
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20931
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20932
+ localVarRequestOptions.data = serializeDataIfNeeded(applicationNetworkRequest, localVarRequestOptions, configuration)
20933
+
20934
+ return {
20935
+ url: toPathString(localVarUrlObj),
20936
+ options: localVarRequestOptions,
20937
+ };
20938
+ },
20939
+ /**
20940
+ * Get list and values of the advanced settings of the application. Default values for each setting are available in [our documentation](https://hub.qovery.com/docs/using-qovery/configuration/advanced-settings/)
20941
+ * @summary Get advanced settings
20942
+ * @param {string} applicationId Application ID
20943
+ * @param {*} [options] Override http request option.
20944
+ * @throws {RequiredError}
20945
+ */
20946
+ getAdvancedSettings: async (applicationId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20947
+ // verify required parameter 'applicationId' is not null or undefined
20948
+ assertParamExists('getAdvancedSettings', 'applicationId', applicationId)
20949
+ const localVarPath = `/application/{applicationId}/advancedSettings`
20950
+ .replace(`{${"applicationId"}}`, encodeURIComponent(String(applicationId)));
19705
20951
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
19706
20952
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19707
20953
  let baseOptions;
@@ -60100,6 +61346,43 @@ export const TerraformMainCallsApiAxiosParamCreator = function (configuration?:
60100
61346
 
60101
61347
 
60102
61348
 
61349
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
61350
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
61351
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
61352
+
61353
+ return {
61354
+ url: toPathString(localVarUrlObj),
61355
+ options: localVarRequestOptions,
61356
+ };
61357
+ },
61358
+ /**
61359
+ *
61360
+ * @summary List available Terraform versions
61361
+ * @param {*} [options] Override http request option.
61362
+ * @throws {RequiredError}
61363
+ */
61364
+ listTerraformVersions: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
61365
+ const localVarPath = `/terraform/available-versions`;
61366
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
61367
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
61368
+ let baseOptions;
61369
+ if (configuration) {
61370
+ baseOptions = configuration.baseOptions;
61371
+ }
61372
+
61373
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
61374
+ const localVarHeaderParameter = {} as any;
61375
+ const localVarQueryParameter = {} as any;
61376
+
61377
+ // authentication ApiKeyAuth required
61378
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
61379
+
61380
+ // authentication bearerAuth required
61381
+ // http bearer authentication required
61382
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
61383
+
61384
+
61385
+
60103
61386
  setSearchParams(localVarUrlObj, localVarQueryParameter);
60104
61387
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
60105
61388
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -60174,6 +61457,18 @@ export const TerraformMainCallsApiFp = function(configuration?: Configuration) {
60174
61457
  const localVarOperationServerBasePath = operationServerMap['TerraformMainCallsApi.listTerraformCommit']?.[localVarOperationServerIndex]?.url;
60175
61458
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
60176
61459
  },
61460
+ /**
61461
+ *
61462
+ * @summary List available Terraform versions
61463
+ * @param {*} [options] Override http request option.
61464
+ * @throws {RequiredError}
61465
+ */
61466
+ async listTerraformVersions(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TerraformVersionResponseList>> {
61467
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listTerraformVersions(options);
61468
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
61469
+ const localVarOperationServerBasePath = operationServerMap['TerraformMainCallsApi.listTerraformVersions']?.[localVarOperationServerIndex]?.url;
61470
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
61471
+ },
60177
61472
  }
60178
61473
  };
60179
61474
 
@@ -60227,6 +61522,15 @@ export const TerraformMainCallsApiFactory = function (configuration?: Configurat
60227
61522
  listTerraformCommit(terraformId: string, options?: RawAxiosRequestConfig): AxiosPromise<CommitResponseList> {
60228
61523
  return localVarFp.listTerraformCommit(terraformId, options).then((request) => request(axios, basePath));
60229
61524
  },
61525
+ /**
61526
+ *
61527
+ * @summary List available Terraform versions
61528
+ * @param {*} [options] Override http request option.
61529
+ * @throws {RequiredError}
61530
+ */
61531
+ listTerraformVersions(options?: RawAxiosRequestConfig): AxiosPromise<TerraformVersionResponseList> {
61532
+ return localVarFp.listTerraformVersions(options).then((request) => request(axios, basePath));
61533
+ },
60230
61534
  };
60231
61535
  };
60232
61536
 
@@ -60287,6 +61591,17 @@ export class TerraformMainCallsApi extends BaseAPI {
60287
61591
  public listTerraformCommit(terraformId: string, options?: RawAxiosRequestConfig) {
60288
61592
  return TerraformMainCallsApiFp(this.configuration).listTerraformCommit(terraformId, options).then((request) => request(this.axios, this.basePath));
60289
61593
  }
61594
+
61595
+ /**
61596
+ *
61597
+ * @summary List available Terraform versions
61598
+ * @param {*} [options] Override http request option.
61599
+ * @throws {RequiredError}
61600
+ * @memberof TerraformMainCallsApi
61601
+ */
61602
+ public listTerraformVersions(options?: RawAxiosRequestConfig) {
61603
+ return TerraformMainCallsApiFp(this.configuration).listTerraformVersions(options).then((request) => request(this.axios, this.basePath));
61604
+ }
60290
61605
  }
60291
61606
 
60292
61607