kb-cloud-client-typescript 2.3.32 → 2.3.34

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 (140) hide show
  1. package/dist/adminapi/apis/cluster-jar-api.d.ts +0 -79
  2. package/dist/adminapi/apis/cluster-jar-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/cluster-jar-api.js +0 -84
  4. package/dist/adminapi/apis/cluster-jar-api.js.map +1 -1
  5. package/dist/adminapi/apis/shared-api.d.ts +0 -79
  6. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  7. package/dist/adminapi/apis/shared-api.js +0 -84
  8. package/dist/adminapi/apis/shared-api.js.map +1 -1
  9. package/dist/adminapi/apis/task-api.d.ts +16 -7
  10. package/dist/adminapi/apis/task-api.d.ts.map +1 -1
  11. package/dist/adminapi/apis/task-api.js +14 -9
  12. package/dist/adminapi/apis/task-api.js.map +1 -1
  13. package/dist/adminapi/models/backup-option.d.ts +6 -0
  14. package/dist/adminapi/models/backup-option.d.ts.map +1 -1
  15. package/dist/adminapi/models/cluster-jar-package.d.ts +0 -6
  16. package/dist/adminapi/models/cluster-jar-package.d.ts.map +1 -1
  17. package/dist/adminapi/models/dms-pagination.d.ts +36 -0
  18. package/dist/adminapi/models/dms-pagination.d.ts.map +1 -1
  19. package/dist/adminapi/models/index.d.ts +3 -1
  20. package/dist/adminapi/models/index.d.ts.map +1 -1
  21. package/dist/adminapi/models/index.js +3 -1
  22. package/dist/adminapi/models/index.js.map +1 -1
  23. package/dist/adminapi/models/instance-template-attribute.d.ts +2 -0
  24. package/dist/adminapi/models/instance-template-attribute.d.ts.map +1 -1
  25. package/dist/adminapi/models/instance-template-attribute.js +3 -1
  26. package/dist/adminapi/models/instance-template-attribute.js.map +1 -1
  27. package/dist/adminapi/models/instance-template-create.d.ts +13 -1
  28. package/dist/adminapi/models/instance-template-create.d.ts.map +1 -1
  29. package/dist/adminapi/models/instance-template-op.d.ts +1 -0
  30. package/dist/adminapi/models/instance-template-op.d.ts.map +1 -1
  31. package/dist/adminapi/models/instance-template-op.js +2 -1
  32. package/dist/adminapi/models/instance-template-op.js.map +1 -1
  33. package/dist/adminapi/models/instance-template-volume-expand.d.ts +32 -0
  34. package/dist/adminapi/models/instance-template-volume-expand.d.ts.map +1 -0
  35. package/dist/adminapi/models/{ops-volume-expand-volumes-inner.js → instance-template-volume-expand.js} +1 -1
  36. package/dist/adminapi/models/instance-template-volume-expand.js.map +1 -0
  37. package/dist/adminapi/models/mode-component-instance-template.d.ts +3 -3
  38. package/dist/adminapi/models/{ops-volume-expand-volumes-inner.d.ts → ops-volume-expand-volumes-items0.d.ts} +7 -7
  39. package/dist/adminapi/models/ops-volume-expand-volumes-items0.d.ts.map +1 -0
  40. package/dist/adminapi/models/ops-volume-expand-volumes-items0.js +16 -0
  41. package/dist/adminapi/models/ops-volume-expand-volumes-items0.js.map +1 -0
  42. package/dist/adminapi/models/ops-volume-expand.d.ts +11 -4
  43. package/dist/adminapi/models/ops-volume-expand.d.ts.map +1 -1
  44. package/dist/adminapi/models/show-data-request.d.ts +13 -1
  45. package/dist/adminapi/models/show-data-request.d.ts.map +1 -1
  46. package/dist/adminapi/models/task-retry-mode.d.ts +22 -0
  47. package/dist/adminapi/models/task-retry-mode.d.ts.map +1 -0
  48. package/dist/adminapi/models/task-retry-mode.js +26 -0
  49. package/dist/adminapi/models/task-retry-mode.js.map +1 -0
  50. package/dist/adminapi/models/task.d.ts +7 -0
  51. package/dist/adminapi/models/task.d.ts.map +1 -1
  52. package/dist/openapi/apis/cluster-jar-api.d.ts +0 -79
  53. package/dist/openapi/apis/cluster-jar-api.d.ts.map +1 -1
  54. package/dist/openapi/apis/cluster-jar-api.js +0 -84
  55. package/dist/openapi/apis/cluster-jar-api.js.map +1 -1
  56. package/dist/openapi/apis/shared-api.d.ts +0 -79
  57. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  58. package/dist/openapi/apis/shared-api.js +0 -84
  59. package/dist/openapi/apis/shared-api.js.map +1 -1
  60. package/dist/openapi/models/backup-option.d.ts +6 -0
  61. package/dist/openapi/models/backup-option.d.ts.map +1 -1
  62. package/dist/openapi/models/cluster-jar-package.d.ts +0 -6
  63. package/dist/openapi/models/cluster-jar-package.d.ts.map +1 -1
  64. package/dist/openapi/models/dms-pagination.d.ts +36 -0
  65. package/dist/openapi/models/dms-pagination.d.ts.map +1 -1
  66. package/dist/openapi/models/index.d.ts +3 -1
  67. package/dist/openapi/models/index.d.ts.map +1 -1
  68. package/dist/openapi/models/index.js +3 -1
  69. package/dist/openapi/models/index.js.map +1 -1
  70. package/dist/openapi/models/instance-template-attribute.d.ts +2 -0
  71. package/dist/openapi/models/instance-template-attribute.d.ts.map +1 -1
  72. package/dist/openapi/models/instance-template-attribute.js +3 -1
  73. package/dist/openapi/models/instance-template-attribute.js.map +1 -1
  74. package/dist/openapi/models/instance-template-create.d.ts +13 -1
  75. package/dist/openapi/models/instance-template-create.d.ts.map +1 -1
  76. package/dist/openapi/models/instance-template-op.d.ts +1 -0
  77. package/dist/openapi/models/instance-template-op.d.ts.map +1 -1
  78. package/dist/openapi/models/instance-template-op.js +2 -1
  79. package/dist/openapi/models/instance-template-op.js.map +1 -1
  80. package/dist/openapi/models/instance-template-volume-expand.d.ts +32 -0
  81. package/dist/openapi/models/instance-template-volume-expand.d.ts.map +1 -0
  82. package/dist/openapi/models/{ops-volume-expand-volumes-inner.js → instance-template-volume-expand.js} +1 -1
  83. package/dist/openapi/models/instance-template-volume-expand.js.map +1 -0
  84. package/dist/openapi/models/mode-component-instance-template.d.ts +3 -3
  85. package/dist/openapi/models/{ops-volume-expand-volumes-inner.d.ts → ops-volume-expand-volumes-items0.d.ts} +7 -7
  86. package/dist/openapi/models/ops-volume-expand-volumes-items0.d.ts.map +1 -0
  87. package/dist/openapi/models/ops-volume-expand-volumes-items0.js +16 -0
  88. package/dist/openapi/models/ops-volume-expand-volumes-items0.js.map +1 -0
  89. package/dist/openapi/models/ops-volume-expand.d.ts +11 -4
  90. package/dist/openapi/models/ops-volume-expand.d.ts.map +1 -1
  91. package/dist/openapi/models/show-data-request.d.ts +13 -1
  92. package/dist/openapi/models/show-data-request.d.ts.map +1 -1
  93. package/dist/openapi/models/task-retry-mode.d.ts +22 -0
  94. package/dist/openapi/models/task-retry-mode.d.ts.map +1 -0
  95. package/dist/openapi/models/task-retry-mode.js +26 -0
  96. package/dist/openapi/models/task-retry-mode.js.map +1 -0
  97. package/dist/openapi/models/task.d.ts +7 -0
  98. package/dist/openapi/models/task.d.ts.map +1 -1
  99. package/package.json +1 -1
  100. package/src/adminapi/.openapi-generator/FILES +3 -1
  101. package/src/adminapi/apis/cluster-jar-api.ts +0 -136
  102. package/src/adminapi/apis/shared-api.ts +0 -136
  103. package/src/adminapi/apis/task-api.ts +25 -10
  104. package/src/adminapi/models/backup-option.ts +6 -0
  105. package/src/adminapi/models/cluster-jar-package.ts +0 -6
  106. package/src/adminapi/models/dms-pagination.ts +36 -0
  107. package/src/adminapi/models/index.ts +3 -1
  108. package/src/adminapi/models/instance-template-attribute.ts +3 -1
  109. package/src/adminapi/models/instance-template-create.ts +13 -1
  110. package/src/adminapi/models/instance-template-op.ts +2 -1
  111. package/src/adminapi/models/instance-template-volume-expand.ts +39 -0
  112. package/src/adminapi/models/mode-component-instance-template.ts +3 -3
  113. package/src/adminapi/models/{ops-volume-expand-volumes-inner.ts → ops-volume-expand-volumes-items0.ts} +6 -6
  114. package/src/adminapi/models/ops-volume-expand.ts +13 -4
  115. package/src/adminapi/models/show-data-request.ts +13 -1
  116. package/src/adminapi/models/task-retry-mode.ts +31 -0
  117. package/src/adminapi/models/task.ts +9 -0
  118. package/src/adminapi.yaml +126 -81
  119. package/src/openapi/.openapi-generator/FILES +3 -1
  120. package/src/openapi/apis/cluster-jar-api.ts +0 -136
  121. package/src/openapi/apis/shared-api.ts +0 -136
  122. package/src/openapi/models/backup-option.ts +6 -0
  123. package/src/openapi/models/cluster-jar-package.ts +0 -6
  124. package/src/openapi/models/dms-pagination.ts +36 -0
  125. package/src/openapi/models/index.ts +3 -1
  126. package/src/openapi/models/instance-template-attribute.ts +3 -1
  127. package/src/openapi/models/instance-template-create.ts +13 -1
  128. package/src/openapi/models/instance-template-op.ts +2 -1
  129. package/src/openapi/models/instance-template-volume-expand.ts +39 -0
  130. package/src/openapi/models/mode-component-instance-template.ts +3 -3
  131. package/src/openapi/models/{ops-volume-expand-volumes-inner.ts → ops-volume-expand-volumes-items0.ts} +6 -6
  132. package/src/openapi/models/ops-volume-expand.ts +13 -4
  133. package/src/openapi/models/show-data-request.ts +13 -1
  134. package/src/openapi/models/task-retry-mode.ts +31 -0
  135. package/src/openapi/models/task.ts +9 -0
  136. package/src/openapi.yaml +113 -80
  137. package/dist/adminapi/models/ops-volume-expand-volumes-inner.d.ts.map +0 -1
  138. package/dist/adminapi/models/ops-volume-expand-volumes-inner.js.map +0 -1
  139. package/dist/openapi/models/ops-volume-expand-volumes-inner.d.ts.map +0 -1
  140. package/dist/openapi/models/ops-volume-expand-volumes-inner.js.map +0 -1
@@ -593,6 +593,7 @@ export * from './instance-template-create-env-inner';
593
593
  export * from './instance-template-env';
594
594
  export * from './instance-template-op';
595
595
  export * from './instance-template-replicas';
596
+ export * from './instance-template-volume-expand';
596
597
  export * from './integer-option';
597
598
  export * from './international-desc';
598
599
  export * from './io-quantity';
@@ -773,7 +774,7 @@ export * from './ops-stop';
773
774
  export * from './ops-upgrade';
774
775
  export * from './ops-vscale';
775
776
  export * from './ops-volume-expand';
776
- export * from './ops-volume-expand-volumes-inner';
777
+ export * from './ops-volume-expand-volumes-items0';
777
778
  export * from './org';
778
779
  export * from './org-create';
779
780
  export * from './org-member';
@@ -1031,6 +1032,7 @@ export * from './task';
1031
1032
  export * from './task-failure-policy';
1032
1033
  export * from './task-list';
1033
1034
  export * from './task-list-item';
1035
+ export * from './task-retry-mode';
1034
1036
  export * from './task-schedule';
1035
1037
  export * from './task-schedule-type';
1036
1038
  export * from './task-status';
@@ -23,7 +23,9 @@
23
23
  export const InstanceTemplateAttribute = {
24
24
  env: 'env',
25
25
  annotations: 'annotations',
26
- labels: 'labels'
26
+ labels: 'labels',
27
+ availabilityZone: 'availabilityZone',
28
+ storageClass: 'storageClass'
27
29
  } as const;
28
30
 
29
31
  export type InstanceTemplateAttribute = typeof InstanceTemplateAttribute[keyof typeof InstanceTemplateAttribute];
@@ -18,7 +18,7 @@
18
18
  import type { InstanceTemplateCreateEnvInner } from './instance-template-create-env-inner';
19
19
 
20
20
  /**
21
- * Create assignment for one instance template. name and replicas are required. env, annotations, and labels are optional overlays onto the chart-rendered instance. The request must include every chart-rendered instance template exactly once.
21
+ * Create assignment for one instance template. name and replicas are required. env, annotations, labels, availabilityZone, and storageClass are optional overlays onto the chart-rendered instance. The request must include every chart-rendered instance template exactly once. A template with an explicit zone uses single-zone scheduling: hostname anti-affinity follows the scheduling policy, while explicit rules and additional topology keys are preserved. Component scheduling remains unchanged; templates without a zone inherit it, including its zone anti-affinity constraints. Chart instance scheduling policies are cleared; an omitted or empty availabilityZone leaves the instance policy unset to inherit the component policy.
22
22
  * @export
23
23
  * @interface InstanceTemplateCreate
24
24
  */
@@ -35,6 +35,18 @@ export interface InstanceTemplateCreate {
35
35
  * @memberof InstanceTemplateCreate
36
36
  */
37
37
  'replicas': number;
38
+ /**
39
+ * Availability zone for this template (topology.kubernetes.io/zone); omitted or empty inherits the component zone selection. Must be enabled in the environment. If the request explicitly supplies a non-empty cluster availabilityZones list, the template zone must also belong to that list.
40
+ * @type {string}
41
+ * @memberof InstanceTemplateCreate
42
+ */
43
+ 'availabilityZone'?: string;
44
+ /**
45
+ * StorageClass name for all persistent volumes in this template. Copied from component volumeClaimTemplates, preserving volume sizes and other settings while overriding storageClassName. Chart instance volume templates are cleared; omitted or empty leaves instance volumeClaimTemplates unset.
46
+ * @type {string}
47
+ * @memberof InstanceTemplateCreate
48
+ */
49
+ 'storageClass'?: string;
38
50
  /**
39
51
  * Simple env vars (name and value only) merged into this template. valueFrom is not supported; overlaying a name clears any chart valueFrom.
40
52
  * @type {Array<InstanceTemplateCreateEnvInner>}
@@ -22,7 +22,8 @@
22
22
 
23
23
  export const InstanceTemplateOp = {
24
24
  hscale: 'hscale',
25
- vscale: 'vscale'
25
+ vscale: 'vscale',
26
+ storageExpansion: 'storageExpansion'
26
27
  } as const;
27
28
 
28
29
  export type InstanceTemplateOp = typeof InstanceTemplateOp[keyof typeof InstanceTemplateOp];
@@ -0,0 +1,39 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Admin API
5
+ * The Admin API is used to manage the ApeCloud platform.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@apecloud.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import type { OpsVolumeExpandVolumesItems0 } from './ops-volume-expand-volumes-items0';
19
+
20
+ /**
21
+ *
22
+ * @export
23
+ * @interface InstanceTemplateVolumeExpand
24
+ */
25
+ export interface InstanceTemplateVolumeExpand {
26
+ /**
27
+ * Template name from the current mode component instanceTemplate.names.
28
+ * @type {string}
29
+ * @memberof InstanceTemplateVolumeExpand
30
+ */
31
+ 'name': string;
32
+ /**
33
+ *
34
+ * @type {Array<OpsVolumeExpandVolumesItems0>}
35
+ * @memberof InstanceTemplateVolumeExpand
36
+ */
37
+ 'volumes': Array<OpsVolumeExpandVolumesItems0>;
38
+ }
39
+
@@ -24,19 +24,19 @@ import type { InstanceTemplateEnv } from './instance-template-env';
24
24
  import type { InstanceTemplateOp } from './instance-template-op';
25
25
 
26
26
  /**
27
- * Frontend catalog of instance templates for this mode component. names, ops, attributes, and env are for UI rendering. Create validates the request against chart-rendered Cluster instances, not this catalog. HScale does not re-check this catalog; it builds the OpsRequest from the request and the live Cluster. HScale instanceTemplates still requires top-level replicas. ops lists hscale and vscale for the UI (vscale is reserved; class stays component-level). Only HScale processes instance templates. VolumeExpansion, VScale, Upgrade, Restart, and other operations silently ignore instance templates and keep their component-level behavior. Template-level volumeexpansion is not implemented. The platform does not even-split or fill in missing templates. When absent, the frontend should use component-level operations.
27
+ * Template fields and operations shared by the frontend and backend. Declaring storageExpansion in ops requires explicit volume expansion targets for every name. Components without this capability use component-level expansion.
28
28
  * @export
29
29
  * @interface ModeComponentInstanceTemplate
30
30
  */
31
31
  export interface ModeComponentInstanceTemplate {
32
32
  /**
33
- * Instance template names the frontend should render. Create and hscale check names against the chart or live Cluster, not this list.
33
+ * Instance template names the frontend should render. Create and hscale check names against the chart or live Cluster, not this list. Explicit volume expansion targets must include every name in this list.
34
34
  * @type {Set<string>}
35
35
  * @memberof ModeComponentInstanceTemplate
36
36
  */
37
37
  'names': Set<string>;
38
38
  /**
39
- * Operations the frontend should offer per template: hscale, vscale. Not re-checked when creating a cluster or building an hscale OpsRequest. Only hscale currently acts per template; vscale is reserved. VolumeExpansion, VScale, Upgrade, and Restart ignore instance templates and keep their component-level behavior.
39
+ * Template operations: hscale, storageExpansion, and reserved vscale. Explicit volume expansion targets must match component volume names and target capacities.
40
40
  * @type {Array<InstanceTemplateOp>}
41
41
  * @memberof ModeComponentInstanceTemplate
42
42
  */
@@ -17,19 +17,19 @@
17
17
  /**
18
18
  *
19
19
  * @export
20
- * @interface OpsVolumeExpandVolumesInner
20
+ * @interface OpsVolumeExpandVolumesItems0
21
21
  */
22
- export interface OpsVolumeExpandVolumesInner {
22
+ export interface OpsVolumeExpandVolumesItems0 {
23
23
  /**
24
- * volume name
24
+ * Volume name.
25
25
  * @type {string}
26
- * @memberof OpsVolumeExpandVolumesInner
26
+ * @memberof OpsVolumeExpandVolumesItems0
27
27
  */
28
28
  'name': string;
29
29
  /**
30
- * Storage size, the unit is Gi.
30
+ * Desired size with Gi suffix, for example 30Gi.
31
31
  * @type {string}
32
- * @memberof OpsVolumeExpandVolumesInner
32
+ * @memberof OpsVolumeExpandVolumesItems0
33
33
  */
34
34
  'storage': string;
35
35
  }
@@ -15,14 +15,23 @@
15
15
 
16
16
  // May contain unused imports in some cases
17
17
  // @ts-ignore
18
- import type { OpsVolumeExpandVolumesInner } from './ops-volume-expand-volumes-inner';
18
+ import type { InstanceTemplateVolumeExpand } from './instance-template-volume-expand';
19
+ // May contain unused imports in some cases
20
+ // @ts-ignore
21
+ import type { OpsVolumeExpandVolumesItems0 } from './ops-volume-expand-volumes-items0';
19
22
 
20
23
  /**
21
- * OpsVolumeExpand is the payload to expand volume for a KubeBlocks cluster
24
+ * Expand component volumes and explicit targets for components with template expansion enabled.
22
25
  * @export
23
26
  * @interface OpsVolumeExpand
24
27
  */
25
28
  export interface OpsVolumeExpand {
29
+ /**
30
+ * Required when the current mode component instanceTemplate.ops includes storageExpansion; otherwise omit for component-level expansion. Explicit targets require this capability. Every configured template must explicitly specify the same volume names and target capacities as component-level volumes. Names identify templates, not Pods. Targets are forwarded together in one OpsRequest without filling in, merging, or removing template targets. KubeBlocks may materialize template volumeClaimTemplates for explicitly targeted inherited volumes.
31
+ * @type {Array<InstanceTemplateVolumeExpand>}
32
+ * @memberof OpsVolumeExpand
33
+ */
34
+ 'instanceTemplates'?: Array<InstanceTemplateVolumeExpand>;
26
35
  /**
27
36
  *
28
37
  * @type {string}
@@ -31,9 +40,9 @@ export interface OpsVolumeExpand {
31
40
  'component': string;
32
41
  /**
33
42
  *
34
- * @type {Array<OpsVolumeExpandVolumesInner>}
43
+ * @type {Array<OpsVolumeExpandVolumesItems0>}
35
44
  * @memberof OpsVolumeExpand
36
45
  */
37
- 'volumes': Array<OpsVolumeExpandVolumesInner>;
46
+ 'volumes': Array<OpsVolumeExpandVolumesItems0>;
38
47
  }
39
48
 
@@ -33,10 +33,22 @@ export interface ShowDataRequest {
33
33
  */
34
34
  'table'?: string;
35
35
  /**
36
- * return limited number of data
36
+ * Rows per batch, from 1 to 2000; defaults to 200.
37
37
  * @type {number}
38
38
  * @memberof ShowDataRequest
39
39
  */
40
40
  'limit'?: number | null;
41
+ /**
42
+ * Zero-based offset. Include 0 for the first paged request; omit for legacy data plus total-count behavior. Paged requests do not count the table.
43
+ * @type {number}
44
+ * @memberof ShowDataRequest
45
+ */
46
+ 'offset'?: number | null;
47
+ /**
48
+ * Only return pagination.totalRows, without loading data.
49
+ * @type {boolean}
50
+ * @memberof ShowDataRequest
51
+ */
52
+ 'countOnly'?: boolean;
41
53
  }
42
54
 
@@ -0,0 +1,31 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Admin API
5
+ * The Admin API is used to manage the ApeCloud platform.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@apecloud.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ * restart reruns all steps; resume preserves successful steps.
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+
23
+ export const TaskRetryMode = {
24
+ restart: 'restart',
25
+ resume: 'resume'
26
+ } as const;
27
+
28
+ export type TaskRetryMode = typeof TaskRetryMode[keyof typeof TaskRetryMode];
29
+
30
+
31
+
@@ -18,6 +18,9 @@
18
18
  import type { TaskFailurePolicy } from './task-failure-policy';
19
19
  // May contain unused imports in some cases
20
20
  // @ts-ignore
21
+ import type { TaskRetryMode } from './task-retry-mode';
22
+ // May contain unused imports in some cases
23
+ // @ts-ignore
21
24
  import type { TaskSchedule } from './task-schedule';
22
25
  // May contain unused imports in some cases
23
26
  // @ts-ignore
@@ -122,6 +125,12 @@ export interface Task {
122
125
  * @memberof Task
123
126
  */
124
127
  'failurePolicy'?: TaskFailurePolicy;
128
+ /**
129
+ * Supported manual retry modes for this task. Runtime conflicts are checked when retrying.
130
+ * @type {Array<TaskRetryMode>}
131
+ * @memberof Task
132
+ */
133
+ 'retryModes'?: Array<TaskRetryMode>;
125
134
  /**
126
135
  * Maximum number of retries for the task
127
136
  * @type {number}
package/src/adminapi.yaml CHANGED
@@ -428,50 +428,6 @@ paths:
428
428
  $ref: '#/components/responses/409'
429
429
  '500':
430
430
  $ref: '#/components/responses/500'
431
- /admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/jars/{jarId}/archive:
432
- post:
433
- operationId: archiveClusterJar
434
- summary: Archive a JAR while retaining published files and startup synchronization
435
- tags:
436
- - clusterJar
437
- - shared
438
- parameters:
439
- - name: engineName
440
- in: path
441
- required: true
442
- description: Doris or SelectDB engine of the target cluster.
443
- schema:
444
- type: string
445
- - name: orgName
446
- in: path
447
- required: true
448
- schema:
449
- type: string
450
- - name: clusterName
451
- in: path
452
- required: true
453
- schema:
454
- type: string
455
- - name: jarId
456
- in: path
457
- required: true
458
- schema:
459
- type: string
460
- responses:
461
- '204':
462
- description: Success
463
- '400':
464
- $ref: '#/components/responses/400'
465
- '401':
466
- $ref: '#/components/responses/401'
467
- '403':
468
- $ref: '#/components/responses/403'
469
- '404':
470
- $ref: '#/components/responses/404'
471
- '409':
472
- $ref: '#/components/responses/409'
473
- '500':
474
- $ref: '#/components/responses/500'
475
431
  /admin/v1/user:
476
432
  get:
477
433
  description: Get authenticated login user info
@@ -17842,7 +17798,7 @@ paths:
17842
17798
  /admin/v1/tasks/{taskId}/retry:
17843
17799
  patch:
17844
17800
  summary: Retry a task
17845
- description: retry task
17801
+ description: Restart a failed or stopped task. Resume requires the task type to declare resume in allowActions. The default mode is restart, which reruns all steps; resume preserves successful steps.
17846
17802
  operationId: retryTask
17847
17803
  parameters:
17848
17804
  - description: ID of the task
@@ -17851,6 +17807,12 @@ paths:
17851
17807
  required: true
17852
17808
  schema:
17853
17809
  type: string
17810
+ - name: mode
17811
+ in: query
17812
+ description: restart reruns all steps; resume preserves successful steps and reruns unfinished steps and PreFinish hooks.
17813
+ required: false
17814
+ schema:
17815
+ $ref: '#/components/schemas/taskRetryMode'
17854
17816
  responses:
17855
17817
  '200':
17856
17818
  description: Current status of the task
@@ -17866,6 +17828,12 @@ paths:
17866
17828
  $ref: '#/components/responses/403'
17867
17829
  '404':
17868
17830
  $ref: '#/components/responses/404'
17831
+ '405':
17832
+ description: The task type does not support resume.
17833
+ content:
17834
+ application/json:
17835
+ schema:
17836
+ $ref: '#/components/schemas/APIErrorResponse'
17869
17837
  '500':
17870
17838
  $ref: '#/components/responses/500'
17871
17839
  tags:
@@ -28475,8 +28443,6 @@ components:
28475
28443
  type: string
28476
28444
  published:
28477
28445
  type: boolean
28478
- archived:
28479
- type: boolean
28480
28446
  status:
28481
28447
  type: string
28482
28448
  synced:
@@ -28503,7 +28469,6 @@ components:
28503
28469
  - size
28504
28470
  - uri
28505
28471
  - published
28506
- - archived
28507
28472
  - status
28508
28473
  - synced
28509
28474
  - total
@@ -29955,7 +29920,7 @@ components:
29955
29920
  type: object
29956
29921
  additionalProperties: false
29957
29922
  description: |
29958
- Create assignment for one instance template. name and replicas are required. env, annotations, and labels are optional overlays onto the chart-rendered instance. The request must include every chart-rendered instance template exactly once.
29923
+ Create assignment for one instance template. name and replicas are required. env, annotations, labels, availabilityZone, and storageClass are optional overlays onto the chart-rendered instance. The request must include every chart-rendered instance template exactly once. A template with an explicit zone uses single-zone scheduling: hostname anti-affinity follows the scheduling policy, while explicit rules and additional topology keys are preserved. Component scheduling remains unchanged; templates without a zone inherit it, including its zone anti-affinity constraints. Chart instance scheduling policies are cleared; an omitted or empty availabilityZone leaves the instance policy unset to inherit the component policy.
29959
29924
  required:
29960
29925
  - name
29961
29926
  - replicas
@@ -29968,6 +29933,12 @@ components:
29968
29933
  type: integer
29969
29934
  minimum: 0
29970
29935
  description: Replica count for this instance template.
29936
+ availabilityZone:
29937
+ type: string
29938
+ description: Availability zone for this template (topology.kubernetes.io/zone); omitted or empty inherits the component zone selection. Must be enabled in the environment. If the request explicitly supplies a non-empty cluster availabilityZones list, the template zone must also belong to that list.
29939
+ storageClass:
29940
+ type: string
29941
+ description: StorageClass name for all persistent volumes in this template. Copied from component volumeClaimTemplates, preserving volume sizes and other settings while overriding storageClassName. Chart instance volume templates are cleared; omitted or empty leaves instance volumeClaimTemplates unset.
29971
29942
  env:
29972
29943
  type: array
29973
29944
  description: Simple env vars (name and value only) merged into this template. valueFrom is not supported; overlaying a name clears any chart valueFrom.
@@ -32521,6 +32492,34 @@ components:
32521
32492
  DmsPagination:
32522
32493
  type: object
32523
32494
  properties:
32495
+ offset:
32496
+ type: integer
32497
+ format: int64
32498
+ nullable: true
32499
+ description: Zero-based offset of this showData page.
32500
+ limit:
32501
+ type: integer
32502
+ format: int64
32503
+ nullable: true
32504
+ hasMore:
32505
+ type: boolean
32506
+ nullable: true
32507
+ description: Whether another showData page exists; determined by reading one extra row.
32508
+ nextOffset:
32509
+ type: integer
32510
+ format: int64
32511
+ nullable: true
32512
+ description: Present only when hasMore is true.
32513
+ totalRows:
32514
+ type: integer
32515
+ format: int64
32516
+ nullable: true
32517
+ description: Exact count returned only by countOnly requests (including zero).
32518
+ orderColumns:
32519
+ type: array
32520
+ items:
32521
+ type: string
32522
+ description: Primary-key columns used for ordering; empty means ordering is not guaranteed. Pages are not a fixed snapshot.
32524
32523
  rows_count:
32525
32524
  type: integer
32526
32525
  page:
@@ -33446,8 +33445,19 @@ components:
33446
33445
  description: the target table or view name
33447
33446
  limit:
33448
33447
  type: integer
33449
- description: return limited number of data
33448
+ description: Rows per batch, from 1 to 2000; defaults to 200.
33449
+ minimum: 1
33450
+ maximum: 2000
33451
+ nullable: true
33452
+ offset:
33453
+ type: integer
33454
+ format: int64
33455
+ minimum: 0
33450
33456
  nullable: true
33457
+ description: Zero-based offset. Include 0 for the first paged request; omit for legacy data plus total-count behavior. Paged requests do not count the table.
33458
+ countOnly:
33459
+ type: boolean
33460
+ description: Only return pagination.totalRows, without loading data.
33451
33461
  RedisACLContext:
33452
33462
  type: object
33453
33463
  properties:
@@ -35542,9 +35552,43 @@ components:
35542
35552
  type: array
35543
35553
  items:
35544
35554
  $ref: '#/components/schemas/engineServiceVersionsItem'
35555
+ opsVolumeExpandVolumesItems0:
35556
+ type: object
35557
+ required:
35558
+ - name
35559
+ - storage
35560
+ properties:
35561
+ name:
35562
+ type: string
35563
+ minLength: 1
35564
+ description: Volume name.
35565
+ storage:
35566
+ type: string
35567
+ description: Desired size with Gi suffix, for example 30Gi.
35568
+ instanceTemplateVolumeExpand:
35569
+ type: object
35570
+ required:
35571
+ - name
35572
+ - volumes
35573
+ properties:
35574
+ name:
35575
+ type: string
35576
+ minLength: 1
35577
+ description: Template name from the current mode component instanceTemplate.names.
35578
+ volumes:
35579
+ type: array
35580
+ minItems: 1
35581
+ items:
35582
+ $ref: '#/components/schemas/opsVolumeExpandVolumesItems0'
35545
35583
  opsVolumeExpand:
35546
- description: OpsVolumeExpand is the payload to expand volume for a KubeBlocks cluster
35584
+ description: Expand component volumes and explicit targets for components with template expansion enabled.
35547
35585
  properties:
35586
+ instanceTemplates:
35587
+ type: array
35588
+ minItems: 1
35589
+ description: Required when the current mode component instanceTemplate.ops includes storageExpansion; otherwise omit for component-level expansion. Explicit targets require this capability. Every configured template must explicitly specify the same volume names and target capacities as component-level volumes. Names identify templates, not Pods. Targets are forwarded together in one OpsRequest without filling in, merging, or removing template targets. KubeBlocks may materialize template volumeClaimTemplates for explicitly targeted inherited volumes.
35590
+ items:
35591
+ $ref: '#/components/schemas/instanceTemplateVolumeExpand'
35548
35592
  component:
35549
35593
  type: string
35550
35594
  minLength: 1
@@ -35552,17 +35596,7 @@ components:
35552
35596
  type: array
35553
35597
  minItems: 1
35554
35598
  items:
35555
- type: object
35556
- properties:
35557
- name:
35558
- type: string
35559
- description: volume name
35560
- storage:
35561
- type: string
35562
- description: Storage size, the unit is Gi.
35563
- required:
35564
- - name
35565
- - storage
35599
+ $ref: '#/components/schemas/opsVolumeExpandVolumesItems0'
35566
35600
  required:
35567
35601
  - volumes
35568
35602
  - component
@@ -39290,6 +39324,7 @@ components:
39290
39324
  enum:
39291
39325
  - hscale
39292
39326
  - vscale
39327
+ - storageExpansion
39293
39328
  instanceTemplateAttribute:
39294
39329
  type: string
39295
39330
  description: Heterogeneous attribute the frontend may render on an instance template at create.
@@ -39297,6 +39332,8 @@ components:
39297
39332
  - env
39298
39333
  - annotations
39299
39334
  - labels
39335
+ - availabilityZone
39336
+ - storageClass
39300
39337
  instanceTemplateEnv:
39301
39338
  type: object
39302
39339
  description: One fillable env var on an instance template, for frontend rendering.
@@ -39341,19 +39378,9 @@ components:
39341
39378
  instanceTemplate:
39342
39379
  type: object
39343
39380
  description: |
39344
- Frontend catalog of instance templates for this mode component.
39345
- names, ops, attributes, and env are for UI rendering. Create
39346
- validates the request against chart-rendered Cluster instances,
39347
- not this catalog. HScale does not re-check this catalog; it
39348
- builds the OpsRequest from the request and the live Cluster.
39349
- HScale instanceTemplates still requires top-level replicas.
39350
- ops lists hscale and vscale for the UI (vscale is reserved;
39351
- class stays component-level). Only HScale processes instance templates.
39352
- VolumeExpansion, VScale, Upgrade, Restart, and other operations silently
39353
- ignore instance templates and keep their component-level behavior.
39354
- Template-level volumeexpansion is not implemented.
39355
- The platform does not even-split or fill in missing templates.
39356
- When absent, the frontend should use component-level operations.
39381
+ Template fields and operations shared by the frontend and backend.
39382
+ Declaring storageExpansion in ops requires explicit volume expansion targets
39383
+ for every name. Components without this capability use component-level expansion.
39357
39384
  required:
39358
39385
  - names
39359
39386
  - ops
@@ -39367,18 +39394,16 @@ components:
39367
39394
  description: |
39368
39395
  Instance template names the frontend should render.
39369
39396
  Create and hscale check names against the chart or live Cluster,
39370
- not this list.
39397
+ not this list. Explicit volume expansion targets must include every name in this list.
39371
39398
  ops:
39372
39399
  type: array
39373
39400
  minItems: 1
39374
39401
  items:
39375
39402
  $ref: '#/components/schemas/instanceTemplateOp'
39376
39403
  description: |
39377
- Operations the frontend should offer per template: hscale, vscale.
39378
- Not re-checked when creating a cluster or building an hscale OpsRequest.
39379
- Only hscale currently acts per template; vscale is reserved.
39380
- VolumeExpansion, VScale, Upgrade, and Restart ignore instance templates
39381
- and keep their component-level behavior.
39404
+ Template operations: hscale, storageExpansion, and reserved vscale.
39405
+ Explicit volume expansion targets must match component volume names
39406
+ and target capacities.
39382
39407
  attributes:
39383
39408
  type: array
39384
39409
  uniqueItems: true
@@ -40052,6 +40077,14 @@ components:
40052
40077
  - defaultMethod
40053
40078
  - fullMethod
40054
40079
  properties:
40080
+ modes:
40081
+ type: array
40082
+ x-omitempty: false
40083
+ description: |
40084
+ Engine modes that support backup and restore. Omitted or null means all modes
40085
+ (legacy behavior); an empty array disables backup and restore for all modes.
40086
+ items:
40087
+ type: string
40055
40088
  defaultMethod:
40056
40089
  type: string
40057
40090
  defaultComponent:
@@ -43896,6 +43929,13 @@ components:
43896
43929
  - interrupt
43897
43930
  - ignore
43898
43931
  description: Policy to handle failures
43932
+ taskRetryMode:
43933
+ type: string
43934
+ enum:
43935
+ - restart
43936
+ - resume
43937
+ default: restart
43938
+ description: restart reruns all steps; resume preserves successful steps.
43899
43939
  task:
43900
43940
  type: object
43901
43941
  required:
@@ -43961,6 +44001,11 @@ components:
43961
44001
  description: Degree of parallelism for the task
43962
44002
  failurePolicy:
43963
44003
  $ref: '#/components/schemas/taskFailurePolicy'
44004
+ retryModes:
44005
+ type: array
44006
+ description: Supported manual retry modes for this task. Runtime conflicts are checked when retrying.
44007
+ items:
44008
+ $ref: '#/components/schemas/taskRetryMode'
43964
44009
  retryLimit:
43965
44010
  type: integer
43966
44011
  description: Maximum number of retries for the task
@@ -611,6 +611,7 @@ models/instance-template-create.ts
611
611
  models/instance-template-env.ts
612
612
  models/instance-template-op.ts
613
613
  models/instance-template-replicas.ts
614
+ models/instance-template-volume-expand.ts
614
615
  models/instance.ts
615
616
  models/integer-option.ts
616
617
  models/international-desc.ts
@@ -772,7 +773,7 @@ models/ops-restart.ts
772
773
  models/ops-start.ts
773
774
  models/ops-stop.ts
774
775
  models/ops-upgrade.ts
775
- models/ops-volume-expand-volumes-inner.ts
776
+ models/ops-volume-expand-volumes-items0.ts
776
777
  models/ops-volume-expand.ts
777
778
  models/ops-vscale.ts
778
779
  models/org-aggregation-group-type.ts
@@ -979,6 +980,7 @@ models/tag.ts
979
980
  models/task-failure-policy.ts
980
981
  models/task-list-item.ts
981
982
  models/task-list.ts
983
+ models/task-retry-mode.ts
982
984
  models/task-schedule-type.ts
983
985
  models/task-schedule.ts
984
986
  models/task-status.ts