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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/dist/adminapi/apis/backup-api.d.ts +64 -0
  2. package/dist/adminapi/apis/backup-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/backup-api.js +75 -0
  4. package/dist/adminapi/apis/backup-api.js.map +1 -1
  5. package/dist/adminapi/apis/dolphindb-api.d.ts +225 -0
  6. package/dist/adminapi/apis/dolphindb-api.d.ts.map +1 -1
  7. package/dist/adminapi/apis/dolphindb-api.js +243 -0
  8. package/dist/adminapi/apis/dolphindb-api.js.map +1 -1
  9. package/dist/adminapi/apis/shared-api.d.ts +224 -0
  10. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  11. package/dist/adminapi/apis/shared-api.js +243 -0
  12. package/dist/adminapi/apis/shared-api.js.map +1 -1
  13. package/dist/adminapi/models/backup-batch-delete.d.ts +25 -0
  14. package/dist/adminapi/models/backup-batch-delete.d.ts.map +1 -0
  15. package/dist/adminapi/models/backup-batch-delete.js +16 -0
  16. package/dist/adminapi/models/backup-batch-delete.js.map +1 -0
  17. package/dist/adminapi/models/dolphin-dbdistribution.d.ts +39 -0
  18. package/dist/adminapi/models/dolphin-dbdistribution.d.ts.map +1 -0
  19. package/dist/adminapi/models/dolphin-dbdistribution.js +16 -0
  20. package/dist/adminapi/models/dolphin-dbdistribution.js.map +1 -0
  21. package/dist/adminapi/models/dolphin-dbmigration.d.ts +43 -0
  22. package/dist/adminapi/models/dolphin-dbmigration.d.ts.map +1 -0
  23. package/dist/adminapi/models/dolphin-dbmigration.js +16 -0
  24. package/dist/adminapi/models/dolphin-dbmigration.js.map +1 -0
  25. package/dist/adminapi/models/dolphin-dbrebalance-preview.d.ts +50 -0
  26. package/dist/adminapi/models/dolphin-dbrebalance-preview.d.ts.map +1 -0
  27. package/dist/adminapi/models/dolphin-dbrebalance-preview.js +16 -0
  28. package/dist/adminapi/models/dolphin-dbrebalance-preview.js.map +1 -0
  29. package/dist/adminapi/models/dolphin-dbrebalance-request.d.ts +31 -0
  30. package/dist/adminapi/models/dolphin-dbrebalance-request.d.ts.map +1 -0
  31. package/dist/adminapi/models/dolphin-dbrebalance-request.js +16 -0
  32. package/dist/adminapi/models/dolphin-dbrebalance-request.js.map +1 -0
  33. package/dist/adminapi/models/dolphin-dbreplica-distribution.d.ts +31 -0
  34. package/dist/adminapi/models/dolphin-dbreplica-distribution.d.ts.map +1 -0
  35. package/dist/adminapi/models/dolphin-dbreplica-distribution.js +16 -0
  36. package/dist/adminapi/models/dolphin-dbreplica-distribution.js.map +1 -0
  37. package/dist/adminapi/models/dolphin-dbvolume-usage.d.ts +43 -0
  38. package/dist/adminapi/models/dolphin-dbvolume-usage.d.ts.map +1 -0
  39. package/dist/adminapi/models/dolphin-dbvolume-usage.js +16 -0
  40. package/dist/adminapi/models/dolphin-dbvolume-usage.js.map +1 -0
  41. package/dist/adminapi/models/index.d.ts +7 -0
  42. package/dist/adminapi/models/index.d.ts.map +1 -1
  43. package/dist/adminapi/models/index.js +7 -0
  44. package/dist/adminapi/models/index.js.map +1 -1
  45. package/dist/openapi/apis/backup-api.d.ts +64 -0
  46. package/dist/openapi/apis/backup-api.d.ts.map +1 -1
  47. package/dist/openapi/apis/backup-api.js +75 -0
  48. package/dist/openapi/apis/backup-api.js.map +1 -1
  49. package/dist/openapi/apis/dolphindb-api.d.ts +225 -0
  50. package/dist/openapi/apis/dolphindb-api.d.ts.map +1 -1
  51. package/dist/openapi/apis/dolphindb-api.js +243 -0
  52. package/dist/openapi/apis/dolphindb-api.js.map +1 -1
  53. package/dist/openapi/apis/shared-api.d.ts +224 -0
  54. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  55. package/dist/openapi/apis/shared-api.js +243 -0
  56. package/dist/openapi/apis/shared-api.js.map +1 -1
  57. package/dist/openapi/models/backup-batch-delete.d.ts +25 -0
  58. package/dist/openapi/models/backup-batch-delete.d.ts.map +1 -0
  59. package/dist/openapi/models/backup-batch-delete.js +16 -0
  60. package/dist/openapi/models/backup-batch-delete.js.map +1 -0
  61. package/dist/openapi/models/dolphin-dbdistribution.d.ts +39 -0
  62. package/dist/openapi/models/dolphin-dbdistribution.d.ts.map +1 -0
  63. package/dist/openapi/models/dolphin-dbdistribution.js +16 -0
  64. package/dist/openapi/models/dolphin-dbdistribution.js.map +1 -0
  65. package/dist/openapi/models/dolphin-dbmigration.d.ts +43 -0
  66. package/dist/openapi/models/dolphin-dbmigration.d.ts.map +1 -0
  67. package/dist/openapi/models/dolphin-dbmigration.js +16 -0
  68. package/dist/openapi/models/dolphin-dbmigration.js.map +1 -0
  69. package/dist/openapi/models/dolphin-dbrebalance-preview.d.ts +50 -0
  70. package/dist/openapi/models/dolphin-dbrebalance-preview.d.ts.map +1 -0
  71. package/dist/openapi/models/dolphin-dbrebalance-preview.js +16 -0
  72. package/dist/openapi/models/dolphin-dbrebalance-preview.js.map +1 -0
  73. package/dist/openapi/models/dolphin-dbrebalance-request.d.ts +31 -0
  74. package/dist/openapi/models/dolphin-dbrebalance-request.d.ts.map +1 -0
  75. package/dist/openapi/models/dolphin-dbrebalance-request.js +16 -0
  76. package/dist/openapi/models/dolphin-dbrebalance-request.js.map +1 -0
  77. package/dist/openapi/models/dolphin-dbreplica-distribution.d.ts +31 -0
  78. package/dist/openapi/models/dolphin-dbreplica-distribution.d.ts.map +1 -0
  79. package/dist/openapi/models/dolphin-dbreplica-distribution.js +16 -0
  80. package/dist/openapi/models/dolphin-dbreplica-distribution.js.map +1 -0
  81. package/dist/openapi/models/dolphin-dbvolume-usage.d.ts +43 -0
  82. package/dist/openapi/models/dolphin-dbvolume-usage.d.ts.map +1 -0
  83. package/dist/openapi/models/dolphin-dbvolume-usage.js +16 -0
  84. package/dist/openapi/models/dolphin-dbvolume-usage.js.map +1 -0
  85. package/dist/openapi/models/index.d.ts +7 -0
  86. package/dist/openapi/models/index.d.ts.map +1 -1
  87. package/dist/openapi/models/index.js +7 -0
  88. package/dist/openapi/models/index.js.map +1 -1
  89. package/package.json +1 -1
  90. package/src/adminapi/.openapi-generator/FILES +7 -0
  91. package/src/adminapi/apis/backup-api.ts +116 -0
  92. package/src/adminapi/apis/dolphindb-api.ts +397 -0
  93. package/src/adminapi/apis/shared-api.ts +395 -0
  94. package/src/adminapi/models/backup-batch-delete.ts +30 -0
  95. package/src/adminapi/models/dolphin-dbdistribution.ts +48 -0
  96. package/src/adminapi/models/dolphin-dbmigration.ts +48 -0
  97. package/src/adminapi/models/dolphin-dbrebalance-preview.ts +57 -0
  98. package/src/adminapi/models/dolphin-dbrebalance-request.ts +36 -0
  99. package/src/adminapi/models/dolphin-dbreplica-distribution.ts +36 -0
  100. package/src/adminapi/models/dolphin-dbvolume-usage.ts +48 -0
  101. package/src/adminapi/models/index.ts +7 -0
  102. package/src/adminapi.yaml +292 -24
  103. package/src/openapi/.openapi-generator/FILES +7 -0
  104. package/src/openapi/apis/backup-api.ts +116 -0
  105. package/src/openapi/apis/dolphindb-api.ts +397 -0
  106. package/src/openapi/apis/shared-api.ts +395 -0
  107. package/src/openapi/models/backup-batch-delete.ts +30 -0
  108. package/src/openapi/models/dolphin-dbdistribution.ts +48 -0
  109. package/src/openapi/models/dolphin-dbmigration.ts +48 -0
  110. package/src/openapi/models/dolphin-dbrebalance-preview.ts +57 -0
  111. package/src/openapi/models/dolphin-dbrebalance-request.ts +36 -0
  112. package/src/openapi/models/dolphin-dbreplica-distribution.ts +36 -0
  113. package/src/openapi/models/dolphin-dbvolume-usage.ts +48 -0
  114. package/src/openapi/models/index.ts +7 -0
  115. package/src/openapi.yaml +292 -24
@@ -196,6 +196,8 @@ import type { DmsVisualExplainRequest } from '../models';
196
196
  // @ts-ignore
197
197
  import type { DolphinDBCapabilities } from '../models';
198
198
  // @ts-ignore
199
+ import type { DolphinDBDistribution } from '../models';
200
+ // @ts-ignore
199
201
  import type { DolphinDBGroup } from '../models';
200
202
  // @ts-ignore
201
203
  import type { DolphinDBGroupCreate } from '../models';
@@ -208,6 +210,10 @@ import type { DolphinDBPermissionChange } from '../models';
208
210
  // @ts-ignore
209
211
  import type { DolphinDBPermissionSnapshot } from '../models';
210
212
  // @ts-ignore
213
+ import type { DolphinDBRebalancePreview } from '../models';
214
+ // @ts-ignore
215
+ import type { DolphinDBRebalanceRequest } from '../models';
216
+ // @ts-ignore
211
217
  import type { DolphinDBUser } from '../models';
212
218
  // @ts-ignore
213
219
  import type { DolphinDBUserCreate } from '../models';
@@ -5046,6 +5052,57 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
5046
5052
  options: localVarRequestOptions,
5047
5053
  };
5048
5054
  },
5055
+ /**
5056
+ * 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.
5057
+ * @summary DolphinDB CreateRebalance
5058
+ * @param {string} orgName
5059
+ * @param {string} clusterName
5060
+ * @param {DolphinDBRebalanceRequest} dolphinDBRebalanceRequest
5061
+ * @param {*} [options] Override http request option.
5062
+ * @throws {RequiredError}
5063
+ */
5064
+ dolphinDBCreateRebalance: async (orgName: string, clusterName: string, dolphinDBRebalanceRequest: DolphinDBRebalanceRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5065
+ // verify required parameter 'orgName' is not null or undefined
5066
+ assertParamExists('dolphinDBCreateRebalance', 'orgName', orgName)
5067
+ // verify required parameter 'clusterName' is not null or undefined
5068
+ assertParamExists('dolphinDBCreateRebalance', 'clusterName', clusterName)
5069
+ // verify required parameter 'dolphinDBRebalanceRequest' is not null or undefined
5070
+ assertParamExists('dolphinDBCreateRebalance', 'dolphinDBRebalanceRequest', dolphinDBRebalanceRequest)
5071
+ const localVarPath = `/api/v1/data/dolphindb/organizations/{orgName}/clusters/{clusterName}/rebalance/operations`
5072
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
5073
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
5074
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5075
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5076
+ let baseOptions;
5077
+ if (configuration) {
5078
+ baseOptions = configuration.baseOptions;
5079
+ }
5080
+
5081
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
5082
+ const localVarHeaderParameter = {} as any;
5083
+ const localVarQueryParameter = {} as any;
5084
+
5085
+ // authentication BearerToken required
5086
+ // http bearer authentication required
5087
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
5088
+
5089
+ // authentication DigestAuth required
5090
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
5091
+
5092
+
5093
+
5094
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5095
+
5096
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5097
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5098
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5099
+ localVarRequestOptions.data = serializeDataIfNeeded(dolphinDBRebalanceRequest, localVarRequestOptions, configuration)
5100
+
5101
+ return {
5102
+ url: toPathString(localVarUrlObj),
5103
+ options: localVarRequestOptions,
5104
+ };
5105
+ },
5049
5106
  /**
5050
5107
  *
5051
5108
  * @summary DolphinDB CreateUser
@@ -5231,6 +5288,51 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
5231
5288
 
5232
5289
 
5233
5290
 
5291
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5292
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5293
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5294
+
5295
+ return {
5296
+ url: toPathString(localVarUrlObj),
5297
+ options: localVarRequestOptions,
5298
+ };
5299
+ },
5300
+ /**
5301
+ * Filesystem bytes and physical chunk replica counts (including metadata/unready replicas). Not logical data size or healthy-copy counts.
5302
+ * @summary DolphinDB GetDistribution
5303
+ * @param {string} orgName
5304
+ * @param {string} clusterName
5305
+ * @param {*} [options] Override http request option.
5306
+ * @throws {RequiredError}
5307
+ */
5308
+ dolphinDBGetDistribution: async (orgName: string, clusterName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5309
+ // verify required parameter 'orgName' is not null or undefined
5310
+ assertParamExists('dolphinDBGetDistribution', 'orgName', orgName)
5311
+ // verify required parameter 'clusterName' is not null or undefined
5312
+ assertParamExists('dolphinDBGetDistribution', 'clusterName', clusterName)
5313
+ const localVarPath = `/api/v1/data/dolphindb/organizations/{orgName}/clusters/{clusterName}/distribution`
5314
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
5315
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
5316
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5317
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5318
+ let baseOptions;
5319
+ if (configuration) {
5320
+ baseOptions = configuration.baseOptions;
5321
+ }
5322
+
5323
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5324
+ const localVarHeaderParameter = {} as any;
5325
+ const localVarQueryParameter = {} as any;
5326
+
5327
+ // authentication BearerToken required
5328
+ // http bearer authentication required
5329
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
5330
+
5331
+ // authentication DigestAuth required
5332
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
5333
+
5334
+
5335
+
5234
5336
  setSearchParams(localVarUrlObj, localVarQueryParameter);
5235
5337
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5236
5338
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -5374,6 +5476,66 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
5374
5476
 
5375
5477
 
5376
5478
 
5479
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5480
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5481
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5482
+
5483
+ return {
5484
+ url: toPathString(localVarUrlObj),
5485
+ options: localVarRequestOptions,
5486
+ };
5487
+ },
5488
+ /**
5489
+ * Read-only preview recalculated on every request. Execution recomputes the actual plan. This operation does not scale the cluster or drain a node.
5490
+ * @summary DolphinDB PreviewRebalance
5491
+ * @param {string} orgName
5492
+ * @param {string} clusterName
5493
+ * @param {number} [offset]
5494
+ * @param {number} [limit]
5495
+ * @param {number} [updatedBeforeDays]
5496
+ * @param {*} [options] Override http request option.
5497
+ * @throws {RequiredError}
5498
+ */
5499
+ dolphinDBPreviewRebalance: async (orgName: string, clusterName: string, offset?: number, limit?: number, updatedBeforeDays?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5500
+ // verify required parameter 'orgName' is not null or undefined
5501
+ assertParamExists('dolphinDBPreviewRebalance', 'orgName', orgName)
5502
+ // verify required parameter 'clusterName' is not null or undefined
5503
+ assertParamExists('dolphinDBPreviewRebalance', 'clusterName', clusterName)
5504
+ const localVarPath = `/api/v1/data/dolphindb/organizations/{orgName}/clusters/{clusterName}/rebalance/preview`
5505
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
5506
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
5507
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5508
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5509
+ let baseOptions;
5510
+ if (configuration) {
5511
+ baseOptions = configuration.baseOptions;
5512
+ }
5513
+
5514
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5515
+ const localVarHeaderParameter = {} as any;
5516
+ const localVarQueryParameter = {} as any;
5517
+
5518
+ // authentication BearerToken required
5519
+ // http bearer authentication required
5520
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
5521
+
5522
+ // authentication DigestAuth required
5523
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
5524
+
5525
+ if (offset !== undefined) {
5526
+ localVarQueryParameter['offset'] = offset;
5527
+ }
5528
+
5529
+ if (limit !== undefined) {
5530
+ localVarQueryParameter['limit'] = limit;
5531
+ }
5532
+
5533
+ if (updatedBeforeDays !== undefined) {
5534
+ localVarQueryParameter['updatedBeforeDays'] = updatedBeforeDays;
5535
+ }
5536
+
5537
+
5538
+
5377
5539
  setSearchParams(localVarUrlObj, localVarQueryParameter);
5378
5540
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5379
5541
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -21412,6 +21574,21 @@ export const SharedApiFp = function(configuration?: Configuration) {
21412
21574
  const localVarOperationServerBasePath = operationServerMap['SharedApi.dolphinDBCreateGroup']?.[localVarOperationServerIndex]?.url;
21413
21575
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21414
21576
  },
21577
+ /**
21578
+ * 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.
21579
+ * @summary DolphinDB CreateRebalance
21580
+ * @param {string} orgName
21581
+ * @param {string} clusterName
21582
+ * @param {DolphinDBRebalanceRequest} dolphinDBRebalanceRequest
21583
+ * @param {*} [options] Override http request option.
21584
+ * @throws {RequiredError}
21585
+ */
21586
+ async dolphinDBCreateRebalance(orgName: string, clusterName: string, dolphinDBRebalanceRequest: DolphinDBRebalanceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OpsRequestName>> {
21587
+ const localVarAxiosArgs = await localVarAxiosParamCreator.dolphinDBCreateRebalance(orgName, clusterName, dolphinDBRebalanceRequest, options);
21588
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21589
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.dolphinDBCreateRebalance']?.[localVarOperationServerIndex]?.url;
21590
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21591
+ },
21415
21592
  /**
21416
21593
  *
21417
21594
  * @summary DolphinDB CreateUser
@@ -21471,6 +21648,20 @@ export const SharedApiFp = function(configuration?: Configuration) {
21471
21648
  const localVarOperationServerBasePath = operationServerMap['SharedApi.dolphinDBGetCapabilities']?.[localVarOperationServerIndex]?.url;
21472
21649
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21473
21650
  },
21651
+ /**
21652
+ * Filesystem bytes and physical chunk replica counts (including metadata/unready replicas). Not logical data size or healthy-copy counts.
21653
+ * @summary DolphinDB GetDistribution
21654
+ * @param {string} orgName
21655
+ * @param {string} clusterName
21656
+ * @param {*} [options] Override http request option.
21657
+ * @throws {RequiredError}
21658
+ */
21659
+ async dolphinDBGetDistribution(orgName: string, clusterName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DolphinDBDistribution>> {
21660
+ const localVarAxiosArgs = await localVarAxiosParamCreator.dolphinDBGetDistribution(orgName, clusterName, options);
21661
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21662
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.dolphinDBGetDistribution']?.[localVarOperationServerIndex]?.url;
21663
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21664
+ },
21474
21665
  /**
21475
21666
  *
21476
21667
  * @summary DolphinDB GetPermissions
@@ -21515,6 +21706,23 @@ export const SharedApiFp = function(configuration?: Configuration) {
21515
21706
  const localVarOperationServerBasePath = operationServerMap['SharedApi.dolphinDBListUsers']?.[localVarOperationServerIndex]?.url;
21516
21707
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21517
21708
  },
21709
+ /**
21710
+ * Read-only preview recalculated on every request. Execution recomputes the actual plan. This operation does not scale the cluster or drain a node.
21711
+ * @summary DolphinDB PreviewRebalance
21712
+ * @param {string} orgName
21713
+ * @param {string} clusterName
21714
+ * @param {number} [offset]
21715
+ * @param {number} [limit]
21716
+ * @param {number} [updatedBeforeDays]
21717
+ * @param {*} [options] Override http request option.
21718
+ * @throws {RequiredError}
21719
+ */
21720
+ async dolphinDBPreviewRebalance(orgName: string, clusterName: string, offset?: number, limit?: number, updatedBeforeDays?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DolphinDBRebalancePreview>> {
21721
+ const localVarAxiosArgs = await localVarAxiosParamCreator.dolphinDBPreviewRebalance(orgName, clusterName, offset, limit, updatedBeforeDays, options);
21722
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21723
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.dolphinDBPreviewRebalance']?.[localVarOperationServerIndex]?.url;
21724
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21725
+ },
21518
21726
  /**
21519
21727
  *
21520
21728
  * @summary Download full backup
@@ -26601,6 +26809,16 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
26601
26809
  dolphinDBCreateGroup(requestParameters: SharedApiDolphinDBCreateGroupRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
26602
26810
  return localVarFp.dolphinDBCreateGroup(requestParameters.orgName, requestParameters.clusterName, requestParameters.dolphinDBGroupCreate, options).then((request) => request(axios, basePath));
26603
26811
  },
26812
+ /**
26813
+ * 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.
26814
+ * @summary DolphinDB CreateRebalance
26815
+ * @param {SharedApiDolphinDBCreateRebalanceRequest} requestParameters Request parameters.
26816
+ * @param {*} [options] Override http request option.
26817
+ * @throws {RequiredError}
26818
+ */
26819
+ dolphinDBCreateRebalance(requestParameters: SharedApiDolphinDBCreateRebalanceRequest, options?: RawAxiosRequestConfig): AxiosPromise<OpsRequestName> {
26820
+ return localVarFp.dolphinDBCreateRebalance(requestParameters.orgName, requestParameters.clusterName, requestParameters.dolphinDBRebalanceRequest, options).then((request) => request(axios, basePath));
26821
+ },
26604
26822
  /**
26605
26823
  *
26606
26824
  * @summary DolphinDB CreateUser
@@ -26641,6 +26859,16 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
26641
26859
  dolphinDBGetCapabilities(requestParameters: SharedApiDolphinDBGetCapabilitiesRequest, options?: RawAxiosRequestConfig): AxiosPromise<DolphinDBCapabilities> {
26642
26860
  return localVarFp.dolphinDBGetCapabilities(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
26643
26861
  },
26862
+ /**
26863
+ * Filesystem bytes and physical chunk replica counts (including metadata/unready replicas). Not logical data size or healthy-copy counts.
26864
+ * @summary DolphinDB GetDistribution
26865
+ * @param {SharedApiDolphinDBGetDistributionRequest} requestParameters Request parameters.
26866
+ * @param {*} [options] Override http request option.
26867
+ * @throws {RequiredError}
26868
+ */
26869
+ dolphinDBGetDistribution(requestParameters: SharedApiDolphinDBGetDistributionRequest, options?: RawAxiosRequestConfig): AxiosPromise<DolphinDBDistribution> {
26870
+ return localVarFp.dolphinDBGetDistribution(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
26871
+ },
26644
26872
  /**
26645
26873
  *
26646
26874
  * @summary DolphinDB GetPermissions
@@ -26671,6 +26899,16 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
26671
26899
  dolphinDBListUsers(requestParameters: SharedApiDolphinDBListUsersRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<DolphinDBUser>> {
26672
26900
  return localVarFp.dolphinDBListUsers(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
26673
26901
  },
26902
+ /**
26903
+ * Read-only preview recalculated on every request. Execution recomputes the actual plan. This operation does not scale the cluster or drain a node.
26904
+ * @summary DolphinDB PreviewRebalance
26905
+ * @param {SharedApiDolphinDBPreviewRebalanceRequest} requestParameters Request parameters.
26906
+ * @param {*} [options] Override http request option.
26907
+ * @throws {RequiredError}
26908
+ */
26909
+ dolphinDBPreviewRebalance(requestParameters: SharedApiDolphinDBPreviewRebalanceRequest, options?: RawAxiosRequestConfig): AxiosPromise<DolphinDBRebalancePreview> {
26910
+ return localVarFp.dolphinDBPreviewRebalance(requestParameters.orgName, requestParameters.clusterName, requestParameters.offset, requestParameters.limit, requestParameters.updatedBeforeDays, options).then((request) => request(axios, basePath));
26911
+ },
26674
26912
  /**
26675
26913
  *
26676
26914
  * @summary Download full backup
@@ -30135,6 +30373,16 @@ export interface SharedApiInterface {
30135
30373
  */
30136
30374
  dolphinDBCreateGroup(requestParameters: SharedApiDolphinDBCreateGroupRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
30137
30375
 
30376
+ /**
30377
+ * 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.
30378
+ * @summary DolphinDB CreateRebalance
30379
+ * @param {SharedApiDolphinDBCreateRebalanceRequest} requestParameters Request parameters.
30380
+ * @param {*} [options] Override http request option.
30381
+ * @throws {RequiredError}
30382
+ * @memberof SharedApiInterface
30383
+ */
30384
+ dolphinDBCreateRebalance(requestParameters: SharedApiDolphinDBCreateRebalanceRequest, options?: RawAxiosRequestConfig): AxiosPromise<OpsRequestName>;
30385
+
30138
30386
  /**
30139
30387
  *
30140
30388
  * @summary DolphinDB CreateUser
@@ -30175,6 +30423,16 @@ export interface SharedApiInterface {
30175
30423
  */
30176
30424
  dolphinDBGetCapabilities(requestParameters: SharedApiDolphinDBGetCapabilitiesRequest, options?: RawAxiosRequestConfig): AxiosPromise<DolphinDBCapabilities>;
30177
30425
 
30426
+ /**
30427
+ * Filesystem bytes and physical chunk replica counts (including metadata/unready replicas). Not logical data size or healthy-copy counts.
30428
+ * @summary DolphinDB GetDistribution
30429
+ * @param {SharedApiDolphinDBGetDistributionRequest} requestParameters Request parameters.
30430
+ * @param {*} [options] Override http request option.
30431
+ * @throws {RequiredError}
30432
+ * @memberof SharedApiInterface
30433
+ */
30434
+ dolphinDBGetDistribution(requestParameters: SharedApiDolphinDBGetDistributionRequest, options?: RawAxiosRequestConfig): AxiosPromise<DolphinDBDistribution>;
30435
+
30178
30436
  /**
30179
30437
  *
30180
30438
  * @summary DolphinDB GetPermissions
@@ -30205,6 +30463,16 @@ export interface SharedApiInterface {
30205
30463
  */
30206
30464
  dolphinDBListUsers(requestParameters: SharedApiDolphinDBListUsersRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<DolphinDBUser>>;
30207
30465
 
30466
+ /**
30467
+ * Read-only preview recalculated on every request. Execution recomputes the actual plan. This operation does not scale the cluster or drain a node.
30468
+ * @summary DolphinDB PreviewRebalance
30469
+ * @param {SharedApiDolphinDBPreviewRebalanceRequest} requestParameters Request parameters.
30470
+ * @param {*} [options] Override http request option.
30471
+ * @throws {RequiredError}
30472
+ * @memberof SharedApiInterface
30473
+ */
30474
+ dolphinDBPreviewRebalance(requestParameters: SharedApiDolphinDBPreviewRebalanceRequest, options?: RawAxiosRequestConfig): AxiosPromise<DolphinDBRebalancePreview>;
30475
+
30208
30476
  /**
30209
30477
  *
30210
30478
  * @summary Download full backup
@@ -35524,6 +35792,34 @@ export interface SharedApiDolphinDBCreateGroupRequest {
35524
35792
  readonly dolphinDBGroupCreate: DolphinDBGroupCreate
35525
35793
  }
35526
35794
 
35795
+ /**
35796
+ * Request parameters for dolphinDBCreateRebalance operation in SharedApi.
35797
+ * @export
35798
+ * @interface SharedApiDolphinDBCreateRebalanceRequest
35799
+ */
35800
+ export interface SharedApiDolphinDBCreateRebalanceRequest {
35801
+ /**
35802
+ *
35803
+ * @type {string}
35804
+ * @memberof SharedApiDolphinDBCreateRebalance
35805
+ */
35806
+ readonly orgName: string
35807
+
35808
+ /**
35809
+ *
35810
+ * @type {string}
35811
+ * @memberof SharedApiDolphinDBCreateRebalance
35812
+ */
35813
+ readonly clusterName: string
35814
+
35815
+ /**
35816
+ *
35817
+ * @type {DolphinDBRebalanceRequest}
35818
+ * @memberof SharedApiDolphinDBCreateRebalance
35819
+ */
35820
+ readonly dolphinDBRebalanceRequest: DolphinDBRebalanceRequest
35821
+ }
35822
+
35527
35823
  /**
35528
35824
  * Request parameters for dolphinDBCreateUser operation in SharedApi.
35529
35825
  * @export
@@ -35629,6 +35925,27 @@ export interface SharedApiDolphinDBGetCapabilitiesRequest {
35629
35925
  readonly clusterName: string
35630
35926
  }
35631
35927
 
35928
+ /**
35929
+ * Request parameters for dolphinDBGetDistribution operation in SharedApi.
35930
+ * @export
35931
+ * @interface SharedApiDolphinDBGetDistributionRequest
35932
+ */
35933
+ export interface SharedApiDolphinDBGetDistributionRequest {
35934
+ /**
35935
+ *
35936
+ * @type {string}
35937
+ * @memberof SharedApiDolphinDBGetDistribution
35938
+ */
35939
+ readonly orgName: string
35940
+
35941
+ /**
35942
+ *
35943
+ * @type {string}
35944
+ * @memberof SharedApiDolphinDBGetDistribution
35945
+ */
35946
+ readonly clusterName: string
35947
+ }
35948
+
35632
35949
  /**
35633
35950
  * Request parameters for dolphinDBGetPermissions operation in SharedApi.
35634
35951
  * @export
@@ -35706,6 +36023,48 @@ export interface SharedApiDolphinDBListUsersRequest {
35706
36023
  readonly clusterName: string
35707
36024
  }
35708
36025
 
36026
+ /**
36027
+ * Request parameters for dolphinDBPreviewRebalance operation in SharedApi.
36028
+ * @export
36029
+ * @interface SharedApiDolphinDBPreviewRebalanceRequest
36030
+ */
36031
+ export interface SharedApiDolphinDBPreviewRebalanceRequest {
36032
+ /**
36033
+ *
36034
+ * @type {string}
36035
+ * @memberof SharedApiDolphinDBPreviewRebalance
36036
+ */
36037
+ readonly orgName: string
36038
+
36039
+ /**
36040
+ *
36041
+ * @type {string}
36042
+ * @memberof SharedApiDolphinDBPreviewRebalance
36043
+ */
36044
+ readonly clusterName: string
36045
+
36046
+ /**
36047
+ *
36048
+ * @type {number}
36049
+ * @memberof SharedApiDolphinDBPreviewRebalance
36050
+ */
36051
+ readonly offset?: number
36052
+
36053
+ /**
36054
+ *
36055
+ * @type {number}
36056
+ * @memberof SharedApiDolphinDBPreviewRebalance
36057
+ */
36058
+ readonly limit?: number
36059
+
36060
+ /**
36061
+ *
36062
+ * @type {number}
36063
+ * @memberof SharedApiDolphinDBPreviewRebalance
36064
+ */
36065
+ readonly updatedBeforeDays?: number
36066
+ }
36067
+
35709
36068
  /**
35710
36069
  * Request parameters for downloadBackup operation in SharedApi.
35711
36070
  * @export
@@ -46217,6 +46576,18 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
46217
46576
  return SharedApiFp(this.configuration).dolphinDBCreateGroup(requestParameters.orgName, requestParameters.clusterName, requestParameters.dolphinDBGroupCreate, options).then((request) => request(this.axios, this.basePath));
46218
46577
  }
46219
46578
 
46579
+ /**
46580
+ * 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.
46581
+ * @summary DolphinDB CreateRebalance
46582
+ * @param {SharedApiDolphinDBCreateRebalanceRequest} requestParameters Request parameters.
46583
+ * @param {*} [options] Override http request option.
46584
+ * @throws {RequiredError}
46585
+ * @memberof SharedApi
46586
+ */
46587
+ public dolphinDBCreateRebalance(requestParameters: SharedApiDolphinDBCreateRebalanceRequest, options?: RawAxiosRequestConfig) {
46588
+ return SharedApiFp(this.configuration).dolphinDBCreateRebalance(requestParameters.orgName, requestParameters.clusterName, requestParameters.dolphinDBRebalanceRequest, options).then((request) => request(this.axios, this.basePath));
46589
+ }
46590
+
46220
46591
  /**
46221
46592
  *
46222
46593
  * @summary DolphinDB CreateUser
@@ -46265,6 +46636,18 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
46265
46636
  return SharedApiFp(this.configuration).dolphinDBGetCapabilities(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
46266
46637
  }
46267
46638
 
46639
+ /**
46640
+ * Filesystem bytes and physical chunk replica counts (including metadata/unready replicas). Not logical data size or healthy-copy counts.
46641
+ * @summary DolphinDB GetDistribution
46642
+ * @param {SharedApiDolphinDBGetDistributionRequest} requestParameters Request parameters.
46643
+ * @param {*} [options] Override http request option.
46644
+ * @throws {RequiredError}
46645
+ * @memberof SharedApi
46646
+ */
46647
+ public dolphinDBGetDistribution(requestParameters: SharedApiDolphinDBGetDistributionRequest, options?: RawAxiosRequestConfig) {
46648
+ return SharedApiFp(this.configuration).dolphinDBGetDistribution(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
46649
+ }
46650
+
46268
46651
  /**
46269
46652
  *
46270
46653
  * @summary DolphinDB GetPermissions
@@ -46301,6 +46684,18 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
46301
46684
  return SharedApiFp(this.configuration).dolphinDBListUsers(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
46302
46685
  }
46303
46686
 
46687
+ /**
46688
+ * Read-only preview recalculated on every request. Execution recomputes the actual plan. This operation does not scale the cluster or drain a node.
46689
+ * @summary DolphinDB PreviewRebalance
46690
+ * @param {SharedApiDolphinDBPreviewRebalanceRequest} requestParameters Request parameters.
46691
+ * @param {*} [options] Override http request option.
46692
+ * @throws {RequiredError}
46693
+ * @memberof SharedApi
46694
+ */
46695
+ public dolphinDBPreviewRebalance(requestParameters: SharedApiDolphinDBPreviewRebalanceRequest, options?: RawAxiosRequestConfig) {
46696
+ return SharedApiFp(this.configuration).dolphinDBPreviewRebalance(requestParameters.orgName, requestParameters.clusterName, requestParameters.offset, requestParameters.limit, requestParameters.updatedBeforeDays, options).then((request) => request(this.axios, this.basePath));
46697
+ }
46698
+
46304
46699
  /**
46305
46700
  *
46306
46701
  * @summary Download full backup
@@ -0,0 +1,30 @@
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
+ * BackupBatchDelete is the payload for deleting multiple backups
19
+ * @export
20
+ * @interface BackupBatchDelete
21
+ */
22
+ export interface BackupBatchDelete {
23
+ /**
24
+ * IDs of the backups to delete
25
+ * @type {Array<string>}
26
+ * @memberof BackupBatchDelete
27
+ */
28
+ 'backupIds': Array<string>;
29
+ }
30
+
@@ -0,0 +1,48 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * 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
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import type { DolphinDBReplicaDistribution } from './dolphin-dbreplica-distribution';
19
+ // May contain unused imports in some cases
20
+ // @ts-ignore
21
+ import type { DolphinDBVolumeUsage } from './dolphin-dbvolume-usage';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface DolphinDBDistribution
27
+ */
28
+ export interface DolphinDBDistribution {
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof DolphinDBDistribution
33
+ */
34
+ 'observedAt'?: string;
35
+ /**
36
+ *
37
+ * @type {Array<DolphinDBVolumeUsage>}
38
+ * @memberof DolphinDBDistribution
39
+ */
40
+ 'volumes'?: Array<DolphinDBVolumeUsage>;
41
+ /**
42
+ *
43
+ * @type {Array<DolphinDBReplicaDistribution>}
44
+ * @memberof DolphinDBDistribution
45
+ */
46
+ 'replicas'?: Array<DolphinDBReplicaDistribution>;
47
+ }
48
+
@@ -0,0 +1,48 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * 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 DolphinDBMigration
21
+ */
22
+ export interface DolphinDBMigration {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof DolphinDBMigration
27
+ */
28
+ 'chunkId': string;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof DolphinDBMigration
33
+ */
34
+ 'srcNode': string;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof DolphinDBMigration
39
+ */
40
+ 'destNode': string;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof DolphinDBMigration
45
+ */
46
+ 'destVolume'?: string;
47
+ }
48
+