kb-cloud-client-typescript 2.3.57 → 2.3.58
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/account-api.d.ts +841 -35
- package/dist/adminapi/apis/account-api.d.ts.map +1 -1
- package/dist/adminapi/apis/account-api.js +963 -79
- package/dist/adminapi/apis/account-api.js.map +1 -1
- package/dist/adminapi/apis/diagnostics-api.d.ts +79 -0
- package/dist/adminapi/apis/diagnostics-api.d.ts.map +1 -1
- package/dist/adminapi/apis/diagnostics-api.js +84 -0
- package/dist/adminapi/apis/diagnostics-api.js.map +1 -1
- package/dist/adminapi/apis/dolphindb-api.d.ts +854 -0
- package/dist/adminapi/apis/dolphindb-api.d.ts.map +1 -0
- package/dist/adminapi/apis/dolphindb-api.js +948 -0
- package/dist/adminapi/apis/dolphindb-api.js.map +1 -0
- package/dist/adminapi/apis/environment-api.d.ts +11 -11
- package/dist/adminapi/apis/environment-api.js +8 -8
- package/dist/adminapi/apis/shared-api.d.ts +844 -38
- package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
- package/dist/adminapi/apis/shared-api.js +967 -83
- package/dist/adminapi/apis/shared-api.js.map +1 -1
- package/dist/adminapi/models/apelocal-capacity-mode.d.ts +24 -0
- package/dist/adminapi/models/apelocal-capacity-mode.d.ts.map +1 -0
- package/dist/adminapi/models/apelocal-capacity-mode.js +28 -0
- package/dist/adminapi/models/apelocal-capacity-mode.js.map +1 -0
- package/dist/adminapi/models/apelocal-capacity-observation.d.ts +43 -0
- package/dist/adminapi/models/apelocal-capacity-observation.d.ts.map +1 -0
- package/dist/adminapi/models/apelocal-capacity-observation.js +16 -0
- package/dist/adminapi/models/apelocal-capacity-observation.js.map +1 -0
- package/dist/adminapi/models/apelocal-capacity-observations.d.ts +68 -0
- package/dist/adminapi/models/apelocal-capacity-observations.d.ts.map +1 -0
- package/dist/adminapi/models/apelocal-capacity-observations.js +16 -0
- package/dist/adminapi/models/apelocal-capacity-observations.js.map +1 -0
- package/dist/adminapi/models/apelocal-capacity-summary-mode.d.ts +23 -0
- package/dist/adminapi/models/apelocal-capacity-summary-mode.d.ts.map +1 -0
- package/dist/adminapi/models/apelocal-capacity-summary-mode.js +27 -0
- package/dist/adminapi/models/apelocal-capacity-summary-mode.js.map +1 -0
- package/dist/adminapi/models/apelocal-capacity-summary.d.ts +81 -0
- package/dist/adminapi/models/apelocal-capacity-summary.d.ts.map +1 -0
- package/dist/adminapi/models/apelocal-capacity-summary.js +16 -0
- package/dist/adminapi/models/apelocal-capacity-summary.js.map +1 -0
- package/dist/adminapi/models/apelocal-node-stats.d.ts +67 -0
- package/dist/adminapi/models/apelocal-node-stats.d.ts.map +1 -0
- package/dist/adminapi/models/apelocal-node-stats.js +16 -0
- package/dist/adminapi/models/apelocal-node-stats.js.map +1 -0
- package/dist/adminapi/models/apelocal-storage-class-stats.d.ts +63 -0
- package/dist/adminapi/models/apelocal-storage-class-stats.d.ts.map +1 -0
- package/dist/adminapi/models/apelocal-storage-class-stats.js +16 -0
- package/dist/adminapi/models/apelocal-storage-class-stats.js.map +1 -0
- package/dist/adminapi/models/dolphin-dbcapabilities.d.ts +32 -0
- package/dist/adminapi/models/dolphin-dbcapabilities.d.ts.map +1 -0
- package/dist/adminapi/models/dolphin-dbcapabilities.js +16 -0
- package/dist/adminapi/models/dolphin-dbcapabilities.js.map +1 -0
- package/dist/adminapi/models/dolphin-dbgroup-create.d.ts +31 -0
- package/dist/adminapi/models/dolphin-dbgroup-create.d.ts.map +1 -0
- package/dist/adminapi/models/dolphin-dbgroup-create.js +16 -0
- package/dist/adminapi/models/dolphin-dbgroup-create.js.map +1 -0
- package/dist/adminapi/models/dolphin-dbgroup-permissions.d.ts +32 -0
- package/dist/adminapi/models/dolphin-dbgroup-permissions.d.ts.map +1 -0
- package/dist/adminapi/models/dolphin-dbgroup-permissions.js +16 -0
- package/dist/adminapi/models/dolphin-dbgroup-permissions.js.map +1 -0
- package/dist/adminapi/models/dolphin-dbgroup.d.ts +31 -0
- package/dist/adminapi/models/dolphin-dbgroup.d.ts.map +1 -0
- package/dist/adminapi/models/dolphin-dbgroup.js +16 -0
- package/dist/adminapi/models/dolphin-dbgroup.js.map +1 -0
- package/dist/adminapi/models/dolphin-dbmembership-change.d.ts +31 -0
- package/dist/adminapi/models/dolphin-dbmembership-change.d.ts.map +1 -0
- package/dist/adminapi/models/dolphin-dbmembership-change.js +16 -0
- package/dist/adminapi/models/dolphin-dbmembership-change.js.map +1 -0
- package/dist/adminapi/models/dolphin-dbpassword-change.d.ts +25 -0
- package/dist/adminapi/models/dolphin-dbpassword-change.d.ts.map +1 -0
- package/dist/adminapi/models/dolphin-dbpassword-change.js +16 -0
- package/dist/adminapi/models/dolphin-dbpassword-change.js.map +1 -0
- package/dist/adminapi/models/dolphin-dbpermission-change.d.ts +43 -0
- package/dist/adminapi/models/dolphin-dbpermission-change.d.ts.map +1 -0
- package/dist/adminapi/models/dolphin-dbpermission-change.js +16 -0
- package/dist/adminapi/models/dolphin-dbpermission-change.js.map +1 -0
- package/dist/adminapi/models/dolphin-dbpermission-snapshot.d.ts +57 -0
- package/dist/adminapi/models/dolphin-dbpermission-snapshot.d.ts.map +1 -0
- package/dist/adminapi/models/dolphin-dbpermission-snapshot.js +16 -0
- package/dist/adminapi/models/dolphin-dbpermission-snapshot.js.map +1 -0
- package/dist/adminapi/models/dolphin-dbpermission-state.d.ts +49 -0
- package/dist/adminapi/models/dolphin-dbpermission-state.d.ts.map +1 -0
- package/dist/adminapi/models/dolphin-dbpermission-state.js +16 -0
- package/dist/adminapi/models/dolphin-dbpermission-state.js.map +1 -0
- package/dist/adminapi/models/dolphin-dbprivilege-capability.d.ts +43 -0
- package/dist/adminapi/models/dolphin-dbprivilege-capability.d.ts.map +1 -0
- package/dist/adminapi/models/dolphin-dbprivilege-capability.js +16 -0
- package/dist/adminapi/models/dolphin-dbprivilege-capability.js.map +1 -0
- package/dist/adminapi/models/dolphin-dbuser-create.d.ts +43 -0
- package/dist/adminapi/models/dolphin-dbuser-create.d.ts.map +1 -0
- package/dist/adminapi/models/dolphin-dbuser-create.js +16 -0
- package/dist/adminapi/models/dolphin-dbuser-create.js.map +1 -0
- package/dist/adminapi/models/dolphin-dbuser.d.ts +43 -0
- package/dist/adminapi/models/dolphin-dbuser.d.ts.map +1 -0
- package/dist/adminapi/models/dolphin-dbuser.js +16 -0
- package/dist/adminapi/models/dolphin-dbuser.js.map +1 -0
- package/dist/adminapi/models/index.d.ts +19 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +19 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/storage-class-node-stats-list.d.ts +7 -0
- package/dist/adminapi/models/storage-class-node-stats-list.d.ts.map +1 -1
- package/dist/adminapi/models/storage-class-node-stats.d.ts +7 -0
- package/dist/adminapi/models/storage-class-node-stats.d.ts.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/account-api.d.ts +841 -35
- package/dist/openapi/apis/account-api.d.ts.map +1 -1
- package/dist/openapi/apis/account-api.js +963 -79
- package/dist/openapi/apis/account-api.js.map +1 -1
- package/dist/openapi/apis/diagnostics-api.d.ts +79 -0
- package/dist/openapi/apis/diagnostics-api.d.ts.map +1 -1
- package/dist/openapi/apis/diagnostics-api.js +84 -0
- package/dist/openapi/apis/diagnostics-api.js.map +1 -1
- package/dist/openapi/apis/dolphindb-api.d.ts +854 -0
- package/dist/openapi/apis/dolphindb-api.d.ts.map +1 -0
- package/dist/openapi/apis/dolphindb-api.js +948 -0
- package/dist/openapi/apis/dolphindb-api.js.map +1 -0
- package/dist/openapi/apis/shared-api.d.ts +844 -38
- package/dist/openapi/apis/shared-api.d.ts.map +1 -1
- package/dist/openapi/apis/shared-api.js +967 -83
- package/dist/openapi/apis/shared-api.js.map +1 -1
- package/dist/openapi/models/dolphin-dbcapabilities.d.ts +32 -0
- package/dist/openapi/models/dolphin-dbcapabilities.d.ts.map +1 -0
- package/dist/openapi/models/dolphin-dbcapabilities.js +16 -0
- package/dist/openapi/models/dolphin-dbcapabilities.js.map +1 -0
- package/dist/openapi/models/dolphin-dbgroup-create.d.ts +31 -0
- package/dist/openapi/models/dolphin-dbgroup-create.d.ts.map +1 -0
- package/dist/openapi/models/dolphin-dbgroup-create.js +16 -0
- package/dist/openapi/models/dolphin-dbgroup-create.js.map +1 -0
- package/dist/openapi/models/dolphin-dbgroup-permissions.d.ts +32 -0
- package/dist/openapi/models/dolphin-dbgroup-permissions.d.ts.map +1 -0
- package/dist/openapi/models/dolphin-dbgroup-permissions.js +16 -0
- package/dist/openapi/models/dolphin-dbgroup-permissions.js.map +1 -0
- package/dist/openapi/models/dolphin-dbgroup.d.ts +31 -0
- package/dist/openapi/models/dolphin-dbgroup.d.ts.map +1 -0
- package/dist/openapi/models/dolphin-dbgroup.js +16 -0
- package/dist/openapi/models/dolphin-dbgroup.js.map +1 -0
- package/dist/openapi/models/dolphin-dbmembership-change.d.ts +31 -0
- package/dist/openapi/models/dolphin-dbmembership-change.d.ts.map +1 -0
- package/dist/openapi/models/dolphin-dbmembership-change.js +16 -0
- package/dist/openapi/models/dolphin-dbmembership-change.js.map +1 -0
- package/dist/openapi/models/dolphin-dbpassword-change.d.ts +25 -0
- package/dist/openapi/models/dolphin-dbpassword-change.d.ts.map +1 -0
- package/dist/openapi/models/dolphin-dbpassword-change.js +16 -0
- package/dist/openapi/models/dolphin-dbpassword-change.js.map +1 -0
- package/dist/openapi/models/dolphin-dbpermission-change.d.ts +43 -0
- package/dist/openapi/models/dolphin-dbpermission-change.d.ts.map +1 -0
- package/dist/openapi/models/dolphin-dbpermission-change.js +16 -0
- package/dist/openapi/models/dolphin-dbpermission-change.js.map +1 -0
- package/dist/openapi/models/dolphin-dbpermission-snapshot.d.ts +57 -0
- package/dist/openapi/models/dolphin-dbpermission-snapshot.d.ts.map +1 -0
- package/dist/openapi/models/dolphin-dbpermission-snapshot.js +16 -0
- package/dist/openapi/models/dolphin-dbpermission-snapshot.js.map +1 -0
- package/dist/openapi/models/dolphin-dbpermission-state.d.ts +49 -0
- package/dist/openapi/models/dolphin-dbpermission-state.d.ts.map +1 -0
- package/dist/openapi/models/dolphin-dbpermission-state.js +16 -0
- package/dist/openapi/models/dolphin-dbpermission-state.js.map +1 -0
- package/dist/openapi/models/dolphin-dbprivilege-capability.d.ts +43 -0
- package/dist/openapi/models/dolphin-dbprivilege-capability.d.ts.map +1 -0
- package/dist/openapi/models/dolphin-dbprivilege-capability.js +16 -0
- package/dist/openapi/models/dolphin-dbprivilege-capability.js.map +1 -0
- package/dist/openapi/models/dolphin-dbuser-create.d.ts +43 -0
- package/dist/openapi/models/dolphin-dbuser-create.d.ts.map +1 -0
- package/dist/openapi/models/dolphin-dbuser-create.js +16 -0
- package/dist/openapi/models/dolphin-dbuser-create.js.map +1 -0
- package/dist/openapi/models/dolphin-dbuser.d.ts +43 -0
- package/dist/openapi/models/dolphin-dbuser.d.ts.map +1 -0
- package/dist/openapi/models/dolphin-dbuser.js +16 -0
- package/dist/openapi/models/dolphin-dbuser.js.map +1 -0
- package/dist/openapi/models/index.d.ts +12 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +12 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +20 -0
- package/src/adminapi/api.ts +1 -0
- package/src/adminapi/apis/account-api.ts +2431 -1015
- package/src/adminapi/apis/diagnostics-api.ts +138 -0
- package/src/adminapi/apis/dolphindb-api.ts +1486 -0
- package/src/adminapi/apis/environment-api.ts +11 -11
- package/src/adminapi/apis/shared-api.ts +1601 -185
- package/src/adminapi/models/apelocal-capacity-mode.ts +33 -0
- package/src/adminapi/models/apelocal-capacity-observation.ts +48 -0
- package/src/adminapi/models/apelocal-capacity-observations.ts +75 -0
- package/src/adminapi/models/apelocal-capacity-summary-mode.ts +32 -0
- package/src/adminapi/models/apelocal-capacity-summary.ts +92 -0
- package/src/adminapi/models/apelocal-node-stats.ts +72 -0
- package/src/adminapi/models/apelocal-storage-class-stats.ts +74 -0
- package/src/adminapi/models/dolphin-dbcapabilities.ts +39 -0
- package/src/adminapi/models/dolphin-dbgroup-create.ts +36 -0
- package/src/adminapi/models/dolphin-dbgroup-permissions.ts +39 -0
- package/src/adminapi/models/dolphin-dbgroup.ts +36 -0
- package/src/adminapi/models/dolphin-dbmembership-change.ts +36 -0
- package/src/adminapi/models/dolphin-dbpassword-change.ts +30 -0
- package/src/adminapi/models/dolphin-dbpermission-change.ts +48 -0
- package/src/adminapi/models/dolphin-dbpermission-snapshot.ts +66 -0
- package/src/adminapi/models/dolphin-dbpermission-state.ts +54 -0
- package/src/adminapi/models/dolphin-dbprivilege-capability.ts +48 -0
- package/src/adminapi/models/dolphin-dbuser-create.ts +48 -0
- package/src/adminapi/models/dolphin-dbuser.ts +48 -0
- package/src/adminapi/models/index.ts +19 -0
- package/src/adminapi/models/storage-class-node-stats-list.ts +9 -0
- package/src/adminapi/models/storage-class-node-stats.ts +9 -0
- package/src/adminapi.yaml +901 -18
- package/src/openapi/.openapi-generator/FILES +13 -0
- package/src/openapi/api.ts +1 -0
- package/src/openapi/apis/account-api.ts +2431 -1015
- package/src/openapi/apis/diagnostics-api.ts +138 -0
- package/src/openapi/apis/dolphindb-api.ts +1486 -0
- package/src/openapi/apis/shared-api.ts +1439 -23
- package/src/openapi/models/dolphin-dbcapabilities.ts +39 -0
- package/src/openapi/models/dolphin-dbgroup-create.ts +36 -0
- package/src/openapi/models/dolphin-dbgroup-permissions.ts +39 -0
- package/src/openapi/models/dolphin-dbgroup.ts +36 -0
- package/src/openapi/models/dolphin-dbmembership-change.ts +36 -0
- package/src/openapi/models/dolphin-dbpassword-change.ts +30 -0
- package/src/openapi/models/dolphin-dbpermission-change.ts +48 -0
- package/src/openapi/models/dolphin-dbpermission-snapshot.ts +66 -0
- package/src/openapi/models/dolphin-dbpermission-state.ts +54 -0
- package/src/openapi/models/dolphin-dbprivilege-capability.ts +48 -0
- package/src/openapi/models/dolphin-dbuser-create.ts +48 -0
- package/src/openapi/models/dolphin-dbuser.ts +48 -0
- package/src/openapi/models/index.ts +12 -0
- package/src/openapi.yaml +726 -15
|
@@ -0,0 +1,948 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Admin API
|
|
6
|
+
* The Admin API is used to manage the ApeCloud platform.
|
|
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
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.DolphindbApi = exports.DolphindbApiFactory = exports.DolphindbApiFp = exports.DolphindbApiAxiosParamCreator = void 0;
|
|
20
|
+
const axios_1 = __importDefault(require("axios"));
|
|
21
|
+
// Some imports not used depending on template conditions
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
const common_1 = require("../common");
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
const base_1 = require("../base");
|
|
26
|
+
/**
|
|
27
|
+
* DolphindbApi - axios parameter creator
|
|
28
|
+
* @export
|
|
29
|
+
*/
|
|
30
|
+
const DolphindbApiAxiosParamCreator = function (configuration) {
|
|
31
|
+
return {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @summary DolphinDB ChangeGroupMembers
|
|
35
|
+
* @param {string} orgName
|
|
36
|
+
* @param {string} clusterName
|
|
37
|
+
* @param {string} groupName
|
|
38
|
+
* @param {DolphinDBMembershipChange} dolphinDBMembershipChange
|
|
39
|
+
* @param {*} [options] Override http request option.
|
|
40
|
+
* @throws {RequiredError}
|
|
41
|
+
*/
|
|
42
|
+
dolphinDBChangeGroupMembers: async (orgName, clusterName, groupName, dolphinDBMembershipChange, options = {}) => {
|
|
43
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
44
|
+
(0, common_1.assertParamExists)('dolphinDBChangeGroupMembers', 'orgName', orgName);
|
|
45
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
46
|
+
(0, common_1.assertParamExists)('dolphinDBChangeGroupMembers', 'clusterName', clusterName);
|
|
47
|
+
// verify required parameter 'groupName' is not null or undefined
|
|
48
|
+
(0, common_1.assertParamExists)('dolphinDBChangeGroupMembers', 'groupName', groupName);
|
|
49
|
+
// verify required parameter 'dolphinDBMembershipChange' is not null or undefined
|
|
50
|
+
(0, common_1.assertParamExists)('dolphinDBChangeGroupMembers', 'dolphinDBMembershipChange', dolphinDBMembershipChange);
|
|
51
|
+
const localVarPath = `/admin/v1/data/dolphindb/organizations/{orgName}/clusters/{clusterName}/groups/{groupName}/members`
|
|
52
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
53
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
54
|
+
.replace(`{${"groupName"}}`, encodeURIComponent(String(groupName)));
|
|
55
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
56
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
57
|
+
let baseOptions;
|
|
58
|
+
if (configuration) {
|
|
59
|
+
baseOptions = configuration.baseOptions;
|
|
60
|
+
}
|
|
61
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
62
|
+
const localVarHeaderParameter = {};
|
|
63
|
+
const localVarQueryParameter = {};
|
|
64
|
+
// authentication BearerToken required
|
|
65
|
+
// http bearer authentication required
|
|
66
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
67
|
+
// authentication DigestAuth required
|
|
68
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
69
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
70
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
71
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
72
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
73
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dolphinDBMembershipChange, localVarRequestOptions, configuration);
|
|
74
|
+
return {
|
|
75
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
76
|
+
options: localVarRequestOptions,
|
|
77
|
+
};
|
|
78
|
+
},
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @summary DolphinDB ChangePassword
|
|
82
|
+
* @param {string} orgName
|
|
83
|
+
* @param {string} clusterName
|
|
84
|
+
* @param {string} accountName
|
|
85
|
+
* @param {DolphinDBPasswordChange} dolphinDBPasswordChange
|
|
86
|
+
* @param {*} [options] Override http request option.
|
|
87
|
+
* @throws {RequiredError}
|
|
88
|
+
*/
|
|
89
|
+
dolphinDBChangePassword: async (orgName, clusterName, accountName, dolphinDBPasswordChange, options = {}) => {
|
|
90
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
91
|
+
(0, common_1.assertParamExists)('dolphinDBChangePassword', 'orgName', orgName);
|
|
92
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
93
|
+
(0, common_1.assertParamExists)('dolphinDBChangePassword', 'clusterName', clusterName);
|
|
94
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
95
|
+
(0, common_1.assertParamExists)('dolphinDBChangePassword', 'accountName', accountName);
|
|
96
|
+
// verify required parameter 'dolphinDBPasswordChange' is not null or undefined
|
|
97
|
+
(0, common_1.assertParamExists)('dolphinDBChangePassword', 'dolphinDBPasswordChange', dolphinDBPasswordChange);
|
|
98
|
+
const localVarPath = `/admin/v1/data/dolphindb/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/password`
|
|
99
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
100
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
101
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
102
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
103
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
104
|
+
let baseOptions;
|
|
105
|
+
if (configuration) {
|
|
106
|
+
baseOptions = configuration.baseOptions;
|
|
107
|
+
}
|
|
108
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
109
|
+
const localVarHeaderParameter = {};
|
|
110
|
+
const localVarQueryParameter = {};
|
|
111
|
+
// authentication BearerToken required
|
|
112
|
+
// http bearer authentication required
|
|
113
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
114
|
+
// authentication DigestAuth required
|
|
115
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
116
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
117
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
118
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
119
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
120
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dolphinDBPasswordChange, localVarRequestOptions, configuration);
|
|
121
|
+
return {
|
|
122
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
123
|
+
options: localVarRequestOptions,
|
|
124
|
+
};
|
|
125
|
+
},
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* @summary DolphinDB ChangePermissions
|
|
129
|
+
* @param {string} orgName
|
|
130
|
+
* @param {string} clusterName
|
|
131
|
+
* @param {string} subjectType
|
|
132
|
+
* @param {string} subjectName
|
|
133
|
+
* @param {DolphinDBPermissionChange} dolphinDBPermissionChange
|
|
134
|
+
* @param {*} [options] Override http request option.
|
|
135
|
+
* @throws {RequiredError}
|
|
136
|
+
*/
|
|
137
|
+
dolphinDBChangePermissions: async (orgName, clusterName, subjectType, subjectName, dolphinDBPermissionChange, options = {}) => {
|
|
138
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
139
|
+
(0, common_1.assertParamExists)('dolphinDBChangePermissions', 'orgName', orgName);
|
|
140
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
141
|
+
(0, common_1.assertParamExists)('dolphinDBChangePermissions', 'clusterName', clusterName);
|
|
142
|
+
// verify required parameter 'subjectType' is not null or undefined
|
|
143
|
+
(0, common_1.assertParamExists)('dolphinDBChangePermissions', 'subjectType', subjectType);
|
|
144
|
+
// verify required parameter 'subjectName' is not null or undefined
|
|
145
|
+
(0, common_1.assertParamExists)('dolphinDBChangePermissions', 'subjectName', subjectName);
|
|
146
|
+
// verify required parameter 'dolphinDBPermissionChange' is not null or undefined
|
|
147
|
+
(0, common_1.assertParamExists)('dolphinDBChangePermissions', 'dolphinDBPermissionChange', dolphinDBPermissionChange);
|
|
148
|
+
const localVarPath = `/admin/v1/data/dolphindb/organizations/{orgName}/clusters/{clusterName}/privileges/{subjectType}/{subjectName}`
|
|
149
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
150
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
151
|
+
.replace(`{${"subjectType"}}`, encodeURIComponent(String(subjectType)))
|
|
152
|
+
.replace(`{${"subjectName"}}`, encodeURIComponent(String(subjectName)));
|
|
153
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
154
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
155
|
+
let baseOptions;
|
|
156
|
+
if (configuration) {
|
|
157
|
+
baseOptions = configuration.baseOptions;
|
|
158
|
+
}
|
|
159
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
160
|
+
const localVarHeaderParameter = {};
|
|
161
|
+
const localVarQueryParameter = {};
|
|
162
|
+
// authentication BearerToken required
|
|
163
|
+
// http bearer authentication required
|
|
164
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
165
|
+
// authentication DigestAuth required
|
|
166
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
167
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
168
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
169
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
170
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
171
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dolphinDBPermissionChange, localVarRequestOptions, configuration);
|
|
172
|
+
return {
|
|
173
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
174
|
+
options: localVarRequestOptions,
|
|
175
|
+
};
|
|
176
|
+
},
|
|
177
|
+
/**
|
|
178
|
+
*
|
|
179
|
+
* @summary DolphinDB CreateGroup
|
|
180
|
+
* @param {string} orgName
|
|
181
|
+
* @param {string} clusterName
|
|
182
|
+
* @param {DolphinDBGroupCreate} dolphinDBGroupCreate
|
|
183
|
+
* @param {*} [options] Override http request option.
|
|
184
|
+
* @throws {RequiredError}
|
|
185
|
+
*/
|
|
186
|
+
dolphinDBCreateGroup: async (orgName, clusterName, dolphinDBGroupCreate, options = {}) => {
|
|
187
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
188
|
+
(0, common_1.assertParamExists)('dolphinDBCreateGroup', 'orgName', orgName);
|
|
189
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
190
|
+
(0, common_1.assertParamExists)('dolphinDBCreateGroup', 'clusterName', clusterName);
|
|
191
|
+
// verify required parameter 'dolphinDBGroupCreate' is not null or undefined
|
|
192
|
+
(0, common_1.assertParamExists)('dolphinDBCreateGroup', 'dolphinDBGroupCreate', dolphinDBGroupCreate);
|
|
193
|
+
const localVarPath = `/admin/v1/data/dolphindb/organizations/{orgName}/clusters/{clusterName}/groups`
|
|
194
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
195
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
196
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
197
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
198
|
+
let baseOptions;
|
|
199
|
+
if (configuration) {
|
|
200
|
+
baseOptions = configuration.baseOptions;
|
|
201
|
+
}
|
|
202
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
203
|
+
const localVarHeaderParameter = {};
|
|
204
|
+
const localVarQueryParameter = {};
|
|
205
|
+
// authentication BearerToken required
|
|
206
|
+
// http bearer authentication required
|
|
207
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
208
|
+
// authentication DigestAuth required
|
|
209
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
210
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
211
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
212
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
213
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
214
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dolphinDBGroupCreate, localVarRequestOptions, configuration);
|
|
215
|
+
return {
|
|
216
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
217
|
+
options: localVarRequestOptions,
|
|
218
|
+
};
|
|
219
|
+
},
|
|
220
|
+
/**
|
|
221
|
+
*
|
|
222
|
+
* @summary DolphinDB CreateUser
|
|
223
|
+
* @param {string} orgName
|
|
224
|
+
* @param {string} clusterName
|
|
225
|
+
* @param {DolphinDBUserCreate} dolphinDBUserCreate
|
|
226
|
+
* @param {*} [options] Override http request option.
|
|
227
|
+
* @throws {RequiredError}
|
|
228
|
+
*/
|
|
229
|
+
dolphinDBCreateUser: async (orgName, clusterName, dolphinDBUserCreate, options = {}) => {
|
|
230
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
231
|
+
(0, common_1.assertParamExists)('dolphinDBCreateUser', 'orgName', orgName);
|
|
232
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
233
|
+
(0, common_1.assertParamExists)('dolphinDBCreateUser', 'clusterName', clusterName);
|
|
234
|
+
// verify required parameter 'dolphinDBUserCreate' is not null or undefined
|
|
235
|
+
(0, common_1.assertParamExists)('dolphinDBCreateUser', 'dolphinDBUserCreate', dolphinDBUserCreate);
|
|
236
|
+
const localVarPath = `/admin/v1/data/dolphindb/organizations/{orgName}/clusters/{clusterName}/accounts`
|
|
237
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
238
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
239
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
240
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
241
|
+
let baseOptions;
|
|
242
|
+
if (configuration) {
|
|
243
|
+
baseOptions = configuration.baseOptions;
|
|
244
|
+
}
|
|
245
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
246
|
+
const localVarHeaderParameter = {};
|
|
247
|
+
const localVarQueryParameter = {};
|
|
248
|
+
// authentication BearerToken required
|
|
249
|
+
// http bearer authentication required
|
|
250
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
251
|
+
// authentication DigestAuth required
|
|
252
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
253
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
254
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
255
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
256
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
257
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dolphinDBUserCreate, localVarRequestOptions, configuration);
|
|
258
|
+
return {
|
|
259
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
260
|
+
options: localVarRequestOptions,
|
|
261
|
+
};
|
|
262
|
+
},
|
|
263
|
+
/**
|
|
264
|
+
*
|
|
265
|
+
* @summary DolphinDB DeleteGroup
|
|
266
|
+
* @param {string} orgName
|
|
267
|
+
* @param {string} clusterName
|
|
268
|
+
* @param {string} groupName
|
|
269
|
+
* @param {*} [options] Override http request option.
|
|
270
|
+
* @throws {RequiredError}
|
|
271
|
+
*/
|
|
272
|
+
dolphinDBDeleteGroup: async (orgName, clusterName, groupName, options = {}) => {
|
|
273
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
274
|
+
(0, common_1.assertParamExists)('dolphinDBDeleteGroup', 'orgName', orgName);
|
|
275
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
276
|
+
(0, common_1.assertParamExists)('dolphinDBDeleteGroup', 'clusterName', clusterName);
|
|
277
|
+
// verify required parameter 'groupName' is not null or undefined
|
|
278
|
+
(0, common_1.assertParamExists)('dolphinDBDeleteGroup', 'groupName', groupName);
|
|
279
|
+
const localVarPath = `/admin/v1/data/dolphindb/organizations/{orgName}/clusters/{clusterName}/groups/{groupName}`
|
|
280
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
281
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
282
|
+
.replace(`{${"groupName"}}`, encodeURIComponent(String(groupName)));
|
|
283
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
284
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
285
|
+
let baseOptions;
|
|
286
|
+
if (configuration) {
|
|
287
|
+
baseOptions = configuration.baseOptions;
|
|
288
|
+
}
|
|
289
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
290
|
+
const localVarHeaderParameter = {};
|
|
291
|
+
const localVarQueryParameter = {};
|
|
292
|
+
// authentication BearerToken required
|
|
293
|
+
// http bearer authentication required
|
|
294
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
295
|
+
// authentication DigestAuth required
|
|
296
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
297
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
298
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
299
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
300
|
+
return {
|
|
301
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
302
|
+
options: localVarRequestOptions,
|
|
303
|
+
};
|
|
304
|
+
},
|
|
305
|
+
/**
|
|
306
|
+
*
|
|
307
|
+
* @summary DolphinDB DeleteUser
|
|
308
|
+
* @param {string} orgName
|
|
309
|
+
* @param {string} clusterName
|
|
310
|
+
* @param {string} accountName
|
|
311
|
+
* @param {*} [options] Override http request option.
|
|
312
|
+
* @throws {RequiredError}
|
|
313
|
+
*/
|
|
314
|
+
dolphinDBDeleteUser: async (orgName, clusterName, accountName, options = {}) => {
|
|
315
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
316
|
+
(0, common_1.assertParamExists)('dolphinDBDeleteUser', 'orgName', orgName);
|
|
317
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
318
|
+
(0, common_1.assertParamExists)('dolphinDBDeleteUser', 'clusterName', clusterName);
|
|
319
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
320
|
+
(0, common_1.assertParamExists)('dolphinDBDeleteUser', 'accountName', accountName);
|
|
321
|
+
const localVarPath = `/admin/v1/data/dolphindb/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}`
|
|
322
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
323
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
324
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
325
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
326
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
327
|
+
let baseOptions;
|
|
328
|
+
if (configuration) {
|
|
329
|
+
baseOptions = configuration.baseOptions;
|
|
330
|
+
}
|
|
331
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
332
|
+
const localVarHeaderParameter = {};
|
|
333
|
+
const localVarQueryParameter = {};
|
|
334
|
+
// authentication BearerToken required
|
|
335
|
+
// http bearer authentication required
|
|
336
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
337
|
+
// authentication DigestAuth required
|
|
338
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
339
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
340
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
341
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
342
|
+
return {
|
|
343
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
344
|
+
options: localVarRequestOptions,
|
|
345
|
+
};
|
|
346
|
+
},
|
|
347
|
+
/**
|
|
348
|
+
*
|
|
349
|
+
* @summary DolphinDB GetCapabilities
|
|
350
|
+
* @param {string} orgName
|
|
351
|
+
* @param {string} clusterName
|
|
352
|
+
* @param {*} [options] Override http request option.
|
|
353
|
+
* @throws {RequiredError}
|
|
354
|
+
*/
|
|
355
|
+
dolphinDBGetCapabilities: async (orgName, clusterName, options = {}) => {
|
|
356
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
357
|
+
(0, common_1.assertParamExists)('dolphinDBGetCapabilities', 'orgName', orgName);
|
|
358
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
359
|
+
(0, common_1.assertParamExists)('dolphinDBGetCapabilities', 'clusterName', clusterName);
|
|
360
|
+
const localVarPath = `/admin/v1/data/dolphindb/organizations/{orgName}/clusters/{clusterName}/privileges/capabilities`
|
|
361
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
362
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
363
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
364
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
365
|
+
let baseOptions;
|
|
366
|
+
if (configuration) {
|
|
367
|
+
baseOptions = configuration.baseOptions;
|
|
368
|
+
}
|
|
369
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
370
|
+
const localVarHeaderParameter = {};
|
|
371
|
+
const localVarQueryParameter = {};
|
|
372
|
+
// authentication BearerToken required
|
|
373
|
+
// http bearer authentication required
|
|
374
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
375
|
+
// authentication DigestAuth required
|
|
376
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
377
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
378
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
379
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
380
|
+
return {
|
|
381
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
382
|
+
options: localVarRequestOptions,
|
|
383
|
+
};
|
|
384
|
+
},
|
|
385
|
+
/**
|
|
386
|
+
*
|
|
387
|
+
* @summary DolphinDB GetPermissions
|
|
388
|
+
* @param {string} orgName
|
|
389
|
+
* @param {string} clusterName
|
|
390
|
+
* @param {string} subjectType
|
|
391
|
+
* @param {string} subjectName
|
|
392
|
+
* @param {*} [options] Override http request option.
|
|
393
|
+
* @throws {RequiredError}
|
|
394
|
+
*/
|
|
395
|
+
dolphinDBGetPermissions: async (orgName, clusterName, subjectType, subjectName, options = {}) => {
|
|
396
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
397
|
+
(0, common_1.assertParamExists)('dolphinDBGetPermissions', 'orgName', orgName);
|
|
398
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
399
|
+
(0, common_1.assertParamExists)('dolphinDBGetPermissions', 'clusterName', clusterName);
|
|
400
|
+
// verify required parameter 'subjectType' is not null or undefined
|
|
401
|
+
(0, common_1.assertParamExists)('dolphinDBGetPermissions', 'subjectType', subjectType);
|
|
402
|
+
// verify required parameter 'subjectName' is not null or undefined
|
|
403
|
+
(0, common_1.assertParamExists)('dolphinDBGetPermissions', 'subjectName', subjectName);
|
|
404
|
+
const localVarPath = `/admin/v1/data/dolphindb/organizations/{orgName}/clusters/{clusterName}/privileges/{subjectType}/{subjectName}`
|
|
405
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
406
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
407
|
+
.replace(`{${"subjectType"}}`, encodeURIComponent(String(subjectType)))
|
|
408
|
+
.replace(`{${"subjectName"}}`, encodeURIComponent(String(subjectName)));
|
|
409
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
410
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
411
|
+
let baseOptions;
|
|
412
|
+
if (configuration) {
|
|
413
|
+
baseOptions = configuration.baseOptions;
|
|
414
|
+
}
|
|
415
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
416
|
+
const localVarHeaderParameter = {};
|
|
417
|
+
const localVarQueryParameter = {};
|
|
418
|
+
// authentication BearerToken required
|
|
419
|
+
// http bearer authentication required
|
|
420
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
421
|
+
// authentication DigestAuth required
|
|
422
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
423
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
424
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
425
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
426
|
+
return {
|
|
427
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
428
|
+
options: localVarRequestOptions,
|
|
429
|
+
};
|
|
430
|
+
},
|
|
431
|
+
/**
|
|
432
|
+
*
|
|
433
|
+
* @summary DolphinDB ListGroups
|
|
434
|
+
* @param {string} orgName
|
|
435
|
+
* @param {string} clusterName
|
|
436
|
+
* @param {*} [options] Override http request option.
|
|
437
|
+
* @throws {RequiredError}
|
|
438
|
+
*/
|
|
439
|
+
dolphinDBListGroups: async (orgName, clusterName, options = {}) => {
|
|
440
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
441
|
+
(0, common_1.assertParamExists)('dolphinDBListGroups', 'orgName', orgName);
|
|
442
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
443
|
+
(0, common_1.assertParamExists)('dolphinDBListGroups', 'clusterName', clusterName);
|
|
444
|
+
const localVarPath = `/admin/v1/data/dolphindb/organizations/{orgName}/clusters/{clusterName}/groups`
|
|
445
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
446
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
447
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
448
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
449
|
+
let baseOptions;
|
|
450
|
+
if (configuration) {
|
|
451
|
+
baseOptions = configuration.baseOptions;
|
|
452
|
+
}
|
|
453
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
454
|
+
const localVarHeaderParameter = {};
|
|
455
|
+
const localVarQueryParameter = {};
|
|
456
|
+
// authentication BearerToken required
|
|
457
|
+
// http bearer authentication required
|
|
458
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
459
|
+
// authentication DigestAuth required
|
|
460
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
461
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
462
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
463
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
464
|
+
return {
|
|
465
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
466
|
+
options: localVarRequestOptions,
|
|
467
|
+
};
|
|
468
|
+
},
|
|
469
|
+
/**
|
|
470
|
+
*
|
|
471
|
+
* @summary DolphinDB ListUsers
|
|
472
|
+
* @param {string} orgName
|
|
473
|
+
* @param {string} clusterName
|
|
474
|
+
* @param {*} [options] Override http request option.
|
|
475
|
+
* @throws {RequiredError}
|
|
476
|
+
*/
|
|
477
|
+
dolphinDBListUsers: async (orgName, clusterName, options = {}) => {
|
|
478
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
479
|
+
(0, common_1.assertParamExists)('dolphinDBListUsers', 'orgName', orgName);
|
|
480
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
481
|
+
(0, common_1.assertParamExists)('dolphinDBListUsers', 'clusterName', clusterName);
|
|
482
|
+
const localVarPath = `/admin/v1/data/dolphindb/organizations/{orgName}/clusters/{clusterName}/accounts`
|
|
483
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
484
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
485
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
486
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
487
|
+
let baseOptions;
|
|
488
|
+
if (configuration) {
|
|
489
|
+
baseOptions = configuration.baseOptions;
|
|
490
|
+
}
|
|
491
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
492
|
+
const localVarHeaderParameter = {};
|
|
493
|
+
const localVarQueryParameter = {};
|
|
494
|
+
// authentication BearerToken required
|
|
495
|
+
// http bearer authentication required
|
|
496
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
497
|
+
// authentication DigestAuth required
|
|
498
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
499
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
500
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
501
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
502
|
+
return {
|
|
503
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
504
|
+
options: localVarRequestOptions,
|
|
505
|
+
};
|
|
506
|
+
},
|
|
507
|
+
};
|
|
508
|
+
};
|
|
509
|
+
exports.DolphindbApiAxiosParamCreator = DolphindbApiAxiosParamCreator;
|
|
510
|
+
/**
|
|
511
|
+
* DolphindbApi - functional programming interface
|
|
512
|
+
* @export
|
|
513
|
+
*/
|
|
514
|
+
const DolphindbApiFp = function (configuration) {
|
|
515
|
+
const localVarAxiosParamCreator = (0, exports.DolphindbApiAxiosParamCreator)(configuration);
|
|
516
|
+
return {
|
|
517
|
+
/**
|
|
518
|
+
*
|
|
519
|
+
* @summary DolphinDB ChangeGroupMembers
|
|
520
|
+
* @param {string} orgName
|
|
521
|
+
* @param {string} clusterName
|
|
522
|
+
* @param {string} groupName
|
|
523
|
+
* @param {DolphinDBMembershipChange} dolphinDBMembershipChange
|
|
524
|
+
* @param {*} [options] Override http request option.
|
|
525
|
+
* @throws {RequiredError}
|
|
526
|
+
*/
|
|
527
|
+
async dolphinDBChangeGroupMembers(orgName, clusterName, groupName, dolphinDBMembershipChange, options) {
|
|
528
|
+
var _a, _b, _c;
|
|
529
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.dolphinDBChangeGroupMembers(orgName, clusterName, groupName, dolphinDBMembershipChange, options);
|
|
530
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
531
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DolphindbApi.dolphinDBChangeGroupMembers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
532
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
533
|
+
},
|
|
534
|
+
/**
|
|
535
|
+
*
|
|
536
|
+
* @summary DolphinDB ChangePassword
|
|
537
|
+
* @param {string} orgName
|
|
538
|
+
* @param {string} clusterName
|
|
539
|
+
* @param {string} accountName
|
|
540
|
+
* @param {DolphinDBPasswordChange} dolphinDBPasswordChange
|
|
541
|
+
* @param {*} [options] Override http request option.
|
|
542
|
+
* @throws {RequiredError}
|
|
543
|
+
*/
|
|
544
|
+
async dolphinDBChangePassword(orgName, clusterName, accountName, dolphinDBPasswordChange, options) {
|
|
545
|
+
var _a, _b, _c;
|
|
546
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.dolphinDBChangePassword(orgName, clusterName, accountName, dolphinDBPasswordChange, options);
|
|
547
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
548
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DolphindbApi.dolphinDBChangePassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
549
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
550
|
+
},
|
|
551
|
+
/**
|
|
552
|
+
*
|
|
553
|
+
* @summary DolphinDB ChangePermissions
|
|
554
|
+
* @param {string} orgName
|
|
555
|
+
* @param {string} clusterName
|
|
556
|
+
* @param {string} subjectType
|
|
557
|
+
* @param {string} subjectName
|
|
558
|
+
* @param {DolphinDBPermissionChange} dolphinDBPermissionChange
|
|
559
|
+
* @param {*} [options] Override http request option.
|
|
560
|
+
* @throws {RequiredError}
|
|
561
|
+
*/
|
|
562
|
+
async dolphinDBChangePermissions(orgName, clusterName, subjectType, subjectName, dolphinDBPermissionChange, options) {
|
|
563
|
+
var _a, _b, _c;
|
|
564
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.dolphinDBChangePermissions(orgName, clusterName, subjectType, subjectName, dolphinDBPermissionChange, options);
|
|
565
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
566
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DolphindbApi.dolphinDBChangePermissions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
567
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
568
|
+
},
|
|
569
|
+
/**
|
|
570
|
+
*
|
|
571
|
+
* @summary DolphinDB CreateGroup
|
|
572
|
+
* @param {string} orgName
|
|
573
|
+
* @param {string} clusterName
|
|
574
|
+
* @param {DolphinDBGroupCreate} dolphinDBGroupCreate
|
|
575
|
+
* @param {*} [options] Override http request option.
|
|
576
|
+
* @throws {RequiredError}
|
|
577
|
+
*/
|
|
578
|
+
async dolphinDBCreateGroup(orgName, clusterName, dolphinDBGroupCreate, options) {
|
|
579
|
+
var _a, _b, _c;
|
|
580
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.dolphinDBCreateGroup(orgName, clusterName, dolphinDBGroupCreate, options);
|
|
581
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
582
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DolphindbApi.dolphinDBCreateGroup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
583
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
584
|
+
},
|
|
585
|
+
/**
|
|
586
|
+
*
|
|
587
|
+
* @summary DolphinDB CreateUser
|
|
588
|
+
* @param {string} orgName
|
|
589
|
+
* @param {string} clusterName
|
|
590
|
+
* @param {DolphinDBUserCreate} dolphinDBUserCreate
|
|
591
|
+
* @param {*} [options] Override http request option.
|
|
592
|
+
* @throws {RequiredError}
|
|
593
|
+
*/
|
|
594
|
+
async dolphinDBCreateUser(orgName, clusterName, dolphinDBUserCreate, options) {
|
|
595
|
+
var _a, _b, _c;
|
|
596
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.dolphinDBCreateUser(orgName, clusterName, dolphinDBUserCreate, options);
|
|
597
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
598
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DolphindbApi.dolphinDBCreateUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
599
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
600
|
+
},
|
|
601
|
+
/**
|
|
602
|
+
*
|
|
603
|
+
* @summary DolphinDB DeleteGroup
|
|
604
|
+
* @param {string} orgName
|
|
605
|
+
* @param {string} clusterName
|
|
606
|
+
* @param {string} groupName
|
|
607
|
+
* @param {*} [options] Override http request option.
|
|
608
|
+
* @throws {RequiredError}
|
|
609
|
+
*/
|
|
610
|
+
async dolphinDBDeleteGroup(orgName, clusterName, groupName, options) {
|
|
611
|
+
var _a, _b, _c;
|
|
612
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.dolphinDBDeleteGroup(orgName, clusterName, groupName, options);
|
|
613
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
614
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DolphindbApi.dolphinDBDeleteGroup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
615
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
616
|
+
},
|
|
617
|
+
/**
|
|
618
|
+
*
|
|
619
|
+
* @summary DolphinDB DeleteUser
|
|
620
|
+
* @param {string} orgName
|
|
621
|
+
* @param {string} clusterName
|
|
622
|
+
* @param {string} accountName
|
|
623
|
+
* @param {*} [options] Override http request option.
|
|
624
|
+
* @throws {RequiredError}
|
|
625
|
+
*/
|
|
626
|
+
async dolphinDBDeleteUser(orgName, clusterName, accountName, options) {
|
|
627
|
+
var _a, _b, _c;
|
|
628
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.dolphinDBDeleteUser(orgName, clusterName, accountName, options);
|
|
629
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
630
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DolphindbApi.dolphinDBDeleteUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
631
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
632
|
+
},
|
|
633
|
+
/**
|
|
634
|
+
*
|
|
635
|
+
* @summary DolphinDB GetCapabilities
|
|
636
|
+
* @param {string} orgName
|
|
637
|
+
* @param {string} clusterName
|
|
638
|
+
* @param {*} [options] Override http request option.
|
|
639
|
+
* @throws {RequiredError}
|
|
640
|
+
*/
|
|
641
|
+
async dolphinDBGetCapabilities(orgName, clusterName, options) {
|
|
642
|
+
var _a, _b, _c;
|
|
643
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.dolphinDBGetCapabilities(orgName, clusterName, options);
|
|
644
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
645
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DolphindbApi.dolphinDBGetCapabilities']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
646
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
647
|
+
},
|
|
648
|
+
/**
|
|
649
|
+
*
|
|
650
|
+
* @summary DolphinDB GetPermissions
|
|
651
|
+
* @param {string} orgName
|
|
652
|
+
* @param {string} clusterName
|
|
653
|
+
* @param {string} subjectType
|
|
654
|
+
* @param {string} subjectName
|
|
655
|
+
* @param {*} [options] Override http request option.
|
|
656
|
+
* @throws {RequiredError}
|
|
657
|
+
*/
|
|
658
|
+
async dolphinDBGetPermissions(orgName, clusterName, subjectType, subjectName, options) {
|
|
659
|
+
var _a, _b, _c;
|
|
660
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.dolphinDBGetPermissions(orgName, clusterName, subjectType, subjectName, options);
|
|
661
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
662
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DolphindbApi.dolphinDBGetPermissions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
663
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
664
|
+
},
|
|
665
|
+
/**
|
|
666
|
+
*
|
|
667
|
+
* @summary DolphinDB ListGroups
|
|
668
|
+
* @param {string} orgName
|
|
669
|
+
* @param {string} clusterName
|
|
670
|
+
* @param {*} [options] Override http request option.
|
|
671
|
+
* @throws {RequiredError}
|
|
672
|
+
*/
|
|
673
|
+
async dolphinDBListGroups(orgName, clusterName, options) {
|
|
674
|
+
var _a, _b, _c;
|
|
675
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.dolphinDBListGroups(orgName, clusterName, options);
|
|
676
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
677
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DolphindbApi.dolphinDBListGroups']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
678
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
679
|
+
},
|
|
680
|
+
/**
|
|
681
|
+
*
|
|
682
|
+
* @summary DolphinDB ListUsers
|
|
683
|
+
* @param {string} orgName
|
|
684
|
+
* @param {string} clusterName
|
|
685
|
+
* @param {*} [options] Override http request option.
|
|
686
|
+
* @throws {RequiredError}
|
|
687
|
+
*/
|
|
688
|
+
async dolphinDBListUsers(orgName, clusterName, options) {
|
|
689
|
+
var _a, _b, _c;
|
|
690
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.dolphinDBListUsers(orgName, clusterName, options);
|
|
691
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
692
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DolphindbApi.dolphinDBListUsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
693
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
694
|
+
},
|
|
695
|
+
};
|
|
696
|
+
};
|
|
697
|
+
exports.DolphindbApiFp = DolphindbApiFp;
|
|
698
|
+
/**
|
|
699
|
+
* DolphindbApi - factory interface
|
|
700
|
+
* @export
|
|
701
|
+
*/
|
|
702
|
+
const DolphindbApiFactory = function (configuration, basePath, axios) {
|
|
703
|
+
const localVarFp = (0, exports.DolphindbApiFp)(configuration);
|
|
704
|
+
return {
|
|
705
|
+
/**
|
|
706
|
+
*
|
|
707
|
+
* @summary DolphinDB ChangeGroupMembers
|
|
708
|
+
* @param {DolphindbApiDolphinDBChangeGroupMembersRequest} requestParameters Request parameters.
|
|
709
|
+
* @param {*} [options] Override http request option.
|
|
710
|
+
* @throws {RequiredError}
|
|
711
|
+
*/
|
|
712
|
+
dolphinDBChangeGroupMembers(requestParameters, options) {
|
|
713
|
+
return localVarFp.dolphinDBChangeGroupMembers(requestParameters.orgName, requestParameters.clusterName, requestParameters.groupName, requestParameters.dolphinDBMembershipChange, options).then((request) => request(axios, basePath));
|
|
714
|
+
},
|
|
715
|
+
/**
|
|
716
|
+
*
|
|
717
|
+
* @summary DolphinDB ChangePassword
|
|
718
|
+
* @param {DolphindbApiDolphinDBChangePasswordRequest} requestParameters Request parameters.
|
|
719
|
+
* @param {*} [options] Override http request option.
|
|
720
|
+
* @throws {RequiredError}
|
|
721
|
+
*/
|
|
722
|
+
dolphinDBChangePassword(requestParameters, options) {
|
|
723
|
+
return localVarFp.dolphinDBChangePassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.dolphinDBPasswordChange, options).then((request) => request(axios, basePath));
|
|
724
|
+
},
|
|
725
|
+
/**
|
|
726
|
+
*
|
|
727
|
+
* @summary DolphinDB ChangePermissions
|
|
728
|
+
* @param {DolphindbApiDolphinDBChangePermissionsRequest} requestParameters Request parameters.
|
|
729
|
+
* @param {*} [options] Override http request option.
|
|
730
|
+
* @throws {RequiredError}
|
|
731
|
+
*/
|
|
732
|
+
dolphinDBChangePermissions(requestParameters, options) {
|
|
733
|
+
return localVarFp.dolphinDBChangePermissions(requestParameters.orgName, requestParameters.clusterName, requestParameters.subjectType, requestParameters.subjectName, requestParameters.dolphinDBPermissionChange, options).then((request) => request(axios, basePath));
|
|
734
|
+
},
|
|
735
|
+
/**
|
|
736
|
+
*
|
|
737
|
+
* @summary DolphinDB CreateGroup
|
|
738
|
+
* @param {DolphindbApiDolphinDBCreateGroupRequest} requestParameters Request parameters.
|
|
739
|
+
* @param {*} [options] Override http request option.
|
|
740
|
+
* @throws {RequiredError}
|
|
741
|
+
*/
|
|
742
|
+
dolphinDBCreateGroup(requestParameters, options) {
|
|
743
|
+
return localVarFp.dolphinDBCreateGroup(requestParameters.orgName, requestParameters.clusterName, requestParameters.dolphinDBGroupCreate, options).then((request) => request(axios, basePath));
|
|
744
|
+
},
|
|
745
|
+
/**
|
|
746
|
+
*
|
|
747
|
+
* @summary DolphinDB CreateUser
|
|
748
|
+
* @param {DolphindbApiDolphinDBCreateUserRequest} requestParameters Request parameters.
|
|
749
|
+
* @param {*} [options] Override http request option.
|
|
750
|
+
* @throws {RequiredError}
|
|
751
|
+
*/
|
|
752
|
+
dolphinDBCreateUser(requestParameters, options) {
|
|
753
|
+
return localVarFp.dolphinDBCreateUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.dolphinDBUserCreate, options).then((request) => request(axios, basePath));
|
|
754
|
+
},
|
|
755
|
+
/**
|
|
756
|
+
*
|
|
757
|
+
* @summary DolphinDB DeleteGroup
|
|
758
|
+
* @param {DolphindbApiDolphinDBDeleteGroupRequest} requestParameters Request parameters.
|
|
759
|
+
* @param {*} [options] Override http request option.
|
|
760
|
+
* @throws {RequiredError}
|
|
761
|
+
*/
|
|
762
|
+
dolphinDBDeleteGroup(requestParameters, options) {
|
|
763
|
+
return localVarFp.dolphinDBDeleteGroup(requestParameters.orgName, requestParameters.clusterName, requestParameters.groupName, options).then((request) => request(axios, basePath));
|
|
764
|
+
},
|
|
765
|
+
/**
|
|
766
|
+
*
|
|
767
|
+
* @summary DolphinDB DeleteUser
|
|
768
|
+
* @param {DolphindbApiDolphinDBDeleteUserRequest} requestParameters Request parameters.
|
|
769
|
+
* @param {*} [options] Override http request option.
|
|
770
|
+
* @throws {RequiredError}
|
|
771
|
+
*/
|
|
772
|
+
dolphinDBDeleteUser(requestParameters, options) {
|
|
773
|
+
return localVarFp.dolphinDBDeleteUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
|
|
774
|
+
},
|
|
775
|
+
/**
|
|
776
|
+
*
|
|
777
|
+
* @summary DolphinDB GetCapabilities
|
|
778
|
+
* @param {DolphindbApiDolphinDBGetCapabilitiesRequest} requestParameters Request parameters.
|
|
779
|
+
* @param {*} [options] Override http request option.
|
|
780
|
+
* @throws {RequiredError}
|
|
781
|
+
*/
|
|
782
|
+
dolphinDBGetCapabilities(requestParameters, options) {
|
|
783
|
+
return localVarFp.dolphinDBGetCapabilities(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
784
|
+
},
|
|
785
|
+
/**
|
|
786
|
+
*
|
|
787
|
+
* @summary DolphinDB GetPermissions
|
|
788
|
+
* @param {DolphindbApiDolphinDBGetPermissionsRequest} requestParameters Request parameters.
|
|
789
|
+
* @param {*} [options] Override http request option.
|
|
790
|
+
* @throws {RequiredError}
|
|
791
|
+
*/
|
|
792
|
+
dolphinDBGetPermissions(requestParameters, options) {
|
|
793
|
+
return localVarFp.dolphinDBGetPermissions(requestParameters.orgName, requestParameters.clusterName, requestParameters.subjectType, requestParameters.subjectName, options).then((request) => request(axios, basePath));
|
|
794
|
+
},
|
|
795
|
+
/**
|
|
796
|
+
*
|
|
797
|
+
* @summary DolphinDB ListGroups
|
|
798
|
+
* @param {DolphindbApiDolphinDBListGroupsRequest} requestParameters Request parameters.
|
|
799
|
+
* @param {*} [options] Override http request option.
|
|
800
|
+
* @throws {RequiredError}
|
|
801
|
+
*/
|
|
802
|
+
dolphinDBListGroups(requestParameters, options) {
|
|
803
|
+
return localVarFp.dolphinDBListGroups(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
804
|
+
},
|
|
805
|
+
/**
|
|
806
|
+
*
|
|
807
|
+
* @summary DolphinDB ListUsers
|
|
808
|
+
* @param {DolphindbApiDolphinDBListUsersRequest} requestParameters Request parameters.
|
|
809
|
+
* @param {*} [options] Override http request option.
|
|
810
|
+
* @throws {RequiredError}
|
|
811
|
+
*/
|
|
812
|
+
dolphinDBListUsers(requestParameters, options) {
|
|
813
|
+
return localVarFp.dolphinDBListUsers(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
814
|
+
},
|
|
815
|
+
};
|
|
816
|
+
};
|
|
817
|
+
exports.DolphindbApiFactory = DolphindbApiFactory;
|
|
818
|
+
/**
|
|
819
|
+
* DolphindbApi - object-oriented interface
|
|
820
|
+
* @export
|
|
821
|
+
* @class DolphindbApi
|
|
822
|
+
* @extends {BaseAPI}
|
|
823
|
+
*/
|
|
824
|
+
class DolphindbApi extends base_1.BaseAPI {
|
|
825
|
+
/**
|
|
826
|
+
*
|
|
827
|
+
* @summary DolphinDB ChangeGroupMembers
|
|
828
|
+
* @param {DolphindbApiDolphinDBChangeGroupMembersRequest} requestParameters Request parameters.
|
|
829
|
+
* @param {*} [options] Override http request option.
|
|
830
|
+
* @throws {RequiredError}
|
|
831
|
+
* @memberof DolphindbApi
|
|
832
|
+
*/
|
|
833
|
+
dolphinDBChangeGroupMembers(requestParameters, options) {
|
|
834
|
+
return (0, exports.DolphindbApiFp)(this.configuration).dolphinDBChangeGroupMembers(requestParameters.orgName, requestParameters.clusterName, requestParameters.groupName, requestParameters.dolphinDBMembershipChange, options).then((request) => request(this.axios, this.basePath));
|
|
835
|
+
}
|
|
836
|
+
/**
|
|
837
|
+
*
|
|
838
|
+
* @summary DolphinDB ChangePassword
|
|
839
|
+
* @param {DolphindbApiDolphinDBChangePasswordRequest} requestParameters Request parameters.
|
|
840
|
+
* @param {*} [options] Override http request option.
|
|
841
|
+
* @throws {RequiredError}
|
|
842
|
+
* @memberof DolphindbApi
|
|
843
|
+
*/
|
|
844
|
+
dolphinDBChangePassword(requestParameters, options) {
|
|
845
|
+
return (0, exports.DolphindbApiFp)(this.configuration).dolphinDBChangePassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.dolphinDBPasswordChange, options).then((request) => request(this.axios, this.basePath));
|
|
846
|
+
}
|
|
847
|
+
/**
|
|
848
|
+
*
|
|
849
|
+
* @summary DolphinDB ChangePermissions
|
|
850
|
+
* @param {DolphindbApiDolphinDBChangePermissionsRequest} requestParameters Request parameters.
|
|
851
|
+
* @param {*} [options] Override http request option.
|
|
852
|
+
* @throws {RequiredError}
|
|
853
|
+
* @memberof DolphindbApi
|
|
854
|
+
*/
|
|
855
|
+
dolphinDBChangePermissions(requestParameters, options) {
|
|
856
|
+
return (0, exports.DolphindbApiFp)(this.configuration).dolphinDBChangePermissions(requestParameters.orgName, requestParameters.clusterName, requestParameters.subjectType, requestParameters.subjectName, requestParameters.dolphinDBPermissionChange, options).then((request) => request(this.axios, this.basePath));
|
|
857
|
+
}
|
|
858
|
+
/**
|
|
859
|
+
*
|
|
860
|
+
* @summary DolphinDB CreateGroup
|
|
861
|
+
* @param {DolphindbApiDolphinDBCreateGroupRequest} requestParameters Request parameters.
|
|
862
|
+
* @param {*} [options] Override http request option.
|
|
863
|
+
* @throws {RequiredError}
|
|
864
|
+
* @memberof DolphindbApi
|
|
865
|
+
*/
|
|
866
|
+
dolphinDBCreateGroup(requestParameters, options) {
|
|
867
|
+
return (0, exports.DolphindbApiFp)(this.configuration).dolphinDBCreateGroup(requestParameters.orgName, requestParameters.clusterName, requestParameters.dolphinDBGroupCreate, options).then((request) => request(this.axios, this.basePath));
|
|
868
|
+
}
|
|
869
|
+
/**
|
|
870
|
+
*
|
|
871
|
+
* @summary DolphinDB CreateUser
|
|
872
|
+
* @param {DolphindbApiDolphinDBCreateUserRequest} requestParameters Request parameters.
|
|
873
|
+
* @param {*} [options] Override http request option.
|
|
874
|
+
* @throws {RequiredError}
|
|
875
|
+
* @memberof DolphindbApi
|
|
876
|
+
*/
|
|
877
|
+
dolphinDBCreateUser(requestParameters, options) {
|
|
878
|
+
return (0, exports.DolphindbApiFp)(this.configuration).dolphinDBCreateUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.dolphinDBUserCreate, options).then((request) => request(this.axios, this.basePath));
|
|
879
|
+
}
|
|
880
|
+
/**
|
|
881
|
+
*
|
|
882
|
+
* @summary DolphinDB DeleteGroup
|
|
883
|
+
* @param {DolphindbApiDolphinDBDeleteGroupRequest} requestParameters Request parameters.
|
|
884
|
+
* @param {*} [options] Override http request option.
|
|
885
|
+
* @throws {RequiredError}
|
|
886
|
+
* @memberof DolphindbApi
|
|
887
|
+
*/
|
|
888
|
+
dolphinDBDeleteGroup(requestParameters, options) {
|
|
889
|
+
return (0, exports.DolphindbApiFp)(this.configuration).dolphinDBDeleteGroup(requestParameters.orgName, requestParameters.clusterName, requestParameters.groupName, options).then((request) => request(this.axios, this.basePath));
|
|
890
|
+
}
|
|
891
|
+
/**
|
|
892
|
+
*
|
|
893
|
+
* @summary DolphinDB DeleteUser
|
|
894
|
+
* @param {DolphindbApiDolphinDBDeleteUserRequest} requestParameters Request parameters.
|
|
895
|
+
* @param {*} [options] Override http request option.
|
|
896
|
+
* @throws {RequiredError}
|
|
897
|
+
* @memberof DolphindbApi
|
|
898
|
+
*/
|
|
899
|
+
dolphinDBDeleteUser(requestParameters, options) {
|
|
900
|
+
return (0, exports.DolphindbApiFp)(this.configuration).dolphinDBDeleteUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
|
|
901
|
+
}
|
|
902
|
+
/**
|
|
903
|
+
*
|
|
904
|
+
* @summary DolphinDB GetCapabilities
|
|
905
|
+
* @param {DolphindbApiDolphinDBGetCapabilitiesRequest} requestParameters Request parameters.
|
|
906
|
+
* @param {*} [options] Override http request option.
|
|
907
|
+
* @throws {RequiredError}
|
|
908
|
+
* @memberof DolphindbApi
|
|
909
|
+
*/
|
|
910
|
+
dolphinDBGetCapabilities(requestParameters, options) {
|
|
911
|
+
return (0, exports.DolphindbApiFp)(this.configuration).dolphinDBGetCapabilities(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
912
|
+
}
|
|
913
|
+
/**
|
|
914
|
+
*
|
|
915
|
+
* @summary DolphinDB GetPermissions
|
|
916
|
+
* @param {DolphindbApiDolphinDBGetPermissionsRequest} requestParameters Request parameters.
|
|
917
|
+
* @param {*} [options] Override http request option.
|
|
918
|
+
* @throws {RequiredError}
|
|
919
|
+
* @memberof DolphindbApi
|
|
920
|
+
*/
|
|
921
|
+
dolphinDBGetPermissions(requestParameters, options) {
|
|
922
|
+
return (0, exports.DolphindbApiFp)(this.configuration).dolphinDBGetPermissions(requestParameters.orgName, requestParameters.clusterName, requestParameters.subjectType, requestParameters.subjectName, options).then((request) => request(this.axios, this.basePath));
|
|
923
|
+
}
|
|
924
|
+
/**
|
|
925
|
+
*
|
|
926
|
+
* @summary DolphinDB ListGroups
|
|
927
|
+
* @param {DolphindbApiDolphinDBListGroupsRequest} requestParameters Request parameters.
|
|
928
|
+
* @param {*} [options] Override http request option.
|
|
929
|
+
* @throws {RequiredError}
|
|
930
|
+
* @memberof DolphindbApi
|
|
931
|
+
*/
|
|
932
|
+
dolphinDBListGroups(requestParameters, options) {
|
|
933
|
+
return (0, exports.DolphindbApiFp)(this.configuration).dolphinDBListGroups(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
934
|
+
}
|
|
935
|
+
/**
|
|
936
|
+
*
|
|
937
|
+
* @summary DolphinDB ListUsers
|
|
938
|
+
* @param {DolphindbApiDolphinDBListUsersRequest} requestParameters Request parameters.
|
|
939
|
+
* @param {*} [options] Override http request option.
|
|
940
|
+
* @throws {RequiredError}
|
|
941
|
+
* @memberof DolphindbApi
|
|
942
|
+
*/
|
|
943
|
+
dolphinDBListUsers(requestParameters, options) {
|
|
944
|
+
return (0, exports.DolphindbApiFp)(this.configuration).dolphinDBListUsers(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
exports.DolphindbApi = DolphindbApi;
|
|
948
|
+
//# sourceMappingURL=dolphindb-api.js.map
|