kb-cloud-client-typescript 2.3.0-alpha.98 → 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.
- package/dist/adminapi/apis/cluster-api.d.ts +18 -2
- package/dist/adminapi/apis/cluster-api.d.ts.map +1 -1
- package/dist/adminapi/apis/cluster-api.js +15 -5
- package/dist/adminapi/apis/cluster-api.js.map +1 -1
- package/dist/adminapi/apis/shared-api.d.ts +18 -2
- package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
- package/dist/adminapi/apis/shared-api.js +15 -5
- package/dist/adminapi/apis/shared-api.js.map +1 -1
- package/dist/adminapi/models/database-parameter-item.d.ts +6 -0
- package/dist/adminapi/models/database-parameter-item.d.ts.map +1 -1
- package/dist/adminapi/models/database-parameter-list-item.d.ts +6 -0
- package/dist/adminapi/models/database-parameter-list-item.d.ts.map +1 -1
- package/dist/openapi/apis/cluster-api.d.ts +18 -2
- package/dist/openapi/apis/cluster-api.d.ts.map +1 -1
- package/dist/openapi/apis/cluster-api.js +15 -5
- package/dist/openapi/apis/cluster-api.js.map +1 -1
- package/dist/openapi/apis/shared-api.d.ts +18 -2
- package/dist/openapi/apis/shared-api.d.ts.map +1 -1
- package/dist/openapi/apis/shared-api.js +15 -5
- package/dist/openapi/apis/shared-api.js.map +1 -1
- package/package.json +1 -1
- package/src/adminapi/apis/cluster-api.ts +31 -5
- package/src/adminapi/apis/shared-api.ts +31 -5
- package/src/adminapi/models/database-parameter-item.ts +6 -0
- package/src/adminapi/models/database-parameter-list-item.ts +6 -0
- package/src/adminapi.yaml +20 -0
- package/src/openapi/apis/cluster-api.ts +31 -5
- package/src/openapi/apis/shared-api.ts +31 -5
- package/src/openapi.yaml +12 -0
package/package.json
CHANGED
|
@@ -305,10 +305,12 @@ export const ClusterApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
305
305
|
* @summary Get cluster details by ID
|
|
306
306
|
* @param {string} orgName name of the Org
|
|
307
307
|
* @param {string} clusterID ID of the KubeBlocks cluster
|
|
308
|
+
* @param {string} [backupName] Backup name to override cluster components from its snapshot
|
|
309
|
+
* @param {string} [restoreTime] Restore time to find latest continuous backup snapshot after this time
|
|
308
310
|
* @param {*} [options] Override http request option.
|
|
309
311
|
* @throws {RequiredError}
|
|
310
312
|
*/
|
|
311
|
-
getClusterByID: async (orgName: string, clusterID: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
313
|
+
getClusterByID: async (orgName: string, clusterID: string, backupName?: string, restoreTime?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
312
314
|
// verify required parameter 'orgName' is not null or undefined
|
|
313
315
|
assertParamExists('getClusterByID', 'orgName', orgName)
|
|
314
316
|
// verify required parameter 'clusterID' is not null or undefined
|
|
@@ -330,6 +332,14 @@ export const ClusterApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
330
332
|
// authentication BearerToken required
|
|
331
333
|
await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration)
|
|
332
334
|
|
|
335
|
+
if (backupName !== undefined) {
|
|
336
|
+
localVarQueryParameter['backupName'] = backupName;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
if (restoreTime !== undefined) {
|
|
340
|
+
localVarQueryParameter['restoreTime'] = restoreTime;
|
|
341
|
+
}
|
|
342
|
+
|
|
333
343
|
|
|
334
344
|
|
|
335
345
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -1297,11 +1307,13 @@ export const ClusterApiFp = function(configuration?: Configuration) {
|
|
|
1297
1307
|
* @summary Get cluster details by ID
|
|
1298
1308
|
* @param {string} orgName name of the Org
|
|
1299
1309
|
* @param {string} clusterID ID of the KubeBlocks cluster
|
|
1310
|
+
* @param {string} [backupName] Backup name to override cluster components from its snapshot
|
|
1311
|
+
* @param {string} [restoreTime] Restore time to find latest continuous backup snapshot after this time
|
|
1300
1312
|
* @param {*} [options] Override http request option.
|
|
1301
1313
|
* @throws {RequiredError}
|
|
1302
1314
|
*/
|
|
1303
|
-
async getClusterByID(orgName: string, clusterID: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Cluster>> {
|
|
1304
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterByID(orgName, clusterID, options);
|
|
1315
|
+
async getClusterByID(orgName: string, clusterID: string, backupName?: string, restoreTime?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Cluster>> {
|
|
1316
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterByID(orgName, clusterID, backupName, restoreTime, options);
|
|
1305
1317
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1306
1318
|
const localVarOperationServerBasePath = operationServerMap['ClusterApi.getClusterByID']?.[localVarOperationServerIndex]?.url;
|
|
1307
1319
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1643,7 +1655,7 @@ export const ClusterApiFactory = function (configuration?: Configuration, basePa
|
|
|
1643
1655
|
* @throws {RequiredError}
|
|
1644
1656
|
*/
|
|
1645
1657
|
getClusterByID(requestParameters: ClusterApiGetClusterByIDRequest, options?: RawAxiosRequestConfig): AxiosPromise<Cluster> {
|
|
1646
|
-
return localVarFp.getClusterByID(requestParameters.orgName, requestParameters.clusterID, options).then((request) => request(axios, basePath));
|
|
1658
|
+
return localVarFp.getClusterByID(requestParameters.orgName, requestParameters.clusterID, requestParameters.backupName, requestParameters.restoreTime, options).then((request) => request(axios, basePath));
|
|
1647
1659
|
},
|
|
1648
1660
|
/**
|
|
1649
1661
|
* read log of the specified cluster instance
|
|
@@ -2201,6 +2213,20 @@ export interface ClusterApiGetClusterByIDRequest {
|
|
|
2201
2213
|
* @memberof ClusterApiGetClusterByID
|
|
2202
2214
|
*/
|
|
2203
2215
|
readonly clusterID: string
|
|
2216
|
+
|
|
2217
|
+
/**
|
|
2218
|
+
* Backup name to override cluster components from its snapshot
|
|
2219
|
+
* @type {string}
|
|
2220
|
+
* @memberof ClusterApiGetClusterByID
|
|
2221
|
+
*/
|
|
2222
|
+
readonly backupName?: string
|
|
2223
|
+
|
|
2224
|
+
/**
|
|
2225
|
+
* Restore time to find latest continuous backup snapshot after this time
|
|
2226
|
+
* @type {string}
|
|
2227
|
+
* @memberof ClusterApiGetClusterByID
|
|
2228
|
+
*/
|
|
2229
|
+
readonly restoreTime?: string
|
|
2204
2230
|
}
|
|
2205
2231
|
|
|
2206
2232
|
/**
|
|
@@ -2853,7 +2879,7 @@ export class ClusterApi extends BaseAPI implements ClusterApiInterface {
|
|
|
2853
2879
|
* @memberof ClusterApi
|
|
2854
2880
|
*/
|
|
2855
2881
|
public getClusterByID(requestParameters: ClusterApiGetClusterByIDRequest, options?: RawAxiosRequestConfig) {
|
|
2856
|
-
return ClusterApiFp(this.configuration).getClusterByID(requestParameters.orgName, requestParameters.clusterID, options).then((request) => request(this.axios, this.basePath));
|
|
2882
|
+
return ClusterApiFp(this.configuration).getClusterByID(requestParameters.orgName, requestParameters.clusterID, requestParameters.backupName, requestParameters.restoreTime, options).then((request) => request(this.axios, this.basePath));
|
|
2857
2883
|
}
|
|
2858
2884
|
|
|
2859
2885
|
/**
|
|
@@ -3876,10 +3876,12 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
3876
3876
|
* @summary Get cluster details by ID
|
|
3877
3877
|
* @param {string} orgName name of the Org
|
|
3878
3878
|
* @param {string} clusterID ID of the KubeBlocks cluster
|
|
3879
|
+
* @param {string} [backupName] Backup name to override cluster components from its snapshot
|
|
3880
|
+
* @param {string} [restoreTime] Restore time to find latest continuous backup snapshot after this time
|
|
3879
3881
|
* @param {*} [options] Override http request option.
|
|
3880
3882
|
* @throws {RequiredError}
|
|
3881
3883
|
*/
|
|
3882
|
-
getClusterByID: async (orgName: string, clusterID: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3884
|
+
getClusterByID: async (orgName: string, clusterID: string, backupName?: string, restoreTime?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3883
3885
|
// verify required parameter 'orgName' is not null or undefined
|
|
3884
3886
|
assertParamExists('getClusterByID', 'orgName', orgName)
|
|
3885
3887
|
// verify required parameter 'clusterID' is not null or undefined
|
|
@@ -3901,6 +3903,14 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
3901
3903
|
// authentication BearerToken required
|
|
3902
3904
|
await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration)
|
|
3903
3905
|
|
|
3906
|
+
if (backupName !== undefined) {
|
|
3907
|
+
localVarQueryParameter['backupName'] = backupName;
|
|
3908
|
+
}
|
|
3909
|
+
|
|
3910
|
+
if (restoreTime !== undefined) {
|
|
3911
|
+
localVarQueryParameter['restoreTime'] = restoreTime;
|
|
3912
|
+
}
|
|
3913
|
+
|
|
3904
3914
|
|
|
3905
3915
|
|
|
3906
3916
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -13268,11 +13278,13 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
13268
13278
|
* @summary Get cluster details by ID
|
|
13269
13279
|
* @param {string} orgName name of the Org
|
|
13270
13280
|
* @param {string} clusterID ID of the KubeBlocks cluster
|
|
13281
|
+
* @param {string} [backupName] Backup name to override cluster components from its snapshot
|
|
13282
|
+
* @param {string} [restoreTime] Restore time to find latest continuous backup snapshot after this time
|
|
13271
13283
|
* @param {*} [options] Override http request option.
|
|
13272
13284
|
* @throws {RequiredError}
|
|
13273
13285
|
*/
|
|
13274
|
-
async getClusterByID(orgName: string, clusterID: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Cluster>> {
|
|
13275
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterByID(orgName, clusterID, options);
|
|
13286
|
+
async getClusterByID(orgName: string, clusterID: string, backupName?: string, restoreTime?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Cluster>> {
|
|
13287
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterByID(orgName, clusterID, backupName, restoreTime, options);
|
|
13276
13288
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13277
13289
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.getClusterByID']?.[localVarOperationServerIndex]?.url;
|
|
13278
13290
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -16603,7 +16615,7 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
16603
16615
|
* @throws {RequiredError}
|
|
16604
16616
|
*/
|
|
16605
16617
|
getClusterByID(requestParameters: SharedApiGetClusterByIDRequest, options?: RawAxiosRequestConfig): AxiosPromise<Cluster> {
|
|
16606
|
-
return localVarFp.getClusterByID(requestParameters.orgName, requestParameters.clusterID, options).then((request) => request(axios, basePath));
|
|
16618
|
+
return localVarFp.getClusterByID(requestParameters.orgName, requestParameters.clusterID, requestParameters.backupName, requestParameters.restoreTime, options).then((request) => request(axios, basePath));
|
|
16607
16619
|
},
|
|
16608
16620
|
/**
|
|
16609
16621
|
* read log of the specified cluster instance
|
|
@@ -22688,6 +22700,20 @@ export interface SharedApiGetClusterByIDRequest {
|
|
|
22688
22700
|
* @memberof SharedApiGetClusterByID
|
|
22689
22701
|
*/
|
|
22690
22702
|
readonly clusterID: string
|
|
22703
|
+
|
|
22704
|
+
/**
|
|
22705
|
+
* Backup name to override cluster components from its snapshot
|
|
22706
|
+
* @type {string}
|
|
22707
|
+
* @memberof SharedApiGetClusterByID
|
|
22708
|
+
*/
|
|
22709
|
+
readonly backupName?: string
|
|
22710
|
+
|
|
22711
|
+
/**
|
|
22712
|
+
* Restore time to find latest continuous backup snapshot after this time
|
|
22713
|
+
* @type {string}
|
|
22714
|
+
* @memberof SharedApiGetClusterByID
|
|
22715
|
+
*/
|
|
22716
|
+
readonly restoreTime?: string
|
|
22691
22717
|
}
|
|
22692
22718
|
|
|
22693
22719
|
/**
|
|
@@ -29074,7 +29100,7 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
29074
29100
|
* @memberof SharedApi
|
|
29075
29101
|
*/
|
|
29076
29102
|
public getClusterByID(requestParameters: SharedApiGetClusterByIDRequest, options?: RawAxiosRequestConfig) {
|
|
29077
|
-
return SharedApiFp(this.configuration).getClusterByID(requestParameters.orgName, requestParameters.clusterID, options).then((request) => request(this.axios, this.basePath));
|
|
29103
|
+
return SharedApiFp(this.configuration).getClusterByID(requestParameters.orgName, requestParameters.clusterID, requestParameters.backupName, requestParameters.restoreTime, options).then((request) => request(this.axios, this.basePath));
|
|
29078
29104
|
}
|
|
29079
29105
|
|
|
29080
29106
|
/**
|
|
@@ -122,6 +122,12 @@ export interface DatabaseParameterItem {
|
|
|
122
122
|
* @memberof DatabaseParameterItem
|
|
123
123
|
*/
|
|
124
124
|
'unit'?: string;
|
|
125
|
+
/**
|
|
126
|
+
* Whether the parameter can be recovered during backup restore
|
|
127
|
+
* @type {boolean}
|
|
128
|
+
* @memberof DatabaseParameterItem
|
|
129
|
+
*/
|
|
130
|
+
'recoverable'?: boolean;
|
|
125
131
|
}
|
|
126
132
|
|
|
127
133
|
|
|
@@ -110,6 +110,12 @@ export interface DatabaseParameterListItem {
|
|
|
110
110
|
* @memberof DatabaseParameterListItem
|
|
111
111
|
*/
|
|
112
112
|
'unit'?: string;
|
|
113
|
+
/**
|
|
114
|
+
* Whether the parameter can be recovered during backup restore
|
|
115
|
+
* @type {boolean}
|
|
116
|
+
* @memberof DatabaseParameterListItem
|
|
117
|
+
*/
|
|
118
|
+
'recoverable'?: boolean;
|
|
113
119
|
}
|
|
114
120
|
|
|
115
121
|
|
package/src/adminapi.yaml
CHANGED
|
@@ -2640,6 +2640,18 @@ paths:
|
|
|
2640
2640
|
required: true
|
|
2641
2641
|
schema:
|
|
2642
2642
|
type: string
|
|
2643
|
+
- description: Backup name to override cluster components from its snapshot
|
|
2644
|
+
in: query
|
|
2645
|
+
name: backupName
|
|
2646
|
+
required: false
|
|
2647
|
+
schema:
|
|
2648
|
+
type: string
|
|
2649
|
+
- description: Restore time to find latest continuous backup snapshot after this time
|
|
2650
|
+
in: query
|
|
2651
|
+
name: restoreTime
|
|
2652
|
+
required: false
|
|
2653
|
+
schema:
|
|
2654
|
+
type: string
|
|
2643
2655
|
responses:
|
|
2644
2656
|
'200':
|
|
2645
2657
|
content:
|
|
@@ -24078,6 +24090,10 @@ components:
|
|
|
24078
24090
|
unit:
|
|
24079
24091
|
description: The unit of the parameter
|
|
24080
24092
|
type: string
|
|
24093
|
+
recoverable:
|
|
24094
|
+
description: Whether the parameter can be recovered during backup restore
|
|
24095
|
+
type: boolean
|
|
24096
|
+
default: false
|
|
24081
24097
|
databaseParameterList:
|
|
24082
24098
|
description: A list of database parameters
|
|
24083
24099
|
type: object
|
|
@@ -24156,6 +24172,10 @@ components:
|
|
|
24156
24172
|
unit:
|
|
24157
24173
|
description: The unit of the parameter
|
|
24158
24174
|
type: string
|
|
24175
|
+
recoverable:
|
|
24176
|
+
description: Whether the parameter can be recovered during backup restore
|
|
24177
|
+
type: boolean
|
|
24178
|
+
default: false
|
|
24159
24179
|
deleteDatabaseParameterItem:
|
|
24160
24180
|
description: A database parameter item for deletion
|
|
24161
24181
|
type: object
|
|
@@ -313,10 +313,12 @@ export const ClusterApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
313
313
|
* @summary Get cluster details by ID
|
|
314
314
|
* @param {string} orgName name of the Org
|
|
315
315
|
* @param {string} clusterID ID of the KubeBlocks cluster
|
|
316
|
+
* @param {string} [backupName] Backup name to override cluster components from its snapshot
|
|
317
|
+
* @param {string} [restoreTime] Restore time to find latest continuous backup snapshot after this time
|
|
316
318
|
* @param {*} [options] Override http request option.
|
|
317
319
|
* @throws {RequiredError}
|
|
318
320
|
*/
|
|
319
|
-
getClusterByID: async (orgName: string, clusterID: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
321
|
+
getClusterByID: async (orgName: string, clusterID: string, backupName?: string, restoreTime?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
320
322
|
// verify required parameter 'orgName' is not null or undefined
|
|
321
323
|
assertParamExists('getClusterByID', 'orgName', orgName)
|
|
322
324
|
// verify required parameter 'clusterID' is not null or undefined
|
|
@@ -338,6 +340,14 @@ export const ClusterApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
338
340
|
// authentication BearerToken required
|
|
339
341
|
await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration)
|
|
340
342
|
|
|
343
|
+
if (backupName !== undefined) {
|
|
344
|
+
localVarQueryParameter['backupName'] = backupName;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
if (restoreTime !== undefined) {
|
|
348
|
+
localVarQueryParameter['restoreTime'] = restoreTime;
|
|
349
|
+
}
|
|
350
|
+
|
|
341
351
|
|
|
342
352
|
|
|
343
353
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -1305,11 +1315,13 @@ export const ClusterApiFp = function(configuration?: Configuration) {
|
|
|
1305
1315
|
* @summary Get cluster details by ID
|
|
1306
1316
|
* @param {string} orgName name of the Org
|
|
1307
1317
|
* @param {string} clusterID ID of the KubeBlocks cluster
|
|
1318
|
+
* @param {string} [backupName] Backup name to override cluster components from its snapshot
|
|
1319
|
+
* @param {string} [restoreTime] Restore time to find latest continuous backup snapshot after this time
|
|
1308
1320
|
* @param {*} [options] Override http request option.
|
|
1309
1321
|
* @throws {RequiredError}
|
|
1310
1322
|
*/
|
|
1311
|
-
async getClusterByID(orgName: string, clusterID: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Cluster>> {
|
|
1312
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterByID(orgName, clusterID, options);
|
|
1323
|
+
async getClusterByID(orgName: string, clusterID: string, backupName?: string, restoreTime?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Cluster>> {
|
|
1324
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterByID(orgName, clusterID, backupName, restoreTime, options);
|
|
1313
1325
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1314
1326
|
const localVarOperationServerBasePath = operationServerMap['ClusterApi.getClusterByID']?.[localVarOperationServerIndex]?.url;
|
|
1315
1327
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1651,7 +1663,7 @@ export const ClusterApiFactory = function (configuration?: Configuration, basePa
|
|
|
1651
1663
|
* @throws {RequiredError}
|
|
1652
1664
|
*/
|
|
1653
1665
|
getClusterByID(requestParameters: ClusterApiGetClusterByIDRequest, options?: RawAxiosRequestConfig): AxiosPromise<Cluster> {
|
|
1654
|
-
return localVarFp.getClusterByID(requestParameters.orgName, requestParameters.clusterID, options).then((request) => request(axios, basePath));
|
|
1666
|
+
return localVarFp.getClusterByID(requestParameters.orgName, requestParameters.clusterID, requestParameters.backupName, requestParameters.restoreTime, options).then((request) => request(axios, basePath));
|
|
1655
1667
|
},
|
|
1656
1668
|
/**
|
|
1657
1669
|
* read log of the specified cluster instance
|
|
@@ -2216,6 +2228,20 @@ export interface ClusterApiGetClusterByIDRequest {
|
|
|
2216
2228
|
* @memberof ClusterApiGetClusterByID
|
|
2217
2229
|
*/
|
|
2218
2230
|
readonly clusterID: string
|
|
2231
|
+
|
|
2232
|
+
/**
|
|
2233
|
+
* Backup name to override cluster components from its snapshot
|
|
2234
|
+
* @type {string}
|
|
2235
|
+
* @memberof ClusterApiGetClusterByID
|
|
2236
|
+
*/
|
|
2237
|
+
readonly backupName?: string
|
|
2238
|
+
|
|
2239
|
+
/**
|
|
2240
|
+
* Restore time to find latest continuous backup snapshot after this time
|
|
2241
|
+
* @type {string}
|
|
2242
|
+
* @memberof ClusterApiGetClusterByID
|
|
2243
|
+
*/
|
|
2244
|
+
readonly restoreTime?: string
|
|
2219
2245
|
}
|
|
2220
2246
|
|
|
2221
2247
|
/**
|
|
@@ -2868,7 +2894,7 @@ export class ClusterApi extends BaseAPI implements ClusterApiInterface {
|
|
|
2868
2894
|
* @memberof ClusterApi
|
|
2869
2895
|
*/
|
|
2870
2896
|
public getClusterByID(requestParameters: ClusterApiGetClusterByIDRequest, options?: RawAxiosRequestConfig) {
|
|
2871
|
-
return ClusterApiFp(this.configuration).getClusterByID(requestParameters.orgName, requestParameters.clusterID, options).then((request) => request(this.axios, this.basePath));
|
|
2897
|
+
return ClusterApiFp(this.configuration).getClusterByID(requestParameters.orgName, requestParameters.clusterID, requestParameters.backupName, requestParameters.restoreTime, options).then((request) => request(this.axios, this.basePath));
|
|
2872
2898
|
}
|
|
2873
2899
|
|
|
2874
2900
|
/**
|
|
@@ -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);
|
|
@@ -13933,11 +13943,13 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
13933
13943
|
* @summary Get cluster details by ID
|
|
13934
13944
|
* @param {string} orgName name of the Org
|
|
13935
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
|
|
13936
13948
|
* @param {*} [options] Override http request option.
|
|
13937
13949
|
* @throws {RequiredError}
|
|
13938
13950
|
*/
|
|
13939
|
-
async getClusterByID(orgName: string, clusterID: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Cluster>> {
|
|
13940
|
-
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);
|
|
13941
13953
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13942
13954
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.getClusterByID']?.[localVarOperationServerIndex]?.url;
|
|
13943
13955
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -17359,7 +17371,7 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
17359
17371
|
* @throws {RequiredError}
|
|
17360
17372
|
*/
|
|
17361
17373
|
getClusterByID(requestParameters: SharedApiGetClusterByIDRequest, options?: RawAxiosRequestConfig): AxiosPromise<Cluster> {
|
|
17362
|
-
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));
|
|
17363
17375
|
},
|
|
17364
17376
|
/**
|
|
17365
17377
|
* read log of the specified cluster instance
|
|
@@ -23927,6 +23939,20 @@ export interface SharedApiGetClusterByIDRequest {
|
|
|
23927
23939
|
* @memberof SharedApiGetClusterByID
|
|
23928
23940
|
*/
|
|
23929
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
|
|
23930
23956
|
}
|
|
23931
23957
|
|
|
23932
23958
|
/**
|
|
@@ -30500,7 +30526,7 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
30500
30526
|
* @memberof SharedApi
|
|
30501
30527
|
*/
|
|
30502
30528
|
public getClusterByID(requestParameters: SharedApiGetClusterByIDRequest, options?: RawAxiosRequestConfig) {
|
|
30503
|
-
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));
|
|
30504
30530
|
}
|
|
30505
30531
|
|
|
30506
30532
|
/**
|
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:
|