kb-cloud-client-typescript 2.4.0-alpha.47 → 2.4.0-alpha.49
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/api.d.ts +1 -0
- package/dist/adminapi/api.d.ts.map +1 -1
- package/dist/adminapi/api.js +1 -0
- package/dist/adminapi/api.js.map +1 -1
- package/dist/adminapi/apis/dashboard-config-api.d.ts +223 -0
- package/dist/adminapi/apis/dashboard-config-api.d.ts.map +1 -0
- package/dist/adminapi/apis/dashboard-config-api.js +277 -0
- package/dist/adminapi/apis/dashboard-config-api.js.map +1 -0
- package/dist/adminapi/models/dashboard-config-update.d.ts +25 -0
- package/dist/adminapi/models/dashboard-config-update.d.ts.map +1 -0
- package/dist/adminapi/models/dashboard-config-update.js +16 -0
- package/dist/adminapi/models/dashboard-config-update.js.map +1 -0
- package/dist/adminapi/models/dashboard-config.d.ts +31 -0
- package/dist/adminapi/models/dashboard-config.d.ts.map +1 -0
- package/dist/adminapi/models/dashboard-config.js +16 -0
- package/dist/adminapi/models/dashboard-config.js.map +1 -0
- 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/openapi/api.d.ts +1 -0
- package/dist/openapi/api.d.ts.map +1 -1
- package/dist/openapi/api.js +1 -0
- package/dist/openapi/api.js.map +1 -1
- package/dist/openapi/apis/dashboard-config-api.d.ts +104 -0
- package/dist/openapi/apis/dashboard-config-api.d.ts.map +1 -0
- package/dist/openapi/apis/dashboard-config-api.js +133 -0
- package/dist/openapi/apis/dashboard-config-api.js.map +1 -0
- package/dist/openapi/models/dashboard-config.d.ts +31 -0
- package/dist/openapi/models/dashboard-config.d.ts.map +1 -0
- package/dist/openapi/models/dashboard-config.js +16 -0
- package/dist/openapi/models/dashboard-config.js.map +1 -0
- 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/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +3 -0
- package/src/adminapi/api.ts +1 -0
- package/src/adminapi/apis/dashboard-config-api.ts +388 -0
- package/src/adminapi/models/dashboard-config-update.ts +30 -0
- package/src/adminapi/models/dashboard-config.ts +36 -0
- package/src/adminapi/models/index.ts +2 -0
- package/src/adminapi.yaml +102 -0
- package/src/openapi/.openapi-generator/FILES +2 -0
- package/src/openapi/api.ts +1 -0
- package/src/openapi/apis/dashboard-config-api.ts +172 -0
- package/src/openapi/models/dashboard-config.ts +36 -0
- package/src/openapi/models/index.ts +1 -0
- package/src/openapi.yaml +44 -0
|
@@ -0,0 +1,36 @@
|
|
|
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 DashboardConfig
|
|
21
|
+
*/
|
|
22
|
+
export interface DashboardConfig {
|
|
23
|
+
/**
|
|
24
|
+
* Frontend-defined platform-wide key. Organization identifiers in this key do not enforce tenant isolation.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof DashboardConfig
|
|
27
|
+
*/
|
|
28
|
+
'key': string;
|
|
29
|
+
/**
|
|
30
|
+
* Stored JSON value, or null when the key has no configuration.
|
|
31
|
+
* @type {any}
|
|
32
|
+
* @memberof DashboardConfig
|
|
33
|
+
*/
|
|
34
|
+
'value'?: any;
|
|
35
|
+
}
|
|
36
|
+
|
|
@@ -246,6 +246,8 @@ export * from './dameng-session-list-item';
|
|
|
246
246
|
export * from './dameng-space-analysis';
|
|
247
247
|
export * from './dameng-table-size-item';
|
|
248
248
|
export * from './dameng-tablespace-item';
|
|
249
|
+
export * from './dashboard-config';
|
|
250
|
+
export * from './dashboard-config-update';
|
|
249
251
|
export * from './dashboard-option';
|
|
250
252
|
export * from './dashboard-option-instance-panels-inner';
|
|
251
253
|
export * from './dashboard-option-instance-panels-inner-panels-inner';
|
package/src/adminapi.yaml
CHANGED
|
@@ -16843,6 +16843,78 @@ paths:
|
|
|
16843
16843
|
$ref: '#/components/responses/500'
|
|
16844
16844
|
tags:
|
|
16845
16845
|
- instance
|
|
16846
|
+
/admin/v1/dashboardConfigs/{key}:
|
|
16847
|
+
get:
|
|
16848
|
+
parameters:
|
|
16849
|
+
- $ref: '#/components/parameters/dashboardConfigKey'
|
|
16850
|
+
tags:
|
|
16851
|
+
- dashboardConfig
|
|
16852
|
+
operationId: getDashboardConfig
|
|
16853
|
+
summary: Get dashboard configuration by key
|
|
16854
|
+
description: Requires platform configuration read access. Missing keys return 200 with a null value.
|
|
16855
|
+
responses:
|
|
16856
|
+
'200':
|
|
16857
|
+
description: Stored configuration or a null value for a missing key.
|
|
16858
|
+
content:
|
|
16859
|
+
application/json:
|
|
16860
|
+
schema:
|
|
16861
|
+
$ref: '#/components/schemas/dashboardConfig'
|
|
16862
|
+
'400':
|
|
16863
|
+
$ref: '#/components/responses/400'
|
|
16864
|
+
'401':
|
|
16865
|
+
$ref: '#/components/responses/401'
|
|
16866
|
+
'403':
|
|
16867
|
+
$ref: '#/components/responses/403'
|
|
16868
|
+
'500':
|
|
16869
|
+
$ref: '#/components/responses/500'
|
|
16870
|
+
put:
|
|
16871
|
+
parameters:
|
|
16872
|
+
- $ref: '#/components/parameters/dashboardConfigKey'
|
|
16873
|
+
tags:
|
|
16874
|
+
- dashboardConfig
|
|
16875
|
+
operationId: putDashboardConfig
|
|
16876
|
+
summary: Create or replace dashboard configuration by key
|
|
16877
|
+
description: Requires platform configuration write access. Atomic upsert with last-write-wins semantics. Request body is limited to 1 MiB.
|
|
16878
|
+
requestBody:
|
|
16879
|
+
required: true
|
|
16880
|
+
content:
|
|
16881
|
+
application/json:
|
|
16882
|
+
schema:
|
|
16883
|
+
$ref: '#/components/schemas/dashboardConfigUpdate'
|
|
16884
|
+
responses:
|
|
16885
|
+
'200':
|
|
16886
|
+
description: Saved configuration.
|
|
16887
|
+
content:
|
|
16888
|
+
application/json:
|
|
16889
|
+
schema:
|
|
16890
|
+
$ref: '#/components/schemas/dashboardConfig'
|
|
16891
|
+
'400':
|
|
16892
|
+
$ref: '#/components/responses/400'
|
|
16893
|
+
'401':
|
|
16894
|
+
$ref: '#/components/responses/401'
|
|
16895
|
+
'403':
|
|
16896
|
+
$ref: '#/components/responses/403'
|
|
16897
|
+
'500':
|
|
16898
|
+
$ref: '#/components/responses/500'
|
|
16899
|
+
delete:
|
|
16900
|
+
parameters:
|
|
16901
|
+
- $ref: '#/components/parameters/dashboardConfigKey'
|
|
16902
|
+
tags:
|
|
16903
|
+
- dashboardConfig
|
|
16904
|
+
operationId: deleteDashboardConfig
|
|
16905
|
+
summary: Delete dashboard configuration by key
|
|
16906
|
+
description: Requires platform configuration write access. Deleting a missing key succeeds.
|
|
16907
|
+
responses:
|
|
16908
|
+
'204':
|
|
16909
|
+
description: Configuration is absent.
|
|
16910
|
+
'400':
|
|
16911
|
+
$ref: '#/components/responses/400'
|
|
16912
|
+
'401':
|
|
16913
|
+
$ref: '#/components/responses/401'
|
|
16914
|
+
'403':
|
|
16915
|
+
$ref: '#/components/responses/403'
|
|
16916
|
+
'500':
|
|
16917
|
+
$ref: '#/components/responses/500'
|
|
16846
16918
|
/admin/v1/platformParameters:
|
|
16847
16919
|
get:
|
|
16848
16920
|
tags:
|
|
@@ -40738,6 +40810,27 @@ components:
|
|
|
40738
40810
|
isVariable:
|
|
40739
40811
|
type: boolean
|
|
40740
40812
|
description: whether the param is tenant variable or param
|
|
40813
|
+
dashboardConfig:
|
|
40814
|
+
type: object
|
|
40815
|
+
required:
|
|
40816
|
+
- key
|
|
40817
|
+
properties:
|
|
40818
|
+
key:
|
|
40819
|
+
type: string
|
|
40820
|
+
description: Frontend-defined platform-wide key. Organization identifiers in this key do not enforce tenant isolation.
|
|
40821
|
+
minLength: 1
|
|
40822
|
+
maxLength: 512
|
|
40823
|
+
value:
|
|
40824
|
+
description: Stored JSON value, or null when the key has no configuration.
|
|
40825
|
+
x-omitempty: false
|
|
40826
|
+
dashboardConfigUpdate:
|
|
40827
|
+
type: object
|
|
40828
|
+
required:
|
|
40829
|
+
- value
|
|
40830
|
+
properties:
|
|
40831
|
+
value:
|
|
40832
|
+
description: Any non-null JSON value. Replaces the complete stored value.
|
|
40833
|
+
x-omitempty: false
|
|
40741
40834
|
platformParameterCategory:
|
|
40742
40835
|
type: string
|
|
40743
40836
|
description: platformParameter category, representing the platformParameter group
|
|
@@ -47190,6 +47283,15 @@ components:
|
|
|
47190
47283
|
name: query
|
|
47191
47284
|
schema:
|
|
47192
47285
|
type: string
|
|
47286
|
+
dashboardConfigKey:
|
|
47287
|
+
in: path
|
|
47288
|
+
name: key
|
|
47289
|
+
required: true
|
|
47290
|
+
description: Frontend-defined non-blank configuration key, up to 512 Unicode characters. URL-encode the key when used in a request path.
|
|
47291
|
+
schema:
|
|
47292
|
+
type: string
|
|
47293
|
+
minLength: 1
|
|
47294
|
+
maxLength: 512
|
|
47193
47295
|
x-tagGroups:
|
|
47194
47296
|
- name: User
|
|
47195
47297
|
tags:
|
|
@@ -26,6 +26,7 @@ apis/cluster-log-api.ts
|
|
|
26
26
|
apis/cluster-loki-log-api.ts
|
|
27
27
|
apis/cluster-tag-api.ts
|
|
28
28
|
apis/dameng-api.ts
|
|
29
|
+
apis/dashboard-config-api.ts
|
|
29
30
|
apis/data-replication-api.ts
|
|
30
31
|
apis/database-api.ts
|
|
31
32
|
apis/diagnostics-api.ts
|
|
@@ -320,6 +321,7 @@ models/dameng-space-analysis.ts
|
|
|
320
321
|
models/dameng-sqlanalysis.ts
|
|
321
322
|
models/dameng-table-size-item.ts
|
|
322
323
|
models/dameng-tablespace-item.ts
|
|
324
|
+
models/dashboard-config.ts
|
|
323
325
|
models/dashboard-option-instance-panels-inner-panels-inner.ts
|
|
324
326
|
models/dashboard-option-instance-panels-inner.ts
|
|
325
327
|
models/dashboard-option.ts
|
package/src/openapi/api.ts
CHANGED
|
@@ -38,6 +38,7 @@ export * from './apis/cluster-log-api';
|
|
|
38
38
|
export * from './apis/cluster-loki-log-api';
|
|
39
39
|
export * from './apis/cluster-tag-api';
|
|
40
40
|
export * from './apis/dameng-api';
|
|
41
|
+
export * from './apis/dashboard-config-api';
|
|
41
42
|
export * from './apis/data-replication-api';
|
|
42
43
|
export * from './apis/database-api';
|
|
43
44
|
export * from './apis/diagnostics-api';
|
|
@@ -0,0 +1,172 @@
|
|
|
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
|
+
import type { Configuration } from '../configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// Some imports not used depending on template conditions
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import type { APIErrorResponse } from '../models';
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import type { DashboardConfig } from '../models';
|
|
28
|
+
/**
|
|
29
|
+
* DashboardConfigApi - axios parameter creator
|
|
30
|
+
* @export
|
|
31
|
+
*/
|
|
32
|
+
export const DashboardConfigApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
33
|
+
return {
|
|
34
|
+
/**
|
|
35
|
+
* Requires authentication. Reads platform-wide configuration; organization identifiers in a key do not restrict access. Missing keys return 200 with a null value.
|
|
36
|
+
* @summary Get dashboard configuration by key
|
|
37
|
+
* @param {string} key Frontend-defined non-blank configuration key, up to 512 Unicode characters. URL-encode the key when used in a request path.
|
|
38
|
+
* @param {*} [options] Override http request option.
|
|
39
|
+
* @throws {RequiredError}
|
|
40
|
+
*/
|
|
41
|
+
getDashboardConfig: async (key: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
42
|
+
// verify required parameter 'key' is not null or undefined
|
|
43
|
+
assertParamExists('getDashboardConfig', 'key', key)
|
|
44
|
+
const localVarPath = `/api/v1/dashboardConfigs/{key}`
|
|
45
|
+
.replace(`{${"key"}}`, encodeURIComponent(String(key)));
|
|
46
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
47
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
48
|
+
let baseOptions;
|
|
49
|
+
if (configuration) {
|
|
50
|
+
baseOptions = configuration.baseOptions;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
54
|
+
const localVarHeaderParameter = {} as any;
|
|
55
|
+
const localVarQueryParameter = {} as any;
|
|
56
|
+
|
|
57
|
+
// authentication BearerToken required
|
|
58
|
+
// http bearer authentication required
|
|
59
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
60
|
+
|
|
61
|
+
// authentication DigestAuth required
|
|
62
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
67
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
68
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
69
|
+
|
|
70
|
+
return {
|
|
71
|
+
url: toPathString(localVarUrlObj),
|
|
72
|
+
options: localVarRequestOptions,
|
|
73
|
+
};
|
|
74
|
+
},
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* DashboardConfigApi - functional programming interface
|
|
80
|
+
* @export
|
|
81
|
+
*/
|
|
82
|
+
export const DashboardConfigApiFp = function(configuration?: Configuration) {
|
|
83
|
+
const localVarAxiosParamCreator = DashboardConfigApiAxiosParamCreator(configuration)
|
|
84
|
+
return {
|
|
85
|
+
/**
|
|
86
|
+
* Requires authentication. Reads platform-wide configuration; organization identifiers in a key do not restrict access. Missing keys return 200 with a null value.
|
|
87
|
+
* @summary Get dashboard configuration by key
|
|
88
|
+
* @param {string} key Frontend-defined non-blank configuration key, up to 512 Unicode characters. URL-encode the key when used in a request path.
|
|
89
|
+
* @param {*} [options] Override http request option.
|
|
90
|
+
* @throws {RequiredError}
|
|
91
|
+
*/
|
|
92
|
+
async getDashboardConfig(key: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DashboardConfig>> {
|
|
93
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDashboardConfig(key, options);
|
|
94
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
95
|
+
const localVarOperationServerBasePath = operationServerMap['DashboardConfigApi.getDashboardConfig']?.[localVarOperationServerIndex]?.url;
|
|
96
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
97
|
+
},
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* DashboardConfigApi - factory interface
|
|
103
|
+
* @export
|
|
104
|
+
*/
|
|
105
|
+
export const DashboardConfigApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
106
|
+
const localVarFp = DashboardConfigApiFp(configuration)
|
|
107
|
+
return {
|
|
108
|
+
/**
|
|
109
|
+
* Requires authentication. Reads platform-wide configuration; organization identifiers in a key do not restrict access. Missing keys return 200 with a null value.
|
|
110
|
+
* @summary Get dashboard configuration by key
|
|
111
|
+
* @param {DashboardConfigApiGetDashboardConfigRequest} requestParameters Request parameters.
|
|
112
|
+
* @param {*} [options] Override http request option.
|
|
113
|
+
* @throws {RequiredError}
|
|
114
|
+
*/
|
|
115
|
+
getDashboardConfig(requestParameters: DashboardConfigApiGetDashboardConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise<DashboardConfig> {
|
|
116
|
+
return localVarFp.getDashboardConfig(requestParameters.key, options).then((request) => request(axios, basePath));
|
|
117
|
+
},
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* DashboardConfigApi - interface
|
|
123
|
+
* @export
|
|
124
|
+
* @interface DashboardConfigApi
|
|
125
|
+
*/
|
|
126
|
+
export interface DashboardConfigApiInterface {
|
|
127
|
+
/**
|
|
128
|
+
* Requires authentication. Reads platform-wide configuration; organization identifiers in a key do not restrict access. Missing keys return 200 with a null value.
|
|
129
|
+
* @summary Get dashboard configuration by key
|
|
130
|
+
* @param {DashboardConfigApiGetDashboardConfigRequest} requestParameters Request parameters.
|
|
131
|
+
* @param {*} [options] Override http request option.
|
|
132
|
+
* @throws {RequiredError}
|
|
133
|
+
* @memberof DashboardConfigApiInterface
|
|
134
|
+
*/
|
|
135
|
+
getDashboardConfig(requestParameters: DashboardConfigApiGetDashboardConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise<DashboardConfig>;
|
|
136
|
+
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Request parameters for getDashboardConfig operation in DashboardConfigApi.
|
|
141
|
+
* @export
|
|
142
|
+
* @interface DashboardConfigApiGetDashboardConfigRequest
|
|
143
|
+
*/
|
|
144
|
+
export interface DashboardConfigApiGetDashboardConfigRequest {
|
|
145
|
+
/**
|
|
146
|
+
* Frontend-defined non-blank configuration key, up to 512 Unicode characters. URL-encode the key when used in a request path.
|
|
147
|
+
* @type {string}
|
|
148
|
+
* @memberof DashboardConfigApiGetDashboardConfig
|
|
149
|
+
*/
|
|
150
|
+
readonly key: string
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* DashboardConfigApi - object-oriented interface
|
|
155
|
+
* @export
|
|
156
|
+
* @class DashboardConfigApi
|
|
157
|
+
* @extends {BaseAPI}
|
|
158
|
+
*/
|
|
159
|
+
export class DashboardConfigApi extends BaseAPI implements DashboardConfigApiInterface {
|
|
160
|
+
/**
|
|
161
|
+
* Requires authentication. Reads platform-wide configuration; organization identifiers in a key do not restrict access. Missing keys return 200 with a null value.
|
|
162
|
+
* @summary Get dashboard configuration by key
|
|
163
|
+
* @param {DashboardConfigApiGetDashboardConfigRequest} requestParameters Request parameters.
|
|
164
|
+
* @param {*} [options] Override http request option.
|
|
165
|
+
* @throws {RequiredError}
|
|
166
|
+
* @memberof DashboardConfigApi
|
|
167
|
+
*/
|
|
168
|
+
public getDashboardConfig(requestParameters: DashboardConfigApiGetDashboardConfigRequest, options?: RawAxiosRequestConfig) {
|
|
169
|
+
return DashboardConfigApiFp(this.configuration).getDashboardConfig(requestParameters.key, options).then((request) => request(this.axios, this.basePath));
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface DashboardConfig
|
|
21
|
+
*/
|
|
22
|
+
export interface DashboardConfig {
|
|
23
|
+
/**
|
|
24
|
+
* Frontend-defined platform-wide key. Organization identifiers in this key do not enforce tenant isolation.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof DashboardConfig
|
|
27
|
+
*/
|
|
28
|
+
'key': string;
|
|
29
|
+
/**
|
|
30
|
+
* Stored JSON value, or null when the key has no configuration.
|
|
31
|
+
* @type {any}
|
|
32
|
+
* @memberof DashboardConfig
|
|
33
|
+
*/
|
|
34
|
+
'value'?: any;
|
|
35
|
+
}
|
|
36
|
+
|
|
@@ -233,6 +233,7 @@ export * from './dameng-session-list-item';
|
|
|
233
233
|
export * from './dameng-space-analysis';
|
|
234
234
|
export * from './dameng-table-size-item';
|
|
235
235
|
export * from './dameng-tablespace-item';
|
|
236
|
+
export * from './dashboard-config';
|
|
236
237
|
export * from './dashboard-option';
|
|
237
238
|
export * from './dashboard-option-instance-panels-inner';
|
|
238
239
|
export * from './dashboard-option-instance-panels-inner-panels-inner';
|
package/src/openapi.yaml
CHANGED
|
@@ -19769,6 +19769,28 @@ paths:
|
|
|
19769
19769
|
$ref: '#/components/responses/401'
|
|
19770
19770
|
'403':
|
|
19771
19771
|
$ref: '#/components/responses/403'
|
|
19772
|
+
/api/v1/dashboardConfigs/{key}:
|
|
19773
|
+
get:
|
|
19774
|
+
parameters:
|
|
19775
|
+
- $ref: '#/components/parameters/dashboardConfigKey'
|
|
19776
|
+
tags:
|
|
19777
|
+
- dashboardConfig
|
|
19778
|
+
operationId: getDashboardConfig
|
|
19779
|
+
summary: Get dashboard configuration by key
|
|
19780
|
+
description: Requires authentication. Reads platform-wide configuration; organization identifiers in a key do not restrict access. Missing keys return 200 with a null value.
|
|
19781
|
+
responses:
|
|
19782
|
+
'200':
|
|
19783
|
+
description: Stored configuration or a null value for a missing key.
|
|
19784
|
+
content:
|
|
19785
|
+
application/json:
|
|
19786
|
+
schema:
|
|
19787
|
+
$ref: '#/components/schemas/dashboardConfig'
|
|
19788
|
+
'400':
|
|
19789
|
+
$ref: '#/components/responses/400'
|
|
19790
|
+
'401':
|
|
19791
|
+
$ref: '#/components/responses/401'
|
|
19792
|
+
'500':
|
|
19793
|
+
$ref: '#/components/responses/500'
|
|
19772
19794
|
/api/v1/platformParameters:
|
|
19773
19795
|
get:
|
|
19774
19796
|
tags:
|
|
@@ -38747,6 +38769,19 @@ components:
|
|
|
38747
38769
|
required:
|
|
38748
38770
|
- items
|
|
38749
38771
|
type: object
|
|
38772
|
+
dashboardConfig:
|
|
38773
|
+
type: object
|
|
38774
|
+
required:
|
|
38775
|
+
- key
|
|
38776
|
+
properties:
|
|
38777
|
+
key:
|
|
38778
|
+
type: string
|
|
38779
|
+
description: Frontend-defined platform-wide key. Organization identifiers in this key do not enforce tenant isolation.
|
|
38780
|
+
minLength: 1
|
|
38781
|
+
maxLength: 512
|
|
38782
|
+
value:
|
|
38783
|
+
description: Stored JSON value, or null when the key has no configuration.
|
|
38784
|
+
x-omitempty: false
|
|
38750
38785
|
platformParameterCategory:
|
|
38751
38786
|
type: string
|
|
38752
38787
|
description: platformParameter category, representing the platformParameter group
|
|
@@ -40703,6 +40738,15 @@ components:
|
|
|
40703
40738
|
name: query
|
|
40704
40739
|
schema:
|
|
40705
40740
|
type: string
|
|
40741
|
+
dashboardConfigKey:
|
|
40742
|
+
in: path
|
|
40743
|
+
name: key
|
|
40744
|
+
required: true
|
|
40745
|
+
description: Frontend-defined non-blank configuration key, up to 512 Unicode characters. URL-encode the key when used in a request path.
|
|
40746
|
+
schema:
|
|
40747
|
+
type: string
|
|
40748
|
+
minLength: 1
|
|
40749
|
+
maxLength: 512
|
|
40706
40750
|
x-tagGroups:
|
|
40707
40751
|
- name: User
|
|
40708
40752
|
tags:
|