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