kb-cloud-client-typescript 2.3.0-alpha.123 → 2.3.0-alpha.124

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 (43) hide show
  1. package/dist/adminapi/apis/account-api.d.ts +406 -0
  2. package/dist/adminapi/apis/account-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/account-api.js +427 -0
  4. package/dist/adminapi/apis/account-api.js.map +1 -1
  5. package/dist/adminapi/apis/rdbms-api.d.ts +406 -0
  6. package/dist/adminapi/apis/rdbms-api.d.ts.map +1 -1
  7. package/dist/adminapi/apis/rdbms-api.js +427 -0
  8. package/dist/adminapi/apis/rdbms-api.js.map +1 -1
  9. package/dist/adminapi/apis/shared-api.d.ts +406 -0
  10. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  11. package/dist/adminapi/apis/shared-api.js +427 -0
  12. package/dist/adminapi/apis/shared-api.js.map +1 -1
  13. package/dist/adminapi/models/dms-service-account-create-request.d.ts +55 -0
  14. package/dist/adminapi/models/dms-service-account-create-request.d.ts.map +1 -0
  15. package/dist/adminapi/models/dms-service-account-create-request.js +16 -0
  16. package/dist/adminapi/models/dms-service-account-create-request.js.map +1 -0
  17. package/dist/adminapi/models/dms-service-account-status.d.ts +22 -0
  18. package/dist/adminapi/models/dms-service-account-status.d.ts.map +1 -0
  19. package/dist/adminapi/models/dms-service-account-status.js +26 -0
  20. package/dist/adminapi/models/dms-service-account-status.js.map +1 -0
  21. package/dist/adminapi/models/dms-service-account-update-request.d.ts +32 -0
  22. package/dist/adminapi/models/dms-service-account-update-request.d.ts.map +1 -0
  23. package/dist/adminapi/models/dms-service-account-update-request.js +16 -0
  24. package/dist/adminapi/models/dms-service-account-update-request.js.map +1 -0
  25. package/dist/adminapi/models/dms-service-account.d.ts +73 -0
  26. package/dist/adminapi/models/dms-service-account.d.ts.map +1 -0
  27. package/dist/adminapi/models/dms-service-account.js +16 -0
  28. package/dist/adminapi/models/dms-service-account.js.map +1 -0
  29. package/dist/adminapi/models/index.d.ts +4 -0
  30. package/dist/adminapi/models/index.d.ts.map +1 -1
  31. package/dist/adminapi/models/index.js +4 -0
  32. package/dist/adminapi/models/index.js.map +1 -1
  33. package/package.json +1 -1
  34. package/src/adminapi/.openapi-generator/FILES +4 -0
  35. package/src/adminapi/apis/account-api.ts +703 -0
  36. package/src/adminapi/apis/rdbms-api.ts +703 -0
  37. package/src/adminapi/apis/shared-api.ts +703 -0
  38. package/src/adminapi/models/dms-service-account-create-request.ts +60 -0
  39. package/src/adminapi/models/dms-service-account-status.ts +31 -0
  40. package/src/adminapi/models/dms-service-account-update-request.ts +41 -0
  41. package/src/adminapi/models/dms-service-account.ts +78 -0
  42. package/src/adminapi/models/index.ts +4 -0
  43. package/src/adminapi.yaml +330 -0
@@ -0,0 +1,60 @@
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
+ * 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
+ * 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
+ * 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
+ * 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
+ // 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
+ * 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
+ * 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
+
@@ -275,6 +275,10 @@ export * from './dms-query-request';
275
275
  export * from './dms-query-response';
276
276
  export * from './dms-result';
277
277
  export * from './dms-result-stats';
278
+ export * from './dms-service-account';
279
+ export * from './dms-service-account-create-request';
280
+ export * from './dms-service-account-status';
281
+ export * from './dms-service-account-update-request';
278
282
  export * from './dms-session';
279
283
  export * from './dms-table-column';
280
284
  export * from './dms-table-column-generated';
package/src/adminapi.yaml CHANGED
@@ -18790,6 +18790,257 @@ paths:
18790
18790
  - rdbms
18791
18791
  - shared
18792
18792
  x-codegen-request-body-name: body
18793
+ /admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/access-keys:
18794
+ get:
18795
+ description: list MinIO service account access keys
18796
+ summary: List MinIO access keys
18797
+ operationId: listServiceAccounts
18798
+ parameters:
18799
+ - description: name of the engine
18800
+ in: path
18801
+ name: engineName
18802
+ required: true
18803
+ schema:
18804
+ type: string
18805
+ - description: name of the organization
18806
+ in: path
18807
+ name: orgName
18808
+ required: true
18809
+ schema:
18810
+ type: string
18811
+ - description: name of the cluster
18812
+ in: path
18813
+ name: clusterName
18814
+ required: true
18815
+ schema:
18816
+ type: string
18817
+ - description: MinIO user that owns the service accounts
18818
+ in: query
18819
+ name: userName
18820
+ required: false
18821
+ schema:
18822
+ type: string
18823
+ responses:
18824
+ '200':
18825
+ description: list MinIO access keys success
18826
+ content:
18827
+ application/json:
18828
+ schema:
18829
+ $ref: '#/components/schemas/DmsServiceAccountList'
18830
+ '401':
18831
+ $ref: '#/components/responses/401'
18832
+ '403':
18833
+ $ref: '#/components/responses/403'
18834
+ '404':
18835
+ $ref: '#/components/responses/404'
18836
+ '500':
18837
+ $ref: '#/components/responses/500'
18838
+ tags:
18839
+ - account
18840
+ - rdbms
18841
+ - shared
18842
+ post:
18843
+ description: create a MinIO service account access key
18844
+ summary: Create MinIO access key
18845
+ operationId: createServiceAccount
18846
+ parameters:
18847
+ - description: name of the engine
18848
+ in: path
18849
+ name: engineName
18850
+ required: true
18851
+ schema:
18852
+ type: string
18853
+ - description: name of the organization
18854
+ in: path
18855
+ name: orgName
18856
+ required: true
18857
+ schema:
18858
+ type: string
18859
+ - description: name of the cluster
18860
+ in: path
18861
+ name: clusterName
18862
+ required: true
18863
+ schema:
18864
+ type: string
18865
+ requestBody:
18866
+ content:
18867
+ application/json:
18868
+ schema:
18869
+ $ref: '#/components/schemas/DmsServiceAccountCreateRequest'
18870
+ required: true
18871
+ responses:
18872
+ '201':
18873
+ description: create MinIO access key success
18874
+ content:
18875
+ application/json:
18876
+ schema:
18877
+ $ref: '#/components/schemas/DmsServiceAccount'
18878
+ '400':
18879
+ $ref: '#/components/responses/400'
18880
+ '401':
18881
+ $ref: '#/components/responses/401'
18882
+ '403':
18883
+ $ref: '#/components/responses/403'
18884
+ '404':
18885
+ $ref: '#/components/responses/404'
18886
+ '500':
18887
+ $ref: '#/components/responses/500'
18888
+ tags:
18889
+ - account
18890
+ - rdbms
18891
+ - shared
18892
+ x-codegen-request-body-name: body
18893
+ /admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/access-keys/{accessKey}:
18894
+ get:
18895
+ description: get a MinIO service account access key
18896
+ summary: Get MinIO access key
18897
+ operationId: getServiceAccount
18898
+ parameters:
18899
+ - description: name of the engine
18900
+ in: path
18901
+ name: engineName
18902
+ required: true
18903
+ schema:
18904
+ type: string
18905
+ - description: name of the organization
18906
+ in: path
18907
+ name: orgName
18908
+ required: true
18909
+ schema:
18910
+ type: string
18911
+ - description: name of the cluster
18912
+ in: path
18913
+ name: clusterName
18914
+ required: true
18915
+ schema:
18916
+ type: string
18917
+ - description: MinIO access key
18918
+ in: path
18919
+ name: accessKey
18920
+ required: true
18921
+ schema:
18922
+ type: string
18923
+ responses:
18924
+ '200':
18925
+ description: get MinIO access key success
18926
+ content:
18927
+ application/json:
18928
+ schema:
18929
+ $ref: '#/components/schemas/DmsServiceAccount'
18930
+ '401':
18931
+ $ref: '#/components/responses/401'
18932
+ '403':
18933
+ $ref: '#/components/responses/403'
18934
+ '404':
18935
+ $ref: '#/components/responses/404'
18936
+ '500':
18937
+ $ref: '#/components/responses/500'
18938
+ tags:
18939
+ - account
18940
+ - rdbms
18941
+ - shared
18942
+ patch:
18943
+ description: update a MinIO service account access key
18944
+ summary: Update MinIO access key
18945
+ operationId: updateServiceAccount
18946
+ parameters:
18947
+ - description: name of the engine
18948
+ in: path
18949
+ name: engineName
18950
+ required: true
18951
+ schema:
18952
+ type: string
18953
+ - description: name of the organization
18954
+ in: path
18955
+ name: orgName
18956
+ required: true
18957
+ schema:
18958
+ type: string
18959
+ - description: name of the cluster
18960
+ in: path
18961
+ name: clusterName
18962
+ required: true
18963
+ schema:
18964
+ type: string
18965
+ - description: MinIO access key
18966
+ in: path
18967
+ name: accessKey
18968
+ required: true
18969
+ schema:
18970
+ type: string
18971
+ requestBody:
18972
+ content:
18973
+ application/json:
18974
+ schema:
18975
+ $ref: '#/components/schemas/DmsServiceAccountUpdateRequest'
18976
+ required: true
18977
+ responses:
18978
+ '200':
18979
+ description: update MinIO access key success
18980
+ content:
18981
+ application/json:
18982
+ schema:
18983
+ $ref: '#/components/schemas/DmsServiceAccount'
18984
+ '400':
18985
+ $ref: '#/components/responses/400'
18986
+ '401':
18987
+ $ref: '#/components/responses/401'
18988
+ '403':
18989
+ $ref: '#/components/responses/403'
18990
+ '404':
18991
+ $ref: '#/components/responses/404'
18992
+ '500':
18993
+ $ref: '#/components/responses/500'
18994
+ tags:
18995
+ - account
18996
+ - rdbms
18997
+ - shared
18998
+ x-codegen-request-body-name: body
18999
+ delete:
19000
+ description: delete a MinIO service account access key
19001
+ summary: Delete MinIO access key
19002
+ operationId: deleteServiceAccount
19003
+ parameters:
19004
+ - description: name of the engine
19005
+ in: path
19006
+ name: engineName
19007
+ required: true
19008
+ schema:
19009
+ type: string
19010
+ - description: name of the organization
19011
+ in: path
19012
+ name: orgName
19013
+ required: true
19014
+ schema:
19015
+ type: string
19016
+ - description: name of the cluster
19017
+ in: path
19018
+ name: clusterName
19019
+ required: true
19020
+ schema:
19021
+ type: string
19022
+ - description: MinIO access key
19023
+ in: path
19024
+ name: accessKey
19025
+ required: true
19026
+ schema:
19027
+ type: string
19028
+ responses:
19029
+ '204':
19030
+ content: {}
19031
+ description: Returned when access key is deleted successfully.
19032
+ '401':
19033
+ $ref: '#/components/responses/401'
19034
+ '403':
19035
+ $ref: '#/components/responses/403'
19036
+ '404':
19037
+ $ref: '#/components/responses/404'
19038
+ '500':
19039
+ $ref: '#/components/responses/500'
19040
+ tags:
19041
+ - account
19042
+ - rdbms
19043
+ - shared
18793
19044
  /admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/root-password:
18794
19045
  get:
18795
19046
  description: get root account password
@@ -35719,6 +35970,85 @@ components:
35719
35970
  - name
35720
35971
  - role
35721
35972
  type: object
35973
+ DmsServiceAccount:
35974
+ description: MinIO service account access-key
35975
+ type: object
35976
+ properties:
35977
+ userName:
35978
+ type: string
35979
+ description: MinIO user that owns the service account.
35980
+ accessKey:
35981
+ type: string
35982
+ description: Service account access key.
35983
+ secretKey:
35984
+ type: string
35985
+ description: Secret key returned only by create.
35986
+ status:
35987
+ type: string
35988
+ description: Service account status.
35989
+ name:
35990
+ type: string
35991
+ description: Display name of the service account.
35992
+ description:
35993
+ type: string
35994
+ description: Description of the service account.
35995
+ expiration:
35996
+ type: string
35997
+ format: date-time
35998
+ description: Service account expiration time.
35999
+ policy:
36000
+ type: string
36001
+ description: Service account policy text.
36002
+ impliedPolicy:
36003
+ type: boolean
36004
+ description: Whether the policy is implied from the parent user.
36005
+ DmsServiceAccountList:
36006
+ description: MinIO service account access-key list
36007
+ type: array
36008
+ items:
36009
+ $ref: '#/components/schemas/DmsServiceAccount'
36010
+ DmsServiceAccountCreateRequest:
36011
+ description: MinIO service account access-key create request
36012
+ type: object
36013
+ required:
36014
+ - userName
36015
+ properties:
36016
+ userName:
36017
+ type: string
36018
+ description: MinIO user that owns the service account.
36019
+ accessKey:
36020
+ type: string
36021
+ description: Optional fixed access key. If omitted, MinIO generates it.
36022
+ secretKey:
36023
+ type: string
36024
+ description: Optional fixed secret key. If omitted, MinIO generates it.
36025
+ name:
36026
+ type: string
36027
+ description: Display name of the service account.
36028
+ description:
36029
+ type: string
36030
+ description: Description of the service account.
36031
+ expiration:
36032
+ type: string
36033
+ format: date-time
36034
+ description: Optional service account expiration time.
36035
+ DmsServiceAccountStatus:
36036
+ description: MinIO service account status.
36037
+ type: string
36038
+ enum:
36039
+ - enabled
36040
+ - disabled
36041
+ DmsServiceAccountUpdateRequest:
36042
+ description: MinIO service account access-key update request
36043
+ type: object
36044
+ properties:
36045
+ status:
36046
+ $ref: '#/components/schemas/DmsServiceAccountStatus'
36047
+ description: Optional service account status.
36048
+ expiration:
36049
+ type: string
36050
+ format: date-time
36051
+ description: Optional service account expiration time. Use the Unix epoch to clear expiration.
35722
36052
  postgresqlSession:
35723
36053
  type: object
35724
36054
  required: