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
|
@@ -3979,6 +3979,48 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
3979
3979
|
options: localVarRequestOptions,
|
|
3980
3980
|
};
|
|
3981
3981
|
},
|
|
3982
|
+
/**
|
|
3983
|
+
* Get cluster storage usage history from backend-owned fixed metrics.
|
|
3984
|
+
* @summary Get cluster storage usage history
|
|
3985
|
+
* @param {string} orgName name of the Org
|
|
3986
|
+
* @param {string} clusterName name of the cluster
|
|
3987
|
+
* @param {string} [timeRange] Requested history range. Supported values are 24h and 7d. Defaults to 24h.
|
|
3988
|
+
* @param {*} [options] Override http request option.
|
|
3989
|
+
* @throws {RequiredError}
|
|
3990
|
+
*/
|
|
3991
|
+
getClusterStorageUsageHistory: async (orgName, clusterName, timeRange, options = {}) => {
|
|
3992
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
3993
|
+
(0, common_1.assertParamExists)('getClusterStorageUsageHistory', 'orgName', orgName);
|
|
3994
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
3995
|
+
(0, common_1.assertParamExists)('getClusterStorageUsageHistory', 'clusterName', clusterName);
|
|
3996
|
+
const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/storageUsageHistory`
|
|
3997
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
3998
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
3999
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4000
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4001
|
+
let baseOptions;
|
|
4002
|
+
if (configuration) {
|
|
4003
|
+
baseOptions = configuration.baseOptions;
|
|
4004
|
+
}
|
|
4005
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4006
|
+
const localVarHeaderParameter = {};
|
|
4007
|
+
const localVarQueryParameter = {};
|
|
4008
|
+
// authentication BearerToken required
|
|
4009
|
+
// http bearer authentication required
|
|
4010
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4011
|
+
// authentication DigestAuth required
|
|
4012
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
4013
|
+
if (timeRange !== undefined) {
|
|
4014
|
+
localVarQueryParameter['timeRange'] = timeRange;
|
|
4015
|
+
}
|
|
4016
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4017
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4018
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4019
|
+
return {
|
|
4020
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4021
|
+
options: localVarRequestOptions,
|
|
4022
|
+
};
|
|
4023
|
+
},
|
|
3982
4024
|
/**
|
|
3983
4025
|
*
|
|
3984
4026
|
* @summary get the datasource
|
|
@@ -12967,6 +13009,22 @@ const SharedApiFp = function (configuration) {
|
|
|
12967
13009
|
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;
|
|
12968
13010
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12969
13011
|
},
|
|
13012
|
+
/**
|
|
13013
|
+
* Get cluster storage usage history from backend-owned fixed metrics.
|
|
13014
|
+
* @summary Get cluster storage usage history
|
|
13015
|
+
* @param {string} orgName name of the Org
|
|
13016
|
+
* @param {string} clusterName name of the cluster
|
|
13017
|
+
* @param {string} [timeRange] Requested history range. Supported values are 24h and 7d. Defaults to 24h.
|
|
13018
|
+
* @param {*} [options] Override http request option.
|
|
13019
|
+
* @throws {RequiredError}
|
|
13020
|
+
*/
|
|
13021
|
+
async getClusterStorageUsageHistory(orgName, clusterName, timeRange, options) {
|
|
13022
|
+
var _a, _b, _c;
|
|
13023
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterStorageUsageHistory(orgName, clusterName, timeRange, options);
|
|
13024
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13025
|
+
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;
|
|
13026
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13027
|
+
},
|
|
12970
13028
|
/**
|
|
12971
13029
|
*
|
|
12972
13030
|
* @summary get the datasource
|
|
@@ -16574,6 +16632,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
16574
16632
|
getClusterParameterTemplate(requestParameters, options) {
|
|
16575
16633
|
return localVarFp.getClusterParameterTemplate(requestParameters.orgName, requestParameters.clusterName, requestParameters.component, requestParameters.engineName, options).then((request) => request(axios, basePath));
|
|
16576
16634
|
},
|
|
16635
|
+
/**
|
|
16636
|
+
* Get cluster storage usage history from backend-owned fixed metrics.
|
|
16637
|
+
* @summary Get cluster storage usage history
|
|
16638
|
+
* @param {SharedApiGetClusterStorageUsageHistoryRequest} requestParameters Request parameters.
|
|
16639
|
+
* @param {*} [options] Override http request option.
|
|
16640
|
+
* @throws {RequiredError}
|
|
16641
|
+
*/
|
|
16642
|
+
getClusterStorageUsageHistory(requestParameters, options) {
|
|
16643
|
+
return localVarFp.getClusterStorageUsageHistory(requestParameters.orgName, requestParameters.clusterName, requestParameters.timeRange, options).then((request) => request(axios, basePath));
|
|
16644
|
+
},
|
|
16577
16645
|
/**
|
|
16578
16646
|
*
|
|
16579
16647
|
* @summary get the datasource
|
|
@@ -19136,6 +19204,17 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
19136
19204
|
getClusterParameterTemplate(requestParameters, options) {
|
|
19137
19205
|
return (0, exports.SharedApiFp)(this.configuration).getClusterParameterTemplate(requestParameters.orgName, requestParameters.clusterName, requestParameters.component, requestParameters.engineName, options).then((request) => request(this.axios, this.basePath));
|
|
19138
19206
|
}
|
|
19207
|
+
/**
|
|
19208
|
+
* Get cluster storage usage history from backend-owned fixed metrics.
|
|
19209
|
+
* @summary Get cluster storage usage history
|
|
19210
|
+
* @param {SharedApiGetClusterStorageUsageHistoryRequest} requestParameters Request parameters.
|
|
19211
|
+
* @param {*} [options] Override http request option.
|
|
19212
|
+
* @throws {RequiredError}
|
|
19213
|
+
* @memberof SharedApi
|
|
19214
|
+
*/
|
|
19215
|
+
getClusterStorageUsageHistory(requestParameters, options) {
|
|
19216
|
+
return (0, exports.SharedApiFp)(this.configuration).getClusterStorageUsageHistory(requestParameters.orgName, requestParameters.clusterName, requestParameters.timeRange, options).then((request) => request(this.axios, this.basePath));
|
|
19217
|
+
}
|
|
19139
19218
|
/**
|
|
19140
19219
|
*
|
|
19141
19220
|
* @summary get the datasource
|