kb-cloud-client-typescript 2.4.0-alpha.79 → 2.4.0-alpha.80

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 (109) hide show
  1. package/dist/adminapi/apis/cluster-alert-switch-api.d.ts +74 -10
  2. package/dist/adminapi/apis/cluster-alert-switch-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/cluster-alert-switch-api.js +82 -8
  4. package/dist/adminapi/apis/cluster-alert-switch-api.js.map +1 -1
  5. package/dist/adminapi/apis/cluster-log-api.d.ts +10 -2
  6. package/dist/adminapi/apis/cluster-log-api.d.ts.map +1 -1
  7. package/dist/adminapi/apis/cluster-log-api.js +10 -5
  8. package/dist/adminapi/apis/cluster-log-api.js.map +1 -1
  9. package/dist/adminapi/apis/cluster-loki-log-api.d.ts +10 -2
  10. package/dist/adminapi/apis/cluster-loki-log-api.d.ts.map +1 -1
  11. package/dist/adminapi/apis/cluster-loki-log-api.js +10 -5
  12. package/dist/adminapi/apis/cluster-loki-log-api.js.map +1 -1
  13. package/dist/adminapi/apis/shared-api.d.ts +94 -14
  14. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  15. package/dist/adminapi/apis/shared-api.js +102 -18
  16. package/dist/adminapi/apis/shared-api.js.map +1 -1
  17. package/dist/adminapi/models/alert-cluster-silence-mode.d.ts +22 -0
  18. package/dist/adminapi/models/alert-cluster-silence-mode.d.ts.map +1 -0
  19. package/dist/adminapi/models/alert-cluster-silence-mode.js +26 -0
  20. package/dist/adminapi/models/alert-cluster-silence-mode.js.map +1 -0
  21. package/dist/adminapi/models/alert-cluster-silence.d.ts +74 -0
  22. package/dist/adminapi/models/alert-cluster-silence.d.ts.map +1 -0
  23. package/dist/adminapi/models/alert-cluster-silence.js +16 -0
  24. package/dist/adminapi/models/alert-cluster-silence.js.map +1 -0
  25. package/dist/adminapi/models/alert-cluster.d.ts +21 -2
  26. package/dist/adminapi/models/alert-cluster.d.ts.map +1 -1
  27. package/dist/adminapi/models/component-item-create.d.ts +2 -2
  28. package/dist/adminapi/models/component-option-version-blocked-upgrade-from-inner.d.ts +31 -0
  29. package/dist/adminapi/models/component-option-version-blocked-upgrade-from-inner.d.ts.map +1 -0
  30. package/dist/adminapi/models/component-option-version-blocked-upgrade-from-inner.js +16 -0
  31. package/dist/adminapi/models/component-option-version-blocked-upgrade-from-inner.js.map +1 -0
  32. package/dist/adminapi/models/component-option-version.d.ts +7 -0
  33. package/dist/adminapi/models/component-option-version.d.ts.map +1 -1
  34. package/dist/adminapi/models/index.d.ts +3 -0
  35. package/dist/adminapi/models/index.d.ts.map +1 -1
  36. package/dist/adminapi/models/index.js +3 -0
  37. package/dist/adminapi/models/index.js.map +1 -1
  38. package/dist/adminapi/models/mode-component-instance-template.d.ts +3 -3
  39. package/dist/adminapi/models/ops-hscale.d.ts +2 -2
  40. package/dist/openapi/apis/cluster-alert-switch-api.d.ts +74 -10
  41. package/dist/openapi/apis/cluster-alert-switch-api.d.ts.map +1 -1
  42. package/dist/openapi/apis/cluster-alert-switch-api.js +82 -8
  43. package/dist/openapi/apis/cluster-alert-switch-api.js.map +1 -1
  44. package/dist/openapi/apis/cluster-log-api.d.ts +10 -2
  45. package/dist/openapi/apis/cluster-log-api.d.ts.map +1 -1
  46. package/dist/openapi/apis/cluster-log-api.js +10 -5
  47. package/dist/openapi/apis/cluster-log-api.js.map +1 -1
  48. package/dist/openapi/apis/cluster-loki-log-api.d.ts +10 -2
  49. package/dist/openapi/apis/cluster-loki-log-api.d.ts.map +1 -1
  50. package/dist/openapi/apis/cluster-loki-log-api.js +10 -5
  51. package/dist/openapi/apis/cluster-loki-log-api.js.map +1 -1
  52. package/dist/openapi/apis/shared-api.d.ts +94 -14
  53. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  54. package/dist/openapi/apis/shared-api.js +102 -18
  55. package/dist/openapi/apis/shared-api.js.map +1 -1
  56. package/dist/openapi/models/alert-cluster-silence-mode.d.ts +22 -0
  57. package/dist/openapi/models/alert-cluster-silence-mode.d.ts.map +1 -0
  58. package/dist/openapi/models/alert-cluster-silence-mode.js +26 -0
  59. package/dist/openapi/models/alert-cluster-silence-mode.js.map +1 -0
  60. package/dist/openapi/models/alert-cluster-silence.d.ts +74 -0
  61. package/dist/openapi/models/alert-cluster-silence.d.ts.map +1 -0
  62. package/dist/openapi/models/alert-cluster-silence.js +16 -0
  63. package/dist/openapi/models/alert-cluster-silence.js.map +1 -0
  64. package/dist/openapi/models/alert-cluster.d.ts +21 -2
  65. package/dist/openapi/models/alert-cluster.d.ts.map +1 -1
  66. package/dist/openapi/models/component-item-create.d.ts +2 -2
  67. package/dist/openapi/models/component-option-version-blocked-upgrade-from-inner.d.ts +31 -0
  68. package/dist/openapi/models/component-option-version-blocked-upgrade-from-inner.d.ts.map +1 -0
  69. package/dist/openapi/models/component-option-version-blocked-upgrade-from-inner.js +16 -0
  70. package/dist/openapi/models/component-option-version-blocked-upgrade-from-inner.js.map +1 -0
  71. package/dist/openapi/models/component-option-version.d.ts +7 -0
  72. package/dist/openapi/models/component-option-version.d.ts.map +1 -1
  73. package/dist/openapi/models/index.d.ts +3 -0
  74. package/dist/openapi/models/index.d.ts.map +1 -1
  75. package/dist/openapi/models/index.js +3 -0
  76. package/dist/openapi/models/index.js.map +1 -1
  77. package/dist/openapi/models/mode-component-instance-template.d.ts +3 -3
  78. package/dist/openapi/models/ops-hscale.d.ts +2 -2
  79. package/package.json +1 -1
  80. package/src/adminapi/.openapi-generator/FILES +3 -0
  81. package/src/adminapi/apis/cluster-alert-switch-api.ts +124 -10
  82. package/src/adminapi/apis/cluster-log-api.ts +18 -5
  83. package/src/adminapi/apis/cluster-loki-log-api.ts +18 -5
  84. package/src/adminapi/apis/shared-api.ts +160 -20
  85. package/src/adminapi/models/alert-cluster-silence-mode.ts +31 -0
  86. package/src/adminapi/models/alert-cluster-silence.ts +83 -0
  87. package/src/adminapi/models/alert-cluster.ts +23 -2
  88. package/src/adminapi/models/component-item-create.ts +2 -2
  89. package/src/adminapi/models/component-option-version-blocked-upgrade-from-inner.ts +36 -0
  90. package/src/adminapi/models/component-option-version.ts +9 -0
  91. package/src/adminapi/models/index.ts +3 -0
  92. package/src/adminapi/models/mode-component-instance-template.ts +3 -3
  93. package/src/adminapi/models/ops-hscale.ts +2 -2
  94. package/src/adminapi.yaml +172 -52
  95. package/src/openapi/.openapi-generator/FILES +3 -0
  96. package/src/openapi/apis/cluster-alert-switch-api.ts +124 -10
  97. package/src/openapi/apis/cluster-log-api.ts +18 -5
  98. package/src/openapi/apis/cluster-loki-log-api.ts +18 -5
  99. package/src/openapi/apis/shared-api.ts +160 -20
  100. package/src/openapi/models/alert-cluster-silence-mode.ts +31 -0
  101. package/src/openapi/models/alert-cluster-silence.ts +83 -0
  102. package/src/openapi/models/alert-cluster.ts +23 -2
  103. package/src/openapi/models/component-item-create.ts +2 -2
  104. package/src/openapi/models/component-option-version-blocked-upgrade-from-inner.ts +36 -0
  105. package/src/openapi/models/component-option-version.ts +9 -0
  106. package/src/openapi/models/index.ts +3 -0
  107. package/src/openapi/models/mode-component-instance-template.ts +3 -3
  108. package/src/openapi/models/ops-hscale.ts +2 -2
  109. package/src/openapi.yaml +134 -14
@@ -13,18 +13,39 @@
13
13
  */
14
14
 
15
15
 
16
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import type { AlertClusterSilence } from './alert-cluster-silence';
16
19
 
17
20
  /**
18
- *
21
+ * Cluster-scoped alert settings. PATCH updates only supplied fields; settings apply to both tenant and administrator notifications.
19
22
  * @export
20
23
  * @interface AlertCluster
21
24
  */
22
25
  export interface AlertCluster {
26
+ /**
27
+ * Disable all cluster alerts. Existing rule and silence settings are preserved.
28
+ * @type {boolean}
29
+ * @memberof AlertCluster
30
+ */
31
+ 'disabled'?: boolean | null;
32
+ /**
33
+ * Alert names disabled only for this cluster. An empty array clears all rule overrides; omission preserves them.
34
+ * @type {Array<string>}
35
+ * @memberof AlertCluster
36
+ */
37
+ 'disabledRules'?: Array<string>;
23
38
  /**
24
39
  *
40
+ * @type {AlertClusterSilence}
41
+ * @memberof AlertCluster
42
+ */
43
+ 'silence'?: AlertClusterSilence;
44
+ /**
45
+ * Whether the configured silence window is active now, regardless of the alert master switch.
25
46
  * @type {boolean}
26
47
  * @memberof AlertCluster
27
48
  */
28
- 'disabled': boolean;
49
+ 'silenceActive'?: boolean;
29
50
  }
30
51
 
@@ -42,13 +42,13 @@ export interface ComponentItemCreate {
42
42
  */
43
43
  'compNum'?: number;
44
44
  /**
45
- * Omit to use the cluster chart default. Set zero to disable the component when its resource constraints allow zero replicas. If the rendered component has instance templates, this must equal the sum of all template replica counts in the complete instanceTemplates list.
45
+ * Omit to use the cluster chart default. Set zero to disable the component when its resource constraints allow zero replicas. When instanceTemplates is provided, this must equal the sum of all template replica counts.
46
46
  * @type {number}
47
47
  * @memberof ComponentItemCreate
48
48
  */
49
49
  'replicas'?: number | null;
50
50
  /**
51
- * Per-template replicas and optional overlays (env, annotations, labels). Required when the chart renders instance templates. Names must exactly match all chart-rendered instances, without missing, extra, or duplicate names; order does not matter. Component replicas must equal the sum of all requested instance template replica counts.
51
+ * Per-template replicas and optional overlays (env, annotations, labels, availability zone, storage class). Required when the current mode component declares instanceTemplate in engine_options; otherwise omit. Names must exactly match all chart-rendered instances, without missing, extra, or duplicate names; order does not matter. Component replicas must equal the sum of all requested instance template replica counts.
52
52
  * @type {Array<InstanceTemplateCreate>}
53
53
  * @memberof ComponentItemCreate
54
54
  */
@@ -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
+ * One upgrade restriction while the cluster runs a service version matching from, upgrading to a service version matching to is not allowed.
19
+ * @export
20
+ * @interface ComponentOptionVersionBlockedUpgradeFromInner
21
+ */
22
+ export interface ComponentOptionVersionBlockedUpgradeFromInner {
23
+ /**
24
+ * Pattern of the service version the cluster currently runs. Supports exact version \"7.4.7\", version prefix \"7.4\", and comparisons \">=7.4.5\", \">7.4.4\", \"<=7.4.7\", \"<7.4.8\".
25
+ * @type {string}
26
+ * @memberof ComponentOptionVersionBlockedUpgradeFromInner
27
+ */
28
+ 'from': string;
29
+ /**
30
+ * Pattern of the service version the upgrade is blocked to, with the same syntax as from. Omit to block every upgrade target, which makes from the end of the line for the component.
31
+ * @type {string}
32
+ * @memberof ComponentOptionVersionBlockedUpgradeFromInner
33
+ */
34
+ 'to'?: string;
35
+ }
36
+
@@ -13,6 +13,9 @@
13
13
  */
14
14
 
15
15
 
16
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import type { ComponentOptionVersionBlockedUpgradeFromInner } from './component-option-version-blocked-upgrade-from-inner';
16
19
  // May contain unused imports in some cases
17
20
  // @ts-ignore
18
21
  import type { ComponentOptionVersionMajorVersion } from './component-option-version-major-version';
@@ -53,5 +56,11 @@ export interface ComponentOptionVersion {
53
56
  * @memberof ComponentOptionVersion
54
57
  */
55
58
  'architecture'?: ComponentVersionArchitecture | null;
59
+ /**
60
+ * Upgrades that must not be offered or accepted for this component, keyed by the service version the cluster currently runs. Use it when a target version is not a drop-in replacement for a source version, for example when the source image ships modules the target image no longer carries. Upgrades matching no rule stay untouched.
61
+ * @type {Array<ComponentOptionVersionBlockedUpgradeFromInner>}
62
+ * @memberof ComponentOptionVersion
63
+ */
64
+ 'blockedUpgradeFrom'?: Array<ComponentOptionVersionBlockedUpgradeFromInner>;
56
65
  }
57
66
 
@@ -41,6 +41,8 @@ export * from './ai-agent-turn-action';
41
41
  export * from './ai-agent-turn-action-list';
42
42
  export * from './ai-agent-turn-status';
43
43
  export * from './alert-cluster';
44
+ export * from './alert-cluster-silence';
45
+ export * from './alert-cluster-silence-mode';
44
46
  export * from './alert-config';
45
47
  export * from './alert-inhibit';
46
48
  export * from './alert-inhibit-list';
@@ -207,6 +209,7 @@ export * from './component-ops-option-dependent-custom-ops-params-inner';
207
209
  export * from './component-ops-option-restore-env-inner';
208
210
  export * from './component-option';
209
211
  export * from './component-option-version';
212
+ export * from './component-option-version-blocked-upgrade-from-inner';
210
213
  export * from './component-option-version-major-version';
211
214
  export * from './component-option-version-major-version-version-mapping-inner';
212
215
  export * from './component-option-version-minor-version';
@@ -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
- * 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.
27
+ * Template fields and operations shared by the frontend and backend. Requested components require creation template targets when instanceTemplate is declared. Declaring hscale or storageExpansion in ops requires explicit targets for every name. The hscale requirement applies to replica scaling only.
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. Explicit volume expansion targets must include every name in this list.
33
+ * Instance template names the frontend should render. Create checks names against the chart. Replica hscale and 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
- * Template operations: hscale, storageExpansion, and reserved vscale. Explicit volume expansion targets must match component volume names and target capacities.
39
+ * Template operations: hscale, storageExpansion, and reserved vscale. Template hscale replicas must sum to the component target. Volume expansion targets must match component volume names and capacities.
40
40
  * @type {Array<InstanceTemplateOp>}
41
41
  * @memberof ModeComponentInstanceTemplate
42
42
  */
@@ -21,7 +21,7 @@ import type { InstanceTemplateReplicas } from './instance-template-replicas';
21
21
  import type { TaskSchedule } from './task-schedule';
22
22
 
23
23
  /**
24
- * OpsHScale is the payload to horizontally scale a KubeBlocks cluster. Specify replicas or shards. instanceTemplates is an optional overlay and requires top-level replicas.
24
+ * OpsHScale is the payload to horizontally scale a KubeBlocks cluster. Specify replicas or shards. Replica scaling requires explicit template targets when the current mode component declares instanceTemplate.ops hscale.
25
25
  * @export
26
26
  * @interface OpsHScale
27
27
  */
@@ -45,7 +45,7 @@ export interface OpsHScale {
45
45
  */
46
46
  'replicas'?: number | null;
47
47
  /**
48
- * Target replica count for named instance templates. Requires top-level replicas. Mapped onto the live Cluster spec to build scaleIn/scaleOut.instances. Required for replica scaling when the live component has instance templates. Names must exactly match all live instance templates, without missing, extra, or duplicate names; order does not matter. Top-level replicas must equal the sum of all requested template replica counts. Shard-count scaling does not check templates and cannot include this list.
48
+ * Explicit template replica targets, required when the current mode component instanceTemplate.ops includes hscale. Otherwise omit for component-level scaling. Requires top-level replicas and every name from instanceTemplate.names, without missing, extra, or duplicate names. Template replica counts must sum to the component target; equal distribution is not required by the API. Component and template changes are sent together in one OpsRequest using current Cluster replicas to calculate scaleIn/scaleOut deltas. Shard-count scaling cannot include this list.
49
49
  * @type {Array<InstanceTemplateReplicas>}
50
50
  * @memberof OpsHScale
51
51
  */
package/src/openapi.yaml CHANGED
@@ -3691,6 +3691,10 @@ paths:
3691
3691
  name: query
3692
3692
  schema:
3693
3693
  type: string
3694
+ - in: query
3695
+ name: filename
3696
+ schema:
3697
+ type: string
3694
3698
  - in: query
3695
3699
  name: sortType
3696
3700
  schema:
@@ -4356,6 +4360,7 @@ paths:
4356
4360
  - $ref: '#/components/parameters/componentName'
4357
4361
  - $ref: '#/components/parameters/instanceName'
4358
4362
  - $ref: '#/components/parameters/query'
4363
+ - $ref: '#/components/parameters/filename'
4359
4364
  - $ref: '#/components/parameters/sortType'
4360
4365
  responses:
4361
4366
  '200':
@@ -9497,13 +9502,46 @@ paths:
9497
9502
  $ref: '#/components/responses/403'
9498
9503
  '404':
9499
9504
  $ref: '#/components/responses/404'
9505
+ /api/v1/organizations/{orgName}/alerts/cluster/{clusterName}/rules:
9506
+ get:
9507
+ tags:
9508
+ - clusterAlertSwitch
9509
+ - shared
9510
+ operationId: listClusterAlertRules
9511
+ summary: List applicable alert rules for a cluster
9512
+ parameters:
9513
+ - name: orgName
9514
+ in: path
9515
+ description: name of the Org
9516
+ required: true
9517
+ schema:
9518
+ type: string
9519
+ - name: clusterName
9520
+ in: path
9521
+ description: clusterName
9522
+ required: true
9523
+ schema:
9524
+ type: string
9525
+ responses:
9526
+ '200':
9527
+ description: A successful response.
9528
+ content:
9529
+ application/json:
9530
+ schema:
9531
+ $ref: '#/components/schemas/alertRuleList'
9532
+ '401':
9533
+ $ref: '#/components/responses/401'
9534
+ '403':
9535
+ $ref: '#/components/responses/403'
9536
+ '404':
9537
+ $ref: '#/components/responses/404'
9500
9538
  /api/v1/organizations/{orgName}/alerts/cluster/{clusterName}:
9501
9539
  get:
9502
9540
  tags:
9503
9541
  - clusterAlertSwitch
9504
9542
  - shared
9505
9543
  operationId: getClusterAlertDisabled
9506
- summary: Check if cluster alert is disabled
9544
+ summary: Get cluster alert settings
9507
9545
  parameters:
9508
9546
  - name: orgName
9509
9547
  in: path
@@ -9535,7 +9573,7 @@ paths:
9535
9573
  - clusterAlertSwitch
9536
9574
  - shared
9537
9575
  operationId: setClusterAlertDisabled
9538
- summary: Set cluster alert disabled or enabled
9576
+ summary: Update cluster alert settings
9539
9577
  parameters:
9540
9578
  - name: orgName
9541
9579
  in: path
@@ -25717,11 +25755,11 @@ components:
25717
25755
  title: Replicas
25718
25756
  type: integer
25719
25757
  x-nullable: true
25720
- description: Omit to use the cluster chart default. Set zero to disable the component when its resource constraints allow zero replicas. If the rendered component has instance templates, this must equal the sum of all template replica counts in the complete instanceTemplates list.
25758
+ description: Omit to use the cluster chart default. Set zero to disable the component when its resource constraints allow zero replicas. When instanceTemplates is provided, this must equal the sum of all template replica counts.
25721
25759
  instanceTemplates:
25722
25760
  type: array
25723
25761
  minItems: 1
25724
- description: Per-template replicas and optional overlays (env, annotations, labels). Required when the chart renders instance templates. Names must exactly match all chart-rendered instances, without missing, extra, or duplicate names; order does not matter. Component replicas must equal the sum of all requested instance template replica counts.
25762
+ description: Per-template replicas and optional overlays (env, annotations, labels, availability zone, storage class). Required when the current mode component declares instanceTemplate in engine_options; otherwise omit. Names must exactly match all chart-rendered instances, without missing, extra, or duplicate names; order does not matter. Component replicas must equal the sum of all requested instance template replica counts.
25725
25763
  items:
25726
25764
  $ref: '#/components/schemas/instanceTemplateCreate'
25727
25765
  skipResourceConstraints:
@@ -26647,7 +26685,7 @@ components:
26647
26685
  minimum: 0
26648
26686
  description: Target replica count for this instance template.
26649
26687
  opsHScale:
26650
- description: OpsHScale is the payload to horizontally scale a KubeBlocks cluster. Specify replicas or shards. instanceTemplates is an optional overlay and requires top-level replicas.
26688
+ description: OpsHScale is the payload to horizontally scale a KubeBlocks cluster. Specify replicas or shards. Replica scaling requires explicit template targets when the current mode component declares instanceTemplate.ops hscale.
26651
26689
  required:
26652
26690
  - component
26653
26691
  properties:
@@ -26666,7 +26704,7 @@ components:
26666
26704
  instanceTemplates:
26667
26705
  type: array
26668
26706
  minItems: 1
26669
- description: Target replica count for named instance templates. Requires top-level replicas. Mapped onto the live Cluster spec to build scaleIn/scaleOut.instances. Required for replica scaling when the live component has instance templates. Names must exactly match all live instance templates, without missing, extra, or duplicate names; order does not matter. Top-level replicas must equal the sum of all requested template replica counts. Shard-count scaling does not check templates and cannot include this list.
26707
+ description: Explicit template replica targets, required when the current mode component instanceTemplate.ops includes hscale. Otherwise omit for component-level scaling. Requires top-level replicas and every name from instanceTemplate.names, without missing, extra, or duplicate names. Template replica counts must sum to the component target; equal distribution is not required by the API. Component and template changes are sent together in one OpsRequest using current Cluster replicas to calculate scaleIn/scaleOut deltas. Shard-count scaling cannot include this list.
26670
26708
  items:
26671
26709
  $ref: '#/components/schemas/instanceTemplateReplicas'
26672
26710
  onlineInstancesToOffline:
@@ -32527,13 +32565,79 @@ components:
32527
32565
  format: date-time
32528
32566
  description: response generation time
32529
32567
  description: Cluster alert summary
32530
- alertCluster:
32568
+ alertClusterSilenceMode:
32569
+ type: string
32570
+ enum:
32571
+ - once
32572
+ - weekly
32573
+ description: Required when enabled. Once uses absolute timestamps; weekly uses weekdays and local times in timeZone.
32574
+ alertClusterSilence:
32575
+ type: object
32531
32576
  required:
32532
- - disabled
32577
+ - enabled
32578
+ description: Pause notifications while continuing to record alerts. Set enabled to false to cancel. Time windows include their start and exclude their end.
32579
+ properties:
32580
+ enabled:
32581
+ type: boolean
32582
+ rules:
32583
+ type: array
32584
+ maxItems: 1000
32585
+ description: Alert names to silence. Empty or omitted means all cluster alerts.
32586
+ items:
32587
+ type: string
32588
+ minLength: 1
32589
+ maxLength: 255
32590
+ mode:
32591
+ $ref: '#/components/schemas/alertClusterSilenceMode'
32592
+ startsAt:
32593
+ type: string
32594
+ format: date-time
32595
+ description: Required for once. Absolute start of the silence window.
32596
+ endsAt:
32597
+ type: string
32598
+ format: date-time
32599
+ description: Required for once. Must be later than startsAt.
32600
+ weekdays:
32601
+ type: array
32602
+ maxItems: 7
32603
+ description: Required for weekly. Sunday is 0. Overnight windows belong to the weekday on which they start.
32604
+ items:
32605
+ type: integer
32606
+ minimum: 0
32607
+ maximum: 6
32608
+ startTime:
32609
+ type: string
32610
+ description: Required for weekly, in HH:mm format.
32611
+ endTime:
32612
+ type: string
32613
+ description: Required for weekly, in HH:mm format. Earlier than startTime means the following day; equal times are invalid.
32614
+ timeZone:
32615
+ type: string
32616
+ maxLength: 100
32617
+ description: Required for weekly. IANA timezone, e.g. Asia/Shanghai or UTC.
32618
+ alertCluster:
32533
32619
  type: object
32620
+ description: Cluster-scoped alert settings. PATCH updates only supplied fields; settings apply to both tenant and administrator notifications.
32534
32621
  properties:
32535
32622
  disabled:
32536
32623
  type: boolean
32624
+ x-nullable: true
32625
+ description: Disable all cluster alerts. Existing rule and silence settings are preserved.
32626
+ disabledRules:
32627
+ type: array
32628
+ maxItems: 1000
32629
+ x-omitempty: false
32630
+ description: Alert names disabled only for this cluster. An empty array clears all rule overrides; omission preserves them.
32631
+ items:
32632
+ type: string
32633
+ minLength: 1
32634
+ maxLength: 255
32635
+ silence:
32636
+ $ref: '#/components/schemas/alertClusterSilence'
32637
+ silenceActive:
32638
+ type: boolean
32639
+ readOnly: true
32640
+ description: Whether the configured silence window is active now, regardless of the alert master switch.
32537
32641
  alertConfig:
32538
32642
  required:
32539
32643
  - timeZoneOffset
@@ -32857,6 +32961,21 @@ components:
32857
32961
  type: string
32858
32962
  architecture:
32859
32963
  $ref: '#/components/schemas/componentVersionArchitecture'
32964
+ blockedUpgradeFrom:
32965
+ type: array
32966
+ description: Upgrades that must not be offered or accepted for this component, keyed by the service version the cluster currently runs. Use it when a target version is not a drop-in replacement for a source version, for example when the source image ships modules the target image no longer carries. Upgrades matching no rule stay untouched.
32967
+ items:
32968
+ type: object
32969
+ description: One upgrade restriction while the cluster runs a service version matching from, upgrading to a service version matching to is not allowed.
32970
+ required:
32971
+ - from
32972
+ properties:
32973
+ from:
32974
+ type: string
32975
+ description: Pattern of the service version the cluster currently runs. Supports exact version "7.4.7", version prefix "7.4", and comparisons ">=7.4.5", ">7.4.4", "<=7.4.7", "<7.4.8".
32976
+ to:
32977
+ type: string
32978
+ description: Pattern of the service version the upgrade is blocked to, with the same syntax as from. Omit to block every upgrade target, which makes from the end of the line for the component.
32860
32979
  main:
32861
32980
  description: Main component flag
32862
32981
  type: boolean
@@ -32933,8 +33052,9 @@ components:
32933
33052
  type: object
32934
33053
  description: |
32935
33054
  Template fields and operations shared by the frontend and backend.
32936
- Declaring storageExpansion in ops requires explicit volume expansion targets
32937
- for every name. Components without this capability use component-level expansion.
33055
+ Requested components require creation template targets when instanceTemplate is declared.
33056
+ Declaring hscale or storageExpansion in ops requires explicit targets
33057
+ for every name. The hscale requirement applies to replica scaling only.
32938
33058
  required:
32939
33059
  - names
32940
33060
  - ops
@@ -32947,8 +33067,8 @@ components:
32947
33067
  type: string
32948
33068
  description: |
32949
33069
  Instance template names the frontend should render.
32950
- Create and hscale check names against the chart or live Cluster,
32951
- not this list. Explicit volume expansion targets must include every name in this list.
33070
+ Create checks names against the chart. Replica hscale and volume expansion
33071
+ targets must include every name in this list.
32952
33072
  ops:
32953
33073
  type: array
32954
33074
  minItems: 1
@@ -32956,8 +33076,8 @@ components:
32956
33076
  $ref: '#/components/schemas/instanceTemplateOp'
32957
33077
  description: |
32958
33078
  Template operations: hscale, storageExpansion, and reserved vscale.
32959
- Explicit volume expansion targets must match component volume names
32960
- and target capacities.
33079
+ Template hscale replicas must sum to the component target.
33080
+ Volume expansion targets must match component volume names and capacities.
32961
33081
  attributes:
32962
33082
  type: array
32963
33083
  uniqueItems: true