kb-cloud-client-typescript 2.2.128 → 2.2.130
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/environment-api.d.ts +15 -15
- package/dist/adminapi/apis/environment-api.d.ts.map +1 -1
- package/dist/adminapi/apis/environment-api.js +8 -8
- package/dist/adminapi/apis/task-api.d.ts +16 -7
- package/dist/adminapi/apis/task-api.d.ts.map +1 -1
- package/dist/adminapi/apis/task-api.js +14 -9
- package/dist/adminapi/apis/task-api.js.map +1 -1
- package/dist/adminapi/models/environment-module-action-result.d.ts +25 -0
- package/dist/adminapi/models/environment-module-action-result.d.ts.map +1 -0
- package/dist/adminapi/models/environment-module-action-result.js +16 -0
- package/dist/adminapi/models/environment-module-action-result.js.map +1 -0
- package/dist/adminapi/models/environment-module-action.d.ts +1 -1
- package/dist/adminapi/models/environment-module-action.js +1 -1
- package/dist/adminapi/models/environment-module-status.d.ts +8 -1
- package/dist/adminapi/models/environment-module-status.d.ts.map +1 -1
- package/dist/adminapi/models/environment-module-status.js +9 -2
- package/dist/adminapi/models/environment-module-status.js.map +1 -1
- package/dist/adminapi/models/environment-module-update.d.ts +3 -3
- package/dist/adminapi/models/environment-module-update.d.ts.map +1 -1
- package/dist/adminapi/models/environment-module.d.ts +13 -1
- package/dist/adminapi/models/environment-module.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/task-retry-mode.d.ts +22 -0
- package/dist/adminapi/models/task-retry-mode.d.ts.map +1 -0
- package/dist/adminapi/models/task-retry-mode.js +26 -0
- package/dist/adminapi/models/task-retry-mode.js.map +1 -0
- package/dist/adminapi/models/task.d.ts +7 -0
- package/dist/adminapi/models/task.d.ts.map +1 -1
- package/dist/openapi/models/environment-module-status.d.ts +8 -1
- package/dist/openapi/models/environment-module-status.d.ts.map +1 -1
- package/dist/openapi/models/environment-module-status.js +9 -2
- package/dist/openapi/models/environment-module-status.js.map +1 -1
- package/dist/openapi/models/environment-module.d.ts +13 -1
- package/dist/openapi/models/environment-module.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/task-retry-mode.d.ts +22 -0
- package/dist/openapi/models/task-retry-mode.d.ts.map +1 -0
- package/dist/openapi/models/task-retry-mode.js +26 -0
- package/dist/openapi/models/task-retry-mode.js.map +1 -0
- package/dist/openapi/models/task.d.ts +7 -0
- package/dist/openapi/models/task.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +2 -0
- package/src/adminapi/apis/environment-api.ts +15 -15
- package/src/adminapi/apis/task-api.ts +25 -10
- package/src/adminapi/models/environment-module-action-result.ts +30 -0
- package/src/adminapi/models/environment-module-action.ts +1 -1
- package/src/adminapi/models/environment-module-status.ts +9 -2
- package/src/adminapi/models/environment-module-update.ts +3 -3
- package/src/adminapi/models/environment-module.ts +13 -1
- package/src/adminapi/models/index.ts +2 -0
- package/src/adminapi/models/task-retry-mode.ts +31 -0
- package/src/adminapi/models/task.ts +9 -0
- package/src/adminapi.yaml +107 -63
- package/src/internalapi.yaml +2 -4
- package/src/openapi/.openapi-generator/FILES +1 -0
- package/src/openapi/models/environment-module-status.ts +9 -2
- package/src/openapi/models/environment-module.ts +13 -1
- package/src/openapi/models/index.ts +1 -0
- package/src/openapi/models/task-retry-mode.ts +31 -0
- package/src/openapi/models/task.ts +9 -0
- package/src/openapi.yaml +78 -51
package/src/adminapi.yaml
CHANGED
|
@@ -12652,6 +12652,8 @@ paths:
|
|
|
12652
12652
|
'204':
|
|
12653
12653
|
description: No content.
|
|
12654
12654
|
content: {}
|
|
12655
|
+
'400':
|
|
12656
|
+
$ref: '#/components/responses/400'
|
|
12655
12657
|
'401':
|
|
12656
12658
|
$ref: '#/components/responses/401'
|
|
12657
12659
|
'403':
|
|
@@ -13705,7 +13707,7 @@ paths:
|
|
|
13705
13707
|
/admin/v1/tasks/{taskId}/retry:
|
|
13706
13708
|
patch:
|
|
13707
13709
|
summary: Retry a task
|
|
13708
|
-
description:
|
|
13710
|
+
description: Restart a failed or stopped task. Resume requires the task type to declare resume in allowActions. The default mode is restart, which reruns all steps; resume preserves successful steps.
|
|
13709
13711
|
operationId: retryTask
|
|
13710
13712
|
parameters:
|
|
13711
13713
|
- description: ID of the task
|
|
@@ -13714,6 +13716,12 @@ paths:
|
|
|
13714
13716
|
required: true
|
|
13715
13717
|
schema:
|
|
13716
13718
|
type: string
|
|
13719
|
+
- name: mode
|
|
13720
|
+
in: query
|
|
13721
|
+
description: restart reruns all steps; resume preserves successful steps and reruns unfinished steps and PreFinish hooks.
|
|
13722
|
+
required: false
|
|
13723
|
+
schema:
|
|
13724
|
+
$ref: '#/components/schemas/taskRetryMode'
|
|
13717
13725
|
responses:
|
|
13718
13726
|
'200':
|
|
13719
13727
|
description: Current status of the task
|
|
@@ -13729,6 +13737,12 @@ paths:
|
|
|
13729
13737
|
$ref: '#/components/responses/403'
|
|
13730
13738
|
'404':
|
|
13731
13739
|
$ref: '#/components/responses/404'
|
|
13740
|
+
'405':
|
|
13741
|
+
description: The task type does not support resume.
|
|
13742
|
+
content:
|
|
13743
|
+
application/json:
|
|
13744
|
+
schema:
|
|
13745
|
+
$ref: '#/components/schemas/APIErrorResponse'
|
|
13732
13746
|
'500':
|
|
13733
13747
|
$ref: '#/components/responses/500'
|
|
13734
13748
|
tags:
|
|
@@ -14019,7 +14033,8 @@ paths:
|
|
|
14019
14033
|
- environment
|
|
14020
14034
|
patch:
|
|
14021
14035
|
operationId: updateEnvironmentModule
|
|
14022
|
-
summary:
|
|
14036
|
+
summary: Update an environment module
|
|
14037
|
+
description: Performs the requested module action. Supported quick install and upgrade actions use dryRun=true for synchronous checks without changes; dryRun=false or omitted repeats the checks and submits an asynchronous task only when all checks pass. Other module actions keep their original behavior.
|
|
14023
14038
|
parameters:
|
|
14024
14039
|
- name: environmentName
|
|
14025
14040
|
in: path
|
|
@@ -14034,15 +14049,11 @@ paths:
|
|
|
14034
14049
|
$ref: '#/components/schemas/environmentModuleUpdate'
|
|
14035
14050
|
responses:
|
|
14036
14051
|
'200':
|
|
14037
|
-
description:
|
|
14052
|
+
description: The module action succeeded. A successful dry run returns an empty object; an asynchronous action returns taskId.
|
|
14038
14053
|
content:
|
|
14039
14054
|
application/json:
|
|
14040
14055
|
schema:
|
|
14041
|
-
|
|
14042
|
-
properties:
|
|
14043
|
-
taskId:
|
|
14044
|
-
type: string
|
|
14045
|
-
description: the task id
|
|
14056
|
+
$ref: '#/components/schemas/environmentModuleActionResult'
|
|
14046
14057
|
'400':
|
|
14047
14058
|
$ref: '#/components/responses/400'
|
|
14048
14059
|
'401':
|
|
@@ -16906,7 +16917,7 @@ paths:
|
|
|
16906
16917
|
$ref: '#/components/schemas/accountList'
|
|
16907
16918
|
description: Success
|
|
16908
16919
|
'400':
|
|
16909
|
-
|
|
16920
|
+
$ref: '#/components/responses/400'
|
|
16910
16921
|
'401':
|
|
16911
16922
|
$ref: '#/components/responses/401'
|
|
16912
16923
|
'403':
|
|
@@ -16914,9 +16925,9 @@ paths:
|
|
|
16914
16925
|
'404':
|
|
16915
16926
|
$ref: '#/components/responses/404'
|
|
16916
16927
|
'409':
|
|
16917
|
-
|
|
16928
|
+
$ref: '#/components/responses/409'
|
|
16918
16929
|
'503':
|
|
16919
|
-
|
|
16930
|
+
$ref: '#/components/responses/503'
|
|
16920
16931
|
tags:
|
|
16921
16932
|
- account
|
|
16922
16933
|
- seaweedfs
|
|
@@ -16953,7 +16964,7 @@ paths:
|
|
|
16953
16964
|
schema:
|
|
16954
16965
|
$ref: '#/components/schemas/account'
|
|
16955
16966
|
'400':
|
|
16956
|
-
|
|
16967
|
+
$ref: '#/components/responses/400'
|
|
16957
16968
|
'401':
|
|
16958
16969
|
$ref: '#/components/responses/401'
|
|
16959
16970
|
'403':
|
|
@@ -16961,9 +16972,9 @@ paths:
|
|
|
16961
16972
|
'404':
|
|
16962
16973
|
$ref: '#/components/responses/404'
|
|
16963
16974
|
'409':
|
|
16964
|
-
|
|
16975
|
+
$ref: '#/components/responses/409'
|
|
16965
16976
|
'503':
|
|
16966
|
-
|
|
16977
|
+
$ref: '#/components/responses/503'
|
|
16967
16978
|
tags:
|
|
16968
16979
|
- account
|
|
16969
16980
|
- seaweedfs
|
|
@@ -16998,7 +17009,7 @@ paths:
|
|
|
16998
17009
|
content: {}
|
|
16999
17010
|
description: Identity deleted
|
|
17000
17011
|
'400':
|
|
17001
|
-
|
|
17012
|
+
$ref: '#/components/responses/400'
|
|
17002
17013
|
'401':
|
|
17003
17014
|
$ref: '#/components/responses/401'
|
|
17004
17015
|
'403':
|
|
@@ -17006,9 +17017,9 @@ paths:
|
|
|
17006
17017
|
'404':
|
|
17007
17018
|
$ref: '#/components/responses/404'
|
|
17008
17019
|
'409':
|
|
17009
|
-
|
|
17020
|
+
$ref: '#/components/responses/409'
|
|
17010
17021
|
'503':
|
|
17011
|
-
|
|
17022
|
+
$ref: '#/components/responses/503'
|
|
17012
17023
|
tags:
|
|
17013
17024
|
- account
|
|
17014
17025
|
- seaweedfs
|
|
@@ -17050,7 +17061,7 @@ paths:
|
|
|
17050
17061
|
schema:
|
|
17051
17062
|
$ref: '#/components/schemas/account'
|
|
17052
17063
|
'400':
|
|
17053
|
-
|
|
17064
|
+
$ref: '#/components/responses/400'
|
|
17054
17065
|
'401':
|
|
17055
17066
|
$ref: '#/components/responses/401'
|
|
17056
17067
|
'403':
|
|
@@ -17058,9 +17069,9 @@ paths:
|
|
|
17058
17069
|
'404':
|
|
17059
17070
|
$ref: '#/components/responses/404'
|
|
17060
17071
|
'409':
|
|
17061
|
-
|
|
17072
|
+
$ref: '#/components/responses/409'
|
|
17062
17073
|
'503':
|
|
17063
|
-
|
|
17074
|
+
$ref: '#/components/responses/503'
|
|
17064
17075
|
tags:
|
|
17065
17076
|
- account
|
|
17066
17077
|
- seaweedfs
|
|
@@ -17149,7 +17160,7 @@ paths:
|
|
|
17149
17160
|
required: true
|
|
17150
17161
|
responses:
|
|
17151
17162
|
'400':
|
|
17152
|
-
|
|
17163
|
+
$ref: '#/components/responses/400'
|
|
17153
17164
|
tags:
|
|
17154
17165
|
- account
|
|
17155
17166
|
- seaweedfs
|
|
@@ -17198,17 +17209,17 @@ paths:
|
|
|
17198
17209
|
type: object
|
|
17199
17210
|
additionalProperties: true
|
|
17200
17211
|
'400':
|
|
17201
|
-
|
|
17212
|
+
$ref: '#/components/responses/400'
|
|
17202
17213
|
'401':
|
|
17203
|
-
|
|
17214
|
+
$ref: '#/components/responses/401'
|
|
17204
17215
|
'403':
|
|
17205
|
-
|
|
17216
|
+
$ref: '#/components/responses/403'
|
|
17206
17217
|
'404':
|
|
17207
|
-
|
|
17218
|
+
$ref: '#/components/responses/404'
|
|
17208
17219
|
'409':
|
|
17209
|
-
|
|
17220
|
+
$ref: '#/components/responses/409'
|
|
17210
17221
|
'503':
|
|
17211
|
-
|
|
17222
|
+
$ref: '#/components/responses/503'
|
|
17212
17223
|
/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/policies/{policyName}:
|
|
17213
17224
|
put:
|
|
17214
17225
|
summary: putSeaweedFSPolicy
|
|
@@ -17237,17 +17248,17 @@ paths:
|
|
|
17237
17248
|
'204':
|
|
17238
17249
|
description: Successful response
|
|
17239
17250
|
'400':
|
|
17240
|
-
|
|
17251
|
+
$ref: '#/components/responses/400'
|
|
17241
17252
|
'401':
|
|
17242
|
-
|
|
17253
|
+
$ref: '#/components/responses/401'
|
|
17243
17254
|
'403':
|
|
17244
|
-
|
|
17255
|
+
$ref: '#/components/responses/403'
|
|
17245
17256
|
'404':
|
|
17246
|
-
|
|
17257
|
+
$ref: '#/components/responses/404'
|
|
17247
17258
|
'409':
|
|
17248
|
-
|
|
17259
|
+
$ref: '#/components/responses/409'
|
|
17249
17260
|
'503':
|
|
17250
|
-
|
|
17261
|
+
$ref: '#/components/responses/503'
|
|
17251
17262
|
requestBody:
|
|
17252
17263
|
required: true
|
|
17253
17264
|
content:
|
|
@@ -17283,17 +17294,17 @@ paths:
|
|
|
17283
17294
|
'204':
|
|
17284
17295
|
description: Successful response
|
|
17285
17296
|
'400':
|
|
17286
|
-
|
|
17297
|
+
$ref: '#/components/responses/400'
|
|
17287
17298
|
'401':
|
|
17288
|
-
|
|
17299
|
+
$ref: '#/components/responses/401'
|
|
17289
17300
|
'403':
|
|
17290
|
-
|
|
17301
|
+
$ref: '#/components/responses/403'
|
|
17291
17302
|
'404':
|
|
17292
|
-
|
|
17303
|
+
$ref: '#/components/responses/404'
|
|
17293
17304
|
'409':
|
|
17294
|
-
|
|
17305
|
+
$ref: '#/components/responses/409'
|
|
17295
17306
|
'503':
|
|
17296
|
-
|
|
17307
|
+
$ref: '#/components/responses/503'
|
|
17297
17308
|
description: Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
|
|
17298
17309
|
/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/policies:
|
|
17299
17310
|
put:
|
|
@@ -17323,17 +17334,17 @@ paths:
|
|
|
17323
17334
|
'204':
|
|
17324
17335
|
description: Successful response
|
|
17325
17336
|
'400':
|
|
17326
|
-
|
|
17337
|
+
$ref: '#/components/responses/400'
|
|
17327
17338
|
'401':
|
|
17328
|
-
|
|
17339
|
+
$ref: '#/components/responses/401'
|
|
17329
17340
|
'403':
|
|
17330
|
-
|
|
17341
|
+
$ref: '#/components/responses/403'
|
|
17331
17342
|
'404':
|
|
17332
|
-
|
|
17343
|
+
$ref: '#/components/responses/404'
|
|
17333
17344
|
'409':
|
|
17334
|
-
|
|
17345
|
+
$ref: '#/components/responses/409'
|
|
17335
17346
|
'503':
|
|
17336
|
-
|
|
17347
|
+
$ref: '#/components/responses/503'
|
|
17337
17348
|
requestBody:
|
|
17338
17349
|
required: true
|
|
17339
17350
|
content:
|
|
@@ -17380,17 +17391,17 @@ paths:
|
|
|
17380
17391
|
schema:
|
|
17381
17392
|
$ref: '#/components/schemas/account'
|
|
17382
17393
|
'400':
|
|
17383
|
-
|
|
17394
|
+
$ref: '#/components/responses/400'
|
|
17384
17395
|
'401':
|
|
17385
|
-
|
|
17396
|
+
$ref: '#/components/responses/401'
|
|
17386
17397
|
'403':
|
|
17387
|
-
|
|
17398
|
+
$ref: '#/components/responses/403'
|
|
17388
17399
|
'404':
|
|
17389
|
-
|
|
17400
|
+
$ref: '#/components/responses/404'
|
|
17390
17401
|
'409':
|
|
17391
|
-
|
|
17402
|
+
$ref: '#/components/responses/409'
|
|
17392
17403
|
'503':
|
|
17393
|
-
|
|
17404
|
+
$ref: '#/components/responses/503'
|
|
17394
17405
|
requestBody:
|
|
17395
17406
|
required: true
|
|
17396
17407
|
content:
|
|
@@ -17431,17 +17442,17 @@ paths:
|
|
|
17431
17442
|
'204':
|
|
17432
17443
|
description: Successful response
|
|
17433
17444
|
'400':
|
|
17434
|
-
|
|
17445
|
+
$ref: '#/components/responses/400'
|
|
17435
17446
|
'401':
|
|
17436
|
-
|
|
17447
|
+
$ref: '#/components/responses/401'
|
|
17437
17448
|
'403':
|
|
17438
|
-
|
|
17449
|
+
$ref: '#/components/responses/403'
|
|
17439
17450
|
'404':
|
|
17440
|
-
|
|
17451
|
+
$ref: '#/components/responses/404'
|
|
17441
17452
|
'409':
|
|
17442
|
-
|
|
17453
|
+
$ref: '#/components/responses/409'
|
|
17443
17454
|
'503':
|
|
17444
|
-
|
|
17455
|
+
$ref: '#/components/responses/503'
|
|
17445
17456
|
/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts:
|
|
17446
17457
|
get:
|
|
17447
17458
|
description: list accounts in cluster
|
|
@@ -24861,13 +24872,20 @@ components:
|
|
|
24861
24872
|
description: judge whether to set the backup is default which will be init
|
|
24862
24873
|
environmentModuleStatus:
|
|
24863
24874
|
type: string
|
|
24864
|
-
description: Status of environment module
|
|
24875
|
+
description: Status of an environment module. Enabled is only used as the desired state when creating an environment. NotInstalled, Installing, and InstallationFailed describe quick installation; Upgradeable, Upgrading, and UpgradeFailed describe quick upgrade. Upgradeable means the component is running but an ApeCloud-bundled newer version is available. Unknown means the current state could not be determined.
|
|
24865
24876
|
enum:
|
|
24866
24877
|
- Running
|
|
24867
24878
|
- Updating
|
|
24868
24879
|
- Error
|
|
24869
24880
|
- Disabled
|
|
24870
24881
|
- Enabled
|
|
24882
|
+
- NotInstalled
|
|
24883
|
+
- Installing
|
|
24884
|
+
- InstallationFailed
|
|
24885
|
+
- Upgradeable
|
|
24886
|
+
- Upgrading
|
|
24887
|
+
- UpgradeFailed
|
|
24888
|
+
- Unknown
|
|
24871
24889
|
clusterInfo:
|
|
24872
24890
|
type: object
|
|
24873
24891
|
description: Cluster information
|
|
@@ -24890,7 +24908,7 @@ components:
|
|
|
24890
24908
|
description: Environment module name
|
|
24891
24909
|
version:
|
|
24892
24910
|
type: string
|
|
24893
|
-
description:
|
|
24911
|
+
description: Currently installed environment module version
|
|
24894
24912
|
status:
|
|
24895
24913
|
$ref: '#/components/schemas/environmentModuleStatus'
|
|
24896
24914
|
replicas:
|
|
@@ -24899,6 +24917,9 @@ components:
|
|
|
24899
24917
|
location:
|
|
24900
24918
|
type: string
|
|
24901
24919
|
description: Deployment location
|
|
24920
|
+
operationTaskId:
|
|
24921
|
+
type: string
|
|
24922
|
+
description: ID of the asynchronous task associated with the module's current operation state. It is omitted when the current state is not associated with a task.
|
|
24902
24923
|
clusterInfo:
|
|
24903
24924
|
$ref: '#/components/schemas/clusterInfo'
|
|
24904
24925
|
description: Cluster information
|
|
@@ -24914,6 +24935,9 @@ components:
|
|
|
24914
24935
|
defaultEnabled:
|
|
24915
24936
|
type: boolean
|
|
24916
24937
|
description: indicate whether module is enabled by default when creating environment. Only effective when optional is true
|
|
24938
|
+
actionWarning:
|
|
24939
|
+
$ref: '#/components/schemas/localizedDescription'
|
|
24940
|
+
description: Localized business-impact warning for the component action represented by the current status.
|
|
24917
24941
|
required:
|
|
24918
24942
|
- name
|
|
24919
24943
|
- status
|
|
@@ -32336,6 +32360,13 @@ components:
|
|
|
32336
32360
|
- interrupt
|
|
32337
32361
|
- ignore
|
|
32338
32362
|
description: Policy to handle failures
|
|
32363
|
+
taskRetryMode:
|
|
32364
|
+
type: string
|
|
32365
|
+
enum:
|
|
32366
|
+
- restart
|
|
32367
|
+
- resume
|
|
32368
|
+
default: restart
|
|
32369
|
+
description: restart reruns all steps; resume preserves successful steps.
|
|
32339
32370
|
task:
|
|
32340
32371
|
type: object
|
|
32341
32372
|
required:
|
|
@@ -32401,6 +32432,11 @@ components:
|
|
|
32401
32432
|
description: Degree of parallelism for the task
|
|
32402
32433
|
failurePolicy:
|
|
32403
32434
|
$ref: '#/components/schemas/taskFailurePolicy'
|
|
32435
|
+
retryModes:
|
|
32436
|
+
type: array
|
|
32437
|
+
description: Supported manual retry modes for this task. Runtime conflicts are checked when retrying.
|
|
32438
|
+
items:
|
|
32439
|
+
$ref: '#/components/schemas/taskRetryMode'
|
|
32404
32440
|
retryLimit:
|
|
32405
32441
|
type: integer
|
|
32406
32442
|
description: Maximum number of retries for the task
|
|
@@ -32514,7 +32550,7 @@ components:
|
|
|
32514
32550
|
Action to perform on the environment module:
|
|
32515
32551
|
- Enable: Enable the module
|
|
32516
32552
|
- Disable: Disable the module
|
|
32517
|
-
- Upgrade: Upgrade the module
|
|
32553
|
+
- Upgrade: Upgrade the module
|
|
32518
32554
|
enum:
|
|
32519
32555
|
- Enable
|
|
32520
32556
|
- Disable
|
|
@@ -32528,12 +32564,20 @@ components:
|
|
|
32528
32564
|
description: Name of the environment module to update
|
|
32529
32565
|
action:
|
|
32530
32566
|
$ref: '#/components/schemas/environmentModuleAction'
|
|
32531
|
-
|
|
32532
|
-
type:
|
|
32533
|
-
|
|
32567
|
+
dryRun:
|
|
32568
|
+
type: boolean
|
|
32569
|
+
default: false
|
|
32570
|
+
description: For a supported quick install or upgrade action, only run synchronous checks when true. When false or omitted, repeat the checks and submit the asynchronous task if all checks pass.
|
|
32534
32571
|
required:
|
|
32535
32572
|
- name
|
|
32536
32573
|
- action
|
|
32574
|
+
environmentModuleActionResult:
|
|
32575
|
+
type: object
|
|
32576
|
+
description: Result of an environment module action. A successful dry run returns an empty object; an asynchronous action returns taskId; failed checks use the standard API error response.
|
|
32577
|
+
properties:
|
|
32578
|
+
taskId:
|
|
32579
|
+
type: string
|
|
32580
|
+
description: ID of the submitted asynchronous module action task. It is absent for successful dry runs; failed checks return an API error.
|
|
32537
32581
|
podResources:
|
|
32538
32582
|
type: object
|
|
32539
32583
|
description: Resource usage information for a pod
|
package/src/internalapi.yaml
CHANGED
|
@@ -694,11 +694,9 @@ paths:
|
|
|
694
694
|
content: {}
|
|
695
695
|
description: Returned when project is deleted successfully.
|
|
696
696
|
'401':
|
|
697
|
-
|
|
698
|
-
description: Unauthorized
|
|
697
|
+
$ref: '#/components/responses/401'
|
|
699
698
|
'403':
|
|
700
|
-
|
|
701
|
-
description: Forbidden
|
|
699
|
+
$ref: '#/components/responses/403'
|
|
702
700
|
tags:
|
|
703
701
|
- environment
|
|
704
702
|
/internal/v1/status:
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
* Status of environment module
|
|
18
|
+
* Status of an environment module. Enabled is only used as the desired state when creating an environment. NotInstalled, Installing, and InstallationFailed describe quick installation; Upgradeable, Upgrading, and UpgradeFailed describe quick upgrade. Upgradeable means the component is running but an ApeCloud-bundled newer version is available. Unknown means the current state could not be determined.
|
|
19
19
|
* @export
|
|
20
20
|
* @enum {string}
|
|
21
21
|
*/
|
|
@@ -25,7 +25,14 @@ export const EnvironmentModuleStatus = {
|
|
|
25
25
|
Updating: 'Updating',
|
|
26
26
|
Error: 'Error',
|
|
27
27
|
Disabled: 'Disabled',
|
|
28
|
-
Enabled: 'Enabled'
|
|
28
|
+
Enabled: 'Enabled',
|
|
29
|
+
NotInstalled: 'NotInstalled',
|
|
30
|
+
Installing: 'Installing',
|
|
31
|
+
InstallationFailed: 'InstallationFailed',
|
|
32
|
+
Upgradeable: 'Upgradeable',
|
|
33
|
+
Upgrading: 'Upgrading',
|
|
34
|
+
UpgradeFailed: 'UpgradeFailed',
|
|
35
|
+
Unknown: 'Unknown'
|
|
29
36
|
} as const;
|
|
30
37
|
|
|
31
38
|
export type EnvironmentModuleStatus = typeof EnvironmentModuleStatus[keyof typeof EnvironmentModuleStatus];
|
|
@@ -36,7 +36,7 @@ export interface EnvironmentModule {
|
|
|
36
36
|
*/
|
|
37
37
|
'name': string;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Currently installed environment module version
|
|
40
40
|
* @type {string}
|
|
41
41
|
* @memberof EnvironmentModule
|
|
42
42
|
*/
|
|
@@ -59,6 +59,12 @@ export interface EnvironmentModule {
|
|
|
59
59
|
* @memberof EnvironmentModule
|
|
60
60
|
*/
|
|
61
61
|
'location'?: string;
|
|
62
|
+
/**
|
|
63
|
+
* ID of the asynchronous task associated with the module\'s current operation state. It is omitted when the current state is not associated with a task.
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof EnvironmentModule
|
|
66
|
+
*/
|
|
67
|
+
'operationTaskId'?: string;
|
|
62
68
|
/**
|
|
63
69
|
*
|
|
64
70
|
* @type {ClusterInfo}
|
|
@@ -89,6 +95,12 @@ export interface EnvironmentModule {
|
|
|
89
95
|
* @memberof EnvironmentModule
|
|
90
96
|
*/
|
|
91
97
|
'defaultEnabled'?: boolean;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @type {LocalizedDescription}
|
|
101
|
+
* @memberof EnvironmentModule
|
|
102
|
+
*/
|
|
103
|
+
'actionWarning'?: LocalizedDescription;
|
|
92
104
|
}
|
|
93
105
|
|
|
94
106
|
|
|
@@ -619,6 +619,7 @@ export * from './task';
|
|
|
619
619
|
export * from './task-failure-policy';
|
|
620
620
|
export * from './task-list';
|
|
621
621
|
export * from './task-list-item';
|
|
622
|
+
export * from './task-retry-mode';
|
|
622
623
|
export * from './task-schedule';
|
|
623
624
|
export * from './task-schedule-type';
|
|
624
625
|
export * from './task-status';
|
|
@@ -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
|
+
* restart reruns all steps; resume preserves successful steps.
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
export const TaskRetryMode = {
|
|
24
|
+
restart: 'restart',
|
|
25
|
+
resume: 'resume'
|
|
26
|
+
} as const;
|
|
27
|
+
|
|
28
|
+
export type TaskRetryMode = typeof TaskRetryMode[keyof typeof TaskRetryMode];
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
@@ -18,6 +18,9 @@
|
|
|
18
18
|
import type { TaskFailurePolicy } from './task-failure-policy';
|
|
19
19
|
// May contain unused imports in some cases
|
|
20
20
|
// @ts-ignore
|
|
21
|
+
import type { TaskRetryMode } from './task-retry-mode';
|
|
22
|
+
// May contain unused imports in some cases
|
|
23
|
+
// @ts-ignore
|
|
21
24
|
import type { TaskSchedule } from './task-schedule';
|
|
22
25
|
// May contain unused imports in some cases
|
|
23
26
|
// @ts-ignore
|
|
@@ -122,6 +125,12 @@ export interface Task {
|
|
|
122
125
|
* @memberof Task
|
|
123
126
|
*/
|
|
124
127
|
'failurePolicy'?: TaskFailurePolicy;
|
|
128
|
+
/**
|
|
129
|
+
* Supported manual retry modes for this task. Runtime conflicts are checked when retrying.
|
|
130
|
+
* @type {Array<TaskRetryMode>}
|
|
131
|
+
* @memberof Task
|
|
132
|
+
*/
|
|
133
|
+
'retryModes'?: Array<TaskRetryMode>;
|
|
125
134
|
/**
|
|
126
135
|
* Maximum number of retries for the task
|
|
127
136
|
* @type {number}
|