qovery-ws-typescript-axios 0.1.274 → 0.1.275
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/.openapi-generator/VERSION +1 -1
- package/README.md +3 -2
- package/api.ts +87 -65
- package/base.ts +17 -3
- package/common.ts +1 -1
- package/configuration.ts +9 -0
- package/dist/api.d.ts +53 -53
- package/dist/api.js +55 -22
- package/dist/base.d.ts +14 -2
- package/dist/base.js +8 -2
- package/dist/common.d.ts +1 -1
- package/dist/common.js +2 -1
- package/dist/configuration.d.ts +8 -0
- package/dist/configuration.js +1 -0
- package/dist/esm/api.d.ts +53 -53
- package/dist/esm/api.js +56 -23
- package/dist/esm/base.d.ts +14 -2
- package/dist/esm/base.js +7 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +2 -1
- package/dist/esm/configuration.d.ts +8 -0
- package/dist/esm/configuration.js +1 -0
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
7.0
|
|
1
|
+
7.8.0
|
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ Module system
|
|
|
15
15
|
* CommonJS
|
|
16
16
|
* ES6 module system
|
|
17
17
|
|
|
18
|
-
It can be used in both TypeScript and JavaScript. In TypeScript, the definition
|
|
18
|
+
It can be used in both TypeScript and JavaScript. In TypeScript, the definition will be automatically resolved via `package.json`. ([Reference](https://www.typescriptlang.org/docs/handbook/declaration-files/consumption.html))
|
|
19
19
|
|
|
20
20
|
### Building
|
|
21
21
|
|
|
@@ -27,7 +27,7 @@ npm run build
|
|
|
27
27
|
|
|
28
28
|
### Publishing
|
|
29
29
|
|
|
30
|
-
First build the package then run
|
|
30
|
+
First build the package then run `npm publish`
|
|
31
31
|
|
|
32
32
|
### Consuming
|
|
33
33
|
|
|
@@ -43,3 +43,4 @@ _unPublished (not recommended):_
|
|
|
43
43
|
|
|
44
44
|
```
|
|
45
45
|
npm install PATH_TO_GENERATED_PACKAGE --save
|
|
46
|
+
```
|
package/api.ts
CHANGED
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
import type { Configuration } from './configuration';
|
|
17
|
-
import type { AxiosPromise, AxiosInstance,
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
18
|
import globalAxios from 'axios';
|
|
19
19
|
// Some imports not used depending on template conditions
|
|
20
20
|
// @ts-ignore
|
|
21
21
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
22
22
|
import type { RequestArgs } from './base';
|
|
23
23
|
// @ts-ignore
|
|
24
|
-
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError } from './base';
|
|
24
|
+
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
*
|
|
@@ -139,10 +139,10 @@ export interface ClusterComputedStatusDto {
|
|
|
139
139
|
'kube_version_status': QoveryClusterKubeVersionStatus;
|
|
140
140
|
/**
|
|
141
141
|
*
|
|
142
|
-
* @type {{ [key: string]:
|
|
142
|
+
* @type {{ [key: string]: Array<QoveryNodeFailure>; }}
|
|
143
143
|
* @memberof ClusterComputedStatusDto
|
|
144
144
|
*/
|
|
145
|
-
'node_warnings': { [key: string]:
|
|
145
|
+
'node_warnings': { [key: string]: Array<QoveryNodeFailure>; };
|
|
146
146
|
/**
|
|
147
147
|
*
|
|
148
148
|
* @type {Array<QoveryComponentInFailure>}
|
|
@@ -500,10 +500,10 @@ export interface EnvironmentStatusDto {
|
|
|
500
500
|
'applications': Array<ApplicationStatusDto>;
|
|
501
501
|
/**
|
|
502
502
|
*
|
|
503
|
-
* @type {
|
|
503
|
+
* @type {Array<ApplicationStatusDto>}
|
|
504
504
|
* @memberof EnvironmentStatusDto
|
|
505
505
|
*/
|
|
506
|
-
'containers':
|
|
506
|
+
'containers': Array<ApplicationStatusDto>;
|
|
507
507
|
/**
|
|
508
508
|
*
|
|
509
509
|
* @type {Array<DatabaseStatusDto>}
|
|
@@ -512,10 +512,10 @@ export interface EnvironmentStatusDto {
|
|
|
512
512
|
'databases': Array<DatabaseStatusDto>;
|
|
513
513
|
/**
|
|
514
514
|
*
|
|
515
|
-
* @type {
|
|
515
|
+
* @type {Array<ApplicationStatusDto>}
|
|
516
516
|
* @memberof EnvironmentStatusDto
|
|
517
517
|
*/
|
|
518
|
-
'helms':
|
|
518
|
+
'helms': Array<ApplicationStatusDto>;
|
|
519
519
|
/**
|
|
520
520
|
*
|
|
521
521
|
* @type {string}
|
|
@@ -524,10 +524,10 @@ export interface EnvironmentStatusDto {
|
|
|
524
524
|
'id': string;
|
|
525
525
|
/**
|
|
526
526
|
*
|
|
527
|
-
* @type {
|
|
527
|
+
* @type {Array<ApplicationStatusDto>}
|
|
528
528
|
* @memberof EnvironmentStatusDto
|
|
529
529
|
*/
|
|
530
|
-
'jobs':
|
|
530
|
+
'jobs': Array<ApplicationStatusDto>;
|
|
531
531
|
/**
|
|
532
532
|
*
|
|
533
533
|
* @type {string}
|
|
@@ -1641,7 +1641,7 @@ export const ClusterListNodesApiAxiosParamCreator = function (configuration?: Co
|
|
|
1641
1641
|
* @param {*} [options] Override http request option.
|
|
1642
1642
|
* @throws {RequiredError}
|
|
1643
1643
|
*/
|
|
1644
|
-
handleClusterListNodesRequest: async (organization: string, cluster: string, options:
|
|
1644
|
+
handleClusterListNodesRequest: async (organization: string, cluster: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1645
1645
|
// verify required parameter 'organization' is not null or undefined
|
|
1646
1646
|
assertParamExists('handleClusterListNodesRequest', 'organization', organization)
|
|
1647
1647
|
// verify required parameter 'cluster' is not null or undefined
|
|
@@ -1688,9 +1688,11 @@ export const ClusterListNodesApiFp = function(configuration?: Configuration) {
|
|
|
1688
1688
|
* @param {*} [options] Override http request option.
|
|
1689
1689
|
* @throws {RequiredError}
|
|
1690
1690
|
*/
|
|
1691
|
-
async handleClusterListNodesRequest(organization: string, cluster: string, options?:
|
|
1691
|
+
async handleClusterListNodesRequest(organization: string, cluster: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterListNodesResponseDto>> {
|
|
1692
1692
|
const localVarAxiosArgs = await localVarAxiosParamCreator.handleClusterListNodesRequest(organization, cluster, options);
|
|
1693
|
-
|
|
1693
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1694
|
+
const localVarOperationServerBasePath = operationServerMap['ClusterListNodesApi.handleClusterListNodesRequest']?.[localVarOperationServerIndex]?.url;
|
|
1695
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1694
1696
|
},
|
|
1695
1697
|
}
|
|
1696
1698
|
};
|
|
@@ -1709,7 +1711,7 @@ export const ClusterListNodesApiFactory = function (configuration?: Configuratio
|
|
|
1709
1711
|
* @param {*} [options] Override http request option.
|
|
1710
1712
|
* @throws {RequiredError}
|
|
1711
1713
|
*/
|
|
1712
|
-
handleClusterListNodesRequest(organization: string, cluster: string, options?:
|
|
1714
|
+
handleClusterListNodesRequest(organization: string, cluster: string, options?: RawAxiosRequestConfig): AxiosPromise<ClusterListNodesResponseDto> {
|
|
1713
1715
|
return localVarFp.handleClusterListNodesRequest(organization, cluster, options).then((request) => request(axios, basePath));
|
|
1714
1716
|
},
|
|
1715
1717
|
};
|
|
@@ -1730,7 +1732,7 @@ export class ClusterListNodesApi extends BaseAPI {
|
|
|
1730
1732
|
* @throws {RequiredError}
|
|
1731
1733
|
* @memberof ClusterListNodesApi
|
|
1732
1734
|
*/
|
|
1733
|
-
public handleClusterListNodesRequest(organization: string, cluster: string, options?:
|
|
1735
|
+
public handleClusterListNodesRequest(organization: string, cluster: string, options?: RawAxiosRequestConfig) {
|
|
1734
1736
|
return ClusterListNodesApiFp(this.configuration).handleClusterListNodesRequest(organization, cluster, options).then((request) => request(this.axios, this.basePath));
|
|
1735
1737
|
}
|
|
1736
1738
|
}
|
|
@@ -1750,7 +1752,7 @@ export const ClusterStatusApiAxiosParamCreator = function (configuration?: Confi
|
|
|
1750
1752
|
* @param {*} [options] Override http request option.
|
|
1751
1753
|
* @throws {RequiredError}
|
|
1752
1754
|
*/
|
|
1753
|
-
handleClusterStatusRequest: async (organization: string, cluster: string, options:
|
|
1755
|
+
handleClusterStatusRequest: async (organization: string, cluster: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1754
1756
|
// verify required parameter 'organization' is not null or undefined
|
|
1755
1757
|
assertParamExists('handleClusterStatusRequest', 'organization', organization)
|
|
1756
1758
|
// verify required parameter 'cluster' is not null or undefined
|
|
@@ -1797,9 +1799,11 @@ export const ClusterStatusApiFp = function(configuration?: Configuration) {
|
|
|
1797
1799
|
* @param {*} [options] Override http request option.
|
|
1798
1800
|
* @throws {RequiredError}
|
|
1799
1801
|
*/
|
|
1800
|
-
async handleClusterStatusRequest(organization: string, cluster: string, options?:
|
|
1802
|
+
async handleClusterStatusRequest(organization: string, cluster: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterStatusDto>> {
|
|
1801
1803
|
const localVarAxiosArgs = await localVarAxiosParamCreator.handleClusterStatusRequest(organization, cluster, options);
|
|
1802
|
-
|
|
1804
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1805
|
+
const localVarOperationServerBasePath = operationServerMap['ClusterStatusApi.handleClusterStatusRequest']?.[localVarOperationServerIndex]?.url;
|
|
1806
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1803
1807
|
},
|
|
1804
1808
|
}
|
|
1805
1809
|
};
|
|
@@ -1818,7 +1822,7 @@ export const ClusterStatusApiFactory = function (configuration?: Configuration,
|
|
|
1818
1822
|
* @param {*} [options] Override http request option.
|
|
1819
1823
|
* @throws {RequiredError}
|
|
1820
1824
|
*/
|
|
1821
|
-
handleClusterStatusRequest(organization: string, cluster: string, options?:
|
|
1825
|
+
handleClusterStatusRequest(organization: string, cluster: string, options?: RawAxiosRequestConfig): AxiosPromise<ClusterStatusDto> {
|
|
1822
1826
|
return localVarFp.handleClusterStatusRequest(organization, cluster, options).then((request) => request(axios, basePath));
|
|
1823
1827
|
},
|
|
1824
1828
|
};
|
|
@@ -1839,7 +1843,7 @@ export class ClusterStatusApi extends BaseAPI {
|
|
|
1839
1843
|
* @throws {RequiredError}
|
|
1840
1844
|
* @memberof ClusterStatusApi
|
|
1841
1845
|
*/
|
|
1842
|
-
public handleClusterStatusRequest(organization: string, cluster: string, options?:
|
|
1846
|
+
public handleClusterStatusRequest(organization: string, cluster: string, options?: RawAxiosRequestConfig) {
|
|
1843
1847
|
return ClusterStatusApiFp(this.configuration).handleClusterStatusRequest(organization, cluster, options).then((request) => request(this.axios, this.basePath));
|
|
1844
1848
|
}
|
|
1845
1849
|
}
|
|
@@ -1862,7 +1866,7 @@ export const DeploymentApiAxiosParamCreator = function (configuration?: Configur
|
|
|
1862
1866
|
* @param {*} [options] Override http request option.
|
|
1863
1867
|
* @throws {RequiredError}
|
|
1864
1868
|
*/
|
|
1865
|
-
handleDeploymentLogsRequest: async (organization: string, cluster: string | null, project: string, environment: string, version: string | null, options:
|
|
1869
|
+
handleDeploymentLogsRequest: async (organization: string, cluster: string | null, project: string, environment: string, version: string | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1866
1870
|
// verify required parameter 'organization' is not null or undefined
|
|
1867
1871
|
assertParamExists('handleDeploymentLogsRequest', 'organization', organization)
|
|
1868
1872
|
// verify required parameter 'cluster' is not null or undefined
|
|
@@ -1911,7 +1915,7 @@ export const DeploymentApiAxiosParamCreator = function (configuration?: Configur
|
|
|
1911
1915
|
* @param {*} [options] Override http request option.
|
|
1912
1916
|
* @throws {RequiredError}
|
|
1913
1917
|
*/
|
|
1914
|
-
handleDeploymentStatusRequest: async (organization: string, cluster: string | null, project: string, environment: string | null, version: string | null, options:
|
|
1918
|
+
handleDeploymentStatusRequest: async (organization: string, cluster: string | null, project: string, environment: string | null, version: string | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1915
1919
|
// verify required parameter 'organization' is not null or undefined
|
|
1916
1920
|
assertParamExists('handleDeploymentStatusRequest', 'organization', organization)
|
|
1917
1921
|
// verify required parameter 'cluster' is not null or undefined
|
|
@@ -1970,9 +1974,11 @@ export const DeploymentApiFp = function(configuration?: Configuration) {
|
|
|
1970
1974
|
* @param {*} [options] Override http request option.
|
|
1971
1975
|
* @throws {RequiredError}
|
|
1972
1976
|
*/
|
|
1973
|
-
async handleDeploymentLogsRequest(organization: string, cluster: string | null, project: string, environment: string, version: string | null, options?:
|
|
1977
|
+
async handleDeploymentLogsRequest(organization: string, cluster: string | null, project: string, environment: string, version: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
1974
1978
|
const localVarAxiosArgs = await localVarAxiosParamCreator.handleDeploymentLogsRequest(organization, cluster, project, environment, version, options);
|
|
1975
|
-
|
|
1979
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1980
|
+
const localVarOperationServerBasePath = operationServerMap['DeploymentApi.handleDeploymentLogsRequest']?.[localVarOperationServerIndex]?.url;
|
|
1981
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1976
1982
|
},
|
|
1977
1983
|
/**
|
|
1978
1984
|
*
|
|
@@ -1984,9 +1990,11 @@ export const DeploymentApiFp = function(configuration?: Configuration) {
|
|
|
1984
1990
|
* @param {*} [options] Override http request option.
|
|
1985
1991
|
* @throws {RequiredError}
|
|
1986
1992
|
*/
|
|
1987
|
-
async handleDeploymentStatusRequest(organization: string, cluster: string | null, project: string, environment: string | null, version: string | null, options?:
|
|
1993
|
+
async handleDeploymentStatusRequest(organization: string, cluster: string | null, project: string, environment: string | null, version: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
1988
1994
|
const localVarAxiosArgs = await localVarAxiosParamCreator.handleDeploymentStatusRequest(organization, cluster, project, environment, version, options);
|
|
1989
|
-
|
|
1995
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1996
|
+
const localVarOperationServerBasePath = operationServerMap['DeploymentApi.handleDeploymentStatusRequest']?.[localVarOperationServerIndex]?.url;
|
|
1997
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1990
1998
|
},
|
|
1991
1999
|
}
|
|
1992
2000
|
};
|
|
@@ -2008,7 +2016,7 @@ export const DeploymentApiFactory = function (configuration?: Configuration, bas
|
|
|
2008
2016
|
* @param {*} [options] Override http request option.
|
|
2009
2017
|
* @throws {RequiredError}
|
|
2010
2018
|
*/
|
|
2011
|
-
handleDeploymentLogsRequest(organization: string, cluster: string | null, project: string, environment: string, version: string | null, options?:
|
|
2019
|
+
handleDeploymentLogsRequest(organization: string, cluster: string | null, project: string, environment: string, version: string | null, options?: RawAxiosRequestConfig): AxiosPromise<string> {
|
|
2012
2020
|
return localVarFp.handleDeploymentLogsRequest(organization, cluster, project, environment, version, options).then((request) => request(axios, basePath));
|
|
2013
2021
|
},
|
|
2014
2022
|
/**
|
|
@@ -2021,7 +2029,7 @@ export const DeploymentApiFactory = function (configuration?: Configuration, bas
|
|
|
2021
2029
|
* @param {*} [options] Override http request option.
|
|
2022
2030
|
* @throws {RequiredError}
|
|
2023
2031
|
*/
|
|
2024
|
-
handleDeploymentStatusRequest(organization: string, cluster: string | null, project: string, environment: string | null, version: string | null, options?:
|
|
2032
|
+
handleDeploymentStatusRequest(organization: string, cluster: string | null, project: string, environment: string | null, version: string | null, options?: RawAxiosRequestConfig): AxiosPromise<string> {
|
|
2025
2033
|
return localVarFp.handleDeploymentStatusRequest(organization, cluster, project, environment, version, options).then((request) => request(axios, basePath));
|
|
2026
2034
|
},
|
|
2027
2035
|
};
|
|
@@ -2045,7 +2053,7 @@ export class DeploymentApi extends BaseAPI {
|
|
|
2045
2053
|
* @throws {RequiredError}
|
|
2046
2054
|
* @memberof DeploymentApi
|
|
2047
2055
|
*/
|
|
2048
|
-
public handleDeploymentLogsRequest(organization: string, cluster: string | null, project: string, environment: string, version: string | null, options?:
|
|
2056
|
+
public handleDeploymentLogsRequest(organization: string, cluster: string | null, project: string, environment: string, version: string | null, options?: RawAxiosRequestConfig) {
|
|
2049
2057
|
return DeploymentApiFp(this.configuration).handleDeploymentLogsRequest(organization, cluster, project, environment, version, options).then((request) => request(this.axios, this.basePath));
|
|
2050
2058
|
}
|
|
2051
2059
|
|
|
@@ -2060,7 +2068,7 @@ export class DeploymentApi extends BaseAPI {
|
|
|
2060
2068
|
* @throws {RequiredError}
|
|
2061
2069
|
* @memberof DeploymentApi
|
|
2062
2070
|
*/
|
|
2063
|
-
public handleDeploymentStatusRequest(organization: string, cluster: string | null, project: string, environment: string | null, version: string | null, options?:
|
|
2071
|
+
public handleDeploymentStatusRequest(organization: string, cluster: string | null, project: string, environment: string | null, version: string | null, options?: RawAxiosRequestConfig) {
|
|
2064
2072
|
return DeploymentApiFp(this.configuration).handleDeploymentStatusRequest(organization, cluster, project, environment, version, options).then((request) => request(this.axios, this.basePath));
|
|
2065
2073
|
}
|
|
2066
2074
|
}
|
|
@@ -2084,7 +2092,7 @@ export const LogsApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
2084
2092
|
* @param {*} [options] Override http request option.
|
|
2085
2093
|
* @throws {RequiredError}
|
|
2086
2094
|
*/
|
|
2087
|
-
handleInfraLogsRequest: async (organization: string, cluster: string, project: string | null, environment: string | null, service: string | null, infraComponentType: string, options:
|
|
2095
|
+
handleInfraLogsRequest: async (organization: string, cluster: string, project: string | null, environment: string | null, service: string | null, infraComponentType: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2088
2096
|
// verify required parameter 'organization' is not null or undefined
|
|
2089
2097
|
assertParamExists('handleInfraLogsRequest', 'organization', organization)
|
|
2090
2098
|
// verify required parameter 'cluster' is not null or undefined
|
|
@@ -2137,7 +2145,7 @@ export const LogsApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
2137
2145
|
* @param {*} [options] Override http request option.
|
|
2138
2146
|
* @throws {RequiredError}
|
|
2139
2147
|
*/
|
|
2140
|
-
handleServiceLogsRequest: async (organization: string, cluster: string, project: string, environment: string, service: string, podName: string | null, options:
|
|
2148
|
+
handleServiceLogsRequest: async (organization: string, cluster: string, project: string, environment: string, service: string, podName: string | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2141
2149
|
// verify required parameter 'organization' is not null or undefined
|
|
2142
2150
|
assertParamExists('handleServiceLogsRequest', 'organization', organization)
|
|
2143
2151
|
// verify required parameter 'cluster' is not null or undefined
|
|
@@ -2200,9 +2208,11 @@ export const LogsApiFp = function(configuration?: Configuration) {
|
|
|
2200
2208
|
* @param {*} [options] Override http request option.
|
|
2201
2209
|
* @throws {RequiredError}
|
|
2202
2210
|
*/
|
|
2203
|
-
async handleInfraLogsRequest(organization: string, cluster: string, project: string | null, environment: string | null, service: string | null, infraComponentType: string, options?:
|
|
2211
|
+
async handleInfraLogsRequest(organization: string, cluster: string, project: string | null, environment: string | null, service: string | null, infraComponentType: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceInfraLogResponseDto>> {
|
|
2204
2212
|
const localVarAxiosArgs = await localVarAxiosParamCreator.handleInfraLogsRequest(organization, cluster, project, environment, service, infraComponentType, options);
|
|
2205
|
-
|
|
2213
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2214
|
+
const localVarOperationServerBasePath = operationServerMap['LogsApi.handleInfraLogsRequest']?.[localVarOperationServerIndex]?.url;
|
|
2215
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2206
2216
|
},
|
|
2207
2217
|
/**
|
|
2208
2218
|
*
|
|
@@ -2215,9 +2225,11 @@ export const LogsApiFp = function(configuration?: Configuration) {
|
|
|
2215
2225
|
* @param {*} [options] Override http request option.
|
|
2216
2226
|
* @throws {RequiredError}
|
|
2217
2227
|
*/
|
|
2218
|
-
async handleServiceLogsRequest(organization: string, cluster: string, project: string, environment: string, service: string, podName: string | null, options?:
|
|
2228
|
+
async handleServiceLogsRequest(organization: string, cluster: string, project: string, environment: string, service: string, podName: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceLogResponseDto>> {
|
|
2219
2229
|
const localVarAxiosArgs = await localVarAxiosParamCreator.handleServiceLogsRequest(organization, cluster, project, environment, service, podName, options);
|
|
2220
|
-
|
|
2230
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2231
|
+
const localVarOperationServerBasePath = operationServerMap['LogsApi.handleServiceLogsRequest']?.[localVarOperationServerIndex]?.url;
|
|
2232
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2221
2233
|
},
|
|
2222
2234
|
}
|
|
2223
2235
|
};
|
|
@@ -2240,7 +2252,7 @@ export const LogsApiFactory = function (configuration?: Configuration, basePath?
|
|
|
2240
2252
|
* @param {*} [options] Override http request option.
|
|
2241
2253
|
* @throws {RequiredError}
|
|
2242
2254
|
*/
|
|
2243
|
-
handleInfraLogsRequest(organization: string, cluster: string, project: string | null, environment: string | null, service: string | null, infraComponentType: string, options?:
|
|
2255
|
+
handleInfraLogsRequest(organization: string, cluster: string, project: string | null, environment: string | null, service: string | null, infraComponentType: string, options?: RawAxiosRequestConfig): AxiosPromise<ServiceInfraLogResponseDto> {
|
|
2244
2256
|
return localVarFp.handleInfraLogsRequest(organization, cluster, project, environment, service, infraComponentType, options).then((request) => request(axios, basePath));
|
|
2245
2257
|
},
|
|
2246
2258
|
/**
|
|
@@ -2254,7 +2266,7 @@ export const LogsApiFactory = function (configuration?: Configuration, basePath?
|
|
|
2254
2266
|
* @param {*} [options] Override http request option.
|
|
2255
2267
|
* @throws {RequiredError}
|
|
2256
2268
|
*/
|
|
2257
|
-
handleServiceLogsRequest(organization: string, cluster: string, project: string, environment: string, service: string, podName: string | null, options?:
|
|
2269
|
+
handleServiceLogsRequest(organization: string, cluster: string, project: string, environment: string, service: string, podName: string | null, options?: RawAxiosRequestConfig): AxiosPromise<ServiceLogResponseDto> {
|
|
2258
2270
|
return localVarFp.handleServiceLogsRequest(organization, cluster, project, environment, service, podName, options).then((request) => request(axios, basePath));
|
|
2259
2271
|
},
|
|
2260
2272
|
};
|
|
@@ -2279,7 +2291,7 @@ export class LogsApi extends BaseAPI {
|
|
|
2279
2291
|
* @throws {RequiredError}
|
|
2280
2292
|
* @memberof LogsApi
|
|
2281
2293
|
*/
|
|
2282
|
-
public handleInfraLogsRequest(organization: string, cluster: string, project: string | null, environment: string | null, service: string | null, infraComponentType: string, options?:
|
|
2294
|
+
public handleInfraLogsRequest(organization: string, cluster: string, project: string | null, environment: string | null, service: string | null, infraComponentType: string, options?: RawAxiosRequestConfig) {
|
|
2283
2295
|
return LogsApiFp(this.configuration).handleInfraLogsRequest(organization, cluster, project, environment, service, infraComponentType, options).then((request) => request(this.axios, this.basePath));
|
|
2284
2296
|
}
|
|
2285
2297
|
|
|
@@ -2295,7 +2307,7 @@ export class LogsApi extends BaseAPI {
|
|
|
2295
2307
|
* @throws {RequiredError}
|
|
2296
2308
|
* @memberof LogsApi
|
|
2297
2309
|
*/
|
|
2298
|
-
public handleServiceLogsRequest(organization: string, cluster: string, project: string, environment: string, service: string, podName: string | null, options?:
|
|
2310
|
+
public handleServiceLogsRequest(organization: string, cluster: string, project: string, environment: string, service: string, podName: string | null, options?: RawAxiosRequestConfig) {
|
|
2299
2311
|
return LogsApiFp(this.configuration).handleServiceLogsRequest(organization, cluster, project, environment, service, podName, options).then((request) => request(this.axios, this.basePath));
|
|
2300
2312
|
}
|
|
2301
2313
|
}
|
|
@@ -2319,7 +2331,7 @@ export const RemoteDebugApiAxiosParamCreator = function (configuration?: Configu
|
|
|
2319
2331
|
* @param {*} [options] Override http request option.
|
|
2320
2332
|
* @throws {RequiredError}
|
|
2321
2333
|
*/
|
|
2322
|
-
handleShellRemoteDebug: async (organization: string, cluster: string, flavor: DebugFlavor, ttyWidth: number, ttyHeight: number, nodeSelector: string | null, options:
|
|
2334
|
+
handleShellRemoteDebug: async (organization: string, cluster: string, flavor: DebugFlavor, ttyWidth: number, ttyHeight: number, nodeSelector: string | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2323
2335
|
// verify required parameter 'organization' is not null or undefined
|
|
2324
2336
|
assertParamExists('handleShellRemoteDebug', 'organization', organization)
|
|
2325
2337
|
// verify required parameter 'cluster' is not null or undefined
|
|
@@ -2382,9 +2394,11 @@ export const RemoteDebugApiFp = function(configuration?: Configuration) {
|
|
|
2382
2394
|
* @param {*} [options] Override http request option.
|
|
2383
2395
|
* @throws {RequiredError}
|
|
2384
2396
|
*/
|
|
2385
|
-
async handleShellRemoteDebug(organization: string, cluster: string, flavor: DebugFlavor, ttyWidth: number, ttyHeight: number, nodeSelector: string | null, options?:
|
|
2397
|
+
async handleShellRemoteDebug(organization: string, cluster: string, flavor: DebugFlavor, ttyWidth: number, ttyHeight: number, nodeSelector: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
2386
2398
|
const localVarAxiosArgs = await localVarAxiosParamCreator.handleShellRemoteDebug(organization, cluster, flavor, ttyWidth, ttyHeight, nodeSelector, options);
|
|
2387
|
-
|
|
2399
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2400
|
+
const localVarOperationServerBasePath = operationServerMap['RemoteDebugApi.handleShellRemoteDebug']?.[localVarOperationServerIndex]?.url;
|
|
2401
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2388
2402
|
},
|
|
2389
2403
|
}
|
|
2390
2404
|
};
|
|
@@ -2407,7 +2421,7 @@ export const RemoteDebugApiFactory = function (configuration?: Configuration, ba
|
|
|
2407
2421
|
* @param {*} [options] Override http request option.
|
|
2408
2422
|
* @throws {RequiredError}
|
|
2409
2423
|
*/
|
|
2410
|
-
handleShellRemoteDebug(organization: string, cluster: string, flavor: DebugFlavor, ttyWidth: number, ttyHeight: number, nodeSelector: string | null, options?:
|
|
2424
|
+
handleShellRemoteDebug(organization: string, cluster: string, flavor: DebugFlavor, ttyWidth: number, ttyHeight: number, nodeSelector: string | null, options?: RawAxiosRequestConfig): AxiosPromise<string> {
|
|
2411
2425
|
return localVarFp.handleShellRemoteDebug(organization, cluster, flavor, ttyWidth, ttyHeight, nodeSelector, options).then((request) => request(axios, basePath));
|
|
2412
2426
|
},
|
|
2413
2427
|
};
|
|
@@ -2432,7 +2446,7 @@ export class RemoteDebugApi extends BaseAPI {
|
|
|
2432
2446
|
* @throws {RequiredError}
|
|
2433
2447
|
* @memberof RemoteDebugApi
|
|
2434
2448
|
*/
|
|
2435
|
-
public handleShellRemoteDebug(organization: string, cluster: string, flavor: DebugFlavor, ttyWidth: number, ttyHeight: number, nodeSelector: string | null, options?:
|
|
2449
|
+
public handleShellRemoteDebug(organization: string, cluster: string, flavor: DebugFlavor, ttyWidth: number, ttyHeight: number, nodeSelector: string | null, options?: RawAxiosRequestConfig) {
|
|
2436
2450
|
return RemoteDebugApiFp(this.configuration).handleShellRemoteDebug(organization, cluster, flavor, ttyWidth, ttyHeight, nodeSelector, options).then((request) => request(this.axios, this.basePath));
|
|
2437
2451
|
}
|
|
2438
2452
|
}
|
|
@@ -2455,7 +2469,7 @@ export const ServiceListPodsApiAxiosParamCreator = function (configuration?: Con
|
|
|
2455
2469
|
* @param {*} [options] Override http request option.
|
|
2456
2470
|
* @throws {RequiredError}
|
|
2457
2471
|
*/
|
|
2458
|
-
handleServiceListPodsRequest: async (organization: string, cluster: string, project: string, environment: string, service: string, options:
|
|
2472
|
+
handleServiceListPodsRequest: async (organization: string, cluster: string, project: string, environment: string, service: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2459
2473
|
// verify required parameter 'organization' is not null or undefined
|
|
2460
2474
|
assertParamExists('handleServiceListPodsRequest', 'organization', organization)
|
|
2461
2475
|
// verify required parameter 'cluster' is not null or undefined
|
|
@@ -2514,9 +2528,11 @@ export const ServiceListPodsApiFp = function(configuration?: Configuration) {
|
|
|
2514
2528
|
* @param {*} [options] Override http request option.
|
|
2515
2529
|
* @throws {RequiredError}
|
|
2516
2530
|
*/
|
|
2517
|
-
async handleServiceListPodsRequest(organization: string, cluster: string, project: string, environment: string, service: string, options?:
|
|
2531
|
+
async handleServiceListPodsRequest(organization: string, cluster: string, project: string, environment: string, service: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceListPodsResponseDto>> {
|
|
2518
2532
|
const localVarAxiosArgs = await localVarAxiosParamCreator.handleServiceListPodsRequest(organization, cluster, project, environment, service, options);
|
|
2519
|
-
|
|
2533
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2534
|
+
const localVarOperationServerBasePath = operationServerMap['ServiceListPodsApi.handleServiceListPodsRequest']?.[localVarOperationServerIndex]?.url;
|
|
2535
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2520
2536
|
},
|
|
2521
2537
|
}
|
|
2522
2538
|
};
|
|
@@ -2538,7 +2554,7 @@ export const ServiceListPodsApiFactory = function (configuration?: Configuration
|
|
|
2538
2554
|
* @param {*} [options] Override http request option.
|
|
2539
2555
|
* @throws {RequiredError}
|
|
2540
2556
|
*/
|
|
2541
|
-
handleServiceListPodsRequest(organization: string, cluster: string, project: string, environment: string, service: string, options?:
|
|
2557
|
+
handleServiceListPodsRequest(organization: string, cluster: string, project: string, environment: string, service: string, options?: RawAxiosRequestConfig): AxiosPromise<ServiceListPodsResponseDto> {
|
|
2542
2558
|
return localVarFp.handleServiceListPodsRequest(organization, cluster, project, environment, service, options).then((request) => request(axios, basePath));
|
|
2543
2559
|
},
|
|
2544
2560
|
};
|
|
@@ -2562,7 +2578,7 @@ export class ServiceListPodsApi extends BaseAPI {
|
|
|
2562
2578
|
* @throws {RequiredError}
|
|
2563
2579
|
* @memberof ServiceListPodsApi
|
|
2564
2580
|
*/
|
|
2565
|
-
public handleServiceListPodsRequest(organization: string, cluster: string, project: string, environment: string, service: string, options?:
|
|
2581
|
+
public handleServiceListPodsRequest(organization: string, cluster: string, project: string, environment: string, service: string, options?: RawAxiosRequestConfig) {
|
|
2566
2582
|
return ServiceListPodsApiFp(this.configuration).handleServiceListPodsRequest(organization, cluster, project, environment, service, options).then((request) => request(this.axios, this.basePath));
|
|
2567
2583
|
}
|
|
2568
2584
|
}
|
|
@@ -2586,7 +2602,7 @@ export const ServiceMetricsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
2586
2602
|
* @param {*} [options] Override http request option.
|
|
2587
2603
|
* @throws {RequiredError}
|
|
2588
2604
|
*/
|
|
2589
|
-
handleMetricsRequest: async (organization: string, cluster: string, project: string, environment: string, service: string, serviceType: ServiceType, options:
|
|
2605
|
+
handleMetricsRequest: async (organization: string, cluster: string, project: string, environment: string, service: string, serviceType: ServiceType, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2590
2606
|
// verify required parameter 'organization' is not null or undefined
|
|
2591
2607
|
assertParamExists('handleMetricsRequest', 'organization', organization)
|
|
2592
2608
|
// verify required parameter 'cluster' is not null or undefined
|
|
@@ -2649,9 +2665,11 @@ export const ServiceMetricsApiFp = function(configuration?: Configuration) {
|
|
|
2649
2665
|
* @param {*} [options] Override http request option.
|
|
2650
2666
|
* @throws {RequiredError}
|
|
2651
2667
|
*/
|
|
2652
|
-
async handleMetricsRequest(organization: string, cluster: string, project: string, environment: string, service: string, serviceType: ServiceType, options?:
|
|
2668
|
+
async handleMetricsRequest(organization: string, cluster: string, project: string, environment: string, service: string, serviceType: ServiceType, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceMetricsDto>> {
|
|
2653
2669
|
const localVarAxiosArgs = await localVarAxiosParamCreator.handleMetricsRequest(organization, cluster, project, environment, service, serviceType, options);
|
|
2654
|
-
|
|
2670
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2671
|
+
const localVarOperationServerBasePath = operationServerMap['ServiceMetricsApi.handleMetricsRequest']?.[localVarOperationServerIndex]?.url;
|
|
2672
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2655
2673
|
},
|
|
2656
2674
|
}
|
|
2657
2675
|
};
|
|
@@ -2674,7 +2692,7 @@ export const ServiceMetricsApiFactory = function (configuration?: Configuration,
|
|
|
2674
2692
|
* @param {*} [options] Override http request option.
|
|
2675
2693
|
* @throws {RequiredError}
|
|
2676
2694
|
*/
|
|
2677
|
-
handleMetricsRequest(organization: string, cluster: string, project: string, environment: string, service: string, serviceType: ServiceType, options?:
|
|
2695
|
+
handleMetricsRequest(organization: string, cluster: string, project: string, environment: string, service: string, serviceType: ServiceType, options?: RawAxiosRequestConfig): AxiosPromise<ServiceMetricsDto> {
|
|
2678
2696
|
return localVarFp.handleMetricsRequest(organization, cluster, project, environment, service, serviceType, options).then((request) => request(axios, basePath));
|
|
2679
2697
|
},
|
|
2680
2698
|
};
|
|
@@ -2699,7 +2717,7 @@ export class ServiceMetricsApi extends BaseAPI {
|
|
|
2699
2717
|
* @throws {RequiredError}
|
|
2700
2718
|
* @memberof ServiceMetricsApi
|
|
2701
2719
|
*/
|
|
2702
|
-
public handleMetricsRequest(organization: string, cluster: string, project: string, environment: string, service: string, serviceType: ServiceType, options?:
|
|
2720
|
+
public handleMetricsRequest(organization: string, cluster: string, project: string, environment: string, service: string, serviceType: ServiceType, options?: RawAxiosRequestConfig) {
|
|
2703
2721
|
return ServiceMetricsApiFp(this.configuration).handleMetricsRequest(organization, cluster, project, environment, service, serviceType, options).then((request) => request(this.axios, this.basePath));
|
|
2704
2722
|
}
|
|
2705
2723
|
}
|
|
@@ -2721,7 +2739,7 @@ export const ServiceStatusApiAxiosParamCreator = function (configuration?: Confi
|
|
|
2721
2739
|
* @param {*} [options] Override http request option.
|
|
2722
2740
|
* @throws {RequiredError}
|
|
2723
2741
|
*/
|
|
2724
|
-
handleServiceStatusRequest: async (organization: string, cluster: string, project: string | null, environment: string | null, options:
|
|
2742
|
+
handleServiceStatusRequest: async (organization: string, cluster: string, project: string | null, environment: string | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2725
2743
|
// verify required parameter 'organization' is not null or undefined
|
|
2726
2744
|
assertParamExists('handleServiceStatusRequest', 'organization', organization)
|
|
2727
2745
|
// verify required parameter 'cluster' is not null or undefined
|
|
@@ -2776,9 +2794,11 @@ export const ServiceStatusApiFp = function(configuration?: Configuration) {
|
|
|
2776
2794
|
* @param {*} [options] Override http request option.
|
|
2777
2795
|
* @throws {RequiredError}
|
|
2778
2796
|
*/
|
|
2779
|
-
async handleServiceStatusRequest(organization: string, cluster: string, project: string | null, environment: string | null, options?:
|
|
2797
|
+
async handleServiceStatusRequest(organization: string, cluster: string, project: string | null, environment: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceStatusDto>> {
|
|
2780
2798
|
const localVarAxiosArgs = await localVarAxiosParamCreator.handleServiceStatusRequest(organization, cluster, project, environment, options);
|
|
2781
|
-
|
|
2799
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2800
|
+
const localVarOperationServerBasePath = operationServerMap['ServiceStatusApi.handleServiceStatusRequest']?.[localVarOperationServerIndex]?.url;
|
|
2801
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2782
2802
|
},
|
|
2783
2803
|
}
|
|
2784
2804
|
};
|
|
@@ -2799,7 +2819,7 @@ export const ServiceStatusApiFactory = function (configuration?: Configuration,
|
|
|
2799
2819
|
* @param {*} [options] Override http request option.
|
|
2800
2820
|
* @throws {RequiredError}
|
|
2801
2821
|
*/
|
|
2802
|
-
handleServiceStatusRequest(organization: string, cluster: string, project: string | null, environment: string | null, options?:
|
|
2822
|
+
handleServiceStatusRequest(organization: string, cluster: string, project: string | null, environment: string | null, options?: RawAxiosRequestConfig): AxiosPromise<ServiceStatusDto> {
|
|
2803
2823
|
return localVarFp.handleServiceStatusRequest(organization, cluster, project, environment, options).then((request) => request(axios, basePath));
|
|
2804
2824
|
},
|
|
2805
2825
|
};
|
|
@@ -2822,7 +2842,7 @@ export class ServiceStatusApi extends BaseAPI {
|
|
|
2822
2842
|
* @throws {RequiredError}
|
|
2823
2843
|
* @memberof ServiceStatusApi
|
|
2824
2844
|
*/
|
|
2825
|
-
public handleServiceStatusRequest(organization: string, cluster: string, project: string | null, environment: string | null, options?:
|
|
2845
|
+
public handleServiceStatusRequest(organization: string, cluster: string, project: string | null, environment: string | null, options?: RawAxiosRequestConfig) {
|
|
2826
2846
|
return ServiceStatusApiFp(this.configuration).handleServiceStatusRequest(organization, cluster, project, environment, options).then((request) => request(this.axios, this.basePath));
|
|
2827
2847
|
}
|
|
2828
2848
|
}
|
|
@@ -2850,7 +2870,7 @@ export const ShellApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
2850
2870
|
* @param {*} [options] Override http request option.
|
|
2851
2871
|
* @throws {RequiredError}
|
|
2852
2872
|
*/
|
|
2853
|
-
handleShellExec: async (organization: string, cluster: string, project: string, environment: string, service: string, podName: string | null, containerName: string | null, command: Array<string>, ttyWidth: number, ttyHeight: number, options:
|
|
2873
|
+
handleShellExec: async (organization: string, cluster: string, project: string, environment: string, service: string, podName: string | null, containerName: string | null, command: Array<string>, ttyWidth: number, ttyHeight: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2854
2874
|
// verify required parameter 'organization' is not null or undefined
|
|
2855
2875
|
assertParamExists('handleShellExec', 'organization', organization)
|
|
2856
2876
|
// verify required parameter 'cluster' is not null or undefined
|
|
@@ -2929,9 +2949,11 @@ export const ShellApiFp = function(configuration?: Configuration) {
|
|
|
2929
2949
|
* @param {*} [options] Override http request option.
|
|
2930
2950
|
* @throws {RequiredError}
|
|
2931
2951
|
*/
|
|
2932
|
-
async handleShellExec(organization: string, cluster: string, project: string, environment: string, service: string, podName: string | null, containerName: string | null, command: Array<string>, ttyWidth: number, ttyHeight: number, options?:
|
|
2952
|
+
async handleShellExec(organization: string, cluster: string, project: string, environment: string, service: string, podName: string | null, containerName: string | null, command: Array<string>, ttyWidth: number, ttyHeight: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
2933
2953
|
const localVarAxiosArgs = await localVarAxiosParamCreator.handleShellExec(organization, cluster, project, environment, service, podName, containerName, command, ttyWidth, ttyHeight, options);
|
|
2934
|
-
|
|
2954
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2955
|
+
const localVarOperationServerBasePath = operationServerMap['ShellApi.handleShellExec']?.[localVarOperationServerIndex]?.url;
|
|
2956
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2935
2957
|
},
|
|
2936
2958
|
}
|
|
2937
2959
|
};
|
|
@@ -2958,7 +2980,7 @@ export const ShellApiFactory = function (configuration?: Configuration, basePath
|
|
|
2958
2980
|
* @param {*} [options] Override http request option.
|
|
2959
2981
|
* @throws {RequiredError}
|
|
2960
2982
|
*/
|
|
2961
|
-
handleShellExec(organization: string, cluster: string, project: string, environment: string, service: string, podName: string | null, containerName: string | null, command: Array<string>, ttyWidth: number, ttyHeight: number, options?:
|
|
2983
|
+
handleShellExec(organization: string, cluster: string, project: string, environment: string, service: string, podName: string | null, containerName: string | null, command: Array<string>, ttyWidth: number, ttyHeight: number, options?: RawAxiosRequestConfig): AxiosPromise<string> {
|
|
2962
2984
|
return localVarFp.handleShellExec(organization, cluster, project, environment, service, podName, containerName, command, ttyWidth, ttyHeight, options).then((request) => request(axios, basePath));
|
|
2963
2985
|
},
|
|
2964
2986
|
};
|
|
@@ -2987,7 +3009,7 @@ export class ShellApi extends BaseAPI {
|
|
|
2987
3009
|
* @throws {RequiredError}
|
|
2988
3010
|
* @memberof ShellApi
|
|
2989
3011
|
*/
|
|
2990
|
-
public handleShellExec(organization: string, cluster: string, project: string, environment: string, service: string, podName: string | null, containerName: string | null, command: Array<string>, ttyWidth: number, ttyHeight: number, options?:
|
|
3012
|
+
public handleShellExec(organization: string, cluster: string, project: string, environment: string, service: string, podName: string | null, containerName: string | null, command: Array<string>, ttyWidth: number, ttyHeight: number, options?: RawAxiosRequestConfig) {
|
|
2991
3013
|
return ShellApiFp(this.configuration).handleShellExec(organization, cluster, project, environment, service, podName, containerName, command, ttyWidth, ttyHeight, options).then((request) => request(this.axios, this.basePath));
|
|
2992
3014
|
}
|
|
2993
3015
|
}
|
package/base.ts
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
import type { Configuration } from './configuration';
|
|
17
17
|
// Some imports not used depending on template conditions
|
|
18
18
|
// @ts-ignore
|
|
19
|
-
import type { AxiosPromise, AxiosInstance,
|
|
19
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
20
20
|
import globalAxios from 'axios';
|
|
21
21
|
|
|
22
22
|
export const BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
@@ -39,7 +39,7 @@ export const COLLECTION_FORMATS = {
|
|
|
39
39
|
*/
|
|
40
40
|
export interface RequestArgs {
|
|
41
41
|
url: string;
|
|
42
|
-
options:
|
|
42
|
+
options: RawAxiosRequestConfig;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
/**
|
|
@@ -53,7 +53,7 @@ export class BaseAPI {
|
|
|
53
53
|
constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
|
|
54
54
|
if (configuration) {
|
|
55
55
|
this.configuration = configuration;
|
|
56
|
-
this.basePath = configuration.basePath
|
|
56
|
+
this.basePath = configuration.basePath ?? basePath;
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
};
|
|
@@ -70,3 +70,17 @@ export class RequiredError extends Error {
|
|
|
70
70
|
this.name = "RequiredError"
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
+
|
|
74
|
+
interface ServerMap {
|
|
75
|
+
[key: string]: {
|
|
76
|
+
url: string,
|
|
77
|
+
description: string,
|
|
78
|
+
}[];
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @export
|
|
84
|
+
*/
|
|
85
|
+
export const operationServerMap: ServerMap = {
|
|
86
|
+
}
|
package/common.ts
CHANGED
|
@@ -144,7 +144,7 @@ export const toPathString = function (url: URL) {
|
|
|
144
144
|
*/
|
|
145
145
|
export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
|
|
146
146
|
return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
147
|
-
const axiosRequestArgs = {...axiosArgs.options, url: (
|
|
147
|
+
const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url};
|
|
148
148
|
return axios.request<T, R>(axiosRequestArgs);
|
|
149
149
|
};
|
|
150
150
|
}
|
package/configuration.ts
CHANGED
|
@@ -19,6 +19,7 @@ export interface ConfigurationParameters {
|
|
|
19
19
|
password?: string;
|
|
20
20
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
21
21
|
basePath?: string;
|
|
22
|
+
serverIndex?: number;
|
|
22
23
|
baseOptions?: any;
|
|
23
24
|
formDataCtor?: new () => any;
|
|
24
25
|
}
|
|
@@ -58,6 +59,13 @@ export class Configuration {
|
|
|
58
59
|
* @memberof Configuration
|
|
59
60
|
*/
|
|
60
61
|
basePath?: string;
|
|
62
|
+
/**
|
|
63
|
+
* override server index
|
|
64
|
+
*
|
|
65
|
+
* @type {number}
|
|
66
|
+
* @memberof Configuration
|
|
67
|
+
*/
|
|
68
|
+
serverIndex?: number;
|
|
61
69
|
/**
|
|
62
70
|
* base options for axios calls
|
|
63
71
|
*
|
|
@@ -80,6 +88,7 @@ export class Configuration {
|
|
|
80
88
|
this.password = param.password;
|
|
81
89
|
this.accessToken = param.accessToken;
|
|
82
90
|
this.basePath = param.basePath;
|
|
91
|
+
this.serverIndex = param.serverIndex;
|
|
83
92
|
this.baseOptions = param.baseOptions;
|
|
84
93
|
this.formDataCtor = param.formDataCtor;
|
|
85
94
|
}
|