qovery-ws-typescript-axios 0.1.147 → 0.1.153

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
@@ -1302,10 +1302,11 @@ export const LogsApiAxiosParamCreator = function (configuration?: Configuration)
1302
1302
  * @param {string} project
1303
1303
  * @param {string} environment
1304
1304
  * @param {string} service
1305
+ * @param {string | null} podName
1305
1306
  * @param {*} [options] Override http request option.
1306
1307
  * @throws {RequiredError}
1307
1308
  */
1308
- handleServiceLogsRequest: async (organization: string, cluster: string, project: string, environment: string, service: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1309
+ handleServiceLogsRequest: async (organization: string, cluster: string, project: string, environment: string, service: string, podName: string | null, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1309
1310
  // verify required parameter 'organization' is not null or undefined
1310
1311
  assertParamExists('handleServiceLogsRequest', 'organization', organization)
1311
1312
  // verify required parameter 'cluster' is not null or undefined
@@ -1316,12 +1317,15 @@ export const LogsApiAxiosParamCreator = function (configuration?: Configuration)
1316
1317
  assertParamExists('handleServiceLogsRequest', 'environment', environment)
1317
1318
  // verify required parameter 'service' is not null or undefined
1318
1319
  assertParamExists('handleServiceLogsRequest', 'service', service)
1320
+ // verify required parameter 'podName' is not null or undefined
1321
+ assertParamExists('handleServiceLogsRequest', 'podName', podName)
1319
1322
  const localVarPath = `/service/logs`
1320
1323
  .replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
1321
1324
  .replace(`{${"cluster"}}`, encodeURIComponent(String(cluster)))
1322
1325
  .replace(`{${"project"}}`, encodeURIComponent(String(project)))
1323
1326
  .replace(`{${"environment"}}`, encodeURIComponent(String(environment)))
1324
- .replace(`{${"service"}}`, encodeURIComponent(String(service)));
1327
+ .replace(`{${"service"}}`, encodeURIComponent(String(service)))
1328
+ .replace(`{${"pod_name"}}`, encodeURIComponent(String(podName)));
1325
1329
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1326
1330
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1327
1331
  let baseOptions;
@@ -1376,11 +1380,12 @@ export const LogsApiFp = function(configuration?: Configuration) {
1376
1380
  * @param {string} project
1377
1381
  * @param {string} environment
1378
1382
  * @param {string} service
1383
+ * @param {string | null} podName
1379
1384
  * @param {*} [options] Override http request option.
1380
1385
  * @throws {RequiredError}
1381
1386
  */
1382
- async handleServiceLogsRequest(organization: string, cluster: string, project: string, environment: string, service: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceLogResponseDto>> {
1383
- const localVarAxiosArgs = await localVarAxiosParamCreator.handleServiceLogsRequest(organization, cluster, project, environment, service, options);
1387
+ async handleServiceLogsRequest(organization: string, cluster: string, project: string, environment: string, service: string, podName: string | null, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceLogResponseDto>> {
1388
+ const localVarAxiosArgs = await localVarAxiosParamCreator.handleServiceLogsRequest(organization, cluster, project, environment, service, podName, options);
1384
1389
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1385
1390
  },
1386
1391
  }
@@ -1414,11 +1419,12 @@ export const LogsApiFactory = function (configuration?: Configuration, basePath?
1414
1419
  * @param {string} project
1415
1420
  * @param {string} environment
1416
1421
  * @param {string} service
1422
+ * @param {string | null} podName
1417
1423
  * @param {*} [options] Override http request option.
1418
1424
  * @throws {RequiredError}
1419
1425
  */
1420
- handleServiceLogsRequest(organization: string, cluster: string, project: string, environment: string, service: string, options?: any): AxiosPromise<ServiceLogResponseDto> {
1421
- return localVarFp.handleServiceLogsRequest(organization, cluster, project, environment, service, options).then((request) => request(axios, basePath));
1426
+ handleServiceLogsRequest(organization: string, cluster: string, project: string, environment: string, service: string, podName: string | null, options?: any): AxiosPromise<ServiceLogResponseDto> {
1427
+ return localVarFp.handleServiceLogsRequest(organization, cluster, project, environment, service, podName, options).then((request) => request(axios, basePath));
1422
1428
  },
1423
1429
  };
1424
1430
  };
@@ -1453,12 +1459,13 @@ export class LogsApi extends BaseAPI {
1453
1459
  * @param {string} project
1454
1460
  * @param {string} environment
1455
1461
  * @param {string} service
1462
+ * @param {string | null} podName
1456
1463
  * @param {*} [options] Override http request option.
1457
1464
  * @throws {RequiredError}
1458
1465
  * @memberof LogsApi
1459
1466
  */
1460
- public handleServiceLogsRequest(organization: string, cluster: string, project: string, environment: string, service: string, options?: AxiosRequestConfig) {
1461
- return LogsApiFp(this.configuration).handleServiceLogsRequest(organization, cluster, project, environment, service, options).then((request) => request(this.axios, this.basePath));
1467
+ public handleServiceLogsRequest(organization: string, cluster: string, project: string, environment: string, service: string, podName: string | null, options?: AxiosRequestConfig) {
1468
+ return LogsApiFp(this.configuration).handleServiceLogsRequest(organization, cluster, project, environment, service, podName, options).then((request) => request(this.axios, this.basePath));
1462
1469
  }
1463
1470
  }
1464
1471
 
@@ -1854,3 +1861,168 @@ export class ServiceStatusApi extends BaseAPI {
1854
1861
 
1855
1862
 
1856
1863
 
1864
+ /**
1865
+ * ShellApi - axios parameter creator
1866
+ * @export
1867
+ */
1868
+ export const ShellApiAxiosParamCreator = function (configuration?: Configuration) {
1869
+ return {
1870
+ /**
1871
+ *
1872
+ * @param {string} organization
1873
+ * @param {string} cluster
1874
+ * @param {string} project
1875
+ * @param {string} environment
1876
+ * @param {string} service
1877
+ * @param {string | null} podName
1878
+ * @param {string | null} containerName
1879
+ * @param {Array<string>} command
1880
+ * @param {number} ttyWidth
1881
+ * @param {number} ttyHeight
1882
+ * @param {*} [options] Override http request option.
1883
+ * @throws {RequiredError}
1884
+ */
1885
+ 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: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1886
+ // verify required parameter 'organization' is not null or undefined
1887
+ assertParamExists('handleShellExec', 'organization', organization)
1888
+ // verify required parameter 'cluster' is not null or undefined
1889
+ assertParamExists('handleShellExec', 'cluster', cluster)
1890
+ // verify required parameter 'project' is not null or undefined
1891
+ assertParamExists('handleShellExec', 'project', project)
1892
+ // verify required parameter 'environment' is not null or undefined
1893
+ assertParamExists('handleShellExec', 'environment', environment)
1894
+ // verify required parameter 'service' is not null or undefined
1895
+ assertParamExists('handleShellExec', 'service', service)
1896
+ // verify required parameter 'podName' is not null or undefined
1897
+ assertParamExists('handleShellExec', 'podName', podName)
1898
+ // verify required parameter 'containerName' is not null or undefined
1899
+ assertParamExists('handleShellExec', 'containerName', containerName)
1900
+ // verify required parameter 'command' is not null or undefined
1901
+ assertParamExists('handleShellExec', 'command', command)
1902
+ // verify required parameter 'ttyWidth' is not null or undefined
1903
+ assertParamExists('handleShellExec', 'ttyWidth', ttyWidth)
1904
+ // verify required parameter 'ttyHeight' is not null or undefined
1905
+ assertParamExists('handleShellExec', 'ttyHeight', ttyHeight)
1906
+ const localVarPath = `/shell/exec`
1907
+ .replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
1908
+ .replace(`{${"cluster"}}`, encodeURIComponent(String(cluster)))
1909
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)))
1910
+ .replace(`{${"environment"}}`, encodeURIComponent(String(environment)))
1911
+ .replace(`{${"service"}}`, encodeURIComponent(String(service)))
1912
+ .replace(`{${"pod_name"}}`, encodeURIComponent(String(podName)))
1913
+ .replace(`{${"container_name"}}`, encodeURIComponent(String(containerName)))
1914
+ .replace(`{${"command"}}`, encodeURIComponent(String(command)))
1915
+ .replace(`{${"tty_width"}}`, encodeURIComponent(String(ttyWidth)))
1916
+ .replace(`{${"tty_height"}}`, encodeURIComponent(String(ttyHeight)));
1917
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1918
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1919
+ let baseOptions;
1920
+ if (configuration) {
1921
+ baseOptions = configuration.baseOptions;
1922
+ }
1923
+
1924
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1925
+ const localVarHeaderParameter = {} as any;
1926
+ const localVarQueryParameter = {} as any;
1927
+
1928
+
1929
+
1930
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1931
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1932
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1933
+
1934
+ return {
1935
+ url: toPathString(localVarUrlObj),
1936
+ options: localVarRequestOptions,
1937
+ };
1938
+ },
1939
+ }
1940
+ };
1941
+
1942
+ /**
1943
+ * ShellApi - functional programming interface
1944
+ * @export
1945
+ */
1946
+ export const ShellApiFp = function(configuration?: Configuration) {
1947
+ const localVarAxiosParamCreator = ShellApiAxiosParamCreator(configuration)
1948
+ return {
1949
+ /**
1950
+ *
1951
+ * @param {string} organization
1952
+ * @param {string} cluster
1953
+ * @param {string} project
1954
+ * @param {string} environment
1955
+ * @param {string} service
1956
+ * @param {string | null} podName
1957
+ * @param {string | null} containerName
1958
+ * @param {Array<string>} command
1959
+ * @param {number} ttyWidth
1960
+ * @param {number} ttyHeight
1961
+ * @param {*} [options] Override http request option.
1962
+ * @throws {RequiredError}
1963
+ */
1964
+ 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?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
1965
+ const localVarAxiosArgs = await localVarAxiosParamCreator.handleShellExec(organization, cluster, project, environment, service, podName, containerName, command, ttyWidth, ttyHeight, options);
1966
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1967
+ },
1968
+ }
1969
+ };
1970
+
1971
+ /**
1972
+ * ShellApi - factory interface
1973
+ * @export
1974
+ */
1975
+ export const ShellApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1976
+ const localVarFp = ShellApiFp(configuration)
1977
+ return {
1978
+ /**
1979
+ *
1980
+ * @param {string} organization
1981
+ * @param {string} cluster
1982
+ * @param {string} project
1983
+ * @param {string} environment
1984
+ * @param {string} service
1985
+ * @param {string | null} podName
1986
+ * @param {string | null} containerName
1987
+ * @param {Array<string>} command
1988
+ * @param {number} ttyWidth
1989
+ * @param {number} ttyHeight
1990
+ * @param {*} [options] Override http request option.
1991
+ * @throws {RequiredError}
1992
+ */
1993
+ 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?: any): AxiosPromise<string> {
1994
+ return localVarFp.handleShellExec(organization, cluster, project, environment, service, podName, containerName, command, ttyWidth, ttyHeight, options).then((request) => request(axios, basePath));
1995
+ },
1996
+ };
1997
+ };
1998
+
1999
+ /**
2000
+ * ShellApi - object-oriented interface
2001
+ * @export
2002
+ * @class ShellApi
2003
+ * @extends {BaseAPI}
2004
+ */
2005
+ export class ShellApi extends BaseAPI {
2006
+ /**
2007
+ *
2008
+ * @param {string} organization
2009
+ * @param {string} cluster
2010
+ * @param {string} project
2011
+ * @param {string} environment
2012
+ * @param {string} service
2013
+ * @param {string | null} podName
2014
+ * @param {string | null} containerName
2015
+ * @param {Array<string>} command
2016
+ * @param {number} ttyWidth
2017
+ * @param {number} ttyHeight
2018
+ * @param {*} [options] Override http request option.
2019
+ * @throws {RequiredError}
2020
+ * @memberof ShellApi
2021
+ */
2022
+ 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?: AxiosRequestConfig) {
2023
+ return ShellApiFp(this.configuration).handleShellExec(organization, cluster, project, environment, service, podName, containerName, command, ttyWidth, ttyHeight, options).then((request) => request(this.axios, this.basePath));
2024
+ }
2025
+ }
2026
+
2027
+
2028
+
package/dist/api.d.ts CHANGED
@@ -1070,10 +1070,11 @@ export declare const LogsApiAxiosParamCreator: (configuration?: Configuration) =
1070
1070
  * @param {string} project
1071
1071
  * @param {string} environment
1072
1072
  * @param {string} service
1073
+ * @param {string | null} podName
1073
1074
  * @param {*} [options] Override http request option.
1074
1075
  * @throws {RequiredError}
1075
1076
  */
1076
- handleServiceLogsRequest: (organization: string, cluster: string, project: string, environment: string, service: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
1077
+ handleServiceLogsRequest: (organization: string, cluster: string, project: string, environment: string, service: string, podName: string | null, options?: AxiosRequestConfig) => Promise<RequestArgs>;
1077
1078
  };
1078
1079
  /**
1079
1080
  * LogsApi - functional programming interface
@@ -1099,10 +1100,11 @@ export declare const LogsApiFp: (configuration?: Configuration) => {
1099
1100
  * @param {string} project
1100
1101
  * @param {string} environment
1101
1102
  * @param {string} service
1103
+ * @param {string | null} podName
1102
1104
  * @param {*} [options] Override http request option.
1103
1105
  * @throws {RequiredError}
1104
1106
  */
1105
- handleServiceLogsRequest(organization: string, cluster: string, project: string, environment: string, service: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceLogResponseDto>>;
1107
+ handleServiceLogsRequest(organization: string, cluster: string, project: string, environment: string, service: string, podName: string | null, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceLogResponseDto>>;
1106
1108
  };
1107
1109
  /**
1108
1110
  * LogsApi - factory interface
@@ -1128,10 +1130,11 @@ export declare const LogsApiFactory: (configuration?: Configuration, basePath?:
1128
1130
  * @param {string} project
1129
1131
  * @param {string} environment
1130
1132
  * @param {string} service
1133
+ * @param {string | null} podName
1131
1134
  * @param {*} [options] Override http request option.
1132
1135
  * @throws {RequiredError}
1133
1136
  */
1134
- handleServiceLogsRequest(organization: string, cluster: string, project: string, environment: string, service: string, options?: any): AxiosPromise<ServiceLogResponseDto>;
1137
+ handleServiceLogsRequest(organization: string, cluster: string, project: string, environment: string, service: string, podName: string | null, options?: any): AxiosPromise<ServiceLogResponseDto>;
1135
1138
  };
1136
1139
  /**
1137
1140
  * LogsApi - object-oriented interface
@@ -1160,11 +1163,12 @@ export declare class LogsApi extends BaseAPI {
1160
1163
  * @param {string} project
1161
1164
  * @param {string} environment
1162
1165
  * @param {string} service
1166
+ * @param {string | null} podName
1163
1167
  * @param {*} [options] Override http request option.
1164
1168
  * @throws {RequiredError}
1165
1169
  * @memberof LogsApi
1166
1170
  */
1167
- handleServiceLogsRequest(organization: string, cluster: string, project: string, environment: string, service: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ServiceLogResponseDto, any>>;
1171
+ handleServiceLogsRequest(organization: string, cluster: string, project: string, environment: string, service: string, podName: string | null, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ServiceLogResponseDto, any>>;
1168
1172
  }
1169
1173
  /**
1170
1174
  * ServiceListPodsApi - axios parameter creator
@@ -1379,3 +1383,94 @@ export declare class ServiceStatusApi extends BaseAPI {
1379
1383
  */
1380
1384
  handleServiceStatusRequest(organization: string, cluster: string, project: string | null, environment: string | null, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ServiceStatusDto, any>>;
1381
1385
  }
1386
+ /**
1387
+ * ShellApi - axios parameter creator
1388
+ * @export
1389
+ */
1390
+ export declare const ShellApiAxiosParamCreator: (configuration?: Configuration) => {
1391
+ /**
1392
+ *
1393
+ * @param {string} organization
1394
+ * @param {string} cluster
1395
+ * @param {string} project
1396
+ * @param {string} environment
1397
+ * @param {string} service
1398
+ * @param {string | null} podName
1399
+ * @param {string | null} containerName
1400
+ * @param {Array<string>} command
1401
+ * @param {number} ttyWidth
1402
+ * @param {number} ttyHeight
1403
+ * @param {*} [options] Override http request option.
1404
+ * @throws {RequiredError}
1405
+ */
1406
+ 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?: AxiosRequestConfig) => Promise<RequestArgs>;
1407
+ };
1408
+ /**
1409
+ * ShellApi - functional programming interface
1410
+ * @export
1411
+ */
1412
+ export declare const ShellApiFp: (configuration?: Configuration) => {
1413
+ /**
1414
+ *
1415
+ * @param {string} organization
1416
+ * @param {string} cluster
1417
+ * @param {string} project
1418
+ * @param {string} environment
1419
+ * @param {string} service
1420
+ * @param {string | null} podName
1421
+ * @param {string | null} containerName
1422
+ * @param {Array<string>} command
1423
+ * @param {number} ttyWidth
1424
+ * @param {number} ttyHeight
1425
+ * @param {*} [options] Override http request option.
1426
+ * @throws {RequiredError}
1427
+ */
1428
+ 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?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
1429
+ };
1430
+ /**
1431
+ * ShellApi - factory interface
1432
+ * @export
1433
+ */
1434
+ export declare const ShellApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
1435
+ /**
1436
+ *
1437
+ * @param {string} organization
1438
+ * @param {string} cluster
1439
+ * @param {string} project
1440
+ * @param {string} environment
1441
+ * @param {string} service
1442
+ * @param {string | null} podName
1443
+ * @param {string | null} containerName
1444
+ * @param {Array<string>} command
1445
+ * @param {number} ttyWidth
1446
+ * @param {number} ttyHeight
1447
+ * @param {*} [options] Override http request option.
1448
+ * @throws {RequiredError}
1449
+ */
1450
+ 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?: any): AxiosPromise<string>;
1451
+ };
1452
+ /**
1453
+ * ShellApi - object-oriented interface
1454
+ * @export
1455
+ * @class ShellApi
1456
+ * @extends {BaseAPI}
1457
+ */
1458
+ export declare class ShellApi extends BaseAPI {
1459
+ /**
1460
+ *
1461
+ * @param {string} organization
1462
+ * @param {string} cluster
1463
+ * @param {string} project
1464
+ * @param {string} environment
1465
+ * @param {string} service
1466
+ * @param {string | null} podName
1467
+ * @param {string | null} containerName
1468
+ * @param {Array<string>} command
1469
+ * @param {number} ttyWidth
1470
+ * @param {number} ttyHeight
1471
+ * @param {*} [options] Override http request option.
1472
+ * @throws {RequiredError}
1473
+ * @memberof ShellApi
1474
+ */
1475
+ 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?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
1476
+ }
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.ServiceStatusApi = exports.ServiceStatusApiFactory = exports.ServiceStatusApiFp = exports.ServiceStatusApiAxiosParamCreator = exports.ServiceMetricsApi = exports.ServiceMetricsApiFactory = exports.ServiceMetricsApiFp = exports.ServiceMetricsApiAxiosParamCreator = exports.ServiceListPodsApi = exports.ServiceListPodsApiFactory = exports.ServiceListPodsApiFp = exports.ServiceListPodsApiAxiosParamCreator = 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.UnitDto = exports.ServiceType = exports.ServiceStateDto = exports.ResourceStatusDto = 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.LogsApi = exports.LogsApiFactory = exports.LogsApiFp = exports.LogsApiAxiosParamCreator = exports.DeploymentApi = exports.DeploymentApiFactory = exports.DeploymentApiFp = exports.DeploymentApiAxiosParamCreator = exports.ClusterStatusApi = exports.ClusterStatusApiFactory = exports.ClusterStatusApiFp = exports.ClusterStatusApiAxiosParamCreator = exports.UnitDto = exports.ServiceType = exports.ServiceStateDto = exports.ResourceStatusDto = void 0;
26
26
  const axios_1 = require("axios");
27
27
  // Some imports not used depending on template conditions
28
28
  // @ts-ignore
@@ -452,10 +452,11 @@ const LogsApiAxiosParamCreator = function (configuration) {
452
452
  * @param {string} project
453
453
  * @param {string} environment
454
454
  * @param {string} service
455
+ * @param {string | null} podName
455
456
  * @param {*} [options] Override http request option.
456
457
  * @throws {RequiredError}
457
458
  */
458
- handleServiceLogsRequest: (organization, cluster, project, environment, service, options = {}) => __awaiter(this, void 0, void 0, function* () {
459
+ handleServiceLogsRequest: (organization, cluster, project, environment, service, podName, options = {}) => __awaiter(this, void 0, void 0, function* () {
459
460
  // verify required parameter 'organization' is not null or undefined
460
461
  (0, common_1.assertParamExists)('handleServiceLogsRequest', 'organization', organization);
461
462
  // verify required parameter 'cluster' is not null or undefined
@@ -466,12 +467,15 @@ const LogsApiAxiosParamCreator = function (configuration) {
466
467
  (0, common_1.assertParamExists)('handleServiceLogsRequest', 'environment', environment);
467
468
  // verify required parameter 'service' is not null or undefined
468
469
  (0, common_1.assertParamExists)('handleServiceLogsRequest', 'service', service);
470
+ // verify required parameter 'podName' is not null or undefined
471
+ (0, common_1.assertParamExists)('handleServiceLogsRequest', 'podName', podName);
469
472
  const localVarPath = `/service/logs`
470
473
  .replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
471
474
  .replace(`{${"cluster"}}`, encodeURIComponent(String(cluster)))
472
475
  .replace(`{${"project"}}`, encodeURIComponent(String(project)))
473
476
  .replace(`{${"environment"}}`, encodeURIComponent(String(environment)))
474
- .replace(`{${"service"}}`, encodeURIComponent(String(service)));
477
+ .replace(`{${"service"}}`, encodeURIComponent(String(service)))
478
+ .replace(`{${"pod_name"}}`, encodeURIComponent(String(podName)));
475
479
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
476
480
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
477
481
  let baseOptions;
@@ -523,12 +527,13 @@ const LogsApiFp = function (configuration) {
523
527
  * @param {string} project
524
528
  * @param {string} environment
525
529
  * @param {string} service
530
+ * @param {string | null} podName
526
531
  * @param {*} [options] Override http request option.
527
532
  * @throws {RequiredError}
528
533
  */
529
- handleServiceLogsRequest(organization, cluster, project, environment, service, options) {
534
+ handleServiceLogsRequest(organization, cluster, project, environment, service, podName, options) {
530
535
  return __awaiter(this, void 0, void 0, function* () {
531
- const localVarAxiosArgs = yield localVarAxiosParamCreator.handleServiceLogsRequest(organization, cluster, project, environment, service, options);
536
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.handleServiceLogsRequest(organization, cluster, project, environment, service, podName, options);
532
537
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
533
538
  });
534
539
  },
@@ -563,11 +568,12 @@ const LogsApiFactory = function (configuration, basePath, axios) {
563
568
  * @param {string} project
564
569
  * @param {string} environment
565
570
  * @param {string} service
571
+ * @param {string | null} podName
566
572
  * @param {*} [options] Override http request option.
567
573
  * @throws {RequiredError}
568
574
  */
569
- handleServiceLogsRequest(organization, cluster, project, environment, service, options) {
570
- return localVarFp.handleServiceLogsRequest(organization, cluster, project, environment, service, options).then((request) => request(axios, basePath));
575
+ handleServiceLogsRequest(organization, cluster, project, environment, service, podName, options) {
576
+ return localVarFp.handleServiceLogsRequest(organization, cluster, project, environment, service, podName, options).then((request) => request(axios, basePath));
571
577
  },
572
578
  };
573
579
  };
@@ -601,12 +607,13 @@ class LogsApi extends base_1.BaseAPI {
601
607
  * @param {string} project
602
608
  * @param {string} environment
603
609
  * @param {string} service
610
+ * @param {string | null} podName
604
611
  * @param {*} [options] Override http request option.
605
612
  * @throws {RequiredError}
606
613
  * @memberof LogsApi
607
614
  */
608
- handleServiceLogsRequest(organization, cluster, project, environment, service, options) {
609
- return (0, exports.LogsApiFp)(this.configuration).handleServiceLogsRequest(organization, cluster, project, environment, service, options).then((request) => request(this.axios, this.basePath));
615
+ handleServiceLogsRequest(organization, cluster, project, environment, service, podName, options) {
616
+ return (0, exports.LogsApiFp)(this.configuration).handleServiceLogsRequest(organization, cluster, project, environment, service, podName, options).then((request) => request(this.axios, this.basePath));
610
617
  }
611
618
  }
612
619
  exports.LogsApi = LogsApi;
@@ -985,3 +992,163 @@ class ServiceStatusApi extends base_1.BaseAPI {
985
992
  }
986
993
  }
987
994
  exports.ServiceStatusApi = ServiceStatusApi;
995
+ /**
996
+ * ShellApi - axios parameter creator
997
+ * @export
998
+ */
999
+ const ShellApiAxiosParamCreator = function (configuration) {
1000
+ return {
1001
+ /**
1002
+ *
1003
+ * @param {string} organization
1004
+ * @param {string} cluster
1005
+ * @param {string} project
1006
+ * @param {string} environment
1007
+ * @param {string} service
1008
+ * @param {string | null} podName
1009
+ * @param {string | null} containerName
1010
+ * @param {Array<string>} command
1011
+ * @param {number} ttyWidth
1012
+ * @param {number} ttyHeight
1013
+ * @param {*} [options] Override http request option.
1014
+ * @throws {RequiredError}
1015
+ */
1016
+ handleShellExec: (organization, cluster, project, environment, service, podName, containerName, command, ttyWidth, ttyHeight, options = {}) => __awaiter(this, void 0, void 0, function* () {
1017
+ // verify required parameter 'organization' is not null or undefined
1018
+ (0, common_1.assertParamExists)('handleShellExec', 'organization', organization);
1019
+ // verify required parameter 'cluster' is not null or undefined
1020
+ (0, common_1.assertParamExists)('handleShellExec', 'cluster', cluster);
1021
+ // verify required parameter 'project' is not null or undefined
1022
+ (0, common_1.assertParamExists)('handleShellExec', 'project', project);
1023
+ // verify required parameter 'environment' is not null or undefined
1024
+ (0, common_1.assertParamExists)('handleShellExec', 'environment', environment);
1025
+ // verify required parameter 'service' is not null or undefined
1026
+ (0, common_1.assertParamExists)('handleShellExec', 'service', service);
1027
+ // verify required parameter 'podName' is not null or undefined
1028
+ (0, common_1.assertParamExists)('handleShellExec', 'podName', podName);
1029
+ // verify required parameter 'containerName' is not null or undefined
1030
+ (0, common_1.assertParamExists)('handleShellExec', 'containerName', containerName);
1031
+ // verify required parameter 'command' is not null or undefined
1032
+ (0, common_1.assertParamExists)('handleShellExec', 'command', command);
1033
+ // verify required parameter 'ttyWidth' is not null or undefined
1034
+ (0, common_1.assertParamExists)('handleShellExec', 'ttyWidth', ttyWidth);
1035
+ // verify required parameter 'ttyHeight' is not null or undefined
1036
+ (0, common_1.assertParamExists)('handleShellExec', 'ttyHeight', ttyHeight);
1037
+ const localVarPath = `/shell/exec`
1038
+ .replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
1039
+ .replace(`{${"cluster"}}`, encodeURIComponent(String(cluster)))
1040
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)))
1041
+ .replace(`{${"environment"}}`, encodeURIComponent(String(environment)))
1042
+ .replace(`{${"service"}}`, encodeURIComponent(String(service)))
1043
+ .replace(`{${"pod_name"}}`, encodeURIComponent(String(podName)))
1044
+ .replace(`{${"container_name"}}`, encodeURIComponent(String(containerName)))
1045
+ .replace(`{${"command"}}`, encodeURIComponent(String(command)))
1046
+ .replace(`{${"tty_width"}}`, encodeURIComponent(String(ttyWidth)))
1047
+ .replace(`{${"tty_height"}}`, encodeURIComponent(String(ttyHeight)));
1048
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1049
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1050
+ let baseOptions;
1051
+ if (configuration) {
1052
+ baseOptions = configuration.baseOptions;
1053
+ }
1054
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1055
+ const localVarHeaderParameter = {};
1056
+ const localVarQueryParameter = {};
1057
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1058
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1059
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1060
+ return {
1061
+ url: (0, common_1.toPathString)(localVarUrlObj),
1062
+ options: localVarRequestOptions,
1063
+ };
1064
+ }),
1065
+ };
1066
+ };
1067
+ exports.ShellApiAxiosParamCreator = ShellApiAxiosParamCreator;
1068
+ /**
1069
+ * ShellApi - functional programming interface
1070
+ * @export
1071
+ */
1072
+ const ShellApiFp = function (configuration) {
1073
+ const localVarAxiosParamCreator = (0, exports.ShellApiAxiosParamCreator)(configuration);
1074
+ return {
1075
+ /**
1076
+ *
1077
+ * @param {string} organization
1078
+ * @param {string} cluster
1079
+ * @param {string} project
1080
+ * @param {string} environment
1081
+ * @param {string} service
1082
+ * @param {string | null} podName
1083
+ * @param {string | null} containerName
1084
+ * @param {Array<string>} command
1085
+ * @param {number} ttyWidth
1086
+ * @param {number} ttyHeight
1087
+ * @param {*} [options] Override http request option.
1088
+ * @throws {RequiredError}
1089
+ */
1090
+ handleShellExec(organization, cluster, project, environment, service, podName, containerName, command, ttyWidth, ttyHeight, options) {
1091
+ return __awaiter(this, void 0, void 0, function* () {
1092
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.handleShellExec(organization, cluster, project, environment, service, podName, containerName, command, ttyWidth, ttyHeight, options);
1093
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1094
+ });
1095
+ },
1096
+ };
1097
+ };
1098
+ exports.ShellApiFp = ShellApiFp;
1099
+ /**
1100
+ * ShellApi - factory interface
1101
+ * @export
1102
+ */
1103
+ const ShellApiFactory = function (configuration, basePath, axios) {
1104
+ const localVarFp = (0, exports.ShellApiFp)(configuration);
1105
+ return {
1106
+ /**
1107
+ *
1108
+ * @param {string} organization
1109
+ * @param {string} cluster
1110
+ * @param {string} project
1111
+ * @param {string} environment
1112
+ * @param {string} service
1113
+ * @param {string | null} podName
1114
+ * @param {string | null} containerName
1115
+ * @param {Array<string>} command
1116
+ * @param {number} ttyWidth
1117
+ * @param {number} ttyHeight
1118
+ * @param {*} [options] Override http request option.
1119
+ * @throws {RequiredError}
1120
+ */
1121
+ handleShellExec(organization, cluster, project, environment, service, podName, containerName, command, ttyWidth, ttyHeight, options) {
1122
+ return localVarFp.handleShellExec(organization, cluster, project, environment, service, podName, containerName, command, ttyWidth, ttyHeight, options).then((request) => request(axios, basePath));
1123
+ },
1124
+ };
1125
+ };
1126
+ exports.ShellApiFactory = ShellApiFactory;
1127
+ /**
1128
+ * ShellApi - object-oriented interface
1129
+ * @export
1130
+ * @class ShellApi
1131
+ * @extends {BaseAPI}
1132
+ */
1133
+ class ShellApi extends base_1.BaseAPI {
1134
+ /**
1135
+ *
1136
+ * @param {string} organization
1137
+ * @param {string} cluster
1138
+ * @param {string} project
1139
+ * @param {string} environment
1140
+ * @param {string} service
1141
+ * @param {string | null} podName
1142
+ * @param {string | null} containerName
1143
+ * @param {Array<string>} command
1144
+ * @param {number} ttyWidth
1145
+ * @param {number} ttyHeight
1146
+ * @param {*} [options] Override http request option.
1147
+ * @throws {RequiredError}
1148
+ * @memberof ShellApi
1149
+ */
1150
+ handleShellExec(organization, cluster, project, environment, service, podName, containerName, command, ttyWidth, ttyHeight, options) {
1151
+ return (0, exports.ShellApiFp)(this.configuration).handleShellExec(organization, cluster, project, environment, service, podName, containerName, command, ttyWidth, ttyHeight, options).then((request) => request(this.axios, this.basePath));
1152
+ }
1153
+ }
1154
+ exports.ShellApi = ShellApi;
package/dist/esm/api.d.ts CHANGED
@@ -1070,10 +1070,11 @@ export declare const LogsApiAxiosParamCreator: (configuration?: Configuration) =
1070
1070
  * @param {string} project
1071
1071
  * @param {string} environment
1072
1072
  * @param {string} service
1073
+ * @param {string | null} podName
1073
1074
  * @param {*} [options] Override http request option.
1074
1075
  * @throws {RequiredError}
1075
1076
  */
1076
- handleServiceLogsRequest: (organization: string, cluster: string, project: string, environment: string, service: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
1077
+ handleServiceLogsRequest: (organization: string, cluster: string, project: string, environment: string, service: string, podName: string | null, options?: AxiosRequestConfig) => Promise<RequestArgs>;
1077
1078
  };
1078
1079
  /**
1079
1080
  * LogsApi - functional programming interface
@@ -1099,10 +1100,11 @@ export declare const LogsApiFp: (configuration?: Configuration) => {
1099
1100
  * @param {string} project
1100
1101
  * @param {string} environment
1101
1102
  * @param {string} service
1103
+ * @param {string | null} podName
1102
1104
  * @param {*} [options] Override http request option.
1103
1105
  * @throws {RequiredError}
1104
1106
  */
1105
- handleServiceLogsRequest(organization: string, cluster: string, project: string, environment: string, service: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceLogResponseDto>>;
1107
+ handleServiceLogsRequest(organization: string, cluster: string, project: string, environment: string, service: string, podName: string | null, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceLogResponseDto>>;
1106
1108
  };
1107
1109
  /**
1108
1110
  * LogsApi - factory interface
@@ -1128,10 +1130,11 @@ export declare const LogsApiFactory: (configuration?: Configuration, basePath?:
1128
1130
  * @param {string} project
1129
1131
  * @param {string} environment
1130
1132
  * @param {string} service
1133
+ * @param {string | null} podName
1131
1134
  * @param {*} [options] Override http request option.
1132
1135
  * @throws {RequiredError}
1133
1136
  */
1134
- handleServiceLogsRequest(organization: string, cluster: string, project: string, environment: string, service: string, options?: any): AxiosPromise<ServiceLogResponseDto>;
1137
+ handleServiceLogsRequest(organization: string, cluster: string, project: string, environment: string, service: string, podName: string | null, options?: any): AxiosPromise<ServiceLogResponseDto>;
1135
1138
  };
1136
1139
  /**
1137
1140
  * LogsApi - object-oriented interface
@@ -1160,11 +1163,12 @@ export declare class LogsApi extends BaseAPI {
1160
1163
  * @param {string} project
1161
1164
  * @param {string} environment
1162
1165
  * @param {string} service
1166
+ * @param {string | null} podName
1163
1167
  * @param {*} [options] Override http request option.
1164
1168
  * @throws {RequiredError}
1165
1169
  * @memberof LogsApi
1166
1170
  */
1167
- handleServiceLogsRequest(organization: string, cluster: string, project: string, environment: string, service: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ServiceLogResponseDto, any>>;
1171
+ handleServiceLogsRequest(organization: string, cluster: string, project: string, environment: string, service: string, podName: string | null, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ServiceLogResponseDto, any>>;
1168
1172
  }
1169
1173
  /**
1170
1174
  * ServiceListPodsApi - axios parameter creator
@@ -1379,3 +1383,94 @@ export declare class ServiceStatusApi extends BaseAPI {
1379
1383
  */
1380
1384
  handleServiceStatusRequest(organization: string, cluster: string, project: string | null, environment: string | null, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ServiceStatusDto, any>>;
1381
1385
  }
1386
+ /**
1387
+ * ShellApi - axios parameter creator
1388
+ * @export
1389
+ */
1390
+ export declare const ShellApiAxiosParamCreator: (configuration?: Configuration) => {
1391
+ /**
1392
+ *
1393
+ * @param {string} organization
1394
+ * @param {string} cluster
1395
+ * @param {string} project
1396
+ * @param {string} environment
1397
+ * @param {string} service
1398
+ * @param {string | null} podName
1399
+ * @param {string | null} containerName
1400
+ * @param {Array<string>} command
1401
+ * @param {number} ttyWidth
1402
+ * @param {number} ttyHeight
1403
+ * @param {*} [options] Override http request option.
1404
+ * @throws {RequiredError}
1405
+ */
1406
+ 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?: AxiosRequestConfig) => Promise<RequestArgs>;
1407
+ };
1408
+ /**
1409
+ * ShellApi - functional programming interface
1410
+ * @export
1411
+ */
1412
+ export declare const ShellApiFp: (configuration?: Configuration) => {
1413
+ /**
1414
+ *
1415
+ * @param {string} organization
1416
+ * @param {string} cluster
1417
+ * @param {string} project
1418
+ * @param {string} environment
1419
+ * @param {string} service
1420
+ * @param {string | null} podName
1421
+ * @param {string | null} containerName
1422
+ * @param {Array<string>} command
1423
+ * @param {number} ttyWidth
1424
+ * @param {number} ttyHeight
1425
+ * @param {*} [options] Override http request option.
1426
+ * @throws {RequiredError}
1427
+ */
1428
+ 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?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
1429
+ };
1430
+ /**
1431
+ * ShellApi - factory interface
1432
+ * @export
1433
+ */
1434
+ export declare const ShellApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
1435
+ /**
1436
+ *
1437
+ * @param {string} organization
1438
+ * @param {string} cluster
1439
+ * @param {string} project
1440
+ * @param {string} environment
1441
+ * @param {string} service
1442
+ * @param {string | null} podName
1443
+ * @param {string | null} containerName
1444
+ * @param {Array<string>} command
1445
+ * @param {number} ttyWidth
1446
+ * @param {number} ttyHeight
1447
+ * @param {*} [options] Override http request option.
1448
+ * @throws {RequiredError}
1449
+ */
1450
+ 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?: any): AxiosPromise<string>;
1451
+ };
1452
+ /**
1453
+ * ShellApi - object-oriented interface
1454
+ * @export
1455
+ * @class ShellApi
1456
+ * @extends {BaseAPI}
1457
+ */
1458
+ export declare class ShellApi extends BaseAPI {
1459
+ /**
1460
+ *
1461
+ * @param {string} organization
1462
+ * @param {string} cluster
1463
+ * @param {string} project
1464
+ * @param {string} environment
1465
+ * @param {string} service
1466
+ * @param {string | null} podName
1467
+ * @param {string | null} containerName
1468
+ * @param {Array<string>} command
1469
+ * @param {number} ttyWidth
1470
+ * @param {number} ttyHeight
1471
+ * @param {*} [options] Override http request option.
1472
+ * @throws {RequiredError}
1473
+ * @memberof ShellApi
1474
+ */
1475
+ 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?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
1476
+ }
package/dist/esm/api.js CHANGED
@@ -441,10 +441,11 @@ export const LogsApiAxiosParamCreator = function (configuration) {
441
441
  * @param {string} project
442
442
  * @param {string} environment
443
443
  * @param {string} service
444
+ * @param {string | null} podName
444
445
  * @param {*} [options] Override http request option.
445
446
  * @throws {RequiredError}
446
447
  */
447
- handleServiceLogsRequest: (organization, cluster, project, environment, service, options = {}) => __awaiter(this, void 0, void 0, function* () {
448
+ handleServiceLogsRequest: (organization, cluster, project, environment, service, podName, options = {}) => __awaiter(this, void 0, void 0, function* () {
448
449
  // verify required parameter 'organization' is not null or undefined
449
450
  assertParamExists('handleServiceLogsRequest', 'organization', organization);
450
451
  // verify required parameter 'cluster' is not null or undefined
@@ -455,12 +456,15 @@ export const LogsApiAxiosParamCreator = function (configuration) {
455
456
  assertParamExists('handleServiceLogsRequest', 'environment', environment);
456
457
  // verify required parameter 'service' is not null or undefined
457
458
  assertParamExists('handleServiceLogsRequest', 'service', service);
459
+ // verify required parameter 'podName' is not null or undefined
460
+ assertParamExists('handleServiceLogsRequest', 'podName', podName);
458
461
  const localVarPath = `/service/logs`
459
462
  .replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
460
463
  .replace(`{${"cluster"}}`, encodeURIComponent(String(cluster)))
461
464
  .replace(`{${"project"}}`, encodeURIComponent(String(project)))
462
465
  .replace(`{${"environment"}}`, encodeURIComponent(String(environment)))
463
- .replace(`{${"service"}}`, encodeURIComponent(String(service)));
466
+ .replace(`{${"service"}}`, encodeURIComponent(String(service)))
467
+ .replace(`{${"pod_name"}}`, encodeURIComponent(String(podName)));
464
468
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
465
469
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
466
470
  let baseOptions;
@@ -511,12 +515,13 @@ export const LogsApiFp = function (configuration) {
511
515
  * @param {string} project
512
516
  * @param {string} environment
513
517
  * @param {string} service
518
+ * @param {string | null} podName
514
519
  * @param {*} [options] Override http request option.
515
520
  * @throws {RequiredError}
516
521
  */
517
- handleServiceLogsRequest(organization, cluster, project, environment, service, options) {
522
+ handleServiceLogsRequest(organization, cluster, project, environment, service, podName, options) {
518
523
  return __awaiter(this, void 0, void 0, function* () {
519
- const localVarAxiosArgs = yield localVarAxiosParamCreator.handleServiceLogsRequest(organization, cluster, project, environment, service, options);
524
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.handleServiceLogsRequest(organization, cluster, project, environment, service, podName, options);
520
525
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
521
526
  });
522
527
  },
@@ -550,11 +555,12 @@ export const LogsApiFactory = function (configuration, basePath, axios) {
550
555
  * @param {string} project
551
556
  * @param {string} environment
552
557
  * @param {string} service
558
+ * @param {string | null} podName
553
559
  * @param {*} [options] Override http request option.
554
560
  * @throws {RequiredError}
555
561
  */
556
- handleServiceLogsRequest(organization, cluster, project, environment, service, options) {
557
- return localVarFp.handleServiceLogsRequest(organization, cluster, project, environment, service, options).then((request) => request(axios, basePath));
562
+ handleServiceLogsRequest(organization, cluster, project, environment, service, podName, options) {
563
+ return localVarFp.handleServiceLogsRequest(organization, cluster, project, environment, service, podName, options).then((request) => request(axios, basePath));
558
564
  },
559
565
  };
560
566
  };
@@ -587,12 +593,13 @@ export class LogsApi extends BaseAPI {
587
593
  * @param {string} project
588
594
  * @param {string} environment
589
595
  * @param {string} service
596
+ * @param {string | null} podName
590
597
  * @param {*} [options] Override http request option.
591
598
  * @throws {RequiredError}
592
599
  * @memberof LogsApi
593
600
  */
594
- handleServiceLogsRequest(organization, cluster, project, environment, service, options) {
595
- return LogsApiFp(this.configuration).handleServiceLogsRequest(organization, cluster, project, environment, service, options).then((request) => request(this.axios, this.basePath));
601
+ handleServiceLogsRequest(organization, cluster, project, environment, service, podName, options) {
602
+ return LogsApiFp(this.configuration).handleServiceLogsRequest(organization, cluster, project, environment, service, podName, options).then((request) => request(this.axios, this.basePath));
596
603
  }
597
604
  }
598
605
  /**
@@ -958,3 +965,159 @@ export class ServiceStatusApi extends BaseAPI {
958
965
  return ServiceStatusApiFp(this.configuration).handleServiceStatusRequest(organization, cluster, project, environment, options).then((request) => request(this.axios, this.basePath));
959
966
  }
960
967
  }
968
+ /**
969
+ * ShellApi - axios parameter creator
970
+ * @export
971
+ */
972
+ export const ShellApiAxiosParamCreator = function (configuration) {
973
+ return {
974
+ /**
975
+ *
976
+ * @param {string} organization
977
+ * @param {string} cluster
978
+ * @param {string} project
979
+ * @param {string} environment
980
+ * @param {string} service
981
+ * @param {string | null} podName
982
+ * @param {string | null} containerName
983
+ * @param {Array<string>} command
984
+ * @param {number} ttyWidth
985
+ * @param {number} ttyHeight
986
+ * @param {*} [options] Override http request option.
987
+ * @throws {RequiredError}
988
+ */
989
+ handleShellExec: (organization, cluster, project, environment, service, podName, containerName, command, ttyWidth, ttyHeight, options = {}) => __awaiter(this, void 0, void 0, function* () {
990
+ // verify required parameter 'organization' is not null or undefined
991
+ assertParamExists('handleShellExec', 'organization', organization);
992
+ // verify required parameter 'cluster' is not null or undefined
993
+ assertParamExists('handleShellExec', 'cluster', cluster);
994
+ // verify required parameter 'project' is not null or undefined
995
+ assertParamExists('handleShellExec', 'project', project);
996
+ // verify required parameter 'environment' is not null or undefined
997
+ assertParamExists('handleShellExec', 'environment', environment);
998
+ // verify required parameter 'service' is not null or undefined
999
+ assertParamExists('handleShellExec', 'service', service);
1000
+ // verify required parameter 'podName' is not null or undefined
1001
+ assertParamExists('handleShellExec', 'podName', podName);
1002
+ // verify required parameter 'containerName' is not null or undefined
1003
+ assertParamExists('handleShellExec', 'containerName', containerName);
1004
+ // verify required parameter 'command' is not null or undefined
1005
+ assertParamExists('handleShellExec', 'command', command);
1006
+ // verify required parameter 'ttyWidth' is not null or undefined
1007
+ assertParamExists('handleShellExec', 'ttyWidth', ttyWidth);
1008
+ // verify required parameter 'ttyHeight' is not null or undefined
1009
+ assertParamExists('handleShellExec', 'ttyHeight', ttyHeight);
1010
+ const localVarPath = `/shell/exec`
1011
+ .replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
1012
+ .replace(`{${"cluster"}}`, encodeURIComponent(String(cluster)))
1013
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)))
1014
+ .replace(`{${"environment"}}`, encodeURIComponent(String(environment)))
1015
+ .replace(`{${"service"}}`, encodeURIComponent(String(service)))
1016
+ .replace(`{${"pod_name"}}`, encodeURIComponent(String(podName)))
1017
+ .replace(`{${"container_name"}}`, encodeURIComponent(String(containerName)))
1018
+ .replace(`{${"command"}}`, encodeURIComponent(String(command)))
1019
+ .replace(`{${"tty_width"}}`, encodeURIComponent(String(ttyWidth)))
1020
+ .replace(`{${"tty_height"}}`, encodeURIComponent(String(ttyHeight)));
1021
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1022
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1023
+ let baseOptions;
1024
+ if (configuration) {
1025
+ baseOptions = configuration.baseOptions;
1026
+ }
1027
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1028
+ const localVarHeaderParameter = {};
1029
+ const localVarQueryParameter = {};
1030
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1031
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1032
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1033
+ return {
1034
+ url: toPathString(localVarUrlObj),
1035
+ options: localVarRequestOptions,
1036
+ };
1037
+ }),
1038
+ };
1039
+ };
1040
+ /**
1041
+ * ShellApi - functional programming interface
1042
+ * @export
1043
+ */
1044
+ export const ShellApiFp = function (configuration) {
1045
+ const localVarAxiosParamCreator = ShellApiAxiosParamCreator(configuration);
1046
+ return {
1047
+ /**
1048
+ *
1049
+ * @param {string} organization
1050
+ * @param {string} cluster
1051
+ * @param {string} project
1052
+ * @param {string} environment
1053
+ * @param {string} service
1054
+ * @param {string | null} podName
1055
+ * @param {string | null} containerName
1056
+ * @param {Array<string>} command
1057
+ * @param {number} ttyWidth
1058
+ * @param {number} ttyHeight
1059
+ * @param {*} [options] Override http request option.
1060
+ * @throws {RequiredError}
1061
+ */
1062
+ handleShellExec(organization, cluster, project, environment, service, podName, containerName, command, ttyWidth, ttyHeight, options) {
1063
+ return __awaiter(this, void 0, void 0, function* () {
1064
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.handleShellExec(organization, cluster, project, environment, service, podName, containerName, command, ttyWidth, ttyHeight, options);
1065
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1066
+ });
1067
+ },
1068
+ };
1069
+ };
1070
+ /**
1071
+ * ShellApi - factory interface
1072
+ * @export
1073
+ */
1074
+ export const ShellApiFactory = function (configuration, basePath, axios) {
1075
+ const localVarFp = ShellApiFp(configuration);
1076
+ return {
1077
+ /**
1078
+ *
1079
+ * @param {string} organization
1080
+ * @param {string} cluster
1081
+ * @param {string} project
1082
+ * @param {string} environment
1083
+ * @param {string} service
1084
+ * @param {string | null} podName
1085
+ * @param {string | null} containerName
1086
+ * @param {Array<string>} command
1087
+ * @param {number} ttyWidth
1088
+ * @param {number} ttyHeight
1089
+ * @param {*} [options] Override http request option.
1090
+ * @throws {RequiredError}
1091
+ */
1092
+ handleShellExec(organization, cluster, project, environment, service, podName, containerName, command, ttyWidth, ttyHeight, options) {
1093
+ return localVarFp.handleShellExec(organization, cluster, project, environment, service, podName, containerName, command, ttyWidth, ttyHeight, options).then((request) => request(axios, basePath));
1094
+ },
1095
+ };
1096
+ };
1097
+ /**
1098
+ * ShellApi - object-oriented interface
1099
+ * @export
1100
+ * @class ShellApi
1101
+ * @extends {BaseAPI}
1102
+ */
1103
+ export class ShellApi extends BaseAPI {
1104
+ /**
1105
+ *
1106
+ * @param {string} organization
1107
+ * @param {string} cluster
1108
+ * @param {string} project
1109
+ * @param {string} environment
1110
+ * @param {string} service
1111
+ * @param {string | null} podName
1112
+ * @param {string | null} containerName
1113
+ * @param {Array<string>} command
1114
+ * @param {number} ttyWidth
1115
+ * @param {number} ttyHeight
1116
+ * @param {*} [options] Override http request option.
1117
+ * @throws {RequiredError}
1118
+ * @memberof ShellApi
1119
+ */
1120
+ handleShellExec(organization, cluster, project, environment, service, podName, containerName, command, ttyWidth, ttyHeight, options) {
1121
+ return ShellApiFp(this.configuration).handleShellExec(organization, cluster, project, environment, service, podName, containerName, command, ttyWidth, ttyHeight, options).then((request) => request(this.axios, this.basePath));
1122
+ }
1123
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qovery-ws-typescript-axios",
3
- "version": "v0.1.147",
3
+ "version": "v0.1.153",
4
4
  "description": "OpenAPI client for qovery-ws-typescript-axios",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {