kb-cloud-client-typescript 2.3.0-alpha.98 → 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/shared-api.d.ts +18 -2
- package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
- package/dist/adminapi/apis/shared-api.js +15 -5
- 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/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/shared-api.d.ts +18 -2
- package/dist/openapi/apis/shared-api.d.ts.map +1 -1
- package/dist/openapi/apis/shared-api.js +15 -5
- package/dist/openapi/apis/shared-api.js.map +1 -1
- package/package.json +1 -1
- package/src/adminapi/apis/cluster-api.ts +31 -5
- package/src/adminapi/apis/shared-api.ts +31 -5
- package/src/adminapi/models/database-parameter-item.ts +6 -0
- package/src/adminapi/models/database-parameter-list-item.ts +6 -0
- package/src/adminapi.yaml +20 -0
- package/src/openapi/apis/cluster-api.ts +31 -5
- package/src/openapi/apis/shared-api.ts +31 -5
- package/src/openapi.yaml +12 -0
|
@@ -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);
|
|
@@ -11838,12 +11846,14 @@ const SharedApiFp = function (configuration) {
|
|
|
11838
11846
|
* @summary Get cluster details by ID
|
|
11839
11847
|
* @param {string} orgName name of the Org
|
|
11840
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
|
|
11841
11851
|
* @param {*} [options] Override http request option.
|
|
11842
11852
|
* @throws {RequiredError}
|
|
11843
11853
|
*/
|
|
11844
|
-
async getClusterByID(orgName, clusterID, options) {
|
|
11854
|
+
async getClusterByID(orgName, clusterID, backupName, restoreTime, options) {
|
|
11845
11855
|
var _a, _b, _c;
|
|
11846
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterByID(orgName, clusterID, options);
|
|
11856
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterByID(orgName, clusterID, backupName, restoreTime, options);
|
|
11847
11857
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11848
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;
|
|
11849
11859
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -15426,7 +15436,7 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
15426
15436
|
* @throws {RequiredError}
|
|
15427
15437
|
*/
|
|
15428
15438
|
getClusterByID(requestParameters, options) {
|
|
15429
|
-
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));
|
|
15430
15440
|
},
|
|
15431
15441
|
/**
|
|
15432
15442
|
* read log of the specified cluster instance
|
|
@@ -17966,7 +17976,7 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
17966
17976
|
* @memberof SharedApi
|
|
17967
17977
|
*/
|
|
17968
17978
|
getClusterByID(requestParameters, options) {
|
|
17969
|
-
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));
|
|
17970
17980
|
}
|
|
17971
17981
|
/**
|
|
17972
17982
|
* read log of the specified cluster instance
|