kb-cloud-client-typescript 2.4.0-alpha.92 → 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/apis/account-api.d.ts +207 -0
- package/dist/adminapi/apis/account-api.d.ts.map +1 -1
- package/dist/adminapi/apis/account-api.js +198 -0
- package/dist/adminapi/apis/account-api.js.map +1 -1
- package/dist/adminapi/apis/rdbms-api.d.ts +207 -0
- package/dist/adminapi/apis/rdbms-api.d.ts.map +1 -1
- package/dist/adminapi/apis/rdbms-api.js +198 -0
- package/dist/adminapi/apis/rdbms-api.js.map +1 -1
- package/dist/adminapi/apis/shared-api.d.ts +207 -0
- package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
- package/dist/adminapi/apis/shared-api.js +198 -0
- package/dist/adminapi/apis/shared-api.js.map +1 -1
- 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 +2 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +2 -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/object-privilege-reset-step.d.ts +31 -0
- package/dist/adminapi/models/object-privilege-reset-step.d.ts.map +1 -0
- package/dist/adminapi/models/object-privilege-reset-step.js +16 -0
- package/dist/adminapi/models/object-privilege-reset-step.js.map +1 -0
- 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/apis/account-api.d.ts +207 -0
- package/dist/openapi/apis/account-api.d.ts.map +1 -1
- package/dist/openapi/apis/account-api.js +198 -0
- package/dist/openapi/apis/account-api.js.map +1 -1
- package/dist/openapi/apis/rdbms-api.d.ts +207 -0
- package/dist/openapi/apis/rdbms-api.d.ts.map +1 -1
- package/dist/openapi/apis/rdbms-api.js +198 -0
- package/dist/openapi/apis/rdbms-api.js.map +1 -1
- package/dist/openapi/apis/shared-api.d.ts +207 -0
- package/dist/openapi/apis/shared-api.d.ts.map +1 -1
- package/dist/openapi/apis/shared-api.js +198 -0
- package/dist/openapi/apis/shared-api.js.map +1 -1
- 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 +2 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +2 -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/object-privilege-reset-step.d.ts +31 -0
- package/dist/openapi/models/object-privilege-reset-step.d.ts.map +1 -0
- package/dist/openapi/models/object-privilege-reset-step.js +16 -0
- package/dist/openapi/models/object-privilege-reset-step.js.map +1 -0
- 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 +2 -0
- package/src/adminapi/apis/account-api.ts +352 -0
- package/src/adminapi/apis/rdbms-api.ts +352 -0
- package/src/adminapi/apis/shared-api.ts +352 -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 +2 -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/object-privilege-reset-step.ts +36 -0
- package/src/adminapi/models/placement-scope.ts +31 -0
- package/src/adminapi.yaml +174 -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 +2 -0
- package/src/openapi/apis/account-api.ts +352 -0
- package/src/openapi/apis/rdbms-api.ts +352 -0
- package/src/openapi/apis/shared-api.ts +352 -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 +2 -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/object-privilege-reset-step.ts +36 -0
- package/src/openapi/models/placement-scope.ts +31 -0
- package/src/openapi.yaml +174 -5
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
* 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/adminapi.yaml
CHANGED
|
@@ -24122,6 +24122,131 @@ paths:
|
|
|
24122
24122
|
$ref: '#/components/responses/404'
|
|
24123
24123
|
'500':
|
|
24124
24124
|
$ref: '#/components/responses/500'
|
|
24125
|
+
/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/reset:
|
|
24126
|
+
get:
|
|
24127
|
+
tags:
|
|
24128
|
+
- account
|
|
24129
|
+
- rdbms
|
|
24130
|
+
- shared
|
|
24131
|
+
summary: Preview clearing all MySQL account privileges
|
|
24132
|
+
operationId: previewAccountPrivilegeReset
|
|
24133
|
+
description: MySQL only. Clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections.
|
|
24134
|
+
parameters:
|
|
24135
|
+
- name: engineName
|
|
24136
|
+
in: path
|
|
24137
|
+
required: true
|
|
24138
|
+
schema:
|
|
24139
|
+
type: string
|
|
24140
|
+
- name: orgName
|
|
24141
|
+
in: path
|
|
24142
|
+
required: true
|
|
24143
|
+
schema:
|
|
24144
|
+
type: string
|
|
24145
|
+
- name: clusterName
|
|
24146
|
+
in: path
|
|
24147
|
+
required: true
|
|
24148
|
+
schema:
|
|
24149
|
+
type: string
|
|
24150
|
+
- name: accountName
|
|
24151
|
+
in: path
|
|
24152
|
+
required: true
|
|
24153
|
+
schema:
|
|
24154
|
+
type: string
|
|
24155
|
+
- name: subjectType
|
|
24156
|
+
in: query
|
|
24157
|
+
required: false
|
|
24158
|
+
schema:
|
|
24159
|
+
$ref: '#/components/schemas/ObjectPrivilegeSubjectType'
|
|
24160
|
+
description: Native subject kind; path account name identifies the subject.
|
|
24161
|
+
- name: host
|
|
24162
|
+
in: query
|
|
24163
|
+
required: false
|
|
24164
|
+
schema:
|
|
24165
|
+
type: string
|
|
24166
|
+
description: Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
24167
|
+
- name: subjectQualifiers
|
|
24168
|
+
in: query
|
|
24169
|
+
schema:
|
|
24170
|
+
type: string
|
|
24171
|
+
description: JSON identity qualifiers; MySQL host defaults to %.
|
|
24172
|
+
responses:
|
|
24173
|
+
'200':
|
|
24174
|
+
description: Server-generated steps with connection database, in execution order
|
|
24175
|
+
content:
|
|
24176
|
+
application/json:
|
|
24177
|
+
schema:
|
|
24178
|
+
type: array
|
|
24179
|
+
items:
|
|
24180
|
+
$ref: '#/components/schemas/ObjectPrivilegeResetStep'
|
|
24181
|
+
'400':
|
|
24182
|
+
$ref: '#/components/responses/400'
|
|
24183
|
+
'401':
|
|
24184
|
+
$ref: '#/components/responses/401'
|
|
24185
|
+
'403':
|
|
24186
|
+
$ref: '#/components/responses/403'
|
|
24187
|
+
'404':
|
|
24188
|
+
$ref: '#/components/responses/404'
|
|
24189
|
+
'500':
|
|
24190
|
+
$ref: '#/components/responses/500'
|
|
24191
|
+
delete:
|
|
24192
|
+
tags:
|
|
24193
|
+
- account
|
|
24194
|
+
- rdbms
|
|
24195
|
+
- shared
|
|
24196
|
+
summary: Clear all MySQL account privileges
|
|
24197
|
+
operationId: resetAccountPrivileges
|
|
24198
|
+
description: MySQL only. Clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections.
|
|
24199
|
+
parameters:
|
|
24200
|
+
- name: engineName
|
|
24201
|
+
in: path
|
|
24202
|
+
required: true
|
|
24203
|
+
schema:
|
|
24204
|
+
type: string
|
|
24205
|
+
- name: orgName
|
|
24206
|
+
in: path
|
|
24207
|
+
required: true
|
|
24208
|
+
schema:
|
|
24209
|
+
type: string
|
|
24210
|
+
- name: clusterName
|
|
24211
|
+
in: path
|
|
24212
|
+
required: true
|
|
24213
|
+
schema:
|
|
24214
|
+
type: string
|
|
24215
|
+
- name: accountName
|
|
24216
|
+
in: path
|
|
24217
|
+
required: true
|
|
24218
|
+
schema:
|
|
24219
|
+
type: string
|
|
24220
|
+
- name: subjectType
|
|
24221
|
+
in: query
|
|
24222
|
+
required: false
|
|
24223
|
+
schema:
|
|
24224
|
+
$ref: '#/components/schemas/ObjectPrivilegeSubjectType'
|
|
24225
|
+
description: Native subject kind; path account name identifies the subject.
|
|
24226
|
+
- name: host
|
|
24227
|
+
in: query
|
|
24228
|
+
required: false
|
|
24229
|
+
schema:
|
|
24230
|
+
type: string
|
|
24231
|
+
description: Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
24232
|
+
- name: subjectQualifiers
|
|
24233
|
+
in: query
|
|
24234
|
+
schema:
|
|
24235
|
+
type: string
|
|
24236
|
+
description: JSON identity qualifiers; MySQL host defaults to %.
|
|
24237
|
+
responses:
|
|
24238
|
+
'204':
|
|
24239
|
+
description: Privileges cleared; account and password preserved
|
|
24240
|
+
'400':
|
|
24241
|
+
$ref: '#/components/responses/400'
|
|
24242
|
+
'401':
|
|
24243
|
+
$ref: '#/components/responses/401'
|
|
24244
|
+
'403':
|
|
24245
|
+
$ref: '#/components/responses/403'
|
|
24246
|
+
'404':
|
|
24247
|
+
$ref: '#/components/responses/404'
|
|
24248
|
+
'500':
|
|
24249
|
+
$ref: '#/components/responses/500'
|
|
24125
24250
|
/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/columns:
|
|
24126
24251
|
get:
|
|
24127
24252
|
tags:
|
|
@@ -30630,12 +30755,14 @@ components:
|
|
|
30630
30755
|
instanceTemplateCreate:
|
|
30631
30756
|
type: object
|
|
30632
30757
|
additionalProperties: false
|
|
30633
|
-
description:
|
|
30634
|
-
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.
|
|
30758
|
+
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.
|
|
30635
30759
|
required:
|
|
30636
30760
|
- name
|
|
30637
30761
|
- replicas
|
|
30638
30762
|
properties:
|
|
30763
|
+
nodeGroup:
|
|
30764
|
+
type: string
|
|
30765
|
+
description: Optional host group in this environment and the explicitly selected availabilityZone. Requires availabilityZone; no upper-level host group is inherited.
|
|
30639
30766
|
name:
|
|
30640
30767
|
type: string
|
|
30641
30768
|
minLength: 1
|
|
@@ -30646,7 +30773,7 @@ components:
|
|
|
30646
30773
|
description: Replica count for this instance template.
|
|
30647
30774
|
availabilityZone:
|
|
30648
30775
|
type: string
|
|
30649
|
-
description:
|
|
30776
|
+
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.
|
|
30650
30777
|
storageClass:
|
|
30651
30778
|
type: string
|
|
30652
30779
|
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.
|
|
@@ -30674,7 +30801,7 @@ components:
|
|
|
30674
30801
|
type: object
|
|
30675
30802
|
additionalProperties:
|
|
30676
30803
|
type: string
|
|
30677
|
-
description: Label map (string key to string value). Merged into this template; same-name keys overwritten. Chart keys are not deleted.
|
|
30804
|
+
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.
|
|
30678
30805
|
ioQuantity:
|
|
30679
30806
|
description: IO Quantity describes IOPS and BPS of a volume
|
|
30680
30807
|
properties:
|
|
@@ -30747,6 +30874,12 @@ components:
|
|
|
30747
30874
|
required:
|
|
30748
30875
|
- component
|
|
30749
30876
|
properties:
|
|
30877
|
+
nodeGroup:
|
|
30878
|
+
type: string
|
|
30879
|
+
description: Optional host group in this environment and the explicitly selected availabilityZone. Requires availabilityZone; no upper-level host group is inherited.
|
|
30880
|
+
availabilityZone:
|
|
30881
|
+
type: string
|
|
30882
|
+
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.
|
|
30750
30883
|
component:
|
|
30751
30884
|
type: string
|
|
30752
30885
|
description: component type, refer to componentDef and support NamePrefix
|
|
@@ -31086,6 +31219,18 @@ components:
|
|
|
31086
31219
|
type: object
|
|
31087
31220
|
description: ComponentItem is the information of a component
|
|
31088
31221
|
properties:
|
|
31222
|
+
nodeGroup:
|
|
31223
|
+
type: string
|
|
31224
|
+
description: Optional host group in this environment. Explicit placement does not inherit an upper-level host group.
|
|
31225
|
+
availabilityZone:
|
|
31226
|
+
type: string
|
|
31227
|
+
description: Explicit component AZ selection, if configured.
|
|
31228
|
+
instanceTemplates:
|
|
31229
|
+
type: array
|
|
31230
|
+
x-omitempty: true
|
|
31231
|
+
description: Instance template assignments with effective replicas, placement and storage class, and user-provided env, labels and annotations.
|
|
31232
|
+
items:
|
|
31233
|
+
$ref: '#/components/schemas/instanceTemplateCreate'
|
|
31089
31234
|
name:
|
|
31090
31235
|
type: string
|
|
31091
31236
|
description: component name
|
|
@@ -31431,6 +31576,9 @@ components:
|
|
|
31431
31576
|
componentDef:
|
|
31432
31577
|
description: ComponentDefinition name
|
|
31433
31578
|
type: string
|
|
31579
|
+
instanceTemplate:
|
|
31580
|
+
description: Instance template name within the actual component. Omitted when no template identity is available.
|
|
31581
|
+
type: string
|
|
31434
31582
|
component:
|
|
31435
31583
|
description: component type, refer to componentDef and support NamePrefix
|
|
31436
31584
|
type: string
|
|
@@ -40073,6 +40221,12 @@ components:
|
|
|
40073
40221
|
type: boolean
|
|
40074
40222
|
description: whether the component supports custom secret
|
|
40075
40223
|
x-nullable: false
|
|
40224
|
+
placementScope:
|
|
40225
|
+
type: string
|
|
40226
|
+
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.
|
|
40227
|
+
enum:
|
|
40228
|
+
- cluster
|
|
40229
|
+
- component
|
|
40076
40230
|
modeCompatibleKubeblocksVersion:
|
|
40077
40231
|
type: string
|
|
40078
40232
|
description: |
|
|
@@ -40094,7 +40248,6 @@ components:
|
|
|
40094
40248
|
- env
|
|
40095
40249
|
- annotations
|
|
40096
40250
|
- labels
|
|
40097
|
-
- availabilityZone
|
|
40098
40251
|
- storageClass
|
|
40099
40252
|
instanceTemplateEnv:
|
|
40100
40253
|
type: object
|
|
@@ -40470,6 +40623,8 @@ components:
|
|
|
40470
40623
|
- description
|
|
40471
40624
|
- components
|
|
40472
40625
|
properties:
|
|
40626
|
+
placementScope:
|
|
40627
|
+
$ref: '#/components/schemas/placementScope'
|
|
40473
40628
|
name:
|
|
40474
40629
|
type: string
|
|
40475
40630
|
title:
|
|
@@ -47201,6 +47356,20 @@ components:
|
|
|
47201
47356
|
type: array
|
|
47202
47357
|
items:
|
|
47203
47358
|
$ref: '#/components/schemas/ObjectPrivilegeQualifier'
|
|
47359
|
+
ObjectPrivilegeResetStep:
|
|
47360
|
+
type: object
|
|
47361
|
+
description: One ordered, engine-generated step of an account privilege reset.
|
|
47362
|
+
required:
|
|
47363
|
+
- sql
|
|
47364
|
+
properties:
|
|
47365
|
+
databaseName:
|
|
47366
|
+
type: string
|
|
47367
|
+
description: Connection database in which this statement must run. Omitted when no particular database is required, as with MySQL account-wide REVOKE. This is execution context, not the scope of objects affected by the SQL.
|
|
47368
|
+
sql:
|
|
47369
|
+
type: string
|
|
47370
|
+
x-nullable: false
|
|
47371
|
+
minLength: 1
|
|
47372
|
+
description: Engine-generated SQL for display. Callers cannot submit or modify these steps for execution; reset rebuilds the plan from current grants.
|
|
47204
47373
|
ObjectPrivilegeObject:
|
|
47205
47374
|
type: object
|
|
47206
47375
|
required:
|
|
@@ -62,6 +62,8 @@ models/http-body.ts
|
|
|
62
62
|
models/image-registry.ts
|
|
63
63
|
models/index.ts
|
|
64
64
|
models/init-option-item.ts
|
|
65
|
+
models/instance-template-create-env-inner.ts
|
|
66
|
+
models/instance-template-create.ts
|
|
65
67
|
models/io-quantity.ts
|
|
66
68
|
models/ip-pool-provider.ts
|
|
67
69
|
models/ip-pool-selection.ts
|
|
@@ -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
|
|
@@ -26,6 +29,24 @@ import type { ComponentVolumeItem } from './component-volume-item';
|
|
|
26
29
|
* @interface ComponentItem
|
|
27
30
|
*/
|
|
28
31
|
export interface ComponentItem {
|
|
32
|
+
/**
|
|
33
|
+
* Optional host group in this environment. Explicit placement does not inherit an upper-level host group.
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof ComponentItem
|
|
36
|
+
*/
|
|
37
|
+
'nodeGroup'?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Explicit component AZ selection, if configured.
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof ComponentItem
|
|
42
|
+
*/
|
|
43
|
+
'availabilityZone'?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Instance template assignments with effective replicas, placement and storage class, and user-provided env, labels and annotations.
|
|
46
|
+
* @type {Array<InstanceTemplateCreate>}
|
|
47
|
+
* @memberof ComponentItem
|
|
48
|
+
*/
|
|
49
|
+
'instanceTemplates'?: Array<InstanceTemplateCreate>;
|
|
29
50
|
/**
|
|
30
51
|
* component name
|
|
31
52
|
* @type {string}
|
|
@@ -35,6 +35,8 @@ export * from './grafana-datasource-create';
|
|
|
35
35
|
export * from './http-body';
|
|
36
36
|
export * from './image-registry';
|
|
37
37
|
export * from './init-option-item';
|
|
38
|
+
export * from './instance-template-create';
|
|
39
|
+
export * from './instance-template-create-env-inner';
|
|
38
40
|
export * from './io-quantity';
|
|
39
41
|
export * from './ip-pool-provider';
|
|
40
42
|
export * from './ip-pool-selection';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KubeBlocks Cloud Internal API
|
|
5
|
+
* The Internal API is using for interaction of ApeCloud platform microservices.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
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,75 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KubeBlocks Cloud Internal API
|
|
5
|
+
* The Internal API is using for interaction of ApeCloud platform microservices.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
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, 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.
|
|
22
|
+
* @export
|
|
23
|
+
* @interface InstanceTemplateCreate
|
|
24
|
+
*/
|
|
25
|
+
export interface InstanceTemplateCreate {
|
|
26
|
+
/**
|
|
27
|
+
* Optional host group in this environment and the explicitly selected availabilityZone. Requires availabilityZone; no upper-level host group is inherited.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof InstanceTemplateCreate
|
|
30
|
+
*/
|
|
31
|
+
'nodeGroup'?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Instance template name; must match a chart-rendered instance.
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof InstanceTemplateCreate
|
|
36
|
+
*/
|
|
37
|
+
'name': string;
|
|
38
|
+
/**
|
|
39
|
+
* Replica count for this instance template.
|
|
40
|
+
* @type {number}
|
|
41
|
+
* @memberof InstanceTemplateCreate
|
|
42
|
+
*/
|
|
43
|
+
'replicas': number;
|
|
44
|
+
/**
|
|
45
|
+
* 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.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof InstanceTemplateCreate
|
|
48
|
+
*/
|
|
49
|
+
'availabilityZone'?: string;
|
|
50
|
+
/**
|
|
51
|
+
* 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.
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof InstanceTemplateCreate
|
|
54
|
+
*/
|
|
55
|
+
'storageClass'?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Simple env vars (name and value only) merged into this template. valueFrom is not supported; overlaying a name clears any chart valueFrom.
|
|
58
|
+
* @type {Array<InstanceTemplateCreateEnvInner>}
|
|
59
|
+
* @memberof InstanceTemplateCreate
|
|
60
|
+
*/
|
|
61
|
+
'env'?: Array<InstanceTemplateCreateEnvInner>;
|
|
62
|
+
/**
|
|
63
|
+
* Annotation map (string key to string value). Merged into this template; same-name keys overwritten. Chart keys are not deleted.
|
|
64
|
+
* @type {{ [key: string]: string; }}
|
|
65
|
+
* @memberof InstanceTemplateCreate
|
|
66
|
+
*/
|
|
67
|
+
'annotations'?: { [key: string]: string; };
|
|
68
|
+
/**
|
|
69
|
+
* 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.
|
|
70
|
+
* @type {{ [key: string]: string; }}
|
|
71
|
+
* @memberof InstanceTemplateCreate
|
|
72
|
+
*/
|
|
73
|
+
'labels'?: { [key: string]: string; };
|
|
74
|
+
}
|
|
75
|
+
|
package/src/internalapi.yaml
CHANGED
|
@@ -1373,6 +1373,56 @@ components:
|
|
|
1373
1373
|
enum:
|
|
1374
1374
|
- DoNotTerminate
|
|
1375
1375
|
- Delete
|
|
1376
|
+
instanceTemplateCreate:
|
|
1377
|
+
type: object
|
|
1378
|
+
additionalProperties: false
|
|
1379
|
+
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.
|
|
1380
|
+
required:
|
|
1381
|
+
- name
|
|
1382
|
+
- replicas
|
|
1383
|
+
properties:
|
|
1384
|
+
nodeGroup:
|
|
1385
|
+
type: string
|
|
1386
|
+
description: Optional host group in this environment and the explicitly selected availabilityZone. Requires availabilityZone; no upper-level host group is inherited.
|
|
1387
|
+
name:
|
|
1388
|
+
type: string
|
|
1389
|
+
minLength: 1
|
|
1390
|
+
description: Instance template name; must match a chart-rendered instance.
|
|
1391
|
+
replicas:
|
|
1392
|
+
type: integer
|
|
1393
|
+
minimum: 0
|
|
1394
|
+
description: Replica count for this instance template.
|
|
1395
|
+
availabilityZone:
|
|
1396
|
+
type: string
|
|
1397
|
+
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.
|
|
1398
|
+
storageClass:
|
|
1399
|
+
type: string
|
|
1400
|
+
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.
|
|
1401
|
+
env:
|
|
1402
|
+
type: array
|
|
1403
|
+
description: Simple env vars (name and value only) merged into this template. valueFrom is not supported; overlaying a name clears any chart valueFrom.
|
|
1404
|
+
items:
|
|
1405
|
+
type: object
|
|
1406
|
+
required:
|
|
1407
|
+
- name
|
|
1408
|
+
- value
|
|
1409
|
+
properties:
|
|
1410
|
+
name:
|
|
1411
|
+
type: string
|
|
1412
|
+
value:
|
|
1413
|
+
type: string
|
|
1414
|
+
minLength: 1
|
|
1415
|
+
description: Plain string value only. valueFrom is not supported.
|
|
1416
|
+
annotations:
|
|
1417
|
+
type: object
|
|
1418
|
+
additionalProperties:
|
|
1419
|
+
type: string
|
|
1420
|
+
description: Annotation map (string key to string value). Merged into this template; same-name keys overwritten. Chart keys are not deleted.
|
|
1421
|
+
labels:
|
|
1422
|
+
type: object
|
|
1423
|
+
additionalProperties:
|
|
1424
|
+
type: string
|
|
1425
|
+
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.
|
|
1376
1426
|
ioQuantity:
|
|
1377
1427
|
description: IO Quantity describes IOPS and BPS of a volume
|
|
1378
1428
|
properties:
|
|
@@ -1443,6 +1493,18 @@ components:
|
|
|
1443
1493
|
type: object
|
|
1444
1494
|
description: ComponentItem is the information of a component
|
|
1445
1495
|
properties:
|
|
1496
|
+
nodeGroup:
|
|
1497
|
+
type: string
|
|
1498
|
+
description: Optional host group in this environment. Explicit placement does not inherit an upper-level host group.
|
|
1499
|
+
availabilityZone:
|
|
1500
|
+
type: string
|
|
1501
|
+
description: Explicit component AZ selection, if configured.
|
|
1502
|
+
instanceTemplates:
|
|
1503
|
+
type: array
|
|
1504
|
+
x-omitempty: true
|
|
1505
|
+
description: Instance template assignments with effective replicas, placement and storage class, and user-provided env, labels and annotations.
|
|
1506
|
+
items:
|
|
1507
|
+
$ref: '#/components/schemas/instanceTemplateCreate'
|
|
1446
1508
|
name:
|
|
1447
1509
|
type: string
|
|
1448
1510
|
description: component name
|
|
@@ -764,6 +764,7 @@ models/object-privilege-object.ts
|
|
|
764
764
|
models/object-privilege-prerequisite-check.ts
|
|
765
765
|
models/object-privilege-prerequisite-status.ts
|
|
766
766
|
models/object-privilege-qualifier.ts
|
|
767
|
+
models/object-privilege-reset-step.ts
|
|
767
768
|
models/object-privilege-snapshot.ts
|
|
768
769
|
models/object-privilege-spec.ts
|
|
769
770
|
models/object-privilege-subject-type.ts
|
|
@@ -852,6 +853,7 @@ models/pg-extension-available-database-schema.ts
|
|
|
852
853
|
models/pg-extension.ts
|
|
853
854
|
models/pgbench.ts
|
|
854
855
|
models/phone-verification-request.ts
|
|
856
|
+
models/placement-scope.ts
|
|
855
857
|
models/platform-parameter-constraints.ts
|
|
856
858
|
models/platform-parameter-list.ts
|
|
857
859
|
models/platform-parameter.ts
|