kb-cloud-client-typescript 2.3.0-alpha.121 → 2.3.0-alpha.122

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/adminapi/models/account-option.d.ts +6 -0
  2. package/dist/adminapi/models/account-option.d.ts.map +1 -1
  3. package/dist/openapi/apis/account-api.d.ts +406 -0
  4. package/dist/openapi/apis/account-api.d.ts.map +1 -1
  5. package/dist/openapi/apis/account-api.js +427 -0
  6. package/dist/openapi/apis/account-api.js.map +1 -1
  7. package/dist/openapi/apis/rdbms-api.d.ts +406 -0
  8. package/dist/openapi/apis/rdbms-api.d.ts.map +1 -1
  9. package/dist/openapi/apis/rdbms-api.js +427 -0
  10. package/dist/openapi/apis/rdbms-api.js.map +1 -1
  11. package/dist/openapi/apis/shared-api.d.ts +406 -0
  12. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  13. package/dist/openapi/apis/shared-api.js +427 -0
  14. package/dist/openapi/apis/shared-api.js.map +1 -1
  15. package/dist/openapi/models/account-option.d.ts +6 -0
  16. package/dist/openapi/models/account-option.d.ts.map +1 -1
  17. package/dist/openapi/models/dms-service-account-create-request.d.ts +55 -0
  18. package/dist/openapi/models/dms-service-account-create-request.d.ts.map +1 -0
  19. package/dist/openapi/models/dms-service-account-create-request.js +16 -0
  20. package/dist/openapi/models/dms-service-account-create-request.js.map +1 -0
  21. package/dist/openapi/models/dms-service-account-status.d.ts +22 -0
  22. package/dist/openapi/models/dms-service-account-status.d.ts.map +1 -0
  23. package/dist/openapi/models/dms-service-account-status.js +26 -0
  24. package/dist/openapi/models/dms-service-account-status.js.map +1 -0
  25. package/dist/openapi/models/dms-service-account-update-request.d.ts +32 -0
  26. package/dist/openapi/models/dms-service-account-update-request.d.ts.map +1 -0
  27. package/dist/openapi/models/dms-service-account-update-request.js +16 -0
  28. package/dist/openapi/models/dms-service-account-update-request.js.map +1 -0
  29. package/dist/openapi/models/dms-service-account.d.ts +73 -0
  30. package/dist/openapi/models/dms-service-account.d.ts.map +1 -0
  31. package/dist/openapi/models/dms-service-account.js +16 -0
  32. package/dist/openapi/models/dms-service-account.js.map +1 -0
  33. package/dist/openapi/models/index.d.ts +4 -0
  34. package/dist/openapi/models/index.d.ts.map +1 -1
  35. package/dist/openapi/models/index.js +4 -0
  36. package/dist/openapi/models/index.js.map +1 -1
  37. package/package.json +1 -1
  38. package/src/adminapi/models/account-option.ts +6 -0
  39. package/src/adminapi.yaml +3 -0
  40. package/src/openapi/.openapi-generator/FILES +4 -0
  41. package/src/openapi/apis/account-api.ts +703 -0
  42. package/src/openapi/apis/rdbms-api.ts +703 -0
  43. package/src/openapi/apis/shared-api.ts +703 -0
  44. package/src/openapi/models/account-option.ts +6 -0
  45. package/src/openapi/models/dms-service-account-create-request.ts +60 -0
  46. package/src/openapi/models/dms-service-account-status.ts +31 -0
  47. package/src/openapi/models/dms-service-account-update-request.ts +41 -0
  48. package/src/openapi/models/dms-service-account.ts +78 -0
  49. package/src/openapi/models/index.ts +4 -0
  50. package/src/openapi.yaml +333 -0
@@ -80,6 +80,12 @@ export interface AccountOption {
80
80
  * @memberof AccountOption
81
81
  */
82
82
  'supportLock'?: boolean;
83
+ /**
84
+ * Whether the engine supports service account access-key management.
85
+ * @type {boolean}
86
+ * @memberof AccountOption
87
+ */
88
+ 'supportServiceAccount'?: boolean;
83
89
  /**
84
90
  * Account names that are protected from update, delete, lock, and unlock actions.
85
91
  * @type {Array<string>}
@@ -0,0 +1,60 @@
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
+ * MinIO service account access-key create request
19
+ * @export
20
+ * @interface DmsServiceAccountCreateRequest
21
+ */
22
+ export interface DmsServiceAccountCreateRequest {
23
+ /**
24
+ * MinIO user that owns the service account.
25
+ * @type {string}
26
+ * @memberof DmsServiceAccountCreateRequest
27
+ */
28
+ 'userName': string;
29
+ /**
30
+ * Optional fixed access key. If omitted, MinIO generates it.
31
+ * @type {string}
32
+ * @memberof DmsServiceAccountCreateRequest
33
+ */
34
+ 'accessKey'?: string;
35
+ /**
36
+ * Optional fixed secret key. If omitted, MinIO generates it.
37
+ * @type {string}
38
+ * @memberof DmsServiceAccountCreateRequest
39
+ */
40
+ 'secretKey'?: string;
41
+ /**
42
+ * Display name of the service account.
43
+ * @type {string}
44
+ * @memberof DmsServiceAccountCreateRequest
45
+ */
46
+ 'name'?: string;
47
+ /**
48
+ * Description of the service account.
49
+ * @type {string}
50
+ * @memberof DmsServiceAccountCreateRequest
51
+ */
52
+ 'description'?: string;
53
+ /**
54
+ * Optional service account expiration time.
55
+ * @type {string}
56
+ * @memberof DmsServiceAccountCreateRequest
57
+ */
58
+ 'expiration'?: string;
59
+ }
60
+
@@ -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
+ * MinIO service account status.
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+
23
+ export const DmsServiceAccountStatus = {
24
+ enabled: 'enabled',
25
+ disabled: 'disabled'
26
+ } as const;
27
+
28
+ export type DmsServiceAccountStatus = typeof DmsServiceAccountStatus[keyof typeof DmsServiceAccountStatus];
29
+
30
+
31
+
@@ -0,0 +1,41 @@
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
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import type { DmsServiceAccountStatus } from './dms-service-account-status';
19
+
20
+ /**
21
+ * MinIO service account access-key update request
22
+ * @export
23
+ * @interface DmsServiceAccountUpdateRequest
24
+ */
25
+ export interface DmsServiceAccountUpdateRequest {
26
+ /**
27
+ *
28
+ * @type {DmsServiceAccountStatus}
29
+ * @memberof DmsServiceAccountUpdateRequest
30
+ */
31
+ 'status'?: DmsServiceAccountStatus;
32
+ /**
33
+ * Optional service account expiration time. Use the Unix epoch to clear expiration.
34
+ * @type {string}
35
+ * @memberof DmsServiceAccountUpdateRequest
36
+ */
37
+ 'expiration'?: string;
38
+ }
39
+
40
+
41
+
@@ -0,0 +1,78 @@
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
+ * MinIO service account access-key
19
+ * @export
20
+ * @interface DmsServiceAccount
21
+ */
22
+ export interface DmsServiceAccount {
23
+ /**
24
+ * MinIO user that owns the service account.
25
+ * @type {string}
26
+ * @memberof DmsServiceAccount
27
+ */
28
+ 'userName'?: string;
29
+ /**
30
+ * Service account access key.
31
+ * @type {string}
32
+ * @memberof DmsServiceAccount
33
+ */
34
+ 'accessKey'?: string;
35
+ /**
36
+ * Secret key returned only by create.
37
+ * @type {string}
38
+ * @memberof DmsServiceAccount
39
+ */
40
+ 'secretKey'?: string;
41
+ /**
42
+ * Service account status.
43
+ * @type {string}
44
+ * @memberof DmsServiceAccount
45
+ */
46
+ 'status'?: string;
47
+ /**
48
+ * Display name of the service account.
49
+ * @type {string}
50
+ * @memberof DmsServiceAccount
51
+ */
52
+ 'name'?: string;
53
+ /**
54
+ * Description of the service account.
55
+ * @type {string}
56
+ * @memberof DmsServiceAccount
57
+ */
58
+ 'description'?: string;
59
+ /**
60
+ * Service account expiration time.
61
+ * @type {string}
62
+ * @memberof DmsServiceAccount
63
+ */
64
+ 'expiration'?: string;
65
+ /**
66
+ * Service account policy text.
67
+ * @type {string}
68
+ * @memberof DmsServiceAccount
69
+ */
70
+ 'policy'?: string;
71
+ /**
72
+ * Whether the policy is implied from the parent user.
73
+ * @type {boolean}
74
+ * @memberof DmsServiceAccount
75
+ */
76
+ 'impliedPolicy'?: boolean;
77
+ }
78
+
@@ -290,6 +290,10 @@ export * from './dms-query-request';
290
290
  export * from './dms-query-response';
291
291
  export * from './dms-result';
292
292
  export * from './dms-result-stats';
293
+ export * from './dms-service-account';
294
+ export * from './dms-service-account-create-request';
295
+ export * from './dms-service-account-status';
296
+ export * from './dms-service-account-update-request';
293
297
  export * from './dms-session';
294
298
  export * from './dms-table-column';
295
299
  export * from './dms-table-column-generated';
package/src/openapi.yaml CHANGED
@@ -13963,6 +13963,257 @@ paths:
13963
13963
  - account
13964
13964
  - rdbms
13965
13965
  - shared
13966
+ /api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/access-keys:
13967
+ get:
13968
+ description: list MinIO service account access keys
13969
+ summary: List MinIO access keys
13970
+ operationId: listServiceAccounts
13971
+ parameters:
13972
+ - description: name of the engine
13973
+ in: path
13974
+ name: engineName
13975
+ required: true
13976
+ schema:
13977
+ type: string
13978
+ - description: name of the organization
13979
+ in: path
13980
+ name: orgName
13981
+ required: true
13982
+ schema:
13983
+ type: string
13984
+ - description: name of the cluster
13985
+ in: path
13986
+ name: clusterName
13987
+ required: true
13988
+ schema:
13989
+ type: string
13990
+ - description: MinIO user that owns the service accounts
13991
+ in: query
13992
+ name: userName
13993
+ required: false
13994
+ schema:
13995
+ type: string
13996
+ responses:
13997
+ '200':
13998
+ description: list MinIO access keys success
13999
+ content:
14000
+ application/json:
14001
+ schema:
14002
+ $ref: '#/components/schemas/DmsServiceAccountList'
14003
+ '401':
14004
+ $ref: '#/components/responses/401'
14005
+ '403':
14006
+ $ref: '#/components/responses/403'
14007
+ '404':
14008
+ $ref: '#/components/responses/404'
14009
+ '500':
14010
+ $ref: '#/components/responses/500'
14011
+ tags:
14012
+ - account
14013
+ - rdbms
14014
+ - shared
14015
+ post:
14016
+ description: create a MinIO service account access key
14017
+ summary: Create MinIO access key
14018
+ operationId: createServiceAccount
14019
+ parameters:
14020
+ - description: name of the engine
14021
+ in: path
14022
+ name: engineName
14023
+ required: true
14024
+ schema:
14025
+ type: string
14026
+ - description: name of the organization
14027
+ in: path
14028
+ name: orgName
14029
+ required: true
14030
+ schema:
14031
+ type: string
14032
+ - description: name of the cluster
14033
+ in: path
14034
+ name: clusterName
14035
+ required: true
14036
+ schema:
14037
+ type: string
14038
+ requestBody:
14039
+ content:
14040
+ application/json:
14041
+ schema:
14042
+ $ref: '#/components/schemas/DmsServiceAccountCreateRequest'
14043
+ required: true
14044
+ responses:
14045
+ '201':
14046
+ description: create MinIO access key success
14047
+ content:
14048
+ application/json:
14049
+ schema:
14050
+ $ref: '#/components/schemas/DmsServiceAccount'
14051
+ '400':
14052
+ $ref: '#/components/responses/400'
14053
+ '401':
14054
+ $ref: '#/components/responses/401'
14055
+ '403':
14056
+ $ref: '#/components/responses/403'
14057
+ '404':
14058
+ $ref: '#/components/responses/404'
14059
+ '500':
14060
+ $ref: '#/components/responses/500'
14061
+ tags:
14062
+ - account
14063
+ - rdbms
14064
+ - shared
14065
+ x-codegen-request-body-name: body
14066
+ /api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/access-keys/{accessKey}:
14067
+ get:
14068
+ description: get a MinIO service account access key
14069
+ summary: Get MinIO access key
14070
+ operationId: getServiceAccount
14071
+ parameters:
14072
+ - description: name of the engine
14073
+ in: path
14074
+ name: engineName
14075
+ required: true
14076
+ schema:
14077
+ type: string
14078
+ - description: name of the organization
14079
+ in: path
14080
+ name: orgName
14081
+ required: true
14082
+ schema:
14083
+ type: string
14084
+ - description: name of the cluster
14085
+ in: path
14086
+ name: clusterName
14087
+ required: true
14088
+ schema:
14089
+ type: string
14090
+ - description: MinIO access key
14091
+ in: path
14092
+ name: accessKey
14093
+ required: true
14094
+ schema:
14095
+ type: string
14096
+ responses:
14097
+ '200':
14098
+ description: get MinIO access key success
14099
+ content:
14100
+ application/json:
14101
+ schema:
14102
+ $ref: '#/components/schemas/DmsServiceAccount'
14103
+ '401':
14104
+ $ref: '#/components/responses/401'
14105
+ '403':
14106
+ $ref: '#/components/responses/403'
14107
+ '404':
14108
+ $ref: '#/components/responses/404'
14109
+ '500':
14110
+ $ref: '#/components/responses/500'
14111
+ tags:
14112
+ - account
14113
+ - rdbms
14114
+ - shared
14115
+ patch:
14116
+ description: update a MinIO service account access key
14117
+ summary: Update MinIO access key
14118
+ operationId: updateServiceAccount
14119
+ parameters:
14120
+ - description: name of the engine
14121
+ in: path
14122
+ name: engineName
14123
+ required: true
14124
+ schema:
14125
+ type: string
14126
+ - description: name of the organization
14127
+ in: path
14128
+ name: orgName
14129
+ required: true
14130
+ schema:
14131
+ type: string
14132
+ - description: name of the cluster
14133
+ in: path
14134
+ name: clusterName
14135
+ required: true
14136
+ schema:
14137
+ type: string
14138
+ - description: MinIO access key
14139
+ in: path
14140
+ name: accessKey
14141
+ required: true
14142
+ schema:
14143
+ type: string
14144
+ requestBody:
14145
+ content:
14146
+ application/json:
14147
+ schema:
14148
+ $ref: '#/components/schemas/DmsServiceAccountUpdateRequest'
14149
+ required: true
14150
+ responses:
14151
+ '200':
14152
+ description: update MinIO access key success
14153
+ content:
14154
+ application/json:
14155
+ schema:
14156
+ $ref: '#/components/schemas/DmsServiceAccount'
14157
+ '400':
14158
+ $ref: '#/components/responses/400'
14159
+ '401':
14160
+ $ref: '#/components/responses/401'
14161
+ '403':
14162
+ $ref: '#/components/responses/403'
14163
+ '404':
14164
+ $ref: '#/components/responses/404'
14165
+ '500':
14166
+ $ref: '#/components/responses/500'
14167
+ tags:
14168
+ - account
14169
+ - rdbms
14170
+ - shared
14171
+ x-codegen-request-body-name: body
14172
+ delete:
14173
+ description: delete a MinIO service account access key
14174
+ summary: Delete MinIO access key
14175
+ operationId: deleteServiceAccount
14176
+ parameters:
14177
+ - description: name of the engine
14178
+ in: path
14179
+ name: engineName
14180
+ required: true
14181
+ schema:
14182
+ type: string
14183
+ - description: name of the organization
14184
+ in: path
14185
+ name: orgName
14186
+ required: true
14187
+ schema:
14188
+ type: string
14189
+ - description: name of the cluster
14190
+ in: path
14191
+ name: clusterName
14192
+ required: true
14193
+ schema:
14194
+ type: string
14195
+ - description: MinIO access key
14196
+ in: path
14197
+ name: accessKey
14198
+ required: true
14199
+ schema:
14200
+ type: string
14201
+ responses:
14202
+ '204':
14203
+ content: {}
14204
+ description: Returned when access key is deleted successfully.
14205
+ '401':
14206
+ $ref: '#/components/responses/401'
14207
+ '403':
14208
+ $ref: '#/components/responses/403'
14209
+ '404':
14210
+ $ref: '#/components/responses/404'
14211
+ '500':
14212
+ $ref: '#/components/responses/500'
14213
+ tags:
14214
+ - account
14215
+ - rdbms
14216
+ - shared
13966
14217
  /api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/sessions:
13967
14218
  get:
13968
14219
  description: list sessions in cluster
@@ -24420,6 +24671,9 @@ components:
24420
24671
  supportLock:
24421
24672
  type: boolean
24422
24673
  description: Whether the engine supports account lock and unlock actions.
24674
+ supportServiceAccount:
24675
+ type: boolean
24676
+ description: Whether the engine supports service account access-key management.
24423
24677
  protectedAccounts:
24424
24678
  type: array
24425
24679
  description: Account names that are protected from update, delete, lock, and unlock actions.
@@ -29311,6 +29565,85 @@ components:
29311
29565
  required:
29312
29566
  - name
29313
29567
  type: object
29568
+ DmsServiceAccount:
29569
+ description: MinIO service account access-key
29570
+ type: object
29571
+ properties:
29572
+ userName:
29573
+ type: string
29574
+ description: MinIO user that owns the service account.
29575
+ accessKey:
29576
+ type: string
29577
+ description: Service account access key.
29578
+ secretKey:
29579
+ type: string
29580
+ description: Secret key returned only by create.
29581
+ status:
29582
+ type: string
29583
+ description: Service account status.
29584
+ name:
29585
+ type: string
29586
+ description: Display name of the service account.
29587
+ description:
29588
+ type: string
29589
+ description: Description of the service account.
29590
+ expiration:
29591
+ type: string
29592
+ format: date-time
29593
+ description: Service account expiration time.
29594
+ policy:
29595
+ type: string
29596
+ description: Service account policy text.
29597
+ impliedPolicy:
29598
+ type: boolean
29599
+ description: Whether the policy is implied from the parent user.
29600
+ DmsServiceAccountList:
29601
+ description: MinIO service account access-key list
29602
+ type: array
29603
+ items:
29604
+ $ref: '#/components/schemas/DmsServiceAccount'
29605
+ DmsServiceAccountCreateRequest:
29606
+ description: MinIO service account access-key create request
29607
+ type: object
29608
+ required:
29609
+ - userName
29610
+ properties:
29611
+ userName:
29612
+ type: string
29613
+ description: MinIO user that owns the service account.
29614
+ accessKey:
29615
+ type: string
29616
+ description: Optional fixed access key. If omitted, MinIO generates it.
29617
+ secretKey:
29618
+ type: string
29619
+ description: Optional fixed secret key. If omitted, MinIO generates it.
29620
+ name:
29621
+ type: string
29622
+ description: Display name of the service account.
29623
+ description:
29624
+ type: string
29625
+ description: Description of the service account.
29626
+ expiration:
29627
+ type: string
29628
+ format: date-time
29629
+ description: Optional service account expiration time.
29630
+ DmsServiceAccountStatus:
29631
+ description: MinIO service account status.
29632
+ type: string
29633
+ enum:
29634
+ - enabled
29635
+ - disabled
29636
+ DmsServiceAccountUpdateRequest:
29637
+ description: MinIO service account access-key update request
29638
+ type: object
29639
+ properties:
29640
+ status:
29641
+ $ref: '#/components/schemas/DmsServiceAccountStatus'
29642
+ description: Optional service account status.
29643
+ expiration:
29644
+ type: string
29645
+ format: date-time
29646
+ description: Optional service account expiration time. Use the Unix epoch to clear expiration.
29314
29647
  dbTDERequest:
29315
29648
  type: object
29316
29649
  properties: