kb-cloud-client-typescript 2.4.0-alpha.66 → 2.4.0-alpha.67

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 (132) hide show
  1. package/dist/adminapi/apis/vip-pool-api.d.ts +72 -0
  2. package/dist/adminapi/apis/vip-pool-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/vip-pool-api.js +80 -0
  4. package/dist/adminapi/apis/vip-pool-api.js.map +1 -1
  5. package/dist/adminapi/models/cluster-create.d.ts +6 -0
  6. package/dist/adminapi/models/cluster-create.d.ts.map +1 -1
  7. package/dist/adminapi/models/component-item-create.d.ts +8 -1
  8. package/dist/adminapi/models/component-item-create.d.ts.map +1 -1
  9. package/dist/adminapi/models/index.d.ts +8 -0
  10. package/dist/adminapi/models/index.d.ts.map +1 -1
  11. package/dist/adminapi/models/index.js +8 -0
  12. package/dist/adminapi/models/index.js.map +1 -1
  13. package/dist/adminapi/models/instance-template-attribute.d.ts +23 -0
  14. package/dist/adminapi/models/instance-template-attribute.d.ts.map +1 -0
  15. package/dist/adminapi/models/instance-template-attribute.js +27 -0
  16. package/dist/adminapi/models/instance-template-attribute.js.map +1 -0
  17. package/dist/adminapi/models/instance-template-create-env-inner.d.ts +31 -0
  18. package/dist/adminapi/models/instance-template-create-env-inner.d.ts.map +1 -0
  19. package/dist/adminapi/models/instance-template-create-env-inner.js +16 -0
  20. package/dist/adminapi/models/instance-template-create-env-inner.js.map +1 -0
  21. package/dist/adminapi/models/instance-template-create.d.ts +54 -0
  22. package/dist/adminapi/models/instance-template-create.d.ts.map +1 -0
  23. package/dist/adminapi/models/instance-template-create.js +16 -0
  24. package/dist/adminapi/models/instance-template-create.js.map +1 -0
  25. package/dist/adminapi/models/instance-template-env.d.ts +50 -0
  26. package/dist/adminapi/models/instance-template-env.d.ts.map +1 -0
  27. package/dist/adminapi/models/instance-template-env.js +16 -0
  28. package/dist/adminapi/models/instance-template-env.js.map +1 -0
  29. package/dist/adminapi/models/instance-template-op.d.ts +22 -0
  30. package/dist/adminapi/models/instance-template-op.d.ts.map +1 -0
  31. package/dist/adminapi/models/instance-template-op.js +26 -0
  32. package/dist/adminapi/models/instance-template-op.js.map +1 -0
  33. package/dist/adminapi/models/instance-template-replicas.d.ts +31 -0
  34. package/dist/adminapi/models/instance-template-replicas.d.ts.map +1 -0
  35. package/dist/adminapi/models/instance-template-replicas.js +16 -0
  36. package/dist/adminapi/models/instance-template-replicas.js.map +1 -0
  37. package/dist/adminapi/models/mode-component-instance-template.d.ts +46 -0
  38. package/dist/adminapi/models/mode-component-instance-template.d.ts.map +1 -0
  39. package/dist/adminapi/models/mode-component-instance-template.js +16 -0
  40. package/dist/adminapi/models/mode-component-instance-template.js.map +1 -0
  41. package/dist/adminapi/models/mode-component.d.ts +7 -0
  42. package/dist/adminapi/models/mode-component.d.ts.map +1 -1
  43. package/dist/adminapi/models/ops-hscale.d.ts +8 -1
  44. package/dist/adminapi/models/ops-hscale.d.ts.map +1 -1
  45. package/dist/adminapi/models/ops-vscale.d.ts +1 -1
  46. package/dist/adminapi/models/vip-pool-create.d.ts +6 -0
  47. package/dist/adminapi/models/vip-pool-create.d.ts.map +1 -1
  48. package/dist/adminapi/models/vip-pool-update.d.ts +25 -0
  49. package/dist/adminapi/models/vip-pool-update.d.ts.map +1 -0
  50. package/dist/adminapi/models/vip-pool-update.js +16 -0
  51. package/dist/adminapi/models/vip-pool-update.js.map +1 -0
  52. package/dist/adminapi/models/vip-pool.d.ts +12 -0
  53. package/dist/adminapi/models/vip-pool.d.ts.map +1 -1
  54. package/dist/openapi/models/cluster-create.d.ts +6 -0
  55. package/dist/openapi/models/cluster-create.d.ts.map +1 -1
  56. package/dist/openapi/models/component-item-create.d.ts +8 -1
  57. package/dist/openapi/models/component-item-create.d.ts.map +1 -1
  58. package/dist/openapi/models/index.d.ts +7 -0
  59. package/dist/openapi/models/index.d.ts.map +1 -1
  60. package/dist/openapi/models/index.js +7 -0
  61. package/dist/openapi/models/index.js.map +1 -1
  62. package/dist/openapi/models/instance-template-attribute.d.ts +23 -0
  63. package/dist/openapi/models/instance-template-attribute.d.ts.map +1 -0
  64. package/dist/openapi/models/instance-template-attribute.js +27 -0
  65. package/dist/openapi/models/instance-template-attribute.js.map +1 -0
  66. package/dist/openapi/models/instance-template-create-env-inner.d.ts +31 -0
  67. package/dist/openapi/models/instance-template-create-env-inner.d.ts.map +1 -0
  68. package/dist/openapi/models/instance-template-create-env-inner.js +16 -0
  69. package/dist/openapi/models/instance-template-create-env-inner.js.map +1 -0
  70. package/dist/openapi/models/instance-template-create.d.ts +54 -0
  71. package/dist/openapi/models/instance-template-create.d.ts.map +1 -0
  72. package/dist/openapi/models/instance-template-create.js +16 -0
  73. package/dist/openapi/models/instance-template-create.js.map +1 -0
  74. package/dist/openapi/models/instance-template-env.d.ts +50 -0
  75. package/dist/openapi/models/instance-template-env.d.ts.map +1 -0
  76. package/dist/openapi/models/instance-template-env.js +16 -0
  77. package/dist/openapi/models/instance-template-env.js.map +1 -0
  78. package/dist/openapi/models/instance-template-op.d.ts +22 -0
  79. package/dist/openapi/models/instance-template-op.d.ts.map +1 -0
  80. package/dist/openapi/models/instance-template-op.js +26 -0
  81. package/dist/openapi/models/instance-template-op.js.map +1 -0
  82. package/dist/openapi/models/instance-template-replicas.d.ts +31 -0
  83. package/dist/openapi/models/instance-template-replicas.d.ts.map +1 -0
  84. package/dist/openapi/models/instance-template-replicas.js +16 -0
  85. package/dist/openapi/models/instance-template-replicas.js.map +1 -0
  86. package/dist/openapi/models/mode-component-instance-template.d.ts +46 -0
  87. package/dist/openapi/models/mode-component-instance-template.d.ts.map +1 -0
  88. package/dist/openapi/models/mode-component-instance-template.js +16 -0
  89. package/dist/openapi/models/mode-component-instance-template.js.map +1 -0
  90. package/dist/openapi/models/mode-component.d.ts +7 -0
  91. package/dist/openapi/models/mode-component.d.ts.map +1 -1
  92. package/dist/openapi/models/ops-hscale.d.ts +8 -1
  93. package/dist/openapi/models/ops-hscale.d.ts.map +1 -1
  94. package/dist/openapi/models/ops-vscale.d.ts +1 -1
  95. package/dist/openapi/models/vip-pool.d.ts +12 -0
  96. package/dist/openapi/models/vip-pool.d.ts.map +1 -1
  97. package/package.json +1 -1
  98. package/src/adminapi/.openapi-generator/FILES +8 -0
  99. package/src/adminapi/apis/vip-pool-api.ts +128 -0
  100. package/src/adminapi/models/cluster-create.ts +6 -0
  101. package/src/adminapi/models/component-item-create.ts +10 -1
  102. package/src/adminapi/models/index.ts +8 -0
  103. package/src/adminapi/models/instance-template-attribute.ts +32 -0
  104. package/src/adminapi/models/instance-template-create-env-inner.ts +36 -0
  105. package/src/adminapi/models/instance-template-create.ts +57 -0
  106. package/src/adminapi/models/instance-template-env.ts +57 -0
  107. package/src/adminapi/models/instance-template-op.ts +31 -0
  108. package/src/adminapi/models/instance-template-replicas.ts +36 -0
  109. package/src/adminapi/models/mode-component-instance-template.ts +57 -0
  110. package/src/adminapi/models/mode-component.ts +9 -0
  111. package/src/adminapi/models/ops-hscale.ts +10 -1
  112. package/src/adminapi/models/ops-vscale.ts +1 -1
  113. package/src/adminapi/models/vip-pool-create.ts +6 -0
  114. package/src/adminapi/models/vip-pool-update.ts +30 -0
  115. package/src/adminapi/models/vip-pool.ts +12 -0
  116. package/src/adminapi.yaml +228 -3
  117. package/src/openapi/.openapi-generator/FILES +7 -0
  118. package/src/openapi/models/cluster-create.ts +6 -0
  119. package/src/openapi/models/component-item-create.ts +10 -1
  120. package/src/openapi/models/index.ts +7 -0
  121. package/src/openapi/models/instance-template-attribute.ts +32 -0
  122. package/src/openapi/models/instance-template-create-env-inner.ts +36 -0
  123. package/src/openapi/models/instance-template-create.ts +57 -0
  124. package/src/openapi/models/instance-template-env.ts +57 -0
  125. package/src/openapi/models/instance-template-op.ts +31 -0
  126. package/src/openapi/models/instance-template-replicas.ts +36 -0
  127. package/src/openapi/models/mode-component-instance-template.ts +57 -0
  128. package/src/openapi/models/mode-component.ts +9 -0
  129. package/src/openapi/models/ops-hscale.ts +10 -1
  130. package/src/openapi/models/ops-vscale.ts +1 -1
  131. package/src/openapi/models/vip-pool.ts +12 -0
  132. package/src/openapi.yaml +175 -3
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * KubeBlocks Cloud API
6
+ * 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.
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ * Contact: support@apecloud.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ //# sourceMappingURL=instance-template-replicas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instance-template-replicas.js","sourceRoot":"","sources":["../../../src/openapi/models/instance-template-replicas.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"}
@@ -0,0 +1,46 @@
1
+ /**
2
+ * KubeBlocks Cloud API
3
+ * 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.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: support@apecloud.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { InstanceTemplateAttribute } from './instance-template-attribute';
13
+ import type { InstanceTemplateEnv } from './instance-template-env';
14
+ import type { InstanceTemplateOp } from './instance-template-op';
15
+ /**
16
+ * 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.
17
+ * @export
18
+ * @interface ModeComponentInstanceTemplate
19
+ */
20
+ export interface ModeComponentInstanceTemplate {
21
+ /**
22
+ * Instance template names the frontend should render. Create and hscale check names against the chart or live Cluster, not this list.
23
+ * @type {Set<string>}
24
+ * @memberof ModeComponentInstanceTemplate
25
+ */
26
+ 'names': Set<string>;
27
+ /**
28
+ * 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.
29
+ * @type {Array<InstanceTemplateOp>}
30
+ * @memberof ModeComponentInstanceTemplate
31
+ */
32
+ 'ops': Array<InstanceTemplateOp>;
33
+ /**
34
+ * Heterogeneous attributes the frontend should render on each instance template at create. Omitted or empty means only name and replicas. Create overlays the request onto the chart and does not re-check this list.
35
+ * @type {Set<InstanceTemplateAttribute>}
36
+ * @memberof ModeComponentInstanceTemplate
37
+ */
38
+ 'attributes'?: Set<InstanceTemplateAttribute>;
39
+ /**
40
+ * Env vars the frontend may render when attributes includes env. Create does not re-check this list.
41
+ * @type {Array<InstanceTemplateEnv>}
42
+ * @memberof ModeComponentInstanceTemplate
43
+ */
44
+ 'env'?: Array<InstanceTemplateEnv>;
45
+ }
46
+ //# sourceMappingURL=mode-component-instance-template.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mode-component-instance-template.d.ts","sourceRoot":"","sources":["../../../src/openapi/models/mode-component-instance-template.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAG/E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAGnE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAEjE;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC1C;;;;OAIG;IACH,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACrB;;;;OAIG;IACH,KAAK,EAAE,KAAK,CAAC,kBAAkB,CAAC,CAAC;IACjC;;;;OAIG;IACH,YAAY,CAAC,EAAE,GAAG,CAAC,yBAAyB,CAAC,CAAC;IAC9C;;;;OAIG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAC;CACtC"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * KubeBlocks Cloud API
6
+ * 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.
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ * Contact: support@apecloud.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ //# sourceMappingURL=mode-component-instance-template.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mode-component-instance-template.js","sourceRoot":"","sources":["../../../src/openapi/models/mode-component-instance-template.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"}
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { ModeComponentInstanceTemplate } from './mode-component-instance-template';
12
13
  import type { ModeReadonlyEndpoint } from './mode-readonly-endpoint';
13
14
  /**
14
15
  *
@@ -34,6 +35,12 @@ export interface ModeComponent {
34
35
  * @memberof ModeComponent
35
36
  */
36
37
  'hideOnCreate': boolean;
38
+ /**
39
+ *
40
+ * @type {ModeComponentInstanceTemplate}
41
+ * @memberof ModeComponent
42
+ */
43
+ 'instanceTemplate'?: ModeComponentInstanceTemplate;
37
44
  /**
38
45
  * the name of the serviceRef defined in mode\'s serviceRefs. If set, it means a serviceRef can be used to replace this component.
39
46
  * @type {string}
@@ -1 +1 @@
1
- {"version":3,"file":"mode-component.d.ts","sourceRoot":"","sources":["../../../src/openapi/models/mode-component.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAErE;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,cAAc,EAAE,OAAO,CAAC;IACxB;;;;OAIG;IACH,cAAc,EAAE,OAAO,CAAC;IACxB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,oBAAoB,CAAC;CAC7C"}
1
+ {"version":3,"file":"mode-component.d.ts","sourceRoot":"","sources":["../../../src/openapi/models/mode-component.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAGxF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAErE;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,cAAc,EAAE,OAAO,CAAC;IACxB;;;;OAIG;IACH,cAAc,EAAE,OAAO,CAAC;IACxB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,6BAA6B,CAAC;IACnD;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,oBAAoB,CAAC;CAC7C"}
@@ -9,9 +9,10 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { InstanceTemplateReplicas } from './instance-template-replicas';
12
13
  import type { TaskSchedule } from './task-schedule';
13
14
  /**
14
- * OpsHScale is the payload to horizontally scale a KubeBlocks cluster. It requires specifying either the number of replicas or the number of shards.
15
+ * OpsHScale is the payload to horizontally scale a KubeBlocks cluster. Specify replicas or shards. instanceTemplates is an optional overlay and requires top-level replicas.
15
16
  * @export
16
17
  * @interface OpsHScale
17
18
  */
@@ -34,6 +35,12 @@ export interface OpsHScale {
34
35
  * @memberof OpsHScale
35
36
  */
36
37
  'replicas'?: number | null;
38
+ /**
39
+ * 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.
40
+ * @type {Array<InstanceTemplateReplicas>}
41
+ * @memberof OpsHScale
42
+ */
43
+ 'instanceTemplates'?: Array<InstanceTemplateReplicas>;
37
44
  /**
38
45
  * List of online instance names to be switched to offline during scaling in.
39
46
  * @type {Array<string>}
@@ -1 +1 @@
1
- {"version":3,"file":"ops-hscale.d.ts","sourceRoot":"","sources":["../../../src/openapi/models/ops-hscale.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B;;;;OAIG;IACH,0BAA0B,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAClD;;;;OAIG;IACH,0BAA0B,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAClD;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;;;OAIG;IACH,6BAA6B,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9C;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,UAAU,CAAC,EAAE,YAAY,CAAC;CAC7B"}
1
+ {"version":3,"file":"ops-hscale.d.ts","sourceRoot":"","sources":["../../../src/openapi/models/ops-hscale.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAG7E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,KAAK,CAAC,wBAAwB,CAAC,CAAC;IACtD;;;;OAIG;IACH,0BAA0B,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAClD;;;;OAIG;IACH,0BAA0B,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAClD;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;;;OAIG;IACH,6BAA6B,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9C;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,UAAU,CAAC,EAAE,YAAY,CAAC;CAC7B"}
@@ -35,7 +35,7 @@ export interface OpsVScale {
35
35
  */
36
36
  'memory'?: string;
37
37
  /**
38
- * class code of the cluster
38
+ * Class code for component-level vertical scaling.
39
39
  * @type {string}
40
40
  * @memberof OpsVScale
41
41
  */
@@ -27,6 +27,18 @@ export interface VipPool {
27
27
  * @memberof VipPool
28
28
  */
29
29
  'id'?: string;
30
+ /**
31
+ * Name of VIP Pool. It is the MetalLB IPAddressPool resource name, generated as kb-<id>.
32
+ * @type {string}
33
+ * @memberof VipPool
34
+ */
35
+ 'name'?: string;
36
+ /**
37
+ * User facing name of the VIP Pool, used to select the pool when creating a cluster. It falls back to the IPAddressPool resource name.
38
+ * @type {string}
39
+ * @memberof VipPool
40
+ */
41
+ 'poolName'?: string;
30
42
  /**
31
43
  * Total number of IP addresses
32
44
  * @type {number}
@@ -1 +1 @@
1
- {"version":3,"file":"vip-pool.d.ts","sourceRoot":"","sources":["../../../src/openapi/models/vip-pool.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACpB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1B;;;;OAIG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAClC"}
1
+ {"version":3,"file":"vip-pool.d.ts","sourceRoot":"","sources":["../../../src/openapi/models/vip-pool.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACpB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1B;;;;OAIG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAClC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kb-cloud-client-typescript",
3
- "version": "2.4.0-alpha.66",
3
+ "version": "2.4.0-alpha.67",
4
4
  "description": "Auto-generated TypeScript SDK for KubeBlocks Cloud API",
5
5
  "private": false,
6
6
  "license": "Apache-2.0",
@@ -693,6 +693,12 @@ models/instance-resource-stats-type.ts
693
693
  models/instance-resource-stats.ts
694
694
  models/instance-status.ts
695
695
  models/instance-storage-item.ts
696
+ models/instance-template-attribute.ts
697
+ models/instance-template-create-env-inner.ts
698
+ models/instance-template-create.ts
699
+ models/instance-template-env.ts
700
+ models/instance-template-op.ts
701
+ models/instance-template-replicas.ts
696
702
  models/instance.ts
697
703
  models/integer-option.ts
698
704
  models/international-desc.ts
@@ -765,6 +771,7 @@ models/milvus-role-list.ts
765
771
  models/milvus-role-request.ts
766
772
  models/milvus-role.ts
767
773
  models/mode-compatible-kubeblocks-version.ts
774
+ models/mode-component-instance-template.ts
768
775
  models/mode-component.ts
769
776
  models/mode-object-storage-additional-helm-value-path.ts
770
777
  models/mode-object-storage-service-ref.ts
@@ -1176,6 +1183,7 @@ models/user-update.ts
1176
1183
  models/user.ts
1177
1184
  models/vip-pool-create.ts
1178
1185
  models/vip-pool-list.ts
1186
+ models/vip-pool-update.ts
1179
1187
  models/vip-pool.ts
1180
1188
  models/volume-restore-policy.ts
1181
1189
  models/vuln-item.ts
@@ -29,6 +29,8 @@ import type { VipPool } from '../models';
29
29
  import type { VipPoolCreate } from '../models';
30
30
  // @ts-ignore
31
31
  import type { VipPoolList } from '../models';
32
+ // @ts-ignore
33
+ import type { VipPoolUpdate } from '../models';
32
34
  /**
33
35
  * VipPoolApi - axios parameter creator
34
36
  * @export
@@ -163,6 +165,57 @@ export const VipPoolApiAxiosParamCreator = function (configuration?: Configurati
163
165
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
164
166
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
165
167
 
168
+ return {
169
+ url: toPathString(localVarUrlObj),
170
+ options: localVarRequestOptions,
171
+ };
172
+ },
173
+ /**
174
+ *
175
+ * @summary Update environment VIP Pool
176
+ * @param {string} environmentName name of the environment
177
+ * @param {string} poolID id of the VIP Pool
178
+ * @param {VipPoolUpdate} body
179
+ * @param {*} [options] Override http request option.
180
+ * @throws {RequiredError}
181
+ */
182
+ updateVIPPool: async (environmentName: string, poolID: string, body: VipPoolUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
183
+ // verify required parameter 'environmentName' is not null or undefined
184
+ assertParamExists('updateVIPPool', 'environmentName', environmentName)
185
+ // verify required parameter 'poolID' is not null or undefined
186
+ assertParamExists('updateVIPPool', 'poolID', poolID)
187
+ // verify required parameter 'body' is not null or undefined
188
+ assertParamExists('updateVIPPool', 'body', body)
189
+ const localVarPath = `/admin/v1/environments/{environmentName}/loadbalancer/vipPool/{poolID}`
190
+ .replace(`{${"environmentName"}}`, encodeURIComponent(String(environmentName)))
191
+ .replace(`{${"poolID"}}`, encodeURIComponent(String(poolID)));
192
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
193
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
194
+ let baseOptions;
195
+ if (configuration) {
196
+ baseOptions = configuration.baseOptions;
197
+ }
198
+
199
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
200
+ const localVarHeaderParameter = {} as any;
201
+ const localVarQueryParameter = {} as any;
202
+
203
+ // authentication BearerToken required
204
+ // http bearer authentication required
205
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
206
+
207
+ // authentication DigestAuth required
208
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
209
+
210
+
211
+
212
+ localVarHeaderParameter['Content-Type'] = 'application/json';
213
+
214
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
215
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
216
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
217
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
218
+
166
219
  return {
167
220
  url: toPathString(localVarUrlObj),
168
221
  options: localVarRequestOptions,
@@ -219,6 +272,21 @@ export const VipPoolApiFp = function(configuration?: Configuration) {
219
272
  const localVarOperationServerBasePath = operationServerMap['VipPoolApi.listVIPPool']?.[localVarOperationServerIndex]?.url;
220
273
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
221
274
  },
275
+ /**
276
+ *
277
+ * @summary Update environment VIP Pool
278
+ * @param {string} environmentName name of the environment
279
+ * @param {string} poolID id of the VIP Pool
280
+ * @param {VipPoolUpdate} body
281
+ * @param {*} [options] Override http request option.
282
+ * @throws {RequiredError}
283
+ */
284
+ async updateVIPPool(environmentName: string, poolID: string, body: VipPoolUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VipPool>> {
285
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateVIPPool(environmentName, poolID, body, options);
286
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
287
+ const localVarOperationServerBasePath = operationServerMap['VipPoolApi.updateVIPPool']?.[localVarOperationServerIndex]?.url;
288
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
289
+ },
222
290
  }
223
291
  };
224
292
 
@@ -259,6 +327,16 @@ export const VipPoolApiFactory = function (configuration?: Configuration, basePa
259
327
  listVIPPool(requestParameters: VipPoolApiListVIPPoolRequest, options?: RawAxiosRequestConfig): AxiosPromise<VipPoolList> {
260
328
  return localVarFp.listVIPPool(requestParameters.environmentName, options).then((request) => request(axios, basePath));
261
329
  },
330
+ /**
331
+ *
332
+ * @summary Update environment VIP Pool
333
+ * @param {VipPoolApiUpdateVIPPoolRequest} requestParameters Request parameters.
334
+ * @param {*} [options] Override http request option.
335
+ * @throws {RequiredError}
336
+ */
337
+ updateVIPPool(requestParameters: VipPoolApiUpdateVIPPoolRequest, options?: RawAxiosRequestConfig): AxiosPromise<VipPool> {
338
+ return localVarFp.updateVIPPool(requestParameters.environmentName, requestParameters.poolID, requestParameters.body, options).then((request) => request(axios, basePath));
339
+ },
262
340
  };
263
341
  };
264
342
 
@@ -298,6 +376,16 @@ export interface VipPoolApiInterface {
298
376
  */
299
377
  listVIPPool(requestParameters: VipPoolApiListVIPPoolRequest, options?: RawAxiosRequestConfig): AxiosPromise<VipPoolList>;
300
378
 
379
+ /**
380
+ *
381
+ * @summary Update environment VIP Pool
382
+ * @param {VipPoolApiUpdateVIPPoolRequest} requestParameters Request parameters.
383
+ * @param {*} [options] Override http request option.
384
+ * @throws {RequiredError}
385
+ * @memberof VipPoolApiInterface
386
+ */
387
+ updateVIPPool(requestParameters: VipPoolApiUpdateVIPPoolRequest, options?: RawAxiosRequestConfig): AxiosPromise<VipPool>;
388
+
301
389
  }
302
390
 
303
391
  /**
@@ -356,6 +444,34 @@ export interface VipPoolApiListVIPPoolRequest {
356
444
  readonly environmentName: string
357
445
  }
358
446
 
447
+ /**
448
+ * Request parameters for updateVIPPool operation in VipPoolApi.
449
+ * @export
450
+ * @interface VipPoolApiUpdateVIPPoolRequest
451
+ */
452
+ export interface VipPoolApiUpdateVIPPoolRequest {
453
+ /**
454
+ * name of the environment
455
+ * @type {string}
456
+ * @memberof VipPoolApiUpdateVIPPool
457
+ */
458
+ readonly environmentName: string
459
+
460
+ /**
461
+ * id of the VIP Pool
462
+ * @type {string}
463
+ * @memberof VipPoolApiUpdateVIPPool
464
+ */
465
+ readonly poolID: string
466
+
467
+ /**
468
+ *
469
+ * @type {VipPoolUpdate}
470
+ * @memberof VipPoolApiUpdateVIPPool
471
+ */
472
+ readonly body: VipPoolUpdate
473
+ }
474
+
359
475
  /**
360
476
  * VipPoolApi - object-oriented interface
361
477
  * @export
@@ -398,5 +514,17 @@ export class VipPoolApi extends BaseAPI implements VipPoolApiInterface {
398
514
  public listVIPPool(requestParameters: VipPoolApiListVIPPoolRequest, options?: RawAxiosRequestConfig) {
399
515
  return VipPoolApiFp(this.configuration).listVIPPool(requestParameters.environmentName, options).then((request) => request(this.axios, this.basePath));
400
516
  }
517
+
518
+ /**
519
+ *
520
+ * @summary Update environment VIP Pool
521
+ * @param {VipPoolApiUpdateVIPPoolRequest} requestParameters Request parameters.
522
+ * @param {*} [options] Override http request option.
523
+ * @throws {RequiredError}
524
+ * @memberof VipPoolApi
525
+ */
526
+ public updateVIPPool(requestParameters: VipPoolApiUpdateVIPPoolRequest, options?: RawAxiosRequestConfig) {
527
+ return VipPoolApiFp(this.configuration).updateVIPPool(requestParameters.environmentName, requestParameters.poolID, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
528
+ }
401
529
  }
402
530
 
@@ -191,6 +191,12 @@ export interface ClusterCreate {
191
191
  * @memberof ClusterCreate
192
192
  */
193
193
  'networkMode'?: NetworkMode;
194
+ /**
195
+ * Name of the VIP Pool (VIP Pool poolName) used as the MetalLB address pool for LoadBalancer services. Only effective when networkMode is LoadBalancer.
196
+ * @type {string}
197
+ * @memberof ClusterCreate
198
+ */
199
+ 'vipPoolName'?: string;
194
200
  /**
195
201
  *
196
202
  * @type {Array<ServiceRef>}
@@ -19,6 +19,9 @@ import type { ComponentNetwork } from './component-network';
19
19
  // May contain unused imports in some cases
20
20
  // @ts-ignore
21
21
  import type { ComponentVolumeItem } from './component-volume-item';
22
+ // May contain unused imports in some cases
23
+ // @ts-ignore
24
+ import type { InstanceTemplateCreate } from './instance-template-create';
22
25
 
23
26
  /**
24
27
  * ComponentItem is the information of a component
@@ -39,11 +42,17 @@ export interface ComponentItemCreate {
39
42
  */
40
43
  'compNum'?: number;
41
44
  /**
42
- * Omit to use the cluster chart default. Set zero to disable the component when its resource constraints allow zero replicas.
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.
43
46
  * @type {number}
44
47
  * @memberof ComponentItemCreate
45
48
  */
46
49
  'replicas'?: number | null;
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.
52
+ * @type {Array<InstanceTemplateCreate>}
53
+ * @memberof ComponentItemCreate
54
+ */
55
+ 'instanceTemplates'?: Array<InstanceTemplateCreate>;
47
56
  /**
48
57
  * Whether to skip resource constraint validation when creating cluster
49
58
  * @type {boolean}
@@ -586,6 +586,12 @@ export * from './instance-resource-stats-list';
586
586
  export * from './instance-resource-stats-type';
587
587
  export * from './instance-status';
588
588
  export * from './instance-storage-item';
589
+ export * from './instance-template-attribute';
590
+ export * from './instance-template-create';
591
+ export * from './instance-template-create-env-inner';
592
+ export * from './instance-template-env';
593
+ export * from './instance-template-op';
594
+ export * from './instance-template-replicas';
589
595
  export * from './integer-option';
590
596
  export * from './international-desc';
591
597
  export * from './io-quantity';
@@ -658,6 +664,7 @@ export * from './milvus-role-list';
658
664
  export * from './milvus-role-request';
659
665
  export * from './mode-compatible-kubeblocks-version';
660
666
  export * from './mode-component';
667
+ export * from './mode-component-instance-template';
661
668
  export * from './mode-object-storage';
662
669
  export * from './mode-object-storage-additional-helm-value-path';
663
670
  export * from './mode-object-storage-service-ref';
@@ -1069,6 +1076,7 @@ export * from './user-update';
1069
1076
  export * from './vip-pool';
1070
1077
  export * from './vip-pool-create';
1071
1078
  export * from './vip-pool-list';
1079
+ export * from './vip-pool-update';
1072
1080
  export * from './volume-restore-policy';
1073
1081
  export * from './vuln-item';
1074
1082
  export * from './vuln-list';
@@ -0,0 +1,32 @@
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
+ * Heterogeneous attribute the frontend may render on an instance template at create.
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+
23
+ export const InstanceTemplateAttribute = {
24
+ env: 'env',
25
+ annotations: 'annotations',
26
+ labels: 'labels'
27
+ } as const;
28
+
29
+ export type InstanceTemplateAttribute = typeof InstanceTemplateAttribute[keyof typeof InstanceTemplateAttribute];
30
+
31
+
32
+
@@ -0,0 +1,36 @@
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
+ *
19
+ * @export
20
+ * @interface InstanceTemplateCreateEnvInner
21
+ */
22
+ export interface InstanceTemplateCreateEnvInner {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof InstanceTemplateCreateEnvInner
27
+ */
28
+ 'name': string;
29
+ /**
30
+ * Plain string value only. valueFrom is not supported.
31
+ * @type {string}
32
+ * @memberof InstanceTemplateCreateEnvInner
33
+ */
34
+ 'value': string;
35
+ }
36
+
@@ -0,0 +1,57 @@
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 { InstanceTemplateCreateEnvInner } from './instance-template-create-env-inner';
19
+
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.
22
+ * @export
23
+ * @interface InstanceTemplateCreate
24
+ */
25
+ export interface InstanceTemplateCreate {
26
+ /**
27
+ * Instance template name; must match a chart-rendered instance.
28
+ * @type {string}
29
+ * @memberof InstanceTemplateCreate
30
+ */
31
+ 'name': string;
32
+ /**
33
+ * Replica count for this instance template.
34
+ * @type {number}
35
+ * @memberof InstanceTemplateCreate
36
+ */
37
+ 'replicas': number;
38
+ /**
39
+ * Simple env vars (name and value only) merged into this template. valueFrom is not supported; overlaying a name clears any chart valueFrom.
40
+ * @type {Array<InstanceTemplateCreateEnvInner>}
41
+ * @memberof InstanceTemplateCreate
42
+ */
43
+ 'env'?: Array<InstanceTemplateCreateEnvInner>;
44
+ /**
45
+ * Annotation map (string key to string value). Merged into this template; same-name keys overwritten. Chart keys are not deleted.
46
+ * @type {{ [key: string]: string; }}
47
+ * @memberof InstanceTemplateCreate
48
+ */
49
+ 'annotations'?: { [key: string]: string; };
50
+ /**
51
+ * Label map (string key to string value). Merged into this template; same-name keys overwritten. Chart keys are not deleted.
52
+ * @type {{ [key: string]: string; }}
53
+ * @memberof InstanceTemplateCreate
54
+ */
55
+ 'labels'?: { [key: string]: string; };
56
+ }
57
+