kb-cloud-client-typescript 2.4.0-alpha.65 → 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 (146) hide show
  1. package/dist/adminapi/apis/environment-api.d.ts +95 -0
  2. package/dist/adminapi/apis/environment-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/environment-api.js +93 -0
  4. package/dist/adminapi/apis/environment-api.js.map +1 -1
  5. package/dist/adminapi/apis/parameter-template-api.d.ts +18 -10
  6. package/dist/adminapi/apis/parameter-template-api.d.ts.map +1 -1
  7. package/dist/adminapi/apis/parameter-template-api.js +16 -11
  8. package/dist/adminapi/apis/parameter-template-api.js.map +1 -1
  9. package/dist/adminapi/apis/vip-pool-api.d.ts +72 -0
  10. package/dist/adminapi/apis/vip-pool-api.d.ts.map +1 -1
  11. package/dist/adminapi/apis/vip-pool-api.js +80 -0
  12. package/dist/adminapi/apis/vip-pool-api.js.map +1 -1
  13. package/dist/adminapi/models/cluster-create.d.ts +6 -0
  14. package/dist/adminapi/models/cluster-create.d.ts.map +1 -1
  15. package/dist/adminapi/models/component-item-create.d.ts +8 -1
  16. package/dist/adminapi/models/component-item-create.d.ts.map +1 -1
  17. package/dist/adminapi/models/engine-option-history.d.ts +5 -4
  18. package/dist/adminapi/models/engine-option-history.d.ts.map +1 -1
  19. package/dist/adminapi/models/index.d.ts +8 -0
  20. package/dist/adminapi/models/index.d.ts.map +1 -1
  21. package/dist/adminapi/models/index.js +8 -0
  22. package/dist/adminapi/models/index.js.map +1 -1
  23. package/dist/adminapi/models/instance-template-attribute.d.ts +23 -0
  24. package/dist/adminapi/models/instance-template-attribute.d.ts.map +1 -0
  25. package/dist/adminapi/models/instance-template-attribute.js +27 -0
  26. package/dist/adminapi/models/instance-template-attribute.js.map +1 -0
  27. package/dist/adminapi/models/instance-template-create-env-inner.d.ts +31 -0
  28. package/dist/adminapi/models/instance-template-create-env-inner.d.ts.map +1 -0
  29. package/dist/adminapi/models/instance-template-create-env-inner.js +16 -0
  30. package/dist/adminapi/models/instance-template-create-env-inner.js.map +1 -0
  31. package/dist/adminapi/models/instance-template-create.d.ts +54 -0
  32. package/dist/adminapi/models/instance-template-create.d.ts.map +1 -0
  33. package/dist/adminapi/models/instance-template-create.js +16 -0
  34. package/dist/adminapi/models/instance-template-create.js.map +1 -0
  35. package/dist/adminapi/models/instance-template-env.d.ts +50 -0
  36. package/dist/adminapi/models/instance-template-env.d.ts.map +1 -0
  37. package/dist/adminapi/models/instance-template-env.js +16 -0
  38. package/dist/adminapi/models/instance-template-env.js.map +1 -0
  39. package/dist/adminapi/models/instance-template-op.d.ts +22 -0
  40. package/dist/adminapi/models/instance-template-op.d.ts.map +1 -0
  41. package/dist/adminapi/models/instance-template-op.js +26 -0
  42. package/dist/adminapi/models/instance-template-op.js.map +1 -0
  43. package/dist/adminapi/models/instance-template-replicas.d.ts +31 -0
  44. package/dist/adminapi/models/instance-template-replicas.d.ts.map +1 -0
  45. package/dist/adminapi/models/instance-template-replicas.js +16 -0
  46. package/dist/adminapi/models/instance-template-replicas.js.map +1 -0
  47. package/dist/adminapi/models/mode-component-instance-template.d.ts +46 -0
  48. package/dist/adminapi/models/mode-component-instance-template.d.ts.map +1 -0
  49. package/dist/adminapi/models/mode-component-instance-template.js +16 -0
  50. package/dist/adminapi/models/mode-component-instance-template.js.map +1 -0
  51. package/dist/adminapi/models/mode-component.d.ts +7 -0
  52. package/dist/adminapi/models/mode-component.d.ts.map +1 -1
  53. package/dist/adminapi/models/ops-hscale.d.ts +8 -1
  54. package/dist/adminapi/models/ops-hscale.d.ts.map +1 -1
  55. package/dist/adminapi/models/ops-vscale.d.ts +1 -1
  56. package/dist/adminapi/models/vip-pool-create.d.ts +6 -0
  57. package/dist/adminapi/models/vip-pool-create.d.ts.map +1 -1
  58. package/dist/adminapi/models/vip-pool-update.d.ts +25 -0
  59. package/dist/adminapi/models/vip-pool-update.d.ts.map +1 -0
  60. package/dist/adminapi/models/vip-pool-update.js +16 -0
  61. package/dist/adminapi/models/vip-pool-update.js.map +1 -0
  62. package/dist/adminapi/models/vip-pool.d.ts +12 -0
  63. package/dist/adminapi/models/vip-pool.d.ts.map +1 -1
  64. package/dist/openapi/models/cluster-create.d.ts +6 -0
  65. package/dist/openapi/models/cluster-create.d.ts.map +1 -1
  66. package/dist/openapi/models/component-item-create.d.ts +8 -1
  67. package/dist/openapi/models/component-item-create.d.ts.map +1 -1
  68. package/dist/openapi/models/index.d.ts +7 -0
  69. package/dist/openapi/models/index.d.ts.map +1 -1
  70. package/dist/openapi/models/index.js +7 -0
  71. package/dist/openapi/models/index.js.map +1 -1
  72. package/dist/openapi/models/instance-template-attribute.d.ts +23 -0
  73. package/dist/openapi/models/instance-template-attribute.d.ts.map +1 -0
  74. package/dist/openapi/models/instance-template-attribute.js +27 -0
  75. package/dist/openapi/models/instance-template-attribute.js.map +1 -0
  76. package/dist/openapi/models/instance-template-create-env-inner.d.ts +31 -0
  77. package/dist/openapi/models/instance-template-create-env-inner.d.ts.map +1 -0
  78. package/dist/openapi/models/instance-template-create-env-inner.js +16 -0
  79. package/dist/openapi/models/instance-template-create-env-inner.js.map +1 -0
  80. package/dist/openapi/models/instance-template-create.d.ts +54 -0
  81. package/dist/openapi/models/instance-template-create.d.ts.map +1 -0
  82. package/dist/openapi/models/instance-template-create.js +16 -0
  83. package/dist/openapi/models/instance-template-create.js.map +1 -0
  84. package/dist/openapi/models/instance-template-env.d.ts +50 -0
  85. package/dist/openapi/models/instance-template-env.d.ts.map +1 -0
  86. package/dist/openapi/models/instance-template-env.js +16 -0
  87. package/dist/openapi/models/instance-template-env.js.map +1 -0
  88. package/dist/openapi/models/instance-template-op.d.ts +22 -0
  89. package/dist/openapi/models/instance-template-op.d.ts.map +1 -0
  90. package/dist/openapi/models/instance-template-op.js +26 -0
  91. package/dist/openapi/models/instance-template-op.js.map +1 -0
  92. package/dist/openapi/models/instance-template-replicas.d.ts +31 -0
  93. package/dist/openapi/models/instance-template-replicas.d.ts.map +1 -0
  94. package/dist/openapi/models/instance-template-replicas.js +16 -0
  95. package/dist/openapi/models/instance-template-replicas.js.map +1 -0
  96. package/dist/openapi/models/mode-component-instance-template.d.ts +46 -0
  97. package/dist/openapi/models/mode-component-instance-template.d.ts.map +1 -0
  98. package/dist/openapi/models/mode-component-instance-template.js +16 -0
  99. package/dist/openapi/models/mode-component-instance-template.js.map +1 -0
  100. package/dist/openapi/models/mode-component.d.ts +7 -0
  101. package/dist/openapi/models/mode-component.d.ts.map +1 -1
  102. package/dist/openapi/models/ops-hscale.d.ts +8 -1
  103. package/dist/openapi/models/ops-hscale.d.ts.map +1 -1
  104. package/dist/openapi/models/ops-vscale.d.ts +1 -1
  105. package/dist/openapi/models/vip-pool.d.ts +12 -0
  106. package/dist/openapi/models/vip-pool.d.ts.map +1 -1
  107. package/package.json +1 -1
  108. package/src/adminapi/.openapi-generator/FILES +8 -0
  109. package/src/adminapi/apis/environment-api.ts +155 -0
  110. package/src/adminapi/apis/parameter-template-api.ts +26 -13
  111. package/src/adminapi/apis/vip-pool-api.ts +128 -0
  112. package/src/adminapi/models/cluster-create.ts +6 -0
  113. package/src/adminapi/models/component-item-create.ts +10 -1
  114. package/src/adminapi/models/engine-option-history.ts +3 -6
  115. package/src/adminapi/models/index.ts +8 -0
  116. package/src/adminapi/models/instance-template-attribute.ts +32 -0
  117. package/src/adminapi/models/instance-template-create-env-inner.ts +36 -0
  118. package/src/adminapi/models/instance-template-create.ts +57 -0
  119. package/src/adminapi/models/instance-template-env.ts +57 -0
  120. package/src/adminapi/models/instance-template-op.ts +31 -0
  121. package/src/adminapi/models/instance-template-replicas.ts +36 -0
  122. package/src/adminapi/models/mode-component-instance-template.ts +57 -0
  123. package/src/adminapi/models/mode-component.ts +9 -0
  124. package/src/adminapi/models/ops-hscale.ts +10 -1
  125. package/src/adminapi/models/ops-vscale.ts +1 -1
  126. package/src/adminapi/models/vip-pool-create.ts +6 -0
  127. package/src/adminapi/models/vip-pool-update.ts +30 -0
  128. package/src/adminapi/models/vip-pool.ts +12 -0
  129. package/src/adminapi.yaml +369 -69
  130. package/src/internalapi.yaml +2 -4
  131. package/src/openapi/.openapi-generator/FILES +7 -0
  132. package/src/openapi/models/cluster-create.ts +6 -0
  133. package/src/openapi/models/component-item-create.ts +10 -1
  134. package/src/openapi/models/index.ts +7 -0
  135. package/src/openapi/models/instance-template-attribute.ts +32 -0
  136. package/src/openapi/models/instance-template-create-env-inner.ts +36 -0
  137. package/src/openapi/models/instance-template-create.ts +57 -0
  138. package/src/openapi/models/instance-template-env.ts +57 -0
  139. package/src/openapi/models/instance-template-op.ts +31 -0
  140. package/src/openapi/models/instance-template-replicas.ts +36 -0
  141. package/src/openapi/models/mode-component-instance-template.ts +57 -0
  142. package/src/openapi/models/mode-component.ts +9 -0
  143. package/src/openapi/models/ops-hscale.ts +10 -1
  144. package/src/openapi/models/ops-vscale.ts +1 -1
  145. package/src/openapi/models/vip-pool.ts +12 -0
  146. package/src/openapi.yaml +240 -62
@@ -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-create-env-inner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instance-template-create-env-inner.js","sourceRoot":"","sources":["../../../src/openapi/models/instance-template-create-env-inner.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"}
@@ -0,0 +1,54 @@
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 { InstanceTemplateCreateEnvInner } from './instance-template-create-env-inner';
13
+ /**
14
+ * 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.
15
+ * @export
16
+ * @interface InstanceTemplateCreate
17
+ */
18
+ export interface InstanceTemplateCreate {
19
+ /**
20
+ * Instance template name; must match a chart-rendered instance.
21
+ * @type {string}
22
+ * @memberof InstanceTemplateCreate
23
+ */
24
+ 'name': string;
25
+ /**
26
+ * Replica count for this instance template.
27
+ * @type {number}
28
+ * @memberof InstanceTemplateCreate
29
+ */
30
+ 'replicas': number;
31
+ /**
32
+ * Simple env vars (name and value only) merged into this template. valueFrom is not supported; overlaying a name clears any chart valueFrom.
33
+ * @type {Array<InstanceTemplateCreateEnvInner>}
34
+ * @memberof InstanceTemplateCreate
35
+ */
36
+ 'env'?: Array<InstanceTemplateCreateEnvInner>;
37
+ /**
38
+ * Annotation map (string key to string value). Merged into this template; same-name keys overwritten. Chart keys are not deleted.
39
+ * @type {{ [key: string]: string; }}
40
+ * @memberof InstanceTemplateCreate
41
+ */
42
+ 'annotations'?: {
43
+ [key: string]: string;
44
+ };
45
+ /**
46
+ * Label map (string key to string value). Merged into this template; same-name keys overwritten. Chart keys are not deleted.
47
+ * @type {{ [key: string]: string; }}
48
+ * @memberof InstanceTemplateCreate
49
+ */
50
+ 'labels'?: {
51
+ [key: string]: string;
52
+ };
53
+ }
54
+ //# sourceMappingURL=instance-template-create.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instance-template-create.d.ts","sourceRoot":"","sources":["../../../src/openapi/models/instance-template-create.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAE3F;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACnC;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,8BAA8B,CAAC,CAAC;IAC9C;;;;OAIG;IACH,aAAa,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KAAE,CAAC;IAC3C;;;;OAIG;IACH,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KAAE,CAAC;CACzC"}
@@ -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-create.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instance-template-create.js","sourceRoot":"","sources":["../../../src/openapi/models/instance-template-create.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"}
@@ -0,0 +1,50 @@
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 { LocalizedDescription } from './localized-description';
13
+ /**
14
+ * One fillable env var on an instance template, for frontend rendering.
15
+ * @export
16
+ * @interface InstanceTemplateEnv
17
+ */
18
+ export interface InstanceTemplateEnv {
19
+ /**
20
+ * Env var name written to the instance template.
21
+ * @type {string}
22
+ * @memberof InstanceTemplateEnv
23
+ */
24
+ 'name': string;
25
+ /**
26
+ *
27
+ * @type {LocalizedDescription}
28
+ * @memberof InstanceTemplateEnv
29
+ */
30
+ 'label'?: LocalizedDescription;
31
+ /**
32
+ *
33
+ * @type {LocalizedDescription}
34
+ * @memberof InstanceTemplateEnv
35
+ */
36
+ 'description'?: LocalizedDescription;
37
+ /**
38
+ * If true, the frontend should treat this env as required. Create does not re-check.
39
+ * @type {boolean}
40
+ * @memberof InstanceTemplateEnv
41
+ */
42
+ 'required'?: boolean;
43
+ /**
44
+ * Default value shown by the frontend.
45
+ * @type {string}
46
+ * @memberof InstanceTemplateEnv
47
+ */
48
+ 'default'?: string;
49
+ }
50
+ //# sourceMappingURL=instance-template-env.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instance-template-env.d.ts","sourceRoot":"","sources":["../../../src/openapi/models/instance-template-env.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAEpE;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B;;;;OAIG;IACH,aAAa,CAAC,EAAE,oBAAoB,CAAC;IACrC;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB"}
@@ -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-env.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instance-template-env.js","sourceRoot":"","sources":["../../../src/openapi/models/instance-template-env.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"}
@@ -0,0 +1,22 @@
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
+ /**
13
+ * Operation that can be declared on instanceTemplate.ops.
14
+ * @export
15
+ * @enum {string}
16
+ */
17
+ export declare const InstanceTemplateOp: {
18
+ readonly hscale: "hscale";
19
+ readonly vscale: "vscale";
20
+ };
21
+ export type InstanceTemplateOp = typeof InstanceTemplateOp[keyof typeof InstanceTemplateOp];
22
+ //# sourceMappingURL=instance-template-op.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instance-template-op.d.ts","sourceRoot":"","sources":["../../../src/openapi/models/instance-template-op.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AAEH,eAAO,MAAM,kBAAkB;;;CAGrB,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC"}
@@ -0,0 +1,26 @@
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
+ exports.InstanceTemplateOp = void 0;
17
+ /**
18
+ * Operation that can be declared on instanceTemplate.ops.
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+ exports.InstanceTemplateOp = {
23
+ hscale: 'hscale',
24
+ vscale: 'vscale'
25
+ };
26
+ //# sourceMappingURL=instance-template-op.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instance-template-op.js","sourceRoot":"","sources":["../../../src/openapi/models/instance-template-op.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAIH;;;;GAIG;AAEU,QAAA,kBAAkB,GAAG;IAC9B,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;CACV,CAAC"}
@@ -0,0 +1,31 @@
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
+ /**
13
+ * HScale assignment for one instance template. name and replicas only.
14
+ * @export
15
+ * @interface InstanceTemplateReplicas
16
+ */
17
+ export interface InstanceTemplateReplicas {
18
+ /**
19
+ * Instance template name on the live Cluster spec.
20
+ * @type {string}
21
+ * @memberof InstanceTemplateReplicas
22
+ */
23
+ 'name': string;
24
+ /**
25
+ * Target replica count for this instance template.
26
+ * @type {number}
27
+ * @memberof InstanceTemplateReplicas
28
+ */
29
+ 'replicas': number;
30
+ }
31
+ //# sourceMappingURL=instance-template-replicas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instance-template-replicas.d.ts","sourceRoot":"","sources":["../../../src/openapi/models/instance-template-replicas.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACrC;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;CACtB"}
@@ -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.65",
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