kb-cloud-client-typescript 2.2.40 → 2.2.42
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/backup-method-api.d.ts +10 -2
- package/dist/adminapi/apis/backup-method-api.d.ts.map +1 -1
- package/dist/adminapi/apis/backup-method-api.js +10 -5
- package/dist/adminapi/apis/backup-method-api.js.map +1 -1
- package/dist/adminapi/apis/billing-api.d.ts +18 -18
- package/dist/adminapi/apis/billing-api.d.ts.map +1 -1
- package/dist/adminapi/apis/billing-api.js +13 -9
- package/dist/adminapi/apis/billing-api.js.map +1 -1
- package/dist/adminapi/apis/shared-api.d.ts +10 -2
- package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
- package/dist/adminapi/apis/shared-api.js +10 -5
- package/dist/adminapi/apis/shared-api.js.map +1 -1
- package/dist/adminapi/models/backup-method-option.d.ts +6 -0
- package/dist/adminapi/models/backup-method-option.d.ts.map +1 -1
- package/dist/openapi/apis/backup-method-api.d.ts +10 -2
- package/dist/openapi/apis/backup-method-api.d.ts.map +1 -1
- package/dist/openapi/apis/backup-method-api.js +10 -5
- package/dist/openapi/apis/backup-method-api.js.map +1 -1
- package/dist/openapi/apis/billing-api.d.ts +18 -18
- package/dist/openapi/apis/billing-api.d.ts.map +1 -1
- package/dist/openapi/apis/billing-api.js +13 -9
- package/dist/openapi/apis/billing-api.js.map +1 -1
- package/dist/openapi/apis/shared-api.d.ts +10 -2
- package/dist/openapi/apis/shared-api.d.ts.map +1 -1
- package/dist/openapi/apis/shared-api.js +10 -5
- package/dist/openapi/apis/shared-api.js.map +1 -1
- package/dist/openapi/models/backup-method-option.d.ts +6 -0
- package/dist/openapi/models/backup-method-option.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/adminapi/apis/backup-method-api.ts +18 -5
- package/src/adminapi/apis/billing-api.ts +27 -23
- package/src/adminapi/apis/shared-api.ts +18 -5
- package/src/adminapi/models/backup-method-option.ts +6 -0
- package/src/adminapi.yaml +12 -0
- package/src/openapi/apis/backup-method-api.ts +18 -5
- package/src/openapi/apis/billing-api.ts +27 -23
- package/src/openapi/apis/shared-api.ts +18 -5
- package/src/openapi/models/backup-method-option.ts +6 -0
- package/src/openapi.yaml +12 -0
|
@@ -3387,10 +3387,11 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
3387
3387
|
* @param {boolean} [withRestoreCluster] defined whether to search for restoring cluster.
|
|
3388
3388
|
* @param {boolean} [withHScale] defined whether to search for rebuilding instance.
|
|
3389
3389
|
* @param {string} [component] The component type is required when withRebuildInstance/withHScale is true.
|
|
3390
|
+
* @param {string} [mode] The cluster mode, used to filter out unsupported backup methods.
|
|
3390
3391
|
* @param {*} [options] Override http request option.
|
|
3391
3392
|
* @throws {RequiredError}
|
|
3392
3393
|
*/
|
|
3393
|
-
getBackupMethod: async (orgName, engineName, clusterID, enablePITR, withRebuildInstance, withRestoreCluster, withHScale, component, options = {}) => {
|
|
3394
|
+
getBackupMethod: async (orgName, engineName, clusterID, enablePITR, withRebuildInstance, withRestoreCluster, withHScale, component, mode, options = {}) => {
|
|
3394
3395
|
// verify required parameter 'orgName' is not null or undefined
|
|
3395
3396
|
(0, common_1.assertParamExists)('getBackupMethod', 'orgName', orgName);
|
|
3396
3397
|
// verify required parameter 'engineName' is not null or undefined
|
|
@@ -3430,6 +3431,9 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
3430
3431
|
if (component !== undefined) {
|
|
3431
3432
|
localVarQueryParameter['component'] = component;
|
|
3432
3433
|
}
|
|
3434
|
+
if (mode !== undefined) {
|
|
3435
|
+
localVarQueryParameter['mode'] = mode;
|
|
3436
|
+
}
|
|
3433
3437
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3434
3438
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3435
3439
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -11723,12 +11727,13 @@ const SharedApiFp = function (configuration) {
|
|
|
11723
11727
|
* @param {boolean} [withRestoreCluster] defined whether to search for restoring cluster.
|
|
11724
11728
|
* @param {boolean} [withHScale] defined whether to search for rebuilding instance.
|
|
11725
11729
|
* @param {string} [component] The component type is required when withRebuildInstance/withHScale is true.
|
|
11730
|
+
* @param {string} [mode] The cluster mode, used to filter out unsupported backup methods.
|
|
11726
11731
|
* @param {*} [options] Override http request option.
|
|
11727
11732
|
* @throws {RequiredError}
|
|
11728
11733
|
*/
|
|
11729
|
-
async getBackupMethod(orgName, engineName, clusterID, enablePITR, withRebuildInstance, withRestoreCluster, withHScale, component, options) {
|
|
11734
|
+
async getBackupMethod(orgName, engineName, clusterID, enablePITR, withRebuildInstance, withRestoreCluster, withHScale, component, mode, options) {
|
|
11730
11735
|
var _a, _b, _c;
|
|
11731
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBackupMethod(orgName, engineName, clusterID, enablePITR, withRebuildInstance, withRestoreCluster, withHScale, component, options);
|
|
11736
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBackupMethod(orgName, engineName, clusterID, enablePITR, withRebuildInstance, withRestoreCluster, withHScale, component, mode, options);
|
|
11732
11737
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11733
11738
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.getBackupMethod']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11734
11739
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -15122,7 +15127,7 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
15122
15127
|
* @throws {RequiredError}
|
|
15123
15128
|
*/
|
|
15124
15129
|
getBackupMethod(requestParameters, options) {
|
|
15125
|
-
return localVarFp.getBackupMethod(requestParameters.orgName, requestParameters.engineName, requestParameters.clusterID, requestParameters.enablePITR, requestParameters.withRebuildInstance, requestParameters.withRestoreCluster, requestParameters.withHScale, requestParameters.component, options).then((request) => request(axios, basePath));
|
|
15130
|
+
return localVarFp.getBackupMethod(requestParameters.orgName, requestParameters.engineName, requestParameters.clusterID, requestParameters.enablePITR, requestParameters.withRebuildInstance, requestParameters.withRestoreCluster, requestParameters.withHScale, requestParameters.component, requestParameters.mode, options).then((request) => request(axios, basePath));
|
|
15126
15131
|
},
|
|
15127
15132
|
/**
|
|
15128
15133
|
*
|
|
@@ -17576,7 +17581,7 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
17576
17581
|
* @memberof SharedApi
|
|
17577
17582
|
*/
|
|
17578
17583
|
getBackupMethod(requestParameters, options) {
|
|
17579
|
-
return (0, exports.SharedApiFp)(this.configuration).getBackupMethod(requestParameters.orgName, requestParameters.engineName, requestParameters.clusterID, requestParameters.enablePITR, requestParameters.withRebuildInstance, requestParameters.withRestoreCluster, requestParameters.withHScale, requestParameters.component, options).then((request) => request(this.axios, this.basePath));
|
|
17584
|
+
return (0, exports.SharedApiFp)(this.configuration).getBackupMethod(requestParameters.orgName, requestParameters.engineName, requestParameters.clusterID, requestParameters.enablePITR, requestParameters.withRebuildInstance, requestParameters.withRestoreCluster, requestParameters.withHScale, requestParameters.component, requestParameters.mode, options).then((request) => request(this.axios, this.basePath));
|
|
17580
17585
|
}
|
|
17581
17586
|
/**
|
|
17582
17587
|
*
|