kb-cloud-client-typescript 2.4.0-alpha.154 → 2.4.0-alpha.155

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 (54) hide show
  1. package/dist/adminapi/apis/platform-component-api.d.ts +38 -0
  2. package/dist/adminapi/apis/platform-component-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/platform-component-api.js +62 -0
  4. package/dist/adminapi/apis/platform-component-api.js.map +1 -1
  5. package/dist/adminapi/apis/rdbms-api.d.ts +3 -3
  6. package/dist/adminapi/apis/rdbms-api.js +2 -2
  7. package/dist/adminapi/apis/session-api.d.ts +3 -3
  8. package/dist/adminapi/apis/session-api.js +2 -2
  9. package/dist/adminapi/apis/shared-api.d.ts +3 -3
  10. package/dist/adminapi/apis/shared-api.js +2 -2
  11. package/dist/adminapi/models/dms-session.d.ts +2 -2
  12. package/dist/adminapi/models/index.d.ts +3 -0
  13. package/dist/adminapi/models/index.d.ts.map +1 -1
  14. package/dist/adminapi/models/index.js +3 -0
  15. package/dist/adminapi/models/index.js.map +1 -1
  16. package/dist/adminapi/models/platform-component-node.d.ts +49 -0
  17. package/dist/adminapi/models/platform-component-node.d.ts.map +1 -0
  18. package/dist/adminapi/models/platform-component-node.js +16 -0
  19. package/dist/adminapi/models/platform-component-node.js.map +1 -0
  20. package/dist/adminapi/models/platform-component-overview.d.ts +53 -0
  21. package/dist/adminapi/models/platform-component-overview.d.ts.map +1 -0
  22. package/dist/adminapi/models/platform-component-overview.js +16 -0
  23. package/dist/adminapi/models/platform-component-overview.js.map +1 -0
  24. package/dist/adminapi/models/platform-component-pod-stats.d.ts +37 -0
  25. package/dist/adminapi/models/platform-component-pod-stats.d.ts.map +1 -0
  26. package/dist/adminapi/models/platform-component-pod-stats.js +16 -0
  27. package/dist/adminapi/models/platform-component-pod-stats.js.map +1 -0
  28. package/dist/adminapi/models/storage-provider-schema-props.d.ts +3 -3
  29. package/dist/adminapi/models/storage-provider-schema-props.d.ts.map +1 -1
  30. package/dist/openapi/apis/rdbms-api.d.ts +3 -3
  31. package/dist/openapi/apis/rdbms-api.js +2 -2
  32. package/dist/openapi/apis/session-api.d.ts +3 -3
  33. package/dist/openapi/apis/session-api.js +2 -2
  34. package/dist/openapi/apis/shared-api.d.ts +3 -3
  35. package/dist/openapi/apis/shared-api.js +2 -2
  36. package/dist/openapi/models/dms-session.d.ts +2 -2
  37. package/package.json +1 -1
  38. package/src/adminapi/.openapi-generator/FILES +3 -0
  39. package/src/adminapi/apis/platform-component-api.ts +80 -0
  40. package/src/adminapi/apis/rdbms-api.ts +3 -3
  41. package/src/adminapi/apis/session-api.ts +3 -3
  42. package/src/adminapi/apis/shared-api.ts +3 -3
  43. package/src/adminapi/models/dms-session.ts +2 -2
  44. package/src/adminapi/models/index.ts +3 -0
  45. package/src/adminapi/models/platform-component-node.ts +54 -0
  46. package/src/adminapi/models/platform-component-overview.ts +66 -0
  47. package/src/adminapi/models/platform-component-pod-stats.ts +42 -0
  48. package/src/adminapi/models/storage-provider-schema-props.ts +3 -3
  49. package/src/adminapi.yaml +79 -5
  50. package/src/openapi/apis/rdbms-api.ts +3 -3
  51. package/src/openapi/apis/session-api.ts +3 -3
  52. package/src/openapi/apis/shared-api.ts +3 -3
  53. package/src/openapi/models/dms-session.ts +2 -2
  54. package/src/openapi.yaml +3 -3
@@ -969,7 +969,10 @@ export * from './pg-extension-available-database-schema';
969
969
  export * from './placement-scope';
970
970
  export * from './platform-component';
971
971
  export * from './platform-component-details';
972
+ export * from './platform-component-node';
973
+ export * from './platform-component-overview';
972
974
  export * from './platform-component-pod';
975
+ export * from './platform-component-pod-stats';
973
976
  export * from './platform-component-status';
974
977
  export * from './platform-parameter';
975
978
  export * from './platform-parameter-constraints';
@@ -0,0 +1,54 @@
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
+ *
19
+ * @export
20
+ * @interface PlatformComponentNode
21
+ */
22
+ export interface PlatformComponentNode {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof PlatformComponentNode
27
+ */
28
+ 'name'?: string;
29
+ /**
30
+ * Internal node IP, falling back to external IP
31
+ * @type {string}
32
+ * @memberof PlatformComponentNode
33
+ */
34
+ 'ip'?: string;
35
+ /**
36
+ * Kubernetes node role, control-plane or worker
37
+ * @type {string}
38
+ * @memberof PlatformComponentNode
39
+ */
40
+ 'role'?: string;
41
+ /**
42
+ * Ready when the NodeReady condition is True, otherwise NotReady
43
+ * @type {string}
44
+ * @memberof PlatformComponentNode
45
+ */
46
+ 'status'?: string;
47
+ /**
48
+ * Names of platform components with Pods assigned to this node
49
+ * @type {Array<string>}
50
+ * @memberof PlatformComponentNode
51
+ */
52
+ 'components'?: Array<string>;
53
+ }
54
+
@@ -0,0 +1,66 @@
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 { PlatformComponentNode } from './platform-component-node';
19
+ // May contain unused imports in some cases
20
+ // @ts-ignore
21
+ import type { PlatformComponentPodStats } from './platform-component-pod-stats';
22
+ // May contain unused imports in some cases
23
+ // @ts-ignore
24
+ import type { ResourceStats } from './resource-stats';
25
+ // May contain unused imports in some cases
26
+ // @ts-ignore
27
+ import type { StorageStats } from './storage-stats';
28
+
29
+ /**
30
+ * Central platform resources. CPU is measured in cores; memory and storage in GiB. Missing usage is -1. Storage includes only PVCs referenced by platform component Pods.
31
+ * @export
32
+ * @interface PlatformComponentOverview
33
+ */
34
+ export interface PlatformComponentOverview {
35
+ /**
36
+ *
37
+ * @type {Array<PlatformComponentNode>}
38
+ * @memberof PlatformComponentOverview
39
+ */
40
+ 'nodes': Array<PlatformComponentNode>;
41
+ /**
42
+ *
43
+ * @type {ResourceStats}
44
+ * @memberof PlatformComponentOverview
45
+ */
46
+ 'cpuStats': ResourceStats;
47
+ /**
48
+ *
49
+ * @type {ResourceStats}
50
+ * @memberof PlatformComponentOverview
51
+ */
52
+ 'memoryStats': ResourceStats;
53
+ /**
54
+ *
55
+ * @type {StorageStats}
56
+ * @memberof PlatformComponentOverview
57
+ */
58
+ 'storageStats': StorageStats;
59
+ /**
60
+ *
61
+ * @type {PlatformComponentPodStats}
62
+ * @memberof PlatformComponentOverview
63
+ */
64
+ 'podStats': PlatformComponentPodStats;
65
+ }
66
+
@@ -0,0 +1,42 @@
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
+ *
19
+ * @export
20
+ * @interface PlatformComponentPodStats
21
+ */
22
+ export interface PlatformComponentPodStats {
23
+ /**
24
+ *
25
+ * @type {number}
26
+ * @memberof PlatformComponentPodStats
27
+ */
28
+ 'running': number;
29
+ /**
30
+ *
31
+ * @type {number}
32
+ * @memberof PlatformComponentPodStats
33
+ */
34
+ 'pending': number;
35
+ /**
36
+ *
37
+ * @type {number}
38
+ * @memberof PlatformComponentPodStats
39
+ */
40
+ 'failed': number;
41
+ }
42
+
@@ -24,11 +24,11 @@ import type { LocalizedDescription } from './localized-description';
24
24
  */
25
25
  export interface StorageProviderSchemaProps {
26
26
  /**
27
- * default value for the parameter
28
- * @type {object}
27
+ * default value for the parameter; its JSON type follows the parameter type
28
+ * @type {any}
29
29
  * @memberof StorageProviderSchemaProps
30
30
  */
31
- 'default'?: object;
31
+ 'default'?: any;
32
32
  /**
33
33
  *
34
34
  * @type {LocalizedDescription}
package/src/adminapi.yaml CHANGED
@@ -20975,6 +20975,24 @@ paths:
20975
20975
  $ref: '#/components/responses/403'
20976
20976
  tags:
20977
20977
  - platformComponent
20978
+ /admin/v1/platformComponents/overview:
20979
+ get:
20980
+ summary: Get platform component nodes and resource statistics
20981
+ description: Get hosting nodes, node CPU and memory usage, component PVC statistics, and component Pod counts in the central Kubernetes cluster. Unavailable resource usage is reported as -1.
20982
+ operationId: getPlatformComponentOverview
20983
+ responses:
20984
+ '200':
20985
+ description: OK
20986
+ content:
20987
+ application/json:
20988
+ schema:
20989
+ $ref: '#/components/schemas/platformComponentOverview'
20990
+ '401':
20991
+ $ref: '#/components/responses/401'
20992
+ '403':
20993
+ $ref: '#/components/responses/403'
20994
+ tags:
20995
+ - platformComponent
20978
20996
  /admin/v1/platformComponents/{componentName}:
20979
20997
  get:
20980
20998
  description: Get platform component detail by name, including monitoring and log query metadata
@@ -27289,7 +27307,7 @@ paths:
27289
27307
  required: true
27290
27308
  schema:
27291
27309
  type: string
27292
- - description: session id
27310
+ - description: session id; for Redis, use the connection address in host:port form
27293
27311
  in: path
27294
27312
  name: session
27295
27313
  required: true
@@ -39970,7 +39988,7 @@ components:
39970
39988
  nullable: true
39971
39989
  sessionId:
39972
39990
  type: string
39973
- description: native session ID used by the terminate API
39991
+ description: native session ID used by the terminate API; for Redis this is the connection address in host:port form
39974
39992
  nullable: true
39975
39993
  user:
39976
39994
  type: string
@@ -40001,7 +40019,7 @@ components:
40001
40019
  nullable: true
40002
40020
  info:
40003
40021
  type: string
40004
- description: additional session information
40022
+ description: additional session information; for Redis this is a JSON object with the full CLIENT LIST entry
40005
40023
  nullable: true
40006
40024
  ip:
40007
40025
  type: string
@@ -49014,8 +49032,7 @@ components:
49014
49032
  description: the schema properties for storage provider parameters
49015
49033
  properties:
49016
49034
  default:
49017
- type: object
49018
- description: default value for the parameter
49035
+ description: default value for the parameter; its JSON type follows the parameter type
49019
49036
  description:
49020
49037
  $ref: '#/components/schemas/localizedDescription'
49021
49038
  description: localized description of the parameter
@@ -50349,6 +50366,63 @@ components:
50349
50366
  items:
50350
50367
  $ref: '#/components/schemas/platformComponent'
50351
50368
  description: List of platform components
50369
+ platformComponentNode:
50370
+ type: object
50371
+ properties:
50372
+ name:
50373
+ type: string
50374
+ ip:
50375
+ type: string
50376
+ description: Internal node IP, falling back to external IP
50377
+ role:
50378
+ type: string
50379
+ description: Kubernetes node role, control-plane or worker
50380
+ status:
50381
+ type: string
50382
+ description: Ready when the NodeReady condition is True, otherwise NotReady
50383
+ components:
50384
+ type: array
50385
+ items:
50386
+ type: string
50387
+ description: Names of platform components with Pods assigned to this node
50388
+ platformComponentPodStats:
50389
+ type: object
50390
+ properties:
50391
+ running:
50392
+ type: integer
50393
+ format: int64
50394
+ pending:
50395
+ type: integer
50396
+ format: int64
50397
+ failed:
50398
+ type: integer
50399
+ format: int64
50400
+ required:
50401
+ - running
50402
+ - pending
50403
+ - failed
50404
+ platformComponentOverview:
50405
+ type: object
50406
+ description: Central platform resources. CPU is measured in cores; memory and storage in GiB. Missing usage is -1. Storage includes only PVCs referenced by platform component Pods.
50407
+ properties:
50408
+ nodes:
50409
+ type: array
50410
+ items:
50411
+ $ref: '#/components/schemas/platformComponentNode'
50412
+ cpuStats:
50413
+ $ref: '#/components/schemas/resourceStats'
50414
+ memoryStats:
50415
+ $ref: '#/components/schemas/resourceStats'
50416
+ storageStats:
50417
+ $ref: '#/components/schemas/storageStats'
50418
+ podStats:
50419
+ $ref: '#/components/schemas/platformComponentPodStats'
50420
+ required:
50421
+ - nodes
50422
+ - cpuStats
50423
+ - memoryStats
50424
+ - storageStats
50425
+ - podStats
50352
50426
  platformComponentPod:
50353
50427
  type: object
50354
50428
  description: Pod summary for platform component detail
@@ -918,7 +918,7 @@ export const RdbmsApiAxiosParamCreator = function (configuration?: Configuration
918
918
  * @param {string} engineName name of the engine
919
919
  * @param {string} orgName name of the Org
920
920
  * @param {string} clusterName name of the Cluster
921
- * @param {string} session session id
921
+ * @param {string} session session id; for Redis, use the connection address in host:port form
922
922
  * @param {boolean} [keep] if keep is true, the session will not be killed but only closed
923
923
  * @param {*} [options] Override http request option.
924
924
  * @throws {RequiredError}
@@ -2094,7 +2094,7 @@ export const RdbmsApiFp = function(configuration?: Configuration) {
2094
2094
  * @param {string} engineName name of the engine
2095
2095
  * @param {string} orgName name of the Org
2096
2096
  * @param {string} clusterName name of the Cluster
2097
- * @param {string} session session id
2097
+ * @param {string} session session id; for Redis, use the connection address in host:port form
2098
2098
  * @param {boolean} [keep] if keep is true, the session will not be killed but only closed
2099
2099
  * @param {*} [options] Override http request option.
2100
2100
  * @throws {RequiredError}
@@ -3601,7 +3601,7 @@ export interface RdbmsApiKillSessionRequest {
3601
3601
  readonly clusterName: string
3602
3602
 
3603
3603
  /**
3604
- * session id
3604
+ * session id; for Redis, use the connection address in host:port form
3605
3605
  * @type {string}
3606
3606
  * @memberof RdbmsApiKillSession
3607
3607
  */
@@ -37,7 +37,7 @@ export const SessionApiAxiosParamCreator = function (configuration?: Configurati
37
37
  * @param {string} engineName name of the engine
38
38
  * @param {string} orgName name of the Org
39
39
  * @param {string} clusterName name of the Cluster
40
- * @param {string} session session id
40
+ * @param {string} session session id; for Redis, use the connection address in host:port form
41
41
  * @param {boolean} [keep] if keep is true, the session will not be killed but only closed
42
42
  * @param {*} [options] Override http request option.
43
43
  * @throws {RequiredError}
@@ -159,7 +159,7 @@ export const SessionApiFp = function(configuration?: Configuration) {
159
159
  * @param {string} engineName name of the engine
160
160
  * @param {string} orgName name of the Org
161
161
  * @param {string} clusterName name of the Cluster
162
- * @param {string} session session id
162
+ * @param {string} session session id; for Redis, use the connection address in host:port form
163
163
  * @param {boolean} [keep] if keep is true, the session will not be killed but only closed
164
164
  * @param {*} [options] Override http request option.
165
165
  * @throws {RequiredError}
@@ -275,7 +275,7 @@ export interface SessionApiKillSessionRequest {
275
275
  readonly clusterName: string
276
276
 
277
277
  /**
278
- * session id
278
+ * session id; for Redis, use the connection address in host:port form
279
279
  * @type {string}
280
280
  * @memberof SessionApiKillSession
281
281
  */
@@ -10801,7 +10801,7 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
10801
10801
  * @param {string} engineName name of the engine
10802
10802
  * @param {string} orgName name of the Org
10803
10803
  * @param {string} clusterName name of the Cluster
10804
- * @param {string} session session id
10804
+ * @param {string} session session id; for Redis, use the connection address in host:port form
10805
10805
  * @param {boolean} [keep] if keep is true, the session will not be killed but only closed
10806
10806
  * @param {*} [options] Override http request option.
10807
10807
  * @throws {RequiredError}
@@ -24165,7 +24165,7 @@ export const SharedApiFp = function(configuration?: Configuration) {
24165
24165
  * @param {string} engineName name of the engine
24166
24166
  * @param {string} orgName name of the Org
24167
24167
  * @param {string} clusterName name of the Cluster
24168
- * @param {string} session session id
24168
+ * @param {string} session session id; for Redis, use the connection address in host:port form
24169
24169
  * @param {boolean} [keep] if keep is true, the session will not be killed but only closed
24170
24170
  * @param {*} [options] Override http request option.
24171
24171
  * @throws {RequiredError}
@@ -41044,7 +41044,7 @@ export interface SharedApiKillSessionRequest {
41044
41044
  readonly clusterName: string
41045
41045
 
41046
41046
  /**
41047
- * session id
41047
+ * session id; for Redis, use the connection address in host:port form
41048
41048
  * @type {string}
41049
41049
  * @memberof SharedApiKillSession
41050
41050
  */
@@ -27,7 +27,7 @@ export interface DmsSession {
27
27
  */
28
28
  'id'?: number | null;
29
29
  /**
30
- * native session ID used by the terminate API
30
+ * native session ID used by the terminate API; for Redis this is the connection address in host:port form
31
31
  * @type {string}
32
32
  * @memberof DmsSession
33
33
  */
@@ -75,7 +75,7 @@ export interface DmsSession {
75
75
  */
76
76
  'state'?: string | null;
77
77
  /**
78
- * additional session information
78
+ * additional session information; for Redis this is a JSON object with the full CLIENT LIST entry
79
79
  * @type {string}
80
80
  * @memberof DmsSession
81
81
  */
package/src/openapi.yaml CHANGED
@@ -23101,7 +23101,7 @@ paths:
23101
23101
  required: true
23102
23102
  schema:
23103
23103
  type: string
23104
- - description: session id
23104
+ - description: session id; for Redis, use the connection address in host:port form
23105
23105
  in: path
23106
23106
  name: session
23107
23107
  required: true
@@ -43638,7 +43638,7 @@ components:
43638
43638
  nullable: true
43639
43639
  sessionId:
43640
43640
  type: string
43641
- description: native session ID used by the terminate API
43641
+ description: native session ID used by the terminate API; for Redis this is the connection address in host:port form
43642
43642
  nullable: true
43643
43643
  user:
43644
43644
  type: string
@@ -43669,7 +43669,7 @@ components:
43669
43669
  nullable: true
43670
43670
  info:
43671
43671
  type: string
43672
- description: additional session information
43672
+ description: additional session information; for Redis this is a JSON object with the full CLIENT LIST entry
43673
43673
  nullable: true
43674
43674
  ip:
43675
43675
  type: string