kb-cloud-client-typescript 2.4.0-alpha.93 → 2.4.0-alpha.94
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.
- package/dist/adminapi/models/component-item-create.d.ts +12 -0
- package/dist/adminapi/models/component-item-create.d.ts.map +1 -1
- package/dist/adminapi/models/component-item.d.ts +19 -0
- package/dist/adminapi/models/component-item.d.ts.map +1 -1
- package/dist/adminapi/models/index.d.ts +1 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +1 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/instance-template-attribute.d.ts +0 -1
- package/dist/adminapi/models/instance-template-attribute.d.ts.map +1 -1
- package/dist/adminapi/models/instance-template-attribute.js +0 -1
- package/dist/adminapi/models/instance-template-attribute.js.map +1 -1
- package/dist/adminapi/models/instance-template-create.d.ts +9 -3
- package/dist/adminapi/models/instance-template-create.d.ts.map +1 -1
- package/dist/adminapi/models/instance.d.ts +6 -0
- package/dist/adminapi/models/instance.d.ts.map +1 -1
- package/dist/adminapi/models/mode-option.d.ts +7 -0
- package/dist/adminapi/models/mode-option.d.ts.map +1 -1
- package/dist/adminapi/models/placement-scope.d.ts +22 -0
- package/dist/adminapi/models/placement-scope.d.ts.map +1 -0
- package/dist/adminapi/models/placement-scope.js +26 -0
- package/dist/adminapi/models/placement-scope.js.map +1 -0
- package/dist/internalapi/models/component-item.d.ts +19 -0
- package/dist/internalapi/models/component-item.d.ts.map +1 -1
- package/dist/internalapi/models/index.d.ts +2 -0
- package/dist/internalapi/models/index.d.ts.map +1 -1
- package/dist/internalapi/models/index.js +2 -0
- package/dist/internalapi/models/index.js.map +1 -1
- package/dist/internalapi/models/instance-template-create-env-inner.d.ts +31 -0
- package/dist/internalapi/models/instance-template-create-env-inner.d.ts.map +1 -0
- package/dist/internalapi/models/instance-template-create-env-inner.js +16 -0
- package/dist/internalapi/models/instance-template-create-env-inner.js.map +1 -0
- package/dist/internalapi/models/instance-template-create.d.ts +72 -0
- package/dist/internalapi/models/instance-template-create.d.ts.map +1 -0
- package/dist/internalapi/models/instance-template-create.js +16 -0
- package/dist/internalapi/models/instance-template-create.js.map +1 -0
- package/dist/openapi/models/component-item-create.d.ts +12 -0
- package/dist/openapi/models/component-item-create.d.ts.map +1 -1
- package/dist/openapi/models/component-item.d.ts +19 -0
- package/dist/openapi/models/component-item.d.ts.map +1 -1
- package/dist/openapi/models/index.d.ts +1 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +1 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/dist/openapi/models/instance-template-attribute.d.ts +0 -1
- package/dist/openapi/models/instance-template-attribute.d.ts.map +1 -1
- package/dist/openapi/models/instance-template-attribute.js +0 -1
- package/dist/openapi/models/instance-template-attribute.js.map +1 -1
- package/dist/openapi/models/instance-template-create.d.ts +9 -3
- package/dist/openapi/models/instance-template-create.d.ts.map +1 -1
- package/dist/openapi/models/instance.d.ts +6 -0
- package/dist/openapi/models/instance.d.ts.map +1 -1
- package/dist/openapi/models/mode-option.d.ts +7 -0
- package/dist/openapi/models/mode-option.d.ts.map +1 -1
- package/dist/openapi/models/placement-scope.d.ts +22 -0
- package/dist/openapi/models/placement-scope.d.ts.map +1 -0
- package/dist/openapi/models/placement-scope.js +26 -0
- package/dist/openapi/models/placement-scope.js.map +1 -0
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +1 -0
- package/src/adminapi/models/component-item-create.ts +12 -0
- package/src/adminapi/models/component-item.ts +21 -0
- package/src/adminapi/models/index.ts +1 -0
- package/src/adminapi/models/instance-template-attribute.ts +0 -1
- package/src/adminapi/models/instance-template-create.ts +9 -3
- package/src/adminapi/models/instance.ts +6 -0
- package/src/adminapi/models/mode-option.ts +9 -0
- package/src/adminapi/models/placement-scope.ts +31 -0
- package/src/adminapi.yaml +35 -5
- package/src/internalapi/.openapi-generator/FILES +2 -0
- package/src/internalapi/models/component-item.ts +21 -0
- package/src/internalapi/models/index.ts +2 -0
- package/src/internalapi/models/instance-template-create-env-inner.ts +36 -0
- package/src/internalapi/models/instance-template-create.ts +75 -0
- package/src/internalapi.yaml +62 -0
- package/src/openapi/.openapi-generator/FILES +1 -0
- package/src/openapi/models/component-item-create.ts +12 -0
- package/src/openapi/models/component-item.ts +21 -0
- package/src/openapi/models/index.ts +1 -0
- package/src/openapi/models/instance-template-attribute.ts +0 -1
- package/src/openapi/models/instance-template-create.ts +9 -3
- package/src/openapi/models/instance.ts +6 -0
- package/src/openapi/models/mode-option.ts +9 -0
- package/src/openapi/models/placement-scope.ts +31 -0
- package/src/openapi.yaml +35 -5
|
@@ -40,6 +40,9 @@ import type { ModeOptionValuesMappings } from './mode-option-values-mappings';
|
|
|
40
40
|
// May contain unused imports in some cases
|
|
41
41
|
// @ts-ignore
|
|
42
42
|
import type { ModeServiceRef } from './mode-service-ref';
|
|
43
|
+
// May contain unused imports in some cases
|
|
44
|
+
// @ts-ignore
|
|
45
|
+
import type { PlacementScope } from './placement-scope';
|
|
43
46
|
|
|
44
47
|
/**
|
|
45
48
|
*
|
|
@@ -47,6 +50,12 @@ import type { ModeServiceRef } from './mode-service-ref';
|
|
|
47
50
|
* @interface ModeOption
|
|
48
51
|
*/
|
|
49
52
|
export interface ModeOption {
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {PlacementScope}
|
|
56
|
+
* @memberof ModeOption
|
|
57
|
+
*/
|
|
58
|
+
'placementScope'?: PlacementScope;
|
|
50
59
|
/**
|
|
51
60
|
*
|
|
52
61
|
* @type {string}
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
* UI placement input scope for this mode. Omitted defaults to cluster. cluster displays AZ and NodeGroup selection for the cluster. component hides cluster placement and displays selection for each component, or for each instance template when the component declares templates. This does not restrict API placement overrides.
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
export const PlacementScope = {
|
|
24
|
+
cluster: 'cluster',
|
|
25
|
+
component: 'component'
|
|
26
|
+
} as const;
|
|
27
|
+
|
|
28
|
+
export type PlacementScope = typeof PlacementScope[keyof typeof PlacementScope];
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
package/src/openapi.yaml
CHANGED
|
@@ -26221,12 +26221,14 @@ components:
|
|
|
26221
26221
|
instanceTemplateCreate:
|
|
26222
26222
|
type: object
|
|
26223
26223
|
additionalProperties: false
|
|
26224
|
-
description:
|
|
26225
|
-
Create assignment for one instance template. name and replicas are required. env, annotations, labels, availabilityZone, and storageClass are optional overlays onto the chart-rendered instance. The request must include every chart-rendered instance template exactly once. A template with an explicit zone uses single-zone scheduling: hostname anti-affinity follows the scheduling policy, while explicit rules and additional topology keys are preserved. Component scheduling remains unchanged; templates without a zone inherit it, including its zone anti-affinity constraints. Chart instance scheduling policies are cleared; an omitted or empty availabilityZone leaves the instance policy unset to inherit the component policy.
|
|
26224
|
+
description: Create assignment for one instance template. name and replicas are required. env, annotations, labels, availabilityZone, nodeGroup and storageClass are optional overlays. The request must include every chart-rendered instance template exactly once. Explicit placement requires availabilityZone and optionally accepts nodeGroup, without inheriting upper-level AZ or NodeGroup. Omitting both leaves SchedulingPolicy unset for KubeBlocks default inheritance. Hostname, user scheduling rules and additional topology keys are preserved.
|
|
26226
26225
|
required:
|
|
26227
26226
|
- name
|
|
26228
26227
|
- replicas
|
|
26229
26228
|
properties:
|
|
26229
|
+
nodeGroup:
|
|
26230
|
+
type: string
|
|
26231
|
+
description: Optional host group in this environment and the explicitly selected availabilityZone. Requires availabilityZone; no upper-level host group is inherited.
|
|
26230
26232
|
name:
|
|
26231
26233
|
type: string
|
|
26232
26234
|
minLength: 1
|
|
@@ -26237,7 +26239,7 @@ components:
|
|
|
26237
26239
|
description: Replica count for this instance template.
|
|
26238
26240
|
availabilityZone:
|
|
26239
26241
|
type: string
|
|
26240
|
-
description:
|
|
26242
|
+
description: Single AZ for explicit template placement (topology.kubernetes.io/zone). Must be enabled in the environment and is required when nodeGroup is specified. An omitted nodeGroup does not inherit the component or cluster host group. Omitting both leaves SchedulingPolicy unset for KubeBlocks inheritance.
|
|
26241
26243
|
storageClass:
|
|
26242
26244
|
type: string
|
|
26243
26245
|
description: StorageClass name for all persistent volumes in this template. Copied from component volumeClaimTemplates, preserving volume sizes and other settings while overriding storageClassName. Chart instance volume templates are cleared; omitted or empty leaves instance volumeClaimTemplates unset.
|
|
@@ -26265,7 +26267,7 @@ components:
|
|
|
26265
26267
|
type: object
|
|
26266
26268
|
additionalProperties:
|
|
26267
26269
|
type: string
|
|
26268
|
-
description: Label map (string key to string value). Merged into this template; same-name keys overwritten. Chart keys are not deleted.
|
|
26270
|
+
description: Label map (string key to string value). Merged into this template; same-name keys overwritten. Chart keys are not deleted. The apps.kubeblocks.io/instance-template label is managed by the system and must equal the template name if supplied.
|
|
26269
26271
|
ioQuantity:
|
|
26270
26272
|
description: IO Quantity describes IOPS and BPS of a volume
|
|
26271
26273
|
properties:
|
|
@@ -26333,6 +26335,12 @@ components:
|
|
|
26333
26335
|
required:
|
|
26334
26336
|
- component
|
|
26335
26337
|
properties:
|
|
26338
|
+
nodeGroup:
|
|
26339
|
+
type: string
|
|
26340
|
+
description: Optional host group in this environment and the explicitly selected availabilityZone. Requires availabilityZone; no upper-level host group is inherited.
|
|
26341
|
+
availabilityZone:
|
|
26342
|
+
type: string
|
|
26343
|
+
description: Single AZ for explicit component placement. Must be enabled in the environment and is required when nodeGroup is specified. An omitted nodeGroup does not inherit the cluster host group. Omitting both retains cluster scheduling.
|
|
26336
26344
|
component:
|
|
26337
26345
|
type: string
|
|
26338
26346
|
description: component type, refer to componentDef and support NamePrefix
|
|
@@ -26659,6 +26667,18 @@ components:
|
|
|
26659
26667
|
type: object
|
|
26660
26668
|
description: ComponentItem is the information of a component
|
|
26661
26669
|
properties:
|
|
26670
|
+
nodeGroup:
|
|
26671
|
+
type: string
|
|
26672
|
+
description: Optional host group in this environment. Explicit placement does not inherit an upper-level host group.
|
|
26673
|
+
availabilityZone:
|
|
26674
|
+
type: string
|
|
26675
|
+
description: Explicit component AZ selection, if configured.
|
|
26676
|
+
instanceTemplates:
|
|
26677
|
+
type: array
|
|
26678
|
+
x-omitempty: true
|
|
26679
|
+
description: Instance template assignments with effective replicas, placement and storage class, and user-provided env, labels and annotations.
|
|
26680
|
+
items:
|
|
26681
|
+
$ref: '#/components/schemas/instanceTemplateCreate'
|
|
26662
26682
|
name:
|
|
26663
26683
|
type: string
|
|
26664
26684
|
description: component name
|
|
@@ -27004,6 +27024,9 @@ components:
|
|
|
27004
27024
|
componentDef:
|
|
27005
27025
|
description: ComponentDefinition name
|
|
27006
27026
|
type: string
|
|
27027
|
+
instanceTemplate:
|
|
27028
|
+
description: Instance template name within the actual component. Omitted when no template identity is available.
|
|
27029
|
+
type: string
|
|
27007
27030
|
component:
|
|
27008
27031
|
description: component type, refer to componentDef and support NamePrefix
|
|
27009
27032
|
type: string
|
|
@@ -33603,6 +33626,12 @@ components:
|
|
|
33603
33626
|
type: boolean
|
|
33604
33627
|
description: whether the component supports custom secret
|
|
33605
33628
|
x-nullable: false
|
|
33629
|
+
placementScope:
|
|
33630
|
+
type: string
|
|
33631
|
+
description: UI placement input scope for this mode. Omitted defaults to cluster. cluster displays AZ and NodeGroup selection for the cluster. component hides cluster placement and displays selection for each component, or for each instance template when the component declares templates. This does not restrict API placement overrides.
|
|
33632
|
+
enum:
|
|
33633
|
+
- cluster
|
|
33634
|
+
- component
|
|
33606
33635
|
modeCompatibleKubeblocksVersion:
|
|
33607
33636
|
type: string
|
|
33608
33637
|
description: |
|
|
@@ -33624,7 +33653,6 @@ components:
|
|
|
33624
33653
|
- env
|
|
33625
33654
|
- annotations
|
|
33626
33655
|
- labels
|
|
33627
|
-
- availabilityZone
|
|
33628
33656
|
- storageClass
|
|
33629
33657
|
instanceTemplateEnv:
|
|
33630
33658
|
type: object
|
|
@@ -34000,6 +34028,8 @@ components:
|
|
|
34000
34028
|
- description
|
|
34001
34029
|
- components
|
|
34002
34030
|
properties:
|
|
34031
|
+
placementScope:
|
|
34032
|
+
$ref: '#/components/schemas/placementScope'
|
|
34003
34033
|
name:
|
|
34004
34034
|
type: string
|
|
34005
34035
|
title:
|