kb-cloud-client-typescript 2.4.0-alpha.46 → 2.4.0-alpha.48
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 +2 -0
- package/dist/adminapi/api.d.ts.map +1 -1
- package/dist/adminapi/api.js +2 -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/apis/diagnostics-api.d.ts +229 -0
- package/dist/adminapi/apis/diagnostics-api.d.ts.map +1 -1
- package/dist/adminapi/apis/diagnostics-api.js +247 -0
- package/dist/adminapi/apis/diagnostics-api.js.map +1 -1
- package/dist/adminapi/apis/oracle-api.d.ts +422 -0
- package/dist/adminapi/apis/oracle-api.d.ts.map +1 -0
- package/dist/adminapi/apis/oracle-api.js +471 -0
- package/dist/adminapi/apis/oracle-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 +9 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +9 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/oracle-tablespace-contents.d.ts +22 -0
- package/dist/adminapi/models/oracle-tablespace-contents.d.ts.map +1 -0
- package/dist/adminapi/models/oracle-tablespace-contents.js +26 -0
- package/dist/adminapi/models/oracle-tablespace-contents.js.map +1 -0
- package/dist/adminapi/models/oracle-tablespace-create.d.ts +45 -0
- package/dist/adminapi/models/oracle-tablespace-create.d.ts.map +1 -0
- package/dist/adminapi/models/oracle-tablespace-create.js +16 -0
- package/dist/adminapi/models/oracle-tablespace-create.js.map +1 -0
- package/dist/adminapi/models/oracle-tablespace-expand-action.d.ts +22 -0
- package/dist/adminapi/models/oracle-tablespace-expand-action.d.ts.map +1 -0
- package/dist/adminapi/models/oracle-tablespace-expand-action.js +26 -0
- package/dist/adminapi/models/oracle-tablespace-expand-action.js.map +1 -0
- package/dist/adminapi/models/oracle-tablespace-expand.d.ts +45 -0
- package/dist/adminapi/models/oracle-tablespace-expand.d.ts.map +1 -0
- package/dist/adminapi/models/oracle-tablespace-expand.js +16 -0
- package/dist/adminapi/models/oracle-tablespace-expand.js.map +1 -0
- package/dist/adminapi/models/oracle-tablespace-file-spec.d.ts +49 -0
- package/dist/adminapi/models/oracle-tablespace-file-spec.d.ts.map +1 -0
- package/dist/adminapi/models/oracle-tablespace-file-spec.js +16 -0
- package/dist/adminapi/models/oracle-tablespace-file-spec.js.map +1 -0
- package/dist/adminapi/models/oracle-tablespace-file.d.ts +67 -0
- package/dist/adminapi/models/oracle-tablespace-file.d.ts.map +1 -0
- package/dist/adminapi/models/oracle-tablespace-file.js +16 -0
- package/dist/adminapi/models/oracle-tablespace-file.js.map +1 -0
- package/dist/adminapi/models/oracle-tablespace.d.ts +86 -0
- package/dist/adminapi/models/oracle-tablespace.d.ts.map +1 -0
- package/dist/adminapi/models/oracle-tablespace.js +16 -0
- package/dist/adminapi/models/oracle-tablespace.js.map +1 -0
- package/dist/openapi/api.d.ts +2 -0
- package/dist/openapi/api.d.ts.map +1 -1
- package/dist/openapi/api.js +2 -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/apis/diagnostics-api.d.ts +229 -0
- package/dist/openapi/apis/diagnostics-api.d.ts.map +1 -1
- package/dist/openapi/apis/diagnostics-api.js +247 -0
- package/dist/openapi/apis/diagnostics-api.js.map +1 -1
- package/dist/openapi/apis/oracle-api.d.ts +422 -0
- package/dist/openapi/apis/oracle-api.d.ts.map +1 -0
- package/dist/openapi/apis/oracle-api.js +471 -0
- package/dist/openapi/apis/oracle-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 +8 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +8 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/dist/openapi/models/oracle-tablespace-contents.d.ts +22 -0
- package/dist/openapi/models/oracle-tablespace-contents.d.ts.map +1 -0
- package/dist/openapi/models/oracle-tablespace-contents.js +26 -0
- package/dist/openapi/models/oracle-tablespace-contents.js.map +1 -0
- package/dist/openapi/models/oracle-tablespace-create.d.ts +45 -0
- package/dist/openapi/models/oracle-tablespace-create.d.ts.map +1 -0
- package/dist/openapi/models/oracle-tablespace-create.js +16 -0
- package/dist/openapi/models/oracle-tablespace-create.js.map +1 -0
- package/dist/openapi/models/oracle-tablespace-expand-action.d.ts +22 -0
- package/dist/openapi/models/oracle-tablespace-expand-action.d.ts.map +1 -0
- package/dist/openapi/models/oracle-tablespace-expand-action.js +26 -0
- package/dist/openapi/models/oracle-tablespace-expand-action.js.map +1 -0
- package/dist/openapi/models/oracle-tablespace-expand.d.ts +45 -0
- package/dist/openapi/models/oracle-tablespace-expand.d.ts.map +1 -0
- package/dist/openapi/models/oracle-tablespace-expand.js +16 -0
- package/dist/openapi/models/oracle-tablespace-expand.js.map +1 -0
- package/dist/openapi/models/oracle-tablespace-file-spec.d.ts +49 -0
- package/dist/openapi/models/oracle-tablespace-file-spec.d.ts.map +1 -0
- package/dist/openapi/models/oracle-tablespace-file-spec.js +16 -0
- package/dist/openapi/models/oracle-tablespace-file-spec.js.map +1 -0
- package/dist/openapi/models/oracle-tablespace-file.d.ts +67 -0
- package/dist/openapi/models/oracle-tablespace-file.d.ts.map +1 -0
- package/dist/openapi/models/oracle-tablespace-file.js +16 -0
- package/dist/openapi/models/oracle-tablespace-file.js.map +1 -0
- package/dist/openapi/models/oracle-tablespace.d.ts +86 -0
- package/dist/openapi/models/oracle-tablespace.d.ts.map +1 -0
- package/dist/openapi/models/oracle-tablespace.js +16 -0
- package/dist/openapi/models/oracle-tablespace.js.map +1 -0
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +11 -0
- package/src/adminapi/api.ts +2 -0
- package/src/adminapi/apis/dashboard-config-api.ts +388 -0
- package/src/adminapi/apis/diagnostics-api.ts +401 -0
- package/src/adminapi/apis/oracle-api.ts +726 -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 +9 -0
- package/src/adminapi/models/oracle-tablespace-contents.ts +31 -0
- package/src/adminapi/models/oracle-tablespace-create.ts +56 -0
- package/src/adminapi/models/oracle-tablespace-expand-action.ts +31 -0
- package/src/adminapi/models/oracle-tablespace-expand.ts +56 -0
- package/src/adminapi/models/oracle-tablespace-file-spec.ts +54 -0
- package/src/adminapi/models/oracle-tablespace-file.ts +72 -0
- package/src/adminapi/models/oracle-tablespace.ts +93 -0
- package/src/adminapi.yaml +1030 -411
- package/src/openapi/.openapi-generator/FILES +10 -0
- package/src/openapi/api.ts +2 -0
- package/src/openapi/apis/dashboard-config-api.ts +172 -0
- package/src/openapi/apis/diagnostics-api.ts +401 -0
- package/src/openapi/apis/oracle-api.ts +726 -0
- package/src/openapi/models/dashboard-config.ts +36 -0
- package/src/openapi/models/index.ts +8 -0
- package/src/openapi/models/oracle-tablespace-contents.ts +31 -0
- package/src/openapi/models/oracle-tablespace-create.ts +56 -0
- package/src/openapi/models/oracle-tablespace-expand-action.ts +31 -0
- package/src/openapi/models/oracle-tablespace-expand.ts +56 -0
- package/src/openapi/models/oracle-tablespace-file-spec.ts +54 -0
- package/src/openapi/models/oracle-tablespace-file.ts +72 -0
- package/src/openapi/models/oracle-tablespace.ts +93 -0
- package/src/openapi.yaml +902 -341
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* KubeBlocks Cloud API
|
|
3
|
+
* 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: support@apecloud.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { OracleTablespaceFile } from './oracle-tablespace-file';
|
|
13
|
+
/**
|
|
14
|
+
* Oracle tablespace in the datasource connection\'s current container. Sizes are in MiB. Supports Oracle 12c and 19c.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface OracleTablespace
|
|
17
|
+
*/
|
|
18
|
+
export interface OracleTablespace {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof OracleTablespace
|
|
23
|
+
*/
|
|
24
|
+
'name': string;
|
|
25
|
+
/**
|
|
26
|
+
* PERMANENT, TEMPORARY, or UNDO.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof OracleTablespace
|
|
29
|
+
*/
|
|
30
|
+
'contents': string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof OracleTablespace
|
|
35
|
+
*/
|
|
36
|
+
'status': string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {boolean}
|
|
40
|
+
* @memberof OracleTablespace
|
|
41
|
+
*/
|
|
42
|
+
'bigfile': boolean;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof OracleTablespace
|
|
47
|
+
*/
|
|
48
|
+
'blockSize': number;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof OracleTablespace
|
|
53
|
+
*/
|
|
54
|
+
'containerName': string;
|
|
55
|
+
/**
|
|
56
|
+
* Whether this is a default permanent or temporary tablespace, including default temporary group members.
|
|
57
|
+
* @type {boolean}
|
|
58
|
+
* @memberof OracleTablespace
|
|
59
|
+
*/
|
|
60
|
+
'isDefault': boolean;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof OracleTablespace
|
|
65
|
+
*/
|
|
66
|
+
'allocatedSizeMB': number;
|
|
67
|
+
/**
|
|
68
|
+
* Allocated file space minus free extents, or temporary file space currently allocated to temporary segments.
|
|
69
|
+
* @type {number}
|
|
70
|
+
* @memberof OracleTablespace
|
|
71
|
+
*/
|
|
72
|
+
'usedSizeMB': number;
|
|
73
|
+
/**
|
|
74
|
+
* Configured file growth limit; does not imply available disk capacity.
|
|
75
|
+
* @type {number}
|
|
76
|
+
* @memberof OracleTablespace
|
|
77
|
+
*/
|
|
78
|
+
'maxSizeMB': number;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {Array<OracleTablespaceFile>}
|
|
82
|
+
* @memberof OracleTablespace
|
|
83
|
+
*/
|
|
84
|
+
'files': Array<OracleTablespaceFile>;
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=oracle-tablespace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oracle-tablespace.d.ts","sourceRoot":"","sources":["../../../src/openapi/models/oracle-tablespace.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAErE;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,WAAW,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAC;CACxC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* KubeBlocks Cloud API
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: support@apecloud.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
//# sourceMappingURL=oracle-tablespace.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oracle-tablespace.js","sourceRoot":"","sources":["../../../src/openapi/models/oracle-tablespace.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"}
|
package/package.json
CHANGED
|
@@ -27,6 +27,7 @@ apis/cluster-log-api.ts
|
|
|
27
27
|
apis/cluster-loki-log-api.ts
|
|
28
28
|
apis/cluster-tag-api.ts
|
|
29
29
|
apis/dameng-api.ts
|
|
30
|
+
apis/dashboard-config-api.ts
|
|
30
31
|
apis/database-api.ts
|
|
31
32
|
apis/database-parameters-api.ts
|
|
32
33
|
apis/diagnostics-api.ts
|
|
@@ -62,6 +63,7 @@ apis/monitor-data-sink-api.ts
|
|
|
62
63
|
apis/mssql-api.ts
|
|
63
64
|
apis/oceanbase-api.ts
|
|
64
65
|
apis/opsrequest-api.ts
|
|
66
|
+
apis/oracle-api.ts
|
|
65
67
|
apis/organization-api.ts
|
|
66
68
|
apis/organization-parameter-api.ts
|
|
67
69
|
apis/organization-resource-quota-api.ts
|
|
@@ -344,6 +346,8 @@ models/dameng-space-analysis.ts
|
|
|
344
346
|
models/dameng-sqlanalysis.ts
|
|
345
347
|
models/dameng-table-size-item.ts
|
|
346
348
|
models/dameng-tablespace-item.ts
|
|
349
|
+
models/dashboard-config-update.ts
|
|
350
|
+
models/dashboard-config.ts
|
|
347
351
|
models/dashboard-option-instance-panels-inner-panels-inner.ts
|
|
348
352
|
models/dashboard-option-instance-panels-inner.ts
|
|
349
353
|
models/dashboard-option.ts
|
|
@@ -813,6 +817,13 @@ models/ops-upgrade.ts
|
|
|
813
817
|
models/ops-volume-expand-volumes-inner.ts
|
|
814
818
|
models/ops-volume-expand.ts
|
|
815
819
|
models/ops-vscale.ts
|
|
820
|
+
models/oracle-tablespace-contents.ts
|
|
821
|
+
models/oracle-tablespace-create.ts
|
|
822
|
+
models/oracle-tablespace-expand-action.ts
|
|
823
|
+
models/oracle-tablespace-expand.ts
|
|
824
|
+
models/oracle-tablespace-file-spec.ts
|
|
825
|
+
models/oracle-tablespace-file.ts
|
|
826
|
+
models/oracle-tablespace.ts
|
|
816
827
|
models/org-create.ts
|
|
817
828
|
models/org-member-add.ts
|
|
818
829
|
models/org-member-list.ts
|
package/src/adminapi/api.ts
CHANGED
|
@@ -39,6 +39,7 @@ export * from './apis/cluster-log-api';
|
|
|
39
39
|
export * from './apis/cluster-loki-log-api';
|
|
40
40
|
export * from './apis/cluster-tag-api';
|
|
41
41
|
export * from './apis/dameng-api';
|
|
42
|
+
export * from './apis/dashboard-config-api';
|
|
42
43
|
export * from './apis/database-api';
|
|
43
44
|
export * from './apis/database-parameters-api';
|
|
44
45
|
export * from './apis/diagnostics-api';
|
|
@@ -74,6 +75,7 @@ export * from './apis/monitor-data-sink-api';
|
|
|
74
75
|
export * from './apis/mssql-api';
|
|
75
76
|
export * from './apis/oceanbase-api';
|
|
76
77
|
export * from './apis/opsrequest-api';
|
|
78
|
+
export * from './apis/oracle-api';
|
|
77
79
|
export * from './apis/organization-api';
|
|
78
80
|
export * from './apis/organization-parameter-api';
|
|
79
81
|
export * from './apis/organization-resource-quota-api';
|
|
@@ -0,0 +1,388 @@
|
|
|
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
|
+
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
|
+
// @ts-ignore
|
|
29
|
+
import type { DashboardConfigUpdate } from '../models';
|
|
30
|
+
/**
|
|
31
|
+
* DashboardConfigApi - axios parameter creator
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export const DashboardConfigApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
35
|
+
return {
|
|
36
|
+
/**
|
|
37
|
+
* Requires platform configuration write access. Deleting a missing key succeeds.
|
|
38
|
+
* @summary Delete dashboard configuration by key
|
|
39
|
+
* @param {string} key Frontend-defined non-blank configuration key, up to 512 Unicode characters. URL-encode the key when used in a request path.
|
|
40
|
+
* @param {*} [options] Override http request option.
|
|
41
|
+
* @throws {RequiredError}
|
|
42
|
+
*/
|
|
43
|
+
deleteDashboardConfig: async (key: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
44
|
+
// verify required parameter 'key' is not null or undefined
|
|
45
|
+
assertParamExists('deleteDashboardConfig', 'key', key)
|
|
46
|
+
const localVarPath = `/admin/v1/dashboardConfigs/{key}`
|
|
47
|
+
.replace(`{${"key"}}`, encodeURIComponent(String(key)));
|
|
48
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
49
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
50
|
+
let baseOptions;
|
|
51
|
+
if (configuration) {
|
|
52
|
+
baseOptions = configuration.baseOptions;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
56
|
+
const localVarHeaderParameter = {} as any;
|
|
57
|
+
const localVarQueryParameter = {} as any;
|
|
58
|
+
|
|
59
|
+
// authentication BearerToken required
|
|
60
|
+
// http bearer authentication required
|
|
61
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
62
|
+
|
|
63
|
+
// authentication DigestAuth required
|
|
64
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
69
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
70
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
71
|
+
|
|
72
|
+
return {
|
|
73
|
+
url: toPathString(localVarUrlObj),
|
|
74
|
+
options: localVarRequestOptions,
|
|
75
|
+
};
|
|
76
|
+
},
|
|
77
|
+
/**
|
|
78
|
+
* Requires platform configuration read access. Missing keys return 200 with a null value.
|
|
79
|
+
* @summary Get dashboard configuration by key
|
|
80
|
+
* @param {string} key Frontend-defined non-blank configuration key, up to 512 Unicode characters. URL-encode the key when used in a request path.
|
|
81
|
+
* @param {*} [options] Override http request option.
|
|
82
|
+
* @throws {RequiredError}
|
|
83
|
+
*/
|
|
84
|
+
getDashboardConfig: async (key: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
85
|
+
// verify required parameter 'key' is not null or undefined
|
|
86
|
+
assertParamExists('getDashboardConfig', 'key', key)
|
|
87
|
+
const localVarPath = `/admin/v1/dashboardConfigs/{key}`
|
|
88
|
+
.replace(`{${"key"}}`, encodeURIComponent(String(key)));
|
|
89
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
90
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
91
|
+
let baseOptions;
|
|
92
|
+
if (configuration) {
|
|
93
|
+
baseOptions = configuration.baseOptions;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
97
|
+
const localVarHeaderParameter = {} as any;
|
|
98
|
+
const localVarQueryParameter = {} as any;
|
|
99
|
+
|
|
100
|
+
// authentication BearerToken required
|
|
101
|
+
// http bearer authentication required
|
|
102
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
103
|
+
|
|
104
|
+
// authentication DigestAuth required
|
|
105
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
110
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
111
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
112
|
+
|
|
113
|
+
return {
|
|
114
|
+
url: toPathString(localVarUrlObj),
|
|
115
|
+
options: localVarRequestOptions,
|
|
116
|
+
};
|
|
117
|
+
},
|
|
118
|
+
/**
|
|
119
|
+
* Requires platform configuration write access. Atomic upsert with last-write-wins semantics. Request body is limited to 1 MiB.
|
|
120
|
+
* @summary Create or replace dashboard configuration by key
|
|
121
|
+
* @param {string} key Frontend-defined non-blank configuration key, up to 512 Unicode characters. URL-encode the key when used in a request path.
|
|
122
|
+
* @param {DashboardConfigUpdate} dashboardConfigUpdate
|
|
123
|
+
* @param {*} [options] Override http request option.
|
|
124
|
+
* @throws {RequiredError}
|
|
125
|
+
*/
|
|
126
|
+
putDashboardConfig: async (key: string, dashboardConfigUpdate: DashboardConfigUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
127
|
+
// verify required parameter 'key' is not null or undefined
|
|
128
|
+
assertParamExists('putDashboardConfig', 'key', key)
|
|
129
|
+
// verify required parameter 'dashboardConfigUpdate' is not null or undefined
|
|
130
|
+
assertParamExists('putDashboardConfig', 'dashboardConfigUpdate', dashboardConfigUpdate)
|
|
131
|
+
const localVarPath = `/admin/v1/dashboardConfigs/{key}`
|
|
132
|
+
.replace(`{${"key"}}`, encodeURIComponent(String(key)));
|
|
133
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
134
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
135
|
+
let baseOptions;
|
|
136
|
+
if (configuration) {
|
|
137
|
+
baseOptions = configuration.baseOptions;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
141
|
+
const localVarHeaderParameter = {} as any;
|
|
142
|
+
const localVarQueryParameter = {} as any;
|
|
143
|
+
|
|
144
|
+
// authentication BearerToken required
|
|
145
|
+
// http bearer authentication required
|
|
146
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
147
|
+
|
|
148
|
+
// authentication DigestAuth required
|
|
149
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
154
|
+
|
|
155
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
156
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
157
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
158
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dashboardConfigUpdate, localVarRequestOptions, configuration)
|
|
159
|
+
|
|
160
|
+
return {
|
|
161
|
+
url: toPathString(localVarUrlObj),
|
|
162
|
+
options: localVarRequestOptions,
|
|
163
|
+
};
|
|
164
|
+
},
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* DashboardConfigApi - functional programming interface
|
|
170
|
+
* @export
|
|
171
|
+
*/
|
|
172
|
+
export const DashboardConfigApiFp = function(configuration?: Configuration) {
|
|
173
|
+
const localVarAxiosParamCreator = DashboardConfigApiAxiosParamCreator(configuration)
|
|
174
|
+
return {
|
|
175
|
+
/**
|
|
176
|
+
* Requires platform configuration write access. Deleting a missing key succeeds.
|
|
177
|
+
* @summary Delete dashboard configuration by key
|
|
178
|
+
* @param {string} key Frontend-defined non-blank configuration key, up to 512 Unicode characters. URL-encode the key when used in a request path.
|
|
179
|
+
* @param {*} [options] Override http request option.
|
|
180
|
+
* @throws {RequiredError}
|
|
181
|
+
*/
|
|
182
|
+
async deleteDashboardConfig(key: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
183
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDashboardConfig(key, options);
|
|
184
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
185
|
+
const localVarOperationServerBasePath = operationServerMap['DashboardConfigApi.deleteDashboardConfig']?.[localVarOperationServerIndex]?.url;
|
|
186
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
187
|
+
},
|
|
188
|
+
/**
|
|
189
|
+
* Requires platform configuration read access. Missing keys return 200 with a null value.
|
|
190
|
+
* @summary Get dashboard configuration by key
|
|
191
|
+
* @param {string} key Frontend-defined non-blank configuration key, up to 512 Unicode characters. URL-encode the key when used in a request path.
|
|
192
|
+
* @param {*} [options] Override http request option.
|
|
193
|
+
* @throws {RequiredError}
|
|
194
|
+
*/
|
|
195
|
+
async getDashboardConfig(key: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DashboardConfig>> {
|
|
196
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDashboardConfig(key, options);
|
|
197
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
198
|
+
const localVarOperationServerBasePath = operationServerMap['DashboardConfigApi.getDashboardConfig']?.[localVarOperationServerIndex]?.url;
|
|
199
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
200
|
+
},
|
|
201
|
+
/**
|
|
202
|
+
* Requires platform configuration write access. Atomic upsert with last-write-wins semantics. Request body is limited to 1 MiB.
|
|
203
|
+
* @summary Create or replace dashboard configuration by key
|
|
204
|
+
* @param {string} key Frontend-defined non-blank configuration key, up to 512 Unicode characters. URL-encode the key when used in a request path.
|
|
205
|
+
* @param {DashboardConfigUpdate} dashboardConfigUpdate
|
|
206
|
+
* @param {*} [options] Override http request option.
|
|
207
|
+
* @throws {RequiredError}
|
|
208
|
+
*/
|
|
209
|
+
async putDashboardConfig(key: string, dashboardConfigUpdate: DashboardConfigUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DashboardConfig>> {
|
|
210
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putDashboardConfig(key, dashboardConfigUpdate, options);
|
|
211
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
212
|
+
const localVarOperationServerBasePath = operationServerMap['DashboardConfigApi.putDashboardConfig']?.[localVarOperationServerIndex]?.url;
|
|
213
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
214
|
+
},
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* DashboardConfigApi - factory interface
|
|
220
|
+
* @export
|
|
221
|
+
*/
|
|
222
|
+
export const DashboardConfigApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
223
|
+
const localVarFp = DashboardConfigApiFp(configuration)
|
|
224
|
+
return {
|
|
225
|
+
/**
|
|
226
|
+
* Requires platform configuration write access. Deleting a missing key succeeds.
|
|
227
|
+
* @summary Delete dashboard configuration by key
|
|
228
|
+
* @param {DashboardConfigApiDeleteDashboardConfigRequest} requestParameters Request parameters.
|
|
229
|
+
* @param {*} [options] Override http request option.
|
|
230
|
+
* @throws {RequiredError}
|
|
231
|
+
*/
|
|
232
|
+
deleteDashboardConfig(requestParameters: DashboardConfigApiDeleteDashboardConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
233
|
+
return localVarFp.deleteDashboardConfig(requestParameters.key, options).then((request) => request(axios, basePath));
|
|
234
|
+
},
|
|
235
|
+
/**
|
|
236
|
+
* Requires platform configuration read access. Missing keys return 200 with a null value.
|
|
237
|
+
* @summary Get dashboard configuration by key
|
|
238
|
+
* @param {DashboardConfigApiGetDashboardConfigRequest} requestParameters Request parameters.
|
|
239
|
+
* @param {*} [options] Override http request option.
|
|
240
|
+
* @throws {RequiredError}
|
|
241
|
+
*/
|
|
242
|
+
getDashboardConfig(requestParameters: DashboardConfigApiGetDashboardConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise<DashboardConfig> {
|
|
243
|
+
return localVarFp.getDashboardConfig(requestParameters.key, options).then((request) => request(axios, basePath));
|
|
244
|
+
},
|
|
245
|
+
/**
|
|
246
|
+
* Requires platform configuration write access. Atomic upsert with last-write-wins semantics. Request body is limited to 1 MiB.
|
|
247
|
+
* @summary Create or replace dashboard configuration by key
|
|
248
|
+
* @param {DashboardConfigApiPutDashboardConfigRequest} requestParameters Request parameters.
|
|
249
|
+
* @param {*} [options] Override http request option.
|
|
250
|
+
* @throws {RequiredError}
|
|
251
|
+
*/
|
|
252
|
+
putDashboardConfig(requestParameters: DashboardConfigApiPutDashboardConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise<DashboardConfig> {
|
|
253
|
+
return localVarFp.putDashboardConfig(requestParameters.key, requestParameters.dashboardConfigUpdate, options).then((request) => request(axios, basePath));
|
|
254
|
+
},
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* DashboardConfigApi - interface
|
|
260
|
+
* @export
|
|
261
|
+
* @interface DashboardConfigApi
|
|
262
|
+
*/
|
|
263
|
+
export interface DashboardConfigApiInterface {
|
|
264
|
+
/**
|
|
265
|
+
* Requires platform configuration write access. Deleting a missing key succeeds.
|
|
266
|
+
* @summary Delete dashboard configuration by key
|
|
267
|
+
* @param {DashboardConfigApiDeleteDashboardConfigRequest} requestParameters Request parameters.
|
|
268
|
+
* @param {*} [options] Override http request option.
|
|
269
|
+
* @throws {RequiredError}
|
|
270
|
+
* @memberof DashboardConfigApiInterface
|
|
271
|
+
*/
|
|
272
|
+
deleteDashboardConfig(requestParameters: DashboardConfigApiDeleteDashboardConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Requires platform configuration read access. Missing keys return 200 with a null value.
|
|
276
|
+
* @summary Get dashboard configuration by key
|
|
277
|
+
* @param {DashboardConfigApiGetDashboardConfigRequest} requestParameters Request parameters.
|
|
278
|
+
* @param {*} [options] Override http request option.
|
|
279
|
+
* @throws {RequiredError}
|
|
280
|
+
* @memberof DashboardConfigApiInterface
|
|
281
|
+
*/
|
|
282
|
+
getDashboardConfig(requestParameters: DashboardConfigApiGetDashboardConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise<DashboardConfig>;
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* Requires platform configuration write access. Atomic upsert with last-write-wins semantics. Request body is limited to 1 MiB.
|
|
286
|
+
* @summary Create or replace dashboard configuration by key
|
|
287
|
+
* @param {DashboardConfigApiPutDashboardConfigRequest} requestParameters Request parameters.
|
|
288
|
+
* @param {*} [options] Override http request option.
|
|
289
|
+
* @throws {RequiredError}
|
|
290
|
+
* @memberof DashboardConfigApiInterface
|
|
291
|
+
*/
|
|
292
|
+
putDashboardConfig(requestParameters: DashboardConfigApiPutDashboardConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise<DashboardConfig>;
|
|
293
|
+
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Request parameters for deleteDashboardConfig operation in DashboardConfigApi.
|
|
298
|
+
* @export
|
|
299
|
+
* @interface DashboardConfigApiDeleteDashboardConfigRequest
|
|
300
|
+
*/
|
|
301
|
+
export interface DashboardConfigApiDeleteDashboardConfigRequest {
|
|
302
|
+
/**
|
|
303
|
+
* Frontend-defined non-blank configuration key, up to 512 Unicode characters. URL-encode the key when used in a request path.
|
|
304
|
+
* @type {string}
|
|
305
|
+
* @memberof DashboardConfigApiDeleteDashboardConfig
|
|
306
|
+
*/
|
|
307
|
+
readonly key: string
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* Request parameters for getDashboardConfig operation in DashboardConfigApi.
|
|
312
|
+
* @export
|
|
313
|
+
* @interface DashboardConfigApiGetDashboardConfigRequest
|
|
314
|
+
*/
|
|
315
|
+
export interface DashboardConfigApiGetDashboardConfigRequest {
|
|
316
|
+
/**
|
|
317
|
+
* Frontend-defined non-blank configuration key, up to 512 Unicode characters. URL-encode the key when used in a request path.
|
|
318
|
+
* @type {string}
|
|
319
|
+
* @memberof DashboardConfigApiGetDashboardConfig
|
|
320
|
+
*/
|
|
321
|
+
readonly key: string
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* Request parameters for putDashboardConfig operation in DashboardConfigApi.
|
|
326
|
+
* @export
|
|
327
|
+
* @interface DashboardConfigApiPutDashboardConfigRequest
|
|
328
|
+
*/
|
|
329
|
+
export interface DashboardConfigApiPutDashboardConfigRequest {
|
|
330
|
+
/**
|
|
331
|
+
* Frontend-defined non-blank configuration key, up to 512 Unicode characters. URL-encode the key when used in a request path.
|
|
332
|
+
* @type {string}
|
|
333
|
+
* @memberof DashboardConfigApiPutDashboardConfig
|
|
334
|
+
*/
|
|
335
|
+
readonly key: string
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
*
|
|
339
|
+
* @type {DashboardConfigUpdate}
|
|
340
|
+
* @memberof DashboardConfigApiPutDashboardConfig
|
|
341
|
+
*/
|
|
342
|
+
readonly dashboardConfigUpdate: DashboardConfigUpdate
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* DashboardConfigApi - object-oriented interface
|
|
347
|
+
* @export
|
|
348
|
+
* @class DashboardConfigApi
|
|
349
|
+
* @extends {BaseAPI}
|
|
350
|
+
*/
|
|
351
|
+
export class DashboardConfigApi extends BaseAPI implements DashboardConfigApiInterface {
|
|
352
|
+
/**
|
|
353
|
+
* Requires platform configuration write access. Deleting a missing key succeeds.
|
|
354
|
+
* @summary Delete dashboard configuration by key
|
|
355
|
+
* @param {DashboardConfigApiDeleteDashboardConfigRequest} requestParameters Request parameters.
|
|
356
|
+
* @param {*} [options] Override http request option.
|
|
357
|
+
* @throws {RequiredError}
|
|
358
|
+
* @memberof DashboardConfigApi
|
|
359
|
+
*/
|
|
360
|
+
public deleteDashboardConfig(requestParameters: DashboardConfigApiDeleteDashboardConfigRequest, options?: RawAxiosRequestConfig) {
|
|
361
|
+
return DashboardConfigApiFp(this.configuration).deleteDashboardConfig(requestParameters.key, options).then((request) => request(this.axios, this.basePath));
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* Requires platform configuration read access. Missing keys return 200 with a null value.
|
|
366
|
+
* @summary Get dashboard configuration by key
|
|
367
|
+
* @param {DashboardConfigApiGetDashboardConfigRequest} requestParameters Request parameters.
|
|
368
|
+
* @param {*} [options] Override http request option.
|
|
369
|
+
* @throws {RequiredError}
|
|
370
|
+
* @memberof DashboardConfigApi
|
|
371
|
+
*/
|
|
372
|
+
public getDashboardConfig(requestParameters: DashboardConfigApiGetDashboardConfigRequest, options?: RawAxiosRequestConfig) {
|
|
373
|
+
return DashboardConfigApiFp(this.configuration).getDashboardConfig(requestParameters.key, options).then((request) => request(this.axios, this.basePath));
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Requires platform configuration write access. Atomic upsert with last-write-wins semantics. Request body is limited to 1 MiB.
|
|
378
|
+
* @summary Create or replace dashboard configuration by key
|
|
379
|
+
* @param {DashboardConfigApiPutDashboardConfigRequest} requestParameters Request parameters.
|
|
380
|
+
* @param {*} [options] Override http request option.
|
|
381
|
+
* @throws {RequiredError}
|
|
382
|
+
* @memberof DashboardConfigApi
|
|
383
|
+
*/
|
|
384
|
+
public putDashboardConfig(requestParameters: DashboardConfigApiPutDashboardConfigRequest, options?: RawAxiosRequestConfig) {
|
|
385
|
+
return DashboardConfigApiFp(this.configuration).putDashboardConfig(requestParameters.key, requestParameters.dashboardConfigUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
|