kb-cloud-client-typescript 2.2.39 → 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.
Files changed (39) hide show
  1. package/dist/adminapi/apis/backup-method-api.d.ts +10 -2
  2. package/dist/adminapi/apis/backup-method-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/backup-method-api.js +10 -5
  4. package/dist/adminapi/apis/backup-method-api.js.map +1 -1
  5. package/dist/adminapi/apis/billing-api.d.ts +18 -18
  6. package/dist/adminapi/apis/billing-api.d.ts.map +1 -1
  7. package/dist/adminapi/apis/billing-api.js +13 -9
  8. package/dist/adminapi/apis/billing-api.js.map +1 -1
  9. package/dist/adminapi/apis/shared-api.d.ts +10 -2
  10. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  11. package/dist/adminapi/apis/shared-api.js +10 -5
  12. package/dist/adminapi/apis/shared-api.js.map +1 -1
  13. package/dist/adminapi/models/backup-method-option.d.ts +6 -0
  14. package/dist/adminapi/models/backup-method-option.d.ts.map +1 -1
  15. package/dist/openapi/apis/backup-method-api.d.ts +10 -2
  16. package/dist/openapi/apis/backup-method-api.d.ts.map +1 -1
  17. package/dist/openapi/apis/backup-method-api.js +10 -5
  18. package/dist/openapi/apis/backup-method-api.js.map +1 -1
  19. package/dist/openapi/apis/billing-api.d.ts +18 -18
  20. package/dist/openapi/apis/billing-api.d.ts.map +1 -1
  21. package/dist/openapi/apis/billing-api.js +13 -9
  22. package/dist/openapi/apis/billing-api.js.map +1 -1
  23. package/dist/openapi/apis/shared-api.d.ts +10 -2
  24. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  25. package/dist/openapi/apis/shared-api.js +10 -5
  26. package/dist/openapi/apis/shared-api.js.map +1 -1
  27. package/dist/openapi/models/backup-method-option.d.ts +6 -0
  28. package/dist/openapi/models/backup-method-option.d.ts.map +1 -1
  29. package/package.json +1 -1
  30. package/src/adminapi/apis/backup-method-api.ts +18 -5
  31. package/src/adminapi/apis/billing-api.ts +27 -23
  32. package/src/adminapi/apis/shared-api.ts +18 -5
  33. package/src/adminapi/models/backup-method-option.ts +6 -0
  34. package/src/adminapi.yaml +12 -0
  35. package/src/openapi/apis/backup-method-api.ts +18 -5
  36. package/src/openapi/apis/billing-api.ts +27 -23
  37. package/src/openapi/apis/shared-api.ts +18 -5
  38. package/src/openapi/models/backup-method-option.ts +6 -0
  39. package/src/openapi.yaml +12 -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kb-cloud-client-typescript",
3
- "version": "2.2.39",
3
+ "version": "2.2.41",
4
4
  "description": "Auto-generated TypeScript SDK for KubeBlocks Cloud API",
5
5
  "private": false,
6
6
  "license": "Apache-2.0",
@@ -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
 
@@ -40,18 +40,22 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
40
40
  /**
41
41
  *
42
42
  * @summary List bills
43
+ * @param {AggregationTimeType} aggregationTime The type of aggregation time
44
+ * @param {AggregationGroupType} aggregationGroup The type of aggregation group
43
45
  * @param {number} start The start of the time range for the query, unit is seconds.
44
46
  * @param {number} end The end of the time range for the query, unit is seconds.
45
47
  * @param {string} [billID] The ID of the bill
46
48
  * @param {string} [clusterID] The ID of the cluster
47
49
  * @param {string} [orgName] name of the organization
48
50
  * @param {string} [projectName] name of the project
49
- * @param {AggregationTimeType} [aggregationTime] The type of aggregation time
50
- * @param {AggregationGroupType} [aggregationGroup] The type of aggregation group
51
51
  * @param {*} [options] Override http request option.
52
52
  * @throws {RequiredError}
53
53
  */
54
- listBills: async (start: number, end: number, billID?: string, clusterID?: string, orgName?: string, projectName?: string, aggregationTime?: AggregationTimeType, aggregationGroup?: AggregationGroupType, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
54
+ listBills: async (aggregationTime: AggregationTimeType, aggregationGroup: AggregationGroupType, start: number, end: number, billID?: string, clusterID?: string, orgName?: string, projectName?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
55
+ // verify required parameter 'aggregationTime' is not null or undefined
56
+ assertParamExists('listBills', 'aggregationTime', aggregationTime)
57
+ // verify required parameter 'aggregationGroup' is not null or undefined
58
+ assertParamExists('listBills', 'aggregationGroup', aggregationGroup)
55
59
  // verify required parameter 'start' is not null or undefined
56
60
  assertParamExists('listBills', 'start', start)
57
61
  // verify required parameter 'end' is not null or undefined
@@ -182,19 +186,19 @@ export const BillingApiFp = function(configuration?: Configuration) {
182
186
  /**
183
187
  *
184
188
  * @summary List bills
189
+ * @param {AggregationTimeType} aggregationTime The type of aggregation time
190
+ * @param {AggregationGroupType} aggregationGroup The type of aggregation group
185
191
  * @param {number} start The start of the time range for the query, unit is seconds.
186
192
  * @param {number} end The end of the time range for the query, unit is seconds.
187
193
  * @param {string} [billID] The ID of the bill
188
194
  * @param {string} [clusterID] The ID of the cluster
189
195
  * @param {string} [orgName] name of the organization
190
196
  * @param {string} [projectName] name of the project
191
- * @param {AggregationTimeType} [aggregationTime] The type of aggregation time
192
- * @param {AggregationGroupType} [aggregationGroup] The type of aggregation group
193
197
  * @param {*} [options] Override http request option.
194
198
  * @throws {RequiredError}
195
199
  */
196
- async listBills(start: number, end: number, billID?: string, clusterID?: string, orgName?: string, projectName?: string, aggregationTime?: AggregationTimeType, aggregationGroup?: AggregationGroupType, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BillList>> {
197
- const localVarAxiosArgs = await localVarAxiosParamCreator.listBills(start, end, billID, clusterID, orgName, projectName, aggregationTime, aggregationGroup, options);
200
+ async listBills(aggregationTime: AggregationTimeType, aggregationGroup: AggregationGroupType, start: number, end: number, billID?: string, clusterID?: string, orgName?: string, projectName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BillList>> {
201
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listBills(aggregationTime, aggregationGroup, start, end, billID, clusterID, orgName, projectName, options);
198
202
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
199
203
  const localVarOperationServerBasePath = operationServerMap['BillingApi.listBills']?.[localVarOperationServerIndex]?.url;
200
204
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -231,7 +235,7 @@ export const BillingApiFactory = function (configuration?: Configuration, basePa
231
235
  * @throws {RequiredError}
232
236
  */
233
237
  listBills(requestParameters: BillingApiListBillsRequest, options?: RawAxiosRequestConfig): AxiosPromise<BillList> {
234
- return localVarFp.listBills(requestParameters.start, requestParameters.end, requestParameters.billID, requestParameters.clusterID, requestParameters.orgName, requestParameters.projectName, requestParameters.aggregationTime, requestParameters.aggregationGroup, options).then((request) => request(axios, basePath));
238
+ return localVarFp.listBills(requestParameters.aggregationTime, requestParameters.aggregationGroup, requestParameters.start, requestParameters.end, requestParameters.billID, requestParameters.clusterID, requestParameters.orgName, requestParameters.projectName, options).then((request) => request(axios, basePath));
235
239
  },
236
240
  /**
237
241
  *
@@ -280,6 +284,20 @@ export interface BillingApiInterface {
280
284
  * @interface BillingApiListBillsRequest
281
285
  */
282
286
  export interface BillingApiListBillsRequest {
287
+ /**
288
+ * The type of aggregation time
289
+ * @type {AggregationTimeType}
290
+ * @memberof BillingApiListBills
291
+ */
292
+ readonly aggregationTime: AggregationTimeType
293
+
294
+ /**
295
+ * The type of aggregation group
296
+ * @type {AggregationGroupType}
297
+ * @memberof BillingApiListBills
298
+ */
299
+ readonly aggregationGroup: AggregationGroupType
300
+
283
301
  /**
284
302
  * The start of the time range for the query, unit is seconds.
285
303
  * @type {number}
@@ -321,20 +339,6 @@ export interface BillingApiListBillsRequest {
321
339
  * @memberof BillingApiListBills
322
340
  */
323
341
  readonly projectName?: string
324
-
325
- /**
326
- * The type of aggregation time
327
- * @type {AggregationTimeType}
328
- * @memberof BillingApiListBills
329
- */
330
- readonly aggregationTime?: AggregationTimeType
331
-
332
- /**
333
- * The type of aggregation group
334
- * @type {AggregationGroupType}
335
- * @memberof BillingApiListBills
336
- */
337
- readonly aggregationGroup?: AggregationGroupType
338
342
  }
339
343
 
340
344
  /**
@@ -374,7 +378,7 @@ export class BillingApi extends BaseAPI implements BillingApiInterface {
374
378
  * @memberof BillingApi
375
379
  */
376
380
  public listBills(requestParameters: BillingApiListBillsRequest, options?: RawAxiosRequestConfig) {
377
- return BillingApiFp(this.configuration).listBills(requestParameters.start, requestParameters.end, requestParameters.billID, requestParameters.clusterID, requestParameters.orgName, requestParameters.projectName, requestParameters.aggregationTime, requestParameters.aggregationGroup, options).then((request) => request(this.axios, this.basePath));
381
+ return BillingApiFp(this.configuration).listBills(requestParameters.aggregationTime, requestParameters.aggregationGroup, requestParameters.start, requestParameters.end, requestParameters.billID, requestParameters.clusterID, requestParameters.orgName, requestParameters.projectName, options).then((request) => request(this.axios, this.basePath));
378
382
  }
379
383
 
380
384
  /**
@@ -3776,10 +3776,11 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
3776
3776
  * @param {boolean} [withRestoreCluster] defined whether to search for restoring cluster.
3777
3777
  * @param {boolean} [withHScale] defined whether to search for rebuilding instance.
3778
3778
  * @param {string} [component] The component type is required when withRebuildInstance/withHScale is true.
3779
+ * @param {string} [mode] The cluster mode, used to filter out unsupported backup methods.
3779
3780
  * @param {*} [options] Override http request option.
3780
3781
  * @throws {RequiredError}
3781
3782
  */
3782
- getBackupMethod: async (orgName: string, engineName: string, clusterID?: string, enablePITR?: boolean, withRebuildInstance?: boolean, withRestoreCluster?: boolean, withHScale?: boolean, component?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3783
+ getBackupMethod: async (orgName: string, engineName: string, clusterID?: string, enablePITR?: boolean, withRebuildInstance?: boolean, withRestoreCluster?: boolean, withHScale?: boolean, component?: string, mode?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3783
3784
  // verify required parameter 'orgName' is not null or undefined
3784
3785
  assertParamExists('getBackupMethod', 'orgName', orgName)
3785
3786
  // verify required parameter 'engineName' is not null or undefined
@@ -3829,6 +3830,10 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
3829
3830
  localVarQueryParameter['component'] = component;
3830
3831
  }
3831
3832
 
3833
+ if (mode !== undefined) {
3834
+ localVarQueryParameter['mode'] = mode;
3835
+ }
3836
+
3832
3837
 
3833
3838
 
3834
3839
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -13186,11 +13191,12 @@ export const SharedApiFp = function(configuration?: Configuration) {
13186
13191
  * @param {boolean} [withRestoreCluster] defined whether to search for restoring cluster.
13187
13192
  * @param {boolean} [withHScale] defined whether to search for rebuilding instance.
13188
13193
  * @param {string} [component] The component type is required when withRebuildInstance/withHScale is true.
13194
+ * @param {string} [mode] The cluster mode, used to filter out unsupported backup methods.
13189
13195
  * @param {*} [options] Override http request option.
13190
13196
  * @throws {RequiredError}
13191
13197
  */
13192
- 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>> {
13193
- const localVarAxiosArgs = await localVarAxiosParamCreator.getBackupMethod(orgName, engineName, clusterID, enablePITR, withRebuildInstance, withRestoreCluster, withHScale, component, options);
13198
+ 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>> {
13199
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBackupMethod(orgName, engineName, clusterID, enablePITR, withRebuildInstance, withRestoreCluster, withHScale, component, mode, options);
13194
13200
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13195
13201
  const localVarOperationServerBasePath = operationServerMap['SharedApi.getBackupMethod']?.[localVarOperationServerIndex]?.url;
13196
13202
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -16339,7 +16345,7 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
16339
16345
  * @throws {RequiredError}
16340
16346
  */
16341
16347
  getBackupMethod(requestParameters: SharedApiGetBackupMethodRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterBackupMethod> {
16342
- 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));
16348
+ 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));
16343
16349
  },
16344
16350
  /**
16345
16351
  *
@@ -22124,6 +22130,13 @@ export interface SharedApiGetBackupMethodRequest {
22124
22130
  * @memberof SharedApiGetBackupMethod
22125
22131
  */
22126
22132
  readonly component?: string
22133
+
22134
+ /**
22135
+ * The cluster mode, used to filter out unsupported backup methods.
22136
+ * @type {string}
22137
+ * @memberof SharedApiGetBackupMethod
22138
+ */
22139
+ readonly mode?: string
22127
22140
  }
22128
22141
 
22129
22142
  /**
@@ -27719,7 +27732,7 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
27719
27732
  * @memberof SharedApi
27720
27733
  */
27721
27734
  public getBackupMethod(requestParameters: SharedApiGetBackupMethodRequest, options?: RawAxiosRequestConfig) {
27722
- 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));
27735
+ 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));
27723
27736
  }
27724
27737
 
27725
27738
  /**
@@ -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
@@ -8898,6 +8898,11 @@ paths:
8898
8898
  description: The component type is required when withRebuildInstance/withHScale is true.
8899
8899
  schema:
8900
8900
  type: string
8901
+ - name: mode
8902
+ in: query
8903
+ description: The cluster mode, used to filter out unsupported backup methods.
8904
+ schema:
8905
+ type: string
8901
8906
  responses:
8902
8907
  '200':
8903
8908
  content:
@@ -17211,11 +17216,13 @@ paths:
17211
17216
  - description: The type of aggregation time
17212
17217
  in: query
17213
17218
  name: aggregationTime
17219
+ required: true
17214
17220
  schema:
17215
17221
  $ref: '#/components/schemas/aggregationTimeType'
17216
17222
  - description: The type of aggregation group
17217
17223
  in: query
17218
17224
  name: aggregationGroup
17225
+ required: true
17219
17226
  schema:
17220
17227
  $ref: '#/components/schemas/aggregationGroupType'
17221
17228
  - $ref: '#/components/parameters/startTime'
@@ -26065,6 +26072,11 @@ components:
26065
26072
  description: |
26066
26073
  If set to true, the restore will be ready after the cluster is running.
26067
26074
  If set to false, the restore will be ready after the cluster is created.
26075
+ notSupportedModes:
26076
+ type: array
26077
+ description: The cluster modes that this backup method does not support
26078
+ items:
26079
+ type: string
26068
26080
  description:
26069
26081
  $ref: '#/components/schemas/localizedDescription'
26070
26082
  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
 
@@ -39,19 +39,23 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
39
39
  *
40
40
  * @summary List bills in the organization
41
41
  * @param {string} orgName name of the organization
42
+ * @param {AggregationTimeType} aggregationTime The type of aggregation time
43
+ * @param {OrgAggregationGroupType} aggregationGroup The type of aggregation group
42
44
  * @param {number} start The start of the time range for the query, unit is seconds.
43
45
  * @param {number} end The end of the time range for the query, unit is seconds.
44
46
  * @param {string} [billID] The ID of the bill
45
47
  * @param {string} [clusterID] The ID of the cluster
46
48
  * @param {string} [projectName] name of the project
47
- * @param {AggregationTimeType} [aggregationTime] The type of aggregation time
48
- * @param {OrgAggregationGroupType} [aggregationGroup] The type of aggregation group
49
49
  * @param {*} [options] Override http request option.
50
50
  * @throws {RequiredError}
51
51
  */
52
- listOrgBills: async (orgName: string, start: number, end: number, billID?: string, clusterID?: string, projectName?: string, aggregationTime?: AggregationTimeType, aggregationGroup?: OrgAggregationGroupType, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
52
+ listOrgBills: async (orgName: string, aggregationTime: AggregationTimeType, aggregationGroup: OrgAggregationGroupType, start: number, end: number, billID?: string, clusterID?: string, projectName?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
53
53
  // verify required parameter 'orgName' is not null or undefined
54
54
  assertParamExists('listOrgBills', 'orgName', orgName)
55
+ // verify required parameter 'aggregationTime' is not null or undefined
56
+ assertParamExists('listOrgBills', 'aggregationTime', aggregationTime)
57
+ // verify required parameter 'aggregationGroup' is not null or undefined
58
+ assertParamExists('listOrgBills', 'aggregationGroup', aggregationGroup)
55
59
  // verify required parameter 'start' is not null or undefined
56
60
  assertParamExists('listOrgBills', 'start', start)
57
61
  // verify required parameter 'end' is not null or undefined
@@ -129,18 +133,18 @@ export const BillingApiFp = function(configuration?: Configuration) {
129
133
  *
130
134
  * @summary List bills in the organization
131
135
  * @param {string} orgName name of the organization
136
+ * @param {AggregationTimeType} aggregationTime The type of aggregation time
137
+ * @param {OrgAggregationGroupType} aggregationGroup The type of aggregation group
132
138
  * @param {number} start The start of the time range for the query, unit is seconds.
133
139
  * @param {number} end The end of the time range for the query, unit is seconds.
134
140
  * @param {string} [billID] The ID of the bill
135
141
  * @param {string} [clusterID] The ID of the cluster
136
142
  * @param {string} [projectName] name of the project
137
- * @param {AggregationTimeType} [aggregationTime] The type of aggregation time
138
- * @param {OrgAggregationGroupType} [aggregationGroup] The type of aggregation group
139
143
  * @param {*} [options] Override http request option.
140
144
  * @throws {RequiredError}
141
145
  */
142
- async listOrgBills(orgName: string, start: number, end: number, billID?: string, clusterID?: string, projectName?: string, aggregationTime?: AggregationTimeType, aggregationGroup?: OrgAggregationGroupType, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BillList>> {
143
- const localVarAxiosArgs = await localVarAxiosParamCreator.listOrgBills(orgName, start, end, billID, clusterID, projectName, aggregationTime, aggregationGroup, options);
146
+ async listOrgBills(orgName: string, aggregationTime: AggregationTimeType, aggregationGroup: OrgAggregationGroupType, start: number, end: number, billID?: string, clusterID?: string, projectName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BillList>> {
147
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listOrgBills(orgName, aggregationTime, aggregationGroup, start, end, billID, clusterID, projectName, options);
144
148
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
145
149
  const localVarOperationServerBasePath = operationServerMap['BillingApi.listOrgBills']?.[localVarOperationServerIndex]?.url;
146
150
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -163,7 +167,7 @@ export const BillingApiFactory = function (configuration?: Configuration, basePa
163
167
  * @throws {RequiredError}
164
168
  */
165
169
  listOrgBills(requestParameters: BillingApiListOrgBillsRequest, options?: RawAxiosRequestConfig): AxiosPromise<BillList> {
166
- return localVarFp.listOrgBills(requestParameters.orgName, requestParameters.start, requestParameters.end, requestParameters.billID, requestParameters.clusterID, requestParameters.projectName, requestParameters.aggregationTime, requestParameters.aggregationGroup, options).then((request) => request(axios, basePath));
170
+ return localVarFp.listOrgBills(requestParameters.orgName, requestParameters.aggregationTime, requestParameters.aggregationGroup, requestParameters.start, requestParameters.end, requestParameters.billID, requestParameters.clusterID, requestParameters.projectName, options).then((request) => request(axios, basePath));
167
171
  },
168
172
  };
169
173
  };
@@ -199,6 +203,20 @@ export interface BillingApiListOrgBillsRequest {
199
203
  */
200
204
  readonly orgName: string
201
205
 
206
+ /**
207
+ * The type of aggregation time
208
+ * @type {AggregationTimeType}
209
+ * @memberof BillingApiListOrgBills
210
+ */
211
+ readonly aggregationTime: AggregationTimeType
212
+
213
+ /**
214
+ * The type of aggregation group
215
+ * @type {OrgAggregationGroupType}
216
+ * @memberof BillingApiListOrgBills
217
+ */
218
+ readonly aggregationGroup: OrgAggregationGroupType
219
+
202
220
  /**
203
221
  * The start of the time range for the query, unit is seconds.
204
222
  * @type {number}
@@ -233,20 +251,6 @@ export interface BillingApiListOrgBillsRequest {
233
251
  * @memberof BillingApiListOrgBills
234
252
  */
235
253
  readonly projectName?: string
236
-
237
- /**
238
- * The type of aggregation time
239
- * @type {AggregationTimeType}
240
- * @memberof BillingApiListOrgBills
241
- */
242
- readonly aggregationTime?: AggregationTimeType
243
-
244
- /**
245
- * The type of aggregation group
246
- * @type {OrgAggregationGroupType}
247
- * @memberof BillingApiListOrgBills
248
- */
249
- readonly aggregationGroup?: OrgAggregationGroupType
250
254
  }
251
255
 
252
256
  /**
@@ -265,7 +269,7 @@ export class BillingApi extends BaseAPI implements BillingApiInterface {
265
269
  * @memberof BillingApi
266
270
  */
267
271
  public listOrgBills(requestParameters: BillingApiListOrgBillsRequest, options?: RawAxiosRequestConfig) {
268
- return BillingApiFp(this.configuration).listOrgBills(requestParameters.orgName, requestParameters.start, requestParameters.end, requestParameters.billID, requestParameters.clusterID, requestParameters.projectName, requestParameters.aggregationTime, requestParameters.aggregationGroup, options).then((request) => request(this.axios, this.basePath));
272
+ return BillingApiFp(this.configuration).listOrgBills(requestParameters.orgName, requestParameters.aggregationTime, requestParameters.aggregationGroup, requestParameters.start, requestParameters.end, requestParameters.billID, requestParameters.clusterID, requestParameters.projectName, options).then((request) => request(this.axios, this.basePath));
269
273
  }
270
274
  }
271
275
 
@@ -4336,10 +4336,11 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
4336
4336
  * @param {boolean} [withRestoreCluster] defined whether to search for restoring cluster.
4337
4337
  * @param {boolean} [withHScale] defined whether to search for rebuilding instance.
4338
4338
  * @param {string} [component] The component type is required when withRebuildInstance/withHScale is true.
4339
+ * @param {string} [mode] The cluster mode, used to filter out unsupported backup methods.
4339
4340
  * @param {*} [options] Override http request option.
4340
4341
  * @throws {RequiredError}
4341
4342
  */
4342
- getBackupMethod: async (orgName: string, engineName: string, clusterID?: string, enablePITR?: boolean, withRebuildInstance?: boolean, withRestoreCluster?: boolean, withHScale?: boolean, component?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4343
+ getBackupMethod: async (orgName: string, engineName: string, clusterID?: string, enablePITR?: boolean, withRebuildInstance?: boolean, withRestoreCluster?: boolean, withHScale?: boolean, component?: string, mode?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4343
4344
  // verify required parameter 'orgName' is not null or undefined
4344
4345
  assertParamExists('getBackupMethod', 'orgName', orgName)
4345
4346
  // verify required parameter 'engineName' is not null or undefined
@@ -4389,6 +4390,10 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
4389
4390
  localVarQueryParameter['component'] = component;
4390
4391
  }
4391
4392
 
4393
+ if (mode !== undefined) {
4394
+ localVarQueryParameter['mode'] = mode;
4395
+ }
4396
+
4392
4397
 
4393
4398
 
4394
4399
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -13898,11 +13903,12 @@ export const SharedApiFp = function(configuration?: Configuration) {
13898
13903
  * @param {boolean} [withRestoreCluster] defined whether to search for restoring cluster.
13899
13904
  * @param {boolean} [withHScale] defined whether to search for rebuilding instance.
13900
13905
  * @param {string} [component] The component type is required when withRebuildInstance/withHScale is true.
13906
+ * @param {string} [mode] The cluster mode, used to filter out unsupported backup methods.
13901
13907
  * @param {*} [options] Override http request option.
13902
13908
  * @throws {RequiredError}
13903
13909
  */
13904
- 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>> {
13905
- const localVarAxiosArgs = await localVarAxiosParamCreator.getBackupMethod(orgName, engineName, clusterID, enablePITR, withRebuildInstance, withRestoreCluster, withHScale, component, options);
13910
+ 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>> {
13911
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBackupMethod(orgName, engineName, clusterID, enablePITR, withRebuildInstance, withRestoreCluster, withHScale, component, mode, options);
13906
13912
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13907
13913
  const localVarOperationServerBasePath = operationServerMap['SharedApi.getBackupMethod']?.[localVarOperationServerIndex]?.url;
13908
13914
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -17137,7 +17143,7 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
17137
17143
  * @throws {RequiredError}
17138
17144
  */
17139
17145
  getBackupMethod(requestParameters: SharedApiGetBackupMethodRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterBackupMethod> {
17140
- 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));
17146
+ 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));
17141
17147
  },
17142
17148
  /**
17143
17149
  *
@@ -23423,6 +23429,13 @@ export interface SharedApiGetBackupMethodRequest {
23423
23429
  * @memberof SharedApiGetBackupMethod
23424
23430
  */
23425
23431
  readonly component?: string
23432
+
23433
+ /**
23434
+ * The cluster mode, used to filter out unsupported backup methods.
23435
+ * @type {string}
23436
+ * @memberof SharedApiGetBackupMethod
23437
+ */
23438
+ readonly mode?: string
23426
23439
  }
23427
23440
 
23428
23441
  /**
@@ -29189,7 +29202,7 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
29189
29202
  * @memberof SharedApi
29190
29203
  */
29191
29204
  public getBackupMethod(requestParameters: SharedApiGetBackupMethodRequest, options?: RawAxiosRequestConfig) {
29192
- 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));
29205
+ 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));
29193
29206
  }
29194
29207
 
29195
29208
  /**
@@ -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}