qovery-typescript-axios 1.1.568 → 1.1.569

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