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.
Files changed (115) hide show
  1. package/dist/adminapi/apis/backup-api.d.ts +64 -0
  2. package/dist/adminapi/apis/backup-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/backup-api.js +75 -0
  4. package/dist/adminapi/apis/backup-api.js.map +1 -1
  5. package/dist/adminapi/apis/dolphindb-api.d.ts +225 -0
  6. package/dist/adminapi/apis/dolphindb-api.d.ts.map +1 -1
  7. package/dist/adminapi/apis/dolphindb-api.js +243 -0
  8. package/dist/adminapi/apis/dolphindb-api.js.map +1 -1
  9. package/dist/adminapi/apis/shared-api.d.ts +224 -0
  10. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  11. package/dist/adminapi/apis/shared-api.js +243 -0
  12. package/dist/adminapi/apis/shared-api.js.map +1 -1
  13. package/dist/adminapi/models/backup-batch-delete.d.ts +25 -0
  14. package/dist/adminapi/models/backup-batch-delete.d.ts.map +1 -0
  15. package/dist/adminapi/models/backup-batch-delete.js +16 -0
  16. package/dist/adminapi/models/backup-batch-delete.js.map +1 -0
  17. package/dist/adminapi/models/dolphin-dbdistribution.d.ts +39 -0
  18. package/dist/adminapi/models/dolphin-dbdistribution.d.ts.map +1 -0
  19. package/dist/adminapi/models/dolphin-dbdistribution.js +16 -0
  20. package/dist/adminapi/models/dolphin-dbdistribution.js.map +1 -0
  21. package/dist/adminapi/models/dolphin-dbmigration.d.ts +43 -0
  22. package/dist/adminapi/models/dolphin-dbmigration.d.ts.map +1 -0
  23. package/dist/adminapi/models/dolphin-dbmigration.js +16 -0
  24. package/dist/adminapi/models/dolphin-dbmigration.js.map +1 -0
  25. package/dist/adminapi/models/dolphin-dbrebalance-preview.d.ts +50 -0
  26. package/dist/adminapi/models/dolphin-dbrebalance-preview.d.ts.map +1 -0
  27. package/dist/adminapi/models/dolphin-dbrebalance-preview.js +16 -0
  28. package/dist/adminapi/models/dolphin-dbrebalance-preview.js.map +1 -0
  29. package/dist/adminapi/models/dolphin-dbrebalance-request.d.ts +31 -0
  30. package/dist/adminapi/models/dolphin-dbrebalance-request.d.ts.map +1 -0
  31. package/dist/adminapi/models/dolphin-dbrebalance-request.js +16 -0
  32. package/dist/adminapi/models/dolphin-dbrebalance-request.js.map +1 -0
  33. package/dist/adminapi/models/dolphin-dbreplica-distribution.d.ts +31 -0
  34. package/dist/adminapi/models/dolphin-dbreplica-distribution.d.ts.map +1 -0
  35. package/dist/adminapi/models/dolphin-dbreplica-distribution.js +16 -0
  36. package/dist/adminapi/models/dolphin-dbreplica-distribution.js.map +1 -0
  37. package/dist/adminapi/models/dolphin-dbvolume-usage.d.ts +43 -0
  38. package/dist/adminapi/models/dolphin-dbvolume-usage.d.ts.map +1 -0
  39. package/dist/adminapi/models/dolphin-dbvolume-usage.js +16 -0
  40. package/dist/adminapi/models/dolphin-dbvolume-usage.js.map +1 -0
  41. package/dist/adminapi/models/index.d.ts +7 -0
  42. package/dist/adminapi/models/index.d.ts.map +1 -1
  43. package/dist/adminapi/models/index.js +7 -0
  44. package/dist/adminapi/models/index.js.map +1 -1
  45. package/dist/openapi/apis/backup-api.d.ts +64 -0
  46. package/dist/openapi/apis/backup-api.d.ts.map +1 -1
  47. package/dist/openapi/apis/backup-api.js +75 -0
  48. package/dist/openapi/apis/backup-api.js.map +1 -1
  49. package/dist/openapi/apis/dolphindb-api.d.ts +225 -0
  50. package/dist/openapi/apis/dolphindb-api.d.ts.map +1 -1
  51. package/dist/openapi/apis/dolphindb-api.js +243 -0
  52. package/dist/openapi/apis/dolphindb-api.js.map +1 -1
  53. package/dist/openapi/apis/shared-api.d.ts +224 -0
  54. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  55. package/dist/openapi/apis/shared-api.js +243 -0
  56. package/dist/openapi/apis/shared-api.js.map +1 -1
  57. package/dist/openapi/models/backup-batch-delete.d.ts +25 -0
  58. package/dist/openapi/models/backup-batch-delete.d.ts.map +1 -0
  59. package/dist/openapi/models/backup-batch-delete.js +16 -0
  60. package/dist/openapi/models/backup-batch-delete.js.map +1 -0
  61. package/dist/openapi/models/dolphin-dbdistribution.d.ts +39 -0
  62. package/dist/openapi/models/dolphin-dbdistribution.d.ts.map +1 -0
  63. package/dist/openapi/models/dolphin-dbdistribution.js +16 -0
  64. package/dist/openapi/models/dolphin-dbdistribution.js.map +1 -0
  65. package/dist/openapi/models/dolphin-dbmigration.d.ts +43 -0
  66. package/dist/openapi/models/dolphin-dbmigration.d.ts.map +1 -0
  67. package/dist/openapi/models/dolphin-dbmigration.js +16 -0
  68. package/dist/openapi/models/dolphin-dbmigration.js.map +1 -0
  69. package/dist/openapi/models/dolphin-dbrebalance-preview.d.ts +50 -0
  70. package/dist/openapi/models/dolphin-dbrebalance-preview.d.ts.map +1 -0
  71. package/dist/openapi/models/dolphin-dbrebalance-preview.js +16 -0
  72. package/dist/openapi/models/dolphin-dbrebalance-preview.js.map +1 -0
  73. package/dist/openapi/models/dolphin-dbrebalance-request.d.ts +31 -0
  74. package/dist/openapi/models/dolphin-dbrebalance-request.d.ts.map +1 -0
  75. package/dist/openapi/models/dolphin-dbrebalance-request.js +16 -0
  76. package/dist/openapi/models/dolphin-dbrebalance-request.js.map +1 -0
  77. package/dist/openapi/models/dolphin-dbreplica-distribution.d.ts +31 -0
  78. package/dist/openapi/models/dolphin-dbreplica-distribution.d.ts.map +1 -0
  79. package/dist/openapi/models/dolphin-dbreplica-distribution.js +16 -0
  80. package/dist/openapi/models/dolphin-dbreplica-distribution.js.map +1 -0
  81. package/dist/openapi/models/dolphin-dbvolume-usage.d.ts +43 -0
  82. package/dist/openapi/models/dolphin-dbvolume-usage.d.ts.map +1 -0
  83. package/dist/openapi/models/dolphin-dbvolume-usage.js +16 -0
  84. package/dist/openapi/models/dolphin-dbvolume-usage.js.map +1 -0
  85. package/dist/openapi/models/index.d.ts +7 -0
  86. package/dist/openapi/models/index.d.ts.map +1 -1
  87. package/dist/openapi/models/index.js +7 -0
  88. package/dist/openapi/models/index.js.map +1 -1
  89. package/package.json +1 -1
  90. package/src/adminapi/.openapi-generator/FILES +7 -0
  91. package/src/adminapi/apis/backup-api.ts +116 -0
  92. package/src/adminapi/apis/dolphindb-api.ts +397 -0
  93. package/src/adminapi/apis/shared-api.ts +395 -0
  94. package/src/adminapi/models/backup-batch-delete.ts +30 -0
  95. package/src/adminapi/models/dolphin-dbdistribution.ts +48 -0
  96. package/src/adminapi/models/dolphin-dbmigration.ts +48 -0
  97. package/src/adminapi/models/dolphin-dbrebalance-preview.ts +57 -0
  98. package/src/adminapi/models/dolphin-dbrebalance-request.ts +36 -0
  99. package/src/adminapi/models/dolphin-dbreplica-distribution.ts +36 -0
  100. package/src/adminapi/models/dolphin-dbvolume-usage.ts +48 -0
  101. package/src/adminapi/models/index.ts +7 -0
  102. package/src/adminapi.yaml +292 -24
  103. package/src/openapi/.openapi-generator/FILES +7 -0
  104. package/src/openapi/apis/backup-api.ts +116 -0
  105. package/src/openapi/apis/dolphindb-api.ts +397 -0
  106. package/src/openapi/apis/shared-api.ts +395 -0
  107. package/src/openapi/models/backup-batch-delete.ts +30 -0
  108. package/src/openapi/models/dolphin-dbdistribution.ts +48 -0
  109. package/src/openapi/models/dolphin-dbmigration.ts +48 -0
  110. package/src/openapi/models/dolphin-dbrebalance-preview.ts +57 -0
  111. package/src/openapi/models/dolphin-dbrebalance-request.ts +36 -0
  112. package/src/openapi/models/dolphin-dbreplica-distribution.ts +36 -0
  113. package/src/openapi/models/dolphin-dbvolume-usage.ts +48 -0
  114. package/src/openapi/models/index.ts +7 -0
  115. package/src/openapi.yaml +292 -24
@@ -196,6 +196,8 @@ import type { DmsVisualExplainRequest } from '../models';
196
196
  // @ts-ignore
197
197
  import type { DolphinDBCapabilities } from '../models';
198
198
  // @ts-ignore
199
+ import type { DolphinDBDistribution } from '../models';
200
+ // @ts-ignore
199
201
  import type { DolphinDBGroup } from '../models';
200
202
  // @ts-ignore
201
203
  import type { DolphinDBGroupCreate } from '../models';
@@ -208,6 +210,10 @@ import type { DolphinDBPermissionChange } from '../models';
208
210
  // @ts-ignore
209
211
  import type { DolphinDBPermissionSnapshot } from '../models';
210
212
  // @ts-ignore
213
+ import type { DolphinDBRebalancePreview } from '../models';
214
+ // @ts-ignore
215
+ import type { DolphinDBRebalanceRequest } from '../models';
216
+ // @ts-ignore
211
217
  import type { DolphinDBUser } from '../models';
212
218
  // @ts-ignore
213
219
  import type { DolphinDBUserCreate } from '../models';
@@ -5006,6 +5012,57 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
5006
5012
  options: localVarRequestOptions,
5007
5013
  };
5008
5014
  },
5015
+ /**
5016
+ * Submit the built-in dolphindb-rebalance Custom Ops through the platform scheduler. Returns the unified taskId; use platform task APIs for history and status. A timeout or cancellation does not cancel native migrations. Do not automatically resubmit a timed-out request.
5017
+ * @summary DolphinDB CreateRebalance
5018
+ * @param {string} orgName
5019
+ * @param {string} clusterName
5020
+ * @param {DolphinDBRebalanceRequest} dolphinDBRebalanceRequest
5021
+ * @param {*} [options] Override http request option.
5022
+ * @throws {RequiredError}
5023
+ */
5024
+ dolphinDBCreateRebalance: async (orgName: string, clusterName: string, dolphinDBRebalanceRequest: DolphinDBRebalanceRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5025
+ // verify required parameter 'orgName' is not null or undefined
5026
+ assertParamExists('dolphinDBCreateRebalance', 'orgName', orgName)
5027
+ // verify required parameter 'clusterName' is not null or undefined
5028
+ assertParamExists('dolphinDBCreateRebalance', 'clusterName', clusterName)
5029
+ // verify required parameter 'dolphinDBRebalanceRequest' is not null or undefined
5030
+ assertParamExists('dolphinDBCreateRebalance', 'dolphinDBRebalanceRequest', dolphinDBRebalanceRequest)
5031
+ const localVarPath = `/admin/v1/data/dolphindb/organizations/{orgName}/clusters/{clusterName}/rebalance/operations`
5032
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
5033
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
5034
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5035
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5036
+ let baseOptions;
5037
+ if (configuration) {
5038
+ baseOptions = configuration.baseOptions;
5039
+ }
5040
+
5041
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
5042
+ const localVarHeaderParameter = {} as any;
5043
+ const localVarQueryParameter = {} as any;
5044
+
5045
+ // authentication BearerToken required
5046
+ // http bearer authentication required
5047
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
5048
+
5049
+ // authentication DigestAuth required
5050
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
5051
+
5052
+
5053
+
5054
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5055
+
5056
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5057
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5058
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5059
+ localVarRequestOptions.data = serializeDataIfNeeded(dolphinDBRebalanceRequest, localVarRequestOptions, configuration)
5060
+
5061
+ return {
5062
+ url: toPathString(localVarUrlObj),
5063
+ options: localVarRequestOptions,
5064
+ };
5065
+ },
5009
5066
  /**
5010
5067
  *
5011
5068
  * @summary DolphinDB CreateUser
@@ -5191,6 +5248,51 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
5191
5248
 
5192
5249
 
5193
5250
 
5251
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5252
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5253
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5254
+
5255
+ return {
5256
+ url: toPathString(localVarUrlObj),
5257
+ options: localVarRequestOptions,
5258
+ };
5259
+ },
5260
+ /**
5261
+ * Filesystem bytes and physical chunk replica counts (including metadata/unready replicas). Not logical data size or healthy-copy counts.
5262
+ * @summary DolphinDB GetDistribution
5263
+ * @param {string} orgName
5264
+ * @param {string} clusterName
5265
+ * @param {*} [options] Override http request option.
5266
+ * @throws {RequiredError}
5267
+ */
5268
+ dolphinDBGetDistribution: async (orgName: string, clusterName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5269
+ // verify required parameter 'orgName' is not null or undefined
5270
+ assertParamExists('dolphinDBGetDistribution', 'orgName', orgName)
5271
+ // verify required parameter 'clusterName' is not null or undefined
5272
+ assertParamExists('dolphinDBGetDistribution', 'clusterName', clusterName)
5273
+ const localVarPath = `/admin/v1/data/dolphindb/organizations/{orgName}/clusters/{clusterName}/distribution`
5274
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
5275
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
5276
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5277
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5278
+ let baseOptions;
5279
+ if (configuration) {
5280
+ baseOptions = configuration.baseOptions;
5281
+ }
5282
+
5283
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5284
+ const localVarHeaderParameter = {} as any;
5285
+ const localVarQueryParameter = {} as any;
5286
+
5287
+ // authentication BearerToken required
5288
+ // http bearer authentication required
5289
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
5290
+
5291
+ // authentication DigestAuth required
5292
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
5293
+
5294
+
5295
+
5194
5296
  setSearchParams(localVarUrlObj, localVarQueryParameter);
5195
5297
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5196
5298
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -5334,6 +5436,66 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
5334
5436
 
5335
5437
 
5336
5438
 
5439
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5440
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5441
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5442
+
5443
+ return {
5444
+ url: toPathString(localVarUrlObj),
5445
+ options: localVarRequestOptions,
5446
+ };
5447
+ },
5448
+ /**
5449
+ * Read-only preview recalculated on every request. Execution recomputes the actual plan. This operation does not scale the cluster or drain a node.
5450
+ * @summary DolphinDB PreviewRebalance
5451
+ * @param {string} orgName
5452
+ * @param {string} clusterName
5453
+ * @param {number} [offset]
5454
+ * @param {number} [limit]
5455
+ * @param {number} [updatedBeforeDays]
5456
+ * @param {*} [options] Override http request option.
5457
+ * @throws {RequiredError}
5458
+ */
5459
+ dolphinDBPreviewRebalance: async (orgName: string, clusterName: string, offset?: number, limit?: number, updatedBeforeDays?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5460
+ // verify required parameter 'orgName' is not null or undefined
5461
+ assertParamExists('dolphinDBPreviewRebalance', 'orgName', orgName)
5462
+ // verify required parameter 'clusterName' is not null or undefined
5463
+ assertParamExists('dolphinDBPreviewRebalance', 'clusterName', clusterName)
5464
+ const localVarPath = `/admin/v1/data/dolphindb/organizations/{orgName}/clusters/{clusterName}/rebalance/preview`
5465
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
5466
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
5467
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5468
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5469
+ let baseOptions;
5470
+ if (configuration) {
5471
+ baseOptions = configuration.baseOptions;
5472
+ }
5473
+
5474
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5475
+ const localVarHeaderParameter = {} as any;
5476
+ const localVarQueryParameter = {} as any;
5477
+
5478
+ // authentication BearerToken required
5479
+ // http bearer authentication required
5480
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
5481
+
5482
+ // authentication DigestAuth required
5483
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
5484
+
5485
+ if (offset !== undefined) {
5486
+ localVarQueryParameter['offset'] = offset;
5487
+ }
5488
+
5489
+ if (limit !== undefined) {
5490
+ localVarQueryParameter['limit'] = limit;
5491
+ }
5492
+
5493
+ if (updatedBeforeDays !== undefined) {
5494
+ localVarQueryParameter['updatedBeforeDays'] = updatedBeforeDays;
5495
+ }
5496
+
5497
+
5498
+
5337
5499
  setSearchParams(localVarUrlObj, localVarQueryParameter);
5338
5500
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5339
5501
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -21335,6 +21497,21 @@ export const SharedApiFp = function(configuration?: Configuration) {
21335
21497
  const localVarOperationServerBasePath = operationServerMap['SharedApi.dolphinDBCreateGroup']?.[localVarOperationServerIndex]?.url;
21336
21498
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21337
21499
  },
21500
+ /**
21501
+ * Submit the built-in dolphindb-rebalance Custom Ops through the platform scheduler. Returns the unified taskId; use platform task APIs for history and status. A timeout or cancellation does not cancel native migrations. Do not automatically resubmit a timed-out request.
21502
+ * @summary DolphinDB CreateRebalance
21503
+ * @param {string} orgName
21504
+ * @param {string} clusterName
21505
+ * @param {DolphinDBRebalanceRequest} dolphinDBRebalanceRequest
21506
+ * @param {*} [options] Override http request option.
21507
+ * @throws {RequiredError}
21508
+ */
21509
+ async dolphinDBCreateRebalance(orgName: string, clusterName: string, dolphinDBRebalanceRequest: DolphinDBRebalanceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OpsRequestName>> {
21510
+ const localVarAxiosArgs = await localVarAxiosParamCreator.dolphinDBCreateRebalance(orgName, clusterName, dolphinDBRebalanceRequest, options);
21511
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21512
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.dolphinDBCreateRebalance']?.[localVarOperationServerIndex]?.url;
21513
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21514
+ },
21338
21515
  /**
21339
21516
  *
21340
21517
  * @summary DolphinDB CreateUser
@@ -21394,6 +21571,20 @@ export const SharedApiFp = function(configuration?: Configuration) {
21394
21571
  const localVarOperationServerBasePath = operationServerMap['SharedApi.dolphinDBGetCapabilities']?.[localVarOperationServerIndex]?.url;
21395
21572
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21396
21573
  },
21574
+ /**
21575
+ * Filesystem bytes and physical chunk replica counts (including metadata/unready replicas). Not logical data size or healthy-copy counts.
21576
+ * @summary DolphinDB GetDistribution
21577
+ * @param {string} orgName
21578
+ * @param {string} clusterName
21579
+ * @param {*} [options] Override http request option.
21580
+ * @throws {RequiredError}
21581
+ */
21582
+ async dolphinDBGetDistribution(orgName: string, clusterName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DolphinDBDistribution>> {
21583
+ const localVarAxiosArgs = await localVarAxiosParamCreator.dolphinDBGetDistribution(orgName, clusterName, options);
21584
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21585
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.dolphinDBGetDistribution']?.[localVarOperationServerIndex]?.url;
21586
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21587
+ },
21397
21588
  /**
21398
21589
  *
21399
21590
  * @summary DolphinDB GetPermissions
@@ -21438,6 +21629,23 @@ export const SharedApiFp = function(configuration?: Configuration) {
21438
21629
  const localVarOperationServerBasePath = operationServerMap['SharedApi.dolphinDBListUsers']?.[localVarOperationServerIndex]?.url;
21439
21630
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21440
21631
  },
21632
+ /**
21633
+ * Read-only preview recalculated on every request. Execution recomputes the actual plan. This operation does not scale the cluster or drain a node.
21634
+ * @summary DolphinDB PreviewRebalance
21635
+ * @param {string} orgName
21636
+ * @param {string} clusterName
21637
+ * @param {number} [offset]
21638
+ * @param {number} [limit]
21639
+ * @param {number} [updatedBeforeDays]
21640
+ * @param {*} [options] Override http request option.
21641
+ * @throws {RequiredError}
21642
+ */
21643
+ async dolphinDBPreviewRebalance(orgName: string, clusterName: string, offset?: number, limit?: number, updatedBeforeDays?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DolphinDBRebalancePreview>> {
21644
+ const localVarAxiosArgs = await localVarAxiosParamCreator.dolphinDBPreviewRebalance(orgName, clusterName, offset, limit, updatedBeforeDays, options);
21645
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21646
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.dolphinDBPreviewRebalance']?.[localVarOperationServerIndex]?.url;
21647
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21648
+ },
21441
21649
  /**
21442
21650
  *
21443
21651
  * @summary Download full backup
@@ -26527,6 +26735,16 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
26527
26735
  dolphinDBCreateGroup(requestParameters: SharedApiDolphinDBCreateGroupRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
26528
26736
  return localVarFp.dolphinDBCreateGroup(requestParameters.orgName, requestParameters.clusterName, requestParameters.dolphinDBGroupCreate, options).then((request) => request(axios, basePath));
26529
26737
  },
26738
+ /**
26739
+ * Submit the built-in dolphindb-rebalance Custom Ops through the platform scheduler. Returns the unified taskId; use platform task APIs for history and status. A timeout or cancellation does not cancel native migrations. Do not automatically resubmit a timed-out request.
26740
+ * @summary DolphinDB CreateRebalance
26741
+ * @param {SharedApiDolphinDBCreateRebalanceRequest} requestParameters Request parameters.
26742
+ * @param {*} [options] Override http request option.
26743
+ * @throws {RequiredError}
26744
+ */
26745
+ dolphinDBCreateRebalance(requestParameters: SharedApiDolphinDBCreateRebalanceRequest, options?: RawAxiosRequestConfig): AxiosPromise<OpsRequestName> {
26746
+ return localVarFp.dolphinDBCreateRebalance(requestParameters.orgName, requestParameters.clusterName, requestParameters.dolphinDBRebalanceRequest, options).then((request) => request(axios, basePath));
26747
+ },
26530
26748
  /**
26531
26749
  *
26532
26750
  * @summary DolphinDB CreateUser
@@ -26567,6 +26785,16 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
26567
26785
  dolphinDBGetCapabilities(requestParameters: SharedApiDolphinDBGetCapabilitiesRequest, options?: RawAxiosRequestConfig): AxiosPromise<DolphinDBCapabilities> {
26568
26786
  return localVarFp.dolphinDBGetCapabilities(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
26569
26787
  },
26788
+ /**
26789
+ * Filesystem bytes and physical chunk replica counts (including metadata/unready replicas). Not logical data size or healthy-copy counts.
26790
+ * @summary DolphinDB GetDistribution
26791
+ * @param {SharedApiDolphinDBGetDistributionRequest} requestParameters Request parameters.
26792
+ * @param {*} [options] Override http request option.
26793
+ * @throws {RequiredError}
26794
+ */
26795
+ dolphinDBGetDistribution(requestParameters: SharedApiDolphinDBGetDistributionRequest, options?: RawAxiosRequestConfig): AxiosPromise<DolphinDBDistribution> {
26796
+ return localVarFp.dolphinDBGetDistribution(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
26797
+ },
26570
26798
  /**
26571
26799
  *
26572
26800
  * @summary DolphinDB GetPermissions
@@ -26597,6 +26825,16 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
26597
26825
  dolphinDBListUsers(requestParameters: SharedApiDolphinDBListUsersRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<DolphinDBUser>> {
26598
26826
  return localVarFp.dolphinDBListUsers(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
26599
26827
  },
26828
+ /**
26829
+ * Read-only preview recalculated on every request. Execution recomputes the actual plan. This operation does not scale the cluster or drain a node.
26830
+ * @summary DolphinDB PreviewRebalance
26831
+ * @param {SharedApiDolphinDBPreviewRebalanceRequest} requestParameters Request parameters.
26832
+ * @param {*} [options] Override http request option.
26833
+ * @throws {RequiredError}
26834
+ */
26835
+ dolphinDBPreviewRebalance(requestParameters: SharedApiDolphinDBPreviewRebalanceRequest, options?: RawAxiosRequestConfig): AxiosPromise<DolphinDBRebalancePreview> {
26836
+ return localVarFp.dolphinDBPreviewRebalance(requestParameters.orgName, requestParameters.clusterName, requestParameters.offset, requestParameters.limit, requestParameters.updatedBeforeDays, options).then((request) => request(axios, basePath));
26837
+ },
26600
26838
  /**
26601
26839
  *
26602
26840
  * @summary Download full backup
@@ -30079,6 +30317,16 @@ export interface SharedApiInterface {
30079
30317
  */
30080
30318
  dolphinDBCreateGroup(requestParameters: SharedApiDolphinDBCreateGroupRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
30081
30319
 
30320
+ /**
30321
+ * Submit the built-in dolphindb-rebalance Custom Ops through the platform scheduler. Returns the unified taskId; use platform task APIs for history and status. A timeout or cancellation does not cancel native migrations. Do not automatically resubmit a timed-out request.
30322
+ * @summary DolphinDB CreateRebalance
30323
+ * @param {SharedApiDolphinDBCreateRebalanceRequest} requestParameters Request parameters.
30324
+ * @param {*} [options] Override http request option.
30325
+ * @throws {RequiredError}
30326
+ * @memberof SharedApiInterface
30327
+ */
30328
+ dolphinDBCreateRebalance(requestParameters: SharedApiDolphinDBCreateRebalanceRequest, options?: RawAxiosRequestConfig): AxiosPromise<OpsRequestName>;
30329
+
30082
30330
  /**
30083
30331
  *
30084
30332
  * @summary DolphinDB CreateUser
@@ -30119,6 +30367,16 @@ export interface SharedApiInterface {
30119
30367
  */
30120
30368
  dolphinDBGetCapabilities(requestParameters: SharedApiDolphinDBGetCapabilitiesRequest, options?: RawAxiosRequestConfig): AxiosPromise<DolphinDBCapabilities>;
30121
30369
 
30370
+ /**
30371
+ * Filesystem bytes and physical chunk replica counts (including metadata/unready replicas). Not logical data size or healthy-copy counts.
30372
+ * @summary DolphinDB GetDistribution
30373
+ * @param {SharedApiDolphinDBGetDistributionRequest} requestParameters Request parameters.
30374
+ * @param {*} [options] Override http request option.
30375
+ * @throws {RequiredError}
30376
+ * @memberof SharedApiInterface
30377
+ */
30378
+ dolphinDBGetDistribution(requestParameters: SharedApiDolphinDBGetDistributionRequest, options?: RawAxiosRequestConfig): AxiosPromise<DolphinDBDistribution>;
30379
+
30122
30380
  /**
30123
30381
  *
30124
30382
  * @summary DolphinDB GetPermissions
@@ -30149,6 +30407,16 @@ export interface SharedApiInterface {
30149
30407
  */
30150
30408
  dolphinDBListUsers(requestParameters: SharedApiDolphinDBListUsersRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<DolphinDBUser>>;
30151
30409
 
30410
+ /**
30411
+ * Read-only preview recalculated on every request. Execution recomputes the actual plan. This operation does not scale the cluster or drain a node.
30412
+ * @summary DolphinDB PreviewRebalance
30413
+ * @param {SharedApiDolphinDBPreviewRebalanceRequest} requestParameters Request parameters.
30414
+ * @param {*} [options] Override http request option.
30415
+ * @throws {RequiredError}
30416
+ * @memberof SharedApiInterface
30417
+ */
30418
+ dolphinDBPreviewRebalance(requestParameters: SharedApiDolphinDBPreviewRebalanceRequest, options?: RawAxiosRequestConfig): AxiosPromise<DolphinDBRebalancePreview>;
30419
+
30152
30420
  /**
30153
30421
  *
30154
30422
  * @summary Download full backup
@@ -35396,6 +35664,34 @@ export interface SharedApiDolphinDBCreateGroupRequest {
35396
35664
  readonly dolphinDBGroupCreate: DolphinDBGroupCreate
35397
35665
  }
35398
35666
 
35667
+ /**
35668
+ * Request parameters for dolphinDBCreateRebalance operation in SharedApi.
35669
+ * @export
35670
+ * @interface SharedApiDolphinDBCreateRebalanceRequest
35671
+ */
35672
+ export interface SharedApiDolphinDBCreateRebalanceRequest {
35673
+ /**
35674
+ *
35675
+ * @type {string}
35676
+ * @memberof SharedApiDolphinDBCreateRebalance
35677
+ */
35678
+ readonly orgName: string
35679
+
35680
+ /**
35681
+ *
35682
+ * @type {string}
35683
+ * @memberof SharedApiDolphinDBCreateRebalance
35684
+ */
35685
+ readonly clusterName: string
35686
+
35687
+ /**
35688
+ *
35689
+ * @type {DolphinDBRebalanceRequest}
35690
+ * @memberof SharedApiDolphinDBCreateRebalance
35691
+ */
35692
+ readonly dolphinDBRebalanceRequest: DolphinDBRebalanceRequest
35693
+ }
35694
+
35399
35695
  /**
35400
35696
  * Request parameters for dolphinDBCreateUser operation in SharedApi.
35401
35697
  * @export
@@ -35501,6 +35797,27 @@ export interface SharedApiDolphinDBGetCapabilitiesRequest {
35501
35797
  readonly clusterName: string
35502
35798
  }
35503
35799
 
35800
+ /**
35801
+ * Request parameters for dolphinDBGetDistribution operation in SharedApi.
35802
+ * @export
35803
+ * @interface SharedApiDolphinDBGetDistributionRequest
35804
+ */
35805
+ export interface SharedApiDolphinDBGetDistributionRequest {
35806
+ /**
35807
+ *
35808
+ * @type {string}
35809
+ * @memberof SharedApiDolphinDBGetDistribution
35810
+ */
35811
+ readonly orgName: string
35812
+
35813
+ /**
35814
+ *
35815
+ * @type {string}
35816
+ * @memberof SharedApiDolphinDBGetDistribution
35817
+ */
35818
+ readonly clusterName: string
35819
+ }
35820
+
35504
35821
  /**
35505
35822
  * Request parameters for dolphinDBGetPermissions operation in SharedApi.
35506
35823
  * @export
@@ -35578,6 +35895,48 @@ export interface SharedApiDolphinDBListUsersRequest {
35578
35895
  readonly clusterName: string
35579
35896
  }
35580
35897
 
35898
+ /**
35899
+ * Request parameters for dolphinDBPreviewRebalance operation in SharedApi.
35900
+ * @export
35901
+ * @interface SharedApiDolphinDBPreviewRebalanceRequest
35902
+ */
35903
+ export interface SharedApiDolphinDBPreviewRebalanceRequest {
35904
+ /**
35905
+ *
35906
+ * @type {string}
35907
+ * @memberof SharedApiDolphinDBPreviewRebalance
35908
+ */
35909
+ readonly orgName: string
35910
+
35911
+ /**
35912
+ *
35913
+ * @type {string}
35914
+ * @memberof SharedApiDolphinDBPreviewRebalance
35915
+ */
35916
+ readonly clusterName: string
35917
+
35918
+ /**
35919
+ *
35920
+ * @type {number}
35921
+ * @memberof SharedApiDolphinDBPreviewRebalance
35922
+ */
35923
+ readonly offset?: number
35924
+
35925
+ /**
35926
+ *
35927
+ * @type {number}
35928
+ * @memberof SharedApiDolphinDBPreviewRebalance
35929
+ */
35930
+ readonly limit?: number
35931
+
35932
+ /**
35933
+ *
35934
+ * @type {number}
35935
+ * @memberof SharedApiDolphinDBPreviewRebalance
35936
+ */
35937
+ readonly updatedBeforeDays?: number
35938
+ }
35939
+
35581
35940
  /**
35582
35941
  * Request parameters for downloadBackup operation in SharedApi.
35583
35942
  * @export
@@ -45941,6 +46300,18 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
45941
46300
  return SharedApiFp(this.configuration).dolphinDBCreateGroup(requestParameters.orgName, requestParameters.clusterName, requestParameters.dolphinDBGroupCreate, options).then((request) => request(this.axios, this.basePath));
45942
46301
  }
45943
46302
 
46303
+ /**
46304
+ * Submit the built-in dolphindb-rebalance Custom Ops through the platform scheduler. Returns the unified taskId; use platform task APIs for history and status. A timeout or cancellation does not cancel native migrations. Do not automatically resubmit a timed-out request.
46305
+ * @summary DolphinDB CreateRebalance
46306
+ * @param {SharedApiDolphinDBCreateRebalanceRequest} requestParameters Request parameters.
46307
+ * @param {*} [options] Override http request option.
46308
+ * @throws {RequiredError}
46309
+ * @memberof SharedApi
46310
+ */
46311
+ public dolphinDBCreateRebalance(requestParameters: SharedApiDolphinDBCreateRebalanceRequest, options?: RawAxiosRequestConfig) {
46312
+ return SharedApiFp(this.configuration).dolphinDBCreateRebalance(requestParameters.orgName, requestParameters.clusterName, requestParameters.dolphinDBRebalanceRequest, options).then((request) => request(this.axios, this.basePath));
46313
+ }
46314
+
45944
46315
  /**
45945
46316
  *
45946
46317
  * @summary DolphinDB CreateUser
@@ -45989,6 +46360,18 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
45989
46360
  return SharedApiFp(this.configuration).dolphinDBGetCapabilities(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
45990
46361
  }
45991
46362
 
46363
+ /**
46364
+ * Filesystem bytes and physical chunk replica counts (including metadata/unready replicas). Not logical data size or healthy-copy counts.
46365
+ * @summary DolphinDB GetDistribution
46366
+ * @param {SharedApiDolphinDBGetDistributionRequest} requestParameters Request parameters.
46367
+ * @param {*} [options] Override http request option.
46368
+ * @throws {RequiredError}
46369
+ * @memberof SharedApi
46370
+ */
46371
+ public dolphinDBGetDistribution(requestParameters: SharedApiDolphinDBGetDistributionRequest, options?: RawAxiosRequestConfig) {
46372
+ return SharedApiFp(this.configuration).dolphinDBGetDistribution(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
46373
+ }
46374
+
45992
46375
  /**
45993
46376
  *
45994
46377
  * @summary DolphinDB GetPermissions
@@ -46025,6 +46408,18 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
46025
46408
  return SharedApiFp(this.configuration).dolphinDBListUsers(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
46026
46409
  }
46027
46410
 
46411
+ /**
46412
+ * Read-only preview recalculated on every request. Execution recomputes the actual plan. This operation does not scale the cluster or drain a node.
46413
+ * @summary DolphinDB PreviewRebalance
46414
+ * @param {SharedApiDolphinDBPreviewRebalanceRequest} requestParameters Request parameters.
46415
+ * @param {*} [options] Override http request option.
46416
+ * @throws {RequiredError}
46417
+ * @memberof SharedApi
46418
+ */
46419
+ public dolphinDBPreviewRebalance(requestParameters: SharedApiDolphinDBPreviewRebalanceRequest, options?: RawAxiosRequestConfig) {
46420
+ return SharedApiFp(this.configuration).dolphinDBPreviewRebalance(requestParameters.orgName, requestParameters.clusterName, requestParameters.offset, requestParameters.limit, requestParameters.updatedBeforeDays, options).then((request) => request(this.axios, this.basePath));
46421
+ }
46422
+
46028
46423
  /**
46029
46424
  *
46030
46425
  * @summary Download full backup
@@ -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
+
@@ -0,0 +1,48 @@
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
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import type { DolphinDBReplicaDistribution } from './dolphin-dbreplica-distribution';
19
+ // May contain unused imports in some cases
20
+ // @ts-ignore
21
+ import type { DolphinDBVolumeUsage } from './dolphin-dbvolume-usage';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface DolphinDBDistribution
27
+ */
28
+ export interface DolphinDBDistribution {
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof DolphinDBDistribution
33
+ */
34
+ 'observedAt'?: string;
35
+ /**
36
+ *
37
+ * @type {Array<DolphinDBVolumeUsage>}
38
+ * @memberof DolphinDBDistribution
39
+ */
40
+ 'volumes'?: Array<DolphinDBVolumeUsage>;
41
+ /**
42
+ *
43
+ * @type {Array<DolphinDBReplicaDistribution>}
44
+ * @memberof DolphinDBDistribution
45
+ */
46
+ 'replicas'?: Array<DolphinDBReplicaDistribution>;
47
+ }
48
+
@@ -0,0 +1,48 @@
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
+ *
19
+ * @export
20
+ * @interface DolphinDBMigration
21
+ */
22
+ export interface DolphinDBMigration {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof DolphinDBMigration
27
+ */
28
+ 'chunkId': string;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof DolphinDBMigration
33
+ */
34
+ 'srcNode': string;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof DolphinDBMigration
39
+ */
40
+ 'destNode': string;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof DolphinDBMigration
45
+ */
46
+ 'destVolume'?: string;
47
+ }
48
+