kb-cloud-client-typescript 2.3.0-alpha.97 → 2.3.0-alpha.99
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 +18 -2
- package/dist/adminapi/apis/cluster-api.d.ts.map +1 -1
- package/dist/adminapi/apis/cluster-api.js +15 -5
- package/dist/adminapi/apis/cluster-api.js.map +1 -1
- package/dist/adminapi/apis/cluster-log-api.d.ts +114 -2
- package/dist/adminapi/apis/cluster-log-api.d.ts.map +1 -1
- package/dist/adminapi/apis/cluster-log-api.js +75 -5
- package/dist/adminapi/apis/cluster-log-api.js.map +1 -1
- package/dist/adminapi/apis/shared-api.d.ts +132 -4
- package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
- package/dist/adminapi/apis/shared-api.js +90 -10
- package/dist/adminapi/apis/shared-api.js.map +1 -1
- package/dist/adminapi/models/database-parameter-item.d.ts +6 -0
- package/dist/adminapi/models/database-parameter-item.d.ts.map +1 -1
- package/dist/adminapi/models/database-parameter-list-item.d.ts +6 -0
- package/dist/adminapi/models/database-parameter-list-item.d.ts.map +1 -1
- package/dist/adminapi/models/storage-create.d.ts +0 -6
- package/dist/adminapi/models/storage-create.d.ts.map +1 -1
- package/dist/adminapi/models/storage-update.d.ts +0 -6
- package/dist/adminapi/models/storage-update.d.ts.map +1 -1
- package/dist/adminapi/models/storage.d.ts +0 -6
- package/dist/adminapi/models/storage.d.ts.map +1 -1
- package/dist/internalapi/models/storage-create.d.ts +0 -6
- package/dist/internalapi/models/storage-create.d.ts.map +1 -1
- package/dist/internalapi/models/storage.d.ts +0 -6
- package/dist/internalapi/models/storage.d.ts.map +1 -1
- package/dist/openapi/apis/cluster-api.d.ts +18 -2
- package/dist/openapi/apis/cluster-api.d.ts.map +1 -1
- package/dist/openapi/apis/cluster-api.js +15 -5
- package/dist/openapi/apis/cluster-api.js.map +1 -1
- package/dist/openapi/apis/cluster-log-api.d.ts +114 -2
- package/dist/openapi/apis/cluster-log-api.d.ts.map +1 -1
- package/dist/openapi/apis/cluster-log-api.js +75 -5
- package/dist/openapi/apis/cluster-log-api.js.map +1 -1
- package/dist/openapi/apis/shared-api.d.ts +132 -4
- package/dist/openapi/apis/shared-api.d.ts.map +1 -1
- package/dist/openapi/apis/shared-api.js +90 -10
- package/dist/openapi/apis/shared-api.js.map +1 -1
- package/dist/openapi/models/storage.d.ts +0 -6
- package/dist/openapi/models/storage.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/adminapi/apis/cluster-api.ts +31 -5
- package/src/adminapi/apis/cluster-log-api.ts +187 -5
- package/src/adminapi/apis/shared-api.ts +218 -10
- package/src/adminapi/models/database-parameter-item.ts +6 -0
- package/src/adminapi/models/database-parameter-list-item.ts +6 -0
- package/src/adminapi/models/storage-create.ts +0 -6
- package/src/adminapi/models/storage-update.ts +0 -6
- package/src/adminapi/models/storage.ts +0 -6
- package/src/adminapi.yaml +88 -12
- package/src/internalapi/models/storage-create.ts +0 -6
- package/src/internalapi/models/storage.ts +0 -6
- package/src/internalapi.yaml +0 -8
- package/src/openapi/apis/cluster-api.ts +31 -5
- package/src/openapi/apis/cluster-log-api.ts +187 -5
- package/src/openapi/apis/shared-api.ts +218 -10
- package/src/openapi/models/storage.ts +0 -6
- package/src/openapi.yaml +80 -4
|
@@ -3004,10 +3004,12 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
3004
3004
|
* @summary Get cluster details by ID
|
|
3005
3005
|
* @param {string} orgName name of the Org
|
|
3006
3006
|
* @param {string} clusterID ID of the KubeBlocks cluster
|
|
3007
|
+
* @param {string} [backupName] Backup name to override cluster components from its snapshot
|
|
3008
|
+
* @param {string} [restoreTime] Restore time to find latest continuous backup snapshot after this time
|
|
3007
3009
|
* @param {*} [options] Override http request option.
|
|
3008
3010
|
* @throws {RequiredError}
|
|
3009
3011
|
*/
|
|
3010
|
-
getClusterByID: async (orgName, clusterID, options = {}) => {
|
|
3012
|
+
getClusterByID: async (orgName, clusterID, backupName, restoreTime, options = {}) => {
|
|
3011
3013
|
// verify required parameter 'orgName' is not null or undefined
|
|
3012
3014
|
(0, common_1.assertParamExists)('getClusterByID', 'orgName', orgName);
|
|
3013
3015
|
// verify required parameter 'clusterID' is not null or undefined
|
|
@@ -3026,6 +3028,12 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
3026
3028
|
const localVarQueryParameter = {};
|
|
3027
3029
|
// authentication BearerToken required
|
|
3028
3030
|
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "authorization", configuration);
|
|
3031
|
+
if (backupName !== undefined) {
|
|
3032
|
+
localVarQueryParameter['backupName'] = backupName;
|
|
3033
|
+
}
|
|
3034
|
+
if (restoreTime !== undefined) {
|
|
3035
|
+
localVarQueryParameter['restoreTime'] = restoreTime;
|
|
3036
|
+
}
|
|
3029
3037
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3030
3038
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3031
3039
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -7621,10 +7629,24 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
7621
7629
|
* @param {string} [componentName]
|
|
7622
7630
|
* @param {string} [instanceName]
|
|
7623
7631
|
* @param {string} [query]
|
|
7632
|
+
* @param {number} [minExecutionTime] Minimum slow log execution time in seconds. Only applies when logType=slow.
|
|
7633
|
+
* @param {number} [maxExecutionTime] Maximum slow log execution time in seconds. Only applies when logType=slow.
|
|
7634
|
+
* @param {number} [minLockTime] Minimum slow log lock time in seconds. Only applies when logType=slow.
|
|
7635
|
+
* @param {number} [maxLockTime] Maximum slow log lock time in seconds. Only applies when logType=slow.
|
|
7636
|
+
* @param {number} [minRowsExamined]
|
|
7637
|
+
* @param {number} [maxRowsExamined]
|
|
7638
|
+
* @param {number} [minRowsSent]
|
|
7639
|
+
* @param {number} [maxRowsSent]
|
|
7640
|
+
* @param {string} [dbName]
|
|
7641
|
+
* @param {string} [userName]
|
|
7642
|
+
* @param {string} [clientIp]
|
|
7643
|
+
* @param {string} [appName]
|
|
7644
|
+
* @param {string} [templateId]
|
|
7645
|
+
* @param {boolean} [unclassifiedOnly]
|
|
7624
7646
|
* @param {*} [options] Override http request option.
|
|
7625
7647
|
* @throws {RequiredError}
|
|
7626
7648
|
*/
|
|
7627
|
-
queryLogHits: async (orgName, clusterName, startTime, endTime, step, logType, componentName, instanceName, query, options = {}) => {
|
|
7649
|
+
queryLogHits: async (orgName, clusterName, startTime, endTime, step, logType, componentName, instanceName, query, minExecutionTime, maxExecutionTime, minLockTime, maxLockTime, minRowsExamined, maxRowsExamined, minRowsSent, maxRowsSent, dbName, userName, clientIp, appName, templateId, unclassifiedOnly, options = {}) => {
|
|
7628
7650
|
// verify required parameter 'orgName' is not null or undefined
|
|
7629
7651
|
(0, common_1.assertParamExists)('queryLogHits', 'orgName', orgName);
|
|
7630
7652
|
// verify required parameter 'clusterName' is not null or undefined
|
|
@@ -7672,6 +7694,48 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
7672
7694
|
if (query !== undefined) {
|
|
7673
7695
|
localVarQueryParameter['query'] = query;
|
|
7674
7696
|
}
|
|
7697
|
+
if (minExecutionTime !== undefined) {
|
|
7698
|
+
localVarQueryParameter['minExecutionTime'] = minExecutionTime;
|
|
7699
|
+
}
|
|
7700
|
+
if (maxExecutionTime !== undefined) {
|
|
7701
|
+
localVarQueryParameter['maxExecutionTime'] = maxExecutionTime;
|
|
7702
|
+
}
|
|
7703
|
+
if (minLockTime !== undefined) {
|
|
7704
|
+
localVarQueryParameter['minLockTime'] = minLockTime;
|
|
7705
|
+
}
|
|
7706
|
+
if (maxLockTime !== undefined) {
|
|
7707
|
+
localVarQueryParameter['maxLockTime'] = maxLockTime;
|
|
7708
|
+
}
|
|
7709
|
+
if (minRowsExamined !== undefined) {
|
|
7710
|
+
localVarQueryParameter['minRowsExamined'] = minRowsExamined;
|
|
7711
|
+
}
|
|
7712
|
+
if (maxRowsExamined !== undefined) {
|
|
7713
|
+
localVarQueryParameter['maxRowsExamined'] = maxRowsExamined;
|
|
7714
|
+
}
|
|
7715
|
+
if (minRowsSent !== undefined) {
|
|
7716
|
+
localVarQueryParameter['minRowsSent'] = minRowsSent;
|
|
7717
|
+
}
|
|
7718
|
+
if (maxRowsSent !== undefined) {
|
|
7719
|
+
localVarQueryParameter['maxRowsSent'] = maxRowsSent;
|
|
7720
|
+
}
|
|
7721
|
+
if (dbName !== undefined) {
|
|
7722
|
+
localVarQueryParameter['dbName'] = dbName;
|
|
7723
|
+
}
|
|
7724
|
+
if (userName !== undefined) {
|
|
7725
|
+
localVarQueryParameter['userName'] = userName;
|
|
7726
|
+
}
|
|
7727
|
+
if (clientIp !== undefined) {
|
|
7728
|
+
localVarQueryParameter['clientIp'] = clientIp;
|
|
7729
|
+
}
|
|
7730
|
+
if (appName !== undefined) {
|
|
7731
|
+
localVarQueryParameter['appName'] = appName;
|
|
7732
|
+
}
|
|
7733
|
+
if (templateId !== undefined) {
|
|
7734
|
+
localVarQueryParameter['templateId'] = templateId;
|
|
7735
|
+
}
|
|
7736
|
+
if (unclassifiedOnly !== undefined) {
|
|
7737
|
+
localVarQueryParameter['unclassifiedOnly'] = unclassifiedOnly;
|
|
7738
|
+
}
|
|
7675
7739
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7676
7740
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7677
7741
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -11165,12 +11229,14 @@ const SharedApiFp = function (configuration) {
|
|
|
11165
11229
|
* @summary Get cluster details by ID
|
|
11166
11230
|
* @param {string} orgName name of the Org
|
|
11167
11231
|
* @param {string} clusterID ID of the KubeBlocks cluster
|
|
11232
|
+
* @param {string} [backupName] Backup name to override cluster components from its snapshot
|
|
11233
|
+
* @param {string} [restoreTime] Restore time to find latest continuous backup snapshot after this time
|
|
11168
11234
|
* @param {*} [options] Override http request option.
|
|
11169
11235
|
* @throws {RequiredError}
|
|
11170
11236
|
*/
|
|
11171
|
-
async getClusterByID(orgName, clusterID, options) {
|
|
11237
|
+
async getClusterByID(orgName, clusterID, backupName, restoreTime, options) {
|
|
11172
11238
|
var _a, _b, _c;
|
|
11173
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterByID(orgName, clusterID, options);
|
|
11239
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterByID(orgName, clusterID, backupName, restoreTime, options);
|
|
11174
11240
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11175
11241
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.getClusterByID']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11176
11242
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -13007,12 +13073,26 @@ const SharedApiFp = function (configuration) {
|
|
|
13007
13073
|
* @param {string} [componentName]
|
|
13008
13074
|
* @param {string} [instanceName]
|
|
13009
13075
|
* @param {string} [query]
|
|
13076
|
+
* @param {number} [minExecutionTime] Minimum slow log execution time in seconds. Only applies when logType=slow.
|
|
13077
|
+
* @param {number} [maxExecutionTime] Maximum slow log execution time in seconds. Only applies when logType=slow.
|
|
13078
|
+
* @param {number} [minLockTime] Minimum slow log lock time in seconds. Only applies when logType=slow.
|
|
13079
|
+
* @param {number} [maxLockTime] Maximum slow log lock time in seconds. Only applies when logType=slow.
|
|
13080
|
+
* @param {number} [minRowsExamined]
|
|
13081
|
+
* @param {number} [maxRowsExamined]
|
|
13082
|
+
* @param {number} [minRowsSent]
|
|
13083
|
+
* @param {number} [maxRowsSent]
|
|
13084
|
+
* @param {string} [dbName]
|
|
13085
|
+
* @param {string} [userName]
|
|
13086
|
+
* @param {string} [clientIp]
|
|
13087
|
+
* @param {string} [appName]
|
|
13088
|
+
* @param {string} [templateId]
|
|
13089
|
+
* @param {boolean} [unclassifiedOnly]
|
|
13010
13090
|
* @param {*} [options] Override http request option.
|
|
13011
13091
|
* @throws {RequiredError}
|
|
13012
13092
|
*/
|
|
13013
|
-
async queryLogHits(orgName, clusterName, startTime, endTime, step, logType, componentName, instanceName, query, options) {
|
|
13093
|
+
async queryLogHits(orgName, clusterName, startTime, endTime, step, logType, componentName, instanceName, query, minExecutionTime, maxExecutionTime, minLockTime, maxLockTime, minRowsExamined, maxRowsExamined, minRowsSent, maxRowsSent, dbName, userName, clientIp, appName, templateId, unclassifiedOnly, options) {
|
|
13014
13094
|
var _a, _b, _c;
|
|
13015
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.queryLogHits(orgName, clusterName, startTime, endTime, step, logType, componentName, instanceName, query, options);
|
|
13095
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.queryLogHits(orgName, clusterName, startTime, endTime, step, logType, componentName, instanceName, query, minExecutionTime, maxExecutionTime, minLockTime, maxLockTime, minRowsExamined, maxRowsExamined, minRowsSent, maxRowsSent, dbName, userName, clientIp, appName, templateId, unclassifiedOnly, options);
|
|
13016
13096
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13017
13097
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.queryLogHits']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13018
13098
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -14648,7 +14728,7 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
14648
14728
|
* @throws {RequiredError}
|
|
14649
14729
|
*/
|
|
14650
14730
|
getClusterByID(requestParameters, options) {
|
|
14651
|
-
return localVarFp.getClusterByID(requestParameters.orgName, requestParameters.clusterID, options).then((request) => request(axios, basePath));
|
|
14731
|
+
return localVarFp.getClusterByID(requestParameters.orgName, requestParameters.clusterID, requestParameters.backupName, requestParameters.restoreTime, options).then((request) => request(axios, basePath));
|
|
14652
14732
|
},
|
|
14653
14733
|
/**
|
|
14654
14734
|
* read log of the specified cluster instance
|
|
@@ -15763,7 +15843,7 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
15763
15843
|
* @throws {RequiredError}
|
|
15764
15844
|
*/
|
|
15765
15845
|
queryLogHits(requestParameters, options) {
|
|
15766
|
-
return localVarFp.queryLogHits(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.step, requestParameters.logType, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, options).then((request) => request(axios, basePath));
|
|
15846
|
+
return localVarFp.queryLogHits(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.step, requestParameters.logType, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, requestParameters.minExecutionTime, requestParameters.maxExecutionTime, requestParameters.minLockTime, requestParameters.maxLockTime, requestParameters.minRowsExamined, requestParameters.maxRowsExamined, requestParameters.minRowsSent, requestParameters.maxRowsSent, requestParameters.dbName, requestParameters.userName, requestParameters.clientIp, requestParameters.appName, requestParameters.templateId, requestParameters.unclassifiedOnly, options).then((request) => request(axios, basePath));
|
|
15767
15847
|
},
|
|
15768
15848
|
/**
|
|
15769
15849
|
* Query pod logs of a cluster
|
|
@@ -17098,7 +17178,7 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
17098
17178
|
* @memberof SharedApi
|
|
17099
17179
|
*/
|
|
17100
17180
|
getClusterByID(requestParameters, options) {
|
|
17101
|
-
return (0, exports.SharedApiFp)(this.configuration).getClusterByID(requestParameters.orgName, requestParameters.clusterID, options).then((request) => request(this.axios, this.basePath));
|
|
17181
|
+
return (0, exports.SharedApiFp)(this.configuration).getClusterByID(requestParameters.orgName, requestParameters.clusterID, requestParameters.backupName, requestParameters.restoreTime, options).then((request) => request(this.axios, this.basePath));
|
|
17102
17182
|
}
|
|
17103
17183
|
/**
|
|
17104
17184
|
* read log of the specified cluster instance
|
|
@@ -18325,7 +18405,7 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
18325
18405
|
* @memberof SharedApi
|
|
18326
18406
|
*/
|
|
18327
18407
|
queryLogHits(requestParameters, options) {
|
|
18328
|
-
return (0, exports.SharedApiFp)(this.configuration).queryLogHits(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.step, requestParameters.logType, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, options).then((request) => request(this.axios, this.basePath));
|
|
18408
|
+
return (0, exports.SharedApiFp)(this.configuration).queryLogHits(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.step, requestParameters.logType, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, requestParameters.minExecutionTime, requestParameters.maxExecutionTime, requestParameters.minLockTime, requestParameters.maxLockTime, requestParameters.minRowsExamined, requestParameters.maxRowsExamined, requestParameters.minRowsSent, requestParameters.maxRowsSent, requestParameters.dbName, requestParameters.userName, requestParameters.clientIp, requestParameters.appName, requestParameters.templateId, requestParameters.unclassifiedOnly, options).then((request) => request(this.axios, this.basePath));
|
|
18329
18409
|
}
|
|
18330
18410
|
/**
|
|
18331
18411
|
* Query pod logs of a cluster
|