kb-cloud-client-typescript 2.2.40 → 2.2.41
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
|
@@ -2904,10 +2904,11 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
2904
2904
|
* @param {boolean} [withRestoreCluster] defined whether to search for restoring cluster.
|
|
2905
2905
|
* @param {boolean} [withHScale] defined whether to search for rebuilding instance.
|
|
2906
2906
|
* @param {string} [component] The component type is required when withRebuildInstance/withHScale is true.
|
|
2907
|
+
* @param {string} [mode] The cluster mode, used to filter out unsupported backup methods.
|
|
2907
2908
|
* @param {*} [options] Override http request option.
|
|
2908
2909
|
* @throws {RequiredError}
|
|
2909
2910
|
*/
|
|
2910
|
-
getBackupMethod: async (orgName, engineName, clusterID, enablePITR, withRebuildInstance, withRestoreCluster, withHScale, component, options = {}) => {
|
|
2911
|
+
getBackupMethod: async (orgName, engineName, clusterID, enablePITR, withRebuildInstance, withRestoreCluster, withHScale, component, mode, options = {}) => {
|
|
2911
2912
|
// verify required parameter 'orgName' is not null or undefined
|
|
2912
2913
|
(0, common_1.assertParamExists)('getBackupMethod', 'orgName', orgName);
|
|
2913
2914
|
// verify required parameter 'engineName' is not null or undefined
|
|
@@ -2947,6 +2948,9 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
2947
2948
|
if (component !== undefined) {
|
|
2948
2949
|
localVarQueryParameter['component'] = component;
|
|
2949
2950
|
}
|
|
2951
|
+
if (mode !== undefined) {
|
|
2952
|
+
localVarQueryParameter['mode'] = mode;
|
|
2953
|
+
}
|
|
2950
2954
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2951
2955
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2952
2956
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -11066,12 +11070,13 @@ const SharedApiFp = function (configuration) {
|
|
|
11066
11070
|
* @param {boolean} [withRestoreCluster] defined whether to search for restoring cluster.
|
|
11067
11071
|
* @param {boolean} [withHScale] defined whether to search for rebuilding instance.
|
|
11068
11072
|
* @param {string} [component] The component type is required when withRebuildInstance/withHScale is true.
|
|
11073
|
+
* @param {string} [mode] The cluster mode, used to filter out unsupported backup methods.
|
|
11069
11074
|
* @param {*} [options] Override http request option.
|
|
11070
11075
|
* @throws {RequiredError}
|
|
11071
11076
|
*/
|
|
11072
|
-
async getBackupMethod(orgName, engineName, clusterID, enablePITR, withRebuildInstance, withRestoreCluster, withHScale, component, options) {
|
|
11077
|
+
async getBackupMethod(orgName, engineName, clusterID, enablePITR, withRebuildInstance, withRestoreCluster, withHScale, component, mode, options) {
|
|
11073
11078
|
var _a, _b, _c;
|
|
11074
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBackupMethod(orgName, engineName, clusterID, enablePITR, withRebuildInstance, withRestoreCluster, withHScale, component, options);
|
|
11079
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBackupMethod(orgName, engineName, clusterID, enablePITR, withRebuildInstance, withRestoreCluster, withHScale, component, mode, options);
|
|
11075
11080
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11076
11081
|
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;
|
|
11077
11082
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -14380,7 +14385,7 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
14380
14385
|
* @throws {RequiredError}
|
|
14381
14386
|
*/
|
|
14382
14387
|
getBackupMethod(requestParameters, options) {
|
|
14383
|
-
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));
|
|
14388
|
+
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));
|
|
14384
14389
|
},
|
|
14385
14390
|
/**
|
|
14386
14391
|
*
|
|
@@ -16743,7 +16748,7 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
16743
16748
|
* @memberof SharedApi
|
|
16744
16749
|
*/
|
|
16745
16750
|
getBackupMethod(requestParameters, options) {
|
|
16746
|
-
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));
|
|
16751
|
+
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));
|
|
16747
16752
|
}
|
|
16748
16753
|
/**
|
|
16749
16754
|
*
|