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
@@ -26,6 +26,8 @@ import type { APIErrorResponse } from '../models';
26
26
  // @ts-ignore
27
27
  import type { DolphinDBCapabilities } from '../models';
28
28
  // @ts-ignore
29
+ import type { DolphinDBDistribution } from '../models';
30
+ // @ts-ignore
29
31
  import type { DolphinDBGroup } from '../models';
30
32
  // @ts-ignore
31
33
  import type { DolphinDBGroupCreate } from '../models';
@@ -38,9 +40,15 @@ import type { DolphinDBPermissionChange } from '../models';
38
40
  // @ts-ignore
39
41
  import type { DolphinDBPermissionSnapshot } from '../models';
40
42
  // @ts-ignore
43
+ import type { DolphinDBRebalancePreview } from '../models';
44
+ // @ts-ignore
45
+ import type { DolphinDBRebalanceRequest } from '../models';
46
+ // @ts-ignore
41
47
  import type { DolphinDBUser } from '../models';
42
48
  // @ts-ignore
43
49
  import type { DolphinDBUserCreate } from '../models';
50
+ // @ts-ignore
51
+ import type { OpsRequestName } from '../models';
44
52
  /**
45
53
  * DolphindbApi - axios parameter creator
46
54
  * @export
@@ -267,6 +275,57 @@ export const DolphindbApiAxiosParamCreator = function (configuration?: Configura
267
275
  options: localVarRequestOptions,
268
276
  };
269
277
  },
278
+ /**
279
+ * 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.
280
+ * @summary DolphinDB CreateRebalance
281
+ * @param {string} orgName
282
+ * @param {string} clusterName
283
+ * @param {DolphinDBRebalanceRequest} dolphinDBRebalanceRequest
284
+ * @param {*} [options] Override http request option.
285
+ * @throws {RequiredError}
286
+ */
287
+ dolphinDBCreateRebalance: async (orgName: string, clusterName: string, dolphinDBRebalanceRequest: DolphinDBRebalanceRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
288
+ // verify required parameter 'orgName' is not null or undefined
289
+ assertParamExists('dolphinDBCreateRebalance', 'orgName', orgName)
290
+ // verify required parameter 'clusterName' is not null or undefined
291
+ assertParamExists('dolphinDBCreateRebalance', 'clusterName', clusterName)
292
+ // verify required parameter 'dolphinDBRebalanceRequest' is not null or undefined
293
+ assertParamExists('dolphinDBCreateRebalance', 'dolphinDBRebalanceRequest', dolphinDBRebalanceRequest)
294
+ const localVarPath = `/api/v1/data/dolphindb/organizations/{orgName}/clusters/{clusterName}/rebalance/operations`
295
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
296
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
297
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
298
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
299
+ let baseOptions;
300
+ if (configuration) {
301
+ baseOptions = configuration.baseOptions;
302
+ }
303
+
304
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
305
+ const localVarHeaderParameter = {} as any;
306
+ const localVarQueryParameter = {} as any;
307
+
308
+ // authentication BearerToken required
309
+ // http bearer authentication required
310
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
311
+
312
+ // authentication DigestAuth required
313
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
314
+
315
+
316
+
317
+ localVarHeaderParameter['Content-Type'] = 'application/json';
318
+
319
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
320
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
321
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
322
+ localVarRequestOptions.data = serializeDataIfNeeded(dolphinDBRebalanceRequest, localVarRequestOptions, configuration)
323
+
324
+ return {
325
+ url: toPathString(localVarUrlObj),
326
+ options: localVarRequestOptions,
327
+ };
328
+ },
270
329
  /**
271
330
  *
272
331
  * @summary DolphinDB CreateUser
@@ -452,6 +511,51 @@ export const DolphindbApiAxiosParamCreator = function (configuration?: Configura
452
511
 
453
512
 
454
513
 
514
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
515
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
516
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
517
+
518
+ return {
519
+ url: toPathString(localVarUrlObj),
520
+ options: localVarRequestOptions,
521
+ };
522
+ },
523
+ /**
524
+ * Filesystem bytes and physical chunk replica counts (including metadata/unready replicas). Not logical data size or healthy-copy counts.
525
+ * @summary DolphinDB GetDistribution
526
+ * @param {string} orgName
527
+ * @param {string} clusterName
528
+ * @param {*} [options] Override http request option.
529
+ * @throws {RequiredError}
530
+ */
531
+ dolphinDBGetDistribution: async (orgName: string, clusterName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
532
+ // verify required parameter 'orgName' is not null or undefined
533
+ assertParamExists('dolphinDBGetDistribution', 'orgName', orgName)
534
+ // verify required parameter 'clusterName' is not null or undefined
535
+ assertParamExists('dolphinDBGetDistribution', 'clusterName', clusterName)
536
+ const localVarPath = `/api/v1/data/dolphindb/organizations/{orgName}/clusters/{clusterName}/distribution`
537
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
538
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
539
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
540
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
541
+ let baseOptions;
542
+ if (configuration) {
543
+ baseOptions = configuration.baseOptions;
544
+ }
545
+
546
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
547
+ const localVarHeaderParameter = {} as any;
548
+ const localVarQueryParameter = {} as any;
549
+
550
+ // authentication BearerToken required
551
+ // http bearer authentication required
552
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
553
+
554
+ // authentication DigestAuth required
555
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
556
+
557
+
558
+
455
559
  setSearchParams(localVarUrlObj, localVarQueryParameter);
456
560
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
457
561
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -595,6 +699,66 @@ export const DolphindbApiAxiosParamCreator = function (configuration?: Configura
595
699
 
596
700
 
597
701
 
702
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
703
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
704
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
705
+
706
+ return {
707
+ url: toPathString(localVarUrlObj),
708
+ options: localVarRequestOptions,
709
+ };
710
+ },
711
+ /**
712
+ * Read-only preview recalculated on every request. Execution recomputes the actual plan. This operation does not scale the cluster or drain a node.
713
+ * @summary DolphinDB PreviewRebalance
714
+ * @param {string} orgName
715
+ * @param {string} clusterName
716
+ * @param {number} [offset]
717
+ * @param {number} [limit]
718
+ * @param {number} [updatedBeforeDays]
719
+ * @param {*} [options] Override http request option.
720
+ * @throws {RequiredError}
721
+ */
722
+ dolphinDBPreviewRebalance: async (orgName: string, clusterName: string, offset?: number, limit?: number, updatedBeforeDays?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
723
+ // verify required parameter 'orgName' is not null or undefined
724
+ assertParamExists('dolphinDBPreviewRebalance', 'orgName', orgName)
725
+ // verify required parameter 'clusterName' is not null or undefined
726
+ assertParamExists('dolphinDBPreviewRebalance', 'clusterName', clusterName)
727
+ const localVarPath = `/api/v1/data/dolphindb/organizations/{orgName}/clusters/{clusterName}/rebalance/preview`
728
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
729
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
730
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
731
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
732
+ let baseOptions;
733
+ if (configuration) {
734
+ baseOptions = configuration.baseOptions;
735
+ }
736
+
737
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
738
+ const localVarHeaderParameter = {} as any;
739
+ const localVarQueryParameter = {} as any;
740
+
741
+ // authentication BearerToken required
742
+ // http bearer authentication required
743
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
744
+
745
+ // authentication DigestAuth required
746
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
747
+
748
+ if (offset !== undefined) {
749
+ localVarQueryParameter['offset'] = offset;
750
+ }
751
+
752
+ if (limit !== undefined) {
753
+ localVarQueryParameter['limit'] = limit;
754
+ }
755
+
756
+ if (updatedBeforeDays !== undefined) {
757
+ localVarQueryParameter['updatedBeforeDays'] = updatedBeforeDays;
758
+ }
759
+
760
+
761
+
598
762
  setSearchParams(localVarUrlObj, localVarQueryParameter);
599
763
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
600
764
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -678,6 +842,21 @@ export const DolphindbApiFp = function(configuration?: Configuration) {
678
842
  const localVarOperationServerBasePath = operationServerMap['DolphindbApi.dolphinDBCreateGroup']?.[localVarOperationServerIndex]?.url;
679
843
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
680
844
  },
845
+ /**
846
+ * 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.
847
+ * @summary DolphinDB CreateRebalance
848
+ * @param {string} orgName
849
+ * @param {string} clusterName
850
+ * @param {DolphinDBRebalanceRequest} dolphinDBRebalanceRequest
851
+ * @param {*} [options] Override http request option.
852
+ * @throws {RequiredError}
853
+ */
854
+ async dolphinDBCreateRebalance(orgName: string, clusterName: string, dolphinDBRebalanceRequest: DolphinDBRebalanceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OpsRequestName>> {
855
+ const localVarAxiosArgs = await localVarAxiosParamCreator.dolphinDBCreateRebalance(orgName, clusterName, dolphinDBRebalanceRequest, options);
856
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
857
+ const localVarOperationServerBasePath = operationServerMap['DolphindbApi.dolphinDBCreateRebalance']?.[localVarOperationServerIndex]?.url;
858
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
859
+ },
681
860
  /**
682
861
  *
683
862
  * @summary DolphinDB CreateUser
@@ -737,6 +916,20 @@ export const DolphindbApiFp = function(configuration?: Configuration) {
737
916
  const localVarOperationServerBasePath = operationServerMap['DolphindbApi.dolphinDBGetCapabilities']?.[localVarOperationServerIndex]?.url;
738
917
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
739
918
  },
919
+ /**
920
+ * Filesystem bytes and physical chunk replica counts (including metadata/unready replicas). Not logical data size or healthy-copy counts.
921
+ * @summary DolphinDB GetDistribution
922
+ * @param {string} orgName
923
+ * @param {string} clusterName
924
+ * @param {*} [options] Override http request option.
925
+ * @throws {RequiredError}
926
+ */
927
+ async dolphinDBGetDistribution(orgName: string, clusterName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DolphinDBDistribution>> {
928
+ const localVarAxiosArgs = await localVarAxiosParamCreator.dolphinDBGetDistribution(orgName, clusterName, options);
929
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
930
+ const localVarOperationServerBasePath = operationServerMap['DolphindbApi.dolphinDBGetDistribution']?.[localVarOperationServerIndex]?.url;
931
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
932
+ },
740
933
  /**
741
934
  *
742
935
  * @summary DolphinDB GetPermissions
@@ -781,6 +974,23 @@ export const DolphindbApiFp = function(configuration?: Configuration) {
781
974
  const localVarOperationServerBasePath = operationServerMap['DolphindbApi.dolphinDBListUsers']?.[localVarOperationServerIndex]?.url;
782
975
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
783
976
  },
977
+ /**
978
+ * Read-only preview recalculated on every request. Execution recomputes the actual plan. This operation does not scale the cluster or drain a node.
979
+ * @summary DolphinDB PreviewRebalance
980
+ * @param {string} orgName
981
+ * @param {string} clusterName
982
+ * @param {number} [offset]
983
+ * @param {number} [limit]
984
+ * @param {number} [updatedBeforeDays]
985
+ * @param {*} [options] Override http request option.
986
+ * @throws {RequiredError}
987
+ */
988
+ async dolphinDBPreviewRebalance(orgName: string, clusterName: string, offset?: number, limit?: number, updatedBeforeDays?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DolphinDBRebalancePreview>> {
989
+ const localVarAxiosArgs = await localVarAxiosParamCreator.dolphinDBPreviewRebalance(orgName, clusterName, offset, limit, updatedBeforeDays, options);
990
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
991
+ const localVarOperationServerBasePath = operationServerMap['DolphindbApi.dolphinDBPreviewRebalance']?.[localVarOperationServerIndex]?.url;
992
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
993
+ },
784
994
  }
785
995
  };
786
996
 
@@ -831,6 +1041,16 @@ export const DolphindbApiFactory = function (configuration?: Configuration, base
831
1041
  dolphinDBCreateGroup(requestParameters: DolphindbApiDolphinDBCreateGroupRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
832
1042
  return localVarFp.dolphinDBCreateGroup(requestParameters.orgName, requestParameters.clusterName, requestParameters.dolphinDBGroupCreate, options).then((request) => request(axios, basePath));
833
1043
  },
1044
+ /**
1045
+ * 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.
1046
+ * @summary DolphinDB CreateRebalance
1047
+ * @param {DolphindbApiDolphinDBCreateRebalanceRequest} requestParameters Request parameters.
1048
+ * @param {*} [options] Override http request option.
1049
+ * @throws {RequiredError}
1050
+ */
1051
+ dolphinDBCreateRebalance(requestParameters: DolphindbApiDolphinDBCreateRebalanceRequest, options?: RawAxiosRequestConfig): AxiosPromise<OpsRequestName> {
1052
+ return localVarFp.dolphinDBCreateRebalance(requestParameters.orgName, requestParameters.clusterName, requestParameters.dolphinDBRebalanceRequest, options).then((request) => request(axios, basePath));
1053
+ },
834
1054
  /**
835
1055
  *
836
1056
  * @summary DolphinDB CreateUser
@@ -871,6 +1091,16 @@ export const DolphindbApiFactory = function (configuration?: Configuration, base
871
1091
  dolphinDBGetCapabilities(requestParameters: DolphindbApiDolphinDBGetCapabilitiesRequest, options?: RawAxiosRequestConfig): AxiosPromise<DolphinDBCapabilities> {
872
1092
  return localVarFp.dolphinDBGetCapabilities(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
873
1093
  },
1094
+ /**
1095
+ * Filesystem bytes and physical chunk replica counts (including metadata/unready replicas). Not logical data size or healthy-copy counts.
1096
+ * @summary DolphinDB GetDistribution
1097
+ * @param {DolphindbApiDolphinDBGetDistributionRequest} requestParameters Request parameters.
1098
+ * @param {*} [options] Override http request option.
1099
+ * @throws {RequiredError}
1100
+ */
1101
+ dolphinDBGetDistribution(requestParameters: DolphindbApiDolphinDBGetDistributionRequest, options?: RawAxiosRequestConfig): AxiosPromise<DolphinDBDistribution> {
1102
+ return localVarFp.dolphinDBGetDistribution(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
1103
+ },
874
1104
  /**
875
1105
  *
876
1106
  * @summary DolphinDB GetPermissions
@@ -901,6 +1131,16 @@ export const DolphindbApiFactory = function (configuration?: Configuration, base
901
1131
  dolphinDBListUsers(requestParameters: DolphindbApiDolphinDBListUsersRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<DolphinDBUser>> {
902
1132
  return localVarFp.dolphinDBListUsers(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
903
1133
  },
1134
+ /**
1135
+ * Read-only preview recalculated on every request. Execution recomputes the actual plan. This operation does not scale the cluster or drain a node.
1136
+ * @summary DolphinDB PreviewRebalance
1137
+ * @param {DolphindbApiDolphinDBPreviewRebalanceRequest} requestParameters Request parameters.
1138
+ * @param {*} [options] Override http request option.
1139
+ * @throws {RequiredError}
1140
+ */
1141
+ dolphinDBPreviewRebalance(requestParameters: DolphindbApiDolphinDBPreviewRebalanceRequest, options?: RawAxiosRequestConfig): AxiosPromise<DolphinDBRebalancePreview> {
1142
+ return localVarFp.dolphinDBPreviewRebalance(requestParameters.orgName, requestParameters.clusterName, requestParameters.offset, requestParameters.limit, requestParameters.updatedBeforeDays, options).then((request) => request(axios, basePath));
1143
+ },
904
1144
  };
905
1145
  };
906
1146
 
@@ -950,6 +1190,16 @@ export interface DolphindbApiInterface {
950
1190
  */
951
1191
  dolphinDBCreateGroup(requestParameters: DolphindbApiDolphinDBCreateGroupRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
952
1192
 
1193
+ /**
1194
+ * 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.
1195
+ * @summary DolphinDB CreateRebalance
1196
+ * @param {DolphindbApiDolphinDBCreateRebalanceRequest} requestParameters Request parameters.
1197
+ * @param {*} [options] Override http request option.
1198
+ * @throws {RequiredError}
1199
+ * @memberof DolphindbApiInterface
1200
+ */
1201
+ dolphinDBCreateRebalance(requestParameters: DolphindbApiDolphinDBCreateRebalanceRequest, options?: RawAxiosRequestConfig): AxiosPromise<OpsRequestName>;
1202
+
953
1203
  /**
954
1204
  *
955
1205
  * @summary DolphinDB CreateUser
@@ -990,6 +1240,16 @@ export interface DolphindbApiInterface {
990
1240
  */
991
1241
  dolphinDBGetCapabilities(requestParameters: DolphindbApiDolphinDBGetCapabilitiesRequest, options?: RawAxiosRequestConfig): AxiosPromise<DolphinDBCapabilities>;
992
1242
 
1243
+ /**
1244
+ * Filesystem bytes and physical chunk replica counts (including metadata/unready replicas). Not logical data size or healthy-copy counts.
1245
+ * @summary DolphinDB GetDistribution
1246
+ * @param {DolphindbApiDolphinDBGetDistributionRequest} requestParameters Request parameters.
1247
+ * @param {*} [options] Override http request option.
1248
+ * @throws {RequiredError}
1249
+ * @memberof DolphindbApiInterface
1250
+ */
1251
+ dolphinDBGetDistribution(requestParameters: DolphindbApiDolphinDBGetDistributionRequest, options?: RawAxiosRequestConfig): AxiosPromise<DolphinDBDistribution>;
1252
+
993
1253
  /**
994
1254
  *
995
1255
  * @summary DolphinDB GetPermissions
@@ -1020,6 +1280,16 @@ export interface DolphindbApiInterface {
1020
1280
  */
1021
1281
  dolphinDBListUsers(requestParameters: DolphindbApiDolphinDBListUsersRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<DolphinDBUser>>;
1022
1282
 
1283
+ /**
1284
+ * Read-only preview recalculated on every request. Execution recomputes the actual plan. This operation does not scale the cluster or drain a node.
1285
+ * @summary DolphinDB PreviewRebalance
1286
+ * @param {DolphindbApiDolphinDBPreviewRebalanceRequest} requestParameters Request parameters.
1287
+ * @param {*} [options] Override http request option.
1288
+ * @throws {RequiredError}
1289
+ * @memberof DolphindbApiInterface
1290
+ */
1291
+ dolphinDBPreviewRebalance(requestParameters: DolphindbApiDolphinDBPreviewRebalanceRequest, options?: RawAxiosRequestConfig): AxiosPromise<DolphinDBRebalancePreview>;
1292
+
1023
1293
  }
1024
1294
 
1025
1295
  /**
@@ -1162,6 +1432,34 @@ export interface DolphindbApiDolphinDBCreateGroupRequest {
1162
1432
  readonly dolphinDBGroupCreate: DolphinDBGroupCreate
1163
1433
  }
1164
1434
 
1435
+ /**
1436
+ * Request parameters for dolphinDBCreateRebalance operation in DolphindbApi.
1437
+ * @export
1438
+ * @interface DolphindbApiDolphinDBCreateRebalanceRequest
1439
+ */
1440
+ export interface DolphindbApiDolphinDBCreateRebalanceRequest {
1441
+ /**
1442
+ *
1443
+ * @type {string}
1444
+ * @memberof DolphindbApiDolphinDBCreateRebalance
1445
+ */
1446
+ readonly orgName: string
1447
+
1448
+ /**
1449
+ *
1450
+ * @type {string}
1451
+ * @memberof DolphindbApiDolphinDBCreateRebalance
1452
+ */
1453
+ readonly clusterName: string
1454
+
1455
+ /**
1456
+ *
1457
+ * @type {DolphinDBRebalanceRequest}
1458
+ * @memberof DolphindbApiDolphinDBCreateRebalance
1459
+ */
1460
+ readonly dolphinDBRebalanceRequest: DolphinDBRebalanceRequest
1461
+ }
1462
+
1165
1463
  /**
1166
1464
  * Request parameters for dolphinDBCreateUser operation in DolphindbApi.
1167
1465
  * @export
@@ -1267,6 +1565,27 @@ export interface DolphindbApiDolphinDBGetCapabilitiesRequest {
1267
1565
  readonly clusterName: string
1268
1566
  }
1269
1567
 
1568
+ /**
1569
+ * Request parameters for dolphinDBGetDistribution operation in DolphindbApi.
1570
+ * @export
1571
+ * @interface DolphindbApiDolphinDBGetDistributionRequest
1572
+ */
1573
+ export interface DolphindbApiDolphinDBGetDistributionRequest {
1574
+ /**
1575
+ *
1576
+ * @type {string}
1577
+ * @memberof DolphindbApiDolphinDBGetDistribution
1578
+ */
1579
+ readonly orgName: string
1580
+
1581
+ /**
1582
+ *
1583
+ * @type {string}
1584
+ * @memberof DolphindbApiDolphinDBGetDistribution
1585
+ */
1586
+ readonly clusterName: string
1587
+ }
1588
+
1270
1589
  /**
1271
1590
  * Request parameters for dolphinDBGetPermissions operation in DolphindbApi.
1272
1591
  * @export
@@ -1344,6 +1663,48 @@ export interface DolphindbApiDolphinDBListUsersRequest {
1344
1663
  readonly clusterName: string
1345
1664
  }
1346
1665
 
1666
+ /**
1667
+ * Request parameters for dolphinDBPreviewRebalance operation in DolphindbApi.
1668
+ * @export
1669
+ * @interface DolphindbApiDolphinDBPreviewRebalanceRequest
1670
+ */
1671
+ export interface DolphindbApiDolphinDBPreviewRebalanceRequest {
1672
+ /**
1673
+ *
1674
+ * @type {string}
1675
+ * @memberof DolphindbApiDolphinDBPreviewRebalance
1676
+ */
1677
+ readonly orgName: string
1678
+
1679
+ /**
1680
+ *
1681
+ * @type {string}
1682
+ * @memberof DolphindbApiDolphinDBPreviewRebalance
1683
+ */
1684
+ readonly clusterName: string
1685
+
1686
+ /**
1687
+ *
1688
+ * @type {number}
1689
+ * @memberof DolphindbApiDolphinDBPreviewRebalance
1690
+ */
1691
+ readonly offset?: number
1692
+
1693
+ /**
1694
+ *
1695
+ * @type {number}
1696
+ * @memberof DolphindbApiDolphinDBPreviewRebalance
1697
+ */
1698
+ readonly limit?: number
1699
+
1700
+ /**
1701
+ *
1702
+ * @type {number}
1703
+ * @memberof DolphindbApiDolphinDBPreviewRebalance
1704
+ */
1705
+ readonly updatedBeforeDays?: number
1706
+ }
1707
+
1347
1708
  /**
1348
1709
  * DolphindbApi - object-oriented interface
1349
1710
  * @export
@@ -1399,6 +1760,18 @@ export class DolphindbApi extends BaseAPI implements DolphindbApiInterface {
1399
1760
  return DolphindbApiFp(this.configuration).dolphinDBCreateGroup(requestParameters.orgName, requestParameters.clusterName, requestParameters.dolphinDBGroupCreate, options).then((request) => request(this.axios, this.basePath));
1400
1761
  }
1401
1762
 
1763
+ /**
1764
+ * 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.
1765
+ * @summary DolphinDB CreateRebalance
1766
+ * @param {DolphindbApiDolphinDBCreateRebalanceRequest} requestParameters Request parameters.
1767
+ * @param {*} [options] Override http request option.
1768
+ * @throws {RequiredError}
1769
+ * @memberof DolphindbApi
1770
+ */
1771
+ public dolphinDBCreateRebalance(requestParameters: DolphindbApiDolphinDBCreateRebalanceRequest, options?: RawAxiosRequestConfig) {
1772
+ return DolphindbApiFp(this.configuration).dolphinDBCreateRebalance(requestParameters.orgName, requestParameters.clusterName, requestParameters.dolphinDBRebalanceRequest, options).then((request) => request(this.axios, this.basePath));
1773
+ }
1774
+
1402
1775
  /**
1403
1776
  *
1404
1777
  * @summary DolphinDB CreateUser
@@ -1447,6 +1820,18 @@ export class DolphindbApi extends BaseAPI implements DolphindbApiInterface {
1447
1820
  return DolphindbApiFp(this.configuration).dolphinDBGetCapabilities(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
1448
1821
  }
1449
1822
 
1823
+ /**
1824
+ * Filesystem bytes and physical chunk replica counts (including metadata/unready replicas). Not logical data size or healthy-copy counts.
1825
+ * @summary DolphinDB GetDistribution
1826
+ * @param {DolphindbApiDolphinDBGetDistributionRequest} requestParameters Request parameters.
1827
+ * @param {*} [options] Override http request option.
1828
+ * @throws {RequiredError}
1829
+ * @memberof DolphindbApi
1830
+ */
1831
+ public dolphinDBGetDistribution(requestParameters: DolphindbApiDolphinDBGetDistributionRequest, options?: RawAxiosRequestConfig) {
1832
+ return DolphindbApiFp(this.configuration).dolphinDBGetDistribution(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
1833
+ }
1834
+
1450
1835
  /**
1451
1836
  *
1452
1837
  * @summary DolphinDB GetPermissions
@@ -1482,5 +1867,17 @@ export class DolphindbApi extends BaseAPI implements DolphindbApiInterface {
1482
1867
  public dolphinDBListUsers(requestParameters: DolphindbApiDolphinDBListUsersRequest, options?: RawAxiosRequestConfig) {
1483
1868
  return DolphindbApiFp(this.configuration).dolphinDBListUsers(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
1484
1869
  }
1870
+
1871
+ /**
1872
+ * Read-only preview recalculated on every request. Execution recomputes the actual plan. This operation does not scale the cluster or drain a node.
1873
+ * @summary DolphinDB PreviewRebalance
1874
+ * @param {DolphindbApiDolphinDBPreviewRebalanceRequest} requestParameters Request parameters.
1875
+ * @param {*} [options] Override http request option.
1876
+ * @throws {RequiredError}
1877
+ * @memberof DolphindbApi
1878
+ */
1879
+ public dolphinDBPreviewRebalance(requestParameters: DolphindbApiDolphinDBPreviewRebalanceRequest, options?: RawAxiosRequestConfig) {
1880
+ return DolphindbApiFp(this.configuration).dolphinDBPreviewRebalance(requestParameters.orgName, requestParameters.clusterName, requestParameters.offset, requestParameters.limit, requestParameters.updatedBeforeDays, options).then((request) => request(this.axios, this.basePath));
1881
+ }
1485
1882
  }
1486
1883