kb-cloud-client-typescript 2.3.0-alpha.104 → 2.3.0-alpha.105
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/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/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/shared-api.ts +18 -5
- package/src/adminapi/models/backup-method-option.ts +6 -0
- package/src/adminapi.yaml +10 -0
- package/src/openapi/apis/backup-method-api.ts +18 -5
- package/src/openapi/apis/shared-api.ts +18 -5
- package/src/openapi/models/backup-method-option.ts +6 -0
- package/src/openapi.yaml +10 -0
|
@@ -41,6 +41,12 @@ export interface BackupMethodOption {
|
|
|
41
41
|
* @memberof BackupMethodOption
|
|
42
42
|
*/
|
|
43
43
|
'restoreOption'?: BackupMethodOptionRestoreOption;
|
|
44
|
+
/**
|
|
45
|
+
* The cluster modes that this backup method does not support
|
|
46
|
+
* @type {Array<string>}
|
|
47
|
+
* @memberof BackupMethodOption
|
|
48
|
+
*/
|
|
49
|
+
'notSupportedModes'?: Array<string>;
|
|
44
50
|
/**
|
|
45
51
|
*
|
|
46
52
|
* @type {LocalizedDescription}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backup-method-option.d.ts","sourceRoot":"","sources":["../../../src/openapi/models/backup-method-option.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;AAG7F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAEpE;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,eAAe,CAAC,EAAE,+BAA+B,CAAC;IAClD;;;;OAIG;IACH,aAAa,CAAC,EAAE,oBAAoB,CAAC;CACxC"}
|
|
1
|
+
{"version":3,"file":"backup-method-option.d.ts","sourceRoot":"","sources":["../../../src/openapi/models/backup-method-option.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;AAG7F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAEpE;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,eAAe,CAAC,EAAE,+BAA+B,CAAC;IAClD;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACpC;;;;OAIG;IACH,aAAa,CAAC,EAAE,oBAAoB,CAAC;CACxC"}
|
package/package.json
CHANGED
|
@@ -42,10 +42,11 @@ export const BackupMethodApiAxiosParamCreator = function (configuration?: Config
|
|
|
42
42
|
* @param {boolean} [withRestoreCluster] defined whether to search for restoring cluster.
|
|
43
43
|
* @param {boolean} [withHScale] defined whether to search for rebuilding instance.
|
|
44
44
|
* @param {string} [component] The component type is required when withRebuildInstance/withHScale is true.
|
|
45
|
+
* @param {string} [mode] The cluster mode, used to filter out unsupported backup methods.
|
|
45
46
|
* @param {*} [options] Override http request option.
|
|
46
47
|
* @throws {RequiredError}
|
|
47
48
|
*/
|
|
48
|
-
getBackupMethod: async (orgName: string, engineName: string, clusterID?: string, enablePITR?: boolean, withRebuildInstance?: boolean, withRestoreCluster?: boolean, withHScale?: boolean, component?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
49
|
+
getBackupMethod: async (orgName: string, engineName: string, clusterID?: string, enablePITR?: boolean, withRebuildInstance?: boolean, withRestoreCluster?: boolean, withHScale?: boolean, component?: string, mode?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
49
50
|
// verify required parameter 'orgName' is not null or undefined
|
|
50
51
|
assertParamExists('getBackupMethod', 'orgName', orgName)
|
|
51
52
|
// verify required parameter 'engineName' is not null or undefined
|
|
@@ -95,6 +96,10 @@ export const BackupMethodApiAxiosParamCreator = function (configuration?: Config
|
|
|
95
96
|
localVarQueryParameter['component'] = component;
|
|
96
97
|
}
|
|
97
98
|
|
|
99
|
+
if (mode !== undefined) {
|
|
100
|
+
localVarQueryParameter['mode'] = mode;
|
|
101
|
+
}
|
|
102
|
+
|
|
98
103
|
|
|
99
104
|
|
|
100
105
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -127,11 +132,12 @@ export const BackupMethodApiFp = function(configuration?: Configuration) {
|
|
|
127
132
|
* @param {boolean} [withRestoreCluster] defined whether to search for restoring cluster.
|
|
128
133
|
* @param {boolean} [withHScale] defined whether to search for rebuilding instance.
|
|
129
134
|
* @param {string} [component] The component type is required when withRebuildInstance/withHScale is true.
|
|
135
|
+
* @param {string} [mode] The cluster mode, used to filter out unsupported backup methods.
|
|
130
136
|
* @param {*} [options] Override http request option.
|
|
131
137
|
* @throws {RequiredError}
|
|
132
138
|
*/
|
|
133
|
-
async getBackupMethod(orgName: string, engineName: string, clusterID?: string, enablePITR?: boolean, withRebuildInstance?: boolean, withRestoreCluster?: boolean, withHScale?: boolean, component?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterBackupMethod>> {
|
|
134
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBackupMethod(orgName, engineName, clusterID, enablePITR, withRebuildInstance, withRestoreCluster, withHScale, component, options);
|
|
139
|
+
async getBackupMethod(orgName: string, engineName: string, clusterID?: string, enablePITR?: boolean, withRebuildInstance?: boolean, withRestoreCluster?: boolean, withHScale?: boolean, component?: string, mode?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterBackupMethod>> {
|
|
140
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBackupMethod(orgName, engineName, clusterID, enablePITR, withRebuildInstance, withRestoreCluster, withHScale, component, mode, options);
|
|
135
141
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
136
142
|
const localVarOperationServerBasePath = operationServerMap['BackupMethodApi.getBackupMethod']?.[localVarOperationServerIndex]?.url;
|
|
137
143
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -154,7 +160,7 @@ export const BackupMethodApiFactory = function (configuration?: Configuration, b
|
|
|
154
160
|
* @throws {RequiredError}
|
|
155
161
|
*/
|
|
156
162
|
getBackupMethod(requestParameters: BackupMethodApiGetBackupMethodRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterBackupMethod> {
|
|
157
|
-
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));
|
|
163
|
+
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));
|
|
158
164
|
},
|
|
159
165
|
};
|
|
160
166
|
};
|
|
@@ -238,6 +244,13 @@ export interface BackupMethodApiGetBackupMethodRequest {
|
|
|
238
244
|
* @memberof BackupMethodApiGetBackupMethod
|
|
239
245
|
*/
|
|
240
246
|
readonly component?: string
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* The cluster mode, used to filter out unsupported backup methods.
|
|
250
|
+
* @type {string}
|
|
251
|
+
* @memberof BackupMethodApiGetBackupMethod
|
|
252
|
+
*/
|
|
253
|
+
readonly mode?: string
|
|
241
254
|
}
|
|
242
255
|
|
|
243
256
|
/**
|
|
@@ -256,7 +269,7 @@ export class BackupMethodApi extends BaseAPI implements BackupMethodApiInterface
|
|
|
256
269
|
* @memberof BackupMethodApi
|
|
257
270
|
*/
|
|
258
271
|
public getBackupMethod(requestParameters: BackupMethodApiGetBackupMethodRequest, options?: RawAxiosRequestConfig) {
|
|
259
|
-
return BackupMethodApiFp(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));
|
|
272
|
+
return BackupMethodApiFp(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));
|
|
260
273
|
}
|
|
261
274
|
}
|
|
262
275
|
|
|
@@ -4013,10 +4013,11 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
4013
4013
|
* @param {boolean} [withRestoreCluster] defined whether to search for restoring cluster.
|
|
4014
4014
|
* @param {boolean} [withHScale] defined whether to search for rebuilding instance.
|
|
4015
4015
|
* @param {string} [component] The component type is required when withRebuildInstance/withHScale is true.
|
|
4016
|
+
* @param {string} [mode] The cluster mode, used to filter out unsupported backup methods.
|
|
4016
4017
|
* @param {*} [options] Override http request option.
|
|
4017
4018
|
* @throws {RequiredError}
|
|
4018
4019
|
*/
|
|
4019
|
-
getBackupMethod: async (orgName: string, engineName: string, clusterID?: string, enablePITR?: boolean, withRebuildInstance?: boolean, withRestoreCluster?: boolean, withHScale?: boolean, component?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4020
|
+
getBackupMethod: async (orgName: string, engineName: string, clusterID?: string, enablePITR?: boolean, withRebuildInstance?: boolean, withRestoreCluster?: boolean, withHScale?: boolean, component?: string, mode?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4020
4021
|
// verify required parameter 'orgName' is not null or undefined
|
|
4021
4022
|
assertParamExists('getBackupMethod', 'orgName', orgName)
|
|
4022
4023
|
// verify required parameter 'engineName' is not null or undefined
|
|
@@ -4066,6 +4067,10 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
4066
4067
|
localVarQueryParameter['component'] = component;
|
|
4067
4068
|
}
|
|
4068
4069
|
|
|
4070
|
+
if (mode !== undefined) {
|
|
4071
|
+
localVarQueryParameter['mode'] = mode;
|
|
4072
|
+
}
|
|
4073
|
+
|
|
4069
4074
|
|
|
4070
4075
|
|
|
4071
4076
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -14388,11 +14393,12 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
14388
14393
|
* @param {boolean} [withRestoreCluster] defined whether to search for restoring cluster.
|
|
14389
14394
|
* @param {boolean} [withHScale] defined whether to search for rebuilding instance.
|
|
14390
14395
|
* @param {string} [component] The component type is required when withRebuildInstance/withHScale is true.
|
|
14396
|
+
* @param {string} [mode] The cluster mode, used to filter out unsupported backup methods.
|
|
14391
14397
|
* @param {*} [options] Override http request option.
|
|
14392
14398
|
* @throws {RequiredError}
|
|
14393
14399
|
*/
|
|
14394
|
-
async getBackupMethod(orgName: string, engineName: string, clusterID?: string, enablePITR?: boolean, withRebuildInstance?: boolean, withRestoreCluster?: boolean, withHScale?: boolean, component?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterBackupMethod>> {
|
|
14395
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBackupMethod(orgName, engineName, clusterID, enablePITR, withRebuildInstance, withRestoreCluster, withHScale, component, options);
|
|
14400
|
+
async getBackupMethod(orgName: string, engineName: string, clusterID?: string, enablePITR?: boolean, withRebuildInstance?: boolean, withRestoreCluster?: boolean, withHScale?: boolean, component?: string, mode?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterBackupMethod>> {
|
|
14401
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBackupMethod(orgName, engineName, clusterID, enablePITR, withRebuildInstance, withRestoreCluster, withHScale, component, mode, options);
|
|
14396
14402
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14397
14403
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.getBackupMethod']?.[localVarOperationServerIndex]?.url;
|
|
14398
14404
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -17780,7 +17786,7 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
17780
17786
|
* @throws {RequiredError}
|
|
17781
17787
|
*/
|
|
17782
17788
|
getBackupMethod(requestParameters: SharedApiGetBackupMethodRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterBackupMethod> {
|
|
17783
|
-
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));
|
|
17789
|
+
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));
|
|
17784
17790
|
},
|
|
17785
17791
|
/**
|
|
17786
17792
|
*
|
|
@@ -23890,6 +23896,13 @@ export interface SharedApiGetBackupMethodRequest {
|
|
|
23890
23896
|
* @memberof SharedApiGetBackupMethod
|
|
23891
23897
|
*/
|
|
23892
23898
|
readonly component?: string
|
|
23899
|
+
|
|
23900
|
+
/**
|
|
23901
|
+
* The cluster mode, used to filter out unsupported backup methods.
|
|
23902
|
+
* @type {string}
|
|
23903
|
+
* @memberof SharedApiGetBackupMethod
|
|
23904
|
+
*/
|
|
23905
|
+
readonly mode?: string
|
|
23893
23906
|
}
|
|
23894
23907
|
|
|
23895
23908
|
/**
|
|
@@ -30522,7 +30535,7 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
30522
30535
|
* @memberof SharedApi
|
|
30523
30536
|
*/
|
|
30524
30537
|
public getBackupMethod(requestParameters: SharedApiGetBackupMethodRequest, options?: RawAxiosRequestConfig) {
|
|
30525
|
-
return 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));
|
|
30538
|
+
return 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));
|
|
30526
30539
|
}
|
|
30527
30540
|
|
|
30528
30541
|
/**
|
|
@@ -50,6 +50,12 @@ export interface BackupMethodOption {
|
|
|
50
50
|
* @memberof BackupMethodOption
|
|
51
51
|
*/
|
|
52
52
|
'restoreOption'?: BackupMethodOptionRestoreOption;
|
|
53
|
+
/**
|
|
54
|
+
* The cluster modes that this backup method does not support
|
|
55
|
+
* @type {Array<string>}
|
|
56
|
+
* @memberof BackupMethodOption
|
|
57
|
+
*/
|
|
58
|
+
'notSupportedModes'?: Array<string>;
|
|
53
59
|
/**
|
|
54
60
|
*
|
|
55
61
|
* @type {LocalizedDescription}
|
package/src/adminapi.yaml
CHANGED
|
@@ -11658,6 +11658,11 @@ paths:
|
|
|
11658
11658
|
description: The component type is required when withRebuildInstance/withHScale is true.
|
|
11659
11659
|
schema:
|
|
11660
11660
|
type: string
|
|
11661
|
+
- name: mode
|
|
11662
|
+
in: query
|
|
11663
|
+
description: The cluster mode, used to filter out unsupported backup methods.
|
|
11664
|
+
schema:
|
|
11665
|
+
type: string
|
|
11661
11666
|
responses:
|
|
11662
11667
|
'200':
|
|
11663
11668
|
content:
|
|
@@ -30234,6 +30239,11 @@ components:
|
|
|
30234
30239
|
description: |
|
|
30235
30240
|
If set to true, the restore will be ready after the cluster is running.
|
|
30236
30241
|
If set to false, the restore will be ready after the cluster is created.
|
|
30242
|
+
notSupportedModes:
|
|
30243
|
+
type: array
|
|
30244
|
+
description: The cluster modes that this backup method does not support
|
|
30245
|
+
items:
|
|
30246
|
+
type: string
|
|
30237
30247
|
description:
|
|
30238
30248
|
$ref: '#/components/schemas/localizedDescription'
|
|
30239
30249
|
selectedObjectOption:
|
|
@@ -42,10 +42,11 @@ export const BackupMethodApiAxiosParamCreator = function (configuration?: Config
|
|
|
42
42
|
* @param {boolean} [withRestoreCluster] defined whether to search for restoring cluster.
|
|
43
43
|
* @param {boolean} [withHScale] defined whether to search for rebuilding instance.
|
|
44
44
|
* @param {string} [component] The component type is required when withRebuildInstance/withHScale is true.
|
|
45
|
+
* @param {string} [mode] The cluster mode, used to filter out unsupported backup methods.
|
|
45
46
|
* @param {*} [options] Override http request option.
|
|
46
47
|
* @throws {RequiredError}
|
|
47
48
|
*/
|
|
48
|
-
getBackupMethod: async (orgName: string, engineName: string, clusterID?: string, enablePITR?: boolean, withRebuildInstance?: boolean, withRestoreCluster?: boolean, withHScale?: boolean, component?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
49
|
+
getBackupMethod: async (orgName: string, engineName: string, clusterID?: string, enablePITR?: boolean, withRebuildInstance?: boolean, withRestoreCluster?: boolean, withHScale?: boolean, component?: string, mode?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
49
50
|
// verify required parameter 'orgName' is not null or undefined
|
|
50
51
|
assertParamExists('getBackupMethod', 'orgName', orgName)
|
|
51
52
|
// verify required parameter 'engineName' is not null or undefined
|
|
@@ -95,6 +96,10 @@ export const BackupMethodApiAxiosParamCreator = function (configuration?: Config
|
|
|
95
96
|
localVarQueryParameter['component'] = component;
|
|
96
97
|
}
|
|
97
98
|
|
|
99
|
+
if (mode !== undefined) {
|
|
100
|
+
localVarQueryParameter['mode'] = mode;
|
|
101
|
+
}
|
|
102
|
+
|
|
98
103
|
|
|
99
104
|
|
|
100
105
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -127,11 +132,12 @@ export const BackupMethodApiFp = function(configuration?: Configuration) {
|
|
|
127
132
|
* @param {boolean} [withRestoreCluster] defined whether to search for restoring cluster.
|
|
128
133
|
* @param {boolean} [withHScale] defined whether to search for rebuilding instance.
|
|
129
134
|
* @param {string} [component] The component type is required when withRebuildInstance/withHScale is true.
|
|
135
|
+
* @param {string} [mode] The cluster mode, used to filter out unsupported backup methods.
|
|
130
136
|
* @param {*} [options] Override http request option.
|
|
131
137
|
* @throws {RequiredError}
|
|
132
138
|
*/
|
|
133
|
-
async getBackupMethod(orgName: string, engineName: string, clusterID?: string, enablePITR?: boolean, withRebuildInstance?: boolean, withRestoreCluster?: boolean, withHScale?: boolean, component?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterBackupMethod>> {
|
|
134
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBackupMethod(orgName, engineName, clusterID, enablePITR, withRebuildInstance, withRestoreCluster, withHScale, component, options);
|
|
139
|
+
async getBackupMethod(orgName: string, engineName: string, clusterID?: string, enablePITR?: boolean, withRebuildInstance?: boolean, withRestoreCluster?: boolean, withHScale?: boolean, component?: string, mode?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterBackupMethod>> {
|
|
140
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBackupMethod(orgName, engineName, clusterID, enablePITR, withRebuildInstance, withRestoreCluster, withHScale, component, mode, options);
|
|
135
141
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
136
142
|
const localVarOperationServerBasePath = operationServerMap['BackupMethodApi.getBackupMethod']?.[localVarOperationServerIndex]?.url;
|
|
137
143
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -154,7 +160,7 @@ export const BackupMethodApiFactory = function (configuration?: Configuration, b
|
|
|
154
160
|
* @throws {RequiredError}
|
|
155
161
|
*/
|
|
156
162
|
getBackupMethod(requestParameters: BackupMethodApiGetBackupMethodRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterBackupMethod> {
|
|
157
|
-
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));
|
|
163
|
+
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));
|
|
158
164
|
},
|
|
159
165
|
};
|
|
160
166
|
};
|
|
@@ -238,6 +244,13 @@ export interface BackupMethodApiGetBackupMethodRequest {
|
|
|
238
244
|
* @memberof BackupMethodApiGetBackupMethod
|
|
239
245
|
*/
|
|
240
246
|
readonly component?: string
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* The cluster mode, used to filter out unsupported backup methods.
|
|
250
|
+
* @type {string}
|
|
251
|
+
* @memberof BackupMethodApiGetBackupMethod
|
|
252
|
+
*/
|
|
253
|
+
readonly mode?: string
|
|
241
254
|
}
|
|
242
255
|
|
|
243
256
|
/**
|
|
@@ -256,7 +269,7 @@ export class BackupMethodApi extends BaseAPI implements BackupMethodApiInterface
|
|
|
256
269
|
* @memberof BackupMethodApi
|
|
257
270
|
*/
|
|
258
271
|
public getBackupMethod(requestParameters: BackupMethodApiGetBackupMethodRequest, options?: RawAxiosRequestConfig) {
|
|
259
|
-
return BackupMethodApiFp(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));
|
|
272
|
+
return BackupMethodApiFp(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));
|
|
260
273
|
}
|
|
261
274
|
}
|
|
262
275
|
|
|
@@ -4572,10 +4572,11 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
4572
4572
|
* @param {boolean} [withRestoreCluster] defined whether to search for restoring cluster.
|
|
4573
4573
|
* @param {boolean} [withHScale] defined whether to search for rebuilding instance.
|
|
4574
4574
|
* @param {string} [component] The component type is required when withRebuildInstance/withHScale is true.
|
|
4575
|
+
* @param {string} [mode] The cluster mode, used to filter out unsupported backup methods.
|
|
4575
4576
|
* @param {*} [options] Override http request option.
|
|
4576
4577
|
* @throws {RequiredError}
|
|
4577
4578
|
*/
|
|
4578
|
-
getBackupMethod: async (orgName: string, engineName: string, clusterID?: string, enablePITR?: boolean, withRebuildInstance?: boolean, withRestoreCluster?: boolean, withHScale?: boolean, component?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4579
|
+
getBackupMethod: async (orgName: string, engineName: string, clusterID?: string, enablePITR?: boolean, withRebuildInstance?: boolean, withRestoreCluster?: boolean, withHScale?: boolean, component?: string, mode?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4579
4580
|
// verify required parameter 'orgName' is not null or undefined
|
|
4580
4581
|
assertParamExists('getBackupMethod', 'orgName', orgName)
|
|
4581
4582
|
// verify required parameter 'engineName' is not null or undefined
|
|
@@ -4625,6 +4626,10 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
4625
4626
|
localVarQueryParameter['component'] = component;
|
|
4626
4627
|
}
|
|
4627
4628
|
|
|
4629
|
+
if (mode !== undefined) {
|
|
4630
|
+
localVarQueryParameter['mode'] = mode;
|
|
4631
|
+
}
|
|
4632
|
+
|
|
4628
4633
|
|
|
4629
4634
|
|
|
4630
4635
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -15095,11 +15100,12 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
15095
15100
|
* @param {boolean} [withRestoreCluster] defined whether to search for restoring cluster.
|
|
15096
15101
|
* @param {boolean} [withHScale] defined whether to search for rebuilding instance.
|
|
15097
15102
|
* @param {string} [component] The component type is required when withRebuildInstance/withHScale is true.
|
|
15103
|
+
* @param {string} [mode] The cluster mode, used to filter out unsupported backup methods.
|
|
15098
15104
|
* @param {*} [options] Override http request option.
|
|
15099
15105
|
* @throws {RequiredError}
|
|
15100
15106
|
*/
|
|
15101
|
-
async getBackupMethod(orgName: string, engineName: string, clusterID?: string, enablePITR?: boolean, withRebuildInstance?: boolean, withRestoreCluster?: boolean, withHScale?: boolean, component?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterBackupMethod>> {
|
|
15102
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBackupMethod(orgName, engineName, clusterID, enablePITR, withRebuildInstance, withRestoreCluster, withHScale, component, options);
|
|
15107
|
+
async getBackupMethod(orgName: string, engineName: string, clusterID?: string, enablePITR?: boolean, withRebuildInstance?: boolean, withRestoreCluster?: boolean, withHScale?: boolean, component?: string, mode?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterBackupMethod>> {
|
|
15108
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBackupMethod(orgName, engineName, clusterID, enablePITR, withRebuildInstance, withRestoreCluster, withHScale, component, mode, options);
|
|
15103
15109
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
15104
15110
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.getBackupMethod']?.[localVarOperationServerIndex]?.url;
|
|
15105
15111
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -18563,7 +18569,7 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
18563
18569
|
* @throws {RequiredError}
|
|
18564
18570
|
*/
|
|
18565
18571
|
getBackupMethod(requestParameters: SharedApiGetBackupMethodRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterBackupMethod> {
|
|
18566
|
-
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));
|
|
18572
|
+
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));
|
|
18567
18573
|
},
|
|
18568
18574
|
/**
|
|
18569
18575
|
*
|
|
@@ -25213,6 +25219,13 @@ export interface SharedApiGetBackupMethodRequest {
|
|
|
25213
25219
|
* @memberof SharedApiGetBackupMethod
|
|
25214
25220
|
*/
|
|
25215
25221
|
readonly component?: string
|
|
25222
|
+
|
|
25223
|
+
/**
|
|
25224
|
+
* The cluster mode, used to filter out unsupported backup methods.
|
|
25225
|
+
* @type {string}
|
|
25226
|
+
* @memberof SharedApiGetBackupMethod
|
|
25227
|
+
*/
|
|
25228
|
+
readonly mode?: string
|
|
25216
25229
|
}
|
|
25217
25230
|
|
|
25218
25231
|
/**
|
|
@@ -32004,7 +32017,7 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
32004
32017
|
* @memberof SharedApi
|
|
32005
32018
|
*/
|
|
32006
32019
|
public getBackupMethod(requestParameters: SharedApiGetBackupMethodRequest, options?: RawAxiosRequestConfig) {
|
|
32007
|
-
return 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));
|
|
32020
|
+
return 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));
|
|
32008
32021
|
}
|
|
32009
32022
|
|
|
32010
32023
|
/**
|
|
@@ -50,6 +50,12 @@ export interface BackupMethodOption {
|
|
|
50
50
|
* @memberof BackupMethodOption
|
|
51
51
|
*/
|
|
52
52
|
'restoreOption'?: BackupMethodOptionRestoreOption;
|
|
53
|
+
/**
|
|
54
|
+
* The cluster modes that this backup method does not support
|
|
55
|
+
* @type {Array<string>}
|
|
56
|
+
* @memberof BackupMethodOption
|
|
57
|
+
*/
|
|
58
|
+
'notSupportedModes'?: Array<string>;
|
|
53
59
|
/**
|
|
54
60
|
*
|
|
55
61
|
* @type {LocalizedDescription}
|
package/src/openapi.yaml
CHANGED
|
@@ -4892,6 +4892,11 @@ paths:
|
|
|
4892
4892
|
description: The component type is required when withRebuildInstance/withHScale is true.
|
|
4893
4893
|
schema:
|
|
4894
4894
|
type: string
|
|
4895
|
+
- name: mode
|
|
4896
|
+
in: query
|
|
4897
|
+
description: The cluster mode, used to filter out unsupported backup methods.
|
|
4898
|
+
schema:
|
|
4899
|
+
type: string
|
|
4895
4900
|
responses:
|
|
4896
4901
|
'200':
|
|
4897
4902
|
content:
|
|
@@ -23907,6 +23912,11 @@ components:
|
|
|
23907
23912
|
description: |
|
|
23908
23913
|
If set to true, the restore will be ready after the cluster is running.
|
|
23909
23914
|
If set to false, the restore will be ready after the cluster is created.
|
|
23915
|
+
notSupportedModes:
|
|
23916
|
+
type: array
|
|
23917
|
+
description: The cluster modes that this backup method does not support
|
|
23918
|
+
items:
|
|
23919
|
+
type: string
|
|
23910
23920
|
description:
|
|
23911
23921
|
$ref: '#/components/schemas/localizedDescription'
|
|
23912
23922
|
selectedObjectOption:
|