qovery-typescript-axios 1.1.568 → 1.1.570

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
@@ -3380,6 +3380,19 @@ export interface ClusterLogsResponseList {
3380
3380
  */
3381
3381
  'results'?: Array<ClusterLogs>;
3382
3382
  }
3383
+ /**
3384
+ *
3385
+ * @export
3386
+ * @interface ClusterMetricsResponse
3387
+ */
3388
+ export interface ClusterMetricsResponse {
3389
+ /**
3390
+ *
3391
+ * @type {string}
3392
+ * @memberof ClusterMetricsResponse
3393
+ */
3394
+ 'metrics'?: string;
3395
+ }
3383
3396
  /**
3384
3397
  *
3385
3398
  * @export
@@ -3632,6 +3645,7 @@ export const ClusterStateEnum = {
3632
3645
  DEPLOYING: 'DEPLOYING',
3633
3646
  DEPLOYMENT_ERROR: 'DEPLOYMENT_ERROR',
3634
3647
  DEPLOYMENT_QUEUED: 'DEPLOYMENT_QUEUED',
3648
+ DRY_RUN: 'DRY_RUN',
3635
3649
  QUEUED: 'QUEUED',
3636
3650
  READY: 'READY',
3637
3651
  STOPPED: 'STOPPED',
@@ -26722,6 +26736,96 @@ export const ClustersApiAxiosParamCreator = function (configuration?: Configurat
26722
26736
 
26723
26737
 
26724
26738
 
26739
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
26740
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26741
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
26742
+
26743
+ return {
26744
+ url: toPathString(localVarUrlObj),
26745
+ options: localVarRequestOptions,
26746
+ };
26747
+ },
26748
+ /**
26749
+ * Fetch cluster metrics
26750
+ * @summary Fetch cluster metrics
26751
+ * @param {string} clusterId Cluster ID
26752
+ * @param {string} endpoint
26753
+ * @param {string} query
26754
+ * @param {string} [start]
26755
+ * @param {string} [end]
26756
+ * @param {string} [step]
26757
+ * @param {string} [time]
26758
+ * @param {string} [timeout]
26759
+ * @param {string} [dedup]
26760
+ * @param {string} [partialResponse]
26761
+ * @param {*} [options] Override http request option.
26762
+ * @throws {RequiredError}
26763
+ */
26764
+ getClusterMetrics: async (clusterId: string, endpoint: string, query: string, start?: string, end?: string, step?: string, time?: string, timeout?: string, dedup?: string, partialResponse?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
26765
+ // verify required parameter 'clusterId' is not null or undefined
26766
+ assertParamExists('getClusterMetrics', 'clusterId', clusterId)
26767
+ // verify required parameter 'endpoint' is not null or undefined
26768
+ assertParamExists('getClusterMetrics', 'endpoint', endpoint)
26769
+ // verify required parameter 'query' is not null or undefined
26770
+ assertParamExists('getClusterMetrics', 'query', query)
26771
+ const localVarPath = `/cluster/{clusterId}/metrics`
26772
+ .replace(`{${"clusterId"}}`, encodeURIComponent(String(clusterId)));
26773
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
26774
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26775
+ let baseOptions;
26776
+ if (configuration) {
26777
+ baseOptions = configuration.baseOptions;
26778
+ }
26779
+
26780
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
26781
+ const localVarHeaderParameter = {} as any;
26782
+ const localVarQueryParameter = {} as any;
26783
+
26784
+ // authentication ApiKeyAuth required
26785
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
26786
+
26787
+ // authentication bearerAuth required
26788
+ // http bearer authentication required
26789
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
26790
+
26791
+ if (endpoint !== undefined) {
26792
+ localVarQueryParameter['endpoint'] = endpoint;
26793
+ }
26794
+
26795
+ if (query !== undefined) {
26796
+ localVarQueryParameter['query'] = query;
26797
+ }
26798
+
26799
+ if (start !== undefined) {
26800
+ localVarQueryParameter['start'] = start;
26801
+ }
26802
+
26803
+ if (end !== undefined) {
26804
+ localVarQueryParameter['end'] = end;
26805
+ }
26806
+
26807
+ if (step !== undefined) {
26808
+ localVarQueryParameter['step'] = step;
26809
+ }
26810
+
26811
+ if (time !== undefined) {
26812
+ localVarQueryParameter['time'] = time;
26813
+ }
26814
+
26815
+ if (timeout !== undefined) {
26816
+ localVarQueryParameter['timeout'] = timeout;
26817
+ }
26818
+
26819
+ if (dedup !== undefined) {
26820
+ localVarQueryParameter['dedup'] = dedup;
26821
+ }
26822
+
26823
+ if (partialResponse !== undefined) {
26824
+ localVarQueryParameter['partial_response'] = partialResponse;
26825
+ }
26826
+
26827
+
26828
+
26725
26829
  setSearchParams(localVarUrlObj, localVarQueryParameter);
26726
26830
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26727
26831
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -27550,6 +27654,28 @@ export const ClustersApiFp = function(configuration?: Configuration) {
27550
27654
  const localVarOperationServerBasePath = operationServerMap['ClustersApi.getClusterKubernetesEvents']?.[localVarOperationServerIndex]?.url;
27551
27655
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27552
27656
  },
27657
+ /**
27658
+ * Fetch cluster metrics
27659
+ * @summary Fetch cluster metrics
27660
+ * @param {string} clusterId Cluster ID
27661
+ * @param {string} endpoint
27662
+ * @param {string} query
27663
+ * @param {string} [start]
27664
+ * @param {string} [end]
27665
+ * @param {string} [step]
27666
+ * @param {string} [time]
27667
+ * @param {string} [timeout]
27668
+ * @param {string} [dedup]
27669
+ * @param {string} [partialResponse]
27670
+ * @param {*} [options] Override http request option.
27671
+ * @throws {RequiredError}
27672
+ */
27673
+ async getClusterMetrics(clusterId: string, endpoint: string, query: string, start?: string, end?: string, step?: string, time?: string, timeout?: string, dedup?: string, partialResponse?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterMetricsResponse>> {
27674
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterMetrics(clusterId, endpoint, query, start, end, step, time, timeout, dedup, partialResponse, options);
27675
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
27676
+ const localVarOperationServerBasePath = operationServerMap['ClustersApi.getClusterMetrics']?.[localVarOperationServerIndex]?.url;
27677
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27678
+ },
27553
27679
  /**
27554
27680
  *
27555
27681
  * @summary Know if a cluster is ready to be deployed or not
@@ -27886,6 +28012,25 @@ export const ClustersApiFactory = function (configuration?: Configuration, baseP
27886
28012
  getClusterKubernetesEvents(clusterId: string, fromDateTime: string, toDateTime: string, nodeName?: string, podName?: string, options?: RawAxiosRequestConfig): AxiosPromise<GetClusterKubernetesEvents200Response> {
27887
28013
  return localVarFp.getClusterKubernetesEvents(clusterId, fromDateTime, toDateTime, nodeName, podName, options).then((request) => request(axios, basePath));
27888
28014
  },
28015
+ /**
28016
+ * Fetch cluster metrics
28017
+ * @summary Fetch cluster metrics
28018
+ * @param {string} clusterId Cluster ID
28019
+ * @param {string} endpoint
28020
+ * @param {string} query
28021
+ * @param {string} [start]
28022
+ * @param {string} [end]
28023
+ * @param {string} [step]
28024
+ * @param {string} [time]
28025
+ * @param {string} [timeout]
28026
+ * @param {string} [dedup]
28027
+ * @param {string} [partialResponse]
28028
+ * @param {*} [options] Override http request option.
28029
+ * @throws {RequiredError}
28030
+ */
28031
+ getClusterMetrics(clusterId: string, endpoint: string, query: string, start?: string, end?: string, step?: string, time?: string, timeout?: string, dedup?: string, partialResponse?: string, options?: RawAxiosRequestConfig): AxiosPromise<ClusterMetricsResponse> {
28032
+ return localVarFp.getClusterMetrics(clusterId, endpoint, query, start, end, step, time, timeout, dedup, partialResponse, options).then((request) => request(axios, basePath));
28033
+ },
27889
28034
  /**
27890
28035
  *
27891
28036
  * @summary Know if a cluster is ready to be deployed or not
@@ -28197,6 +28342,27 @@ export class ClustersApi extends BaseAPI {
28197
28342
  return ClustersApiFp(this.configuration).getClusterKubernetesEvents(clusterId, fromDateTime, toDateTime, nodeName, podName, options).then((request) => request(this.axios, this.basePath));
28198
28343
  }
28199
28344
 
28345
+ /**
28346
+ * Fetch cluster metrics
28347
+ * @summary Fetch cluster metrics
28348
+ * @param {string} clusterId Cluster ID
28349
+ * @param {string} endpoint
28350
+ * @param {string} query
28351
+ * @param {string} [start]
28352
+ * @param {string} [end]
28353
+ * @param {string} [step]
28354
+ * @param {string} [time]
28355
+ * @param {string} [timeout]
28356
+ * @param {string} [dedup]
28357
+ * @param {string} [partialResponse]
28358
+ * @param {*} [options] Override http request option.
28359
+ * @throws {RequiredError}
28360
+ * @memberof ClustersApi
28361
+ */
28362
+ public getClusterMetrics(clusterId: string, endpoint: string, query: string, start?: string, end?: string, step?: string, time?: string, timeout?: string, dedup?: string, partialResponse?: string, options?: RawAxiosRequestConfig) {
28363
+ return ClustersApiFp(this.configuration).getClusterMetrics(clusterId, endpoint, query, start, end, step, time, timeout, dedup, partialResponse, options).then((request) => request(this.axios, this.basePath));
28364
+ }
28365
+
28200
28366
  /**
28201
28367
  *
28202
28368
  * @summary Know if a cluster is ready to be deployed or not
package/dist/api.d.ts CHANGED
@@ -3292,6 +3292,19 @@ export interface ClusterLogsResponseList {
3292
3292
  */
3293
3293
  'results'?: Array<ClusterLogs>;
3294
3294
  }
3295
+ /**
3296
+ *
3297
+ * @export
3298
+ * @interface ClusterMetricsResponse
3299
+ */
3300
+ export interface ClusterMetricsResponse {
3301
+ /**
3302
+ *
3303
+ * @type {string}
3304
+ * @memberof ClusterMetricsResponse
3305
+ */
3306
+ 'metrics'?: string;
3307
+ }
3295
3308
  /**
3296
3309
  *
3297
3310
  * @export
@@ -3540,6 +3553,7 @@ export declare const ClusterStateEnum: {
3540
3553
  readonly DEPLOYING: "DEPLOYING";
3541
3554
  readonly DEPLOYMENT_ERROR: "DEPLOYMENT_ERROR";
3542
3555
  readonly DEPLOYMENT_QUEUED: "DEPLOYMENT_QUEUED";
3556
+ readonly DRY_RUN: "DRY_RUN";
3543
3557
  readonly QUEUED: "QUEUED";
3544
3558
  readonly READY: "READY";
3545
3559
  readonly STOPPED: "STOPPED";
@@ -20893,6 +20907,23 @@ export declare const ClustersApiAxiosParamCreator: (configuration?: Configuratio
20893
20907
  * @throws {RequiredError}
20894
20908
  */
20895
20909
  getClusterKubernetesEvents: (clusterId: string, fromDateTime: string, toDateTime: string, nodeName?: string, podName?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20910
+ /**
20911
+ * Fetch cluster metrics
20912
+ * @summary Fetch cluster metrics
20913
+ * @param {string} clusterId Cluster ID
20914
+ * @param {string} endpoint
20915
+ * @param {string} query
20916
+ * @param {string} [start]
20917
+ * @param {string} [end]
20918
+ * @param {string} [step]
20919
+ * @param {string} [time]
20920
+ * @param {string} [timeout]
20921
+ * @param {string} [dedup]
20922
+ * @param {string} [partialResponse]
20923
+ * @param {*} [options] Override http request option.
20924
+ * @throws {RequiredError}
20925
+ */
20926
+ getClusterMetrics: (clusterId: string, endpoint: string, query: string, start?: string, end?: string, step?: string, time?: string, timeout?: string, dedup?: string, partialResponse?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20896
20927
  /**
20897
20928
  *
20898
20929
  * @summary Know if a cluster is ready to be deployed or not
@@ -21130,6 +21161,23 @@ export declare const ClustersApiFp: (configuration?: Configuration) => {
21130
21161
  * @throws {RequiredError}
21131
21162
  */
21132
21163
  getClusterKubernetesEvents(clusterId: string, fromDateTime: string, toDateTime: string, nodeName?: string, podName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetClusterKubernetesEvents200Response>>;
21164
+ /**
21165
+ * Fetch cluster metrics
21166
+ * @summary Fetch cluster metrics
21167
+ * @param {string} clusterId Cluster ID
21168
+ * @param {string} endpoint
21169
+ * @param {string} query
21170
+ * @param {string} [start]
21171
+ * @param {string} [end]
21172
+ * @param {string} [step]
21173
+ * @param {string} [time]
21174
+ * @param {string} [timeout]
21175
+ * @param {string} [dedup]
21176
+ * @param {string} [partialResponse]
21177
+ * @param {*} [options] Override http request option.
21178
+ * @throws {RequiredError}
21179
+ */
21180
+ getClusterMetrics(clusterId: string, endpoint: string, query: string, start?: string, end?: string, step?: string, time?: string, timeout?: string, dedup?: string, partialResponse?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterMetricsResponse>>;
21133
21181
  /**
21134
21182
  *
21135
21183
  * @summary Know if a cluster is ready to be deployed or not
@@ -21367,6 +21415,23 @@ export declare const ClustersApiFactory: (configuration?: Configuration, basePat
21367
21415
  * @throws {RequiredError}
21368
21416
  */
21369
21417
  getClusterKubernetesEvents(clusterId: string, fromDateTime: string, toDateTime: string, nodeName?: string, podName?: string, options?: RawAxiosRequestConfig): AxiosPromise<GetClusterKubernetesEvents200Response>;
21418
+ /**
21419
+ * Fetch cluster metrics
21420
+ * @summary Fetch cluster metrics
21421
+ * @param {string} clusterId Cluster ID
21422
+ * @param {string} endpoint
21423
+ * @param {string} query
21424
+ * @param {string} [start]
21425
+ * @param {string} [end]
21426
+ * @param {string} [step]
21427
+ * @param {string} [time]
21428
+ * @param {string} [timeout]
21429
+ * @param {string} [dedup]
21430
+ * @param {string} [partialResponse]
21431
+ * @param {*} [options] Override http request option.
21432
+ * @throws {RequiredError}
21433
+ */
21434
+ getClusterMetrics(clusterId: string, endpoint: string, query: string, start?: string, end?: string, step?: string, time?: string, timeout?: string, dedup?: string, partialResponse?: string, options?: RawAxiosRequestConfig): AxiosPromise<ClusterMetricsResponse>;
21370
21435
  /**
21371
21436
  *
21372
21437
  * @summary Know if a cluster is ready to be deployed or not
@@ -21616,6 +21681,24 @@ export declare class ClustersApi extends BaseAPI {
21616
21681
  * @memberof ClustersApi
21617
21682
  */
21618
21683
  getClusterKubernetesEvents(clusterId: string, fromDateTime: string, toDateTime: string, nodeName?: string, podName?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetClusterKubernetesEvents200Response, any>>;
21684
+ /**
21685
+ * Fetch cluster metrics
21686
+ * @summary Fetch cluster metrics
21687
+ * @param {string} clusterId Cluster ID
21688
+ * @param {string} endpoint
21689
+ * @param {string} query
21690
+ * @param {string} [start]
21691
+ * @param {string} [end]
21692
+ * @param {string} [step]
21693
+ * @param {string} [time]
21694
+ * @param {string} [timeout]
21695
+ * @param {string} [dedup]
21696
+ * @param {string} [partialResponse]
21697
+ * @param {*} [options] Override http request option.
21698
+ * @throws {RequiredError}
21699
+ * @memberof ClustersApi
21700
+ */
21701
+ getClusterMetrics(clusterId: string, endpoint: string, query: string, start?: string, end?: string, step?: string, time?: string, timeout?: string, dedup?: string, partialResponse?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ClusterMetricsResponse, any>>;
21619
21702
  /**
21620
21703
  *
21621
21704
  * @summary Know if a cluster is ready to be deployed or not
package/dist/api.js CHANGED
@@ -214,6 +214,7 @@ exports.ClusterStateEnum = {
214
214
  DEPLOYING: 'DEPLOYING',
215
215
  DEPLOYMENT_ERROR: 'DEPLOYMENT_ERROR',
216
216
  DEPLOYMENT_QUEUED: 'DEPLOYMENT_QUEUED',
217
+ DRY_RUN: 'DRY_RUN',
217
218
  QUEUED: 'QUEUED',
218
219
  READY: 'READY',
219
220
  STOPPED: 'STOPPED',
@@ -9770,6 +9771,80 @@ const ClustersApiAxiosParamCreator = function (configuration) {
9770
9771
  options: localVarRequestOptions,
9771
9772
  };
9772
9773
  }),
9774
+ /**
9775
+ * Fetch cluster metrics
9776
+ * @summary Fetch cluster metrics
9777
+ * @param {string} clusterId Cluster ID
9778
+ * @param {string} endpoint
9779
+ * @param {string} query
9780
+ * @param {string} [start]
9781
+ * @param {string} [end]
9782
+ * @param {string} [step]
9783
+ * @param {string} [time]
9784
+ * @param {string} [timeout]
9785
+ * @param {string} [dedup]
9786
+ * @param {string} [partialResponse]
9787
+ * @param {*} [options] Override http request option.
9788
+ * @throws {RequiredError}
9789
+ */
9790
+ getClusterMetrics: (clusterId_1, endpoint_1, query_1, start_1, end_1, step_1, time_1, timeout_1, dedup_1, partialResponse_1, ...args_1) => __awaiter(this, [clusterId_1, endpoint_1, query_1, start_1, end_1, step_1, time_1, timeout_1, dedup_1, partialResponse_1, ...args_1], void 0, function* (clusterId, endpoint, query, start, end, step, time, timeout, dedup, partialResponse, options = {}) {
9791
+ // verify required parameter 'clusterId' is not null or undefined
9792
+ (0, common_1.assertParamExists)('getClusterMetrics', 'clusterId', clusterId);
9793
+ // verify required parameter 'endpoint' is not null or undefined
9794
+ (0, common_1.assertParamExists)('getClusterMetrics', 'endpoint', endpoint);
9795
+ // verify required parameter 'query' is not null or undefined
9796
+ (0, common_1.assertParamExists)('getClusterMetrics', 'query', query);
9797
+ const localVarPath = `/cluster/{clusterId}/metrics`
9798
+ .replace(`{${"clusterId"}}`, encodeURIComponent(String(clusterId)));
9799
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9800
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9801
+ let baseOptions;
9802
+ if (configuration) {
9803
+ baseOptions = configuration.baseOptions;
9804
+ }
9805
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
9806
+ const localVarHeaderParameter = {};
9807
+ const localVarQueryParameter = {};
9808
+ // authentication ApiKeyAuth required
9809
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
9810
+ // authentication bearerAuth required
9811
+ // http bearer authentication required
9812
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
9813
+ if (endpoint !== undefined) {
9814
+ localVarQueryParameter['endpoint'] = endpoint;
9815
+ }
9816
+ if (query !== undefined) {
9817
+ localVarQueryParameter['query'] = query;
9818
+ }
9819
+ if (start !== undefined) {
9820
+ localVarQueryParameter['start'] = start;
9821
+ }
9822
+ if (end !== undefined) {
9823
+ localVarQueryParameter['end'] = end;
9824
+ }
9825
+ if (step !== undefined) {
9826
+ localVarQueryParameter['step'] = step;
9827
+ }
9828
+ if (time !== undefined) {
9829
+ localVarQueryParameter['time'] = time;
9830
+ }
9831
+ if (timeout !== undefined) {
9832
+ localVarQueryParameter['timeout'] = timeout;
9833
+ }
9834
+ if (dedup !== undefined) {
9835
+ localVarQueryParameter['dedup'] = dedup;
9836
+ }
9837
+ if (partialResponse !== undefined) {
9838
+ localVarQueryParameter['partial_response'] = partialResponse;
9839
+ }
9840
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9841
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9842
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9843
+ return {
9844
+ url: (0, common_1.toPathString)(localVarUrlObj),
9845
+ options: localVarRequestOptions,
9846
+ };
9847
+ }),
9773
9848
  /**
9774
9849
  *
9775
9850
  * @summary Know if a cluster is ready to be deployed or not
@@ -10511,6 +10586,31 @@ const ClustersApiFp = function (configuration) {
10511
10586
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10512
10587
  });
10513
10588
  },
10589
+ /**
10590
+ * Fetch cluster metrics
10591
+ * @summary Fetch cluster metrics
10592
+ * @param {string} clusterId Cluster ID
10593
+ * @param {string} endpoint
10594
+ * @param {string} query
10595
+ * @param {string} [start]
10596
+ * @param {string} [end]
10597
+ * @param {string} [step]
10598
+ * @param {string} [time]
10599
+ * @param {string} [timeout]
10600
+ * @param {string} [dedup]
10601
+ * @param {string} [partialResponse]
10602
+ * @param {*} [options] Override http request option.
10603
+ * @throws {RequiredError}
10604
+ */
10605
+ getClusterMetrics(clusterId, endpoint, query, start, end, step, time, timeout, dedup, partialResponse, options) {
10606
+ return __awaiter(this, void 0, void 0, function* () {
10607
+ var _a, _b, _c;
10608
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClusterMetrics(clusterId, endpoint, query, start, end, step, time, timeout, dedup, partialResponse, options);
10609
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
10610
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClustersApi.getClusterMetrics']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
10611
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10612
+ });
10613
+ },
10514
10614
  /**
10515
10615
  *
10516
10616
  * @summary Know if a cluster is ready to be deployed or not
@@ -10892,6 +10992,25 @@ const ClustersApiFactory = function (configuration, basePath, axios) {
10892
10992
  getClusterKubernetesEvents(clusterId, fromDateTime, toDateTime, nodeName, podName, options) {
10893
10993
  return localVarFp.getClusterKubernetesEvents(clusterId, fromDateTime, toDateTime, nodeName, podName, options).then((request) => request(axios, basePath));
10894
10994
  },
10995
+ /**
10996
+ * Fetch cluster metrics
10997
+ * @summary Fetch cluster metrics
10998
+ * @param {string} clusterId Cluster ID
10999
+ * @param {string} endpoint
11000
+ * @param {string} query
11001
+ * @param {string} [start]
11002
+ * @param {string} [end]
11003
+ * @param {string} [step]
11004
+ * @param {string} [time]
11005
+ * @param {string} [timeout]
11006
+ * @param {string} [dedup]
11007
+ * @param {string} [partialResponse]
11008
+ * @param {*} [options] Override http request option.
11009
+ * @throws {RequiredError}
11010
+ */
11011
+ getClusterMetrics(clusterId, endpoint, query, start, end, step, time, timeout, dedup, partialResponse, options) {
11012
+ return localVarFp.getClusterMetrics(clusterId, endpoint, query, start, end, step, time, timeout, dedup, partialResponse, options).then((request) => request(axios, basePath));
11013
+ },
10895
11014
  /**
10896
11015
  *
10897
11016
  * @summary Know if a cluster is ready to be deployed or not
@@ -11193,6 +11312,26 @@ class ClustersApi extends base_1.BaseAPI {
11193
11312
  getClusterKubernetesEvents(clusterId, fromDateTime, toDateTime, nodeName, podName, options) {
11194
11313
  return (0, exports.ClustersApiFp)(this.configuration).getClusterKubernetesEvents(clusterId, fromDateTime, toDateTime, nodeName, podName, options).then((request) => request(this.axios, this.basePath));
11195
11314
  }
11315
+ /**
11316
+ * Fetch cluster metrics
11317
+ * @summary Fetch cluster metrics
11318
+ * @param {string} clusterId Cluster ID
11319
+ * @param {string} endpoint
11320
+ * @param {string} query
11321
+ * @param {string} [start]
11322
+ * @param {string} [end]
11323
+ * @param {string} [step]
11324
+ * @param {string} [time]
11325
+ * @param {string} [timeout]
11326
+ * @param {string} [dedup]
11327
+ * @param {string} [partialResponse]
11328
+ * @param {*} [options] Override http request option.
11329
+ * @throws {RequiredError}
11330
+ * @memberof ClustersApi
11331
+ */
11332
+ getClusterMetrics(clusterId, endpoint, query, start, end, step, time, timeout, dedup, partialResponse, options) {
11333
+ return (0, exports.ClustersApiFp)(this.configuration).getClusterMetrics(clusterId, endpoint, query, start, end, step, time, timeout, dedup, partialResponse, options).then((request) => request(this.axios, this.basePath));
11334
+ }
11196
11335
  /**
11197
11336
  *
11198
11337
  * @summary Know if a cluster is ready to be deployed or not
package/dist/esm/api.d.ts CHANGED
@@ -3292,6 +3292,19 @@ export interface ClusterLogsResponseList {
3292
3292
  */
3293
3293
  'results'?: Array<ClusterLogs>;
3294
3294
  }
3295
+ /**
3296
+ *
3297
+ * @export
3298
+ * @interface ClusterMetricsResponse
3299
+ */
3300
+ export interface ClusterMetricsResponse {
3301
+ /**
3302
+ *
3303
+ * @type {string}
3304
+ * @memberof ClusterMetricsResponse
3305
+ */
3306
+ 'metrics'?: string;
3307
+ }
3295
3308
  /**
3296
3309
  *
3297
3310
  * @export
@@ -3540,6 +3553,7 @@ export declare const ClusterStateEnum: {
3540
3553
  readonly DEPLOYING: "DEPLOYING";
3541
3554
  readonly DEPLOYMENT_ERROR: "DEPLOYMENT_ERROR";
3542
3555
  readonly DEPLOYMENT_QUEUED: "DEPLOYMENT_QUEUED";
3556
+ readonly DRY_RUN: "DRY_RUN";
3543
3557
  readonly QUEUED: "QUEUED";
3544
3558
  readonly READY: "READY";
3545
3559
  readonly STOPPED: "STOPPED";
@@ -20893,6 +20907,23 @@ export declare const ClustersApiAxiosParamCreator: (configuration?: Configuratio
20893
20907
  * @throws {RequiredError}
20894
20908
  */
20895
20909
  getClusterKubernetesEvents: (clusterId: string, fromDateTime: string, toDateTime: string, nodeName?: string, podName?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20910
+ /**
20911
+ * Fetch cluster metrics
20912
+ * @summary Fetch cluster metrics
20913
+ * @param {string} clusterId Cluster ID
20914
+ * @param {string} endpoint
20915
+ * @param {string} query
20916
+ * @param {string} [start]
20917
+ * @param {string} [end]
20918
+ * @param {string} [step]
20919
+ * @param {string} [time]
20920
+ * @param {string} [timeout]
20921
+ * @param {string} [dedup]
20922
+ * @param {string} [partialResponse]
20923
+ * @param {*} [options] Override http request option.
20924
+ * @throws {RequiredError}
20925
+ */
20926
+ getClusterMetrics: (clusterId: string, endpoint: string, query: string, start?: string, end?: string, step?: string, time?: string, timeout?: string, dedup?: string, partialResponse?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20896
20927
  /**
20897
20928
  *
20898
20929
  * @summary Know if a cluster is ready to be deployed or not
@@ -21130,6 +21161,23 @@ export declare const ClustersApiFp: (configuration?: Configuration) => {
21130
21161
  * @throws {RequiredError}
21131
21162
  */
21132
21163
  getClusterKubernetesEvents(clusterId: string, fromDateTime: string, toDateTime: string, nodeName?: string, podName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetClusterKubernetesEvents200Response>>;
21164
+ /**
21165
+ * Fetch cluster metrics
21166
+ * @summary Fetch cluster metrics
21167
+ * @param {string} clusterId Cluster ID
21168
+ * @param {string} endpoint
21169
+ * @param {string} query
21170
+ * @param {string} [start]
21171
+ * @param {string} [end]
21172
+ * @param {string} [step]
21173
+ * @param {string} [time]
21174
+ * @param {string} [timeout]
21175
+ * @param {string} [dedup]
21176
+ * @param {string} [partialResponse]
21177
+ * @param {*} [options] Override http request option.
21178
+ * @throws {RequiredError}
21179
+ */
21180
+ getClusterMetrics(clusterId: string, endpoint: string, query: string, start?: string, end?: string, step?: string, time?: string, timeout?: string, dedup?: string, partialResponse?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterMetricsResponse>>;
21133
21181
  /**
21134
21182
  *
21135
21183
  * @summary Know if a cluster is ready to be deployed or not
@@ -21367,6 +21415,23 @@ export declare const ClustersApiFactory: (configuration?: Configuration, basePat
21367
21415
  * @throws {RequiredError}
21368
21416
  */
21369
21417
  getClusterKubernetesEvents(clusterId: string, fromDateTime: string, toDateTime: string, nodeName?: string, podName?: string, options?: RawAxiosRequestConfig): AxiosPromise<GetClusterKubernetesEvents200Response>;
21418
+ /**
21419
+ * Fetch cluster metrics
21420
+ * @summary Fetch cluster metrics
21421
+ * @param {string} clusterId Cluster ID
21422
+ * @param {string} endpoint
21423
+ * @param {string} query
21424
+ * @param {string} [start]
21425
+ * @param {string} [end]
21426
+ * @param {string} [step]
21427
+ * @param {string} [time]
21428
+ * @param {string} [timeout]
21429
+ * @param {string} [dedup]
21430
+ * @param {string} [partialResponse]
21431
+ * @param {*} [options] Override http request option.
21432
+ * @throws {RequiredError}
21433
+ */
21434
+ getClusterMetrics(clusterId: string, endpoint: string, query: string, start?: string, end?: string, step?: string, time?: string, timeout?: string, dedup?: string, partialResponse?: string, options?: RawAxiosRequestConfig): AxiosPromise<ClusterMetricsResponse>;
21370
21435
  /**
21371
21436
  *
21372
21437
  * @summary Know if a cluster is ready to be deployed or not
@@ -21616,6 +21681,24 @@ export declare class ClustersApi extends BaseAPI {
21616
21681
  * @memberof ClustersApi
21617
21682
  */
21618
21683
  getClusterKubernetesEvents(clusterId: string, fromDateTime: string, toDateTime: string, nodeName?: string, podName?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetClusterKubernetesEvents200Response, any>>;
21684
+ /**
21685
+ * Fetch cluster metrics
21686
+ * @summary Fetch cluster metrics
21687
+ * @param {string} clusterId Cluster ID
21688
+ * @param {string} endpoint
21689
+ * @param {string} query
21690
+ * @param {string} [start]
21691
+ * @param {string} [end]
21692
+ * @param {string} [step]
21693
+ * @param {string} [time]
21694
+ * @param {string} [timeout]
21695
+ * @param {string} [dedup]
21696
+ * @param {string} [partialResponse]
21697
+ * @param {*} [options] Override http request option.
21698
+ * @throws {RequiredError}
21699
+ * @memberof ClustersApi
21700
+ */
21701
+ getClusterMetrics(clusterId: string, endpoint: string, query: string, start?: string, end?: string, step?: string, time?: string, timeout?: string, dedup?: string, partialResponse?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ClusterMetricsResponse, any>>;
21619
21702
  /**
21620
21703
  *
21621
21704
  * @summary Know if a cluster is ready to be deployed or not
package/dist/esm/api.js CHANGED
@@ -203,6 +203,7 @@ export const ClusterStateEnum = {
203
203
  DEPLOYING: 'DEPLOYING',
204
204
  DEPLOYMENT_ERROR: 'DEPLOYMENT_ERROR',
205
205
  DEPLOYMENT_QUEUED: 'DEPLOYMENT_QUEUED',
206
+ DRY_RUN: 'DRY_RUN',
206
207
  QUEUED: 'QUEUED',
207
208
  READY: 'READY',
208
209
  STOPPED: 'STOPPED',
@@ -9699,6 +9700,80 @@ export const ClustersApiAxiosParamCreator = function (configuration) {
9699
9700
  options: localVarRequestOptions,
9700
9701
  };
9701
9702
  }),
9703
+ /**
9704
+ * Fetch cluster metrics
9705
+ * @summary Fetch cluster metrics
9706
+ * @param {string} clusterId Cluster ID
9707
+ * @param {string} endpoint
9708
+ * @param {string} query
9709
+ * @param {string} [start]
9710
+ * @param {string} [end]
9711
+ * @param {string} [step]
9712
+ * @param {string} [time]
9713
+ * @param {string} [timeout]
9714
+ * @param {string} [dedup]
9715
+ * @param {string} [partialResponse]
9716
+ * @param {*} [options] Override http request option.
9717
+ * @throws {RequiredError}
9718
+ */
9719
+ getClusterMetrics: (clusterId_1, endpoint_1, query_1, start_1, end_1, step_1, time_1, timeout_1, dedup_1, partialResponse_1, ...args_1) => __awaiter(this, [clusterId_1, endpoint_1, query_1, start_1, end_1, step_1, time_1, timeout_1, dedup_1, partialResponse_1, ...args_1], void 0, function* (clusterId, endpoint, query, start, end, step, time, timeout, dedup, partialResponse, options = {}) {
9720
+ // verify required parameter 'clusterId' is not null or undefined
9721
+ assertParamExists('getClusterMetrics', 'clusterId', clusterId);
9722
+ // verify required parameter 'endpoint' is not null or undefined
9723
+ assertParamExists('getClusterMetrics', 'endpoint', endpoint);
9724
+ // verify required parameter 'query' is not null or undefined
9725
+ assertParamExists('getClusterMetrics', 'query', query);
9726
+ const localVarPath = `/cluster/{clusterId}/metrics`
9727
+ .replace(`{${"clusterId"}}`, encodeURIComponent(String(clusterId)));
9728
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9729
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9730
+ let baseOptions;
9731
+ if (configuration) {
9732
+ baseOptions = configuration.baseOptions;
9733
+ }
9734
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
9735
+ const localVarHeaderParameter = {};
9736
+ const localVarQueryParameter = {};
9737
+ // authentication ApiKeyAuth required
9738
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
9739
+ // authentication bearerAuth required
9740
+ // http bearer authentication required
9741
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
9742
+ if (endpoint !== undefined) {
9743
+ localVarQueryParameter['endpoint'] = endpoint;
9744
+ }
9745
+ if (query !== undefined) {
9746
+ localVarQueryParameter['query'] = query;
9747
+ }
9748
+ if (start !== undefined) {
9749
+ localVarQueryParameter['start'] = start;
9750
+ }
9751
+ if (end !== undefined) {
9752
+ localVarQueryParameter['end'] = end;
9753
+ }
9754
+ if (step !== undefined) {
9755
+ localVarQueryParameter['step'] = step;
9756
+ }
9757
+ if (time !== undefined) {
9758
+ localVarQueryParameter['time'] = time;
9759
+ }
9760
+ if (timeout !== undefined) {
9761
+ localVarQueryParameter['timeout'] = timeout;
9762
+ }
9763
+ if (dedup !== undefined) {
9764
+ localVarQueryParameter['dedup'] = dedup;
9765
+ }
9766
+ if (partialResponse !== undefined) {
9767
+ localVarQueryParameter['partial_response'] = partialResponse;
9768
+ }
9769
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9770
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9771
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9772
+ return {
9773
+ url: toPathString(localVarUrlObj),
9774
+ options: localVarRequestOptions,
9775
+ };
9776
+ }),
9702
9777
  /**
9703
9778
  *
9704
9779
  * @summary Know if a cluster is ready to be deployed or not
@@ -10439,6 +10514,31 @@ export const ClustersApiFp = function (configuration) {
10439
10514
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10440
10515
  });
10441
10516
  },
10517
+ /**
10518
+ * Fetch cluster metrics
10519
+ * @summary Fetch cluster metrics
10520
+ * @param {string} clusterId Cluster ID
10521
+ * @param {string} endpoint
10522
+ * @param {string} query
10523
+ * @param {string} [start]
10524
+ * @param {string} [end]
10525
+ * @param {string} [step]
10526
+ * @param {string} [time]
10527
+ * @param {string} [timeout]
10528
+ * @param {string} [dedup]
10529
+ * @param {string} [partialResponse]
10530
+ * @param {*} [options] Override http request option.
10531
+ * @throws {RequiredError}
10532
+ */
10533
+ getClusterMetrics(clusterId, endpoint, query, start, end, step, time, timeout, dedup, partialResponse, options) {
10534
+ return __awaiter(this, void 0, void 0, function* () {
10535
+ var _a, _b, _c;
10536
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClusterMetrics(clusterId, endpoint, query, start, end, step, time, timeout, dedup, partialResponse, options);
10537
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
10538
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClustersApi.getClusterMetrics']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
10539
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10540
+ });
10541
+ },
10442
10542
  /**
10443
10543
  *
10444
10544
  * @summary Know if a cluster is ready to be deployed or not
@@ -10819,6 +10919,25 @@ export const ClustersApiFactory = function (configuration, basePath, axios) {
10819
10919
  getClusterKubernetesEvents(clusterId, fromDateTime, toDateTime, nodeName, podName, options) {
10820
10920
  return localVarFp.getClusterKubernetesEvents(clusterId, fromDateTime, toDateTime, nodeName, podName, options).then((request) => request(axios, basePath));
10821
10921
  },
10922
+ /**
10923
+ * Fetch cluster metrics
10924
+ * @summary Fetch cluster metrics
10925
+ * @param {string} clusterId Cluster ID
10926
+ * @param {string} endpoint
10927
+ * @param {string} query
10928
+ * @param {string} [start]
10929
+ * @param {string} [end]
10930
+ * @param {string} [step]
10931
+ * @param {string} [time]
10932
+ * @param {string} [timeout]
10933
+ * @param {string} [dedup]
10934
+ * @param {string} [partialResponse]
10935
+ * @param {*} [options] Override http request option.
10936
+ * @throws {RequiredError}
10937
+ */
10938
+ getClusterMetrics(clusterId, endpoint, query, start, end, step, time, timeout, dedup, partialResponse, options) {
10939
+ return localVarFp.getClusterMetrics(clusterId, endpoint, query, start, end, step, time, timeout, dedup, partialResponse, options).then((request) => request(axios, basePath));
10940
+ },
10822
10941
  /**
10823
10942
  *
10824
10943
  * @summary Know if a cluster is ready to be deployed or not
@@ -11119,6 +11238,26 @@ export class ClustersApi extends BaseAPI {
11119
11238
  getClusterKubernetesEvents(clusterId, fromDateTime, toDateTime, nodeName, podName, options) {
11120
11239
  return ClustersApiFp(this.configuration).getClusterKubernetesEvents(clusterId, fromDateTime, toDateTime, nodeName, podName, options).then((request) => request(this.axios, this.basePath));
11121
11240
  }
11241
+ /**
11242
+ * Fetch cluster metrics
11243
+ * @summary Fetch cluster metrics
11244
+ * @param {string} clusterId Cluster ID
11245
+ * @param {string} endpoint
11246
+ * @param {string} query
11247
+ * @param {string} [start]
11248
+ * @param {string} [end]
11249
+ * @param {string} [step]
11250
+ * @param {string} [time]
11251
+ * @param {string} [timeout]
11252
+ * @param {string} [dedup]
11253
+ * @param {string} [partialResponse]
11254
+ * @param {*} [options] Override http request option.
11255
+ * @throws {RequiredError}
11256
+ * @memberof ClustersApi
11257
+ */
11258
+ getClusterMetrics(clusterId, endpoint, query, start, end, step, time, timeout, dedup, partialResponse, options) {
11259
+ return ClustersApiFp(this.configuration).getClusterMetrics(clusterId, endpoint, query, start, end, step, time, timeout, dedup, partialResponse, options).then((request) => request(this.axios, this.basePath));
11260
+ }
11122
11261
  /**
11123
11262
  *
11124
11263
  * @summary Know if a cluster is ready to be deployed or not
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qovery-typescript-axios",
3
- "version": "v1.1.568",
3
+ "version": "v1.1.570",
4
4
  "description": "OpenAPI client for qovery-typescript-axios",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {