kb-cloud-client-typescript 2.3.41 → 2.3.42

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
- * The number of replicas, for standalone mode, the replicas is 1, for raftGroup mode, the default replicas is 3. If the rendered component has instance templates, this must equal the sum of all template replica counts in the complete instanceTemplates list.
45
+ * The number of replicas, for standalone mode, the replicas is 1, for raftGroup mode, the default replicas is 3. 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;
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';
@@ -208,6 +210,7 @@ export * from './component-ops-option-dependent-custom-ops-params-inner';
208
210
  export * from './component-ops-option-restore-env-inner';
209
211
  export * from './component-option';
210
212
  export * from './component-option-version';
213
+ export * from './component-option-version-blocked-upgrade-from-inner';
211
214
  export * from './component-option-version-major-version';
212
215
  export * from './component-option-version-major-version-version-mapping-inner';
213
216
  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':
@@ -9525,13 +9530,46 @@ paths:
9525
9530
  $ref: '#/components/responses/403'
9526
9531
  '404':
9527
9532
  $ref: '#/components/responses/404'
9533
+ /api/v1/organizations/{orgName}/alerts/cluster/{clusterName}/rules:
9534
+ get:
9535
+ tags:
9536
+ - clusterAlertSwitch
9537
+ - shared
9538
+ operationId: listClusterAlertRules
9539
+ summary: List applicable alert rules for a cluster
9540
+ parameters:
9541
+ - name: orgName
9542
+ in: path
9543
+ description: name of the Org
9544
+ required: true
9545
+ schema:
9546
+ type: string
9547
+ - name: clusterName
9548
+ in: path
9549
+ description: clusterName
9550
+ required: true
9551
+ schema:
9552
+ type: string
9553
+ responses:
9554
+ '200':
9555
+ description: A successful response.
9556
+ content:
9557
+ application/json:
9558
+ schema:
9559
+ $ref: '#/components/schemas/alertRuleList'
9560
+ '401':
9561
+ $ref: '#/components/responses/401'
9562
+ '403':
9563
+ $ref: '#/components/responses/403'
9564
+ '404':
9565
+ $ref: '#/components/responses/404'
9528
9566
  /api/v1/organizations/{orgName}/alerts/cluster/{clusterName}:
9529
9567
  get:
9530
9568
  tags:
9531
9569
  - clusterAlertSwitch
9532
9570
  - shared
9533
9571
  operationId: getClusterAlertDisabled
9534
- summary: Check if cluster alert is disabled
9572
+ summary: Get cluster alert settings
9535
9573
  parameters:
9536
9574
  - name: orgName
9537
9575
  in: path
@@ -9563,7 +9601,7 @@ paths:
9563
9601
  - clusterAlertSwitch
9564
9602
  - shared
9565
9603
  operationId: setClusterAlertDisabled
9566
- summary: Set cluster alert disabled or enabled
9604
+ summary: Update cluster alert settings
9567
9605
  parameters:
9568
9606
  - name: orgName
9569
9607
  in: path
@@ -25603,11 +25641,11 @@ components:
25603
25641
  replicas:
25604
25642
  title: Replicas
25605
25643
  type: integer
25606
- description: The number of replicas, for standalone mode, the replicas is 1, for raftGroup mode, the default replicas is 3. If the rendered component has instance templates, this must equal the sum of all template replica counts in the complete instanceTemplates list.
25644
+ description: The number of replicas, for standalone mode, the replicas is 1, for raftGroup mode, the default replicas is 3. When instanceTemplates is provided, this must equal the sum of all template replica counts.
25607
25645
  instanceTemplates:
25608
25646
  type: array
25609
25647
  minItems: 1
25610
- 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.
25648
+ 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.
25611
25649
  items:
25612
25650
  $ref: '#/components/schemas/instanceTemplateCreate'
25613
25651
  skipResourceConstraints:
@@ -26533,7 +26571,7 @@ components:
26533
26571
  minimum: 0
26534
26572
  description: Target replica count for this instance template.
26535
26573
  opsHScale:
26536
- 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.
26574
+ 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.
26537
26575
  required:
26538
26576
  - component
26539
26577
  properties:
@@ -26552,7 +26590,7 @@ components:
26552
26590
  instanceTemplates:
26553
26591
  type: array
26554
26592
  minItems: 1
26555
- 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.
26593
+ 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.
26556
26594
  items:
26557
26595
  $ref: '#/components/schemas/instanceTemplateReplicas'
26558
26596
  onlineInstancesToOffline:
@@ -32456,13 +32494,79 @@ components:
32456
32494
  format: date-time
32457
32495
  description: response generation time
32458
32496
  description: Cluster alert summary
32459
- alertCluster:
32497
+ alertClusterSilenceMode:
32498
+ type: string
32499
+ enum:
32500
+ - once
32501
+ - weekly
32502
+ description: Required when enabled. Once uses absolute timestamps; weekly uses weekdays and local times in timeZone.
32503
+ alertClusterSilence:
32504
+ type: object
32460
32505
  required:
32461
- - disabled
32506
+ - enabled
32507
+ description: Pause notifications while continuing to record alerts. Set enabled to false to cancel. Time windows include their start and exclude their end.
32508
+ properties:
32509
+ enabled:
32510
+ type: boolean
32511
+ rules:
32512
+ type: array
32513
+ maxItems: 1000
32514
+ description: Alert names to silence. Empty or omitted means all cluster alerts.
32515
+ items:
32516
+ type: string
32517
+ minLength: 1
32518
+ maxLength: 255
32519
+ mode:
32520
+ $ref: '#/components/schemas/alertClusterSilenceMode'
32521
+ startsAt:
32522
+ type: string
32523
+ format: date-time
32524
+ description: Required for once. Absolute start of the silence window.
32525
+ endsAt:
32526
+ type: string
32527
+ format: date-time
32528
+ description: Required for once. Must be later than startsAt.
32529
+ weekdays:
32530
+ type: array
32531
+ maxItems: 7
32532
+ description: Required for weekly. Sunday is 0. Overnight windows belong to the weekday on which they start.
32533
+ items:
32534
+ type: integer
32535
+ minimum: 0
32536
+ maximum: 6
32537
+ startTime:
32538
+ type: string
32539
+ description: Required for weekly, in HH:mm format.
32540
+ endTime:
32541
+ type: string
32542
+ description: Required for weekly, in HH:mm format. Earlier than startTime means the following day; equal times are invalid.
32543
+ timeZone:
32544
+ type: string
32545
+ maxLength: 100
32546
+ description: Required for weekly. IANA timezone, e.g. Asia/Shanghai or UTC.
32547
+ alertCluster:
32462
32548
  type: object
32549
+ description: Cluster-scoped alert settings. PATCH updates only supplied fields; settings apply to both tenant and administrator notifications.
32463
32550
  properties:
32464
32551
  disabled:
32465
32552
  type: boolean
32553
+ x-nullable: true
32554
+ description: Disable all cluster alerts. Existing rule and silence settings are preserved.
32555
+ disabledRules:
32556
+ type: array
32557
+ maxItems: 1000
32558
+ x-omitempty: false
32559
+ description: Alert names disabled only for this cluster. An empty array clears all rule overrides; omission preserves them.
32560
+ items:
32561
+ type: string
32562
+ minLength: 1
32563
+ maxLength: 255
32564
+ silence:
32565
+ $ref: '#/components/schemas/alertClusterSilence'
32566
+ silenceActive:
32567
+ type: boolean
32568
+ readOnly: true
32569
+ description: Whether the configured silence window is active now, regardless of the alert master switch.
32466
32570
  alertConfig:
32467
32571
  required:
32468
32572
  - timeZoneOffset
@@ -32786,6 +32890,21 @@ components:
32786
32890
  type: string
32787
32891
  architecture:
32788
32892
  $ref: '#/components/schemas/componentVersionArchitecture'
32893
+ blockedUpgradeFrom:
32894
+ type: array
32895
+ 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.
32896
+ items:
32897
+ type: object
32898
+ description: One upgrade restriction while the cluster runs a service version matching from, upgrading to a service version matching to is not allowed.
32899
+ required:
32900
+ - from
32901
+ properties:
32902
+ from:
32903
+ type: string
32904
+ 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".
32905
+ to:
32906
+ type: string
32907
+ 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.
32789
32908
  main:
32790
32909
  description: Main component flag
32791
32910
  type: boolean
@@ -32862,8 +32981,9 @@ components:
32862
32981
  type: object
32863
32982
  description: |
32864
32983
  Template fields and operations shared by the frontend and backend.
32865
- Declaring storageExpansion in ops requires explicit volume expansion targets
32866
- for every name. Components without this capability use component-level expansion.
32984
+ Requested components require creation template targets when instanceTemplate is declared.
32985
+ Declaring hscale or storageExpansion in ops requires explicit targets
32986
+ for every name. The hscale requirement applies to replica scaling only.
32867
32987
  required:
32868
32988
  - names
32869
32989
  - ops
@@ -32876,8 +32996,8 @@ components:
32876
32996
  type: string
32877
32997
  description: |
32878
32998
  Instance template names the frontend should render.
32879
- Create and hscale check names against the chart or live Cluster,
32880
- not this list. Explicit volume expansion targets must include every name in this list.
32999
+ Create checks names against the chart. Replica hscale and volume expansion
33000
+ targets must include every name in this list.
32881
33001
  ops:
32882
33002
  type: array
32883
33003
  minItems: 1
@@ -32885,8 +33005,8 @@ components:
32885
33005
  $ref: '#/components/schemas/instanceTemplateOp'
32886
33006
  description: |
32887
33007
  Template operations: hscale, storageExpansion, and reserved vscale.
32888
- Explicit volume expansion targets must match component volume names
32889
- and target capacities.
33008
+ Template hscale replicas must sum to the component target.
33009
+ Volume expansion targets must match component volume names and capacities.
32890
33010
  attributes:
32891
33011
  type: array
32892
33012
  uniqueItems: true