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
|
@@ -3421,10 +3421,12 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
3421
3421
|
* @summary Get cluster details by ID
|
|
3422
3422
|
* @param {string} orgName name of the Org
|
|
3423
3423
|
* @param {string} clusterID ID of the KubeBlocks cluster
|
|
3424
|
+
* @param {string} [backupName] Backup name to override cluster components from its snapshot
|
|
3425
|
+
* @param {string} [restoreTime] Restore time to find latest continuous backup snapshot after this time
|
|
3424
3426
|
* @param {*} [options] Override http request option.
|
|
3425
3427
|
* @throws {RequiredError}
|
|
3426
3428
|
*/
|
|
3427
|
-
getClusterByID: async (orgName, clusterID, options = {}) => {
|
|
3429
|
+
getClusterByID: async (orgName, clusterID, backupName, restoreTime, options = {}) => {
|
|
3428
3430
|
// verify required parameter 'orgName' is not null or undefined
|
|
3429
3431
|
(0, common_1.assertParamExists)('getClusterByID', 'orgName', orgName);
|
|
3430
3432
|
// verify required parameter 'clusterID' is not null or undefined
|
|
@@ -3443,6 +3445,12 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
3443
3445
|
const localVarQueryParameter = {};
|
|
3444
3446
|
// authentication BearerToken required
|
|
3445
3447
|
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "authorization", configuration);
|
|
3448
|
+
if (backupName !== undefined) {
|
|
3449
|
+
localVarQueryParameter['backupName'] = backupName;
|
|
3450
|
+
}
|
|
3451
|
+
if (restoreTime !== undefined) {
|
|
3452
|
+
localVarQueryParameter['restoreTime'] = restoreTime;
|
|
3453
|
+
}
|
|
3446
3454
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3447
3455
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3448
3456
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -7844,10 +7852,24 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
7844
7852
|
* @param {string} [componentName]
|
|
7845
7853
|
* @param {string} [instanceName]
|
|
7846
7854
|
* @param {string} [query]
|
|
7855
|
+
* @param {number} [minExecutionTime] Minimum slow log execution time in seconds. Only applies when logType=slow.
|
|
7856
|
+
* @param {number} [maxExecutionTime] Maximum slow log execution time in seconds. Only applies when logType=slow.
|
|
7857
|
+
* @param {number} [minLockTime] Minimum slow log lock time in seconds. Only applies when logType=slow.
|
|
7858
|
+
* @param {number} [maxLockTime] Maximum slow log lock time in seconds. Only applies when logType=slow.
|
|
7859
|
+
* @param {number} [minRowsExamined]
|
|
7860
|
+
* @param {number} [maxRowsExamined]
|
|
7861
|
+
* @param {number} [minRowsSent]
|
|
7862
|
+
* @param {number} [maxRowsSent]
|
|
7863
|
+
* @param {string} [dbName]
|
|
7864
|
+
* @param {string} [userName]
|
|
7865
|
+
* @param {string} [clientIp]
|
|
7866
|
+
* @param {string} [appName]
|
|
7867
|
+
* @param {string} [templateId]
|
|
7868
|
+
* @param {boolean} [unclassifiedOnly]
|
|
7847
7869
|
* @param {*} [options] Override http request option.
|
|
7848
7870
|
* @throws {RequiredError}
|
|
7849
7871
|
*/
|
|
7850
|
-
queryLogHits: async (orgName, clusterName, startTime, endTime, step, logType, componentName, instanceName, query, options = {}) => {
|
|
7872
|
+
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 = {}) => {
|
|
7851
7873
|
// verify required parameter 'orgName' is not null or undefined
|
|
7852
7874
|
(0, common_1.assertParamExists)('queryLogHits', 'orgName', orgName);
|
|
7853
7875
|
// verify required parameter 'clusterName' is not null or undefined
|
|
@@ -7895,6 +7917,48 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
7895
7917
|
if (query !== undefined) {
|
|
7896
7918
|
localVarQueryParameter['query'] = query;
|
|
7897
7919
|
}
|
|
7920
|
+
if (minExecutionTime !== undefined) {
|
|
7921
|
+
localVarQueryParameter['minExecutionTime'] = minExecutionTime;
|
|
7922
|
+
}
|
|
7923
|
+
if (maxExecutionTime !== undefined) {
|
|
7924
|
+
localVarQueryParameter['maxExecutionTime'] = maxExecutionTime;
|
|
7925
|
+
}
|
|
7926
|
+
if (minLockTime !== undefined) {
|
|
7927
|
+
localVarQueryParameter['minLockTime'] = minLockTime;
|
|
7928
|
+
}
|
|
7929
|
+
if (maxLockTime !== undefined) {
|
|
7930
|
+
localVarQueryParameter['maxLockTime'] = maxLockTime;
|
|
7931
|
+
}
|
|
7932
|
+
if (minRowsExamined !== undefined) {
|
|
7933
|
+
localVarQueryParameter['minRowsExamined'] = minRowsExamined;
|
|
7934
|
+
}
|
|
7935
|
+
if (maxRowsExamined !== undefined) {
|
|
7936
|
+
localVarQueryParameter['maxRowsExamined'] = maxRowsExamined;
|
|
7937
|
+
}
|
|
7938
|
+
if (minRowsSent !== undefined) {
|
|
7939
|
+
localVarQueryParameter['minRowsSent'] = minRowsSent;
|
|
7940
|
+
}
|
|
7941
|
+
if (maxRowsSent !== undefined) {
|
|
7942
|
+
localVarQueryParameter['maxRowsSent'] = maxRowsSent;
|
|
7943
|
+
}
|
|
7944
|
+
if (dbName !== undefined) {
|
|
7945
|
+
localVarQueryParameter['dbName'] = dbName;
|
|
7946
|
+
}
|
|
7947
|
+
if (userName !== undefined) {
|
|
7948
|
+
localVarQueryParameter['userName'] = userName;
|
|
7949
|
+
}
|
|
7950
|
+
if (clientIp !== undefined) {
|
|
7951
|
+
localVarQueryParameter['clientIp'] = clientIp;
|
|
7952
|
+
}
|
|
7953
|
+
if (appName !== undefined) {
|
|
7954
|
+
localVarQueryParameter['appName'] = appName;
|
|
7955
|
+
}
|
|
7956
|
+
if (templateId !== undefined) {
|
|
7957
|
+
localVarQueryParameter['templateId'] = templateId;
|
|
7958
|
+
}
|
|
7959
|
+
if (unclassifiedOnly !== undefined) {
|
|
7960
|
+
localVarQueryParameter['unclassifiedOnly'] = unclassifiedOnly;
|
|
7961
|
+
}
|
|
7898
7962
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7899
7963
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7900
7964
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -11782,12 +11846,14 @@ const SharedApiFp = function (configuration) {
|
|
|
11782
11846
|
* @summary Get cluster details by ID
|
|
11783
11847
|
* @param {string} orgName name of the Org
|
|
11784
11848
|
* @param {string} clusterID ID of the KubeBlocks cluster
|
|
11849
|
+
* @param {string} [backupName] Backup name to override cluster components from its snapshot
|
|
11850
|
+
* @param {string} [restoreTime] Restore time to find latest continuous backup snapshot after this time
|
|
11785
11851
|
* @param {*} [options] Override http request option.
|
|
11786
11852
|
* @throws {RequiredError}
|
|
11787
11853
|
*/
|
|
11788
|
-
async getClusterByID(orgName, clusterID, options) {
|
|
11854
|
+
async getClusterByID(orgName, clusterID, backupName, restoreTime, options) {
|
|
11789
11855
|
var _a, _b, _c;
|
|
11790
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterByID(orgName, clusterID, options);
|
|
11856
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterByID(orgName, clusterID, backupName, restoreTime, options);
|
|
11791
11857
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11792
11858
|
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;
|
|
11793
11859
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -13538,12 +13604,26 @@ const SharedApiFp = function (configuration) {
|
|
|
13538
13604
|
* @param {string} [componentName]
|
|
13539
13605
|
* @param {string} [instanceName]
|
|
13540
13606
|
* @param {string} [query]
|
|
13607
|
+
* @param {number} [minExecutionTime] Minimum slow log execution time in seconds. Only applies when logType=slow.
|
|
13608
|
+
* @param {number} [maxExecutionTime] Maximum slow log execution time in seconds. Only applies when logType=slow.
|
|
13609
|
+
* @param {number} [minLockTime] Minimum slow log lock time in seconds. Only applies when logType=slow.
|
|
13610
|
+
* @param {number} [maxLockTime] Maximum slow log lock time in seconds. Only applies when logType=slow.
|
|
13611
|
+
* @param {number} [minRowsExamined]
|
|
13612
|
+
* @param {number} [maxRowsExamined]
|
|
13613
|
+
* @param {number} [minRowsSent]
|
|
13614
|
+
* @param {number} [maxRowsSent]
|
|
13615
|
+
* @param {string} [dbName]
|
|
13616
|
+
* @param {string} [userName]
|
|
13617
|
+
* @param {string} [clientIp]
|
|
13618
|
+
* @param {string} [appName]
|
|
13619
|
+
* @param {string} [templateId]
|
|
13620
|
+
* @param {boolean} [unclassifiedOnly]
|
|
13541
13621
|
* @param {*} [options] Override http request option.
|
|
13542
13622
|
* @throws {RequiredError}
|
|
13543
13623
|
*/
|
|
13544
|
-
async queryLogHits(orgName, clusterName, startTime, endTime, step, logType, componentName, instanceName, query, options) {
|
|
13624
|
+
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) {
|
|
13545
13625
|
var _a, _b, _c;
|
|
13546
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.queryLogHits(orgName, clusterName, startTime, endTime, step, logType, componentName, instanceName, query, options);
|
|
13626
|
+
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);
|
|
13547
13627
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13548
13628
|
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;
|
|
13549
13629
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -15356,7 +15436,7 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
15356
15436
|
* @throws {RequiredError}
|
|
15357
15437
|
*/
|
|
15358
15438
|
getClusterByID(requestParameters, options) {
|
|
15359
|
-
return localVarFp.getClusterByID(requestParameters.orgName, requestParameters.clusterID, options).then((request) => request(axios, basePath));
|
|
15439
|
+
return localVarFp.getClusterByID(requestParameters.orgName, requestParameters.clusterID, requestParameters.backupName, requestParameters.restoreTime, options).then((request) => request(axios, basePath));
|
|
15360
15440
|
},
|
|
15361
15441
|
/**
|
|
15362
15442
|
* read log of the specified cluster instance
|
|
@@ -16413,7 +16493,7 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
16413
16493
|
* @throws {RequiredError}
|
|
16414
16494
|
*/
|
|
16415
16495
|
queryLogHits(requestParameters, options) {
|
|
16416
|
-
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));
|
|
16496
|
+
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));
|
|
16417
16497
|
},
|
|
16418
16498
|
/**
|
|
16419
16499
|
* Query pod logs of a cluster
|
|
@@ -17896,7 +17976,7 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
17896
17976
|
* @memberof SharedApi
|
|
17897
17977
|
*/
|
|
17898
17978
|
getClusterByID(requestParameters, options) {
|
|
17899
|
-
return (0, exports.SharedApiFp)(this.configuration).getClusterByID(requestParameters.orgName, requestParameters.clusterID, options).then((request) => request(this.axios, this.basePath));
|
|
17979
|
+
return (0, exports.SharedApiFp)(this.configuration).getClusterByID(requestParameters.orgName, requestParameters.clusterID, requestParameters.backupName, requestParameters.restoreTime, options).then((request) => request(this.axios, this.basePath));
|
|
17900
17980
|
}
|
|
17901
17981
|
/**
|
|
17902
17982
|
* read log of the specified cluster instance
|
|
@@ -19059,7 +19139,7 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
19059
19139
|
* @memberof SharedApi
|
|
19060
19140
|
*/
|
|
19061
19141
|
queryLogHits(requestParameters, options) {
|
|
19062
|
-
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));
|
|
19142
|
+
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));
|
|
19063
19143
|
}
|
|
19064
19144
|
/**
|
|
19065
19145
|
* Query pod logs of a cluster
|