kb-cloud-client-typescript 2.3.0-alpha.118 → 2.3.0-alpha.119
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/dist/adminapi/apis/cluster-api.d.ts +72 -0
- package/dist/adminapi/apis/cluster-api.d.ts.map +1 -1
- package/dist/adminapi/apis/cluster-api.js +79 -0
- package/dist/adminapi/apis/cluster-api.js.map +1 -1
- package/dist/adminapi/apis/diagnostics-api.d.ts +5 -5
- package/dist/adminapi/apis/diagnostics-api.js +4 -4
- package/dist/adminapi/apis/shared-api.d.ts +72 -0
- package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
- package/dist/adminapi/apis/shared-api.js +79 -0
- package/dist/adminapi/apis/shared-api.js.map +1 -1
- package/dist/adminapi/models/cluster-storage-usage-history-point.d.ts +43 -0
- package/dist/adminapi/models/cluster-storage-usage-history-point.d.ts.map +1 -0
- package/dist/adminapi/models/{postgresql-space-pvc.js → cluster-storage-usage-history-point.js} +1 -1
- package/dist/adminapi/models/cluster-storage-usage-history-point.js.map +1 -0
- package/dist/adminapi/models/cluster-storage-usage-history.d.ts +56 -0
- package/dist/adminapi/models/cluster-storage-usage-history.d.ts.map +1 -0
- package/dist/adminapi/models/{postgresql-space-cannot-prove.js → cluster-storage-usage-history.js} +1 -1
- package/dist/adminapi/models/cluster-storage-usage-history.js.map +1 -0
- package/dist/adminapi/models/index.d.ts +3 -3
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +3 -3
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/postgresql-database-space.d.ts +0 -12
- package/dist/adminapi/models/postgresql-database-space.d.ts.map +1 -1
- package/dist/adminapi/models/postgresql-index-space.d.ts +0 -12
- package/dist/adminapi/models/postgresql-index-space.d.ts.map +1 -1
- package/dist/adminapi/models/postgresql-space-analysis.d.ts +3 -17
- package/dist/adminapi/models/postgresql-space-analysis.d.ts.map +1 -1
- package/dist/adminapi/models/postgresql-space-summary.d.ts +0 -12
- package/dist/adminapi/models/postgresql-space-summary.d.ts.map +1 -1
- package/dist/adminapi/models/postgresql-storage-overview.d.ts +55 -0
- package/dist/adminapi/models/postgresql-storage-overview.d.ts.map +1 -0
- package/dist/adminapi/models/{postgresql-space-risk-hint.js → postgresql-storage-overview.js} +1 -1
- package/dist/adminapi/models/postgresql-storage-overview.js.map +1 -0
- package/dist/adminapi/models/postgresql-table-space.d.ts +0 -12
- package/dist/adminapi/models/postgresql-table-space.d.ts.map +1 -1
- package/dist/adminapi/models/postgresql-toast-relation-space.d.ts +0 -12
- package/dist/adminapi/models/postgresql-toast-relation-space.d.ts.map +1 -1
- package/dist/openapi/apis/cluster-api.d.ts +72 -0
- package/dist/openapi/apis/cluster-api.d.ts.map +1 -1
- package/dist/openapi/apis/cluster-api.js +79 -0
- package/dist/openapi/apis/cluster-api.js.map +1 -1
- package/dist/openapi/apis/diagnostics-api.d.ts +5 -5
- package/dist/openapi/apis/diagnostics-api.js +4 -4
- package/dist/openapi/apis/shared-api.d.ts +72 -0
- package/dist/openapi/apis/shared-api.d.ts.map +1 -1
- package/dist/openapi/apis/shared-api.js +79 -0
- package/dist/openapi/apis/shared-api.js.map +1 -1
- package/dist/openapi/models/{postgresql-space-pvc.d.ts → cluster-storage-usage-history-point.d.ts} +16 -16
- package/dist/openapi/models/cluster-storage-usage-history-point.d.ts.map +1 -0
- package/dist/openapi/models/{postgresql-space-cannot-prove.js → cluster-storage-usage-history-point.js} +1 -1
- package/dist/openapi/models/cluster-storage-usage-history-point.js.map +1 -0
- package/dist/openapi/models/{postgresql-space-risk-hint.d.ts → cluster-storage-usage-history.d.ts} +23 -28
- package/dist/openapi/models/cluster-storage-usage-history.d.ts.map +1 -0
- package/dist/openapi/models/{postgresql-space-pvc.js → cluster-storage-usage-history.js} +1 -1
- package/dist/openapi/models/cluster-storage-usage-history.js.map +1 -0
- package/dist/openapi/models/index.d.ts +3 -3
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +3 -3
- package/dist/openapi/models/index.js.map +1 -1
- package/dist/openapi/models/postgresql-database-space.d.ts +0 -12
- package/dist/openapi/models/postgresql-database-space.d.ts.map +1 -1
- package/dist/openapi/models/postgresql-index-space.d.ts +0 -12
- package/dist/openapi/models/postgresql-index-space.d.ts.map +1 -1
- package/dist/openapi/models/postgresql-space-analysis.d.ts +3 -17
- package/dist/openapi/models/postgresql-space-analysis.d.ts.map +1 -1
- package/dist/openapi/models/postgresql-space-summary.d.ts +0 -12
- package/dist/openapi/models/postgresql-space-summary.d.ts.map +1 -1
- package/dist/openapi/models/postgresql-storage-overview.d.ts +55 -0
- package/dist/openapi/models/postgresql-storage-overview.d.ts.map +1 -0
- package/dist/openapi/models/{postgresql-space-risk-hint.js → postgresql-storage-overview.js} +1 -1
- package/dist/openapi/models/postgresql-storage-overview.js.map +1 -0
- package/dist/openapi/models/postgresql-table-space.d.ts +0 -12
- package/dist/openapi/models/postgresql-table-space.d.ts.map +1 -1
- package/dist/openapi/models/postgresql-toast-relation-space.d.ts +0 -12
- package/dist/openapi/models/postgresql-toast-relation-space.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +3 -3
- package/src/adminapi/apis/cluster-api.ts +127 -0
- package/src/adminapi/apis/diagnostics-api.ts +5 -5
- package/src/adminapi/apis/shared-api.ts +127 -0
- package/src/adminapi/models/{postgresql-space-pvc.ts → cluster-storage-usage-history-point.ts} +15 -15
- package/src/adminapi/models/cluster-storage-usage-history.ts +63 -0
- package/src/adminapi/models/index.ts +3 -3
- package/src/adminapi/models/postgresql-database-space.ts +0 -12
- package/src/adminapi/models/postgresql-index-space.ts +0 -12
- package/src/adminapi/models/postgresql-space-analysis.ts +5 -23
- package/src/adminapi/models/postgresql-space-summary.ts +0 -12
- package/src/adminapi/models/postgresql-storage-overview.ts +60 -0
- package/src/adminapi/models/postgresql-table-space.ts +0 -12
- package/src/adminapi/models/postgresql-toast-relation-space.ts +0 -12
- package/src/adminapi.yaml +112 -94
- package/src/openapi/.openapi-generator/FILES +3 -3
- package/src/openapi/apis/cluster-api.ts +127 -0
- package/src/openapi/apis/diagnostics-api.ts +5 -5
- package/src/openapi/apis/shared-api.ts +127 -0
- package/src/openapi/models/{postgresql-space-pvc.ts → cluster-storage-usage-history-point.ts} +15 -15
- package/src/openapi/models/cluster-storage-usage-history.ts +63 -0
- package/src/openapi/models/index.ts +3 -3
- package/src/openapi/models/postgresql-database-space.ts +0 -12
- package/src/openapi/models/postgresql-index-space.ts +0 -12
- package/src/openapi/models/postgresql-space-analysis.ts +5 -23
- package/src/openapi/models/postgresql-space-summary.ts +0 -12
- package/src/openapi/models/{postgresql-space-risk-hint.ts → postgresql-storage-overview.ts} +23 -29
- package/src/openapi/models/postgresql-table-space.ts +0 -12
- package/src/openapi/models/postgresql-toast-relation-space.ts +0 -12
- package/src/openapi.yaml +112 -94
- package/dist/adminapi/models/postgresql-space-cannot-prove.d.ts +0 -43
- package/dist/adminapi/models/postgresql-space-cannot-prove.d.ts.map +0 -1
- package/dist/adminapi/models/postgresql-space-cannot-prove.js.map +0 -1
- package/dist/adminapi/models/postgresql-space-pvc.d.ts +0 -43
- package/dist/adminapi/models/postgresql-space-pvc.d.ts.map +0 -1
- package/dist/adminapi/models/postgresql-space-pvc.js.map +0 -1
- package/dist/adminapi/models/postgresql-space-risk-hint.d.ts +0 -61
- package/dist/adminapi/models/postgresql-space-risk-hint.d.ts.map +0 -1
- package/dist/adminapi/models/postgresql-space-risk-hint.js.map +0 -1
- package/dist/openapi/models/postgresql-space-cannot-prove.d.ts +0 -43
- package/dist/openapi/models/postgresql-space-cannot-prove.d.ts.map +0 -1
- package/dist/openapi/models/postgresql-space-cannot-prove.js.map +0 -1
- package/dist/openapi/models/postgresql-space-pvc.d.ts.map +0 -1
- package/dist/openapi/models/postgresql-space-pvc.js.map +0 -1
- package/dist/openapi/models/postgresql-space-risk-hint.d.ts.map +0 -1
- package/dist/openapi/models/postgresql-space-risk-hint.js.map +0 -1
- package/src/adminapi/models/postgresql-space-cannot-prove.ts +0 -48
- package/src/adminapi/models/postgresql-space-risk-hint.ts +0 -66
- package/src/openapi/models/postgresql-space-cannot-prove.ts +0 -48
|
@@ -3560,6 +3560,48 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
3560
3560
|
options: localVarRequestOptions,
|
|
3561
3561
|
};
|
|
3562
3562
|
},
|
|
3563
|
+
/**
|
|
3564
|
+
* Get cluster storage usage history from backend-owned fixed metrics.
|
|
3565
|
+
* @summary Get cluster storage usage history
|
|
3566
|
+
* @param {string} orgName name of the Org
|
|
3567
|
+
* @param {string} clusterName name of the cluster
|
|
3568
|
+
* @param {string} [timeRange] Requested history range. Supported values are 24h and 7d. Defaults to 24h.
|
|
3569
|
+
* @param {*} [options] Override http request option.
|
|
3570
|
+
* @throws {RequiredError}
|
|
3571
|
+
*/
|
|
3572
|
+
getClusterStorageUsageHistory: async (orgName, clusterName, timeRange, options = {}) => {
|
|
3573
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
3574
|
+
(0, common_1.assertParamExists)('getClusterStorageUsageHistory', 'orgName', orgName);
|
|
3575
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
3576
|
+
(0, common_1.assertParamExists)('getClusterStorageUsageHistory', 'clusterName', clusterName);
|
|
3577
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/storageUsageHistory`
|
|
3578
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
3579
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
3580
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3581
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3582
|
+
let baseOptions;
|
|
3583
|
+
if (configuration) {
|
|
3584
|
+
baseOptions = configuration.baseOptions;
|
|
3585
|
+
}
|
|
3586
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3587
|
+
const localVarHeaderParameter = {};
|
|
3588
|
+
const localVarQueryParameter = {};
|
|
3589
|
+
// authentication BearerToken required
|
|
3590
|
+
// http bearer authentication required
|
|
3591
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3592
|
+
// authentication DigestAuth required
|
|
3593
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
3594
|
+
if (timeRange !== undefined) {
|
|
3595
|
+
localVarQueryParameter['timeRange'] = timeRange;
|
|
3596
|
+
}
|
|
3597
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3598
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3599
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3600
|
+
return {
|
|
3601
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3602
|
+
options: localVarRequestOptions,
|
|
3603
|
+
};
|
|
3604
|
+
},
|
|
3563
3605
|
/**
|
|
3564
3606
|
*
|
|
3565
3607
|
* @summary get the datasource
|
|
@@ -12358,6 +12400,22 @@ const SharedApiFp = function (configuration) {
|
|
|
12358
12400
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.getClusterParameterTemplate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12359
12401
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12360
12402
|
},
|
|
12403
|
+
/**
|
|
12404
|
+
* Get cluster storage usage history from backend-owned fixed metrics.
|
|
12405
|
+
* @summary Get cluster storage usage history
|
|
12406
|
+
* @param {string} orgName name of the Org
|
|
12407
|
+
* @param {string} clusterName name of the cluster
|
|
12408
|
+
* @param {string} [timeRange] Requested history range. Supported values are 24h and 7d. Defaults to 24h.
|
|
12409
|
+
* @param {*} [options] Override http request option.
|
|
12410
|
+
* @throws {RequiredError}
|
|
12411
|
+
*/
|
|
12412
|
+
async getClusterStorageUsageHistory(orgName, clusterName, timeRange, options) {
|
|
12413
|
+
var _a, _b, _c;
|
|
12414
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterStorageUsageHistory(orgName, clusterName, timeRange, options);
|
|
12415
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12416
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.getClusterStorageUsageHistory']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12417
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12418
|
+
},
|
|
12361
12419
|
/**
|
|
12362
12420
|
*
|
|
12363
12421
|
* @summary get the datasource
|
|
@@ -15884,6 +15942,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
15884
15942
|
getClusterParameterTemplate(requestParameters, options) {
|
|
15885
15943
|
return localVarFp.getClusterParameterTemplate(requestParameters.orgName, requestParameters.clusterName, requestParameters.component, requestParameters.engineName, options).then((request) => request(axios, basePath));
|
|
15886
15944
|
},
|
|
15945
|
+
/**
|
|
15946
|
+
* Get cluster storage usage history from backend-owned fixed metrics.
|
|
15947
|
+
* @summary Get cluster storage usage history
|
|
15948
|
+
* @param {SharedApiGetClusterStorageUsageHistoryRequest} requestParameters Request parameters.
|
|
15949
|
+
* @param {*} [options] Override http request option.
|
|
15950
|
+
* @throws {RequiredError}
|
|
15951
|
+
*/
|
|
15952
|
+
getClusterStorageUsageHistory(requestParameters, options) {
|
|
15953
|
+
return localVarFp.getClusterStorageUsageHistory(requestParameters.orgName, requestParameters.clusterName, requestParameters.timeRange, options).then((request) => request(axios, basePath));
|
|
15954
|
+
},
|
|
15887
15955
|
/**
|
|
15888
15956
|
*
|
|
15889
15957
|
* @summary get the datasource
|
|
@@ -18367,6 +18435,17 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
18367
18435
|
getClusterParameterTemplate(requestParameters, options) {
|
|
18368
18436
|
return (0, exports.SharedApiFp)(this.configuration).getClusterParameterTemplate(requestParameters.orgName, requestParameters.clusterName, requestParameters.component, requestParameters.engineName, options).then((request) => request(this.axios, this.basePath));
|
|
18369
18437
|
}
|
|
18438
|
+
/**
|
|
18439
|
+
* Get cluster storage usage history from backend-owned fixed metrics.
|
|
18440
|
+
* @summary Get cluster storage usage history
|
|
18441
|
+
* @param {SharedApiGetClusterStorageUsageHistoryRequest} requestParameters Request parameters.
|
|
18442
|
+
* @param {*} [options] Override http request option.
|
|
18443
|
+
* @throws {RequiredError}
|
|
18444
|
+
* @memberof SharedApi
|
|
18445
|
+
*/
|
|
18446
|
+
getClusterStorageUsageHistory(requestParameters, options) {
|
|
18447
|
+
return (0, exports.SharedApiFp)(this.configuration).getClusterStorageUsageHistory(requestParameters.orgName, requestParameters.clusterName, requestParameters.timeRange, options).then((request) => request(this.axios, this.basePath));
|
|
18448
|
+
}
|
|
18370
18449
|
/**
|
|
18371
18450
|
*
|
|
18372
18451
|
* @summary get the datasource
|