kb-cloud-client-typescript 2.3.0-alpha.154 → 2.3.0-alpha.156
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-api.d.ts +73 -0
- package/dist/adminapi/apis/cluster-api.d.ts.map +1 -1
- package/dist/adminapi/apis/cluster-api.js +80 -0
- package/dist/adminapi/apis/cluster-api.js.map +1 -1
- package/dist/adminapi/apis/environment-api.d.ts +56 -0
- package/dist/adminapi/apis/environment-api.d.ts.map +1 -1
- package/dist/adminapi/apis/environment-api.js +69 -0
- package/dist/adminapi/apis/environment-api.js.map +1 -1
- package/dist/adminapi/apis/inspection-api.d.ts +4 -5
- package/dist/adminapi/apis/inspection-api.d.ts.map +1 -1
- package/dist/adminapi/apis/inspection-api.js.map +1 -1
- package/dist/adminapi/apis/shared-api.d.ts +72 -0
- package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
- package/dist/adminapi/apis/shared-api.js +80 -0
- package/dist/adminapi/apis/shared-api.js.map +1 -1
- package/dist/adminapi/models/cluster-create.d.ts +13 -0
- package/dist/adminapi/models/cluster-create.d.ts.map +1 -1
- package/dist/adminapi/models/cluster-mode-transition.d.ts +32 -0
- package/dist/adminapi/models/cluster-mode-transition.d.ts.map +1 -0
- package/dist/adminapi/models/{storage-config-log.d.ts → cluster-mode-transition.js} +5 -14
- package/dist/adminapi/models/cluster-mode-transition.js.map +1 -0
- package/dist/adminapi/models/cluster.d.ts +13 -0
- package/dist/adminapi/models/cluster.d.ts.map +1 -1
- package/dist/adminapi/models/environment-create.d.ts +6 -0
- package/dist/adminapi/models/environment-create.d.ts.map +1 -1
- package/dist/adminapi/models/environment-update.d.ts +6 -0
- package/dist/adminapi/models/environment-update.d.ts.map +1 -1
- package/dist/adminapi/models/environment.d.ts +6 -0
- package/dist/adminapi/models/environment.d.ts.map +1 -1
- package/dist/adminapi/models/index.d.ts +9 -1
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +9 -1
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/koordinator-node-reservation.d.ts +71 -0
- package/dist/adminapi/models/koordinator-node-reservation.d.ts.map +1 -0
- package/dist/adminapi/models/koordinator-node-reservation.js +16 -0
- package/dist/adminapi/models/koordinator-node-reservation.js.map +1 -0
- package/dist/adminapi/models/koordinator-reservation-allocate-policy.d.ts +22 -0
- package/dist/adminapi/models/koordinator-reservation-allocate-policy.d.ts.map +1 -0
- package/dist/adminapi/models/koordinator-reservation-allocate-policy.js +26 -0
- package/dist/adminapi/models/koordinator-reservation-allocate-policy.js.map +1 -0
- package/dist/adminapi/models/koordinator-reservation-resource-class.d.ts +22 -0
- package/dist/adminapi/models/koordinator-reservation-resource-class.d.ts.map +1 -0
- package/dist/adminapi/models/koordinator-reservation-resource-class.js +26 -0
- package/dist/adminapi/models/koordinator-reservation-resource-class.js.map +1 -0
- package/dist/adminapi/models/koordinator-reservation-resources.d.ts +31 -0
- package/dist/adminapi/models/koordinator-reservation-resources.d.ts.map +1 -0
- package/dist/adminapi/models/koordinator-reservation-resources.js +16 -0
- package/dist/adminapi/models/koordinator-reservation-resources.js.map +1 -0
- package/dist/adminapi/models/koordinator-reservation-status.d.ts +50 -0
- package/dist/adminapi/models/koordinator-reservation-status.d.ts.map +1 -0
- package/dist/adminapi/models/koordinator-reservation-status.js +16 -0
- package/dist/adminapi/models/koordinator-reservation-status.js.map +1 -0
- package/dist/adminapi/models/koordinator-reservation-summary-item.d.ts +51 -0
- package/dist/adminapi/models/koordinator-reservation-summary-item.d.ts.map +1 -0
- package/dist/adminapi/models/koordinator-reservation-summary-item.js +16 -0
- package/dist/adminapi/models/koordinator-reservation-summary-item.js.map +1 -0
- package/dist/adminapi/models/koordinator-reservation-summary.d.ts +51 -0
- package/dist/adminapi/models/koordinator-reservation-summary.d.ts.map +1 -0
- package/dist/adminapi/models/koordinator-reservation-summary.js +16 -0
- package/dist/adminapi/models/koordinator-reservation-summary.js.map +1 -0
- package/dist/adminapi/models/node.d.ts +7 -0
- package/dist/adminapi/models/node.d.ts.map +1 -1
- package/dist/adminapi/models/scheduler-option.d.ts +37 -0
- package/dist/adminapi/models/scheduler-option.d.ts.map +1 -0
- package/dist/adminapi/models/{storage-config-log.js → scheduler-option.js} +1 -1
- package/dist/adminapi/models/scheduler-option.js.map +1 -0
- package/dist/adminapi/models/storage-config.d.ts +0 -7
- package/dist/adminapi/models/storage-config.d.ts.map +1 -1
- package/dist/internalapi/models/cluster.d.ts +13 -0
- package/dist/internalapi/models/cluster.d.ts.map +1 -1
- package/dist/internalapi/models/index.d.ts +1 -0
- package/dist/internalapi/models/index.d.ts.map +1 -1
- package/dist/internalapi/models/index.js +1 -0
- package/dist/internalapi/models/index.js.map +1 -1
- package/dist/internalapi/models/koordinator-reservation-resource-class.d.ts +22 -0
- package/dist/internalapi/models/koordinator-reservation-resource-class.d.ts.map +1 -0
- package/dist/internalapi/models/koordinator-reservation-resource-class.js +26 -0
- package/dist/internalapi/models/koordinator-reservation-resource-class.js.map +1 -0
- package/dist/openapi/apis/llm-api.d.ts +0 -411
- package/dist/openapi/apis/llm-api.d.ts.map +1 -1
- package/dist/openapi/apis/llm-api.js +0 -471
- package/dist/openapi/apis/llm-api.js.map +1 -1
- package/dist/openapi/models/cluster-create.d.ts +13 -0
- package/dist/openapi/models/cluster-create.d.ts.map +1 -1
- package/dist/openapi/models/cluster.d.ts +13 -0
- package/dist/openapi/models/cluster.d.ts.map +1 -1
- package/dist/openapi/models/index.d.ts +5 -4
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +5 -4
- package/dist/openapi/models/index.js.map +1 -1
- package/dist/openapi/models/koordinator-node-reservation.d.ts +71 -0
- package/dist/openapi/models/koordinator-node-reservation.d.ts.map +1 -0
- package/dist/openapi/models/{check-apikey.js → koordinator-node-reservation.js} +1 -1
- package/dist/openapi/models/koordinator-node-reservation.js.map +1 -0
- package/dist/openapi/models/{check-apikey.d.ts → koordinator-reservation-allocate-policy.d.ts} +7 -16
- package/dist/openapi/models/koordinator-reservation-allocate-policy.d.ts.map +1 -0
- package/dist/openapi/models/koordinator-reservation-allocate-policy.js +26 -0
- package/dist/openapi/models/koordinator-reservation-allocate-policy.js.map +1 -0
- package/dist/openapi/models/{access-level.d.ts → koordinator-reservation-resource-class.d.ts} +5 -5
- package/dist/openapi/models/koordinator-reservation-resource-class.d.ts.map +1 -0
- package/dist/openapi/models/{access-level.js → koordinator-reservation-resource-class.js} +5 -5
- package/dist/openapi/models/koordinator-reservation-resource-class.js.map +1 -0
- package/dist/openapi/models/{llm-list.d.ts → koordinator-reservation-resources.d.ts} +14 -9
- package/dist/openapi/models/koordinator-reservation-resources.d.ts.map +1 -0
- package/dist/openapi/models/{llm-list.js → koordinator-reservation-resources.js} +1 -1
- package/dist/openapi/models/koordinator-reservation-resources.js.map +1 -0
- package/dist/openapi/models/koordinator-reservation-status.d.ts +50 -0
- package/dist/openapi/models/koordinator-reservation-status.d.ts.map +1 -0
- package/dist/openapi/models/{llm.js → koordinator-reservation-status.js} +1 -1
- package/dist/openapi/models/koordinator-reservation-status.js.map +1 -0
- package/dist/openapi/models/node.d.ts +7 -0
- package/dist/openapi/models/node.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +9 -1
- package/src/adminapi/apis/cluster-api.ts +130 -0
- package/src/adminapi/apis/environment-api.ts +102 -0
- package/src/adminapi/apis/inspection-api.ts +3 -5
- package/src/adminapi/apis/shared-api.ts +128 -0
- package/src/adminapi/models/cluster-create.ts +15 -0
- package/src/adminapi/models/cluster-mode-transition.ts +39 -0
- package/src/adminapi/models/cluster.ts +15 -0
- package/src/adminapi/models/environment-create.ts +6 -0
- package/src/adminapi/models/environment-update.ts +6 -0
- package/src/adminapi/models/environment.ts +6 -0
- package/src/adminapi/models/index.ts +9 -1
- package/src/adminapi/models/koordinator-node-reservation.ts +86 -0
- package/src/adminapi/models/koordinator-reservation-allocate-policy.ts +31 -0
- package/src/adminapi/models/{storage-config-log.ts → koordinator-reservation-resource-class.ts} +11 -10
- package/src/adminapi/models/koordinator-reservation-resources.ts +36 -0
- package/src/adminapi/models/koordinator-reservation-status.ts +57 -0
- package/src/adminapi/models/koordinator-reservation-summary-item.ts +62 -0
- package/src/adminapi/models/koordinator-reservation-summary.ts +60 -0
- package/src/adminapi/models/node.ts +9 -0
- package/src/adminapi/models/scheduler-option.ts +42 -0
- package/src/adminapi/models/storage-config.ts +0 -9
- package/src/adminapi.yaml +300 -94
- package/src/internalapi/.openapi-generator/FILES +1 -0
- package/src/internalapi/models/cluster.ts +15 -0
- package/src/internalapi/models/index.ts +1 -0
- package/src/internalapi/models/koordinator-reservation-resource-class.ts +31 -0
- package/src/internalapi.yaml +13 -0
- package/src/openapi/.openapi-generator/FILES +5 -4
- package/src/openapi/apis/llm-api.ts +0 -714
- package/src/openapi/models/cluster-create.ts +15 -0
- package/src/openapi/models/cluster.ts +15 -0
- package/src/openapi/models/index.ts +5 -4
- package/src/openapi/models/koordinator-node-reservation.ts +86 -0
- package/src/openapi/models/{check-apikey.ts → koordinator-reservation-allocate-policy.ts} +10 -15
- package/src/openapi/models/{access-level.ts → koordinator-reservation-resource-class.ts} +4 -4
- package/src/openapi/models/{llm-list.ts → koordinator-reservation-resources.ts} +13 -10
- package/src/openapi/models/koordinator-reservation-status.ts +57 -0
- package/src/openapi/models/node.ts +9 -0
- package/src/openapi.yaml +77 -262
- package/dist/adminapi/models/storage-config-log.d.ts.map +0 -1
- package/dist/adminapi/models/storage-config-log.js.map +0 -1
- package/dist/openapi/models/access-level.d.ts.map +0 -1
- package/dist/openapi/models/access-level.js.map +0 -1
- package/dist/openapi/models/check-apikey.d.ts.map +0 -1
- package/dist/openapi/models/check-apikey.js.map +0 -1
- package/dist/openapi/models/llm-list.d.ts.map +0 -1
- package/dist/openapi/models/llm-list.js.map +0 -1
- package/dist/openapi/models/llm.d.ts +0 -64
- package/dist/openapi/models/llm.d.ts.map +0 -1
- package/dist/openapi/models/llm.js.map +0 -1
- package/src/openapi/models/llm.ts +0 -71
|
@@ -34,6 +34,8 @@ import type { ClusterList } from '../models';
|
|
|
34
34
|
// @ts-ignore
|
|
35
35
|
import type { ClusterMetrics } from '../models';
|
|
36
36
|
// @ts-ignore
|
|
37
|
+
import type { ClusterModeTransition } from '../models';
|
|
38
|
+
// @ts-ignore
|
|
37
39
|
import type { ClusterStorageUsageHistory } from '../models';
|
|
38
40
|
// @ts-ignore
|
|
39
41
|
import type { ClusterUpdate } from '../models';
|
|
@@ -56,6 +58,8 @@ import type { MetricsQueryType } from '../models';
|
|
|
56
58
|
// @ts-ignore
|
|
57
59
|
import type { OfflineInstanceList } from '../models';
|
|
58
60
|
// @ts-ignore
|
|
61
|
+
import type { OpsRequestName } from '../models';
|
|
62
|
+
// @ts-ignore
|
|
59
63
|
import type { SqlAuditRequest } from '../models';
|
|
60
64
|
// @ts-ignore
|
|
61
65
|
import type { SqlAuditResponse } from '../models';
|
|
@@ -1214,6 +1218,57 @@ export const ClusterApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1214
1218
|
options: localVarRequestOptions,
|
|
1215
1219
|
};
|
|
1216
1220
|
},
|
|
1221
|
+
/**
|
|
1222
|
+
* Validates the mode transition, updates the cluster spec, and creates an hscale task when required. Returns the resulting OpsRequest name and task ID.
|
|
1223
|
+
* @summary Transition cluster engine mode
|
|
1224
|
+
* @param {string} orgName name of the Org
|
|
1225
|
+
* @param {string} clusterName name of the KubeBlocks cluster
|
|
1226
|
+
* @param {ClusterModeTransition} body
|
|
1227
|
+
* @param {*} [options] Override http request option.
|
|
1228
|
+
* @throws {RequiredError}
|
|
1229
|
+
*/
|
|
1230
|
+
transitionClusterMode: async (orgName: string, clusterName: string, body: ClusterModeTransition, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1231
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
1232
|
+
assertParamExists('transitionClusterMode', 'orgName', orgName)
|
|
1233
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
1234
|
+
assertParamExists('transitionClusterMode', 'clusterName', clusterName)
|
|
1235
|
+
// verify required parameter 'body' is not null or undefined
|
|
1236
|
+
assertParamExists('transitionClusterMode', 'body', body)
|
|
1237
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/modeTransition`
|
|
1238
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1239
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
1240
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1241
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1242
|
+
let baseOptions;
|
|
1243
|
+
if (configuration) {
|
|
1244
|
+
baseOptions = configuration.baseOptions;
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1247
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1248
|
+
const localVarHeaderParameter = {} as any;
|
|
1249
|
+
const localVarQueryParameter = {} as any;
|
|
1250
|
+
|
|
1251
|
+
// authentication BearerToken required
|
|
1252
|
+
// http bearer authentication required
|
|
1253
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1254
|
+
|
|
1255
|
+
// authentication DigestAuth required
|
|
1256
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
1257
|
+
|
|
1258
|
+
|
|
1259
|
+
|
|
1260
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1261
|
+
|
|
1262
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1263
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1264
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1265
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
1266
|
+
|
|
1267
|
+
return {
|
|
1268
|
+
url: toPathString(localVarUrlObj),
|
|
1269
|
+
options: localVarRequestOptions,
|
|
1270
|
+
};
|
|
1271
|
+
},
|
|
1217
1272
|
/**
|
|
1218
1273
|
* Enable or disable SQL audit log for a cluster component
|
|
1219
1274
|
* @summary Update SQL audit log status
|
|
@@ -1702,6 +1757,21 @@ export const ClusterApiFp = function(configuration?: Configuration) {
|
|
|
1702
1757
|
const localVarOperationServerBasePath = operationServerMap['ClusterApi.restartInstance']?.[localVarOperationServerIndex]?.url;
|
|
1703
1758
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1704
1759
|
},
|
|
1760
|
+
/**
|
|
1761
|
+
* Validates the mode transition, updates the cluster spec, and creates an hscale task when required. Returns the resulting OpsRequest name and task ID.
|
|
1762
|
+
* @summary Transition cluster engine mode
|
|
1763
|
+
* @param {string} orgName name of the Org
|
|
1764
|
+
* @param {string} clusterName name of the KubeBlocks cluster
|
|
1765
|
+
* @param {ClusterModeTransition} body
|
|
1766
|
+
* @param {*} [options] Override http request option.
|
|
1767
|
+
* @throws {RequiredError}
|
|
1768
|
+
*/
|
|
1769
|
+
async transitionClusterMode(orgName: string, clusterName: string, body: ClusterModeTransition, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OpsRequestName>> {
|
|
1770
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.transitionClusterMode(orgName, clusterName, body, options);
|
|
1771
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1772
|
+
const localVarOperationServerBasePath = operationServerMap['ClusterApi.transitionClusterMode']?.[localVarOperationServerIndex]?.url;
|
|
1773
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1774
|
+
},
|
|
1705
1775
|
/**
|
|
1706
1776
|
* Enable or disable SQL audit log for a cluster component
|
|
1707
1777
|
* @summary Update SQL audit log status
|
|
@@ -1966,6 +2036,16 @@ export const ClusterApiFactory = function (configuration?: Configuration, basePa
|
|
|
1966
2036
|
restartInstance(requestParameters: ClusterApiRestartInstanceRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1967
2037
|
return localVarFp.restartInstance(requestParameters.orgName, requestParameters.clusterName, requestParameters.instanceName, options).then((request) => request(axios, basePath));
|
|
1968
2038
|
},
|
|
2039
|
+
/**
|
|
2040
|
+
* Validates the mode transition, updates the cluster spec, and creates an hscale task when required. Returns the resulting OpsRequest name and task ID.
|
|
2041
|
+
* @summary Transition cluster engine mode
|
|
2042
|
+
* @param {ClusterApiTransitionClusterModeRequest} requestParameters Request parameters.
|
|
2043
|
+
* @param {*} [options] Override http request option.
|
|
2044
|
+
* @throws {RequiredError}
|
|
2045
|
+
*/
|
|
2046
|
+
transitionClusterMode(requestParameters: ClusterApiTransitionClusterModeRequest, options?: RawAxiosRequestConfig): AxiosPromise<OpsRequestName> {
|
|
2047
|
+
return localVarFp.transitionClusterMode(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
2048
|
+
},
|
|
1969
2049
|
/**
|
|
1970
2050
|
* Enable or disable SQL audit log for a cluster component
|
|
1971
2051
|
* @summary Update SQL audit log status
|
|
@@ -2215,6 +2295,16 @@ export interface ClusterApiInterface {
|
|
|
2215
2295
|
*/
|
|
2216
2296
|
restartInstance(requestParameters: ClusterApiRestartInstanceRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
2217
2297
|
|
|
2298
|
+
/**
|
|
2299
|
+
* Validates the mode transition, updates the cluster spec, and creates an hscale task when required. Returns the resulting OpsRequest name and task ID.
|
|
2300
|
+
* @summary Transition cluster engine mode
|
|
2301
|
+
* @param {ClusterApiTransitionClusterModeRequest} requestParameters Request parameters.
|
|
2302
|
+
* @param {*} [options] Override http request option.
|
|
2303
|
+
* @throws {RequiredError}
|
|
2304
|
+
* @memberof ClusterApiInterface
|
|
2305
|
+
*/
|
|
2306
|
+
transitionClusterMode(requestParameters: ClusterApiTransitionClusterModeRequest, options?: RawAxiosRequestConfig): AxiosPromise<OpsRequestName>;
|
|
2307
|
+
|
|
2218
2308
|
/**
|
|
2219
2309
|
* Enable or disable SQL audit log for a cluster component
|
|
2220
2310
|
* @summary Update SQL audit log status
|
|
@@ -2933,6 +3023,34 @@ export interface ClusterApiRestartInstanceRequest {
|
|
|
2933
3023
|
readonly instanceName: string
|
|
2934
3024
|
}
|
|
2935
3025
|
|
|
3026
|
+
/**
|
|
3027
|
+
* Request parameters for transitionClusterMode operation in ClusterApi.
|
|
3028
|
+
* @export
|
|
3029
|
+
* @interface ClusterApiTransitionClusterModeRequest
|
|
3030
|
+
*/
|
|
3031
|
+
export interface ClusterApiTransitionClusterModeRequest {
|
|
3032
|
+
/**
|
|
3033
|
+
* name of the Org
|
|
3034
|
+
* @type {string}
|
|
3035
|
+
* @memberof ClusterApiTransitionClusterMode
|
|
3036
|
+
*/
|
|
3037
|
+
readonly orgName: string
|
|
3038
|
+
|
|
3039
|
+
/**
|
|
3040
|
+
* name of the KubeBlocks cluster
|
|
3041
|
+
* @type {string}
|
|
3042
|
+
* @memberof ClusterApiTransitionClusterMode
|
|
3043
|
+
*/
|
|
3044
|
+
readonly clusterName: string
|
|
3045
|
+
|
|
3046
|
+
/**
|
|
3047
|
+
*
|
|
3048
|
+
* @type {ClusterModeTransition}
|
|
3049
|
+
* @memberof ClusterApiTransitionClusterMode
|
|
3050
|
+
*/
|
|
3051
|
+
readonly body: ClusterModeTransition
|
|
3052
|
+
}
|
|
3053
|
+
|
|
2936
3054
|
/**
|
|
2937
3055
|
* Request parameters for updateSqlAudit operation in ClusterApi.
|
|
2938
3056
|
* @export
|
|
@@ -3269,6 +3387,18 @@ export class ClusterApi extends BaseAPI implements ClusterApiInterface {
|
|
|
3269
3387
|
return ClusterApiFp(this.configuration).restartInstance(requestParameters.orgName, requestParameters.clusterName, requestParameters.instanceName, options).then((request) => request(this.axios, this.basePath));
|
|
3270
3388
|
}
|
|
3271
3389
|
|
|
3390
|
+
/**
|
|
3391
|
+
* Validates the mode transition, updates the cluster spec, and creates an hscale task when required. Returns the resulting OpsRequest name and task ID.
|
|
3392
|
+
* @summary Transition cluster engine mode
|
|
3393
|
+
* @param {ClusterApiTransitionClusterModeRequest} requestParameters Request parameters.
|
|
3394
|
+
* @param {*} [options] Override http request option.
|
|
3395
|
+
* @throws {RequiredError}
|
|
3396
|
+
* @memberof ClusterApi
|
|
3397
|
+
*/
|
|
3398
|
+
public transitionClusterMode(requestParameters: ClusterApiTransitionClusterModeRequest, options?: RawAxiosRequestConfig) {
|
|
3399
|
+
return ClusterApiFp(this.configuration).transitionClusterMode(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
3400
|
+
}
|
|
3401
|
+
|
|
3272
3402
|
/**
|
|
3273
3403
|
* Enable or disable SQL audit log for a cluster component
|
|
3274
3404
|
* @summary Update SQL audit log status
|
|
@@ -70,6 +70,8 @@ import type { EnvironmentUpdate } from '../models';
|
|
|
70
70
|
// @ts-ignore
|
|
71
71
|
import type { HttpBody } from '../models';
|
|
72
72
|
// @ts-ignore
|
|
73
|
+
import type { KoordinatorReservationSummary } from '../models';
|
|
74
|
+
// @ts-ignore
|
|
73
75
|
import type { Kubeconfig } from '../models';
|
|
74
76
|
// @ts-ignore
|
|
75
77
|
import type { ListKubernetesNodeOpType } from '../models';
|
|
@@ -1135,6 +1137,47 @@ export const EnvironmentApiAxiosParamCreator = function (configuration?: Configu
|
|
|
1135
1137
|
|
|
1136
1138
|
|
|
1137
1139
|
|
|
1140
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1141
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1142
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1143
|
+
|
|
1144
|
+
return {
|
|
1145
|
+
url: toPathString(localVarUrlObj),
|
|
1146
|
+
options: localVarRequestOptions,
|
|
1147
|
+
};
|
|
1148
|
+
},
|
|
1149
|
+
/**
|
|
1150
|
+
* Get Koordinator Reservation summary for the cluster creation page.
|
|
1151
|
+
* @summary Get Koordinator Reservation summary
|
|
1152
|
+
* @param {string} environmentName name of the environment
|
|
1153
|
+
* @param {*} [options] Override http request option.
|
|
1154
|
+
* @throws {RequiredError}
|
|
1155
|
+
*/
|
|
1156
|
+
getKoordinatorReservationSummary: async (environmentName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1157
|
+
// verify required parameter 'environmentName' is not null or undefined
|
|
1158
|
+
assertParamExists('getKoordinatorReservationSummary', 'environmentName', environmentName)
|
|
1159
|
+
const localVarPath = `/admin/v1/environments/{environmentName}/koordinatorReservations/summary`
|
|
1160
|
+
.replace(`{${"environmentName"}}`, encodeURIComponent(String(environmentName)));
|
|
1161
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1162
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1163
|
+
let baseOptions;
|
|
1164
|
+
if (configuration) {
|
|
1165
|
+
baseOptions = configuration.baseOptions;
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1169
|
+
const localVarHeaderParameter = {} as any;
|
|
1170
|
+
const localVarQueryParameter = {} as any;
|
|
1171
|
+
|
|
1172
|
+
// authentication BearerToken required
|
|
1173
|
+
// http bearer authentication required
|
|
1174
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1175
|
+
|
|
1176
|
+
// authentication DigestAuth required
|
|
1177
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
1178
|
+
|
|
1179
|
+
|
|
1180
|
+
|
|
1138
1181
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1139
1182
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1140
1183
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -2548,6 +2591,19 @@ export const EnvironmentApiFp = function(configuration?: Configuration) {
|
|
|
2548
2591
|
const localVarOperationServerBasePath = operationServerMap['EnvironmentApi.getEnvironmentStatusHistory']?.[localVarOperationServerIndex]?.url;
|
|
2549
2592
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2550
2593
|
},
|
|
2594
|
+
/**
|
|
2595
|
+
* Get Koordinator Reservation summary for the cluster creation page.
|
|
2596
|
+
* @summary Get Koordinator Reservation summary
|
|
2597
|
+
* @param {string} environmentName name of the environment
|
|
2598
|
+
* @param {*} [options] Override http request option.
|
|
2599
|
+
* @throws {RequiredError}
|
|
2600
|
+
*/
|
|
2601
|
+
async getKoordinatorReservationSummary(environmentName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<KoordinatorReservationSummary>> {
|
|
2602
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getKoordinatorReservationSummary(environmentName, options);
|
|
2603
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2604
|
+
const localVarOperationServerBasePath = operationServerMap['EnvironmentApi.getKoordinatorReservationSummary']?.[localVarOperationServerIndex]?.url;
|
|
2605
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2606
|
+
},
|
|
2551
2607
|
/**
|
|
2552
2608
|
* Get Kubernetes DNS
|
|
2553
2609
|
* @summary Get Kubernetes DNS
|
|
@@ -3112,6 +3168,16 @@ export const EnvironmentApiFactory = function (configuration?: Configuration, ba
|
|
|
3112
3168
|
getEnvironmentStatusHistory(requestParameters: EnvironmentApiGetEnvironmentStatusHistoryRequest, options?: RawAxiosRequestConfig): AxiosPromise<EnvironmentStatusHistory> {
|
|
3113
3169
|
return localVarFp.getEnvironmentStatusHistory(requestParameters.environmentName, requestParameters.startTime, requestParameters.endTime, options).then((request) => request(axios, basePath));
|
|
3114
3170
|
},
|
|
3171
|
+
/**
|
|
3172
|
+
* Get Koordinator Reservation summary for the cluster creation page.
|
|
3173
|
+
* @summary Get Koordinator Reservation summary
|
|
3174
|
+
* @param {EnvironmentApiGetKoordinatorReservationSummaryRequest} requestParameters Request parameters.
|
|
3175
|
+
* @param {*} [options] Override http request option.
|
|
3176
|
+
* @throws {RequiredError}
|
|
3177
|
+
*/
|
|
3178
|
+
getKoordinatorReservationSummary(requestParameters: EnvironmentApiGetKoordinatorReservationSummaryRequest, options?: RawAxiosRequestConfig): AxiosPromise<KoordinatorReservationSummary> {
|
|
3179
|
+
return localVarFp.getKoordinatorReservationSummary(requestParameters.environmentName, options).then((request) => request(axios, basePath));
|
|
3180
|
+
},
|
|
3115
3181
|
/**
|
|
3116
3182
|
* Get Kubernetes DNS
|
|
3117
3183
|
* @summary Get Kubernetes DNS
|
|
@@ -3579,6 +3645,16 @@ export interface EnvironmentApiInterface {
|
|
|
3579
3645
|
*/
|
|
3580
3646
|
getEnvironmentStatusHistory(requestParameters: EnvironmentApiGetEnvironmentStatusHistoryRequest, options?: RawAxiosRequestConfig): AxiosPromise<EnvironmentStatusHistory>;
|
|
3581
3647
|
|
|
3648
|
+
/**
|
|
3649
|
+
* Get Koordinator Reservation summary for the cluster creation page.
|
|
3650
|
+
* @summary Get Koordinator Reservation summary
|
|
3651
|
+
* @param {EnvironmentApiGetKoordinatorReservationSummaryRequest} requestParameters Request parameters.
|
|
3652
|
+
* @param {*} [options] Override http request option.
|
|
3653
|
+
* @throws {RequiredError}
|
|
3654
|
+
* @memberof EnvironmentApiInterface
|
|
3655
|
+
*/
|
|
3656
|
+
getKoordinatorReservationSummary(requestParameters: EnvironmentApiGetKoordinatorReservationSummaryRequest, options?: RawAxiosRequestConfig): AxiosPromise<KoordinatorReservationSummary>;
|
|
3657
|
+
|
|
3582
3658
|
/**
|
|
3583
3659
|
* Get Kubernetes DNS
|
|
3584
3660
|
* @summary Get Kubernetes DNS
|
|
@@ -4278,6 +4354,20 @@ export interface EnvironmentApiGetEnvironmentStatusHistoryRequest {
|
|
|
4278
4354
|
readonly endTime: string
|
|
4279
4355
|
}
|
|
4280
4356
|
|
|
4357
|
+
/**
|
|
4358
|
+
* Request parameters for getKoordinatorReservationSummary operation in EnvironmentApi.
|
|
4359
|
+
* @export
|
|
4360
|
+
* @interface EnvironmentApiGetKoordinatorReservationSummaryRequest
|
|
4361
|
+
*/
|
|
4362
|
+
export interface EnvironmentApiGetKoordinatorReservationSummaryRequest {
|
|
4363
|
+
/**
|
|
4364
|
+
* name of the environment
|
|
4365
|
+
* @type {string}
|
|
4366
|
+
* @memberof EnvironmentApiGetKoordinatorReservationSummary
|
|
4367
|
+
*/
|
|
4368
|
+
readonly environmentName: string
|
|
4369
|
+
}
|
|
4370
|
+
|
|
4281
4371
|
/**
|
|
4282
4372
|
* Request parameters for getKubernetesDNS operation in EnvironmentApi.
|
|
4283
4373
|
* @export
|
|
@@ -5044,6 +5134,18 @@ export class EnvironmentApi extends BaseAPI implements EnvironmentApiInterface {
|
|
|
5044
5134
|
return EnvironmentApiFp(this.configuration).getEnvironmentStatusHistory(requestParameters.environmentName, requestParameters.startTime, requestParameters.endTime, options).then((request) => request(this.axios, this.basePath));
|
|
5045
5135
|
}
|
|
5046
5136
|
|
|
5137
|
+
/**
|
|
5138
|
+
* Get Koordinator Reservation summary for the cluster creation page.
|
|
5139
|
+
* @summary Get Koordinator Reservation summary
|
|
5140
|
+
* @param {EnvironmentApiGetKoordinatorReservationSummaryRequest} requestParameters Request parameters.
|
|
5141
|
+
* @param {*} [options] Override http request option.
|
|
5142
|
+
* @throws {RequiredError}
|
|
5143
|
+
* @memberof EnvironmentApi
|
|
5144
|
+
*/
|
|
5145
|
+
public getKoordinatorReservationSummary(requestParameters: EnvironmentApiGetKoordinatorReservationSummaryRequest, options?: RawAxiosRequestConfig) {
|
|
5146
|
+
return EnvironmentApiFp(this.configuration).getKoordinatorReservationSummary(requestParameters.environmentName, options).then((request) => request(this.axios, this.basePath));
|
|
5147
|
+
}
|
|
5148
|
+
|
|
5047
5149
|
/**
|
|
5048
5150
|
* Get Kubernetes DNS
|
|
5049
5151
|
* @summary Get Kubernetes DNS
|
|
@@ -39,8 +39,6 @@ import type { InspectionScript } from '../models';
|
|
|
39
39
|
import type { InspectionTask } from '../models';
|
|
40
40
|
// @ts-ignore
|
|
41
41
|
import type { InspectionTaskFormat } from '../models';
|
|
42
|
-
// @ts-ignore
|
|
43
|
-
import type { InspectionTaskItem } from '../models';
|
|
44
42
|
/**
|
|
45
43
|
* InspectionApi - axios parameter creator
|
|
46
44
|
* @export
|
|
@@ -977,7 +975,7 @@ export const InspectionApiFp = function(configuration?: Configuration) {
|
|
|
977
975
|
* @param {*} [options] Override http request option.
|
|
978
976
|
* @throws {RequiredError}
|
|
979
977
|
*/
|
|
980
|
-
async getInspectionTaskByEnv(environmentName: string, taskId: string, format?: InspectionTaskFormat, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
978
|
+
async getInspectionTaskByEnv(environmentName: string, taskId: string, format?: InspectionTaskFormat, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InspectionTask>> {
|
|
981
979
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getInspectionTaskByEnv(environmentName, taskId, format, options);
|
|
982
980
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
983
981
|
const localVarOperationServerBasePath = operationServerMap['InspectionApi.getInspectionTaskByEnv']?.[localVarOperationServerIndex]?.url;
|
|
@@ -1182,7 +1180,7 @@ export const InspectionApiFactory = function (configuration?: Configuration, bas
|
|
|
1182
1180
|
* @param {*} [options] Override http request option.
|
|
1183
1181
|
* @throws {RequiredError}
|
|
1184
1182
|
*/
|
|
1185
|
-
getInspectionTaskByEnv(requestParameters: InspectionApiGetInspectionTaskByEnvRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
1183
|
+
getInspectionTaskByEnv(requestParameters: InspectionApiGetInspectionTaskByEnvRequest, options?: RawAxiosRequestConfig): AxiosPromise<InspectionTask> {
|
|
1186
1184
|
return localVarFp.getInspectionTaskByEnv(requestParameters.environmentName, requestParameters.taskId, requestParameters.format, options).then((request) => request(axios, basePath));
|
|
1187
1185
|
},
|
|
1188
1186
|
/**
|
|
@@ -1352,7 +1350,7 @@ export interface InspectionApiInterface {
|
|
|
1352
1350
|
* @throws {RequiredError}
|
|
1353
1351
|
* @memberof InspectionApiInterface
|
|
1354
1352
|
*/
|
|
1355
|
-
getInspectionTaskByEnv(requestParameters: InspectionApiGetInspectionTaskByEnvRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
1353
|
+
getInspectionTaskByEnv(requestParameters: InspectionApiGetInspectionTaskByEnvRequest, options?: RawAxiosRequestConfig): AxiosPromise<InspectionTask>;
|
|
1356
1354
|
|
|
1357
1355
|
/**
|
|
1358
1356
|
*
|
|
@@ -94,6 +94,8 @@ import type { ClusterLogHitsResponse } from '../models';
|
|
|
94
94
|
// @ts-ignore
|
|
95
95
|
import type { ClusterMetrics } from '../models';
|
|
96
96
|
// @ts-ignore
|
|
97
|
+
import type { ClusterModeTransition } from '../models';
|
|
98
|
+
// @ts-ignore
|
|
97
99
|
import type { ClusterRawLogResponse } from '../models';
|
|
98
100
|
// @ts-ignore
|
|
99
101
|
import type { ClusterSlowLogExplainResponse } from '../models';
|
|
@@ -12413,6 +12415,57 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
12413
12415
|
|
|
12414
12416
|
|
|
12415
12417
|
|
|
12418
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12419
|
+
|
|
12420
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12421
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12422
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
12423
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
12424
|
+
|
|
12425
|
+
return {
|
|
12426
|
+
url: toPathString(localVarUrlObj),
|
|
12427
|
+
options: localVarRequestOptions,
|
|
12428
|
+
};
|
|
12429
|
+
},
|
|
12430
|
+
/**
|
|
12431
|
+
* Validates the mode transition, updates the cluster spec, and creates an hscale task when required. Returns the resulting OpsRequest name and task ID.
|
|
12432
|
+
* @summary Transition cluster engine mode
|
|
12433
|
+
* @param {string} orgName name of the Org
|
|
12434
|
+
* @param {string} clusterName name of the KubeBlocks cluster
|
|
12435
|
+
* @param {ClusterModeTransition} body
|
|
12436
|
+
* @param {*} [options] Override http request option.
|
|
12437
|
+
* @throws {RequiredError}
|
|
12438
|
+
*/
|
|
12439
|
+
transitionClusterMode: async (orgName: string, clusterName: string, body: ClusterModeTransition, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12440
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
12441
|
+
assertParamExists('transitionClusterMode', 'orgName', orgName)
|
|
12442
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
12443
|
+
assertParamExists('transitionClusterMode', 'clusterName', clusterName)
|
|
12444
|
+
// verify required parameter 'body' is not null or undefined
|
|
12445
|
+
assertParamExists('transitionClusterMode', 'body', body)
|
|
12446
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/modeTransition`
|
|
12447
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
12448
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
12449
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12450
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12451
|
+
let baseOptions;
|
|
12452
|
+
if (configuration) {
|
|
12453
|
+
baseOptions = configuration.baseOptions;
|
|
12454
|
+
}
|
|
12455
|
+
|
|
12456
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
12457
|
+
const localVarHeaderParameter = {} as any;
|
|
12458
|
+
const localVarQueryParameter = {} as any;
|
|
12459
|
+
|
|
12460
|
+
// authentication BearerToken required
|
|
12461
|
+
// http bearer authentication required
|
|
12462
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
12463
|
+
|
|
12464
|
+
// authentication DigestAuth required
|
|
12465
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
12466
|
+
|
|
12467
|
+
|
|
12468
|
+
|
|
12416
12469
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12417
12470
|
|
|
12418
12471
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -17296,6 +17349,21 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
17296
17349
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.tlsSwitcher']?.[localVarOperationServerIndex]?.url;
|
|
17297
17350
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17298
17351
|
},
|
|
17352
|
+
/**
|
|
17353
|
+
* Validates the mode transition, updates the cluster spec, and creates an hscale task when required. Returns the resulting OpsRequest name and task ID.
|
|
17354
|
+
* @summary Transition cluster engine mode
|
|
17355
|
+
* @param {string} orgName name of the Org
|
|
17356
|
+
* @param {string} clusterName name of the KubeBlocks cluster
|
|
17357
|
+
* @param {ClusterModeTransition} body
|
|
17358
|
+
* @param {*} [options] Override http request option.
|
|
17359
|
+
* @throws {RequiredError}
|
|
17360
|
+
*/
|
|
17361
|
+
async transitionClusterMode(orgName: string, clusterName: string, body: ClusterModeTransition, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OpsRequestName>> {
|
|
17362
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.transitionClusterMode(orgName, clusterName, body, options);
|
|
17363
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17364
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.transitionClusterMode']?.[localVarOperationServerIndex]?.url;
|
|
17365
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17366
|
+
},
|
|
17299
17367
|
/**
|
|
17300
17368
|
* unfreeze the member in org
|
|
17301
17369
|
* @summary unfreeze the member in org
|
|
@@ -19906,6 +19974,16 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
19906
19974
|
tlsSwitcher(requestParameters: SharedApiTlsSwitcherRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
19907
19975
|
return localVarFp.tlsSwitcher(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
19908
19976
|
},
|
|
19977
|
+
/**
|
|
19978
|
+
* Validates the mode transition, updates the cluster spec, and creates an hscale task when required. Returns the resulting OpsRequest name and task ID.
|
|
19979
|
+
* @summary Transition cluster engine mode
|
|
19980
|
+
* @param {SharedApiTransitionClusterModeRequest} requestParameters Request parameters.
|
|
19981
|
+
* @param {*} [options] Override http request option.
|
|
19982
|
+
* @throws {RequiredError}
|
|
19983
|
+
*/
|
|
19984
|
+
transitionClusterMode(requestParameters: SharedApiTransitionClusterModeRequest, options?: RawAxiosRequestConfig): AxiosPromise<OpsRequestName> {
|
|
19985
|
+
return localVarFp.transitionClusterMode(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
19986
|
+
},
|
|
19909
19987
|
/**
|
|
19910
19988
|
* unfreeze the member in org
|
|
19911
19989
|
* @summary unfreeze the member in org
|
|
@@ -22369,6 +22447,16 @@ export interface SharedApiInterface {
|
|
|
22369
22447
|
*/
|
|
22370
22448
|
tlsSwitcher(requestParameters: SharedApiTlsSwitcherRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
22371
22449
|
|
|
22450
|
+
/**
|
|
22451
|
+
* Validates the mode transition, updates the cluster spec, and creates an hscale task when required. Returns the resulting OpsRequest name and task ID.
|
|
22452
|
+
* @summary Transition cluster engine mode
|
|
22453
|
+
* @param {SharedApiTransitionClusterModeRequest} requestParameters Request parameters.
|
|
22454
|
+
* @param {*} [options] Override http request option.
|
|
22455
|
+
* @throws {RequiredError}
|
|
22456
|
+
* @memberof SharedApiInterface
|
|
22457
|
+
*/
|
|
22458
|
+
transitionClusterMode(requestParameters: SharedApiTransitionClusterModeRequest, options?: RawAxiosRequestConfig): AxiosPromise<OpsRequestName>;
|
|
22459
|
+
|
|
22372
22460
|
/**
|
|
22373
22461
|
* unfreeze the member in org
|
|
22374
22462
|
* @summary unfreeze the member in org
|
|
@@ -30001,6 +30089,34 @@ export interface SharedApiTlsSwitcherRequest {
|
|
|
30001
30089
|
readonly body: TlsRequest
|
|
30002
30090
|
}
|
|
30003
30091
|
|
|
30092
|
+
/**
|
|
30093
|
+
* Request parameters for transitionClusterMode operation in SharedApi.
|
|
30094
|
+
* @export
|
|
30095
|
+
* @interface SharedApiTransitionClusterModeRequest
|
|
30096
|
+
*/
|
|
30097
|
+
export interface SharedApiTransitionClusterModeRequest {
|
|
30098
|
+
/**
|
|
30099
|
+
* name of the Org
|
|
30100
|
+
* @type {string}
|
|
30101
|
+
* @memberof SharedApiTransitionClusterMode
|
|
30102
|
+
*/
|
|
30103
|
+
readonly orgName: string
|
|
30104
|
+
|
|
30105
|
+
/**
|
|
30106
|
+
* name of the KubeBlocks cluster
|
|
30107
|
+
* @type {string}
|
|
30108
|
+
* @memberof SharedApiTransitionClusterMode
|
|
30109
|
+
*/
|
|
30110
|
+
readonly clusterName: string
|
|
30111
|
+
|
|
30112
|
+
/**
|
|
30113
|
+
*
|
|
30114
|
+
* @type {ClusterModeTransition}
|
|
30115
|
+
* @memberof SharedApiTransitionClusterMode
|
|
30116
|
+
*/
|
|
30117
|
+
readonly body: ClusterModeTransition
|
|
30118
|
+
}
|
|
30119
|
+
|
|
30004
30120
|
/**
|
|
30005
30121
|
* Request parameters for unfreezeMember operation in SharedApi.
|
|
30006
30122
|
* @export
|
|
@@ -33483,6 +33599,18 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
33483
33599
|
return SharedApiFp(this.configuration).tlsSwitcher(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
33484
33600
|
}
|
|
33485
33601
|
|
|
33602
|
+
/**
|
|
33603
|
+
* Validates the mode transition, updates the cluster spec, and creates an hscale task when required. Returns the resulting OpsRequest name and task ID.
|
|
33604
|
+
* @summary Transition cluster engine mode
|
|
33605
|
+
* @param {SharedApiTransitionClusterModeRequest} requestParameters Request parameters.
|
|
33606
|
+
* @param {*} [options] Override http request option.
|
|
33607
|
+
* @throws {RequiredError}
|
|
33608
|
+
* @memberof SharedApi
|
|
33609
|
+
*/
|
|
33610
|
+
public transitionClusterMode(requestParameters: SharedApiTransitionClusterModeRequest, options?: RawAxiosRequestConfig) {
|
|
33611
|
+
return SharedApiFp(this.configuration).transitionClusterMode(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
33612
|
+
}
|
|
33613
|
+
|
|
33486
33614
|
/**
|
|
33487
33615
|
* unfreeze the member in org
|
|
33488
33616
|
* @summary unfreeze the member in org
|
|
@@ -39,6 +39,9 @@ import type { ComponentItemCreate } from './component-item-create';
|
|
|
39
39
|
import type { InitOptionItem } from './init-option-item';
|
|
40
40
|
// May contain unused imports in some cases
|
|
41
41
|
// @ts-ignore
|
|
42
|
+
import type { KoordinatorReservationResourceClass } from './koordinator-reservation-resource-class';
|
|
43
|
+
// May contain unused imports in some cases
|
|
44
|
+
// @ts-ignore
|
|
42
45
|
import type { NetworkMode } from './network-mode';
|
|
43
46
|
// May contain unused imports in some cases
|
|
44
47
|
// @ts-ignore
|
|
@@ -212,6 +215,18 @@ export interface ClusterCreate {
|
|
|
212
215
|
* @memberof ClusterCreate
|
|
213
216
|
*/
|
|
214
217
|
'schedulingPolicy'?: SchedulingPolicyType;
|
|
218
|
+
/**
|
|
219
|
+
* Scheduler used by this cluster. If omitted, KBE uses the environment default. When koordinatorEnabled is true for the target environment, the environment default is the globally configured Koordinator scheduler.
|
|
220
|
+
* @type {string}
|
|
221
|
+
* @memberof ClusterCreate
|
|
222
|
+
*/
|
|
223
|
+
'schedulerName'?: string | null;
|
|
224
|
+
/**
|
|
225
|
+
*
|
|
226
|
+
* @type {KoordinatorReservationResourceClass}
|
|
227
|
+
* @memberof ClusterCreate
|
|
228
|
+
*/
|
|
229
|
+
'reservationResourceClass'?: KoordinatorReservationResourceClass;
|
|
215
230
|
}
|
|
216
231
|
|
|
217
232
|
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Admin API
|
|
5
|
+
* The Admin API is used to manage the ApeCloud platform.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@apecloud.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { OpsHScale } from './ops-hscale';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Parameters for switching the engine mode of a cluster.
|
|
22
|
+
* @export
|
|
23
|
+
* @interface ClusterModeTransition
|
|
24
|
+
*/
|
|
25
|
+
export interface ClusterModeTransition {
|
|
26
|
+
/**
|
|
27
|
+
* Target engine mode.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof ClusterModeTransition
|
|
30
|
+
*/
|
|
31
|
+
'mode': string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {OpsHScale}
|
|
35
|
+
* @memberof ClusterModeTransition
|
|
36
|
+
*/
|
|
37
|
+
'hScale'?: OpsHScale;
|
|
38
|
+
}
|
|
39
|
+
|
|
@@ -39,6 +39,9 @@ import type { ComponentItem } from './component-item';
|
|
|
39
39
|
import type { InitOptionItem } from './init-option-item';
|
|
40
40
|
// May contain unused imports in some cases
|
|
41
41
|
// @ts-ignore
|
|
42
|
+
import type { KoordinatorReservationResourceClass } from './koordinator-reservation-resource-class';
|
|
43
|
+
// May contain unused imports in some cases
|
|
44
|
+
// @ts-ignore
|
|
42
45
|
import type { NetworkMode } from './network-mode';
|
|
43
46
|
// May contain unused imports in some cases
|
|
44
47
|
// @ts-ignore
|
|
@@ -314,6 +317,18 @@ export interface Cluster {
|
|
|
314
317
|
* @memberof Cluster
|
|
315
318
|
*/
|
|
316
319
|
'schedulingPolicy'?: SchedulingPolicyType;
|
|
320
|
+
/**
|
|
321
|
+
* Effective scheduler used when the cluster was created.
|
|
322
|
+
* @type {string}
|
|
323
|
+
* @memberof Cluster
|
|
324
|
+
*/
|
|
325
|
+
'schedulerName'?: string | null;
|
|
326
|
+
/**
|
|
327
|
+
*
|
|
328
|
+
* @type {KoordinatorReservationResourceClass}
|
|
329
|
+
* @memberof Cluster
|
|
330
|
+
*/
|
|
331
|
+
'reservationResourceClass'?: KoordinatorReservationResourceClass;
|
|
317
332
|
}
|
|
318
333
|
|
|
319
334
|
|
|
@@ -131,6 +131,12 @@ export interface EnvironmentCreate {
|
|
|
131
131
|
* @memberof EnvironmentCreate
|
|
132
132
|
*/
|
|
133
133
|
'sla'?: boolean;
|
|
134
|
+
/**
|
|
135
|
+
* Whether this environment has Koordinator installed and can use Koordinator scheduler and reservations.
|
|
136
|
+
* @type {boolean}
|
|
137
|
+
* @memberof EnvironmentCreate
|
|
138
|
+
*/
|
|
139
|
+
'koordinatorEnabled'?: boolean;
|
|
134
140
|
}
|
|
135
141
|
|
|
136
142
|
|