kb-cloud-client-typescript 2.3.65 → 2.3.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adminapi/apis/backup-api.d.ts +64 -0
- package/dist/adminapi/apis/backup-api.d.ts.map +1 -1
- package/dist/adminapi/apis/backup-api.js +75 -0
- package/dist/adminapi/apis/backup-api.js.map +1 -1
- package/dist/adminapi/models/backup-batch-delete.d.ts +25 -0
- package/dist/adminapi/models/backup-batch-delete.d.ts.map +1 -0
- package/dist/adminapi/models/backup-batch-delete.js +16 -0
- package/dist/adminapi/models/backup-batch-delete.js.map +1 -0
- package/dist/adminapi/models/index.d.ts +1 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +1 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/openapi/apis/backup-api.d.ts +64 -0
- package/dist/openapi/apis/backup-api.d.ts.map +1 -1
- package/dist/openapi/apis/backup-api.js +75 -0
- package/dist/openapi/apis/backup-api.js.map +1 -1
- package/dist/openapi/models/backup-batch-delete.d.ts +25 -0
- package/dist/openapi/models/backup-batch-delete.d.ts.map +1 -0
- package/dist/openapi/models/backup-batch-delete.js +16 -0
- package/dist/openapi/models/backup-batch-delete.js.map +1 -0
- package/dist/openapi/models/index.d.ts +1 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +1 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +1 -0
- package/src/adminapi/apis/backup-api.ts +116 -0
- package/src/adminapi/models/backup-batch-delete.ts +30 -0
- package/src/adminapi/models/index.ts +1 -0
- package/src/adminapi.yaml +44 -0
- package/src/openapi/.openapi-generator/FILES +1 -0
- package/src/openapi/apis/backup-api.ts +116 -0
- package/src/openapi/models/backup-batch-delete.ts +30 -0
- package/src/openapi/models/index.ts +1 -0
- package/src/openapi.yaml +44 -0
|
@@ -26,6 +26,8 @@ import type { APIErrorResponse } from '../models';
|
|
|
26
26
|
// @ts-ignore
|
|
27
27
|
import type { Backup } from '../models';
|
|
28
28
|
// @ts-ignore
|
|
29
|
+
import type { BackupBatchDelete } from '../models';
|
|
30
|
+
// @ts-ignore
|
|
29
31
|
import type { BackupCreate } from '../models';
|
|
30
32
|
// @ts-ignore
|
|
31
33
|
import type { BackupDownload } from '../models';
|
|
@@ -59,6 +61,53 @@ import type { SelectiveObjectTreeNode } from '../models';
|
|
|
59
61
|
*/
|
|
60
62
|
export const BackupApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
61
63
|
return {
|
|
64
|
+
/**
|
|
65
|
+
* Delete multiple backups in a single request. Backups which cannot be deleted are reported in the error response and do not roll back the backups that were already deleted.
|
|
66
|
+
* @summary Batch delete backups
|
|
67
|
+
* @param {string} orgName name of the Org
|
|
68
|
+
* @param {BackupBatchDelete} body
|
|
69
|
+
* @param {*} [options] Override http request option.
|
|
70
|
+
* @throws {RequiredError}
|
|
71
|
+
*/
|
|
72
|
+
batchDeleteBackups: async (orgName: string, body: BackupBatchDelete, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
73
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
74
|
+
assertParamExists('batchDeleteBackups', 'orgName', orgName)
|
|
75
|
+
// verify required parameter 'body' is not null or undefined
|
|
76
|
+
assertParamExists('batchDeleteBackups', 'body', body)
|
|
77
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/backups/batch-delete`
|
|
78
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)));
|
|
79
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
80
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
81
|
+
let baseOptions;
|
|
82
|
+
if (configuration) {
|
|
83
|
+
baseOptions = configuration.baseOptions;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
87
|
+
const localVarHeaderParameter = {} as any;
|
|
88
|
+
const localVarQueryParameter = {} as any;
|
|
89
|
+
|
|
90
|
+
// authentication BearerToken required
|
|
91
|
+
// http bearer authentication required
|
|
92
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
93
|
+
|
|
94
|
+
// authentication DigestAuth required
|
|
95
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
100
|
+
|
|
101
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
102
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
103
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
104
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
105
|
+
|
|
106
|
+
return {
|
|
107
|
+
url: toPathString(localVarUrlObj),
|
|
108
|
+
options: localVarRequestOptions,
|
|
109
|
+
};
|
|
110
|
+
},
|
|
62
111
|
/**
|
|
63
112
|
*
|
|
64
113
|
* @summary build backup object with a existing backup directory
|
|
@@ -960,6 +1009,20 @@ export const BackupApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
960
1009
|
export const BackupApiFp = function(configuration?: Configuration) {
|
|
961
1010
|
const localVarAxiosParamCreator = BackupApiAxiosParamCreator(configuration)
|
|
962
1011
|
return {
|
|
1012
|
+
/**
|
|
1013
|
+
* Delete multiple backups in a single request. Backups which cannot be deleted are reported in the error response and do not roll back the backups that were already deleted.
|
|
1014
|
+
* @summary Batch delete backups
|
|
1015
|
+
* @param {string} orgName name of the Org
|
|
1016
|
+
* @param {BackupBatchDelete} body
|
|
1017
|
+
* @param {*} [options] Override http request option.
|
|
1018
|
+
* @throws {RequiredError}
|
|
1019
|
+
*/
|
|
1020
|
+
async batchDeleteBackups(orgName: string, body: BackupBatchDelete, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1021
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.batchDeleteBackups(orgName, body, options);
|
|
1022
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1023
|
+
const localVarOperationServerBasePath = operationServerMap['BackupApi.batchDeleteBackups']?.[localVarOperationServerIndex]?.url;
|
|
1024
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1025
|
+
},
|
|
963
1026
|
/**
|
|
964
1027
|
*
|
|
965
1028
|
* @summary build backup object with a existing backup directory
|
|
@@ -1232,6 +1295,16 @@ export const BackupApiFp = function(configuration?: Configuration) {
|
|
|
1232
1295
|
export const BackupApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1233
1296
|
const localVarFp = BackupApiFp(configuration)
|
|
1234
1297
|
return {
|
|
1298
|
+
/**
|
|
1299
|
+
* Delete multiple backups in a single request. Backups which cannot be deleted are reported in the error response and do not roll back the backups that were already deleted.
|
|
1300
|
+
* @summary Batch delete backups
|
|
1301
|
+
* @param {BackupApiBatchDeleteBackupsRequest} requestParameters Request parameters.
|
|
1302
|
+
* @param {*} [options] Override http request option.
|
|
1303
|
+
* @throws {RequiredError}
|
|
1304
|
+
*/
|
|
1305
|
+
batchDeleteBackups(requestParameters: BackupApiBatchDeleteBackupsRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1306
|
+
return localVarFp.batchDeleteBackups(requestParameters.orgName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
1307
|
+
},
|
|
1235
1308
|
/**
|
|
1236
1309
|
*
|
|
1237
1310
|
* @summary build backup object with a existing backup directory
|
|
@@ -1411,6 +1484,16 @@ export const BackupApiFactory = function (configuration?: Configuration, basePat
|
|
|
1411
1484
|
* @interface BackupApi
|
|
1412
1485
|
*/
|
|
1413
1486
|
export interface BackupApiInterface {
|
|
1487
|
+
/**
|
|
1488
|
+
* Delete multiple backups in a single request. Backups which cannot be deleted are reported in the error response and do not roll back the backups that were already deleted.
|
|
1489
|
+
* @summary Batch delete backups
|
|
1490
|
+
* @param {BackupApiBatchDeleteBackupsRequest} requestParameters Request parameters.
|
|
1491
|
+
* @param {*} [options] Override http request option.
|
|
1492
|
+
* @throws {RequiredError}
|
|
1493
|
+
* @memberof BackupApiInterface
|
|
1494
|
+
*/
|
|
1495
|
+
batchDeleteBackups(requestParameters: BackupApiBatchDeleteBackupsRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
1496
|
+
|
|
1414
1497
|
/**
|
|
1415
1498
|
*
|
|
1416
1499
|
* @summary build backup object with a existing backup directory
|
|
@@ -1583,6 +1666,27 @@ export interface BackupApiInterface {
|
|
|
1583
1666
|
|
|
1584
1667
|
}
|
|
1585
1668
|
|
|
1669
|
+
/**
|
|
1670
|
+
* Request parameters for batchDeleteBackups operation in BackupApi.
|
|
1671
|
+
* @export
|
|
1672
|
+
* @interface BackupApiBatchDeleteBackupsRequest
|
|
1673
|
+
*/
|
|
1674
|
+
export interface BackupApiBatchDeleteBackupsRequest {
|
|
1675
|
+
/**
|
|
1676
|
+
* name of the Org
|
|
1677
|
+
* @type {string}
|
|
1678
|
+
* @memberof BackupApiBatchDeleteBackups
|
|
1679
|
+
*/
|
|
1680
|
+
readonly orgName: string
|
|
1681
|
+
|
|
1682
|
+
/**
|
|
1683
|
+
*
|
|
1684
|
+
* @type {BackupBatchDelete}
|
|
1685
|
+
* @memberof BackupApiBatchDeleteBackups
|
|
1686
|
+
*/
|
|
1687
|
+
readonly body: BackupBatchDelete
|
|
1688
|
+
}
|
|
1689
|
+
|
|
1586
1690
|
/**
|
|
1587
1691
|
* Request parameters for buildBackupObj operation in BackupApi.
|
|
1588
1692
|
* @export
|
|
@@ -2115,6 +2219,18 @@ export interface BackupApiViewBackupRequest {
|
|
|
2115
2219
|
* @extends {BaseAPI}
|
|
2116
2220
|
*/
|
|
2117
2221
|
export class BackupApi extends BaseAPI implements BackupApiInterface {
|
|
2222
|
+
/**
|
|
2223
|
+
* Delete multiple backups in a single request. Backups which cannot be deleted are reported in the error response and do not roll back the backups that were already deleted.
|
|
2224
|
+
* @summary Batch delete backups
|
|
2225
|
+
* @param {BackupApiBatchDeleteBackupsRequest} requestParameters Request parameters.
|
|
2226
|
+
* @param {*} [options] Override http request option.
|
|
2227
|
+
* @throws {RequiredError}
|
|
2228
|
+
* @memberof BackupApi
|
|
2229
|
+
*/
|
|
2230
|
+
public batchDeleteBackups(requestParameters: BackupApiBatchDeleteBackupsRequest, options?: RawAxiosRequestConfig) {
|
|
2231
|
+
return BackupApiFp(this.configuration).batchDeleteBackups(requestParameters.orgName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
2232
|
+
}
|
|
2233
|
+
|
|
2118
2234
|
/**
|
|
2119
2235
|
*
|
|
2120
2236
|
* @summary build backup object with a existing backup directory
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Admin API
|
|
5
|
+
* The Admin API is used to manage the ApeCloud platform.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@apecloud.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* BackupBatchDelete is the payload for deleting multiple backups
|
|
19
|
+
* @export
|
|
20
|
+
* @interface BackupBatchDelete
|
|
21
|
+
*/
|
|
22
|
+
export interface BackupBatchDelete {
|
|
23
|
+
/**
|
|
24
|
+
* IDs of the backups to delete
|
|
25
|
+
* @type {Array<string>}
|
|
26
|
+
* @memberof BackupBatchDelete
|
|
27
|
+
*/
|
|
28
|
+
'backupIds': Array<string>;
|
|
29
|
+
}
|
|
30
|
+
|
|
@@ -99,6 +99,7 @@ export * from './autohealing-config';
|
|
|
99
99
|
export * from './autohealing-list-inner';
|
|
100
100
|
export * from './available-cluster-list-inner';
|
|
101
101
|
export * from './backup';
|
|
102
|
+
export * from './backup-batch-delete';
|
|
102
103
|
export * from './backup-create';
|
|
103
104
|
export * from './backup-download';
|
|
104
105
|
export * from './backup-list';
|
package/src/adminapi.yaml
CHANGED
|
@@ -13596,6 +13596,37 @@ paths:
|
|
|
13596
13596
|
$ref: '#/components/responses/403'
|
|
13597
13597
|
tags:
|
|
13598
13598
|
- backup
|
|
13599
|
+
/admin/v1/organizations/{orgName}/backups/batch-delete:
|
|
13600
|
+
post:
|
|
13601
|
+
operationId: batchDeleteBackups
|
|
13602
|
+
summary: Batch delete backups
|
|
13603
|
+
description: Delete multiple backups in a single request. Backups which cannot be deleted are reported in the error response and do not roll back the backups that were already deleted.
|
|
13604
|
+
parameters:
|
|
13605
|
+
- description: name of the Org
|
|
13606
|
+
in: path
|
|
13607
|
+
name: orgName
|
|
13608
|
+
required: true
|
|
13609
|
+
schema:
|
|
13610
|
+
type: string
|
|
13611
|
+
requestBody:
|
|
13612
|
+
content:
|
|
13613
|
+
application/json:
|
|
13614
|
+
schema:
|
|
13615
|
+
$ref: '#/components/schemas/backupBatchDelete'
|
|
13616
|
+
required: true
|
|
13617
|
+
responses:
|
|
13618
|
+
'204':
|
|
13619
|
+
content: {}
|
|
13620
|
+
description: Returned when the backups are deleted successfully.
|
|
13621
|
+
'400':
|
|
13622
|
+
$ref: '#/components/responses/400'
|
|
13623
|
+
'401':
|
|
13624
|
+
$ref: '#/components/responses/401'
|
|
13625
|
+
'403':
|
|
13626
|
+
$ref: '#/components/responses/403'
|
|
13627
|
+
tags:
|
|
13628
|
+
- backup
|
|
13629
|
+
x-codegen-request-body-name: body
|
|
13599
13630
|
/admin/v1/organizations/{orgName}/backups/{backupId}:
|
|
13600
13631
|
delete:
|
|
13601
13632
|
operationId: deleteBackup
|
|
@@ -39923,6 +39954,19 @@ components:
|
|
|
39923
39954
|
type: string
|
|
39924
39955
|
nullable: true
|
|
39925
39956
|
type: object
|
|
39957
|
+
backupBatchDelete:
|
|
39958
|
+
description: BackupBatchDelete is the payload for deleting multiple backups
|
|
39959
|
+
type: object
|
|
39960
|
+
required:
|
|
39961
|
+
- backupIds
|
|
39962
|
+
properties:
|
|
39963
|
+
backupIds:
|
|
39964
|
+
description: IDs of the backups to delete
|
|
39965
|
+
type: array
|
|
39966
|
+
minItems: 1
|
|
39967
|
+
maxItems: 100
|
|
39968
|
+
items:
|
|
39969
|
+
type: string
|
|
39926
39970
|
backupLogByPod:
|
|
39927
39971
|
description: info of backup workload log
|
|
39928
39972
|
properties:
|
|
@@ -169,6 +169,7 @@ models/auto-inspection-run-unit.ts
|
|
|
169
169
|
models/auto-inspection.ts
|
|
170
170
|
models/autohealing-list-inner.ts
|
|
171
171
|
models/available-cluster-list-inner.ts
|
|
172
|
+
models/backup-batch-delete.ts
|
|
172
173
|
models/backup-create.ts
|
|
173
174
|
models/backup-download.ts
|
|
174
175
|
models/backup-list.ts
|
|
@@ -26,6 +26,8 @@ import type { APIErrorResponse } from '../models';
|
|
|
26
26
|
// @ts-ignore
|
|
27
27
|
import type { Backup } from '../models';
|
|
28
28
|
// @ts-ignore
|
|
29
|
+
import type { BackupBatchDelete } from '../models';
|
|
30
|
+
// @ts-ignore
|
|
29
31
|
import type { BackupCreate } from '../models';
|
|
30
32
|
// @ts-ignore
|
|
31
33
|
import type { BackupDownload } from '../models';
|
|
@@ -59,6 +61,53 @@ import type { SelectiveObjectTreeNode } from '../models';
|
|
|
59
61
|
*/
|
|
60
62
|
export const BackupApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
61
63
|
return {
|
|
64
|
+
/**
|
|
65
|
+
* Delete multiple backups in a single request. Backups which cannot be deleted are reported in the error response and do not roll back the backups that were already deleted.
|
|
66
|
+
* @summary Batch delete backups
|
|
67
|
+
* @param {string} orgName name of the Org
|
|
68
|
+
* @param {BackupBatchDelete} body
|
|
69
|
+
* @param {*} [options] Override http request option.
|
|
70
|
+
* @throws {RequiredError}
|
|
71
|
+
*/
|
|
72
|
+
batchDeleteBackups: async (orgName: string, body: BackupBatchDelete, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
73
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
74
|
+
assertParamExists('batchDeleteBackups', 'orgName', orgName)
|
|
75
|
+
// verify required parameter 'body' is not null or undefined
|
|
76
|
+
assertParamExists('batchDeleteBackups', 'body', body)
|
|
77
|
+
const localVarPath = `/api/v1/organizations/{orgName}/backups/batch-delete`
|
|
78
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)));
|
|
79
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
80
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
81
|
+
let baseOptions;
|
|
82
|
+
if (configuration) {
|
|
83
|
+
baseOptions = configuration.baseOptions;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
87
|
+
const localVarHeaderParameter = {} as any;
|
|
88
|
+
const localVarQueryParameter = {} as any;
|
|
89
|
+
|
|
90
|
+
// authentication BearerToken required
|
|
91
|
+
// http bearer authentication required
|
|
92
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
93
|
+
|
|
94
|
+
// authentication DigestAuth required
|
|
95
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
100
|
+
|
|
101
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
102
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
103
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
104
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
105
|
+
|
|
106
|
+
return {
|
|
107
|
+
url: toPathString(localVarUrlObj),
|
|
108
|
+
options: localVarRequestOptions,
|
|
109
|
+
};
|
|
110
|
+
},
|
|
62
111
|
/**
|
|
63
112
|
*
|
|
64
113
|
* @summary build backup object with a existing backup directory
|
|
@@ -968,6 +1017,20 @@ export const BackupApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
968
1017
|
export const BackupApiFp = function(configuration?: Configuration) {
|
|
969
1018
|
const localVarAxiosParamCreator = BackupApiAxiosParamCreator(configuration)
|
|
970
1019
|
return {
|
|
1020
|
+
/**
|
|
1021
|
+
* Delete multiple backups in a single request. Backups which cannot be deleted are reported in the error response and do not roll back the backups that were already deleted.
|
|
1022
|
+
* @summary Batch delete backups
|
|
1023
|
+
* @param {string} orgName name of the Org
|
|
1024
|
+
* @param {BackupBatchDelete} body
|
|
1025
|
+
* @param {*} [options] Override http request option.
|
|
1026
|
+
* @throws {RequiredError}
|
|
1027
|
+
*/
|
|
1028
|
+
async batchDeleteBackups(orgName: string, body: BackupBatchDelete, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1029
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.batchDeleteBackups(orgName, body, options);
|
|
1030
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1031
|
+
const localVarOperationServerBasePath = operationServerMap['BackupApi.batchDeleteBackups']?.[localVarOperationServerIndex]?.url;
|
|
1032
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1033
|
+
},
|
|
971
1034
|
/**
|
|
972
1035
|
*
|
|
973
1036
|
* @summary build backup object with a existing backup directory
|
|
@@ -1242,6 +1305,16 @@ export const BackupApiFp = function(configuration?: Configuration) {
|
|
|
1242
1305
|
export const BackupApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1243
1306
|
const localVarFp = BackupApiFp(configuration)
|
|
1244
1307
|
return {
|
|
1308
|
+
/**
|
|
1309
|
+
* Delete multiple backups in a single request. Backups which cannot be deleted are reported in the error response and do not roll back the backups that were already deleted.
|
|
1310
|
+
* @summary Batch delete backups
|
|
1311
|
+
* @param {BackupApiBatchDeleteBackupsRequest} requestParameters Request parameters.
|
|
1312
|
+
* @param {*} [options] Override http request option.
|
|
1313
|
+
* @throws {RequiredError}
|
|
1314
|
+
*/
|
|
1315
|
+
batchDeleteBackups(requestParameters: BackupApiBatchDeleteBackupsRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1316
|
+
return localVarFp.batchDeleteBackups(requestParameters.orgName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
1317
|
+
},
|
|
1245
1318
|
/**
|
|
1246
1319
|
*
|
|
1247
1320
|
* @summary build backup object with a existing backup directory
|
|
@@ -1421,6 +1494,16 @@ export const BackupApiFactory = function (configuration?: Configuration, basePat
|
|
|
1421
1494
|
* @interface BackupApi
|
|
1422
1495
|
*/
|
|
1423
1496
|
export interface BackupApiInterface {
|
|
1497
|
+
/**
|
|
1498
|
+
* Delete multiple backups in a single request. Backups which cannot be deleted are reported in the error response and do not roll back the backups that were already deleted.
|
|
1499
|
+
* @summary Batch delete backups
|
|
1500
|
+
* @param {BackupApiBatchDeleteBackupsRequest} requestParameters Request parameters.
|
|
1501
|
+
* @param {*} [options] Override http request option.
|
|
1502
|
+
* @throws {RequiredError}
|
|
1503
|
+
* @memberof BackupApiInterface
|
|
1504
|
+
*/
|
|
1505
|
+
batchDeleteBackups(requestParameters: BackupApiBatchDeleteBackupsRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
1506
|
+
|
|
1424
1507
|
/**
|
|
1425
1508
|
*
|
|
1426
1509
|
* @summary build backup object with a existing backup directory
|
|
@@ -1593,6 +1676,27 @@ export interface BackupApiInterface {
|
|
|
1593
1676
|
|
|
1594
1677
|
}
|
|
1595
1678
|
|
|
1679
|
+
/**
|
|
1680
|
+
* Request parameters for batchDeleteBackups operation in BackupApi.
|
|
1681
|
+
* @export
|
|
1682
|
+
* @interface BackupApiBatchDeleteBackupsRequest
|
|
1683
|
+
*/
|
|
1684
|
+
export interface BackupApiBatchDeleteBackupsRequest {
|
|
1685
|
+
/**
|
|
1686
|
+
* name of the Org
|
|
1687
|
+
* @type {string}
|
|
1688
|
+
* @memberof BackupApiBatchDeleteBackups
|
|
1689
|
+
*/
|
|
1690
|
+
readonly orgName: string
|
|
1691
|
+
|
|
1692
|
+
/**
|
|
1693
|
+
*
|
|
1694
|
+
* @type {BackupBatchDelete}
|
|
1695
|
+
* @memberof BackupApiBatchDeleteBackups
|
|
1696
|
+
*/
|
|
1697
|
+
readonly body: BackupBatchDelete
|
|
1698
|
+
}
|
|
1699
|
+
|
|
1596
1700
|
/**
|
|
1597
1701
|
* Request parameters for buildBackupObj operation in BackupApi.
|
|
1598
1702
|
* @export
|
|
@@ -2139,6 +2243,18 @@ export interface BackupApiViewBackupRequest {
|
|
|
2139
2243
|
* @extends {BaseAPI}
|
|
2140
2244
|
*/
|
|
2141
2245
|
export class BackupApi extends BaseAPI implements BackupApiInterface {
|
|
2246
|
+
/**
|
|
2247
|
+
* Delete multiple backups in a single request. Backups which cannot be deleted are reported in the error response and do not roll back the backups that were already deleted.
|
|
2248
|
+
* @summary Batch delete backups
|
|
2249
|
+
* @param {BackupApiBatchDeleteBackupsRequest} requestParameters Request parameters.
|
|
2250
|
+
* @param {*} [options] Override http request option.
|
|
2251
|
+
* @throws {RequiredError}
|
|
2252
|
+
* @memberof BackupApi
|
|
2253
|
+
*/
|
|
2254
|
+
public batchDeleteBackups(requestParameters: BackupApiBatchDeleteBackupsRequest, options?: RawAxiosRequestConfig) {
|
|
2255
|
+
return BackupApiFp(this.configuration).batchDeleteBackups(requestParameters.orgName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
2256
|
+
}
|
|
2257
|
+
|
|
2142
2258
|
/**
|
|
2143
2259
|
*
|
|
2144
2260
|
* @summary build backup object with a existing backup directory
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KubeBlocks Cloud API
|
|
5
|
+
* KubeBlocks Cloud API is a RESTful API for managing KubeBlocks Cloud resources. The API is organized around REST. Our API has predictable resource-oriented URLs, accepts `JSON-encoded` request bodies, returns `JSON-encoded` responses, and uses standard HTTP response codes, authentication, and verbs. We use standard HTTP authentication and provide API keys to identify who you are. Your API keys carry many privileges, so be sure to keep them secret! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@apecloud.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* BackupBatchDelete is the payload for deleting multiple backups
|
|
19
|
+
* @export
|
|
20
|
+
* @interface BackupBatchDelete
|
|
21
|
+
*/
|
|
22
|
+
export interface BackupBatchDelete {
|
|
23
|
+
/**
|
|
24
|
+
* IDs of the backups to delete
|
|
25
|
+
* @type {Array<string>}
|
|
26
|
+
* @memberof BackupBatchDelete
|
|
27
|
+
*/
|
|
28
|
+
'backupIds': Array<string>;
|
|
29
|
+
}
|
|
30
|
+
|
|
@@ -75,6 +75,7 @@ export * from './auto-inspection-run-unit';
|
|
|
75
75
|
export * from './autohealing-list-inner';
|
|
76
76
|
export * from './available-cluster-list-inner';
|
|
77
77
|
export * from './backup';
|
|
78
|
+
export * from './backup-batch-delete';
|
|
78
79
|
export * from './backup-create';
|
|
79
80
|
export * from './backup-download';
|
|
80
81
|
export * from './backup-list';
|
package/src/openapi.yaml
CHANGED
|
@@ -8287,6 +8287,37 @@ paths:
|
|
|
8287
8287
|
$ref: '#/components/responses/403'
|
|
8288
8288
|
tags:
|
|
8289
8289
|
- backup
|
|
8290
|
+
/api/v1/organizations/{orgName}/backups/batch-delete:
|
|
8291
|
+
post:
|
|
8292
|
+
operationId: batchDeleteBackups
|
|
8293
|
+
summary: Batch delete backups
|
|
8294
|
+
description: Delete multiple backups in a single request. Backups which cannot be deleted are reported in the error response and do not roll back the backups that were already deleted.
|
|
8295
|
+
parameters:
|
|
8296
|
+
- description: name of the Org
|
|
8297
|
+
in: path
|
|
8298
|
+
name: orgName
|
|
8299
|
+
required: true
|
|
8300
|
+
schema:
|
|
8301
|
+
type: string
|
|
8302
|
+
requestBody:
|
|
8303
|
+
content:
|
|
8304
|
+
application/json:
|
|
8305
|
+
schema:
|
|
8306
|
+
$ref: '#/components/schemas/backupBatchDelete'
|
|
8307
|
+
required: true
|
|
8308
|
+
responses:
|
|
8309
|
+
'204':
|
|
8310
|
+
content: {}
|
|
8311
|
+
description: Returned when the backups are deleted successfully.
|
|
8312
|
+
'400':
|
|
8313
|
+
$ref: '#/components/responses/400'
|
|
8314
|
+
'401':
|
|
8315
|
+
$ref: '#/components/responses/401'
|
|
8316
|
+
'403':
|
|
8317
|
+
$ref: '#/components/responses/403'
|
|
8318
|
+
tags:
|
|
8319
|
+
- backup
|
|
8320
|
+
x-codegen-request-body-name: body
|
|
8290
8321
|
/api/v1/organizations/{orgName}/backupStats:
|
|
8291
8322
|
get:
|
|
8292
8323
|
operationId: getBackupStats
|
|
@@ -32597,6 +32628,19 @@ components:
|
|
|
32597
32628
|
required:
|
|
32598
32629
|
- items
|
|
32599
32630
|
type: object
|
|
32631
|
+
backupBatchDelete:
|
|
32632
|
+
description: BackupBatchDelete is the payload for deleting multiple backups
|
|
32633
|
+
type: object
|
|
32634
|
+
required:
|
|
32635
|
+
- backupIds
|
|
32636
|
+
properties:
|
|
32637
|
+
backupIds:
|
|
32638
|
+
description: IDs of the backups to delete
|
|
32639
|
+
type: array
|
|
32640
|
+
minItems: 1
|
|
32641
|
+
maxItems: 100
|
|
32642
|
+
items:
|
|
32643
|
+
type: string
|
|
32600
32644
|
backupStatsStatus:
|
|
32601
32645
|
description: Number of backups for the status
|
|
32602
32646
|
properties:
|