kb-cloud-client-typescript 2.4.0-alpha.131 → 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
package/src/adminapi.yaml CHANGED
@@ -78,6 +78,60 @@ tags:
78
78
  - name: redisKeyAnalysis
79
79
  description: Redis Keys Analysis APIs
80
80
  paths:
81
+ /admin/v1/data/dolphindb/organizations/{orgName}/clusters/{clusterName}/rebalance/drain-preview:
82
+ post:
83
+ summary: Preview DolphinDB data node evacuation
84
+ operationId: dolphinDBPreviewDrain
85
+ tags:
86
+ - dolphindb
87
+ - shared
88
+ description: 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.
89
+ parameters:
90
+ - name: orgName
91
+ in: path
92
+ required: true
93
+ schema:
94
+ type: string
95
+ - name: clusterName
96
+ in: path
97
+ required: true
98
+ schema:
99
+ type: string
100
+ - name: offset
101
+ in: query
102
+ schema:
103
+ type: integer
104
+ minimum: 0
105
+ maximum: 10000000
106
+ default: 0
107
+ - name: limit
108
+ in: query
109
+ schema:
110
+ type: integer
111
+ minimum: 1
112
+ maximum: 1000
113
+ default: 100
114
+ requestBody:
115
+ required: true
116
+ content:
117
+ application/json:
118
+ schema:
119
+ $ref: '#/components/schemas/DolphinDBDrainRequest'
120
+ responses:
121
+ '200':
122
+ description: Observed evacuation plan
123
+ content:
124
+ application/json:
125
+ schema:
126
+ $ref: '#/components/schemas/DolphinDBDrainPreview'
127
+ '400':
128
+ $ref: '#/components/responses/400'
129
+ '401':
130
+ $ref: '#/components/responses/401'
131
+ '403':
132
+ $ref: '#/components/responses/403'
133
+ '500':
134
+ $ref: '#/components/responses/500'
81
135
  /admin/v1/data/dolphindb/organizations/{orgName}/clusters/{clusterName}/rebalance/preview:
82
136
  get:
83
137
  summary: DolphinDB PreviewRebalance
@@ -31572,8 +31626,30 @@ components:
31572
31626
  curl --digest -u "accessKey:secretKey" https://api.example.com/admin/v1/user
31573
31627
  ```
31574
31628
  schemas:
31575
- DolphinDBMigration:
31629
+ DolphinDBDrainRequest:
31576
31630
  type: object
31631
+ required:
31632
+ - source
31633
+ - remainingNodes
31634
+ properties:
31635
+ source:
31636
+ type: string
31637
+ pattern: ^[A-Za-z0-9_-]{1,253}$
31638
+ remainingNodes:
31639
+ type: array
31640
+ minItems: 1
31641
+ maxItems: 1000
31642
+ uniqueItems: true
31643
+ items:
31644
+ type: string
31645
+ pattern: ^[A-Za-z0-9_-]{1,253}$
31646
+ DolphinDBDrainMigration:
31647
+ type: object
31648
+ required:
31649
+ - chunkId
31650
+ - srcNode
31651
+ - destNode
31652
+ - action
31577
31653
  properties:
31578
31654
  chunkId:
31579
31655
  type: string
@@ -31581,30 +31657,41 @@ components:
31581
31657
  type: string
31582
31658
  destNode:
31583
31659
  type: string
31584
- destVolume:
31660
+ description: Empty for a redundant replica deletion.
31661
+ action:
31585
31662
  type: string
31586
- required:
31587
- - chunkId
31588
- - srcNode
31589
- - destNode
31590
- DolphinDBRebalancePreview:
31663
+ description: moveReplica or dropRedundantReplica. Preview does not execute either action.
31664
+ DolphinDBDrainPreview:
31591
31665
  type: object
31666
+ required:
31667
+ - observedAt
31668
+ - source
31669
+ - remainingNodes
31670
+ - total
31671
+ - offset
31672
+ - entries
31673
+ - capacityCheck
31592
31674
  properties:
31593
31675
  observedAt:
31594
31676
  type: string
31595
31677
  format: date-time
31596
- updatedBeforeDays:
31597
- type: number
31678
+ source:
31679
+ type: string
31680
+ remainingNodes:
31681
+ type: array
31682
+ items:
31683
+ type: string
31598
31684
  total:
31599
31685
  type: integer
31600
- format: int64
31601
31686
  offset:
31602
31687
  type: integer
31603
- format: int64
31604
31688
  entries:
31605
31689
  type: array
31606
31690
  items:
31607
- $ref: '#/components/schemas/DolphinDBMigration'
31691
+ $ref: '#/components/schemas/DolphinDBDrainMigration'
31692
+ capacityCheck:
31693
+ type: string
31694
+ description: Always notValidated. This preview is not proof of sufficient physical capacity or permission to delete the node.
31608
31695
  APIErrorResponse:
31609
31696
  description: API error response.
31610
31697
  properties:
@@ -31620,6 +31707,39 @@ components:
31620
31707
  required:
31621
31708
  - code
31622
31709
  type: object
31710
+ DolphinDBMigration:
31711
+ type: object
31712
+ properties:
31713
+ chunkId:
31714
+ type: string
31715
+ srcNode:
31716
+ type: string
31717
+ destNode:
31718
+ type: string
31719
+ destVolume:
31720
+ type: string
31721
+ required:
31722
+ - chunkId
31723
+ - srcNode
31724
+ - destNode
31725
+ DolphinDBRebalancePreview:
31726
+ type: object
31727
+ properties:
31728
+ observedAt:
31729
+ type: string
31730
+ format: date-time
31731
+ updatedBeforeDays:
31732
+ type: number
31733
+ total:
31734
+ type: integer
31735
+ format: int64
31736
+ offset:
31737
+ type: integer
31738
+ format: int64
31739
+ entries:
31740
+ type: array
31741
+ items:
31742
+ $ref: '#/components/schemas/DolphinDBMigration'
31623
31743
  DolphinDBVolumeUsage:
31624
31744
  type: object
31625
31745
  properties:
@@ -491,6 +491,9 @@ models/dmsconsole-net-mode.ts
491
491
  models/dmsconsole-svc-type.ts
492
492
  models/dolphin-dbcapabilities.ts
493
493
  models/dolphin-dbdistribution.ts
494
+ models/dolphin-dbdrain-migration.ts
495
+ models/dolphin-dbdrain-preview.ts
496
+ models/dolphin-dbdrain-request.ts
494
497
  models/dolphin-dbgroup-create.ts
495
498
  models/dolphin-dbgroup-permissions.ts
496
499
  models/dolphin-dbgroup.ts
@@ -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 = `/api/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';
@@ -5485,6 +5489,67 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
5485
5489
  options: localVarRequestOptions,
5486
5490
  };
5487
5491
  },
5492
+ /**
5493
+ * 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.
5494
+ * @summary Preview DolphinDB data node evacuation
5495
+ * @param {string} orgName
5496
+ * @param {string} clusterName
5497
+ * @param {DolphinDBDrainRequest} dolphinDBDrainRequest
5498
+ * @param {number} [offset]
5499
+ * @param {number} [limit]
5500
+ * @param {*} [options] Override http request option.
5501
+ * @throws {RequiredError}
5502
+ */
5503
+ dolphinDBPreviewDrain: async (orgName: string, clusterName: string, dolphinDBDrainRequest: DolphinDBDrainRequest, offset?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5504
+ // verify required parameter 'orgName' is not null or undefined
5505
+ assertParamExists('dolphinDBPreviewDrain', 'orgName', orgName)
5506
+ // verify required parameter 'clusterName' is not null or undefined
5507
+ assertParamExists('dolphinDBPreviewDrain', 'clusterName', clusterName)
5508
+ // verify required parameter 'dolphinDBDrainRequest' is not null or undefined
5509
+ assertParamExists('dolphinDBPreviewDrain', 'dolphinDBDrainRequest', dolphinDBDrainRequest)
5510
+ const localVarPath = `/api/v1/data/dolphindb/organizations/{orgName}/clusters/{clusterName}/rebalance/drain-preview`
5511
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
5512
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
5513
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5514
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5515
+ let baseOptions;
5516
+ if (configuration) {
5517
+ baseOptions = configuration.baseOptions;
5518
+ }
5519
+
5520
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
5521
+ const localVarHeaderParameter = {} as any;
5522
+ const localVarQueryParameter = {} as any;
5523
+
5524
+ // authentication BearerToken required
5525
+ // http bearer authentication required
5526
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
5527
+
5528
+ // authentication DigestAuth required
5529
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
5530
+
5531
+ if (offset !== undefined) {
5532
+ localVarQueryParameter['offset'] = offset;
5533
+ }
5534
+
5535
+ if (limit !== undefined) {
5536
+ localVarQueryParameter['limit'] = limit;
5537
+ }
5538
+
5539
+
5540
+
5541
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5542
+
5543
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5544
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5545
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5546
+ localVarRequestOptions.data = serializeDataIfNeeded(dolphinDBDrainRequest, localVarRequestOptions, configuration)
5547
+
5548
+ return {
5549
+ url: toPathString(localVarUrlObj),
5550
+ options: localVarRequestOptions,
5551
+ };
5552
+ },
5488
5553
  /**
5489
5554
  * Read-only preview recalculated on every request. Execution recomputes the actual plan. This operation does not scale the cluster or drain a node.
5490
5555
  * @summary DolphinDB PreviewRebalance
@@ -21706,6 +21771,23 @@ export const SharedApiFp = function(configuration?: Configuration) {
21706
21771
  const localVarOperationServerBasePath = operationServerMap['SharedApi.dolphinDBListUsers']?.[localVarOperationServerIndex]?.url;
21707
21772
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21708
21773
  },
21774
+ /**
21775
+ * 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.
21776
+ * @summary Preview DolphinDB data node evacuation
21777
+ * @param {string} orgName
21778
+ * @param {string} clusterName
21779
+ * @param {DolphinDBDrainRequest} dolphinDBDrainRequest
21780
+ * @param {number} [offset]
21781
+ * @param {number} [limit]
21782
+ * @param {*} [options] Override http request option.
21783
+ * @throws {RequiredError}
21784
+ */
21785
+ async dolphinDBPreviewDrain(orgName: string, clusterName: string, dolphinDBDrainRequest: DolphinDBDrainRequest, offset?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DolphinDBDrainPreview>> {
21786
+ const localVarAxiosArgs = await localVarAxiosParamCreator.dolphinDBPreviewDrain(orgName, clusterName, dolphinDBDrainRequest, offset, limit, options);
21787
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21788
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.dolphinDBPreviewDrain']?.[localVarOperationServerIndex]?.url;
21789
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21790
+ },
21709
21791
  /**
21710
21792
  * Read-only preview recalculated on every request. Execution recomputes the actual plan. This operation does not scale the cluster or drain a node.
21711
21793
  * @summary DolphinDB PreviewRebalance
@@ -26899,6 +26981,16 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
26899
26981
  dolphinDBListUsers(requestParameters: SharedApiDolphinDBListUsersRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<DolphinDBUser>> {
26900
26982
  return localVarFp.dolphinDBListUsers(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
26901
26983
  },
26984
+ /**
26985
+ * 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.
26986
+ * @summary Preview DolphinDB data node evacuation
26987
+ * @param {SharedApiDolphinDBPreviewDrainRequest} requestParameters Request parameters.
26988
+ * @param {*} [options] Override http request option.
26989
+ * @throws {RequiredError}
26990
+ */
26991
+ dolphinDBPreviewDrain(requestParameters: SharedApiDolphinDBPreviewDrainRequest, options?: RawAxiosRequestConfig): AxiosPromise<DolphinDBDrainPreview> {
26992
+ return localVarFp.dolphinDBPreviewDrain(requestParameters.orgName, requestParameters.clusterName, requestParameters.dolphinDBDrainRequest, requestParameters.offset, requestParameters.limit, options).then((request) => request(axios, basePath));
26993
+ },
26902
26994
  /**
26903
26995
  * Read-only preview recalculated on every request. Execution recomputes the actual plan. This operation does not scale the cluster or drain a node.
26904
26996
  * @summary DolphinDB PreviewRebalance
@@ -30463,6 +30555,16 @@ export interface SharedApiInterface {
30463
30555
  */
30464
30556
  dolphinDBListUsers(requestParameters: SharedApiDolphinDBListUsersRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<DolphinDBUser>>;
30465
30557
 
30558
+ /**
30559
+ * 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.
30560
+ * @summary Preview DolphinDB data node evacuation
30561
+ * @param {SharedApiDolphinDBPreviewDrainRequest} requestParameters Request parameters.
30562
+ * @param {*} [options] Override http request option.
30563
+ * @throws {RequiredError}
30564
+ * @memberof SharedApiInterface
30565
+ */
30566
+ dolphinDBPreviewDrain(requestParameters: SharedApiDolphinDBPreviewDrainRequest, options?: RawAxiosRequestConfig): AxiosPromise<DolphinDBDrainPreview>;
30567
+
30466
30568
  /**
30467
30569
  * Read-only preview recalculated on every request. Execution recomputes the actual plan. This operation does not scale the cluster or drain a node.
30468
30570
  * @summary DolphinDB PreviewRebalance
@@ -36023,6 +36125,48 @@ export interface SharedApiDolphinDBListUsersRequest {
36023
36125
  readonly clusterName: string
36024
36126
  }
36025
36127
 
36128
+ /**
36129
+ * Request parameters for dolphinDBPreviewDrain operation in SharedApi.
36130
+ * @export
36131
+ * @interface SharedApiDolphinDBPreviewDrainRequest
36132
+ */
36133
+ export interface SharedApiDolphinDBPreviewDrainRequest {
36134
+ /**
36135
+ *
36136
+ * @type {string}
36137
+ * @memberof SharedApiDolphinDBPreviewDrain
36138
+ */
36139
+ readonly orgName: string
36140
+
36141
+ /**
36142
+ *
36143
+ * @type {string}
36144
+ * @memberof SharedApiDolphinDBPreviewDrain
36145
+ */
36146
+ readonly clusterName: string
36147
+
36148
+ /**
36149
+ *
36150
+ * @type {DolphinDBDrainRequest}
36151
+ * @memberof SharedApiDolphinDBPreviewDrain
36152
+ */
36153
+ readonly dolphinDBDrainRequest: DolphinDBDrainRequest
36154
+
36155
+ /**
36156
+ *
36157
+ * @type {number}
36158
+ * @memberof SharedApiDolphinDBPreviewDrain
36159
+ */
36160
+ readonly offset?: number
36161
+
36162
+ /**
36163
+ *
36164
+ * @type {number}
36165
+ * @memberof SharedApiDolphinDBPreviewDrain
36166
+ */
36167
+ readonly limit?: number
36168
+ }
36169
+
36026
36170
  /**
36027
36171
  * Request parameters for dolphinDBPreviewRebalance operation in SharedApi.
36028
36172
  * @export
@@ -46684,6 +46828,18 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
46684
46828
  return SharedApiFp(this.configuration).dolphinDBListUsers(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
46685
46829
  }
46686
46830
 
46831
+ /**
46832
+ * 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.
46833
+ * @summary Preview DolphinDB data node evacuation
46834
+ * @param {SharedApiDolphinDBPreviewDrainRequest} requestParameters Request parameters.
46835
+ * @param {*} [options] Override http request option.
46836
+ * @throws {RequiredError}
46837
+ * @memberof SharedApi
46838
+ */
46839
+ public dolphinDBPreviewDrain(requestParameters: SharedApiDolphinDBPreviewDrainRequest, options?: RawAxiosRequestConfig) {
46840
+ return SharedApiFp(this.configuration).dolphinDBPreviewDrain(requestParameters.orgName, requestParameters.clusterName, requestParameters.dolphinDBDrainRequest, requestParameters.offset, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
46841
+ }
46842
+
46687
46843
  /**
46688
46844
  * Read-only preview recalculated on every request. Execution recomputes the actual plan. This operation does not scale the cluster or drain a node.
46689
46845
  * @summary DolphinDB PreviewRebalance
@@ -0,0 +1,48 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * KubeBlocks Cloud API
5
+ * KubeBlocks Cloud API is a RESTful API for managing KubeBlocks Cloud resources. The API is organized around REST. Our API has predictable resource-oriented URLs, accepts `JSON-encoded` request bodies, returns `JSON-encoded` responses, and uses standard HTTP response codes, authentication, and verbs. We use standard HTTP authentication and provide API keys to identify who you are. Your API keys carry many privileges, so be sure to keep them secret! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@apecloud.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
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
+