kb-cloud-client-typescript 2.3.0-alpha.97 → 2.3.0-alpha.99

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/dist/adminapi/apis/cluster-api.d.ts +18 -2
  2. package/dist/adminapi/apis/cluster-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/cluster-api.js +15 -5
  4. package/dist/adminapi/apis/cluster-api.js.map +1 -1
  5. package/dist/adminapi/apis/cluster-log-api.d.ts +114 -2
  6. package/dist/adminapi/apis/cluster-log-api.d.ts.map +1 -1
  7. package/dist/adminapi/apis/cluster-log-api.js +75 -5
  8. package/dist/adminapi/apis/cluster-log-api.js.map +1 -1
  9. package/dist/adminapi/apis/shared-api.d.ts +132 -4
  10. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  11. package/dist/adminapi/apis/shared-api.js +90 -10
  12. package/dist/adminapi/apis/shared-api.js.map +1 -1
  13. package/dist/adminapi/models/database-parameter-item.d.ts +6 -0
  14. package/dist/adminapi/models/database-parameter-item.d.ts.map +1 -1
  15. package/dist/adminapi/models/database-parameter-list-item.d.ts +6 -0
  16. package/dist/adminapi/models/database-parameter-list-item.d.ts.map +1 -1
  17. package/dist/adminapi/models/storage-create.d.ts +0 -6
  18. package/dist/adminapi/models/storage-create.d.ts.map +1 -1
  19. package/dist/adminapi/models/storage-update.d.ts +0 -6
  20. package/dist/adminapi/models/storage-update.d.ts.map +1 -1
  21. package/dist/adminapi/models/storage.d.ts +0 -6
  22. package/dist/adminapi/models/storage.d.ts.map +1 -1
  23. package/dist/internalapi/models/storage-create.d.ts +0 -6
  24. package/dist/internalapi/models/storage-create.d.ts.map +1 -1
  25. package/dist/internalapi/models/storage.d.ts +0 -6
  26. package/dist/internalapi/models/storage.d.ts.map +1 -1
  27. package/dist/openapi/apis/cluster-api.d.ts +18 -2
  28. package/dist/openapi/apis/cluster-api.d.ts.map +1 -1
  29. package/dist/openapi/apis/cluster-api.js +15 -5
  30. package/dist/openapi/apis/cluster-api.js.map +1 -1
  31. package/dist/openapi/apis/cluster-log-api.d.ts +114 -2
  32. package/dist/openapi/apis/cluster-log-api.d.ts.map +1 -1
  33. package/dist/openapi/apis/cluster-log-api.js +75 -5
  34. package/dist/openapi/apis/cluster-log-api.js.map +1 -1
  35. package/dist/openapi/apis/shared-api.d.ts +132 -4
  36. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  37. package/dist/openapi/apis/shared-api.js +90 -10
  38. package/dist/openapi/apis/shared-api.js.map +1 -1
  39. package/dist/openapi/models/storage.d.ts +0 -6
  40. package/dist/openapi/models/storage.d.ts.map +1 -1
  41. package/package.json +1 -1
  42. package/src/adminapi/apis/cluster-api.ts +31 -5
  43. package/src/adminapi/apis/cluster-log-api.ts +187 -5
  44. package/src/adminapi/apis/shared-api.ts +218 -10
  45. package/src/adminapi/models/database-parameter-item.ts +6 -0
  46. package/src/adminapi/models/database-parameter-list-item.ts +6 -0
  47. package/src/adminapi/models/storage-create.ts +0 -6
  48. package/src/adminapi/models/storage-update.ts +0 -6
  49. package/src/adminapi/models/storage.ts +0 -6
  50. package/src/adminapi.yaml +88 -12
  51. package/src/internalapi/models/storage-create.ts +0 -6
  52. package/src/internalapi/models/storage.ts +0 -6
  53. package/src/internalapi.yaml +0 -8
  54. package/src/openapi/apis/cluster-api.ts +31 -5
  55. package/src/openapi/apis/cluster-log-api.ts +187 -5
  56. package/src/openapi/apis/shared-api.ts +218 -10
  57. package/src/openapi/models/storage.ts +0 -6
  58. package/src/openapi.yaml +80 -4
@@ -849,10 +849,24 @@ export const ClusterLogApiAxiosParamCreator = function (configuration?: Configur
849
849
  * @param {string} [componentName]
850
850
  * @param {string} [instanceName]
851
851
  * @param {string} [query]
852
+ * @param {number} [minExecutionTime] Minimum slow log execution time in seconds. Only applies when logType=slow.
853
+ * @param {number} [maxExecutionTime] Maximum slow log execution time in seconds. Only applies when logType=slow.
854
+ * @param {number} [minLockTime] Minimum slow log lock time in seconds. Only applies when logType=slow.
855
+ * @param {number} [maxLockTime] Maximum slow log lock time in seconds. Only applies when logType=slow.
856
+ * @param {number} [minRowsExamined]
857
+ * @param {number} [maxRowsExamined]
858
+ * @param {number} [minRowsSent]
859
+ * @param {number} [maxRowsSent]
860
+ * @param {string} [dbName]
861
+ * @param {string} [userName]
862
+ * @param {string} [clientIp]
863
+ * @param {string} [appName]
864
+ * @param {string} [templateId]
865
+ * @param {boolean} [unclassifiedOnly]
852
866
  * @param {*} [options] Override http request option.
853
867
  * @throws {RequiredError}
854
868
  */
855
- queryLogHits: async (orgName: string, clusterName: string, startTime: string, endTime: string, step: string, logType: string, componentName?: string, instanceName?: string, query?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
869
+ queryLogHits: async (orgName: string, clusterName: string, startTime: string, endTime: string, step: string, logType: string, componentName?: string, instanceName?: string, query?: string, minExecutionTime?: number, maxExecutionTime?: number, minLockTime?: number, maxLockTime?: number, minRowsExamined?: number, maxRowsExamined?: number, minRowsSent?: number, maxRowsSent?: number, dbName?: string, userName?: string, clientIp?: string, appName?: string, templateId?: string, unclassifiedOnly?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
856
870
  // verify required parameter 'orgName' is not null or undefined
857
871
  assertParamExists('queryLogHits', 'orgName', orgName)
858
872
  // verify required parameter 'clusterName' is not null or undefined
@@ -910,6 +924,62 @@ export const ClusterLogApiAxiosParamCreator = function (configuration?: Configur
910
924
  localVarQueryParameter['query'] = query;
911
925
  }
912
926
 
927
+ if (minExecutionTime !== undefined) {
928
+ localVarQueryParameter['minExecutionTime'] = minExecutionTime;
929
+ }
930
+
931
+ if (maxExecutionTime !== undefined) {
932
+ localVarQueryParameter['maxExecutionTime'] = maxExecutionTime;
933
+ }
934
+
935
+ if (minLockTime !== undefined) {
936
+ localVarQueryParameter['minLockTime'] = minLockTime;
937
+ }
938
+
939
+ if (maxLockTime !== undefined) {
940
+ localVarQueryParameter['maxLockTime'] = maxLockTime;
941
+ }
942
+
943
+ if (minRowsExamined !== undefined) {
944
+ localVarQueryParameter['minRowsExamined'] = minRowsExamined;
945
+ }
946
+
947
+ if (maxRowsExamined !== undefined) {
948
+ localVarQueryParameter['maxRowsExamined'] = maxRowsExamined;
949
+ }
950
+
951
+ if (minRowsSent !== undefined) {
952
+ localVarQueryParameter['minRowsSent'] = minRowsSent;
953
+ }
954
+
955
+ if (maxRowsSent !== undefined) {
956
+ localVarQueryParameter['maxRowsSent'] = maxRowsSent;
957
+ }
958
+
959
+ if (dbName !== undefined) {
960
+ localVarQueryParameter['dbName'] = dbName;
961
+ }
962
+
963
+ if (userName !== undefined) {
964
+ localVarQueryParameter['userName'] = userName;
965
+ }
966
+
967
+ if (clientIp !== undefined) {
968
+ localVarQueryParameter['clientIp'] = clientIp;
969
+ }
970
+
971
+ if (appName !== undefined) {
972
+ localVarQueryParameter['appName'] = appName;
973
+ }
974
+
975
+ if (templateId !== undefined) {
976
+ localVarQueryParameter['templateId'] = templateId;
977
+ }
978
+
979
+ if (unclassifiedOnly !== undefined) {
980
+ localVarQueryParameter['unclassifiedOnly'] = unclassifiedOnly;
981
+ }
982
+
913
983
 
914
984
 
915
985
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -1741,11 +1811,25 @@ export const ClusterLogApiFp = function(configuration?: Configuration) {
1741
1811
  * @param {string} [componentName]
1742
1812
  * @param {string} [instanceName]
1743
1813
  * @param {string} [query]
1814
+ * @param {number} [minExecutionTime] Minimum slow log execution time in seconds. Only applies when logType&#x3D;slow.
1815
+ * @param {number} [maxExecutionTime] Maximum slow log execution time in seconds. Only applies when logType&#x3D;slow.
1816
+ * @param {number} [minLockTime] Minimum slow log lock time in seconds. Only applies when logType&#x3D;slow.
1817
+ * @param {number} [maxLockTime] Maximum slow log lock time in seconds. Only applies when logType&#x3D;slow.
1818
+ * @param {number} [minRowsExamined]
1819
+ * @param {number} [maxRowsExamined]
1820
+ * @param {number} [minRowsSent]
1821
+ * @param {number} [maxRowsSent]
1822
+ * @param {string} [dbName]
1823
+ * @param {string} [userName]
1824
+ * @param {string} [clientIp]
1825
+ * @param {string} [appName]
1826
+ * @param {string} [templateId]
1827
+ * @param {boolean} [unclassifiedOnly]
1744
1828
  * @param {*} [options] Override http request option.
1745
1829
  * @throws {RequiredError}
1746
1830
  */
1747
- async queryLogHits(orgName: string, clusterName: string, startTime: string, endTime: string, step: string, logType: string, componentName?: string, instanceName?: string, query?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterLogHitsResponse>> {
1748
- const localVarAxiosArgs = await localVarAxiosParamCreator.queryLogHits(orgName, clusterName, startTime, endTime, step, logType, componentName, instanceName, query, options);
1831
+ async queryLogHits(orgName: string, clusterName: string, startTime: string, endTime: string, step: string, logType: string, componentName?: string, instanceName?: string, query?: string, minExecutionTime?: number, maxExecutionTime?: number, minLockTime?: number, maxLockTime?: number, minRowsExamined?: number, maxRowsExamined?: number, minRowsSent?: number, maxRowsSent?: number, dbName?: string, userName?: string, clientIp?: string, appName?: string, templateId?: string, unclassifiedOnly?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterLogHitsResponse>> {
1832
+ const localVarAxiosArgs = await localVarAxiosParamCreator.queryLogHits(orgName, clusterName, startTime, endTime, step, logType, componentName, instanceName, query, minExecutionTime, maxExecutionTime, minLockTime, maxLockTime, minRowsExamined, maxRowsExamined, minRowsSent, maxRowsSent, dbName, userName, clientIp, appName, templateId, unclassifiedOnly, options);
1749
1833
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1750
1834
  const localVarOperationServerBasePath = operationServerMap['ClusterLogApi.queryLogHits']?.[localVarOperationServerIndex]?.url;
1751
1835
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2002,7 +2086,7 @@ export const ClusterLogApiFactory = function (configuration?: Configuration, bas
2002
2086
  * @throws {RequiredError}
2003
2087
  */
2004
2088
  queryLogHits(requestParameters: ClusterLogApiQueryLogHitsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterLogHitsResponse> {
2005
- return localVarFp.queryLogHits(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.step, requestParameters.logType, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, options).then((request) => request(axios, basePath));
2089
+ return localVarFp.queryLogHits(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.step, requestParameters.logType, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, requestParameters.minExecutionTime, requestParameters.maxExecutionTime, requestParameters.minLockTime, requestParameters.maxLockTime, requestParameters.minRowsExamined, requestParameters.maxRowsExamined, requestParameters.minRowsSent, requestParameters.maxRowsSent, requestParameters.dbName, requestParameters.userName, requestParameters.clientIp, requestParameters.appName, requestParameters.templateId, requestParameters.unclassifiedOnly, options).then((request) => request(axios, basePath));
2006
2090
  },
2007
2091
  /**
2008
2092
  * Query pod logs of a cluster
@@ -3018,6 +3102,104 @@ export interface ClusterLogApiQueryLogHitsRequest {
3018
3102
  * @memberof ClusterLogApiQueryLogHits
3019
3103
  */
3020
3104
  readonly query?: string
3105
+
3106
+ /**
3107
+ * Minimum slow log execution time in seconds. Only applies when logType&#x3D;slow.
3108
+ * @type {number}
3109
+ * @memberof ClusterLogApiQueryLogHits
3110
+ */
3111
+ readonly minExecutionTime?: number
3112
+
3113
+ /**
3114
+ * Maximum slow log execution time in seconds. Only applies when logType&#x3D;slow.
3115
+ * @type {number}
3116
+ * @memberof ClusterLogApiQueryLogHits
3117
+ */
3118
+ readonly maxExecutionTime?: number
3119
+
3120
+ /**
3121
+ * Minimum slow log lock time in seconds. Only applies when logType&#x3D;slow.
3122
+ * @type {number}
3123
+ * @memberof ClusterLogApiQueryLogHits
3124
+ */
3125
+ readonly minLockTime?: number
3126
+
3127
+ /**
3128
+ * Maximum slow log lock time in seconds. Only applies when logType&#x3D;slow.
3129
+ * @type {number}
3130
+ * @memberof ClusterLogApiQueryLogHits
3131
+ */
3132
+ readonly maxLockTime?: number
3133
+
3134
+ /**
3135
+ *
3136
+ * @type {number}
3137
+ * @memberof ClusterLogApiQueryLogHits
3138
+ */
3139
+ readonly minRowsExamined?: number
3140
+
3141
+ /**
3142
+ *
3143
+ * @type {number}
3144
+ * @memberof ClusterLogApiQueryLogHits
3145
+ */
3146
+ readonly maxRowsExamined?: number
3147
+
3148
+ /**
3149
+ *
3150
+ * @type {number}
3151
+ * @memberof ClusterLogApiQueryLogHits
3152
+ */
3153
+ readonly minRowsSent?: number
3154
+
3155
+ /**
3156
+ *
3157
+ * @type {number}
3158
+ * @memberof ClusterLogApiQueryLogHits
3159
+ */
3160
+ readonly maxRowsSent?: number
3161
+
3162
+ /**
3163
+ *
3164
+ * @type {string}
3165
+ * @memberof ClusterLogApiQueryLogHits
3166
+ */
3167
+ readonly dbName?: string
3168
+
3169
+ /**
3170
+ *
3171
+ * @type {string}
3172
+ * @memberof ClusterLogApiQueryLogHits
3173
+ */
3174
+ readonly userName?: string
3175
+
3176
+ /**
3177
+ *
3178
+ * @type {string}
3179
+ * @memberof ClusterLogApiQueryLogHits
3180
+ */
3181
+ readonly clientIp?: string
3182
+
3183
+ /**
3184
+ *
3185
+ * @type {string}
3186
+ * @memberof ClusterLogApiQueryLogHits
3187
+ */
3188
+ readonly appName?: string
3189
+
3190
+ /**
3191
+ *
3192
+ * @type {string}
3193
+ * @memberof ClusterLogApiQueryLogHits
3194
+ */
3195
+ readonly templateId?: string
3196
+
3197
+ /**
3198
+ *
3199
+ * @type {boolean}
3200
+ * @memberof ClusterLogApiQueryLogHits
3201
+ */
3202
+ readonly unclassifiedOnly?: boolean
3021
3203
  }
3022
3204
 
3023
3205
  /**
@@ -3767,7 +3949,7 @@ export class ClusterLogApi extends BaseAPI implements ClusterLogApiInterface {
3767
3949
  * @memberof ClusterLogApi
3768
3950
  */
3769
3951
  public queryLogHits(requestParameters: ClusterLogApiQueryLogHitsRequest, options?: RawAxiosRequestConfig) {
3770
- return ClusterLogApiFp(this.configuration).queryLogHits(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.step, requestParameters.logType, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, options).then((request) => request(this.axios, this.basePath));
3952
+ return ClusterLogApiFp(this.configuration).queryLogHits(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.step, requestParameters.logType, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, requestParameters.minExecutionTime, requestParameters.maxExecutionTime, requestParameters.minLockTime, requestParameters.maxLockTime, requestParameters.minRowsExamined, requestParameters.maxRowsExamined, requestParameters.minRowsSent, requestParameters.maxRowsSent, requestParameters.dbName, requestParameters.userName, requestParameters.clientIp, requestParameters.appName, requestParameters.templateId, requestParameters.unclassifiedOnly, options).then((request) => request(this.axios, this.basePath));
3771
3953
  }
3772
3954
 
3773
3955
  /**
@@ -4354,10 +4354,12 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
4354
4354
  * @summary Get cluster details by ID
4355
4355
  * @param {string} orgName name of the Org
4356
4356
  * @param {string} clusterID ID of the KubeBlocks cluster
4357
+ * @param {string} [backupName] Backup name to override cluster components from its snapshot
4358
+ * @param {string} [restoreTime] Restore time to find latest continuous backup snapshot after this time
4357
4359
  * @param {*} [options] Override http request option.
4358
4360
  * @throws {RequiredError}
4359
4361
  */
4360
- getClusterByID: async (orgName: string, clusterID: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4362
+ getClusterByID: async (orgName: string, clusterID: string, backupName?: string, restoreTime?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4361
4363
  // verify required parameter 'orgName' is not null or undefined
4362
4364
  assertParamExists('getClusterByID', 'orgName', orgName)
4363
4365
  // verify required parameter 'clusterID' is not null or undefined
@@ -4379,6 +4381,14 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
4379
4381
  // authentication BearerToken required
4380
4382
  await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration)
4381
4383
 
4384
+ if (backupName !== undefined) {
4385
+ localVarQueryParameter['backupName'] = backupName;
4386
+ }
4387
+
4388
+ if (restoreTime !== undefined) {
4389
+ localVarQueryParameter['restoreTime'] = restoreTime;
4390
+ }
4391
+
4382
4392
 
4383
4393
 
4384
4394
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -9548,10 +9558,24 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
9548
9558
  * @param {string} [componentName]
9549
9559
  * @param {string} [instanceName]
9550
9560
  * @param {string} [query]
9561
+ * @param {number} [minExecutionTime] Minimum slow log execution time in seconds. Only applies when logType&#x3D;slow.
9562
+ * @param {number} [maxExecutionTime] Maximum slow log execution time in seconds. Only applies when logType&#x3D;slow.
9563
+ * @param {number} [minLockTime] Minimum slow log lock time in seconds. Only applies when logType&#x3D;slow.
9564
+ * @param {number} [maxLockTime] Maximum slow log lock time in seconds. Only applies when logType&#x3D;slow.
9565
+ * @param {number} [minRowsExamined]
9566
+ * @param {number} [maxRowsExamined]
9567
+ * @param {number} [minRowsSent]
9568
+ * @param {number} [maxRowsSent]
9569
+ * @param {string} [dbName]
9570
+ * @param {string} [userName]
9571
+ * @param {string} [clientIp]
9572
+ * @param {string} [appName]
9573
+ * @param {string} [templateId]
9574
+ * @param {boolean} [unclassifiedOnly]
9551
9575
  * @param {*} [options] Override http request option.
9552
9576
  * @throws {RequiredError}
9553
9577
  */
9554
- queryLogHits: async (orgName: string, clusterName: string, startTime: string, endTime: string, step: string, logType: string, componentName?: string, instanceName?: string, query?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9578
+ queryLogHits: async (orgName: string, clusterName: string, startTime: string, endTime: string, step: string, logType: string, componentName?: string, instanceName?: string, query?: string, minExecutionTime?: number, maxExecutionTime?: number, minLockTime?: number, maxLockTime?: number, minRowsExamined?: number, maxRowsExamined?: number, minRowsSent?: number, maxRowsSent?: number, dbName?: string, userName?: string, clientIp?: string, appName?: string, templateId?: string, unclassifiedOnly?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9555
9579
  // verify required parameter 'orgName' is not null or undefined
9556
9580
  assertParamExists('queryLogHits', 'orgName', orgName)
9557
9581
  // verify required parameter 'clusterName' is not null or undefined
@@ -9609,6 +9633,62 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
9609
9633
  localVarQueryParameter['query'] = query;
9610
9634
  }
9611
9635
 
9636
+ if (minExecutionTime !== undefined) {
9637
+ localVarQueryParameter['minExecutionTime'] = minExecutionTime;
9638
+ }
9639
+
9640
+ if (maxExecutionTime !== undefined) {
9641
+ localVarQueryParameter['maxExecutionTime'] = maxExecutionTime;
9642
+ }
9643
+
9644
+ if (minLockTime !== undefined) {
9645
+ localVarQueryParameter['minLockTime'] = minLockTime;
9646
+ }
9647
+
9648
+ if (maxLockTime !== undefined) {
9649
+ localVarQueryParameter['maxLockTime'] = maxLockTime;
9650
+ }
9651
+
9652
+ if (minRowsExamined !== undefined) {
9653
+ localVarQueryParameter['minRowsExamined'] = minRowsExamined;
9654
+ }
9655
+
9656
+ if (maxRowsExamined !== undefined) {
9657
+ localVarQueryParameter['maxRowsExamined'] = maxRowsExamined;
9658
+ }
9659
+
9660
+ if (minRowsSent !== undefined) {
9661
+ localVarQueryParameter['minRowsSent'] = minRowsSent;
9662
+ }
9663
+
9664
+ if (maxRowsSent !== undefined) {
9665
+ localVarQueryParameter['maxRowsSent'] = maxRowsSent;
9666
+ }
9667
+
9668
+ if (dbName !== undefined) {
9669
+ localVarQueryParameter['dbName'] = dbName;
9670
+ }
9671
+
9672
+ if (userName !== undefined) {
9673
+ localVarQueryParameter['userName'] = userName;
9674
+ }
9675
+
9676
+ if (clientIp !== undefined) {
9677
+ localVarQueryParameter['clientIp'] = clientIp;
9678
+ }
9679
+
9680
+ if (appName !== undefined) {
9681
+ localVarQueryParameter['appName'] = appName;
9682
+ }
9683
+
9684
+ if (templateId !== undefined) {
9685
+ localVarQueryParameter['templateId'] = templateId;
9686
+ }
9687
+
9688
+ if (unclassifiedOnly !== undefined) {
9689
+ localVarQueryParameter['unclassifiedOnly'] = unclassifiedOnly;
9690
+ }
9691
+
9612
9692
 
9613
9693
 
9614
9694
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -13863,11 +13943,13 @@ export const SharedApiFp = function(configuration?: Configuration) {
13863
13943
  * @summary Get cluster details by ID
13864
13944
  * @param {string} orgName name of the Org
13865
13945
  * @param {string} clusterID ID of the KubeBlocks cluster
13946
+ * @param {string} [backupName] Backup name to override cluster components from its snapshot
13947
+ * @param {string} [restoreTime] Restore time to find latest continuous backup snapshot after this time
13866
13948
  * @param {*} [options] Override http request option.
13867
13949
  * @throws {RequiredError}
13868
13950
  */
13869
- async getClusterByID(orgName: string, clusterID: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Cluster>> {
13870
- const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterByID(orgName, clusterID, options);
13951
+ async getClusterByID(orgName: string, clusterID: string, backupName?: string, restoreTime?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Cluster>> {
13952
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterByID(orgName, clusterID, backupName, restoreTime, options);
13871
13953
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13872
13954
  const localVarOperationServerBasePath = operationServerMap['SharedApi.getClusterByID']?.[localVarOperationServerIndex]?.url;
13873
13955
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -15513,11 +15595,25 @@ export const SharedApiFp = function(configuration?: Configuration) {
15513
15595
  * @param {string} [componentName]
15514
15596
  * @param {string} [instanceName]
15515
15597
  * @param {string} [query]
15598
+ * @param {number} [minExecutionTime] Minimum slow log execution time in seconds. Only applies when logType&#x3D;slow.
15599
+ * @param {number} [maxExecutionTime] Maximum slow log execution time in seconds. Only applies when logType&#x3D;slow.
15600
+ * @param {number} [minLockTime] Minimum slow log lock time in seconds. Only applies when logType&#x3D;slow.
15601
+ * @param {number} [maxLockTime] Maximum slow log lock time in seconds. Only applies when logType&#x3D;slow.
15602
+ * @param {number} [minRowsExamined]
15603
+ * @param {number} [maxRowsExamined]
15604
+ * @param {number} [minRowsSent]
15605
+ * @param {number} [maxRowsSent]
15606
+ * @param {string} [dbName]
15607
+ * @param {string} [userName]
15608
+ * @param {string} [clientIp]
15609
+ * @param {string} [appName]
15610
+ * @param {string} [templateId]
15611
+ * @param {boolean} [unclassifiedOnly]
15516
15612
  * @param {*} [options] Override http request option.
15517
15613
  * @throws {RequiredError}
15518
15614
  */
15519
- async queryLogHits(orgName: string, clusterName: string, startTime: string, endTime: string, step: string, logType: string, componentName?: string, instanceName?: string, query?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterLogHitsResponse>> {
15520
- const localVarAxiosArgs = await localVarAxiosParamCreator.queryLogHits(orgName, clusterName, startTime, endTime, step, logType, componentName, instanceName, query, options);
15615
+ async queryLogHits(orgName: string, clusterName: string, startTime: string, endTime: string, step: string, logType: string, componentName?: string, instanceName?: string, query?: string, minExecutionTime?: number, maxExecutionTime?: number, minLockTime?: number, maxLockTime?: number, minRowsExamined?: number, maxRowsExamined?: number, minRowsSent?: number, maxRowsSent?: number, dbName?: string, userName?: string, clientIp?: string, appName?: string, templateId?: string, unclassifiedOnly?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterLogHitsResponse>> {
15616
+ const localVarAxiosArgs = await localVarAxiosParamCreator.queryLogHits(orgName, clusterName, startTime, endTime, step, logType, componentName, instanceName, query, minExecutionTime, maxExecutionTime, minLockTime, maxLockTime, minRowsExamined, maxRowsExamined, minRowsSent, maxRowsSent, dbName, userName, clientIp, appName, templateId, unclassifiedOnly, options);
15521
15617
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
15522
15618
  const localVarOperationServerBasePath = operationServerMap['SharedApi.queryLogHits']?.[localVarOperationServerIndex]?.url;
15523
15619
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -17275,7 +17371,7 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
17275
17371
  * @throws {RequiredError}
17276
17372
  */
17277
17373
  getClusterByID(requestParameters: SharedApiGetClusterByIDRequest, options?: RawAxiosRequestConfig): AxiosPromise<Cluster> {
17278
- return localVarFp.getClusterByID(requestParameters.orgName, requestParameters.clusterID, options).then((request) => request(axios, basePath));
17374
+ return localVarFp.getClusterByID(requestParameters.orgName, requestParameters.clusterID, requestParameters.backupName, requestParameters.restoreTime, options).then((request) => request(axios, basePath));
17279
17375
  },
17280
17376
  /**
17281
17377
  * read log of the specified cluster instance
@@ -18332,7 +18428,7 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
18332
18428
  * @throws {RequiredError}
18333
18429
  */
18334
18430
  queryLogHits(requestParameters: SharedApiQueryLogHitsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterLogHitsResponse> {
18335
- return localVarFp.queryLogHits(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.step, requestParameters.logType, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, options).then((request) => request(axios, basePath));
18431
+ return localVarFp.queryLogHits(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.step, requestParameters.logType, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, requestParameters.minExecutionTime, requestParameters.maxExecutionTime, requestParameters.minLockTime, requestParameters.maxLockTime, requestParameters.minRowsExamined, requestParameters.maxRowsExamined, requestParameters.minRowsSent, requestParameters.maxRowsSent, requestParameters.dbName, requestParameters.userName, requestParameters.clientIp, requestParameters.appName, requestParameters.templateId, requestParameters.unclassifiedOnly, options).then((request) => request(axios, basePath));
18336
18432
  },
18337
18433
  /**
18338
18434
  * Query pod logs of a cluster
@@ -23843,6 +23939,20 @@ export interface SharedApiGetClusterByIDRequest {
23843
23939
  * @memberof SharedApiGetClusterByID
23844
23940
  */
23845
23941
  readonly clusterID: string
23942
+
23943
+ /**
23944
+ * Backup name to override cluster components from its snapshot
23945
+ * @type {string}
23946
+ * @memberof SharedApiGetClusterByID
23947
+ */
23948
+ readonly backupName?: string
23949
+
23950
+ /**
23951
+ * Restore time to find latest continuous backup snapshot after this time
23952
+ * @type {string}
23953
+ * @memberof SharedApiGetClusterByID
23954
+ */
23955
+ readonly restoreTime?: string
23846
23956
  }
23847
23957
 
23848
23958
  /**
@@ -27210,6 +27320,104 @@ export interface SharedApiQueryLogHitsRequest {
27210
27320
  * @memberof SharedApiQueryLogHits
27211
27321
  */
27212
27322
  readonly query?: string
27323
+
27324
+ /**
27325
+ * Minimum slow log execution time in seconds. Only applies when logType&#x3D;slow.
27326
+ * @type {number}
27327
+ * @memberof SharedApiQueryLogHits
27328
+ */
27329
+ readonly minExecutionTime?: number
27330
+
27331
+ /**
27332
+ * Maximum slow log execution time in seconds. Only applies when logType&#x3D;slow.
27333
+ * @type {number}
27334
+ * @memberof SharedApiQueryLogHits
27335
+ */
27336
+ readonly maxExecutionTime?: number
27337
+
27338
+ /**
27339
+ * Minimum slow log lock time in seconds. Only applies when logType&#x3D;slow.
27340
+ * @type {number}
27341
+ * @memberof SharedApiQueryLogHits
27342
+ */
27343
+ readonly minLockTime?: number
27344
+
27345
+ /**
27346
+ * Maximum slow log lock time in seconds. Only applies when logType&#x3D;slow.
27347
+ * @type {number}
27348
+ * @memberof SharedApiQueryLogHits
27349
+ */
27350
+ readonly maxLockTime?: number
27351
+
27352
+ /**
27353
+ *
27354
+ * @type {number}
27355
+ * @memberof SharedApiQueryLogHits
27356
+ */
27357
+ readonly minRowsExamined?: number
27358
+
27359
+ /**
27360
+ *
27361
+ * @type {number}
27362
+ * @memberof SharedApiQueryLogHits
27363
+ */
27364
+ readonly maxRowsExamined?: number
27365
+
27366
+ /**
27367
+ *
27368
+ * @type {number}
27369
+ * @memberof SharedApiQueryLogHits
27370
+ */
27371
+ readonly minRowsSent?: number
27372
+
27373
+ /**
27374
+ *
27375
+ * @type {number}
27376
+ * @memberof SharedApiQueryLogHits
27377
+ */
27378
+ readonly maxRowsSent?: number
27379
+
27380
+ /**
27381
+ *
27382
+ * @type {string}
27383
+ * @memberof SharedApiQueryLogHits
27384
+ */
27385
+ readonly dbName?: string
27386
+
27387
+ /**
27388
+ *
27389
+ * @type {string}
27390
+ * @memberof SharedApiQueryLogHits
27391
+ */
27392
+ readonly userName?: string
27393
+
27394
+ /**
27395
+ *
27396
+ * @type {string}
27397
+ * @memberof SharedApiQueryLogHits
27398
+ */
27399
+ readonly clientIp?: string
27400
+
27401
+ /**
27402
+ *
27403
+ * @type {string}
27404
+ * @memberof SharedApiQueryLogHits
27405
+ */
27406
+ readonly appName?: string
27407
+
27408
+ /**
27409
+ *
27410
+ * @type {string}
27411
+ * @memberof SharedApiQueryLogHits
27412
+ */
27413
+ readonly templateId?: string
27414
+
27415
+ /**
27416
+ *
27417
+ * @type {boolean}
27418
+ * @memberof SharedApiQueryLogHits
27419
+ */
27420
+ readonly unclassifiedOnly?: boolean
27213
27421
  }
27214
27422
 
27215
27423
  /**
@@ -30318,7 +30526,7 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
30318
30526
  * @memberof SharedApi
30319
30527
  */
30320
30528
  public getClusterByID(requestParameters: SharedApiGetClusterByIDRequest, options?: RawAxiosRequestConfig) {
30321
- return SharedApiFp(this.configuration).getClusterByID(requestParameters.orgName, requestParameters.clusterID, options).then((request) => request(this.axios, this.basePath));
30529
+ return SharedApiFp(this.configuration).getClusterByID(requestParameters.orgName, requestParameters.clusterID, requestParameters.backupName, requestParameters.restoreTime, options).then((request) => request(this.axios, this.basePath));
30322
30530
  }
30323
30531
 
30324
30532
  /**
@@ -31587,7 +31795,7 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
31587
31795
  * @memberof SharedApi
31588
31796
  */
31589
31797
  public queryLogHits(requestParameters: SharedApiQueryLogHitsRequest, options?: RawAxiosRequestConfig) {
31590
- return SharedApiFp(this.configuration).queryLogHits(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.step, requestParameters.logType, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, options).then((request) => request(this.axios, this.basePath));
31798
+ return SharedApiFp(this.configuration).queryLogHits(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.step, requestParameters.logType, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, requestParameters.minExecutionTime, requestParameters.maxExecutionTime, requestParameters.minLockTime, requestParameters.maxLockTime, requestParameters.minRowsExamined, requestParameters.maxRowsExamined, requestParameters.minRowsSent, requestParameters.maxRowsSent, requestParameters.dbName, requestParameters.userName, requestParameters.clientIp, requestParameters.appName, requestParameters.templateId, requestParameters.unclassifiedOnly, options).then((request) => request(this.axios, this.basePath));
31591
31799
  }
31592
31800
 
31593
31801
  /**
@@ -80,11 +80,5 @@ export interface Storage {
80
80
  * @memberof Storage
81
81
  */
82
82
  'tags'?: { [key: string]: string; };
83
- /**
84
- *
85
- * @type {Array<string>}
86
- * @memberof Storage
87
- */
88
- 'engines'?: Array<string>;
89
83
  }
90
84
 
package/src/openapi.yaml CHANGED
@@ -1789,6 +1789,18 @@ paths:
1789
1789
  required: true
1790
1790
  schema:
1791
1791
  type: string
1792
+ - description: Backup name to override cluster components from its snapshot
1793
+ in: query
1794
+ name: backupName
1795
+ required: false
1796
+ schema:
1797
+ type: string
1798
+ - description: Restore time to find latest continuous backup snapshot after this time
1799
+ in: query
1800
+ name: restoreTime
1801
+ required: false
1802
+ schema:
1803
+ type: string
1792
1804
  responses:
1793
1805
  '200':
1794
1806
  content:
@@ -3160,6 +3172,74 @@ paths:
3160
3172
  name: query
3161
3173
  schema:
3162
3174
  type: string
3175
+ - in: query
3176
+ name: minExecutionTime
3177
+ description: Minimum slow log execution time in seconds. Only applies when logType=slow.
3178
+ schema:
3179
+ type: number
3180
+ format: double
3181
+ - in: query
3182
+ name: maxExecutionTime
3183
+ description: Maximum slow log execution time in seconds. Only applies when logType=slow.
3184
+ schema:
3185
+ type: number
3186
+ format: double
3187
+ - in: query
3188
+ name: minLockTime
3189
+ description: Minimum slow log lock time in seconds. Only applies when logType=slow.
3190
+ schema:
3191
+ type: number
3192
+ format: double
3193
+ - in: query
3194
+ name: maxLockTime
3195
+ description: Maximum slow log lock time in seconds. Only applies when logType=slow.
3196
+ schema:
3197
+ type: number
3198
+ format: double
3199
+ - in: query
3200
+ name: minRowsExamined
3201
+ schema:
3202
+ type: integer
3203
+ format: int64
3204
+ - in: query
3205
+ name: maxRowsExamined
3206
+ schema:
3207
+ type: integer
3208
+ format: int64
3209
+ - in: query
3210
+ name: minRowsSent
3211
+ schema:
3212
+ type: integer
3213
+ format: int64
3214
+ - in: query
3215
+ name: maxRowsSent
3216
+ schema:
3217
+ type: integer
3218
+ format: int64
3219
+ - in: query
3220
+ name: dbName
3221
+ schema:
3222
+ type: string
3223
+ - in: query
3224
+ name: userName
3225
+ schema:
3226
+ type: string
3227
+ - in: query
3228
+ name: clientIp
3229
+ schema:
3230
+ type: string
3231
+ - in: query
3232
+ name: appName
3233
+ schema:
3234
+ type: string
3235
+ - in: query
3236
+ name: templateId
3237
+ schema:
3238
+ type: string
3239
+ - in: query
3240
+ name: unclassifiedOnly
3241
+ schema:
3242
+ type: boolean
3163
3243
  responses:
3164
3244
  '200':
3165
3245
  content:
@@ -29403,10 +29483,6 @@ components:
29403
29483
  description: the tags for the storage
29404
29484
  additionalProperties:
29405
29485
  type: string
29406
- engines:
29407
- type: array
29408
- items:
29409
- type: string
29410
29486
  storageList:
29411
29487
  type: array
29412
29488
  items: