qovery-ws-typescript-axios 0.1.307 → 0.1.313
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 +141 -22
- package/dist/api.d.ts +88 -21
- package/dist/api.js +110 -2
- package/dist/esm/api.d.ts +88 -21
- package/dist/esm/api.js +105 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -79,7 +79,7 @@ export interface CertificateStatusDto {
|
|
|
79
79
|
* @type {number}
|
|
80
80
|
* @memberof CertificateStatusDto
|
|
81
81
|
*/
|
|
82
|
-
'last_failure_issuance_time'
|
|
82
|
+
'last_failure_issuance_time': number;
|
|
83
83
|
/**
|
|
84
84
|
*
|
|
85
85
|
* @type {number}
|
|
@@ -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}
|
|
@@ -970,13 +977,13 @@ export interface NodeResourceAllocatedDto {
|
|
|
970
977
|
* @type {number}
|
|
971
978
|
* @memberof NodeResourceAllocatedDto
|
|
972
979
|
*/
|
|
973
|
-
'limit_cpu_milli'
|
|
980
|
+
'limit_cpu_milli': number;
|
|
974
981
|
/**
|
|
975
982
|
*
|
|
976
983
|
* @type {number}
|
|
977
984
|
* @memberof NodeResourceAllocatedDto
|
|
978
985
|
*/
|
|
979
|
-
'limit_memory_mib'
|
|
986
|
+
'limit_memory_mib': number;
|
|
980
987
|
/**
|
|
981
988
|
*
|
|
982
989
|
* @type {number}
|
|
@@ -1714,7 +1721,8 @@ export const ServiceType = {
|
|
|
1714
1721
|
CONTAINER: 'CONTAINER',
|
|
1715
1722
|
DATABASE: 'DATABASE',
|
|
1716
1723
|
JOB: 'JOB',
|
|
1717
|
-
HELM: 'HELM'
|
|
1724
|
+
HELM: 'HELM',
|
|
1725
|
+
TERRAFORM: 'TERRAFORM'
|
|
1718
1726
|
} as const;
|
|
1719
1727
|
|
|
1720
1728
|
export type ServiceType = typeof ServiceType[keyof typeof ServiceType];
|
|
@@ -1847,6 +1855,117 @@ export class ClusterListNodesApi extends BaseAPI {
|
|
|
1847
1855
|
|
|
1848
1856
|
|
|
1849
1857
|
|
|
1858
|
+
/**
|
|
1859
|
+
* ClusterMetricsApi - axios parameter creator
|
|
1860
|
+
* @export
|
|
1861
|
+
*/
|
|
1862
|
+
export const ClusterMetricsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1863
|
+
return {
|
|
1864
|
+
/**
|
|
1865
|
+
*
|
|
1866
|
+
* @param {string} organization
|
|
1867
|
+
* @param {string} cluster
|
|
1868
|
+
* @param {*} [options] Override http request option.
|
|
1869
|
+
* @throws {RequiredError}
|
|
1870
|
+
*/
|
|
1871
|
+
handleClusterMetricsRequest: async (organization: string, cluster: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1872
|
+
// verify required parameter 'organization' is not null or undefined
|
|
1873
|
+
assertParamExists('handleClusterMetricsRequest', 'organization', organization)
|
|
1874
|
+
// verify required parameter 'cluster' is not null or undefined
|
|
1875
|
+
assertParamExists('handleClusterMetricsRequest', 'cluster', cluster)
|
|
1876
|
+
const localVarPath = `/cluster/metrics`
|
|
1877
|
+
.replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
|
|
1878
|
+
.replace(`{${"cluster"}}`, encodeURIComponent(String(cluster)));
|
|
1879
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1880
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1881
|
+
let baseOptions;
|
|
1882
|
+
if (configuration) {
|
|
1883
|
+
baseOptions = configuration.baseOptions;
|
|
1884
|
+
}
|
|
1885
|
+
|
|
1886
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1887
|
+
const localVarHeaderParameter = {} as any;
|
|
1888
|
+
const localVarQueryParameter = {} as any;
|
|
1889
|
+
|
|
1890
|
+
|
|
1891
|
+
|
|
1892
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1893
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1894
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1895
|
+
|
|
1896
|
+
return {
|
|
1897
|
+
url: toPathString(localVarUrlObj),
|
|
1898
|
+
options: localVarRequestOptions,
|
|
1899
|
+
};
|
|
1900
|
+
},
|
|
1901
|
+
}
|
|
1902
|
+
};
|
|
1903
|
+
|
|
1904
|
+
/**
|
|
1905
|
+
* ClusterMetricsApi - functional programming interface
|
|
1906
|
+
* @export
|
|
1907
|
+
*/
|
|
1908
|
+
export const ClusterMetricsApiFp = function(configuration?: Configuration) {
|
|
1909
|
+
const localVarAxiosParamCreator = ClusterMetricsApiAxiosParamCreator(configuration)
|
|
1910
|
+
return {
|
|
1911
|
+
/**
|
|
1912
|
+
*
|
|
1913
|
+
* @param {string} organization
|
|
1914
|
+
* @param {string} cluster
|
|
1915
|
+
* @param {*} [options] Override http request option.
|
|
1916
|
+
* @throws {RequiredError}
|
|
1917
|
+
*/
|
|
1918
|
+
async handleClusterMetricsRequest(organization: string, cluster: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterMetricsDto>> {
|
|
1919
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.handleClusterMetricsRequest(organization, cluster, options);
|
|
1920
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1921
|
+
const localVarOperationServerBasePath = operationServerMap['ClusterMetricsApi.handleClusterMetricsRequest']?.[localVarOperationServerIndex]?.url;
|
|
1922
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1923
|
+
},
|
|
1924
|
+
}
|
|
1925
|
+
};
|
|
1926
|
+
|
|
1927
|
+
/**
|
|
1928
|
+
* ClusterMetricsApi - factory interface
|
|
1929
|
+
* @export
|
|
1930
|
+
*/
|
|
1931
|
+
export const ClusterMetricsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1932
|
+
const localVarFp = ClusterMetricsApiFp(configuration)
|
|
1933
|
+
return {
|
|
1934
|
+
/**
|
|
1935
|
+
*
|
|
1936
|
+
* @param {string} organization
|
|
1937
|
+
* @param {string} cluster
|
|
1938
|
+
* @param {*} [options] Override http request option.
|
|
1939
|
+
* @throws {RequiredError}
|
|
1940
|
+
*/
|
|
1941
|
+
handleClusterMetricsRequest(organization: string, cluster: string, options?: RawAxiosRequestConfig): AxiosPromise<ClusterMetricsDto> {
|
|
1942
|
+
return localVarFp.handleClusterMetricsRequest(organization, cluster, options).then((request) => request(axios, basePath));
|
|
1943
|
+
},
|
|
1944
|
+
};
|
|
1945
|
+
};
|
|
1946
|
+
|
|
1947
|
+
/**
|
|
1948
|
+
* ClusterMetricsApi - object-oriented interface
|
|
1949
|
+
* @export
|
|
1950
|
+
* @class ClusterMetricsApi
|
|
1951
|
+
* @extends {BaseAPI}
|
|
1952
|
+
*/
|
|
1953
|
+
export class ClusterMetricsApi extends BaseAPI {
|
|
1954
|
+
/**
|
|
1955
|
+
*
|
|
1956
|
+
* @param {string} organization
|
|
1957
|
+
* @param {string} cluster
|
|
1958
|
+
* @param {*} [options] Override http request option.
|
|
1959
|
+
* @throws {RequiredError}
|
|
1960
|
+
* @memberof ClusterMetricsApi
|
|
1961
|
+
*/
|
|
1962
|
+
public handleClusterMetricsRequest(organization: string, cluster: string, options?: RawAxiosRequestConfig) {
|
|
1963
|
+
return ClusterMetricsApiFp(this.configuration).handleClusterMetricsRequest(organization, cluster, options).then((request) => request(this.axios, this.basePath));
|
|
1964
|
+
}
|
|
1965
|
+
}
|
|
1966
|
+
|
|
1967
|
+
|
|
1968
|
+
|
|
1850
1969
|
/**
|
|
1851
1970
|
* ClusterStatusApi - axios parameter creator
|
|
1852
1971
|
* @export
|
package/dist/api.d.ts
CHANGED
|
@@ -67,7 +67,7 @@ export interface CertificateStatusDto {
|
|
|
67
67
|
* @type {number}
|
|
68
68
|
* @memberof CertificateStatusDto
|
|
69
69
|
*/
|
|
70
|
-
'last_failure_issuance_time'
|
|
70
|
+
'last_failure_issuance_time': number;
|
|
71
71
|
/**
|
|
72
72
|
*
|
|
73
73
|
* @type {number}
|
|
@@ -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}
|
|
@@ -946,13 +953,13 @@ export interface NodeResourceAllocatedDto {
|
|
|
946
953
|
* @type {number}
|
|
947
954
|
* @memberof NodeResourceAllocatedDto
|
|
948
955
|
*/
|
|
949
|
-
'limit_cpu_milli'
|
|
956
|
+
'limit_cpu_milli': number;
|
|
950
957
|
/**
|
|
951
958
|
*
|
|
952
959
|
* @type {number}
|
|
953
960
|
* @memberof NodeResourceAllocatedDto
|
|
954
961
|
*/
|
|
955
|
-
'limit_memory_mib'
|
|
962
|
+
'limit_memory_mib': number;
|
|
956
963
|
/**
|
|
957
964
|
*
|
|
958
965
|
* @type {number}
|
|
@@ -1676,6 +1683,7 @@ export declare const ServiceType: {
|
|
|
1676
1683
|
readonly DATABASE: "DATABASE";
|
|
1677
1684
|
readonly JOB: "JOB";
|
|
1678
1685
|
readonly HELM: "HELM";
|
|
1686
|
+
readonly TERRAFORM: "TERRAFORM";
|
|
1679
1687
|
};
|
|
1680
1688
|
export type ServiceType = typeof ServiceType[keyof typeof ServiceType];
|
|
1681
1689
|
/**
|
|
@@ -1748,6 +1756,65 @@ export declare class ClusterListNodesApi extends BaseAPI {
|
|
|
1748
1756
|
*/
|
|
1749
1757
|
handleClusterListNodesRequest(organization: string, cluster: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ClusterListNodesResponseDto, any>>;
|
|
1750
1758
|
}
|
|
1759
|
+
/**
|
|
1760
|
+
* ClusterMetricsApi - axios parameter creator
|
|
1761
|
+
* @export
|
|
1762
|
+
*/
|
|
1763
|
+
export declare const ClusterMetricsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
1764
|
+
/**
|
|
1765
|
+
*
|
|
1766
|
+
* @param {string} organization
|
|
1767
|
+
* @param {string} cluster
|
|
1768
|
+
* @param {*} [options] Override http request option.
|
|
1769
|
+
* @throws {RequiredError}
|
|
1770
|
+
*/
|
|
1771
|
+
handleClusterMetricsRequest: (organization: string, cluster: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1772
|
+
};
|
|
1773
|
+
/**
|
|
1774
|
+
* ClusterMetricsApi - functional programming interface
|
|
1775
|
+
* @export
|
|
1776
|
+
*/
|
|
1777
|
+
export declare const ClusterMetricsApiFp: (configuration?: Configuration) => {
|
|
1778
|
+
/**
|
|
1779
|
+
*
|
|
1780
|
+
* @param {string} organization
|
|
1781
|
+
* @param {string} cluster
|
|
1782
|
+
* @param {*} [options] Override http request option.
|
|
1783
|
+
* @throws {RequiredError}
|
|
1784
|
+
*/
|
|
1785
|
+
handleClusterMetricsRequest(organization: string, cluster: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterMetricsDto>>;
|
|
1786
|
+
};
|
|
1787
|
+
/**
|
|
1788
|
+
* ClusterMetricsApi - factory interface
|
|
1789
|
+
* @export
|
|
1790
|
+
*/
|
|
1791
|
+
export declare const ClusterMetricsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
1792
|
+
/**
|
|
1793
|
+
*
|
|
1794
|
+
* @param {string} organization
|
|
1795
|
+
* @param {string} cluster
|
|
1796
|
+
* @param {*} [options] Override http request option.
|
|
1797
|
+
* @throws {RequiredError}
|
|
1798
|
+
*/
|
|
1799
|
+
handleClusterMetricsRequest(organization: string, cluster: string, options?: RawAxiosRequestConfig): AxiosPromise<ClusterMetricsDto>;
|
|
1800
|
+
};
|
|
1801
|
+
/**
|
|
1802
|
+
* ClusterMetricsApi - object-oriented interface
|
|
1803
|
+
* @export
|
|
1804
|
+
* @class ClusterMetricsApi
|
|
1805
|
+
* @extends {BaseAPI}
|
|
1806
|
+
*/
|
|
1807
|
+
export declare class ClusterMetricsApi extends BaseAPI {
|
|
1808
|
+
/**
|
|
1809
|
+
*
|
|
1810
|
+
* @param {string} organization
|
|
1811
|
+
* @param {string} cluster
|
|
1812
|
+
* @param {*} [options] Override http request option.
|
|
1813
|
+
* @throws {RequiredError}
|
|
1814
|
+
* @memberof ClusterMetricsApi
|
|
1815
|
+
*/
|
|
1816
|
+
handleClusterMetricsRequest(organization: string, cluster: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ClusterMetricsDto, any>>;
|
|
1817
|
+
}
|
|
1751
1818
|
/**
|
|
1752
1819
|
* ClusterStatusApi - axios parameter creator
|
|
1753
1820
|
* @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
|
|
@@ -100,7 +100,8 @@ exports.ServiceType = {
|
|
|
100
100
|
CONTAINER: 'CONTAINER',
|
|
101
101
|
DATABASE: 'DATABASE',
|
|
102
102
|
JOB: 'JOB',
|
|
103
|
-
HELM: 'HELM'
|
|
103
|
+
HELM: 'HELM',
|
|
104
|
+
TERRAFORM: 'TERRAFORM'
|
|
104
105
|
};
|
|
105
106
|
/**
|
|
106
107
|
*
|
|
@@ -219,6 +220,113 @@ class ClusterListNodesApi extends base_1.BaseAPI {
|
|
|
219
220
|
}
|
|
220
221
|
}
|
|
221
222
|
exports.ClusterListNodesApi = ClusterListNodesApi;
|
|
223
|
+
/**
|
|
224
|
+
* ClusterMetricsApi - axios parameter creator
|
|
225
|
+
* @export
|
|
226
|
+
*/
|
|
227
|
+
const ClusterMetricsApiAxiosParamCreator = function (configuration) {
|
|
228
|
+
return {
|
|
229
|
+
/**
|
|
230
|
+
*
|
|
231
|
+
* @param {string} organization
|
|
232
|
+
* @param {string} cluster
|
|
233
|
+
* @param {*} [options] Override http request option.
|
|
234
|
+
* @throws {RequiredError}
|
|
235
|
+
*/
|
|
236
|
+
handleClusterMetricsRequest: (organization_1, cluster_1, ...args_1) => __awaiter(this, [organization_1, cluster_1, ...args_1], void 0, function* (organization, cluster, options = {}) {
|
|
237
|
+
// verify required parameter 'organization' is not null or undefined
|
|
238
|
+
(0, common_1.assertParamExists)('handleClusterMetricsRequest', 'organization', organization);
|
|
239
|
+
// verify required parameter 'cluster' is not null or undefined
|
|
240
|
+
(0, common_1.assertParamExists)('handleClusterMetricsRequest', 'cluster', cluster);
|
|
241
|
+
const localVarPath = `/cluster/metrics`
|
|
242
|
+
.replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
|
|
243
|
+
.replace(`{${"cluster"}}`, encodeURIComponent(String(cluster)));
|
|
244
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
245
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
246
|
+
let baseOptions;
|
|
247
|
+
if (configuration) {
|
|
248
|
+
baseOptions = configuration.baseOptions;
|
|
249
|
+
}
|
|
250
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
251
|
+
const localVarHeaderParameter = {};
|
|
252
|
+
const localVarQueryParameter = {};
|
|
253
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
254
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
255
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
256
|
+
return {
|
|
257
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
258
|
+
options: localVarRequestOptions,
|
|
259
|
+
};
|
|
260
|
+
}),
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
exports.ClusterMetricsApiAxiosParamCreator = ClusterMetricsApiAxiosParamCreator;
|
|
264
|
+
/**
|
|
265
|
+
* ClusterMetricsApi - functional programming interface
|
|
266
|
+
* @export
|
|
267
|
+
*/
|
|
268
|
+
const ClusterMetricsApiFp = function (configuration) {
|
|
269
|
+
const localVarAxiosParamCreator = (0, exports.ClusterMetricsApiAxiosParamCreator)(configuration);
|
|
270
|
+
return {
|
|
271
|
+
/**
|
|
272
|
+
*
|
|
273
|
+
* @param {string} organization
|
|
274
|
+
* @param {string} cluster
|
|
275
|
+
* @param {*} [options] Override http request option.
|
|
276
|
+
* @throws {RequiredError}
|
|
277
|
+
*/
|
|
278
|
+
handleClusterMetricsRequest(organization, cluster, options) {
|
|
279
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
280
|
+
var _a, _b, _c;
|
|
281
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.handleClusterMetricsRequest(organization, cluster, options);
|
|
282
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
283
|
+
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;
|
|
284
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
285
|
+
});
|
|
286
|
+
},
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
exports.ClusterMetricsApiFp = ClusterMetricsApiFp;
|
|
290
|
+
/**
|
|
291
|
+
* ClusterMetricsApi - factory interface
|
|
292
|
+
* @export
|
|
293
|
+
*/
|
|
294
|
+
const ClusterMetricsApiFactory = function (configuration, basePath, axios) {
|
|
295
|
+
const localVarFp = (0, exports.ClusterMetricsApiFp)(configuration);
|
|
296
|
+
return {
|
|
297
|
+
/**
|
|
298
|
+
*
|
|
299
|
+
* @param {string} organization
|
|
300
|
+
* @param {string} cluster
|
|
301
|
+
* @param {*} [options] Override http request option.
|
|
302
|
+
* @throws {RequiredError}
|
|
303
|
+
*/
|
|
304
|
+
handleClusterMetricsRequest(organization, cluster, options) {
|
|
305
|
+
return localVarFp.handleClusterMetricsRequest(organization, cluster, options).then((request) => request(axios, basePath));
|
|
306
|
+
},
|
|
307
|
+
};
|
|
308
|
+
};
|
|
309
|
+
exports.ClusterMetricsApiFactory = ClusterMetricsApiFactory;
|
|
310
|
+
/**
|
|
311
|
+
* ClusterMetricsApi - object-oriented interface
|
|
312
|
+
* @export
|
|
313
|
+
* @class ClusterMetricsApi
|
|
314
|
+
* @extends {BaseAPI}
|
|
315
|
+
*/
|
|
316
|
+
class ClusterMetricsApi extends base_1.BaseAPI {
|
|
317
|
+
/**
|
|
318
|
+
*
|
|
319
|
+
* @param {string} organization
|
|
320
|
+
* @param {string} cluster
|
|
321
|
+
* @param {*} [options] Override http request option.
|
|
322
|
+
* @throws {RequiredError}
|
|
323
|
+
* @memberof ClusterMetricsApi
|
|
324
|
+
*/
|
|
325
|
+
handleClusterMetricsRequest(organization, cluster, options) {
|
|
326
|
+
return (0, exports.ClusterMetricsApiFp)(this.configuration).handleClusterMetricsRequest(organization, cluster, options).then((request) => request(this.axios, this.basePath));
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
exports.ClusterMetricsApi = ClusterMetricsApi;
|
|
222
330
|
/**
|
|
223
331
|
* ClusterStatusApi - axios parameter creator
|
|
224
332
|
* @export
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -67,7 +67,7 @@ export interface CertificateStatusDto {
|
|
|
67
67
|
* @type {number}
|
|
68
68
|
* @memberof CertificateStatusDto
|
|
69
69
|
*/
|
|
70
|
-
'last_failure_issuance_time'
|
|
70
|
+
'last_failure_issuance_time': number;
|
|
71
71
|
/**
|
|
72
72
|
*
|
|
73
73
|
* @type {number}
|
|
@@ -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}
|
|
@@ -946,13 +953,13 @@ export interface NodeResourceAllocatedDto {
|
|
|
946
953
|
* @type {number}
|
|
947
954
|
* @memberof NodeResourceAllocatedDto
|
|
948
955
|
*/
|
|
949
|
-
'limit_cpu_milli'
|
|
956
|
+
'limit_cpu_milli': number;
|
|
950
957
|
/**
|
|
951
958
|
*
|
|
952
959
|
* @type {number}
|
|
953
960
|
* @memberof NodeResourceAllocatedDto
|
|
954
961
|
*/
|
|
955
|
-
'limit_memory_mib'
|
|
962
|
+
'limit_memory_mib': number;
|
|
956
963
|
/**
|
|
957
964
|
*
|
|
958
965
|
* @type {number}
|
|
@@ -1676,6 +1683,7 @@ export declare const ServiceType: {
|
|
|
1676
1683
|
readonly DATABASE: "DATABASE";
|
|
1677
1684
|
readonly JOB: "JOB";
|
|
1678
1685
|
readonly HELM: "HELM";
|
|
1686
|
+
readonly TERRAFORM: "TERRAFORM";
|
|
1679
1687
|
};
|
|
1680
1688
|
export type ServiceType = typeof ServiceType[keyof typeof ServiceType];
|
|
1681
1689
|
/**
|
|
@@ -1748,6 +1756,65 @@ export declare class ClusterListNodesApi extends BaseAPI {
|
|
|
1748
1756
|
*/
|
|
1749
1757
|
handleClusterListNodesRequest(organization: string, cluster: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ClusterListNodesResponseDto, any>>;
|
|
1750
1758
|
}
|
|
1759
|
+
/**
|
|
1760
|
+
* ClusterMetricsApi - axios parameter creator
|
|
1761
|
+
* @export
|
|
1762
|
+
*/
|
|
1763
|
+
export declare const ClusterMetricsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
1764
|
+
/**
|
|
1765
|
+
*
|
|
1766
|
+
* @param {string} organization
|
|
1767
|
+
* @param {string} cluster
|
|
1768
|
+
* @param {*} [options] Override http request option.
|
|
1769
|
+
* @throws {RequiredError}
|
|
1770
|
+
*/
|
|
1771
|
+
handleClusterMetricsRequest: (organization: string, cluster: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1772
|
+
};
|
|
1773
|
+
/**
|
|
1774
|
+
* ClusterMetricsApi - functional programming interface
|
|
1775
|
+
* @export
|
|
1776
|
+
*/
|
|
1777
|
+
export declare const ClusterMetricsApiFp: (configuration?: Configuration) => {
|
|
1778
|
+
/**
|
|
1779
|
+
*
|
|
1780
|
+
* @param {string} organization
|
|
1781
|
+
* @param {string} cluster
|
|
1782
|
+
* @param {*} [options] Override http request option.
|
|
1783
|
+
* @throws {RequiredError}
|
|
1784
|
+
*/
|
|
1785
|
+
handleClusterMetricsRequest(organization: string, cluster: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterMetricsDto>>;
|
|
1786
|
+
};
|
|
1787
|
+
/**
|
|
1788
|
+
* ClusterMetricsApi - factory interface
|
|
1789
|
+
* @export
|
|
1790
|
+
*/
|
|
1791
|
+
export declare const ClusterMetricsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
1792
|
+
/**
|
|
1793
|
+
*
|
|
1794
|
+
* @param {string} organization
|
|
1795
|
+
* @param {string} cluster
|
|
1796
|
+
* @param {*} [options] Override http request option.
|
|
1797
|
+
* @throws {RequiredError}
|
|
1798
|
+
*/
|
|
1799
|
+
handleClusterMetricsRequest(organization: string, cluster: string, options?: RawAxiosRequestConfig): AxiosPromise<ClusterMetricsDto>;
|
|
1800
|
+
};
|
|
1801
|
+
/**
|
|
1802
|
+
* ClusterMetricsApi - object-oriented interface
|
|
1803
|
+
* @export
|
|
1804
|
+
* @class ClusterMetricsApi
|
|
1805
|
+
* @extends {BaseAPI}
|
|
1806
|
+
*/
|
|
1807
|
+
export declare class ClusterMetricsApi extends BaseAPI {
|
|
1808
|
+
/**
|
|
1809
|
+
*
|
|
1810
|
+
* @param {string} organization
|
|
1811
|
+
* @param {string} cluster
|
|
1812
|
+
* @param {*} [options] Override http request option.
|
|
1813
|
+
* @throws {RequiredError}
|
|
1814
|
+
* @memberof ClusterMetricsApi
|
|
1815
|
+
*/
|
|
1816
|
+
handleClusterMetricsRequest(organization: string, cluster: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ClusterMetricsDto, any>>;
|
|
1817
|
+
}
|
|
1751
1818
|
/**
|
|
1752
1819
|
* ClusterStatusApi - axios parameter creator
|
|
1753
1820
|
* @export
|
package/dist/esm/api.js
CHANGED
|
@@ -97,7 +97,8 @@ export const ServiceType = {
|
|
|
97
97
|
CONTAINER: 'CONTAINER',
|
|
98
98
|
DATABASE: 'DATABASE',
|
|
99
99
|
JOB: 'JOB',
|
|
100
|
-
HELM: 'HELM'
|
|
100
|
+
HELM: 'HELM',
|
|
101
|
+
TERRAFORM: 'TERRAFORM'
|
|
101
102
|
};
|
|
102
103
|
/**
|
|
103
104
|
*
|
|
@@ -212,6 +213,109 @@ export class ClusterListNodesApi extends BaseAPI {
|
|
|
212
213
|
return ClusterListNodesApiFp(this.configuration).handleClusterListNodesRequest(organization, cluster, options).then((request) => request(this.axios, this.basePath));
|
|
213
214
|
}
|
|
214
215
|
}
|
|
216
|
+
/**
|
|
217
|
+
* ClusterMetricsApi - axios parameter creator
|
|
218
|
+
* @export
|
|
219
|
+
*/
|
|
220
|
+
export const ClusterMetricsApiAxiosParamCreator = function (configuration) {
|
|
221
|
+
return {
|
|
222
|
+
/**
|
|
223
|
+
*
|
|
224
|
+
* @param {string} organization
|
|
225
|
+
* @param {string} cluster
|
|
226
|
+
* @param {*} [options] Override http request option.
|
|
227
|
+
* @throws {RequiredError}
|
|
228
|
+
*/
|
|
229
|
+
handleClusterMetricsRequest: (organization_1, cluster_1, ...args_1) => __awaiter(this, [organization_1, cluster_1, ...args_1], void 0, function* (organization, cluster, options = {}) {
|
|
230
|
+
// verify required parameter 'organization' is not null or undefined
|
|
231
|
+
assertParamExists('handleClusterMetricsRequest', 'organization', organization);
|
|
232
|
+
// verify required parameter 'cluster' is not null or undefined
|
|
233
|
+
assertParamExists('handleClusterMetricsRequest', 'cluster', cluster);
|
|
234
|
+
const localVarPath = `/cluster/metrics`
|
|
235
|
+
.replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
|
|
236
|
+
.replace(`{${"cluster"}}`, encodeURIComponent(String(cluster)));
|
|
237
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
238
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
239
|
+
let baseOptions;
|
|
240
|
+
if (configuration) {
|
|
241
|
+
baseOptions = configuration.baseOptions;
|
|
242
|
+
}
|
|
243
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
244
|
+
const localVarHeaderParameter = {};
|
|
245
|
+
const localVarQueryParameter = {};
|
|
246
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
247
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
248
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
249
|
+
return {
|
|
250
|
+
url: toPathString(localVarUrlObj),
|
|
251
|
+
options: localVarRequestOptions,
|
|
252
|
+
};
|
|
253
|
+
}),
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
/**
|
|
257
|
+
* ClusterMetricsApi - functional programming interface
|
|
258
|
+
* @export
|
|
259
|
+
*/
|
|
260
|
+
export const ClusterMetricsApiFp = function (configuration) {
|
|
261
|
+
const localVarAxiosParamCreator = ClusterMetricsApiAxiosParamCreator(configuration);
|
|
262
|
+
return {
|
|
263
|
+
/**
|
|
264
|
+
*
|
|
265
|
+
* @param {string} organization
|
|
266
|
+
* @param {string} cluster
|
|
267
|
+
* @param {*} [options] Override http request option.
|
|
268
|
+
* @throws {RequiredError}
|
|
269
|
+
*/
|
|
270
|
+
handleClusterMetricsRequest(organization, cluster, options) {
|
|
271
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
272
|
+
var _a, _b, _c;
|
|
273
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.handleClusterMetricsRequest(organization, cluster, options);
|
|
274
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
275
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClusterMetricsApi.handleClusterMetricsRequest']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
276
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
277
|
+
});
|
|
278
|
+
},
|
|
279
|
+
};
|
|
280
|
+
};
|
|
281
|
+
/**
|
|
282
|
+
* ClusterMetricsApi - factory interface
|
|
283
|
+
* @export
|
|
284
|
+
*/
|
|
285
|
+
export const ClusterMetricsApiFactory = function (configuration, basePath, axios) {
|
|
286
|
+
const localVarFp = ClusterMetricsApiFp(configuration);
|
|
287
|
+
return {
|
|
288
|
+
/**
|
|
289
|
+
*
|
|
290
|
+
* @param {string} organization
|
|
291
|
+
* @param {string} cluster
|
|
292
|
+
* @param {*} [options] Override http request option.
|
|
293
|
+
* @throws {RequiredError}
|
|
294
|
+
*/
|
|
295
|
+
handleClusterMetricsRequest(organization, cluster, options) {
|
|
296
|
+
return localVarFp.handleClusterMetricsRequest(organization, cluster, options).then((request) => request(axios, basePath));
|
|
297
|
+
},
|
|
298
|
+
};
|
|
299
|
+
};
|
|
300
|
+
/**
|
|
301
|
+
* ClusterMetricsApi - object-oriented interface
|
|
302
|
+
* @export
|
|
303
|
+
* @class ClusterMetricsApi
|
|
304
|
+
* @extends {BaseAPI}
|
|
305
|
+
*/
|
|
306
|
+
export class ClusterMetricsApi extends BaseAPI {
|
|
307
|
+
/**
|
|
308
|
+
*
|
|
309
|
+
* @param {string} organization
|
|
310
|
+
* @param {string} cluster
|
|
311
|
+
* @param {*} [options] Override http request option.
|
|
312
|
+
* @throws {RequiredError}
|
|
313
|
+
* @memberof ClusterMetricsApi
|
|
314
|
+
*/
|
|
315
|
+
handleClusterMetricsRequest(organization, cluster, options) {
|
|
316
|
+
return ClusterMetricsApiFp(this.configuration).handleClusterMetricsRequest(organization, cluster, options).then((request) => request(this.axios, this.basePath));
|
|
317
|
+
}
|
|
318
|
+
}
|
|
215
319
|
/**
|
|
216
320
|
* ClusterStatusApi - axios parameter creator
|
|
217
321
|
* @export
|