kb-cloud-client-typescript 2.4.0-alpha.87 → 2.4.0-alpha.89
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/apis/cluster-log-api.d.ts +198 -0
- package/dist/adminapi/apis/cluster-log-api.d.ts.map +1 -1
- package/dist/adminapi/apis/cluster-log-api.js +228 -0
- package/dist/adminapi/apis/cluster-log-api.js.map +1 -1
- package/dist/adminapi/apis/environment-api.d.ts +174 -0
- package/dist/adminapi/apis/environment-api.d.ts.map +1 -1
- package/dist/adminapi/apis/environment-api.js +213 -0
- package/dist/adminapi/apis/environment-api.js.map +1 -1
- package/dist/adminapi/models/index.d.ts +1 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +1 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/log-retention.d.ts +49 -0
- package/dist/adminapi/models/log-retention.d.ts.map +1 -0
- package/dist/adminapi/models/log-retention.js +16 -0
- package/dist/adminapi/models/log-retention.js.map +1 -0
- package/dist/internalapi/api.d.ts +2 -0
- package/dist/internalapi/api.d.ts.map +1 -1
- package/dist/internalapi/api.js +2 -0
- package/dist/internalapi/api.js.map +1 -1
- package/dist/internalapi/apis/opsrequest-api.d.ts +121 -0
- package/dist/internalapi/apis/opsrequest-api.d.ts.map +1 -0
- package/dist/internalapi/apis/opsrequest-api.js +142 -0
- package/dist/internalapi/apis/opsrequest-api.js.map +1 -0
- package/dist/internalapi/apis/parameter-api.d.ts +128 -0
- package/dist/internalapi/apis/parameter-api.d.ts.map +1 -0
- package/dist/internalapi/apis/parameter-api.js +146 -0
- package/dist/internalapi/apis/parameter-api.js.map +1 -0
- package/dist/internalapi/apis/shared-api.d.ts +153 -0
- package/dist/internalapi/apis/shared-api.d.ts.map +1 -1
- package/dist/internalapi/apis/shared-api.js +160 -0
- package/dist/internalapi/apis/shared-api.js.map +1 -1
- package/dist/internalapi/models/index.d.ts +7 -0
- package/dist/internalapi/models/index.d.ts.map +1 -1
- package/dist/internalapi/models/index.js +7 -0
- package/dist/internalapi/models/index.js.map +1 -1
- package/dist/internalapi/models/ops-request-name.d.ts +31 -0
- package/dist/internalapi/models/ops-request-name.d.ts.map +1 -0
- package/dist/internalapi/models/ops-request-name.js +16 -0
- package/dist/internalapi/models/ops-request-name.js.map +1 -0
- package/dist/internalapi/models/parameter-item.d.ts +50 -0
- package/dist/internalapi/models/parameter-item.d.ts.map +1 -0
- package/dist/internalapi/models/parameter-item.js +16 -0
- package/dist/internalapi/models/parameter-item.js.map +1 -0
- package/dist/internalapi/models/parameter-list.d.ts +38 -0
- package/dist/internalapi/models/parameter-list.d.ts.map +1 -0
- package/dist/internalapi/models/parameter-list.js +16 -0
- package/dist/internalapi/models/parameter-list.js.map +1 -0
- package/dist/internalapi/models/parameter-prop.d.ts +85 -0
- package/dist/internalapi/models/parameter-prop.d.ts.map +1 -0
- package/dist/internalapi/models/parameter-prop.js +16 -0
- package/dist/internalapi/models/parameter-prop.js.map +1 -0
- package/dist/internalapi/models/reconfigure-create.d.ts +52 -0
- package/dist/internalapi/models/reconfigure-create.d.ts.map +1 -0
- package/dist/internalapi/models/reconfigure-create.js +16 -0
- package/dist/internalapi/models/reconfigure-create.js.map +1 -0
- package/dist/internalapi/models/task-schedule-type.d.ts +23 -0
- package/dist/internalapi/models/task-schedule-type.d.ts.map +1 -0
- package/dist/internalapi/models/task-schedule-type.js +27 -0
- package/dist/internalapi/models/task-schedule-type.js.map +1 -0
- package/dist/internalapi/models/task-schedule.d.ts +38 -0
- package/dist/internalapi/models/task-schedule.d.ts.map +1 -0
- package/dist/internalapi/models/task-schedule.js +16 -0
- package/dist/internalapi/models/task-schedule.js.map +1 -0
- package/dist/openapi/apis/cluster-log-api.d.ts +198 -0
- package/dist/openapi/apis/cluster-log-api.d.ts.map +1 -1
- package/dist/openapi/apis/cluster-log-api.js +228 -0
- package/dist/openapi/apis/cluster-log-api.js.map +1 -1
- package/dist/openapi/models/index.d.ts +1 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +1 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/dist/openapi/models/log-retention.d.ts +49 -0
- package/dist/openapi/models/log-retention.d.ts.map +1 -0
- package/dist/openapi/models/log-retention.js +16 -0
- package/dist/openapi/models/log-retention.js.map +1 -0
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +1 -0
- package/src/adminapi/apis/cluster-log-api.ts +352 -0
- package/src/adminapi/apis/environment-api.ts +316 -0
- package/src/adminapi/models/index.ts +1 -0
- package/src/adminapi/models/log-retention.ts +54 -0
- package/src/adminapi.yaml +227 -0
- package/src/internalapi/.openapi-generator/FILES +9 -0
- package/src/internalapi/api.ts +2 -0
- package/src/internalapi/apis/opsrequest-api.ts +197 -0
- package/src/internalapi/apis/parameter-api.ts +207 -0
- package/src/internalapi/apis/shared-api.ts +264 -0
- package/src/internalapi/models/index.ts +7 -0
- package/src/internalapi/models/ops-request-name.ts +36 -0
- package/src/internalapi/models/parameter-item.ts +57 -0
- package/src/internalapi/models/parameter-list.ts +45 -0
- package/src/internalapi/models/parameter-prop.ts +90 -0
- package/src/internalapi/models/reconfigure-create.ts +57 -0
- package/src/internalapi/models/task-schedule-type.ts +32 -0
- package/src/internalapi/models/task-schedule.ts +47 -0
- package/src/internalapi.yaml +224 -0
- package/src/openapi/.openapi-generator/FILES +1 -0
- package/src/openapi/apis/cluster-log-api.ts +352 -0
- package/src/openapi/models/index.ts +1 -0
- package/src/openapi/models/log-retention.ts +54 -0
- package/src/openapi.yaml +136 -0
|
@@ -24,7 +24,13 @@ import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError
|
|
|
24
24
|
// @ts-ignore
|
|
25
25
|
import type { APIErrorResponse } from '../models';
|
|
26
26
|
// @ts-ignore
|
|
27
|
+
import type { OpsRequestName } from '../models';
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
import type { ParameterList } from '../models';
|
|
30
|
+
// @ts-ignore
|
|
27
31
|
import type { PlatformParameter } from '../models';
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
import type { ReconfigureCreate } from '../models';
|
|
28
34
|
/**
|
|
29
35
|
* SharedApi - axios parameter creator
|
|
30
36
|
* @export
|
|
@@ -64,6 +70,106 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
64
70
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
65
71
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
66
72
|
|
|
73
|
+
return {
|
|
74
|
+
url: toPathString(localVarUrlObj),
|
|
75
|
+
options: localVarRequestOptions,
|
|
76
|
+
};
|
|
77
|
+
},
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @summary List parameter properties of the cluster
|
|
81
|
+
* @param {string} orgName name of the organization
|
|
82
|
+
* @param {string} clusterName name of the cluster
|
|
83
|
+
* @param {string} [component] component type
|
|
84
|
+
* @param {boolean} [rawContent] whether to return the raw template content
|
|
85
|
+
* @param {*} [options] Override http request option.
|
|
86
|
+
* @throws {RequiredError}
|
|
87
|
+
*/
|
|
88
|
+
listParameterProps: async (orgName: string, clusterName: string, component?: string, rawContent?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
89
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
90
|
+
assertParamExists('listParameterProps', 'orgName', orgName)
|
|
91
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
92
|
+
assertParamExists('listParameterProps', 'clusterName', clusterName)
|
|
93
|
+
const localVarPath = `/internal/v1/organizations/{orgName}/clusters/{clusterName}/parameters`
|
|
94
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
95
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
96
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
97
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
98
|
+
let baseOptions;
|
|
99
|
+
if (configuration) {
|
|
100
|
+
baseOptions = configuration.baseOptions;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
104
|
+
const localVarHeaderParameter = {} as any;
|
|
105
|
+
const localVarQueryParameter = {} as any;
|
|
106
|
+
|
|
107
|
+
// authentication BasicAuth required
|
|
108
|
+
// http basic authentication required
|
|
109
|
+
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
110
|
+
|
|
111
|
+
if (component !== undefined) {
|
|
112
|
+
localVarQueryParameter['component'] = component;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
if (rawContent !== undefined) {
|
|
116
|
+
localVarQueryParameter['rawContent'] = rawContent;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
122
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
123
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
124
|
+
|
|
125
|
+
return {
|
|
126
|
+
url: toPathString(localVarUrlObj),
|
|
127
|
+
options: localVarRequestOptions,
|
|
128
|
+
};
|
|
129
|
+
},
|
|
130
|
+
/**
|
|
131
|
+
*
|
|
132
|
+
* @summary Update cluster configuration
|
|
133
|
+
* @param {string} orgName name of the Org
|
|
134
|
+
* @param {string} clusterName name of the KubeBlocks cluster
|
|
135
|
+
* @param {ReconfigureCreate} body
|
|
136
|
+
* @param {*} [options] Override http request option.
|
|
137
|
+
* @throws {RequiredError}
|
|
138
|
+
*/
|
|
139
|
+
reconfigureCluster: async (orgName: string, clusterName: string, body: ReconfigureCreate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
140
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
141
|
+
assertParamExists('reconfigureCluster', 'orgName', orgName)
|
|
142
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
143
|
+
assertParamExists('reconfigureCluster', 'clusterName', clusterName)
|
|
144
|
+
// verify required parameter 'body' is not null or undefined
|
|
145
|
+
assertParamExists('reconfigureCluster', 'body', body)
|
|
146
|
+
const localVarPath = `/internal/v1/organizations/{orgName}/clusters/{clusterName}/reconfigure`
|
|
147
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
148
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
149
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
150
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
151
|
+
let baseOptions;
|
|
152
|
+
if (configuration) {
|
|
153
|
+
baseOptions = configuration.baseOptions;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
157
|
+
const localVarHeaderParameter = {} as any;
|
|
158
|
+
const localVarQueryParameter = {} as any;
|
|
159
|
+
|
|
160
|
+
// authentication BasicAuth required
|
|
161
|
+
// http basic authentication required
|
|
162
|
+
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
167
|
+
|
|
168
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
169
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
170
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
171
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
172
|
+
|
|
67
173
|
return {
|
|
68
174
|
url: toPathString(localVarUrlObj),
|
|
69
175
|
options: localVarRequestOptions,
|
|
@@ -92,6 +198,37 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
92
198
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.getPlatformParameter']?.[localVarOperationServerIndex]?.url;
|
|
93
199
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
94
200
|
},
|
|
201
|
+
/**
|
|
202
|
+
*
|
|
203
|
+
* @summary List parameter properties of the cluster
|
|
204
|
+
* @param {string} orgName name of the organization
|
|
205
|
+
* @param {string} clusterName name of the cluster
|
|
206
|
+
* @param {string} [component] component type
|
|
207
|
+
* @param {boolean} [rawContent] whether to return the raw template content
|
|
208
|
+
* @param {*} [options] Override http request option.
|
|
209
|
+
* @throws {RequiredError}
|
|
210
|
+
*/
|
|
211
|
+
async listParameterProps(orgName: string, clusterName: string, component?: string, rawContent?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ParameterList>> {
|
|
212
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listParameterProps(orgName, clusterName, component, rawContent, options);
|
|
213
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
214
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.listParameterProps']?.[localVarOperationServerIndex]?.url;
|
|
215
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
216
|
+
},
|
|
217
|
+
/**
|
|
218
|
+
*
|
|
219
|
+
* @summary Update cluster configuration
|
|
220
|
+
* @param {string} orgName name of the Org
|
|
221
|
+
* @param {string} clusterName name of the KubeBlocks cluster
|
|
222
|
+
* @param {ReconfigureCreate} body
|
|
223
|
+
* @param {*} [options] Override http request option.
|
|
224
|
+
* @throws {RequiredError}
|
|
225
|
+
*/
|
|
226
|
+
async reconfigureCluster(orgName: string, clusterName: string, body: ReconfigureCreate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OpsRequestName>> {
|
|
227
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.reconfigureCluster(orgName, clusterName, body, options);
|
|
228
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
229
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.reconfigureCluster']?.[localVarOperationServerIndex]?.url;
|
|
230
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
231
|
+
},
|
|
95
232
|
}
|
|
96
233
|
};
|
|
97
234
|
|
|
@@ -112,6 +249,26 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
112
249
|
getPlatformParameter(requestParameters: SharedApiGetPlatformParameterRequest, options?: RawAxiosRequestConfig): AxiosPromise<PlatformParameter> {
|
|
113
250
|
return localVarFp.getPlatformParameter(requestParameters.platformParameterName, options).then((request) => request(axios, basePath));
|
|
114
251
|
},
|
|
252
|
+
/**
|
|
253
|
+
*
|
|
254
|
+
* @summary List parameter properties of the cluster
|
|
255
|
+
* @param {SharedApiListParameterPropsRequest} requestParameters Request parameters.
|
|
256
|
+
* @param {*} [options] Override http request option.
|
|
257
|
+
* @throws {RequiredError}
|
|
258
|
+
*/
|
|
259
|
+
listParameterProps(requestParameters: SharedApiListParameterPropsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ParameterList> {
|
|
260
|
+
return localVarFp.listParameterProps(requestParameters.orgName, requestParameters.clusterName, requestParameters.component, requestParameters.rawContent, options).then((request) => request(axios, basePath));
|
|
261
|
+
},
|
|
262
|
+
/**
|
|
263
|
+
*
|
|
264
|
+
* @summary Update cluster configuration
|
|
265
|
+
* @param {SharedApiReconfigureClusterRequest} requestParameters Request parameters.
|
|
266
|
+
* @param {*} [options] Override http request option.
|
|
267
|
+
* @throws {RequiredError}
|
|
268
|
+
*/
|
|
269
|
+
reconfigureCluster(requestParameters: SharedApiReconfigureClusterRequest, options?: RawAxiosRequestConfig): AxiosPromise<OpsRequestName> {
|
|
270
|
+
return localVarFp.reconfigureCluster(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
271
|
+
},
|
|
115
272
|
};
|
|
116
273
|
};
|
|
117
274
|
|
|
@@ -131,6 +288,26 @@ export interface SharedApiInterface {
|
|
|
131
288
|
*/
|
|
132
289
|
getPlatformParameter(requestParameters: SharedApiGetPlatformParameterRequest, options?: RawAxiosRequestConfig): AxiosPromise<PlatformParameter>;
|
|
133
290
|
|
|
291
|
+
/**
|
|
292
|
+
*
|
|
293
|
+
* @summary List parameter properties of the cluster
|
|
294
|
+
* @param {SharedApiListParameterPropsRequest} requestParameters Request parameters.
|
|
295
|
+
* @param {*} [options] Override http request option.
|
|
296
|
+
* @throws {RequiredError}
|
|
297
|
+
* @memberof SharedApiInterface
|
|
298
|
+
*/
|
|
299
|
+
listParameterProps(requestParameters: SharedApiListParameterPropsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ParameterList>;
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
*
|
|
303
|
+
* @summary Update cluster configuration
|
|
304
|
+
* @param {SharedApiReconfigureClusterRequest} requestParameters Request parameters.
|
|
305
|
+
* @param {*} [options] Override http request option.
|
|
306
|
+
* @throws {RequiredError}
|
|
307
|
+
* @memberof SharedApiInterface
|
|
308
|
+
*/
|
|
309
|
+
reconfigureCluster(requestParameters: SharedApiReconfigureClusterRequest, options?: RawAxiosRequestConfig): AxiosPromise<OpsRequestName>;
|
|
310
|
+
|
|
134
311
|
}
|
|
135
312
|
|
|
136
313
|
/**
|
|
@@ -147,6 +324,69 @@ export interface SharedApiGetPlatformParameterRequest {
|
|
|
147
324
|
readonly platformParameterName: string
|
|
148
325
|
}
|
|
149
326
|
|
|
327
|
+
/**
|
|
328
|
+
* Request parameters for listParameterProps operation in SharedApi.
|
|
329
|
+
* @export
|
|
330
|
+
* @interface SharedApiListParameterPropsRequest
|
|
331
|
+
*/
|
|
332
|
+
export interface SharedApiListParameterPropsRequest {
|
|
333
|
+
/**
|
|
334
|
+
* name of the organization
|
|
335
|
+
* @type {string}
|
|
336
|
+
* @memberof SharedApiListParameterProps
|
|
337
|
+
*/
|
|
338
|
+
readonly orgName: string
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* name of the cluster
|
|
342
|
+
* @type {string}
|
|
343
|
+
* @memberof SharedApiListParameterProps
|
|
344
|
+
*/
|
|
345
|
+
readonly clusterName: string
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* component type
|
|
349
|
+
* @type {string}
|
|
350
|
+
* @memberof SharedApiListParameterProps
|
|
351
|
+
*/
|
|
352
|
+
readonly component?: string
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* whether to return the raw template content
|
|
356
|
+
* @type {boolean}
|
|
357
|
+
* @memberof SharedApiListParameterProps
|
|
358
|
+
*/
|
|
359
|
+
readonly rawContent?: boolean
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
/**
|
|
363
|
+
* Request parameters for reconfigureCluster operation in SharedApi.
|
|
364
|
+
* @export
|
|
365
|
+
* @interface SharedApiReconfigureClusterRequest
|
|
366
|
+
*/
|
|
367
|
+
export interface SharedApiReconfigureClusterRequest {
|
|
368
|
+
/**
|
|
369
|
+
* name of the Org
|
|
370
|
+
* @type {string}
|
|
371
|
+
* @memberof SharedApiReconfigureCluster
|
|
372
|
+
*/
|
|
373
|
+
readonly orgName: string
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* name of the KubeBlocks cluster
|
|
377
|
+
* @type {string}
|
|
378
|
+
* @memberof SharedApiReconfigureCluster
|
|
379
|
+
*/
|
|
380
|
+
readonly clusterName: string
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
*
|
|
384
|
+
* @type {ReconfigureCreate}
|
|
385
|
+
* @memberof SharedApiReconfigureCluster
|
|
386
|
+
*/
|
|
387
|
+
readonly body: ReconfigureCreate
|
|
388
|
+
}
|
|
389
|
+
|
|
150
390
|
/**
|
|
151
391
|
* SharedApi - object-oriented interface
|
|
152
392
|
* @export
|
|
@@ -165,5 +405,29 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
165
405
|
public getPlatformParameter(requestParameters: SharedApiGetPlatformParameterRequest, options?: RawAxiosRequestConfig) {
|
|
166
406
|
return SharedApiFp(this.configuration).getPlatformParameter(requestParameters.platformParameterName, options).then((request) => request(this.axios, this.basePath));
|
|
167
407
|
}
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
*
|
|
411
|
+
* @summary List parameter properties of the cluster
|
|
412
|
+
* @param {SharedApiListParameterPropsRequest} requestParameters Request parameters.
|
|
413
|
+
* @param {*} [options] Override http request option.
|
|
414
|
+
* @throws {RequiredError}
|
|
415
|
+
* @memberof SharedApi
|
|
416
|
+
*/
|
|
417
|
+
public listParameterProps(requestParameters: SharedApiListParameterPropsRequest, options?: RawAxiosRequestConfig) {
|
|
418
|
+
return SharedApiFp(this.configuration).listParameterProps(requestParameters.orgName, requestParameters.clusterName, requestParameters.component, requestParameters.rawContent, options).then((request) => request(this.axios, this.basePath));
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
/**
|
|
422
|
+
*
|
|
423
|
+
* @summary Update cluster configuration
|
|
424
|
+
* @param {SharedApiReconfigureClusterRequest} requestParameters Request parameters.
|
|
425
|
+
* @param {*} [options] Override http request option.
|
|
426
|
+
* @throws {RequiredError}
|
|
427
|
+
* @memberof SharedApi
|
|
428
|
+
*/
|
|
429
|
+
public reconfigureCluster(requestParameters: SharedApiReconfigureClusterRequest, options?: RawAxiosRequestConfig) {
|
|
430
|
+
return SharedApiFp(this.configuration).reconfigureCluster(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
431
|
+
}
|
|
168
432
|
}
|
|
169
433
|
|
|
@@ -41,13 +41,18 @@ export * from './ip-pool-selection';
|
|
|
41
41
|
export * from './koordinator-reservation-resource-class';
|
|
42
42
|
export * from './localized-description';
|
|
43
43
|
export * from './network-mode';
|
|
44
|
+
export * from './ops-request-name';
|
|
44
45
|
export * from './outage-record';
|
|
45
46
|
export * from './page-result';
|
|
46
47
|
export * from './param-tpls-item';
|
|
48
|
+
export * from './parameter-item';
|
|
49
|
+
export * from './parameter-list';
|
|
50
|
+
export * from './parameter-prop';
|
|
47
51
|
export * from './parameter-template-partition';
|
|
48
52
|
export * from './platform-parameter';
|
|
49
53
|
export * from './platform-parameter-constraints';
|
|
50
54
|
export * from './postable-alert';
|
|
55
|
+
export * from './reconfigure-create';
|
|
51
56
|
export * from './scheduling-policy-type';
|
|
52
57
|
export * from './service-descriptor';
|
|
53
58
|
export * from './service-ref';
|
|
@@ -55,3 +60,5 @@ export * from './static-cluster';
|
|
|
55
60
|
export * from './storage';
|
|
56
61
|
export * from './storage-create';
|
|
57
62
|
export * from './tag';
|
|
63
|
+
export * from './task-schedule';
|
|
64
|
+
export * from './task-schedule-type';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KubeBlocks Cloud Internal API
|
|
5
|
+
* The Internal API is using for interaction of ApeCloud platform microservices.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* OpsRequestName is the name of a KubeBlocks OpsRequest response
|
|
19
|
+
* @export
|
|
20
|
+
* @interface OpsRequestName
|
|
21
|
+
*/
|
|
22
|
+
export interface OpsRequestName {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof OpsRequestName
|
|
27
|
+
*/
|
|
28
|
+
'opsRequestName'?: string;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof OpsRequestName
|
|
33
|
+
*/
|
|
34
|
+
'taskId': string;
|
|
35
|
+
}
|
|
36
|
+
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KubeBlocks Cloud Internal API
|
|
5
|
+
* The Internal API is using for interaction of ApeCloud platform microservices.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { ParameterProp } from './parameter-prop';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* With the list of parameter properties and the configuration file name
|
|
22
|
+
* @export
|
|
23
|
+
* @interface ParameterItem
|
|
24
|
+
*/
|
|
25
|
+
export interface ParameterItem {
|
|
26
|
+
/**
|
|
27
|
+
* The list of parameters properties
|
|
28
|
+
* @type {Array<ParameterProp>}
|
|
29
|
+
* @memberof ParameterItem
|
|
30
|
+
*/
|
|
31
|
+
'props'?: Array<ParameterProp>;
|
|
32
|
+
/**
|
|
33
|
+
* The additional properties of the parameter
|
|
34
|
+
* @type {Array<ParameterProp>}
|
|
35
|
+
* @memberof ParameterItem
|
|
36
|
+
*/
|
|
37
|
+
'additionalProps'?: Array<ParameterProp>;
|
|
38
|
+
/**
|
|
39
|
+
* The name of the configuration file
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof ParameterItem
|
|
42
|
+
*/
|
|
43
|
+
'fileName'?: string;
|
|
44
|
+
/**
|
|
45
|
+
* The name of the config spec
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof ParameterItem
|
|
48
|
+
*/
|
|
49
|
+
'specName'?: string;
|
|
50
|
+
/**
|
|
51
|
+
* The raw content of the configuration file, return only when raw is true in the query.
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof ParameterItem
|
|
54
|
+
*/
|
|
55
|
+
'rawContent'?: string;
|
|
56
|
+
}
|
|
57
|
+
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KubeBlocks Cloud Internal API
|
|
5
|
+
* The Internal API is using for interaction of ApeCloud platform microservices.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { ParameterItem } from './parameter-item';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* A list of cluster parameter
|
|
22
|
+
* @export
|
|
23
|
+
* @interface ParameterList
|
|
24
|
+
*/
|
|
25
|
+
export interface ParameterList {
|
|
26
|
+
/**
|
|
27
|
+
* Name of database engine
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof ParameterList
|
|
30
|
+
*/
|
|
31
|
+
'engine': string;
|
|
32
|
+
/**
|
|
33
|
+
* Name of component
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof ParameterList
|
|
36
|
+
*/
|
|
37
|
+
'component': string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {Array<ParameterItem>}
|
|
41
|
+
* @memberof ParameterList
|
|
42
|
+
*/
|
|
43
|
+
'items'?: Array<ParameterItem>;
|
|
44
|
+
}
|
|
45
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KubeBlocks Cloud Internal API
|
|
5
|
+
* The Internal API is using for interaction of ApeCloud platform microservices.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface ParameterProp
|
|
21
|
+
*/
|
|
22
|
+
export interface ParameterProp {
|
|
23
|
+
/**
|
|
24
|
+
* The name of the parameter
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof ParameterProp
|
|
27
|
+
*/
|
|
28
|
+
'name': string;
|
|
29
|
+
/**
|
|
30
|
+
* The description of the parameter
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof ParameterProp
|
|
33
|
+
*/
|
|
34
|
+
'description'?: string;
|
|
35
|
+
/**
|
|
36
|
+
* The type of the parameter value
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof ParameterProp
|
|
39
|
+
*/
|
|
40
|
+
'type': string;
|
|
41
|
+
/**
|
|
42
|
+
* The value of the parameter, if parameter is not set in tpl, it\'s value equal to cue default value.
|
|
43
|
+
* @type {object}
|
|
44
|
+
* @memberof ParameterProp
|
|
45
|
+
*/
|
|
46
|
+
'value'?: object;
|
|
47
|
+
/**
|
|
48
|
+
* The value of the parameter, if parameter is not set in tpl, it\'s value equal to cue default value.
|
|
49
|
+
* @type {object}
|
|
50
|
+
* @memberof ParameterProp
|
|
51
|
+
*/
|
|
52
|
+
'default'?: object;
|
|
53
|
+
/**
|
|
54
|
+
* Whether the parameter requires a restart to take effect
|
|
55
|
+
* @type {boolean}
|
|
56
|
+
* @memberof ParameterProp
|
|
57
|
+
*/
|
|
58
|
+
'needRestart': boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Whether the parameter is an immutable parameter, immutable parameters cannot be modified
|
|
61
|
+
* @type {boolean}
|
|
62
|
+
* @memberof ParameterProp
|
|
63
|
+
*/
|
|
64
|
+
'immutable': boolean;
|
|
65
|
+
/**
|
|
66
|
+
* The maximum value of the parameter
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof ParameterProp
|
|
69
|
+
*/
|
|
70
|
+
'maximum'?: string;
|
|
71
|
+
/**
|
|
72
|
+
* The minimum value of the parameter
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof ParameterProp
|
|
75
|
+
*/
|
|
76
|
+
'minimum'?: string;
|
|
77
|
+
/**
|
|
78
|
+
* The value options of the parameter
|
|
79
|
+
* @type {Array<any>}
|
|
80
|
+
* @memberof ParameterProp
|
|
81
|
+
*/
|
|
82
|
+
'enum'?: Array<any>;
|
|
83
|
+
/**
|
|
84
|
+
* The unit of the parameter value (e.g., seconds, bytes, ms, percentage)
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof ParameterProp
|
|
87
|
+
*/
|
|
88
|
+
'unit'?: string;
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KubeBlocks Cloud Internal API
|
|
5
|
+
* The Internal API is using for interaction of ApeCloud platform microservices.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { TaskSchedule } from './task-schedule';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* ReconfigureCreate is the payload to reconfigure a KubeBlocks cluster
|
|
22
|
+
* @export
|
|
23
|
+
* @interface ReconfigureCreate
|
|
24
|
+
*/
|
|
25
|
+
export interface ReconfigureCreate {
|
|
26
|
+
/**
|
|
27
|
+
* component type
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof ReconfigureCreate
|
|
30
|
+
*/
|
|
31
|
+
'component': string;
|
|
32
|
+
/**
|
|
33
|
+
* config file name
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof ReconfigureCreate
|
|
36
|
+
*/
|
|
37
|
+
'configFileName'?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Specify parameters list to be updated
|
|
40
|
+
* @type {{ [key: string]: string; }}
|
|
41
|
+
* @memberof ReconfigureCreate
|
|
42
|
+
*/
|
|
43
|
+
'parameters'?: { [key: string]: string; };
|
|
44
|
+
/**
|
|
45
|
+
* The raw content of the configuration file
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof ReconfigureCreate
|
|
48
|
+
*/
|
|
49
|
+
'rawContent'?: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {TaskSchedule}
|
|
53
|
+
* @memberof ReconfigureCreate
|
|
54
|
+
*/
|
|
55
|
+
'schedule'?: TaskSchedule;
|
|
56
|
+
}
|
|
57
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KubeBlocks Cloud Internal API
|
|
5
|
+
* The Internal API is using for interaction of ApeCloud platform microservices.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Schedule type for task execution
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
export const TaskScheduleType = {
|
|
24
|
+
immediate: 'immediate',
|
|
25
|
+
scheduled: 'scheduled',
|
|
26
|
+
maintenanceWindow: 'maintenanceWindow'
|
|
27
|
+
} as const;
|
|
28
|
+
|
|
29
|
+
export type TaskScheduleType = typeof TaskScheduleType[keyof typeof TaskScheduleType];
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|