qovery-ws-typescript-axios 0.1.104 → 0.1.106
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 +162 -0
- package/dist/api.d.ts +103 -0
- package/dist/api.js +126 -1
- package/dist/esm/api.d.ts +103 -0
- package/dist/esm/api.js +121 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -650,6 +650,25 @@ export interface NodeTaintDto {
|
|
|
650
650
|
*/
|
|
651
651
|
'value': string;
|
|
652
652
|
}
|
|
653
|
+
/**
|
|
654
|
+
*
|
|
655
|
+
* @export
|
|
656
|
+
* @interface PodDto
|
|
657
|
+
*/
|
|
658
|
+
export interface PodDto {
|
|
659
|
+
/**
|
|
660
|
+
*
|
|
661
|
+
* @type {string}
|
|
662
|
+
* @memberof PodDto
|
|
663
|
+
*/
|
|
664
|
+
'name': string;
|
|
665
|
+
/**
|
|
666
|
+
*
|
|
667
|
+
* @type {Array<number>}
|
|
668
|
+
* @memberof PodDto
|
|
669
|
+
*/
|
|
670
|
+
'ports': Array<number>;
|
|
671
|
+
}
|
|
653
672
|
/**
|
|
654
673
|
*
|
|
655
674
|
* @export
|
|
@@ -741,6 +760,19 @@ export interface ServiceInfraLogResponseDto {
|
|
|
741
760
|
*/
|
|
742
761
|
'message': string;
|
|
743
762
|
}
|
|
763
|
+
/**
|
|
764
|
+
*
|
|
765
|
+
* @export
|
|
766
|
+
* @interface ServiceListPodsResponseDto
|
|
767
|
+
*/
|
|
768
|
+
export interface ServiceListPodsResponseDto {
|
|
769
|
+
/**
|
|
770
|
+
*
|
|
771
|
+
* @type {Array<PodDto>}
|
|
772
|
+
* @memberof ServiceListPodsResponseDto
|
|
773
|
+
*/
|
|
774
|
+
'pods': Array<PodDto>;
|
|
775
|
+
}
|
|
744
776
|
/**
|
|
745
777
|
*
|
|
746
778
|
* @export
|
|
@@ -1432,6 +1464,136 @@ export class LogsApi extends BaseAPI {
|
|
|
1432
1464
|
|
|
1433
1465
|
|
|
1434
1466
|
|
|
1467
|
+
/**
|
|
1468
|
+
* ServiceListPodsApi - axios parameter creator
|
|
1469
|
+
* @export
|
|
1470
|
+
*/
|
|
1471
|
+
export const ServiceListPodsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1472
|
+
return {
|
|
1473
|
+
/**
|
|
1474
|
+
*
|
|
1475
|
+
* @param {string} organization
|
|
1476
|
+
* @param {string} cluster
|
|
1477
|
+
* @param {string} project
|
|
1478
|
+
* @param {string} environment
|
|
1479
|
+
* @param {string} service
|
|
1480
|
+
* @param {*} [options] Override http request option.
|
|
1481
|
+
* @throws {RequiredError}
|
|
1482
|
+
*/
|
|
1483
|
+
handleServiceListPodsRequest: async (organization: string, cluster: string, project: string, environment: string, service: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1484
|
+
// verify required parameter 'organization' is not null or undefined
|
|
1485
|
+
assertParamExists('handleServiceListPodsRequest', 'organization', organization)
|
|
1486
|
+
// verify required parameter 'cluster' is not null or undefined
|
|
1487
|
+
assertParamExists('handleServiceListPodsRequest', 'cluster', cluster)
|
|
1488
|
+
// verify required parameter 'project' is not null or undefined
|
|
1489
|
+
assertParamExists('handleServiceListPodsRequest', 'project', project)
|
|
1490
|
+
// verify required parameter 'environment' is not null or undefined
|
|
1491
|
+
assertParamExists('handleServiceListPodsRequest', 'environment', environment)
|
|
1492
|
+
// verify required parameter 'service' is not null or undefined
|
|
1493
|
+
assertParamExists('handleServiceListPodsRequest', 'service', service)
|
|
1494
|
+
const localVarPath = `/service/pods`
|
|
1495
|
+
.replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
|
|
1496
|
+
.replace(`{${"cluster"}}`, encodeURIComponent(String(cluster)))
|
|
1497
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)))
|
|
1498
|
+
.replace(`{${"environment"}}`, encodeURIComponent(String(environment)))
|
|
1499
|
+
.replace(`{${"service"}}`, encodeURIComponent(String(service)));
|
|
1500
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1501
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1502
|
+
let baseOptions;
|
|
1503
|
+
if (configuration) {
|
|
1504
|
+
baseOptions = configuration.baseOptions;
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1507
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1508
|
+
const localVarHeaderParameter = {} as any;
|
|
1509
|
+
const localVarQueryParameter = {} as any;
|
|
1510
|
+
|
|
1511
|
+
|
|
1512
|
+
|
|
1513
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1514
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1515
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1516
|
+
|
|
1517
|
+
return {
|
|
1518
|
+
url: toPathString(localVarUrlObj),
|
|
1519
|
+
options: localVarRequestOptions,
|
|
1520
|
+
};
|
|
1521
|
+
},
|
|
1522
|
+
}
|
|
1523
|
+
};
|
|
1524
|
+
|
|
1525
|
+
/**
|
|
1526
|
+
* ServiceListPodsApi - functional programming interface
|
|
1527
|
+
* @export
|
|
1528
|
+
*/
|
|
1529
|
+
export const ServiceListPodsApiFp = function(configuration?: Configuration) {
|
|
1530
|
+
const localVarAxiosParamCreator = ServiceListPodsApiAxiosParamCreator(configuration)
|
|
1531
|
+
return {
|
|
1532
|
+
/**
|
|
1533
|
+
*
|
|
1534
|
+
* @param {string} organization
|
|
1535
|
+
* @param {string} cluster
|
|
1536
|
+
* @param {string} project
|
|
1537
|
+
* @param {string} environment
|
|
1538
|
+
* @param {string} service
|
|
1539
|
+
* @param {*} [options] Override http request option.
|
|
1540
|
+
* @throws {RequiredError}
|
|
1541
|
+
*/
|
|
1542
|
+
async handleServiceListPodsRequest(organization: string, cluster: string, project: string, environment: string, service: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceListPodsResponseDto>> {
|
|
1543
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.handleServiceListPodsRequest(organization, cluster, project, environment, service, options);
|
|
1544
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1545
|
+
},
|
|
1546
|
+
}
|
|
1547
|
+
};
|
|
1548
|
+
|
|
1549
|
+
/**
|
|
1550
|
+
* ServiceListPodsApi - factory interface
|
|
1551
|
+
* @export
|
|
1552
|
+
*/
|
|
1553
|
+
export const ServiceListPodsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1554
|
+
const localVarFp = ServiceListPodsApiFp(configuration)
|
|
1555
|
+
return {
|
|
1556
|
+
/**
|
|
1557
|
+
*
|
|
1558
|
+
* @param {string} organization
|
|
1559
|
+
* @param {string} cluster
|
|
1560
|
+
* @param {string} project
|
|
1561
|
+
* @param {string} environment
|
|
1562
|
+
* @param {string} service
|
|
1563
|
+
* @param {*} [options] Override http request option.
|
|
1564
|
+
* @throws {RequiredError}
|
|
1565
|
+
*/
|
|
1566
|
+
handleServiceListPodsRequest(organization: string, cluster: string, project: string, environment: string, service: string, options?: any): AxiosPromise<ServiceListPodsResponseDto> {
|
|
1567
|
+
return localVarFp.handleServiceListPodsRequest(organization, cluster, project, environment, service, options).then((request) => request(axios, basePath));
|
|
1568
|
+
},
|
|
1569
|
+
};
|
|
1570
|
+
};
|
|
1571
|
+
|
|
1572
|
+
/**
|
|
1573
|
+
* ServiceListPodsApi - object-oriented interface
|
|
1574
|
+
* @export
|
|
1575
|
+
* @class ServiceListPodsApi
|
|
1576
|
+
* @extends {BaseAPI}
|
|
1577
|
+
*/
|
|
1578
|
+
export class ServiceListPodsApi extends BaseAPI {
|
|
1579
|
+
/**
|
|
1580
|
+
*
|
|
1581
|
+
* @param {string} organization
|
|
1582
|
+
* @param {string} cluster
|
|
1583
|
+
* @param {string} project
|
|
1584
|
+
* @param {string} environment
|
|
1585
|
+
* @param {string} service
|
|
1586
|
+
* @param {*} [options] Override http request option.
|
|
1587
|
+
* @throws {RequiredError}
|
|
1588
|
+
* @memberof ServiceListPodsApi
|
|
1589
|
+
*/
|
|
1590
|
+
public handleServiceListPodsRequest(organization: string, cluster: string, project: string, environment: string, service: string, options?: AxiosRequestConfig) {
|
|
1591
|
+
return ServiceListPodsApiFp(this.configuration).handleServiceListPodsRequest(organization, cluster, project, environment, service, options).then((request) => request(this.axios, this.basePath));
|
|
1592
|
+
}
|
|
1593
|
+
}
|
|
1594
|
+
|
|
1595
|
+
|
|
1596
|
+
|
|
1435
1597
|
/**
|
|
1436
1598
|
* ServiceMetricsApi - axios parameter creator
|
|
1437
1599
|
* @export
|
package/dist/api.d.ts
CHANGED
|
@@ -634,6 +634,25 @@ export interface NodeTaintDto {
|
|
|
634
634
|
*/
|
|
635
635
|
'value': string;
|
|
636
636
|
}
|
|
637
|
+
/**
|
|
638
|
+
*
|
|
639
|
+
* @export
|
|
640
|
+
* @interface PodDto
|
|
641
|
+
*/
|
|
642
|
+
export interface PodDto {
|
|
643
|
+
/**
|
|
644
|
+
*
|
|
645
|
+
* @type {string}
|
|
646
|
+
* @memberof PodDto
|
|
647
|
+
*/
|
|
648
|
+
'name': string;
|
|
649
|
+
/**
|
|
650
|
+
*
|
|
651
|
+
* @type {Array<number>}
|
|
652
|
+
* @memberof PodDto
|
|
653
|
+
*/
|
|
654
|
+
'ports': Array<number>;
|
|
655
|
+
}
|
|
637
656
|
/**
|
|
638
657
|
*
|
|
639
658
|
* @export
|
|
@@ -719,6 +738,19 @@ export interface ServiceInfraLogResponseDto {
|
|
|
719
738
|
*/
|
|
720
739
|
'message': string;
|
|
721
740
|
}
|
|
741
|
+
/**
|
|
742
|
+
*
|
|
743
|
+
* @export
|
|
744
|
+
* @interface ServiceListPodsResponseDto
|
|
745
|
+
*/
|
|
746
|
+
export interface ServiceListPodsResponseDto {
|
|
747
|
+
/**
|
|
748
|
+
*
|
|
749
|
+
* @type {Array<PodDto>}
|
|
750
|
+
* @memberof ServiceListPodsResponseDto
|
|
751
|
+
*/
|
|
752
|
+
'pods': Array<PodDto>;
|
|
753
|
+
}
|
|
722
754
|
/**
|
|
723
755
|
*
|
|
724
756
|
* @export
|
|
@@ -1134,6 +1166,77 @@ export declare class LogsApi extends BaseAPI {
|
|
|
1134
1166
|
*/
|
|
1135
1167
|
handleServiceLogsRequest(organization: string, cluster: string, project: string, environment: string, service: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ServiceLogResponseDto, any>>;
|
|
1136
1168
|
}
|
|
1169
|
+
/**
|
|
1170
|
+
* ServiceListPodsApi - axios parameter creator
|
|
1171
|
+
* @export
|
|
1172
|
+
*/
|
|
1173
|
+
export declare const ServiceListPodsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
1174
|
+
/**
|
|
1175
|
+
*
|
|
1176
|
+
* @param {string} organization
|
|
1177
|
+
* @param {string} cluster
|
|
1178
|
+
* @param {string} project
|
|
1179
|
+
* @param {string} environment
|
|
1180
|
+
* @param {string} service
|
|
1181
|
+
* @param {*} [options] Override http request option.
|
|
1182
|
+
* @throws {RequiredError}
|
|
1183
|
+
*/
|
|
1184
|
+
handleServiceListPodsRequest: (organization: string, cluster: string, project: string, environment: string, service: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
1185
|
+
};
|
|
1186
|
+
/**
|
|
1187
|
+
* ServiceListPodsApi - functional programming interface
|
|
1188
|
+
* @export
|
|
1189
|
+
*/
|
|
1190
|
+
export declare const ServiceListPodsApiFp: (configuration?: Configuration) => {
|
|
1191
|
+
/**
|
|
1192
|
+
*
|
|
1193
|
+
* @param {string} organization
|
|
1194
|
+
* @param {string} cluster
|
|
1195
|
+
* @param {string} project
|
|
1196
|
+
* @param {string} environment
|
|
1197
|
+
* @param {string} service
|
|
1198
|
+
* @param {*} [options] Override http request option.
|
|
1199
|
+
* @throws {RequiredError}
|
|
1200
|
+
*/
|
|
1201
|
+
handleServiceListPodsRequest(organization: string, cluster: string, project: string, environment: string, service: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceListPodsResponseDto>>;
|
|
1202
|
+
};
|
|
1203
|
+
/**
|
|
1204
|
+
* ServiceListPodsApi - factory interface
|
|
1205
|
+
* @export
|
|
1206
|
+
*/
|
|
1207
|
+
export declare const ServiceListPodsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
1208
|
+
/**
|
|
1209
|
+
*
|
|
1210
|
+
* @param {string} organization
|
|
1211
|
+
* @param {string} cluster
|
|
1212
|
+
* @param {string} project
|
|
1213
|
+
* @param {string} environment
|
|
1214
|
+
* @param {string} service
|
|
1215
|
+
* @param {*} [options] Override http request option.
|
|
1216
|
+
* @throws {RequiredError}
|
|
1217
|
+
*/
|
|
1218
|
+
handleServiceListPodsRequest(organization: string, cluster: string, project: string, environment: string, service: string, options?: any): AxiosPromise<ServiceListPodsResponseDto>;
|
|
1219
|
+
};
|
|
1220
|
+
/**
|
|
1221
|
+
* ServiceListPodsApi - object-oriented interface
|
|
1222
|
+
* @export
|
|
1223
|
+
* @class ServiceListPodsApi
|
|
1224
|
+
* @extends {BaseAPI}
|
|
1225
|
+
*/
|
|
1226
|
+
export declare class ServiceListPodsApi extends BaseAPI {
|
|
1227
|
+
/**
|
|
1228
|
+
*
|
|
1229
|
+
* @param {string} organization
|
|
1230
|
+
* @param {string} cluster
|
|
1231
|
+
* @param {string} project
|
|
1232
|
+
* @param {string} environment
|
|
1233
|
+
* @param {string} service
|
|
1234
|
+
* @param {*} [options] Override http request option.
|
|
1235
|
+
* @throws {RequiredError}
|
|
1236
|
+
* @memberof ServiceListPodsApi
|
|
1237
|
+
*/
|
|
1238
|
+
handleServiceListPodsRequest(organization: string, cluster: string, project: string, environment: string, service: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ServiceListPodsResponseDto, any>>;
|
|
1239
|
+
}
|
|
1137
1240
|
/**
|
|
1138
1241
|
* ServiceMetricsApi - axios parameter creator
|
|
1139
1242
|
* @export
|
package/dist/api.js
CHANGED
|
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.ServiceStatusApi = exports.ServiceStatusApiFactory = exports.ServiceStatusApiFp = exports.ServiceStatusApiAxiosParamCreator = exports.ServiceMetricsApi = exports.ServiceMetricsApiFactory = exports.ServiceMetricsApiFp = exports.ServiceMetricsApiAxiosParamCreator = 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.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
|
|
@@ -610,6 +610,131 @@ class LogsApi extends base_1.BaseAPI {
|
|
|
610
610
|
}
|
|
611
611
|
}
|
|
612
612
|
exports.LogsApi = LogsApi;
|
|
613
|
+
/**
|
|
614
|
+
* ServiceListPodsApi - axios parameter creator
|
|
615
|
+
* @export
|
|
616
|
+
*/
|
|
617
|
+
const ServiceListPodsApiAxiosParamCreator = function (configuration) {
|
|
618
|
+
return {
|
|
619
|
+
/**
|
|
620
|
+
*
|
|
621
|
+
* @param {string} organization
|
|
622
|
+
* @param {string} cluster
|
|
623
|
+
* @param {string} project
|
|
624
|
+
* @param {string} environment
|
|
625
|
+
* @param {string} service
|
|
626
|
+
* @param {*} [options] Override http request option.
|
|
627
|
+
* @throws {RequiredError}
|
|
628
|
+
*/
|
|
629
|
+
handleServiceListPodsRequest: (organization, cluster, project, environment, service, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
630
|
+
// verify required parameter 'organization' is not null or undefined
|
|
631
|
+
(0, common_1.assertParamExists)('handleServiceListPodsRequest', 'organization', organization);
|
|
632
|
+
// verify required parameter 'cluster' is not null or undefined
|
|
633
|
+
(0, common_1.assertParamExists)('handleServiceListPodsRequest', 'cluster', cluster);
|
|
634
|
+
// verify required parameter 'project' is not null or undefined
|
|
635
|
+
(0, common_1.assertParamExists)('handleServiceListPodsRequest', 'project', project);
|
|
636
|
+
// verify required parameter 'environment' is not null or undefined
|
|
637
|
+
(0, common_1.assertParamExists)('handleServiceListPodsRequest', 'environment', environment);
|
|
638
|
+
// verify required parameter 'service' is not null or undefined
|
|
639
|
+
(0, common_1.assertParamExists)('handleServiceListPodsRequest', 'service', service);
|
|
640
|
+
const localVarPath = `/service/pods`
|
|
641
|
+
.replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
|
|
642
|
+
.replace(`{${"cluster"}}`, encodeURIComponent(String(cluster)))
|
|
643
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)))
|
|
644
|
+
.replace(`{${"environment"}}`, encodeURIComponent(String(environment)))
|
|
645
|
+
.replace(`{${"service"}}`, encodeURIComponent(String(service)));
|
|
646
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
647
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
648
|
+
let baseOptions;
|
|
649
|
+
if (configuration) {
|
|
650
|
+
baseOptions = configuration.baseOptions;
|
|
651
|
+
}
|
|
652
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
653
|
+
const localVarHeaderParameter = {};
|
|
654
|
+
const localVarQueryParameter = {};
|
|
655
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
656
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
657
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
658
|
+
return {
|
|
659
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
660
|
+
options: localVarRequestOptions,
|
|
661
|
+
};
|
|
662
|
+
}),
|
|
663
|
+
};
|
|
664
|
+
};
|
|
665
|
+
exports.ServiceListPodsApiAxiosParamCreator = ServiceListPodsApiAxiosParamCreator;
|
|
666
|
+
/**
|
|
667
|
+
* ServiceListPodsApi - functional programming interface
|
|
668
|
+
* @export
|
|
669
|
+
*/
|
|
670
|
+
const ServiceListPodsApiFp = function (configuration) {
|
|
671
|
+
const localVarAxiosParamCreator = (0, exports.ServiceListPodsApiAxiosParamCreator)(configuration);
|
|
672
|
+
return {
|
|
673
|
+
/**
|
|
674
|
+
*
|
|
675
|
+
* @param {string} organization
|
|
676
|
+
* @param {string} cluster
|
|
677
|
+
* @param {string} project
|
|
678
|
+
* @param {string} environment
|
|
679
|
+
* @param {string} service
|
|
680
|
+
* @param {*} [options] Override http request option.
|
|
681
|
+
* @throws {RequiredError}
|
|
682
|
+
*/
|
|
683
|
+
handleServiceListPodsRequest(organization, cluster, project, environment, service, options) {
|
|
684
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
685
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.handleServiceListPodsRequest(organization, cluster, project, environment, service, options);
|
|
686
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
687
|
+
});
|
|
688
|
+
},
|
|
689
|
+
};
|
|
690
|
+
};
|
|
691
|
+
exports.ServiceListPodsApiFp = ServiceListPodsApiFp;
|
|
692
|
+
/**
|
|
693
|
+
* ServiceListPodsApi - factory interface
|
|
694
|
+
* @export
|
|
695
|
+
*/
|
|
696
|
+
const ServiceListPodsApiFactory = function (configuration, basePath, axios) {
|
|
697
|
+
const localVarFp = (0, exports.ServiceListPodsApiFp)(configuration);
|
|
698
|
+
return {
|
|
699
|
+
/**
|
|
700
|
+
*
|
|
701
|
+
* @param {string} organization
|
|
702
|
+
* @param {string} cluster
|
|
703
|
+
* @param {string} project
|
|
704
|
+
* @param {string} environment
|
|
705
|
+
* @param {string} service
|
|
706
|
+
* @param {*} [options] Override http request option.
|
|
707
|
+
* @throws {RequiredError}
|
|
708
|
+
*/
|
|
709
|
+
handleServiceListPodsRequest(organization, cluster, project, environment, service, options) {
|
|
710
|
+
return localVarFp.handleServiceListPodsRequest(organization, cluster, project, environment, service, options).then((request) => request(axios, basePath));
|
|
711
|
+
},
|
|
712
|
+
};
|
|
713
|
+
};
|
|
714
|
+
exports.ServiceListPodsApiFactory = ServiceListPodsApiFactory;
|
|
715
|
+
/**
|
|
716
|
+
* ServiceListPodsApi - object-oriented interface
|
|
717
|
+
* @export
|
|
718
|
+
* @class ServiceListPodsApi
|
|
719
|
+
* @extends {BaseAPI}
|
|
720
|
+
*/
|
|
721
|
+
class ServiceListPodsApi extends base_1.BaseAPI {
|
|
722
|
+
/**
|
|
723
|
+
*
|
|
724
|
+
* @param {string} organization
|
|
725
|
+
* @param {string} cluster
|
|
726
|
+
* @param {string} project
|
|
727
|
+
* @param {string} environment
|
|
728
|
+
* @param {string} service
|
|
729
|
+
* @param {*} [options] Override http request option.
|
|
730
|
+
* @throws {RequiredError}
|
|
731
|
+
* @memberof ServiceListPodsApi
|
|
732
|
+
*/
|
|
733
|
+
handleServiceListPodsRequest(organization, cluster, project, environment, service, options) {
|
|
734
|
+
return (0, exports.ServiceListPodsApiFp)(this.configuration).handleServiceListPodsRequest(organization, cluster, project, environment, service, options).then((request) => request(this.axios, this.basePath));
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
exports.ServiceListPodsApi = ServiceListPodsApi;
|
|
613
738
|
/**
|
|
614
739
|
* ServiceMetricsApi - axios parameter creator
|
|
615
740
|
* @export
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -634,6 +634,25 @@ export interface NodeTaintDto {
|
|
|
634
634
|
*/
|
|
635
635
|
'value': string;
|
|
636
636
|
}
|
|
637
|
+
/**
|
|
638
|
+
*
|
|
639
|
+
* @export
|
|
640
|
+
* @interface PodDto
|
|
641
|
+
*/
|
|
642
|
+
export interface PodDto {
|
|
643
|
+
/**
|
|
644
|
+
*
|
|
645
|
+
* @type {string}
|
|
646
|
+
* @memberof PodDto
|
|
647
|
+
*/
|
|
648
|
+
'name': string;
|
|
649
|
+
/**
|
|
650
|
+
*
|
|
651
|
+
* @type {Array<number>}
|
|
652
|
+
* @memberof PodDto
|
|
653
|
+
*/
|
|
654
|
+
'ports': Array<number>;
|
|
655
|
+
}
|
|
637
656
|
/**
|
|
638
657
|
*
|
|
639
658
|
* @export
|
|
@@ -719,6 +738,19 @@ export interface ServiceInfraLogResponseDto {
|
|
|
719
738
|
*/
|
|
720
739
|
'message': string;
|
|
721
740
|
}
|
|
741
|
+
/**
|
|
742
|
+
*
|
|
743
|
+
* @export
|
|
744
|
+
* @interface ServiceListPodsResponseDto
|
|
745
|
+
*/
|
|
746
|
+
export interface ServiceListPodsResponseDto {
|
|
747
|
+
/**
|
|
748
|
+
*
|
|
749
|
+
* @type {Array<PodDto>}
|
|
750
|
+
* @memberof ServiceListPodsResponseDto
|
|
751
|
+
*/
|
|
752
|
+
'pods': Array<PodDto>;
|
|
753
|
+
}
|
|
722
754
|
/**
|
|
723
755
|
*
|
|
724
756
|
* @export
|
|
@@ -1134,6 +1166,77 @@ export declare class LogsApi extends BaseAPI {
|
|
|
1134
1166
|
*/
|
|
1135
1167
|
handleServiceLogsRequest(organization: string, cluster: string, project: string, environment: string, service: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ServiceLogResponseDto, any>>;
|
|
1136
1168
|
}
|
|
1169
|
+
/**
|
|
1170
|
+
* ServiceListPodsApi - axios parameter creator
|
|
1171
|
+
* @export
|
|
1172
|
+
*/
|
|
1173
|
+
export declare const ServiceListPodsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
1174
|
+
/**
|
|
1175
|
+
*
|
|
1176
|
+
* @param {string} organization
|
|
1177
|
+
* @param {string} cluster
|
|
1178
|
+
* @param {string} project
|
|
1179
|
+
* @param {string} environment
|
|
1180
|
+
* @param {string} service
|
|
1181
|
+
* @param {*} [options] Override http request option.
|
|
1182
|
+
* @throws {RequiredError}
|
|
1183
|
+
*/
|
|
1184
|
+
handleServiceListPodsRequest: (organization: string, cluster: string, project: string, environment: string, service: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
1185
|
+
};
|
|
1186
|
+
/**
|
|
1187
|
+
* ServiceListPodsApi - functional programming interface
|
|
1188
|
+
* @export
|
|
1189
|
+
*/
|
|
1190
|
+
export declare const ServiceListPodsApiFp: (configuration?: Configuration) => {
|
|
1191
|
+
/**
|
|
1192
|
+
*
|
|
1193
|
+
* @param {string} organization
|
|
1194
|
+
* @param {string} cluster
|
|
1195
|
+
* @param {string} project
|
|
1196
|
+
* @param {string} environment
|
|
1197
|
+
* @param {string} service
|
|
1198
|
+
* @param {*} [options] Override http request option.
|
|
1199
|
+
* @throws {RequiredError}
|
|
1200
|
+
*/
|
|
1201
|
+
handleServiceListPodsRequest(organization: string, cluster: string, project: string, environment: string, service: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceListPodsResponseDto>>;
|
|
1202
|
+
};
|
|
1203
|
+
/**
|
|
1204
|
+
* ServiceListPodsApi - factory interface
|
|
1205
|
+
* @export
|
|
1206
|
+
*/
|
|
1207
|
+
export declare const ServiceListPodsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
1208
|
+
/**
|
|
1209
|
+
*
|
|
1210
|
+
* @param {string} organization
|
|
1211
|
+
* @param {string} cluster
|
|
1212
|
+
* @param {string} project
|
|
1213
|
+
* @param {string} environment
|
|
1214
|
+
* @param {string} service
|
|
1215
|
+
* @param {*} [options] Override http request option.
|
|
1216
|
+
* @throws {RequiredError}
|
|
1217
|
+
*/
|
|
1218
|
+
handleServiceListPodsRequest(organization: string, cluster: string, project: string, environment: string, service: string, options?: any): AxiosPromise<ServiceListPodsResponseDto>;
|
|
1219
|
+
};
|
|
1220
|
+
/**
|
|
1221
|
+
* ServiceListPodsApi - object-oriented interface
|
|
1222
|
+
* @export
|
|
1223
|
+
* @class ServiceListPodsApi
|
|
1224
|
+
* @extends {BaseAPI}
|
|
1225
|
+
*/
|
|
1226
|
+
export declare class ServiceListPodsApi extends BaseAPI {
|
|
1227
|
+
/**
|
|
1228
|
+
*
|
|
1229
|
+
* @param {string} organization
|
|
1230
|
+
* @param {string} cluster
|
|
1231
|
+
* @param {string} project
|
|
1232
|
+
* @param {string} environment
|
|
1233
|
+
* @param {string} service
|
|
1234
|
+
* @param {*} [options] Override http request option.
|
|
1235
|
+
* @throws {RequiredError}
|
|
1236
|
+
* @memberof ServiceListPodsApi
|
|
1237
|
+
*/
|
|
1238
|
+
handleServiceListPodsRequest(organization: string, cluster: string, project: string, environment: string, service: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ServiceListPodsResponseDto, any>>;
|
|
1239
|
+
}
|
|
1137
1240
|
/**
|
|
1138
1241
|
* ServiceMetricsApi - axios parameter creator
|
|
1139
1242
|
* @export
|
package/dist/esm/api.js
CHANGED
|
@@ -595,6 +595,127 @@ export class LogsApi extends BaseAPI {
|
|
|
595
595
|
return LogsApiFp(this.configuration).handleServiceLogsRequest(organization, cluster, project, environment, service, options).then((request) => request(this.axios, this.basePath));
|
|
596
596
|
}
|
|
597
597
|
}
|
|
598
|
+
/**
|
|
599
|
+
* ServiceListPodsApi - axios parameter creator
|
|
600
|
+
* @export
|
|
601
|
+
*/
|
|
602
|
+
export const ServiceListPodsApiAxiosParamCreator = function (configuration) {
|
|
603
|
+
return {
|
|
604
|
+
/**
|
|
605
|
+
*
|
|
606
|
+
* @param {string} organization
|
|
607
|
+
* @param {string} cluster
|
|
608
|
+
* @param {string} project
|
|
609
|
+
* @param {string} environment
|
|
610
|
+
* @param {string} service
|
|
611
|
+
* @param {*} [options] Override http request option.
|
|
612
|
+
* @throws {RequiredError}
|
|
613
|
+
*/
|
|
614
|
+
handleServiceListPodsRequest: (organization, cluster, project, environment, service, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
615
|
+
// verify required parameter 'organization' is not null or undefined
|
|
616
|
+
assertParamExists('handleServiceListPodsRequest', 'organization', organization);
|
|
617
|
+
// verify required parameter 'cluster' is not null or undefined
|
|
618
|
+
assertParamExists('handleServiceListPodsRequest', 'cluster', cluster);
|
|
619
|
+
// verify required parameter 'project' is not null or undefined
|
|
620
|
+
assertParamExists('handleServiceListPodsRequest', 'project', project);
|
|
621
|
+
// verify required parameter 'environment' is not null or undefined
|
|
622
|
+
assertParamExists('handleServiceListPodsRequest', 'environment', environment);
|
|
623
|
+
// verify required parameter 'service' is not null or undefined
|
|
624
|
+
assertParamExists('handleServiceListPodsRequest', 'service', service);
|
|
625
|
+
const localVarPath = `/service/pods`
|
|
626
|
+
.replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
|
|
627
|
+
.replace(`{${"cluster"}}`, encodeURIComponent(String(cluster)))
|
|
628
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)))
|
|
629
|
+
.replace(`{${"environment"}}`, encodeURIComponent(String(environment)))
|
|
630
|
+
.replace(`{${"service"}}`, encodeURIComponent(String(service)));
|
|
631
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
632
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
633
|
+
let baseOptions;
|
|
634
|
+
if (configuration) {
|
|
635
|
+
baseOptions = configuration.baseOptions;
|
|
636
|
+
}
|
|
637
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
638
|
+
const localVarHeaderParameter = {};
|
|
639
|
+
const localVarQueryParameter = {};
|
|
640
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
641
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
642
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
643
|
+
return {
|
|
644
|
+
url: toPathString(localVarUrlObj),
|
|
645
|
+
options: localVarRequestOptions,
|
|
646
|
+
};
|
|
647
|
+
}),
|
|
648
|
+
};
|
|
649
|
+
};
|
|
650
|
+
/**
|
|
651
|
+
* ServiceListPodsApi - functional programming interface
|
|
652
|
+
* @export
|
|
653
|
+
*/
|
|
654
|
+
export const ServiceListPodsApiFp = function (configuration) {
|
|
655
|
+
const localVarAxiosParamCreator = ServiceListPodsApiAxiosParamCreator(configuration);
|
|
656
|
+
return {
|
|
657
|
+
/**
|
|
658
|
+
*
|
|
659
|
+
* @param {string} organization
|
|
660
|
+
* @param {string} cluster
|
|
661
|
+
* @param {string} project
|
|
662
|
+
* @param {string} environment
|
|
663
|
+
* @param {string} service
|
|
664
|
+
* @param {*} [options] Override http request option.
|
|
665
|
+
* @throws {RequiredError}
|
|
666
|
+
*/
|
|
667
|
+
handleServiceListPodsRequest(organization, cluster, project, environment, service, options) {
|
|
668
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
669
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.handleServiceListPodsRequest(organization, cluster, project, environment, service, options);
|
|
670
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
671
|
+
});
|
|
672
|
+
},
|
|
673
|
+
};
|
|
674
|
+
};
|
|
675
|
+
/**
|
|
676
|
+
* ServiceListPodsApi - factory interface
|
|
677
|
+
* @export
|
|
678
|
+
*/
|
|
679
|
+
export const ServiceListPodsApiFactory = function (configuration, basePath, axios) {
|
|
680
|
+
const localVarFp = ServiceListPodsApiFp(configuration);
|
|
681
|
+
return {
|
|
682
|
+
/**
|
|
683
|
+
*
|
|
684
|
+
* @param {string} organization
|
|
685
|
+
* @param {string} cluster
|
|
686
|
+
* @param {string} project
|
|
687
|
+
* @param {string} environment
|
|
688
|
+
* @param {string} service
|
|
689
|
+
* @param {*} [options] Override http request option.
|
|
690
|
+
* @throws {RequiredError}
|
|
691
|
+
*/
|
|
692
|
+
handleServiceListPodsRequest(organization, cluster, project, environment, service, options) {
|
|
693
|
+
return localVarFp.handleServiceListPodsRequest(organization, cluster, project, environment, service, options).then((request) => request(axios, basePath));
|
|
694
|
+
},
|
|
695
|
+
};
|
|
696
|
+
};
|
|
697
|
+
/**
|
|
698
|
+
* ServiceListPodsApi - object-oriented interface
|
|
699
|
+
* @export
|
|
700
|
+
* @class ServiceListPodsApi
|
|
701
|
+
* @extends {BaseAPI}
|
|
702
|
+
*/
|
|
703
|
+
export class ServiceListPodsApi extends BaseAPI {
|
|
704
|
+
/**
|
|
705
|
+
*
|
|
706
|
+
* @param {string} organization
|
|
707
|
+
* @param {string} cluster
|
|
708
|
+
* @param {string} project
|
|
709
|
+
* @param {string} environment
|
|
710
|
+
* @param {string} service
|
|
711
|
+
* @param {*} [options] Override http request option.
|
|
712
|
+
* @throws {RequiredError}
|
|
713
|
+
* @memberof ServiceListPodsApi
|
|
714
|
+
*/
|
|
715
|
+
handleServiceListPodsRequest(organization, cluster, project, environment, service, options) {
|
|
716
|
+
return ServiceListPodsApiFp(this.configuration).handleServiceListPodsRequest(organization, cluster, project, environment, service, options).then((request) => request(this.axios, this.basePath));
|
|
717
|
+
}
|
|
718
|
+
}
|
|
598
719
|
/**
|
|
599
720
|
* ServiceMetricsApi - axios parameter creator
|
|
600
721
|
* @export
|