qovery-ws-typescript-axios 0.1.306 → 0.1.309

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
@@ -171,6 +171,31 @@ export interface ClusterListNodesResponseDto {
171
171
  */
172
172
  'nodes': Array<NodeDto>;
173
173
  }
174
+ /**
175
+ *
176
+ * @export
177
+ * @interface ClusterMetricsDto
178
+ */
179
+ export interface ClusterMetricsDto {
180
+ /**
181
+ *
182
+ * @type {Array<NodePoolInfoDto>}
183
+ * @memberof ClusterMetricsDto
184
+ */
185
+ 'node_pools': Array<NodePoolInfoDto>;
186
+ /**
187
+ *
188
+ * @type {Array<ClusterNodeDto>}
189
+ * @memberof ClusterMetricsDto
190
+ */
191
+ 'nodes': Array<ClusterNodeDto>;
192
+ /**
193
+ *
194
+ * @type {Array<PvcInfoDto>}
195
+ * @memberof ClusterMetricsDto
196
+ */
197
+ 'pvcs': Array<PvcInfoDto>;
198
+ }
174
199
  /**
175
200
  *
176
201
  * @export
@@ -304,24 +329,6 @@ export interface ClusterStatusDto {
304
329
  * @memberof ClusterStatusDto
305
330
  */
306
331
  'computed_status': ClusterComputedStatusDto;
307
- /**
308
- *
309
- * @type {Array<NodePoolInfoDto>}
310
- * @memberof ClusterStatusDto
311
- */
312
- 'node_pools': Array<NodePoolInfoDto>;
313
- /**
314
- *
315
- * @type {Array<ClusterNodeDto>}
316
- * @memberof ClusterStatusDto
317
- */
318
- 'nodes': Array<ClusterNodeDto>;
319
- /**
320
- *
321
- * @type {Array<PvcInfoDto>}
322
- * @memberof ClusterStatusDto
323
- */
324
- 'pvcs': Array<PvcInfoDto>;
325
332
  /**
326
333
  *
327
334
  * @type {CertificateStatusDto}
@@ -1847,6 +1854,117 @@ export class ClusterListNodesApi extends BaseAPI {
1847
1854
 
1848
1855
 
1849
1856
 
1857
+ /**
1858
+ * ClusterMetricsApi - axios parameter creator
1859
+ * @export
1860
+ */
1861
+ export const ClusterMetricsApiAxiosParamCreator = function (configuration?: Configuration) {
1862
+ return {
1863
+ /**
1864
+ *
1865
+ * @param {string} organization
1866
+ * @param {string} cluster
1867
+ * @param {*} [options] Override http request option.
1868
+ * @throws {RequiredError}
1869
+ */
1870
+ handleClusterMetricsRequest: async (organization: string, cluster: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1871
+ // verify required parameter 'organization' is not null or undefined
1872
+ assertParamExists('handleClusterMetricsRequest', 'organization', organization)
1873
+ // verify required parameter 'cluster' is not null or undefined
1874
+ assertParamExists('handleClusterMetricsRequest', 'cluster', cluster)
1875
+ const localVarPath = `/cluster/metrics`
1876
+ .replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
1877
+ .replace(`{${"cluster"}}`, encodeURIComponent(String(cluster)));
1878
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1879
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1880
+ let baseOptions;
1881
+ if (configuration) {
1882
+ baseOptions = configuration.baseOptions;
1883
+ }
1884
+
1885
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1886
+ const localVarHeaderParameter = {} as any;
1887
+ const localVarQueryParameter = {} as any;
1888
+
1889
+
1890
+
1891
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1892
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1893
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1894
+
1895
+ return {
1896
+ url: toPathString(localVarUrlObj),
1897
+ options: localVarRequestOptions,
1898
+ };
1899
+ },
1900
+ }
1901
+ };
1902
+
1903
+ /**
1904
+ * ClusterMetricsApi - functional programming interface
1905
+ * @export
1906
+ */
1907
+ export const ClusterMetricsApiFp = function(configuration?: Configuration) {
1908
+ const localVarAxiosParamCreator = ClusterMetricsApiAxiosParamCreator(configuration)
1909
+ return {
1910
+ /**
1911
+ *
1912
+ * @param {string} organization
1913
+ * @param {string} cluster
1914
+ * @param {*} [options] Override http request option.
1915
+ * @throws {RequiredError}
1916
+ */
1917
+ async handleClusterMetricsRequest(organization: string, cluster: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterMetricsDto>> {
1918
+ const localVarAxiosArgs = await localVarAxiosParamCreator.handleClusterMetricsRequest(organization, cluster, options);
1919
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1920
+ const localVarOperationServerBasePath = operationServerMap['ClusterMetricsApi.handleClusterMetricsRequest']?.[localVarOperationServerIndex]?.url;
1921
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1922
+ },
1923
+ }
1924
+ };
1925
+
1926
+ /**
1927
+ * ClusterMetricsApi - factory interface
1928
+ * @export
1929
+ */
1930
+ export const ClusterMetricsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1931
+ const localVarFp = ClusterMetricsApiFp(configuration)
1932
+ return {
1933
+ /**
1934
+ *
1935
+ * @param {string} organization
1936
+ * @param {string} cluster
1937
+ * @param {*} [options] Override http request option.
1938
+ * @throws {RequiredError}
1939
+ */
1940
+ handleClusterMetricsRequest(organization: string, cluster: string, options?: RawAxiosRequestConfig): AxiosPromise<ClusterMetricsDto> {
1941
+ return localVarFp.handleClusterMetricsRequest(organization, cluster, options).then((request) => request(axios, basePath));
1942
+ },
1943
+ };
1944
+ };
1945
+
1946
+ /**
1947
+ * ClusterMetricsApi - object-oriented interface
1948
+ * @export
1949
+ * @class ClusterMetricsApi
1950
+ * @extends {BaseAPI}
1951
+ */
1952
+ export class ClusterMetricsApi extends BaseAPI {
1953
+ /**
1954
+ *
1955
+ * @param {string} organization
1956
+ * @param {string} cluster
1957
+ * @param {*} [options] Override http request option.
1958
+ * @throws {RequiredError}
1959
+ * @memberof ClusterMetricsApi
1960
+ */
1961
+ public handleClusterMetricsRequest(organization: string, cluster: string, options?: RawAxiosRequestConfig) {
1962
+ return ClusterMetricsApiFp(this.configuration).handleClusterMetricsRequest(organization, cluster, options).then((request) => request(this.axios, this.basePath));
1963
+ }
1964
+ }
1965
+
1966
+
1967
+
1850
1968
  /**
1851
1969
  * ClusterStatusApi - axios parameter creator
1852
1970
  * @export
package/dist/api.d.ts CHANGED
@@ -157,6 +157,31 @@ export interface ClusterListNodesResponseDto {
157
157
  */
158
158
  'nodes': Array<NodeDto>;
159
159
  }
160
+ /**
161
+ *
162
+ * @export
163
+ * @interface ClusterMetricsDto
164
+ */
165
+ export interface ClusterMetricsDto {
166
+ /**
167
+ *
168
+ * @type {Array<NodePoolInfoDto>}
169
+ * @memberof ClusterMetricsDto
170
+ */
171
+ 'node_pools': Array<NodePoolInfoDto>;
172
+ /**
173
+ *
174
+ * @type {Array<ClusterNodeDto>}
175
+ * @memberof ClusterMetricsDto
176
+ */
177
+ 'nodes': Array<ClusterNodeDto>;
178
+ /**
179
+ *
180
+ * @type {Array<PvcInfoDto>}
181
+ * @memberof ClusterMetricsDto
182
+ */
183
+ 'pvcs': Array<PvcInfoDto>;
184
+ }
160
185
  /**
161
186
  *
162
187
  * @export
@@ -294,24 +319,6 @@ export interface ClusterStatusDto {
294
319
  * @memberof ClusterStatusDto
295
320
  */
296
321
  'computed_status': ClusterComputedStatusDto;
297
- /**
298
- *
299
- * @type {Array<NodePoolInfoDto>}
300
- * @memberof ClusterStatusDto
301
- */
302
- 'node_pools': Array<NodePoolInfoDto>;
303
- /**
304
- *
305
- * @type {Array<ClusterNodeDto>}
306
- * @memberof ClusterStatusDto
307
- */
308
- 'nodes': Array<ClusterNodeDto>;
309
- /**
310
- *
311
- * @type {Array<PvcInfoDto>}
312
- * @memberof ClusterStatusDto
313
- */
314
- 'pvcs': Array<PvcInfoDto>;
315
322
  /**
316
323
  *
317
324
  * @type {CertificateStatusDto}
@@ -1748,6 +1755,65 @@ export declare class ClusterListNodesApi extends BaseAPI {
1748
1755
  */
1749
1756
  handleClusterListNodesRequest(organization: string, cluster: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ClusterListNodesResponseDto, any>>;
1750
1757
  }
1758
+ /**
1759
+ * ClusterMetricsApi - axios parameter creator
1760
+ * @export
1761
+ */
1762
+ export declare const ClusterMetricsApiAxiosParamCreator: (configuration?: Configuration) => {
1763
+ /**
1764
+ *
1765
+ * @param {string} organization
1766
+ * @param {string} cluster
1767
+ * @param {*} [options] Override http request option.
1768
+ * @throws {RequiredError}
1769
+ */
1770
+ handleClusterMetricsRequest: (organization: string, cluster: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1771
+ };
1772
+ /**
1773
+ * ClusterMetricsApi - functional programming interface
1774
+ * @export
1775
+ */
1776
+ export declare const ClusterMetricsApiFp: (configuration?: Configuration) => {
1777
+ /**
1778
+ *
1779
+ * @param {string} organization
1780
+ * @param {string} cluster
1781
+ * @param {*} [options] Override http request option.
1782
+ * @throws {RequiredError}
1783
+ */
1784
+ handleClusterMetricsRequest(organization: string, cluster: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterMetricsDto>>;
1785
+ };
1786
+ /**
1787
+ * ClusterMetricsApi - factory interface
1788
+ * @export
1789
+ */
1790
+ export declare const ClusterMetricsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
1791
+ /**
1792
+ *
1793
+ * @param {string} organization
1794
+ * @param {string} cluster
1795
+ * @param {*} [options] Override http request option.
1796
+ * @throws {RequiredError}
1797
+ */
1798
+ handleClusterMetricsRequest(organization: string, cluster: string, options?: RawAxiosRequestConfig): AxiosPromise<ClusterMetricsDto>;
1799
+ };
1800
+ /**
1801
+ * ClusterMetricsApi - object-oriented interface
1802
+ * @export
1803
+ * @class ClusterMetricsApi
1804
+ * @extends {BaseAPI}
1805
+ */
1806
+ export declare class ClusterMetricsApi extends BaseAPI {
1807
+ /**
1808
+ *
1809
+ * @param {string} organization
1810
+ * @param {string} cluster
1811
+ * @param {*} [options] Override http request option.
1812
+ * @throws {RequiredError}
1813
+ * @memberof ClusterMetricsApi
1814
+ */
1815
+ handleClusterMetricsRequest(organization: string, cluster: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ClusterMetricsDto, any>>;
1816
+ }
1751
1817
  /**
1752
1818
  * ClusterStatusApi - axios parameter creator
1753
1819
  * @export
package/dist/api.js CHANGED
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.ShellApi = exports.ShellApiFactory = exports.ShellApiFp = exports.ShellApiAxiosParamCreator = exports.ServiceStatusApi = exports.ServiceStatusApiFactory = exports.ServiceStatusApiFp = exports.ServiceStatusApiAxiosParamCreator = exports.ServiceMetricsApi = exports.ServiceMetricsApiFactory = exports.ServiceMetricsApiFp = exports.ServiceMetricsApiAxiosParamCreator = exports.ServiceListPodsApi = exports.ServiceListPodsApiFactory = exports.ServiceListPodsApiFp = exports.ServiceListPodsApiAxiosParamCreator = exports.RemoteDebugApi = exports.RemoteDebugApiFactory = exports.RemoteDebugApiFp = exports.RemoteDebugApiAxiosParamCreator = exports.LogsApi = exports.LogsApiFactory = exports.LogsApiFp = exports.LogsApiAxiosParamCreator = exports.DeploymentApi = exports.DeploymentApiFactory = exports.DeploymentApiFp = exports.DeploymentApiAxiosParamCreator = exports.ClusterStatusApi = exports.ClusterStatusApiFactory = exports.ClusterStatusApiFp = exports.ClusterStatusApiAxiosParamCreator = exports.ClusterListNodesApi = exports.ClusterListNodesApiFactory = exports.ClusterListNodesApiFp = exports.ClusterListNodesApiAxiosParamCreator = exports.UnitDto = exports.ServiceType = exports.ServiceStateDto = exports.ResourceStatusDto = exports.QoveryComponentStatus = exports.QoveryComponentContainerStatusLevel = exports.DebugFlavor = exports.ClusterStatusGlobalStatus = void 0;
25
+ exports.ShellApi = exports.ShellApiFactory = exports.ShellApiFp = exports.ShellApiAxiosParamCreator = exports.ServiceStatusApi = exports.ServiceStatusApiFactory = exports.ServiceStatusApiFp = exports.ServiceStatusApiAxiosParamCreator = exports.ServiceMetricsApi = exports.ServiceMetricsApiFactory = exports.ServiceMetricsApiFp = exports.ServiceMetricsApiAxiosParamCreator = exports.ServiceListPodsApi = exports.ServiceListPodsApiFactory = exports.ServiceListPodsApiFp = exports.ServiceListPodsApiAxiosParamCreator = exports.RemoteDebugApi = exports.RemoteDebugApiFactory = exports.RemoteDebugApiFp = exports.RemoteDebugApiAxiosParamCreator = exports.LogsApi = exports.LogsApiFactory = exports.LogsApiFp = exports.LogsApiAxiosParamCreator = exports.DeploymentApi = exports.DeploymentApiFactory = exports.DeploymentApiFp = exports.DeploymentApiAxiosParamCreator = exports.ClusterStatusApi = exports.ClusterStatusApiFactory = exports.ClusterStatusApiFp = exports.ClusterStatusApiAxiosParamCreator = exports.ClusterMetricsApi = exports.ClusterMetricsApiFactory = exports.ClusterMetricsApiFp = exports.ClusterMetricsApiAxiosParamCreator = exports.ClusterListNodesApi = exports.ClusterListNodesApiFactory = exports.ClusterListNodesApiFp = exports.ClusterListNodesApiAxiosParamCreator = exports.UnitDto = exports.ServiceType = exports.ServiceStateDto = exports.ResourceStatusDto = exports.QoveryComponentStatus = exports.QoveryComponentContainerStatusLevel = exports.DebugFlavor = exports.ClusterStatusGlobalStatus = void 0;
26
26
  const axios_1 = require("axios");
27
27
  // Some imports not used depending on template conditions
28
28
  // @ts-ignore
@@ -219,6 +219,113 @@ class ClusterListNodesApi extends base_1.BaseAPI {
219
219
  }
220
220
  }
221
221
  exports.ClusterListNodesApi = ClusterListNodesApi;
222
+ /**
223
+ * ClusterMetricsApi - axios parameter creator
224
+ * @export
225
+ */
226
+ const ClusterMetricsApiAxiosParamCreator = function (configuration) {
227
+ return {
228
+ /**
229
+ *
230
+ * @param {string} organization
231
+ * @param {string} cluster
232
+ * @param {*} [options] Override http request option.
233
+ * @throws {RequiredError}
234
+ */
235
+ handleClusterMetricsRequest: (organization_1, cluster_1, ...args_1) => __awaiter(this, [organization_1, cluster_1, ...args_1], void 0, function* (organization, cluster, options = {}) {
236
+ // verify required parameter 'organization' is not null or undefined
237
+ (0, common_1.assertParamExists)('handleClusterMetricsRequest', 'organization', organization);
238
+ // verify required parameter 'cluster' is not null or undefined
239
+ (0, common_1.assertParamExists)('handleClusterMetricsRequest', 'cluster', cluster);
240
+ const localVarPath = `/cluster/metrics`
241
+ .replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
242
+ .replace(`{${"cluster"}}`, encodeURIComponent(String(cluster)));
243
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
244
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
245
+ let baseOptions;
246
+ if (configuration) {
247
+ baseOptions = configuration.baseOptions;
248
+ }
249
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
250
+ const localVarHeaderParameter = {};
251
+ const localVarQueryParameter = {};
252
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
253
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
254
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
255
+ return {
256
+ url: (0, common_1.toPathString)(localVarUrlObj),
257
+ options: localVarRequestOptions,
258
+ };
259
+ }),
260
+ };
261
+ };
262
+ exports.ClusterMetricsApiAxiosParamCreator = ClusterMetricsApiAxiosParamCreator;
263
+ /**
264
+ * ClusterMetricsApi - functional programming interface
265
+ * @export
266
+ */
267
+ const ClusterMetricsApiFp = function (configuration) {
268
+ const localVarAxiosParamCreator = (0, exports.ClusterMetricsApiAxiosParamCreator)(configuration);
269
+ return {
270
+ /**
271
+ *
272
+ * @param {string} organization
273
+ * @param {string} cluster
274
+ * @param {*} [options] Override http request option.
275
+ * @throws {RequiredError}
276
+ */
277
+ handleClusterMetricsRequest(organization, cluster, options) {
278
+ return __awaiter(this, void 0, void 0, function* () {
279
+ var _a, _b, _c;
280
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.handleClusterMetricsRequest(organization, cluster, options);
281
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
282
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClusterMetricsApi.handleClusterMetricsRequest']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
283
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
284
+ });
285
+ },
286
+ };
287
+ };
288
+ exports.ClusterMetricsApiFp = ClusterMetricsApiFp;
289
+ /**
290
+ * ClusterMetricsApi - factory interface
291
+ * @export
292
+ */
293
+ const ClusterMetricsApiFactory = function (configuration, basePath, axios) {
294
+ const localVarFp = (0, exports.ClusterMetricsApiFp)(configuration);
295
+ return {
296
+ /**
297
+ *
298
+ * @param {string} organization
299
+ * @param {string} cluster
300
+ * @param {*} [options] Override http request option.
301
+ * @throws {RequiredError}
302
+ */
303
+ handleClusterMetricsRequest(organization, cluster, options) {
304
+ return localVarFp.handleClusterMetricsRequest(organization, cluster, options).then((request) => request(axios, basePath));
305
+ },
306
+ };
307
+ };
308
+ exports.ClusterMetricsApiFactory = ClusterMetricsApiFactory;
309
+ /**
310
+ * ClusterMetricsApi - object-oriented interface
311
+ * @export
312
+ * @class ClusterMetricsApi
313
+ * @extends {BaseAPI}
314
+ */
315
+ class ClusterMetricsApi extends base_1.BaseAPI {
316
+ /**
317
+ *
318
+ * @param {string} organization
319
+ * @param {string} cluster
320
+ * @param {*} [options] Override http request option.
321
+ * @throws {RequiredError}
322
+ * @memberof ClusterMetricsApi
323
+ */
324
+ handleClusterMetricsRequest(organization, cluster, options) {
325
+ return (0, exports.ClusterMetricsApiFp)(this.configuration).handleClusterMetricsRequest(organization, cluster, options).then((request) => request(this.axios, this.basePath));
326
+ }
327
+ }
328
+ exports.ClusterMetricsApi = ClusterMetricsApi;
222
329
  /**
223
330
  * ClusterStatusApi - axios parameter creator
224
331
  * @export
package/dist/esm/api.d.ts CHANGED
@@ -157,6 +157,31 @@ export interface ClusterListNodesResponseDto {
157
157
  */
158
158
  'nodes': Array<NodeDto>;
159
159
  }
160
+ /**
161
+ *
162
+ * @export
163
+ * @interface ClusterMetricsDto
164
+ */
165
+ export interface ClusterMetricsDto {
166
+ /**
167
+ *
168
+ * @type {Array<NodePoolInfoDto>}
169
+ * @memberof ClusterMetricsDto
170
+ */
171
+ 'node_pools': Array<NodePoolInfoDto>;
172
+ /**
173
+ *
174
+ * @type {Array<ClusterNodeDto>}
175
+ * @memberof ClusterMetricsDto
176
+ */
177
+ 'nodes': Array<ClusterNodeDto>;
178
+ /**
179
+ *
180
+ * @type {Array<PvcInfoDto>}
181
+ * @memberof ClusterMetricsDto
182
+ */
183
+ 'pvcs': Array<PvcInfoDto>;
184
+ }
160
185
  /**
161
186
  *
162
187
  * @export
@@ -294,24 +319,6 @@ export interface ClusterStatusDto {
294
319
  * @memberof ClusterStatusDto
295
320
  */
296
321
  'computed_status': ClusterComputedStatusDto;
297
- /**
298
- *
299
- * @type {Array<NodePoolInfoDto>}
300
- * @memberof ClusterStatusDto
301
- */
302
- 'node_pools': Array<NodePoolInfoDto>;
303
- /**
304
- *
305
- * @type {Array<ClusterNodeDto>}
306
- * @memberof ClusterStatusDto
307
- */
308
- 'nodes': Array<ClusterNodeDto>;
309
- /**
310
- *
311
- * @type {Array<PvcInfoDto>}
312
- * @memberof ClusterStatusDto
313
- */
314
- 'pvcs': Array<PvcInfoDto>;
315
322
  /**
316
323
  *
317
324
  * @type {CertificateStatusDto}
@@ -1748,6 +1755,65 @@ export declare class ClusterListNodesApi extends BaseAPI {
1748
1755
  */
1749
1756
  handleClusterListNodesRequest(organization: string, cluster: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ClusterListNodesResponseDto, any>>;
1750
1757
  }
1758
+ /**
1759
+ * ClusterMetricsApi - axios parameter creator
1760
+ * @export
1761
+ */
1762
+ export declare const ClusterMetricsApiAxiosParamCreator: (configuration?: Configuration) => {
1763
+ /**
1764
+ *
1765
+ * @param {string} organization
1766
+ * @param {string} cluster
1767
+ * @param {*} [options] Override http request option.
1768
+ * @throws {RequiredError}
1769
+ */
1770
+ handleClusterMetricsRequest: (organization: string, cluster: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1771
+ };
1772
+ /**
1773
+ * ClusterMetricsApi - functional programming interface
1774
+ * @export
1775
+ */
1776
+ export declare const ClusterMetricsApiFp: (configuration?: Configuration) => {
1777
+ /**
1778
+ *
1779
+ * @param {string} organization
1780
+ * @param {string} cluster
1781
+ * @param {*} [options] Override http request option.
1782
+ * @throws {RequiredError}
1783
+ */
1784
+ handleClusterMetricsRequest(organization: string, cluster: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterMetricsDto>>;
1785
+ };
1786
+ /**
1787
+ * ClusterMetricsApi - factory interface
1788
+ * @export
1789
+ */
1790
+ export declare const ClusterMetricsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
1791
+ /**
1792
+ *
1793
+ * @param {string} organization
1794
+ * @param {string} cluster
1795
+ * @param {*} [options] Override http request option.
1796
+ * @throws {RequiredError}
1797
+ */
1798
+ handleClusterMetricsRequest(organization: string, cluster: string, options?: RawAxiosRequestConfig): AxiosPromise<ClusterMetricsDto>;
1799
+ };
1800
+ /**
1801
+ * ClusterMetricsApi - object-oriented interface
1802
+ * @export
1803
+ * @class ClusterMetricsApi
1804
+ * @extends {BaseAPI}
1805
+ */
1806
+ export declare class ClusterMetricsApi extends BaseAPI {
1807
+ /**
1808
+ *
1809
+ * @param {string} organization
1810
+ * @param {string} cluster
1811
+ * @param {*} [options] Override http request option.
1812
+ * @throws {RequiredError}
1813
+ * @memberof ClusterMetricsApi
1814
+ */
1815
+ handleClusterMetricsRequest(organization: string, cluster: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ClusterMetricsDto, any>>;
1816
+ }
1751
1817
  /**
1752
1818
  * ClusterStatusApi - axios parameter creator
1753
1819
  * @export
package/dist/esm/api.js CHANGED
@@ -212,6 +212,109 @@ export class ClusterListNodesApi extends BaseAPI {
212
212
  return ClusterListNodesApiFp(this.configuration).handleClusterListNodesRequest(organization, cluster, options).then((request) => request(this.axios, this.basePath));
213
213
  }
214
214
  }
215
+ /**
216
+ * ClusterMetricsApi - axios parameter creator
217
+ * @export
218
+ */
219
+ export const ClusterMetricsApiAxiosParamCreator = function (configuration) {
220
+ return {
221
+ /**
222
+ *
223
+ * @param {string} organization
224
+ * @param {string} cluster
225
+ * @param {*} [options] Override http request option.
226
+ * @throws {RequiredError}
227
+ */
228
+ handleClusterMetricsRequest: (organization_1, cluster_1, ...args_1) => __awaiter(this, [organization_1, cluster_1, ...args_1], void 0, function* (organization, cluster, options = {}) {
229
+ // verify required parameter 'organization' is not null or undefined
230
+ assertParamExists('handleClusterMetricsRequest', 'organization', organization);
231
+ // verify required parameter 'cluster' is not null or undefined
232
+ assertParamExists('handleClusterMetricsRequest', 'cluster', cluster);
233
+ const localVarPath = `/cluster/metrics`
234
+ .replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
235
+ .replace(`{${"cluster"}}`, encodeURIComponent(String(cluster)));
236
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
237
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
238
+ let baseOptions;
239
+ if (configuration) {
240
+ baseOptions = configuration.baseOptions;
241
+ }
242
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
243
+ const localVarHeaderParameter = {};
244
+ const localVarQueryParameter = {};
245
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
246
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
247
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
248
+ return {
249
+ url: toPathString(localVarUrlObj),
250
+ options: localVarRequestOptions,
251
+ };
252
+ }),
253
+ };
254
+ };
255
+ /**
256
+ * ClusterMetricsApi - functional programming interface
257
+ * @export
258
+ */
259
+ export const ClusterMetricsApiFp = function (configuration) {
260
+ const localVarAxiosParamCreator = ClusterMetricsApiAxiosParamCreator(configuration);
261
+ return {
262
+ /**
263
+ *
264
+ * @param {string} organization
265
+ * @param {string} cluster
266
+ * @param {*} [options] Override http request option.
267
+ * @throws {RequiredError}
268
+ */
269
+ handleClusterMetricsRequest(organization, cluster, options) {
270
+ return __awaiter(this, void 0, void 0, function* () {
271
+ var _a, _b, _c;
272
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.handleClusterMetricsRequest(organization, cluster, options);
273
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
274
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClusterMetricsApi.handleClusterMetricsRequest']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
275
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
276
+ });
277
+ },
278
+ };
279
+ };
280
+ /**
281
+ * ClusterMetricsApi - factory interface
282
+ * @export
283
+ */
284
+ export const ClusterMetricsApiFactory = function (configuration, basePath, axios) {
285
+ const localVarFp = ClusterMetricsApiFp(configuration);
286
+ return {
287
+ /**
288
+ *
289
+ * @param {string} organization
290
+ * @param {string} cluster
291
+ * @param {*} [options] Override http request option.
292
+ * @throws {RequiredError}
293
+ */
294
+ handleClusterMetricsRequest(organization, cluster, options) {
295
+ return localVarFp.handleClusterMetricsRequest(organization, cluster, options).then((request) => request(axios, basePath));
296
+ },
297
+ };
298
+ };
299
+ /**
300
+ * ClusterMetricsApi - object-oriented interface
301
+ * @export
302
+ * @class ClusterMetricsApi
303
+ * @extends {BaseAPI}
304
+ */
305
+ export class ClusterMetricsApi extends BaseAPI {
306
+ /**
307
+ *
308
+ * @param {string} organization
309
+ * @param {string} cluster
310
+ * @param {*} [options] Override http request option.
311
+ * @throws {RequiredError}
312
+ * @memberof ClusterMetricsApi
313
+ */
314
+ handleClusterMetricsRequest(organization, cluster, options) {
315
+ return ClusterMetricsApiFp(this.configuration).handleClusterMetricsRequest(organization, cluster, options).then((request) => request(this.axios, this.basePath));
316
+ }
317
+ }
215
318
  /**
216
319
  * ClusterStatusApi - axios parameter creator
217
320
  * @export
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qovery-ws-typescript-axios",
3
- "version": "v0.1.306",
3
+ "version": "v0.1.309",
4
4
  "description": "OpenAPI client for qovery-ws-typescript-axios",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {