kb-cloud-client-typescript 2.4.0-alpha.129 → 2.4.0-alpha.130
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/apis/dolphindb-api.d.ts +225 -0
- package/dist/adminapi/apis/dolphindb-api.d.ts.map +1 -1
- package/dist/adminapi/apis/dolphindb-api.js +243 -0
- package/dist/adminapi/apis/dolphindb-api.js.map +1 -1
- package/dist/adminapi/apis/shared-api.d.ts +224 -0
- package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
- package/dist/adminapi/apis/shared-api.js +243 -0
- package/dist/adminapi/apis/shared-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/dolphin-dbdistribution.d.ts +39 -0
- package/dist/adminapi/models/dolphin-dbdistribution.d.ts.map +1 -0
- package/dist/adminapi/models/dolphin-dbdistribution.js +16 -0
- package/dist/adminapi/models/dolphin-dbdistribution.js.map +1 -0
- package/dist/adminapi/models/dolphin-dbmigration.d.ts +43 -0
- package/dist/adminapi/models/dolphin-dbmigration.d.ts.map +1 -0
- package/dist/adminapi/models/dolphin-dbmigration.js +16 -0
- package/dist/adminapi/models/dolphin-dbmigration.js.map +1 -0
- package/dist/adminapi/models/dolphin-dbrebalance-preview.d.ts +50 -0
- package/dist/adminapi/models/dolphin-dbrebalance-preview.d.ts.map +1 -0
- package/dist/adminapi/models/dolphin-dbrebalance-preview.js +16 -0
- package/dist/adminapi/models/dolphin-dbrebalance-preview.js.map +1 -0
- package/dist/adminapi/models/dolphin-dbrebalance-request.d.ts +31 -0
- package/dist/adminapi/models/dolphin-dbrebalance-request.d.ts.map +1 -0
- package/dist/adminapi/models/dolphin-dbrebalance-request.js +16 -0
- package/dist/adminapi/models/dolphin-dbrebalance-request.js.map +1 -0
- package/dist/adminapi/models/dolphin-dbreplica-distribution.d.ts +31 -0
- package/dist/adminapi/models/dolphin-dbreplica-distribution.d.ts.map +1 -0
- package/dist/adminapi/models/dolphin-dbreplica-distribution.js +16 -0
- package/dist/adminapi/models/dolphin-dbreplica-distribution.js.map +1 -0
- package/dist/adminapi/models/dolphin-dbvolume-usage.d.ts +43 -0
- package/dist/adminapi/models/dolphin-dbvolume-usage.d.ts.map +1 -0
- package/dist/adminapi/models/dolphin-dbvolume-usage.js +16 -0
- package/dist/adminapi/models/dolphin-dbvolume-usage.js.map +1 -0
- package/dist/adminapi/models/index.d.ts +7 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +7 -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/apis/dolphindb-api.d.ts +225 -0
- package/dist/openapi/apis/dolphindb-api.d.ts.map +1 -1
- package/dist/openapi/apis/dolphindb-api.js +243 -0
- package/dist/openapi/apis/dolphindb-api.js.map +1 -1
- package/dist/openapi/apis/shared-api.d.ts +224 -0
- package/dist/openapi/apis/shared-api.d.ts.map +1 -1
- package/dist/openapi/apis/shared-api.js +243 -0
- package/dist/openapi/apis/shared-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/dolphin-dbdistribution.d.ts +39 -0
- package/dist/openapi/models/dolphin-dbdistribution.d.ts.map +1 -0
- package/dist/openapi/models/dolphin-dbdistribution.js +16 -0
- package/dist/openapi/models/dolphin-dbdistribution.js.map +1 -0
- package/dist/openapi/models/dolphin-dbmigration.d.ts +43 -0
- package/dist/openapi/models/dolphin-dbmigration.d.ts.map +1 -0
- package/dist/openapi/models/dolphin-dbmigration.js +16 -0
- package/dist/openapi/models/dolphin-dbmigration.js.map +1 -0
- package/dist/openapi/models/dolphin-dbrebalance-preview.d.ts +50 -0
- package/dist/openapi/models/dolphin-dbrebalance-preview.d.ts.map +1 -0
- package/dist/openapi/models/dolphin-dbrebalance-preview.js +16 -0
- package/dist/openapi/models/dolphin-dbrebalance-preview.js.map +1 -0
- package/dist/openapi/models/dolphin-dbrebalance-request.d.ts +31 -0
- package/dist/openapi/models/dolphin-dbrebalance-request.d.ts.map +1 -0
- package/dist/openapi/models/dolphin-dbrebalance-request.js +16 -0
- package/dist/openapi/models/dolphin-dbrebalance-request.js.map +1 -0
- package/dist/openapi/models/dolphin-dbreplica-distribution.d.ts +31 -0
- package/dist/openapi/models/dolphin-dbreplica-distribution.d.ts.map +1 -0
- package/dist/openapi/models/dolphin-dbreplica-distribution.js +16 -0
- package/dist/openapi/models/dolphin-dbreplica-distribution.js.map +1 -0
- package/dist/openapi/models/dolphin-dbvolume-usage.d.ts +43 -0
- package/dist/openapi/models/dolphin-dbvolume-usage.d.ts.map +1 -0
- package/dist/openapi/models/dolphin-dbvolume-usage.js +16 -0
- package/dist/openapi/models/dolphin-dbvolume-usage.js.map +1 -0
- package/dist/openapi/models/index.d.ts +7 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +7 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +7 -0
- package/src/adminapi/apis/backup-api.ts +116 -0
- package/src/adminapi/apis/dolphindb-api.ts +397 -0
- package/src/adminapi/apis/shared-api.ts +395 -0
- package/src/adminapi/models/backup-batch-delete.ts +30 -0
- package/src/adminapi/models/dolphin-dbdistribution.ts +48 -0
- package/src/adminapi/models/dolphin-dbmigration.ts +48 -0
- package/src/adminapi/models/dolphin-dbrebalance-preview.ts +57 -0
- package/src/adminapi/models/dolphin-dbrebalance-request.ts +36 -0
- package/src/adminapi/models/dolphin-dbreplica-distribution.ts +36 -0
- package/src/adminapi/models/dolphin-dbvolume-usage.ts +48 -0
- package/src/adminapi/models/index.ts +7 -0
- package/src/adminapi.yaml +292 -24
- package/src/openapi/.openapi-generator/FILES +7 -0
- package/src/openapi/apis/backup-api.ts +116 -0
- package/src/openapi/apis/dolphindb-api.ts +397 -0
- package/src/openapi/apis/shared-api.ts +395 -0
- package/src/openapi/models/backup-batch-delete.ts +30 -0
- package/src/openapi/models/dolphin-dbdistribution.ts +48 -0
- package/src/openapi/models/dolphin-dbmigration.ts +48 -0
- package/src/openapi/models/dolphin-dbrebalance-preview.ts +57 -0
- package/src/openapi/models/dolphin-dbrebalance-request.ts +36 -0
- package/src/openapi/models/dolphin-dbreplica-distribution.ts +36 -0
- package/src/openapi/models/dolphin-dbvolume-usage.ts +48 -0
- package/src/openapi/models/index.ts +7 -0
- package/src/openapi.yaml +292 -24
|
@@ -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
|