kb-cloud-client-typescript 2.4.0-alpha.130 → 2.4.0-alpha.132

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 (65) hide show
  1. package/dist/adminapi/apis/dolphindb-api.d.ts +89 -0
  2. package/dist/adminapi/apis/dolphindb-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/dolphindb-api.js +90 -0
  4. package/dist/adminapi/apis/dolphindb-api.js.map +1 -1
  5. package/dist/adminapi/apis/shared-api.d.ts +89 -0
  6. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  7. package/dist/adminapi/apis/shared-api.js +90 -0
  8. package/dist/adminapi/apis/shared-api.js.map +1 -1
  9. package/dist/adminapi/models/dolphin-dbdrain-migration.d.ts +43 -0
  10. package/dist/adminapi/models/dolphin-dbdrain-migration.d.ts.map +1 -0
  11. package/dist/adminapi/models/dolphin-dbdrain-migration.js +16 -0
  12. package/dist/adminapi/models/dolphin-dbdrain-migration.js.map +1 -0
  13. package/dist/adminapi/models/dolphin-dbdrain-preview.d.ts +62 -0
  14. package/dist/adminapi/models/dolphin-dbdrain-preview.d.ts.map +1 -0
  15. package/dist/adminapi/models/dolphin-dbdrain-preview.js +16 -0
  16. package/dist/adminapi/models/dolphin-dbdrain-preview.js.map +1 -0
  17. package/dist/adminapi/models/dolphin-dbdrain-request.d.ts +31 -0
  18. package/dist/adminapi/models/dolphin-dbdrain-request.d.ts.map +1 -0
  19. package/dist/adminapi/models/dolphin-dbdrain-request.js +16 -0
  20. package/dist/adminapi/models/dolphin-dbdrain-request.js.map +1 -0
  21. package/dist/adminapi/models/index.d.ts +3 -0
  22. package/dist/adminapi/models/index.d.ts.map +1 -1
  23. package/dist/adminapi/models/index.js +3 -0
  24. package/dist/adminapi/models/index.js.map +1 -1
  25. package/dist/openapi/apis/dolphindb-api.d.ts +89 -0
  26. package/dist/openapi/apis/dolphindb-api.d.ts.map +1 -1
  27. package/dist/openapi/apis/dolphindb-api.js +90 -0
  28. package/dist/openapi/apis/dolphindb-api.js.map +1 -1
  29. package/dist/openapi/apis/shared-api.d.ts +89 -0
  30. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  31. package/dist/openapi/apis/shared-api.js +90 -0
  32. package/dist/openapi/apis/shared-api.js.map +1 -1
  33. package/dist/openapi/models/dolphin-dbdrain-migration.d.ts +43 -0
  34. package/dist/openapi/models/dolphin-dbdrain-migration.d.ts.map +1 -0
  35. package/dist/openapi/models/dolphin-dbdrain-migration.js +16 -0
  36. package/dist/openapi/models/dolphin-dbdrain-migration.js.map +1 -0
  37. package/dist/openapi/models/dolphin-dbdrain-preview.d.ts +62 -0
  38. package/dist/openapi/models/dolphin-dbdrain-preview.d.ts.map +1 -0
  39. package/dist/openapi/models/dolphin-dbdrain-preview.js +16 -0
  40. package/dist/openapi/models/dolphin-dbdrain-preview.js.map +1 -0
  41. package/dist/openapi/models/dolphin-dbdrain-request.d.ts +31 -0
  42. package/dist/openapi/models/dolphin-dbdrain-request.d.ts.map +1 -0
  43. package/dist/openapi/models/dolphin-dbdrain-request.js +16 -0
  44. package/dist/openapi/models/dolphin-dbdrain-request.js.map +1 -0
  45. package/dist/openapi/models/index.d.ts +3 -0
  46. package/dist/openapi/models/index.d.ts.map +1 -1
  47. package/dist/openapi/models/index.js +3 -0
  48. package/dist/openapi/models/index.js.map +1 -1
  49. package/package.json +1 -1
  50. package/src/adminapi/.openapi-generator/FILES +3 -0
  51. package/src/adminapi/apis/dolphindb-api.ts +156 -0
  52. package/src/adminapi/apis/shared-api.ts +156 -0
  53. package/src/adminapi/models/dolphin-dbdrain-migration.ts +48 -0
  54. package/src/adminapi/models/dolphin-dbdrain-preview.ts +69 -0
  55. package/src/adminapi/models/dolphin-dbdrain-request.ts +36 -0
  56. package/src/adminapi/models/index.ts +3 -0
  57. package/src/adminapi.yaml +132 -12
  58. package/src/openapi/.openapi-generator/FILES +3 -0
  59. package/src/openapi/apis/dolphindb-api.ts +156 -0
  60. package/src/openapi/apis/shared-api.ts +156 -0
  61. package/src/openapi/models/dolphin-dbdrain-migration.ts +48 -0
  62. package/src/openapi/models/dolphin-dbdrain-preview.ts +69 -0
  63. package/src/openapi/models/dolphin-dbdrain-request.ts +36 -0
  64. package/src/openapi/models/index.ts +3 -0
  65. package/src/openapi.yaml +132 -12
@@ -28,6 +28,10 @@ import type { DolphinDBCapabilities } from '../models';
28
28
  // @ts-ignore
29
29
  import type { DolphinDBDistribution } from '../models';
30
30
  // @ts-ignore
31
+ import type { DolphinDBDrainPreview } from '../models';
32
+ // @ts-ignore
33
+ import type { DolphinDBDrainRequest } from '../models';
34
+ // @ts-ignore
31
35
  import type { DolphinDBGroup } from '../models';
32
36
  // @ts-ignore
33
37
  import type { DolphinDBGroupCreate } from '../models';
@@ -708,6 +712,67 @@ export const DolphindbApiAxiosParamCreator = function (configuration?: Configura
708
712
  options: localVarRequestOptions,
709
713
  };
710
714
  },
715
+ /**
716
+ * Read-only evacuation preview computed by an embedded DMS planner from native controller metadata. No addon planner or module upgrade is required. Does not evacuate data, reserve a plan, or remove a node. Existing HorizontalScaling/memberLeave independently checks current state and executes; capacity is not inferred from chunk size.
717
+ * @summary Preview DolphinDB data node evacuation
718
+ * @param {string} orgName
719
+ * @param {string} clusterName
720
+ * @param {DolphinDBDrainRequest} dolphinDBDrainRequest
721
+ * @param {number} [offset]
722
+ * @param {number} [limit]
723
+ * @param {*} [options] Override http request option.
724
+ * @throws {RequiredError}
725
+ */
726
+ dolphinDBPreviewDrain: async (orgName: string, clusterName: string, dolphinDBDrainRequest: DolphinDBDrainRequest, offset?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
727
+ // verify required parameter 'orgName' is not null or undefined
728
+ assertParamExists('dolphinDBPreviewDrain', 'orgName', orgName)
729
+ // verify required parameter 'clusterName' is not null or undefined
730
+ assertParamExists('dolphinDBPreviewDrain', 'clusterName', clusterName)
731
+ // verify required parameter 'dolphinDBDrainRequest' is not null or undefined
732
+ assertParamExists('dolphinDBPreviewDrain', 'dolphinDBDrainRequest', dolphinDBDrainRequest)
733
+ const localVarPath = `/admin/v1/data/dolphindb/organizations/{orgName}/clusters/{clusterName}/rebalance/drain-preview`
734
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
735
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
736
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
737
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
738
+ let baseOptions;
739
+ if (configuration) {
740
+ baseOptions = configuration.baseOptions;
741
+ }
742
+
743
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
744
+ const localVarHeaderParameter = {} as any;
745
+ const localVarQueryParameter = {} as any;
746
+
747
+ // authentication BearerToken required
748
+ // http bearer authentication required
749
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
750
+
751
+ // authentication DigestAuth required
752
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
753
+
754
+ if (offset !== undefined) {
755
+ localVarQueryParameter['offset'] = offset;
756
+ }
757
+
758
+ if (limit !== undefined) {
759
+ localVarQueryParameter['limit'] = limit;
760
+ }
761
+
762
+
763
+
764
+ localVarHeaderParameter['Content-Type'] = 'application/json';
765
+
766
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
767
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
768
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
769
+ localVarRequestOptions.data = serializeDataIfNeeded(dolphinDBDrainRequest, localVarRequestOptions, configuration)
770
+
771
+ return {
772
+ url: toPathString(localVarUrlObj),
773
+ options: localVarRequestOptions,
774
+ };
775
+ },
711
776
  /**
712
777
  * Read-only preview recalculated on every request. Execution recomputes the actual plan. This operation does not scale the cluster or drain a node.
713
778
  * @summary DolphinDB PreviewRebalance
@@ -974,6 +1039,23 @@ export const DolphindbApiFp = function(configuration?: Configuration) {
974
1039
  const localVarOperationServerBasePath = operationServerMap['DolphindbApi.dolphinDBListUsers']?.[localVarOperationServerIndex]?.url;
975
1040
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
976
1041
  },
1042
+ /**
1043
+ * Read-only evacuation preview computed by an embedded DMS planner from native controller metadata. No addon planner or module upgrade is required. Does not evacuate data, reserve a plan, or remove a node. Existing HorizontalScaling/memberLeave independently checks current state and executes; capacity is not inferred from chunk size.
1044
+ * @summary Preview DolphinDB data node evacuation
1045
+ * @param {string} orgName
1046
+ * @param {string} clusterName
1047
+ * @param {DolphinDBDrainRequest} dolphinDBDrainRequest
1048
+ * @param {number} [offset]
1049
+ * @param {number} [limit]
1050
+ * @param {*} [options] Override http request option.
1051
+ * @throws {RequiredError}
1052
+ */
1053
+ async dolphinDBPreviewDrain(orgName: string, clusterName: string, dolphinDBDrainRequest: DolphinDBDrainRequest, offset?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DolphinDBDrainPreview>> {
1054
+ const localVarAxiosArgs = await localVarAxiosParamCreator.dolphinDBPreviewDrain(orgName, clusterName, dolphinDBDrainRequest, offset, limit, options);
1055
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1056
+ const localVarOperationServerBasePath = operationServerMap['DolphindbApi.dolphinDBPreviewDrain']?.[localVarOperationServerIndex]?.url;
1057
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1058
+ },
977
1059
  /**
978
1060
  * Read-only preview recalculated on every request. Execution recomputes the actual plan. This operation does not scale the cluster or drain a node.
979
1061
  * @summary DolphinDB PreviewRebalance
@@ -1131,6 +1213,16 @@ export const DolphindbApiFactory = function (configuration?: Configuration, base
1131
1213
  dolphinDBListUsers(requestParameters: DolphindbApiDolphinDBListUsersRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<DolphinDBUser>> {
1132
1214
  return localVarFp.dolphinDBListUsers(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
1133
1215
  },
1216
+ /**
1217
+ * Read-only evacuation preview computed by an embedded DMS planner from native controller metadata. No addon planner or module upgrade is required. Does not evacuate data, reserve a plan, or remove a node. Existing HorizontalScaling/memberLeave independently checks current state and executes; capacity is not inferred from chunk size.
1218
+ * @summary Preview DolphinDB data node evacuation
1219
+ * @param {DolphindbApiDolphinDBPreviewDrainRequest} requestParameters Request parameters.
1220
+ * @param {*} [options] Override http request option.
1221
+ * @throws {RequiredError}
1222
+ */
1223
+ dolphinDBPreviewDrain(requestParameters: DolphindbApiDolphinDBPreviewDrainRequest, options?: RawAxiosRequestConfig): AxiosPromise<DolphinDBDrainPreview> {
1224
+ return localVarFp.dolphinDBPreviewDrain(requestParameters.orgName, requestParameters.clusterName, requestParameters.dolphinDBDrainRequest, requestParameters.offset, requestParameters.limit, options).then((request) => request(axios, basePath));
1225
+ },
1134
1226
  /**
1135
1227
  * Read-only preview recalculated on every request. Execution recomputes the actual plan. This operation does not scale the cluster or drain a node.
1136
1228
  * @summary DolphinDB PreviewRebalance
@@ -1280,6 +1372,16 @@ export interface DolphindbApiInterface {
1280
1372
  */
1281
1373
  dolphinDBListUsers(requestParameters: DolphindbApiDolphinDBListUsersRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<DolphinDBUser>>;
1282
1374
 
1375
+ /**
1376
+ * Read-only evacuation preview computed by an embedded DMS planner from native controller metadata. No addon planner or module upgrade is required. Does not evacuate data, reserve a plan, or remove a node. Existing HorizontalScaling/memberLeave independently checks current state and executes; capacity is not inferred from chunk size.
1377
+ * @summary Preview DolphinDB data node evacuation
1378
+ * @param {DolphindbApiDolphinDBPreviewDrainRequest} requestParameters Request parameters.
1379
+ * @param {*} [options] Override http request option.
1380
+ * @throws {RequiredError}
1381
+ * @memberof DolphindbApiInterface
1382
+ */
1383
+ dolphinDBPreviewDrain(requestParameters: DolphindbApiDolphinDBPreviewDrainRequest, options?: RawAxiosRequestConfig): AxiosPromise<DolphinDBDrainPreview>;
1384
+
1283
1385
  /**
1284
1386
  * Read-only preview recalculated on every request. Execution recomputes the actual plan. This operation does not scale the cluster or drain a node.
1285
1387
  * @summary DolphinDB PreviewRebalance
@@ -1663,6 +1765,48 @@ export interface DolphindbApiDolphinDBListUsersRequest {
1663
1765
  readonly clusterName: string
1664
1766
  }
1665
1767
 
1768
+ /**
1769
+ * Request parameters for dolphinDBPreviewDrain operation in DolphindbApi.
1770
+ * @export
1771
+ * @interface DolphindbApiDolphinDBPreviewDrainRequest
1772
+ */
1773
+ export interface DolphindbApiDolphinDBPreviewDrainRequest {
1774
+ /**
1775
+ *
1776
+ * @type {string}
1777
+ * @memberof DolphindbApiDolphinDBPreviewDrain
1778
+ */
1779
+ readonly orgName: string
1780
+
1781
+ /**
1782
+ *
1783
+ * @type {string}
1784
+ * @memberof DolphindbApiDolphinDBPreviewDrain
1785
+ */
1786
+ readonly clusterName: string
1787
+
1788
+ /**
1789
+ *
1790
+ * @type {DolphinDBDrainRequest}
1791
+ * @memberof DolphindbApiDolphinDBPreviewDrain
1792
+ */
1793
+ readonly dolphinDBDrainRequest: DolphinDBDrainRequest
1794
+
1795
+ /**
1796
+ *
1797
+ * @type {number}
1798
+ * @memberof DolphindbApiDolphinDBPreviewDrain
1799
+ */
1800
+ readonly offset?: number
1801
+
1802
+ /**
1803
+ *
1804
+ * @type {number}
1805
+ * @memberof DolphindbApiDolphinDBPreviewDrain
1806
+ */
1807
+ readonly limit?: number
1808
+ }
1809
+
1666
1810
  /**
1667
1811
  * Request parameters for dolphinDBPreviewRebalance operation in DolphindbApi.
1668
1812
  * @export
@@ -1868,6 +2012,18 @@ export class DolphindbApi extends BaseAPI implements DolphindbApiInterface {
1868
2012
  return DolphindbApiFp(this.configuration).dolphinDBListUsers(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
1869
2013
  }
1870
2014
 
2015
+ /**
2016
+ * Read-only evacuation preview computed by an embedded DMS planner from native controller metadata. No addon planner or module upgrade is required. Does not evacuate data, reserve a plan, or remove a node. Existing HorizontalScaling/memberLeave independently checks current state and executes; capacity is not inferred from chunk size.
2017
+ * @summary Preview DolphinDB data node evacuation
2018
+ * @param {DolphindbApiDolphinDBPreviewDrainRequest} requestParameters Request parameters.
2019
+ * @param {*} [options] Override http request option.
2020
+ * @throws {RequiredError}
2021
+ * @memberof DolphindbApi
2022
+ */
2023
+ public dolphinDBPreviewDrain(requestParameters: DolphindbApiDolphinDBPreviewDrainRequest, options?: RawAxiosRequestConfig) {
2024
+ return DolphindbApiFp(this.configuration).dolphinDBPreviewDrain(requestParameters.orgName, requestParameters.clusterName, requestParameters.dolphinDBDrainRequest, requestParameters.offset, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
2025
+ }
2026
+
1871
2027
  /**
1872
2028
  * Read-only preview recalculated on every request. Execution recomputes the actual plan. This operation does not scale the cluster or drain a node.
1873
2029
  * @summary DolphinDB PreviewRebalance
@@ -198,6 +198,10 @@ import type { DolphinDBCapabilities } from '../models';
198
198
  // @ts-ignore
199
199
  import type { DolphinDBDistribution } from '../models';
200
200
  // @ts-ignore
201
+ import type { DolphinDBDrainPreview } from '../models';
202
+ // @ts-ignore
203
+ import type { DolphinDBDrainRequest } from '../models';
204
+ // @ts-ignore
201
205
  import type { DolphinDBGroup } from '../models';
202
206
  // @ts-ignore
203
207
  import type { DolphinDBGroupCreate } from '../models';
@@ -5445,6 +5449,67 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
5445
5449
  options: localVarRequestOptions,
5446
5450
  };
5447
5451
  },
5452
+ /**
5453
+ * Read-only evacuation preview computed by an embedded DMS planner from native controller metadata. No addon planner or module upgrade is required. Does not evacuate data, reserve a plan, or remove a node. Existing HorizontalScaling/memberLeave independently checks current state and executes; capacity is not inferred from chunk size.
5454
+ * @summary Preview DolphinDB data node evacuation
5455
+ * @param {string} orgName
5456
+ * @param {string} clusterName
5457
+ * @param {DolphinDBDrainRequest} dolphinDBDrainRequest
5458
+ * @param {number} [offset]
5459
+ * @param {number} [limit]
5460
+ * @param {*} [options] Override http request option.
5461
+ * @throws {RequiredError}
5462
+ */
5463
+ dolphinDBPreviewDrain: async (orgName: string, clusterName: string, dolphinDBDrainRequest: DolphinDBDrainRequest, offset?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5464
+ // verify required parameter 'orgName' is not null or undefined
5465
+ assertParamExists('dolphinDBPreviewDrain', 'orgName', orgName)
5466
+ // verify required parameter 'clusterName' is not null or undefined
5467
+ assertParamExists('dolphinDBPreviewDrain', 'clusterName', clusterName)
5468
+ // verify required parameter 'dolphinDBDrainRequest' is not null or undefined
5469
+ assertParamExists('dolphinDBPreviewDrain', 'dolphinDBDrainRequest', dolphinDBDrainRequest)
5470
+ const localVarPath = `/admin/v1/data/dolphindb/organizations/{orgName}/clusters/{clusterName}/rebalance/drain-preview`
5471
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
5472
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
5473
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5474
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5475
+ let baseOptions;
5476
+ if (configuration) {
5477
+ baseOptions = configuration.baseOptions;
5478
+ }
5479
+
5480
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
5481
+ const localVarHeaderParameter = {} as any;
5482
+ const localVarQueryParameter = {} as any;
5483
+
5484
+ // authentication BearerToken required
5485
+ // http bearer authentication required
5486
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
5487
+
5488
+ // authentication DigestAuth required
5489
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
5490
+
5491
+ if (offset !== undefined) {
5492
+ localVarQueryParameter['offset'] = offset;
5493
+ }
5494
+
5495
+ if (limit !== undefined) {
5496
+ localVarQueryParameter['limit'] = limit;
5497
+ }
5498
+
5499
+
5500
+
5501
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5502
+
5503
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5504
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5505
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5506
+ localVarRequestOptions.data = serializeDataIfNeeded(dolphinDBDrainRequest, localVarRequestOptions, configuration)
5507
+
5508
+ return {
5509
+ url: toPathString(localVarUrlObj),
5510
+ options: localVarRequestOptions,
5511
+ };
5512
+ },
5448
5513
  /**
5449
5514
  * Read-only preview recalculated on every request. Execution recomputes the actual plan. This operation does not scale the cluster or drain a node.
5450
5515
  * @summary DolphinDB PreviewRebalance
@@ -21629,6 +21694,23 @@ export const SharedApiFp = function(configuration?: Configuration) {
21629
21694
  const localVarOperationServerBasePath = operationServerMap['SharedApi.dolphinDBListUsers']?.[localVarOperationServerIndex]?.url;
21630
21695
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21631
21696
  },
21697
+ /**
21698
+ * Read-only evacuation preview computed by an embedded DMS planner from native controller metadata. No addon planner or module upgrade is required. Does not evacuate data, reserve a plan, or remove a node. Existing HorizontalScaling/memberLeave independently checks current state and executes; capacity is not inferred from chunk size.
21699
+ * @summary Preview DolphinDB data node evacuation
21700
+ * @param {string} orgName
21701
+ * @param {string} clusterName
21702
+ * @param {DolphinDBDrainRequest} dolphinDBDrainRequest
21703
+ * @param {number} [offset]
21704
+ * @param {number} [limit]
21705
+ * @param {*} [options] Override http request option.
21706
+ * @throws {RequiredError}
21707
+ */
21708
+ async dolphinDBPreviewDrain(orgName: string, clusterName: string, dolphinDBDrainRequest: DolphinDBDrainRequest, offset?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DolphinDBDrainPreview>> {
21709
+ const localVarAxiosArgs = await localVarAxiosParamCreator.dolphinDBPreviewDrain(orgName, clusterName, dolphinDBDrainRequest, offset, limit, options);
21710
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21711
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.dolphinDBPreviewDrain']?.[localVarOperationServerIndex]?.url;
21712
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21713
+ },
21632
21714
  /**
21633
21715
  * Read-only preview recalculated on every request. Execution recomputes the actual plan. This operation does not scale the cluster or drain a node.
21634
21716
  * @summary DolphinDB PreviewRebalance
@@ -26825,6 +26907,16 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
26825
26907
  dolphinDBListUsers(requestParameters: SharedApiDolphinDBListUsersRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<DolphinDBUser>> {
26826
26908
  return localVarFp.dolphinDBListUsers(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
26827
26909
  },
26910
+ /**
26911
+ * Read-only evacuation preview computed by an embedded DMS planner from native controller metadata. No addon planner or module upgrade is required. Does not evacuate data, reserve a plan, or remove a node. Existing HorizontalScaling/memberLeave independently checks current state and executes; capacity is not inferred from chunk size.
26912
+ * @summary Preview DolphinDB data node evacuation
26913
+ * @param {SharedApiDolphinDBPreviewDrainRequest} requestParameters Request parameters.
26914
+ * @param {*} [options] Override http request option.
26915
+ * @throws {RequiredError}
26916
+ */
26917
+ dolphinDBPreviewDrain(requestParameters: SharedApiDolphinDBPreviewDrainRequest, options?: RawAxiosRequestConfig): AxiosPromise<DolphinDBDrainPreview> {
26918
+ return localVarFp.dolphinDBPreviewDrain(requestParameters.orgName, requestParameters.clusterName, requestParameters.dolphinDBDrainRequest, requestParameters.offset, requestParameters.limit, options).then((request) => request(axios, basePath));
26919
+ },
26828
26920
  /**
26829
26921
  * Read-only preview recalculated on every request. Execution recomputes the actual plan. This operation does not scale the cluster or drain a node.
26830
26922
  * @summary DolphinDB PreviewRebalance
@@ -30407,6 +30499,16 @@ export interface SharedApiInterface {
30407
30499
  */
30408
30500
  dolphinDBListUsers(requestParameters: SharedApiDolphinDBListUsersRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<DolphinDBUser>>;
30409
30501
 
30502
+ /**
30503
+ * Read-only evacuation preview computed by an embedded DMS planner from native controller metadata. No addon planner or module upgrade is required. Does not evacuate data, reserve a plan, or remove a node. Existing HorizontalScaling/memberLeave independently checks current state and executes; capacity is not inferred from chunk size.
30504
+ * @summary Preview DolphinDB data node evacuation
30505
+ * @param {SharedApiDolphinDBPreviewDrainRequest} requestParameters Request parameters.
30506
+ * @param {*} [options] Override http request option.
30507
+ * @throws {RequiredError}
30508
+ * @memberof SharedApiInterface
30509
+ */
30510
+ dolphinDBPreviewDrain(requestParameters: SharedApiDolphinDBPreviewDrainRequest, options?: RawAxiosRequestConfig): AxiosPromise<DolphinDBDrainPreview>;
30511
+
30410
30512
  /**
30411
30513
  * Read-only preview recalculated on every request. Execution recomputes the actual plan. This operation does not scale the cluster or drain a node.
30412
30514
  * @summary DolphinDB PreviewRebalance
@@ -35895,6 +35997,48 @@ export interface SharedApiDolphinDBListUsersRequest {
35895
35997
  readonly clusterName: string
35896
35998
  }
35897
35999
 
36000
+ /**
36001
+ * Request parameters for dolphinDBPreviewDrain operation in SharedApi.
36002
+ * @export
36003
+ * @interface SharedApiDolphinDBPreviewDrainRequest
36004
+ */
36005
+ export interface SharedApiDolphinDBPreviewDrainRequest {
36006
+ /**
36007
+ *
36008
+ * @type {string}
36009
+ * @memberof SharedApiDolphinDBPreviewDrain
36010
+ */
36011
+ readonly orgName: string
36012
+
36013
+ /**
36014
+ *
36015
+ * @type {string}
36016
+ * @memberof SharedApiDolphinDBPreviewDrain
36017
+ */
36018
+ readonly clusterName: string
36019
+
36020
+ /**
36021
+ *
36022
+ * @type {DolphinDBDrainRequest}
36023
+ * @memberof SharedApiDolphinDBPreviewDrain
36024
+ */
36025
+ readonly dolphinDBDrainRequest: DolphinDBDrainRequest
36026
+
36027
+ /**
36028
+ *
36029
+ * @type {number}
36030
+ * @memberof SharedApiDolphinDBPreviewDrain
36031
+ */
36032
+ readonly offset?: number
36033
+
36034
+ /**
36035
+ *
36036
+ * @type {number}
36037
+ * @memberof SharedApiDolphinDBPreviewDrain
36038
+ */
36039
+ readonly limit?: number
36040
+ }
36041
+
35898
36042
  /**
35899
36043
  * Request parameters for dolphinDBPreviewRebalance operation in SharedApi.
35900
36044
  * @export
@@ -46408,6 +46552,18 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
46408
46552
  return SharedApiFp(this.configuration).dolphinDBListUsers(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
46409
46553
  }
46410
46554
 
46555
+ /**
46556
+ * Read-only evacuation preview computed by an embedded DMS planner from native controller metadata. No addon planner or module upgrade is required. Does not evacuate data, reserve a plan, or remove a node. Existing HorizontalScaling/memberLeave independently checks current state and executes; capacity is not inferred from chunk size.
46557
+ * @summary Preview DolphinDB data node evacuation
46558
+ * @param {SharedApiDolphinDBPreviewDrainRequest} requestParameters Request parameters.
46559
+ * @param {*} [options] Override http request option.
46560
+ * @throws {RequiredError}
46561
+ * @memberof SharedApi
46562
+ */
46563
+ public dolphinDBPreviewDrain(requestParameters: SharedApiDolphinDBPreviewDrainRequest, options?: RawAxiosRequestConfig) {
46564
+ return SharedApiFp(this.configuration).dolphinDBPreviewDrain(requestParameters.orgName, requestParameters.clusterName, requestParameters.dolphinDBDrainRequest, requestParameters.offset, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
46565
+ }
46566
+
46411
46567
  /**
46412
46568
  * Read-only preview recalculated on every request. Execution recomputes the actual plan. This operation does not scale the cluster or drain a node.
46413
46569
  * @summary DolphinDB PreviewRebalance
@@ -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 DolphinDBDrainMigration
21
+ */
22
+ export interface DolphinDBDrainMigration {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof DolphinDBDrainMigration
27
+ */
28
+ 'chunkId': string;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof DolphinDBDrainMigration
33
+ */
34
+ 'srcNode': string;
35
+ /**
36
+ * Empty for a redundant replica deletion.
37
+ * @type {string}
38
+ * @memberof DolphinDBDrainMigration
39
+ */
40
+ 'destNode': string;
41
+ /**
42
+ * moveReplica or dropRedundantReplica. Preview does not execute either action.
43
+ * @type {string}
44
+ * @memberof DolphinDBDrainMigration
45
+ */
46
+ 'action': string;
47
+ }
48
+
@@ -0,0 +1,69 @@
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 { DolphinDBDrainMigration } from './dolphin-dbdrain-migration';
19
+
20
+ /**
21
+ *
22
+ * @export
23
+ * @interface DolphinDBDrainPreview
24
+ */
25
+ export interface DolphinDBDrainPreview {
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof DolphinDBDrainPreview
30
+ */
31
+ 'observedAt': string;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof DolphinDBDrainPreview
36
+ */
37
+ 'source': string;
38
+ /**
39
+ *
40
+ * @type {Array<string>}
41
+ * @memberof DolphinDBDrainPreview
42
+ */
43
+ 'remainingNodes': Array<string>;
44
+ /**
45
+ *
46
+ * @type {number}
47
+ * @memberof DolphinDBDrainPreview
48
+ */
49
+ 'total': number;
50
+ /**
51
+ *
52
+ * @type {number}
53
+ * @memberof DolphinDBDrainPreview
54
+ */
55
+ 'offset': number;
56
+ /**
57
+ *
58
+ * @type {Array<DolphinDBDrainMigration>}
59
+ * @memberof DolphinDBDrainPreview
60
+ */
61
+ 'entries': Array<DolphinDBDrainMigration>;
62
+ /**
63
+ * Always notValidated. This preview is not proof of sufficient physical capacity or permission to delete the node.
64
+ * @type {string}
65
+ * @memberof DolphinDBDrainPreview
66
+ */
67
+ 'capacityCheck': string;
68
+ }
69
+
@@ -0,0 +1,36 @@
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 DolphinDBDrainRequest
21
+ */
22
+ export interface DolphinDBDrainRequest {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof DolphinDBDrainRequest
27
+ */
28
+ 'source': string;
29
+ /**
30
+ *
31
+ * @type {Set<string>}
32
+ * @memberof DolphinDBDrainRequest
33
+ */
34
+ 'remainingNodes': Set<string>;
35
+ }
36
+
@@ -428,6 +428,9 @@ export * from './dms-visual-explain-request';
428
428
  export * from './dns';
429
429
  export * from './dolphin-dbcapabilities';
430
430
  export * from './dolphin-dbdistribution';
431
+ export * from './dolphin-dbdrain-migration';
432
+ export * from './dolphin-dbdrain-preview';
433
+ export * from './dolphin-dbdrain-request';
431
434
  export * from './dolphin-dbgroup';
432
435
  export * from './dolphin-dbgroup-create';
433
436
  export * from './dolphin-dbgroup-permissions';