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
@@ -0,0 +1,69 @@
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 { 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
+ * 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 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
+
@@ -395,6 +395,9 @@ export * from './dms-view-metadata';
395
395
  export * from './dms-visual-explain-request';
396
396
  export * from './dolphin-dbcapabilities';
397
397
  export * from './dolphin-dbdistribution';
398
+ export * from './dolphin-dbdrain-migration';
399
+ export * from './dolphin-dbdrain-preview';
400
+ export * from './dolphin-dbdrain-request';
398
401
  export * from './dolphin-dbgroup';
399
402
  export * from './dolphin-dbgroup-create';
400
403
  export * from './dolphin-dbgroup-permissions';
package/src/openapi.yaml CHANGED
@@ -116,6 +116,60 @@ tags:
116
116
  - name: blueGreenDeployment
117
117
  description: Blue Green Deployment APIs
118
118
  paths:
119
+ /api/v1/data/dolphindb/organizations/{orgName}/clusters/{clusterName}/rebalance/drain-preview:
120
+ post:
121
+ summary: Preview DolphinDB data node evacuation
122
+ operationId: dolphinDBPreviewDrain
123
+ tags:
124
+ - dolphindb
125
+ - shared
126
+ 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.
127
+ parameters:
128
+ - name: orgName
129
+ in: path
130
+ required: true
131
+ schema:
132
+ type: string
133
+ - name: clusterName
134
+ in: path
135
+ required: true
136
+ schema:
137
+ type: string
138
+ - name: offset
139
+ in: query
140
+ schema:
141
+ type: integer
142
+ minimum: 0
143
+ maximum: 10000000
144
+ default: 0
145
+ - name: limit
146
+ in: query
147
+ schema:
148
+ type: integer
149
+ minimum: 1
150
+ maximum: 1000
151
+ default: 100
152
+ requestBody:
153
+ required: true
154
+ content:
155
+ application/json:
156
+ schema:
157
+ $ref: '#/components/schemas/DolphinDBDrainRequest'
158
+ responses:
159
+ '200':
160
+ description: Observed evacuation plan
161
+ content:
162
+ application/json:
163
+ schema:
164
+ $ref: '#/components/schemas/DolphinDBDrainPreview'
165
+ '400':
166
+ $ref: '#/components/responses/400'
167
+ '401':
168
+ $ref: '#/components/responses/401'
169
+ '403':
170
+ $ref: '#/components/responses/403'
171
+ '500':
172
+ $ref: '#/components/responses/500'
119
173
  /api/v1/data/dolphindb/organizations/{orgName}/clusters/{clusterName}/rebalance/preview:
120
174
  get:
121
175
  summary: DolphinDB PreviewRebalance
@@ -26209,8 +26263,30 @@ components:
26209
26263
  curl --digest -u "accessKey:secretKey" https://api.example.com/api/v1/user
26210
26264
  ```
26211
26265
  schemas:
26212
- DolphinDBMigration:
26266
+ DolphinDBDrainRequest:
26213
26267
  type: object
26268
+ required:
26269
+ - source
26270
+ - remainingNodes
26271
+ properties:
26272
+ source:
26273
+ type: string
26274
+ pattern: ^[A-Za-z0-9_-]{1,253}$
26275
+ remainingNodes:
26276
+ type: array
26277
+ minItems: 1
26278
+ maxItems: 1000
26279
+ uniqueItems: true
26280
+ items:
26281
+ type: string
26282
+ pattern: ^[A-Za-z0-9_-]{1,253}$
26283
+ DolphinDBDrainMigration:
26284
+ type: object
26285
+ required:
26286
+ - chunkId
26287
+ - srcNode
26288
+ - destNode
26289
+ - action
26214
26290
  properties:
26215
26291
  chunkId:
26216
26292
  type: string
@@ -26218,30 +26294,41 @@ components:
26218
26294
  type: string
26219
26295
  destNode:
26220
26296
  type: string
26221
- destVolume:
26297
+ description: Empty for a redundant replica deletion.
26298
+ action:
26222
26299
  type: string
26223
- required:
26224
- - chunkId
26225
- - srcNode
26226
- - destNode
26227
- DolphinDBRebalancePreview:
26300
+ description: moveReplica or dropRedundantReplica. Preview does not execute either action.
26301
+ DolphinDBDrainPreview:
26228
26302
  type: object
26303
+ required:
26304
+ - observedAt
26305
+ - source
26306
+ - remainingNodes
26307
+ - total
26308
+ - offset
26309
+ - entries
26310
+ - capacityCheck
26229
26311
  properties:
26230
26312
  observedAt:
26231
26313
  type: string
26232
26314
  format: date-time
26233
- updatedBeforeDays:
26234
- type: number
26315
+ source:
26316
+ type: string
26317
+ remainingNodes:
26318
+ type: array
26319
+ items:
26320
+ type: string
26235
26321
  total:
26236
26322
  type: integer
26237
- format: int64
26238
26323
  offset:
26239
26324
  type: integer
26240
- format: int64
26241
26325
  entries:
26242
26326
  type: array
26243
26327
  items:
26244
- $ref: '#/components/schemas/DolphinDBMigration'
26328
+ $ref: '#/components/schemas/DolphinDBDrainMigration'
26329
+ capacityCheck:
26330
+ type: string
26331
+ description: Always notValidated. This preview is not proof of sufficient physical capacity or permission to delete the node.
26245
26332
  APIErrorResponse:
26246
26333
  description: API error response.
26247
26334
  properties:
@@ -26257,6 +26344,39 @@ components:
26257
26344
  required:
26258
26345
  - code
26259
26346
  type: object
26347
+ DolphinDBMigration:
26348
+ type: object
26349
+ properties:
26350
+ chunkId:
26351
+ type: string
26352
+ srcNode:
26353
+ type: string
26354
+ destNode:
26355
+ type: string
26356
+ destVolume:
26357
+ type: string
26358
+ required:
26359
+ - chunkId
26360
+ - srcNode
26361
+ - destNode
26362
+ DolphinDBRebalancePreview:
26363
+ type: object
26364
+ properties:
26365
+ observedAt:
26366
+ type: string
26367
+ format: date-time
26368
+ updatedBeforeDays:
26369
+ type: number
26370
+ total:
26371
+ type: integer
26372
+ format: int64
26373
+ offset:
26374
+ type: integer
26375
+ format: int64
26376
+ entries:
26377
+ type: array
26378
+ items:
26379
+ $ref: '#/components/schemas/DolphinDBMigration'
26260
26380
  DolphinDBVolumeUsage:
26261
26381
  type: object
26262
26382
  properties: