kb-cloud-client-typescript 2.2.127 → 2.2.129
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/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 +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/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/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +1 -0
- package/src/adminapi/apis/environment-api.ts +15 -15
- 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 +1 -0
- package/src/adminapi.yaml +82 -62
- package/src/internalapi.yaml +2 -4
- package/src/openapi/models/environment-module-status.ts +9 -2
- package/src/openapi/models/environment-module.ts +13 -1
- package/src/openapi.yaml +66 -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':
|
|
@@ -14019,7 +14021,8 @@ paths:
|
|
|
14019
14021
|
- environment
|
|
14020
14022
|
patch:
|
|
14021
14023
|
operationId: updateEnvironmentModule
|
|
14022
|
-
summary:
|
|
14024
|
+
summary: Update an environment module
|
|
14025
|
+
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
14026
|
parameters:
|
|
14024
14027
|
- name: environmentName
|
|
14025
14028
|
in: path
|
|
@@ -14034,15 +14037,11 @@ paths:
|
|
|
14034
14037
|
$ref: '#/components/schemas/environmentModuleUpdate'
|
|
14035
14038
|
responses:
|
|
14036
14039
|
'200':
|
|
14037
|
-
description:
|
|
14040
|
+
description: The module action succeeded. A successful dry run returns an empty object; an asynchronous action returns taskId.
|
|
14038
14041
|
content:
|
|
14039
14042
|
application/json:
|
|
14040
14043
|
schema:
|
|
14041
|
-
|
|
14042
|
-
properties:
|
|
14043
|
-
taskId:
|
|
14044
|
-
type: string
|
|
14045
|
-
description: the task id
|
|
14044
|
+
$ref: '#/components/schemas/environmentModuleActionResult'
|
|
14046
14045
|
'400':
|
|
14047
14046
|
$ref: '#/components/responses/400'
|
|
14048
14047
|
'401':
|
|
@@ -16906,7 +16905,7 @@ paths:
|
|
|
16906
16905
|
$ref: '#/components/schemas/accountList'
|
|
16907
16906
|
description: Success
|
|
16908
16907
|
'400':
|
|
16909
|
-
|
|
16908
|
+
$ref: '#/components/responses/400'
|
|
16910
16909
|
'401':
|
|
16911
16910
|
$ref: '#/components/responses/401'
|
|
16912
16911
|
'403':
|
|
@@ -16914,9 +16913,9 @@ paths:
|
|
|
16914
16913
|
'404':
|
|
16915
16914
|
$ref: '#/components/responses/404'
|
|
16916
16915
|
'409':
|
|
16917
|
-
|
|
16916
|
+
$ref: '#/components/responses/409'
|
|
16918
16917
|
'503':
|
|
16919
|
-
|
|
16918
|
+
$ref: '#/components/responses/503'
|
|
16920
16919
|
tags:
|
|
16921
16920
|
- account
|
|
16922
16921
|
- seaweedfs
|
|
@@ -16953,7 +16952,7 @@ paths:
|
|
|
16953
16952
|
schema:
|
|
16954
16953
|
$ref: '#/components/schemas/account'
|
|
16955
16954
|
'400':
|
|
16956
|
-
|
|
16955
|
+
$ref: '#/components/responses/400'
|
|
16957
16956
|
'401':
|
|
16958
16957
|
$ref: '#/components/responses/401'
|
|
16959
16958
|
'403':
|
|
@@ -16961,9 +16960,9 @@ paths:
|
|
|
16961
16960
|
'404':
|
|
16962
16961
|
$ref: '#/components/responses/404'
|
|
16963
16962
|
'409':
|
|
16964
|
-
|
|
16963
|
+
$ref: '#/components/responses/409'
|
|
16965
16964
|
'503':
|
|
16966
|
-
|
|
16965
|
+
$ref: '#/components/responses/503'
|
|
16967
16966
|
tags:
|
|
16968
16967
|
- account
|
|
16969
16968
|
- seaweedfs
|
|
@@ -16998,7 +16997,7 @@ paths:
|
|
|
16998
16997
|
content: {}
|
|
16999
16998
|
description: Identity deleted
|
|
17000
16999
|
'400':
|
|
17001
|
-
|
|
17000
|
+
$ref: '#/components/responses/400'
|
|
17002
17001
|
'401':
|
|
17003
17002
|
$ref: '#/components/responses/401'
|
|
17004
17003
|
'403':
|
|
@@ -17006,9 +17005,9 @@ paths:
|
|
|
17006
17005
|
'404':
|
|
17007
17006
|
$ref: '#/components/responses/404'
|
|
17008
17007
|
'409':
|
|
17009
|
-
|
|
17008
|
+
$ref: '#/components/responses/409'
|
|
17010
17009
|
'503':
|
|
17011
|
-
|
|
17010
|
+
$ref: '#/components/responses/503'
|
|
17012
17011
|
tags:
|
|
17013
17012
|
- account
|
|
17014
17013
|
- seaweedfs
|
|
@@ -17050,7 +17049,7 @@ paths:
|
|
|
17050
17049
|
schema:
|
|
17051
17050
|
$ref: '#/components/schemas/account'
|
|
17052
17051
|
'400':
|
|
17053
|
-
|
|
17052
|
+
$ref: '#/components/responses/400'
|
|
17054
17053
|
'401':
|
|
17055
17054
|
$ref: '#/components/responses/401'
|
|
17056
17055
|
'403':
|
|
@@ -17058,9 +17057,9 @@ paths:
|
|
|
17058
17057
|
'404':
|
|
17059
17058
|
$ref: '#/components/responses/404'
|
|
17060
17059
|
'409':
|
|
17061
|
-
|
|
17060
|
+
$ref: '#/components/responses/409'
|
|
17062
17061
|
'503':
|
|
17063
|
-
|
|
17062
|
+
$ref: '#/components/responses/503'
|
|
17064
17063
|
tags:
|
|
17065
17064
|
- account
|
|
17066
17065
|
- seaweedfs
|
|
@@ -17149,7 +17148,7 @@ paths:
|
|
|
17149
17148
|
required: true
|
|
17150
17149
|
responses:
|
|
17151
17150
|
'400':
|
|
17152
|
-
|
|
17151
|
+
$ref: '#/components/responses/400'
|
|
17153
17152
|
tags:
|
|
17154
17153
|
- account
|
|
17155
17154
|
- seaweedfs
|
|
@@ -17198,17 +17197,17 @@ paths:
|
|
|
17198
17197
|
type: object
|
|
17199
17198
|
additionalProperties: true
|
|
17200
17199
|
'400':
|
|
17201
|
-
|
|
17200
|
+
$ref: '#/components/responses/400'
|
|
17202
17201
|
'401':
|
|
17203
|
-
|
|
17202
|
+
$ref: '#/components/responses/401'
|
|
17204
17203
|
'403':
|
|
17205
|
-
|
|
17204
|
+
$ref: '#/components/responses/403'
|
|
17206
17205
|
'404':
|
|
17207
|
-
|
|
17206
|
+
$ref: '#/components/responses/404'
|
|
17208
17207
|
'409':
|
|
17209
|
-
|
|
17208
|
+
$ref: '#/components/responses/409'
|
|
17210
17209
|
'503':
|
|
17211
|
-
|
|
17210
|
+
$ref: '#/components/responses/503'
|
|
17212
17211
|
/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/policies/{policyName}:
|
|
17213
17212
|
put:
|
|
17214
17213
|
summary: putSeaweedFSPolicy
|
|
@@ -17237,17 +17236,17 @@ paths:
|
|
|
17237
17236
|
'204':
|
|
17238
17237
|
description: Successful response
|
|
17239
17238
|
'400':
|
|
17240
|
-
|
|
17239
|
+
$ref: '#/components/responses/400'
|
|
17241
17240
|
'401':
|
|
17242
|
-
|
|
17241
|
+
$ref: '#/components/responses/401'
|
|
17243
17242
|
'403':
|
|
17244
|
-
|
|
17243
|
+
$ref: '#/components/responses/403'
|
|
17245
17244
|
'404':
|
|
17246
|
-
|
|
17245
|
+
$ref: '#/components/responses/404'
|
|
17247
17246
|
'409':
|
|
17248
|
-
|
|
17247
|
+
$ref: '#/components/responses/409'
|
|
17249
17248
|
'503':
|
|
17250
|
-
|
|
17249
|
+
$ref: '#/components/responses/503'
|
|
17251
17250
|
requestBody:
|
|
17252
17251
|
required: true
|
|
17253
17252
|
content:
|
|
@@ -17283,17 +17282,17 @@ paths:
|
|
|
17283
17282
|
'204':
|
|
17284
17283
|
description: Successful response
|
|
17285
17284
|
'400':
|
|
17286
|
-
|
|
17285
|
+
$ref: '#/components/responses/400'
|
|
17287
17286
|
'401':
|
|
17288
|
-
|
|
17287
|
+
$ref: '#/components/responses/401'
|
|
17289
17288
|
'403':
|
|
17290
|
-
|
|
17289
|
+
$ref: '#/components/responses/403'
|
|
17291
17290
|
'404':
|
|
17292
|
-
|
|
17291
|
+
$ref: '#/components/responses/404'
|
|
17293
17292
|
'409':
|
|
17294
|
-
|
|
17293
|
+
$ref: '#/components/responses/409'
|
|
17295
17294
|
'503':
|
|
17296
|
-
|
|
17295
|
+
$ref: '#/components/responses/503'
|
|
17297
17296
|
description: Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
|
|
17298
17297
|
/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/policies:
|
|
17299
17298
|
put:
|
|
@@ -17323,17 +17322,17 @@ paths:
|
|
|
17323
17322
|
'204':
|
|
17324
17323
|
description: Successful response
|
|
17325
17324
|
'400':
|
|
17326
|
-
|
|
17325
|
+
$ref: '#/components/responses/400'
|
|
17327
17326
|
'401':
|
|
17328
|
-
|
|
17327
|
+
$ref: '#/components/responses/401'
|
|
17329
17328
|
'403':
|
|
17330
|
-
|
|
17329
|
+
$ref: '#/components/responses/403'
|
|
17331
17330
|
'404':
|
|
17332
|
-
|
|
17331
|
+
$ref: '#/components/responses/404'
|
|
17333
17332
|
'409':
|
|
17334
|
-
|
|
17333
|
+
$ref: '#/components/responses/409'
|
|
17335
17334
|
'503':
|
|
17336
|
-
|
|
17335
|
+
$ref: '#/components/responses/503'
|
|
17337
17336
|
requestBody:
|
|
17338
17337
|
required: true
|
|
17339
17338
|
content:
|
|
@@ -17380,17 +17379,17 @@ paths:
|
|
|
17380
17379
|
schema:
|
|
17381
17380
|
$ref: '#/components/schemas/account'
|
|
17382
17381
|
'400':
|
|
17383
|
-
|
|
17382
|
+
$ref: '#/components/responses/400'
|
|
17384
17383
|
'401':
|
|
17385
|
-
|
|
17384
|
+
$ref: '#/components/responses/401'
|
|
17386
17385
|
'403':
|
|
17387
|
-
|
|
17386
|
+
$ref: '#/components/responses/403'
|
|
17388
17387
|
'404':
|
|
17389
|
-
|
|
17388
|
+
$ref: '#/components/responses/404'
|
|
17390
17389
|
'409':
|
|
17391
|
-
|
|
17390
|
+
$ref: '#/components/responses/409'
|
|
17392
17391
|
'503':
|
|
17393
|
-
|
|
17392
|
+
$ref: '#/components/responses/503'
|
|
17394
17393
|
requestBody:
|
|
17395
17394
|
required: true
|
|
17396
17395
|
content:
|
|
@@ -17431,17 +17430,17 @@ paths:
|
|
|
17431
17430
|
'204':
|
|
17432
17431
|
description: Successful response
|
|
17433
17432
|
'400':
|
|
17434
|
-
|
|
17433
|
+
$ref: '#/components/responses/400'
|
|
17435
17434
|
'401':
|
|
17436
|
-
|
|
17435
|
+
$ref: '#/components/responses/401'
|
|
17437
17436
|
'403':
|
|
17438
|
-
|
|
17437
|
+
$ref: '#/components/responses/403'
|
|
17439
17438
|
'404':
|
|
17440
|
-
|
|
17439
|
+
$ref: '#/components/responses/404'
|
|
17441
17440
|
'409':
|
|
17442
|
-
|
|
17441
|
+
$ref: '#/components/responses/409'
|
|
17443
17442
|
'503':
|
|
17444
|
-
|
|
17443
|
+
$ref: '#/components/responses/503'
|
|
17445
17444
|
/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts:
|
|
17446
17445
|
get:
|
|
17447
17446
|
description: list accounts in cluster
|
|
@@ -24861,13 +24860,20 @@ components:
|
|
|
24861
24860
|
description: judge whether to set the backup is default which will be init
|
|
24862
24861
|
environmentModuleStatus:
|
|
24863
24862
|
type: string
|
|
24864
|
-
description: Status of environment module
|
|
24863
|
+
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
24864
|
enum:
|
|
24866
24865
|
- Running
|
|
24867
24866
|
- Updating
|
|
24868
24867
|
- Error
|
|
24869
24868
|
- Disabled
|
|
24870
24869
|
- Enabled
|
|
24870
|
+
- NotInstalled
|
|
24871
|
+
- Installing
|
|
24872
|
+
- InstallationFailed
|
|
24873
|
+
- Upgradeable
|
|
24874
|
+
- Upgrading
|
|
24875
|
+
- UpgradeFailed
|
|
24876
|
+
- Unknown
|
|
24871
24877
|
clusterInfo:
|
|
24872
24878
|
type: object
|
|
24873
24879
|
description: Cluster information
|
|
@@ -24890,7 +24896,7 @@ components:
|
|
|
24890
24896
|
description: Environment module name
|
|
24891
24897
|
version:
|
|
24892
24898
|
type: string
|
|
24893
|
-
description:
|
|
24899
|
+
description: Currently installed environment module version
|
|
24894
24900
|
status:
|
|
24895
24901
|
$ref: '#/components/schemas/environmentModuleStatus'
|
|
24896
24902
|
replicas:
|
|
@@ -24899,6 +24905,9 @@ components:
|
|
|
24899
24905
|
location:
|
|
24900
24906
|
type: string
|
|
24901
24907
|
description: Deployment location
|
|
24908
|
+
operationTaskId:
|
|
24909
|
+
type: string
|
|
24910
|
+
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
24911
|
clusterInfo:
|
|
24903
24912
|
$ref: '#/components/schemas/clusterInfo'
|
|
24904
24913
|
description: Cluster information
|
|
@@ -24914,6 +24923,9 @@ components:
|
|
|
24914
24923
|
defaultEnabled:
|
|
24915
24924
|
type: boolean
|
|
24916
24925
|
description: indicate whether module is enabled by default when creating environment. Only effective when optional is true
|
|
24926
|
+
actionWarning:
|
|
24927
|
+
$ref: '#/components/schemas/localizedDescription'
|
|
24928
|
+
description: Localized business-impact warning for the component action represented by the current status.
|
|
24917
24929
|
required:
|
|
24918
24930
|
- name
|
|
24919
24931
|
- status
|
|
@@ -32514,7 +32526,7 @@ components:
|
|
|
32514
32526
|
Action to perform on the environment module:
|
|
32515
32527
|
- Enable: Enable the module
|
|
32516
32528
|
- Disable: Disable the module
|
|
32517
|
-
- Upgrade: Upgrade the module
|
|
32529
|
+
- Upgrade: Upgrade the module
|
|
32518
32530
|
enum:
|
|
32519
32531
|
- Enable
|
|
32520
32532
|
- Disable
|
|
@@ -32528,12 +32540,20 @@ components:
|
|
|
32528
32540
|
description: Name of the environment module to update
|
|
32529
32541
|
action:
|
|
32530
32542
|
$ref: '#/components/schemas/environmentModuleAction'
|
|
32531
|
-
|
|
32532
|
-
type:
|
|
32533
|
-
|
|
32543
|
+
dryRun:
|
|
32544
|
+
type: boolean
|
|
32545
|
+
default: false
|
|
32546
|
+
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
32547
|
required:
|
|
32535
32548
|
- name
|
|
32536
32549
|
- action
|
|
32550
|
+
environmentModuleActionResult:
|
|
32551
|
+
type: object
|
|
32552
|
+
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.
|
|
32553
|
+
properties:
|
|
32554
|
+
taskId:
|
|
32555
|
+
type: string
|
|
32556
|
+
description: ID of the submitted asynchronous module action task. It is absent for successful dry runs; failed checks return an API error.
|
|
32537
32557
|
podResources:
|
|
32538
32558
|
type: object
|
|
32539
32559
|
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
|
|