kb-cloud-client-typescript 2.3.31 → 2.3.33
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-jar-api.d.ts +0 -79
- package/dist/adminapi/apis/cluster-jar-api.d.ts.map +1 -1
- package/dist/adminapi/apis/cluster-jar-api.js +0 -84
- package/dist/adminapi/apis/cluster-jar-api.js.map +1 -1
- package/dist/adminapi/apis/shared-api.d.ts +0 -79
- package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
- package/dist/adminapi/apis/shared-api.js +0 -84
- package/dist/adminapi/apis/shared-api.js.map +1 -1
- package/dist/adminapi/apis/task-api.d.ts +16 -7
- package/dist/adminapi/apis/task-api.d.ts.map +1 -1
- package/dist/adminapi/apis/task-api.js +14 -9
- package/dist/adminapi/apis/task-api.js.map +1 -1
- package/dist/adminapi/apis/vip-pool-api.d.ts +72 -0
- package/dist/adminapi/apis/vip-pool-api.d.ts.map +1 -1
- package/dist/adminapi/apis/vip-pool-api.js +80 -0
- package/dist/adminapi/apis/vip-pool-api.js.map +1 -1
- package/dist/adminapi/models/backup-option.d.ts +6 -0
- package/dist/adminapi/models/backup-option.d.ts.map +1 -1
- package/dist/adminapi/models/cluster-create.d.ts +6 -0
- package/dist/adminapi/models/cluster-create.d.ts.map +1 -1
- package/dist/adminapi/models/cluster-jar-package.d.ts +0 -6
- package/dist/adminapi/models/cluster-jar-package.d.ts.map +1 -1
- package/dist/adminapi/models/component-item-create.d.ts +8 -1
- package/dist/adminapi/models/component-item-create.d.ts.map +1 -1
- package/dist/adminapi/models/dms-pagination.d.ts +36 -0
- package/dist/adminapi/models/dms-pagination.d.ts.map +1 -1
- package/dist/adminapi/models/index.d.ts +11 -1
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +11 -1
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/instance-template-attribute.d.ts +25 -0
- package/dist/adminapi/models/instance-template-attribute.d.ts.map +1 -0
- package/dist/adminapi/models/instance-template-attribute.js +29 -0
- package/dist/adminapi/models/instance-template-attribute.js.map +1 -0
- package/dist/adminapi/models/instance-template-create-env-inner.d.ts +31 -0
- package/dist/adminapi/models/instance-template-create-env-inner.d.ts.map +1 -0
- package/dist/adminapi/models/instance-template-create-env-inner.js +16 -0
- package/dist/adminapi/models/instance-template-create-env-inner.js.map +1 -0
- package/dist/adminapi/models/instance-template-create.d.ts +66 -0
- package/dist/adminapi/models/instance-template-create.d.ts.map +1 -0
- package/dist/adminapi/models/{ops-volume-expand-volumes-inner.js → instance-template-create.js} +1 -1
- package/dist/adminapi/models/instance-template-create.js.map +1 -0
- package/dist/adminapi/models/instance-template-env.d.ts +50 -0
- package/dist/adminapi/models/instance-template-env.d.ts.map +1 -0
- package/dist/adminapi/models/instance-template-env.js +16 -0
- package/dist/adminapi/models/instance-template-env.js.map +1 -0
- package/dist/adminapi/models/instance-template-op.d.ts +23 -0
- package/dist/adminapi/models/instance-template-op.d.ts.map +1 -0
- package/dist/adminapi/models/instance-template-op.js +27 -0
- package/dist/adminapi/models/instance-template-op.js.map +1 -0
- package/dist/adminapi/models/instance-template-replicas.d.ts +31 -0
- package/dist/adminapi/models/instance-template-replicas.d.ts.map +1 -0
- package/dist/adminapi/models/instance-template-replicas.js +16 -0
- package/dist/adminapi/models/instance-template-replicas.js.map +1 -0
- package/dist/adminapi/models/instance-template-volume-expand.d.ts +32 -0
- package/dist/adminapi/models/instance-template-volume-expand.d.ts.map +1 -0
- package/dist/adminapi/models/instance-template-volume-expand.js +16 -0
- package/dist/adminapi/models/instance-template-volume-expand.js.map +1 -0
- package/dist/adminapi/models/mode-component-instance-template.d.ts +46 -0
- package/dist/adminapi/models/mode-component-instance-template.d.ts.map +1 -0
- package/dist/adminapi/models/mode-component-instance-template.js +16 -0
- package/dist/adminapi/models/mode-component-instance-template.js.map +1 -0
- package/dist/adminapi/models/mode-component.d.ts +7 -0
- package/dist/adminapi/models/mode-component.d.ts.map +1 -1
- package/dist/adminapi/models/ops-hscale.d.ts +8 -1
- package/dist/adminapi/models/ops-hscale.d.ts.map +1 -1
- package/dist/adminapi/models/{ops-volume-expand-volumes-inner.d.ts → ops-volume-expand-volumes-items0.d.ts} +7 -7
- package/dist/adminapi/models/ops-volume-expand-volumes-items0.d.ts.map +1 -0
- package/dist/adminapi/models/ops-volume-expand-volumes-items0.js +16 -0
- package/dist/adminapi/models/ops-volume-expand-volumes-items0.js.map +1 -0
- package/dist/adminapi/models/ops-volume-expand.d.ts +11 -4
- package/dist/adminapi/models/ops-volume-expand.d.ts.map +1 -1
- package/dist/adminapi/models/ops-vscale.d.ts +1 -1
- package/dist/adminapi/models/show-data-request.d.ts +13 -1
- package/dist/adminapi/models/show-data-request.d.ts.map +1 -1
- package/dist/adminapi/models/task-retry-mode.d.ts +22 -0
- package/dist/adminapi/models/task-retry-mode.d.ts.map +1 -0
- package/dist/adminapi/models/task-retry-mode.js +26 -0
- package/dist/adminapi/models/task-retry-mode.js.map +1 -0
- package/dist/adminapi/models/task.d.ts +7 -0
- package/dist/adminapi/models/task.d.ts.map +1 -1
- package/dist/adminapi/models/vip-pool-create.d.ts +6 -0
- package/dist/adminapi/models/vip-pool-create.d.ts.map +1 -1
- package/dist/adminapi/models/vip-pool-update.d.ts +25 -0
- package/dist/adminapi/models/vip-pool-update.d.ts.map +1 -0
- package/dist/adminapi/models/vip-pool-update.js +16 -0
- package/dist/adminapi/models/vip-pool-update.js.map +1 -0
- package/dist/adminapi/models/vip-pool.d.ts +12 -0
- package/dist/adminapi/models/vip-pool.d.ts.map +1 -1
- package/dist/openapi/apis/cluster-jar-api.d.ts +0 -79
- package/dist/openapi/apis/cluster-jar-api.d.ts.map +1 -1
- package/dist/openapi/apis/cluster-jar-api.js +0 -84
- package/dist/openapi/apis/cluster-jar-api.js.map +1 -1
- package/dist/openapi/apis/shared-api.d.ts +0 -79
- package/dist/openapi/apis/shared-api.d.ts.map +1 -1
- package/dist/openapi/apis/shared-api.js +0 -84
- package/dist/openapi/apis/shared-api.js.map +1 -1
- package/dist/openapi/models/backup-option.d.ts +6 -0
- package/dist/openapi/models/backup-option.d.ts.map +1 -1
- package/dist/openapi/models/cluster-create.d.ts +6 -0
- package/dist/openapi/models/cluster-create.d.ts.map +1 -1
- package/dist/openapi/models/cluster-jar-package.d.ts +0 -6
- package/dist/openapi/models/cluster-jar-package.d.ts.map +1 -1
- package/dist/openapi/models/component-item-create.d.ts +8 -1
- package/dist/openapi/models/component-item-create.d.ts.map +1 -1
- package/dist/openapi/models/dms-pagination.d.ts +36 -0
- package/dist/openapi/models/dms-pagination.d.ts.map +1 -1
- package/dist/openapi/models/index.d.ts +10 -1
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +10 -1
- package/dist/openapi/models/index.js.map +1 -1
- package/dist/openapi/models/instance-template-attribute.d.ts +25 -0
- package/dist/openapi/models/instance-template-attribute.d.ts.map +1 -0
- package/dist/openapi/models/instance-template-attribute.js +29 -0
- package/dist/openapi/models/instance-template-attribute.js.map +1 -0
- package/dist/openapi/models/instance-template-create-env-inner.d.ts +31 -0
- package/dist/openapi/models/instance-template-create-env-inner.d.ts.map +1 -0
- package/dist/openapi/models/instance-template-create-env-inner.js +16 -0
- package/dist/openapi/models/instance-template-create-env-inner.js.map +1 -0
- package/dist/openapi/models/instance-template-create.d.ts +66 -0
- package/dist/openapi/models/instance-template-create.d.ts.map +1 -0
- package/dist/openapi/models/{ops-volume-expand-volumes-inner.js → instance-template-create.js} +1 -1
- package/dist/openapi/models/instance-template-create.js.map +1 -0
- package/dist/openapi/models/instance-template-env.d.ts +50 -0
- package/dist/openapi/models/instance-template-env.d.ts.map +1 -0
- package/dist/openapi/models/instance-template-env.js +16 -0
- package/dist/openapi/models/instance-template-env.js.map +1 -0
- package/dist/openapi/models/instance-template-op.d.ts +23 -0
- package/dist/openapi/models/instance-template-op.d.ts.map +1 -0
- package/dist/openapi/models/instance-template-op.js +27 -0
- package/dist/openapi/models/instance-template-op.js.map +1 -0
- package/dist/openapi/models/instance-template-replicas.d.ts +31 -0
- package/dist/openapi/models/instance-template-replicas.d.ts.map +1 -0
- package/dist/openapi/models/instance-template-replicas.js +16 -0
- package/dist/openapi/models/instance-template-replicas.js.map +1 -0
- package/dist/openapi/models/instance-template-volume-expand.d.ts +32 -0
- package/dist/openapi/models/instance-template-volume-expand.d.ts.map +1 -0
- package/dist/openapi/models/instance-template-volume-expand.js +16 -0
- package/dist/openapi/models/instance-template-volume-expand.js.map +1 -0
- package/dist/openapi/models/mode-component-instance-template.d.ts +46 -0
- package/dist/openapi/models/mode-component-instance-template.d.ts.map +1 -0
- package/dist/openapi/models/mode-component-instance-template.js +16 -0
- package/dist/openapi/models/mode-component-instance-template.js.map +1 -0
- package/dist/openapi/models/mode-component.d.ts +7 -0
- package/dist/openapi/models/mode-component.d.ts.map +1 -1
- package/dist/openapi/models/ops-hscale.d.ts +8 -1
- package/dist/openapi/models/ops-hscale.d.ts.map +1 -1
- package/dist/openapi/models/{ops-volume-expand-volumes-inner.d.ts → ops-volume-expand-volumes-items0.d.ts} +7 -7
- package/dist/openapi/models/ops-volume-expand-volumes-items0.d.ts.map +1 -0
- package/dist/openapi/models/ops-volume-expand-volumes-items0.js +16 -0
- package/dist/openapi/models/ops-volume-expand-volumes-items0.js.map +1 -0
- package/dist/openapi/models/ops-volume-expand.d.ts +11 -4
- package/dist/openapi/models/ops-volume-expand.d.ts.map +1 -1
- package/dist/openapi/models/ops-vscale.d.ts +1 -1
- package/dist/openapi/models/show-data-request.d.ts +13 -1
- package/dist/openapi/models/show-data-request.d.ts.map +1 -1
- package/dist/openapi/models/task-retry-mode.d.ts +22 -0
- package/dist/openapi/models/task-retry-mode.d.ts.map +1 -0
- package/dist/openapi/models/task-retry-mode.js +26 -0
- package/dist/openapi/models/task-retry-mode.js.map +1 -0
- package/dist/openapi/models/task.d.ts +7 -0
- package/dist/openapi/models/task.d.ts.map +1 -1
- package/dist/openapi/models/vip-pool.d.ts +12 -0
- package/dist/openapi/models/vip-pool.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +11 -1
- package/src/adminapi/apis/cluster-jar-api.ts +0 -136
- package/src/adminapi/apis/shared-api.ts +0 -136
- package/src/adminapi/apis/task-api.ts +25 -10
- package/src/adminapi/apis/vip-pool-api.ts +128 -0
- package/src/adminapi/models/backup-option.ts +6 -0
- package/src/adminapi/models/cluster-create.ts +6 -0
- package/src/adminapi/models/cluster-jar-package.ts +0 -6
- package/src/adminapi/models/component-item-create.ts +10 -1
- package/src/adminapi/models/dms-pagination.ts +36 -0
- package/src/adminapi/models/index.ts +11 -1
- package/src/adminapi/models/instance-template-attribute.ts +34 -0
- package/src/adminapi/models/instance-template-create-env-inner.ts +36 -0
- package/src/adminapi/models/instance-template-create.ts +69 -0
- package/src/adminapi/models/instance-template-env.ts +57 -0
- package/src/adminapi/models/instance-template-op.ts +32 -0
- package/src/adminapi/models/instance-template-replicas.ts +36 -0
- package/src/adminapi/models/instance-template-volume-expand.ts +39 -0
- package/src/adminapi/models/mode-component-instance-template.ts +57 -0
- package/src/adminapi/models/mode-component.ts +9 -0
- package/src/adminapi/models/ops-hscale.ts +10 -1
- package/src/adminapi/models/{ops-volume-expand-volumes-inner.ts → ops-volume-expand-volumes-items0.ts} +6 -6
- package/src/adminapi/models/ops-volume-expand.ts +13 -4
- package/src/adminapi/models/ops-vscale.ts +1 -1
- package/src/adminapi/models/show-data-request.ts +13 -1
- package/src/adminapi/models/task-retry-mode.ts +31 -0
- package/src/adminapi/models/task.ts +9 -0
- package/src/adminapi/models/vip-pool-create.ts +6 -0
- package/src/adminapi/models/vip-pool-update.ts +30 -0
- package/src/adminapi/models/vip-pool.ts +12 -0
- package/src/adminapi.yaml +334 -64
- package/src/openapi/.openapi-generator/FILES +10 -1
- package/src/openapi/apis/cluster-jar-api.ts +0 -136
- package/src/openapi/apis/shared-api.ts +0 -136
- package/src/openapi/models/backup-option.ts +6 -0
- package/src/openapi/models/cluster-create.ts +6 -0
- package/src/openapi/models/cluster-jar-package.ts +0 -6
- package/src/openapi/models/component-item-create.ts +10 -1
- package/src/openapi/models/dms-pagination.ts +36 -0
- package/src/openapi/models/index.ts +10 -1
- package/src/openapi/models/instance-template-attribute.ts +34 -0
- package/src/openapi/models/instance-template-create-env-inner.ts +36 -0
- package/src/openapi/models/instance-template-create.ts +69 -0
- package/src/openapi/models/instance-template-env.ts +57 -0
- package/src/openapi/models/instance-template-op.ts +32 -0
- package/src/openapi/models/instance-template-replicas.ts +36 -0
- package/src/openapi/models/instance-template-volume-expand.ts +39 -0
- package/src/openapi/models/mode-component-instance-template.ts +57 -0
- package/src/openapi/models/mode-component.ts +9 -0
- package/src/openapi/models/ops-hscale.ts +10 -1
- package/src/openapi/models/{ops-volume-expand-volumes-inner.ts → ops-volume-expand-volumes-items0.ts} +6 -6
- package/src/openapi/models/ops-volume-expand.ts +13 -4
- package/src/openapi/models/ops-vscale.ts +1 -1
- package/src/openapi/models/show-data-request.ts +13 -1
- package/src/openapi/models/task-retry-mode.ts +31 -0
- package/src/openapi/models/task.ts +9 -0
- package/src/openapi/models/vip-pool.ts +12 -0
- package/src/openapi.yaml +268 -63
- package/dist/adminapi/models/ops-volume-expand-volumes-inner.d.ts.map +0 -1
- package/dist/adminapi/models/ops-volume-expand-volumes-inner.js.map +0 -1
- package/dist/openapi/models/ops-volume-expand-volumes-inner.d.ts.map +0 -1
- package/dist/openapi/models/ops-volume-expand-volumes-inner.js.map +0 -1
|
@@ -41,59 +41,6 @@ import type { ClusterJarTask } from '../models';
|
|
|
41
41
|
*/
|
|
42
42
|
export const ClusterJarApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
43
43
|
return {
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @summary Archive a JAR while retaining published files and startup synchronization
|
|
47
|
-
* @param {string} engineName Doris or SelectDB engine of the target cluster.
|
|
48
|
-
* @param {string} orgName
|
|
49
|
-
* @param {string} clusterName
|
|
50
|
-
* @param {string} jarId
|
|
51
|
-
* @param {*} [options] Override http request option.
|
|
52
|
-
* @throws {RequiredError}
|
|
53
|
-
*/
|
|
54
|
-
archiveClusterJar: async (engineName: string, orgName: string, clusterName: string, jarId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
55
|
-
// verify required parameter 'engineName' is not null or undefined
|
|
56
|
-
assertParamExists('archiveClusterJar', 'engineName', engineName)
|
|
57
|
-
// verify required parameter 'orgName' is not null or undefined
|
|
58
|
-
assertParamExists('archiveClusterJar', 'orgName', orgName)
|
|
59
|
-
// verify required parameter 'clusterName' is not null or undefined
|
|
60
|
-
assertParamExists('archiveClusterJar', 'clusterName', clusterName)
|
|
61
|
-
// verify required parameter 'jarId' is not null or undefined
|
|
62
|
-
assertParamExists('archiveClusterJar', 'jarId', jarId)
|
|
63
|
-
const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/jars/{jarId}/archive`
|
|
64
|
-
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
|
|
65
|
-
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
66
|
-
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
67
|
-
.replace(`{${"jarId"}}`, encodeURIComponent(String(jarId)));
|
|
68
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
69
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
70
|
-
let baseOptions;
|
|
71
|
-
if (configuration) {
|
|
72
|
-
baseOptions = configuration.baseOptions;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
76
|
-
const localVarHeaderParameter = {} as any;
|
|
77
|
-
const localVarQueryParameter = {} as any;
|
|
78
|
-
|
|
79
|
-
// authentication BearerToken required
|
|
80
|
-
// http bearer authentication required
|
|
81
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
82
|
-
|
|
83
|
-
// authentication DigestAuth required
|
|
84
|
-
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
89
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
90
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
91
|
-
|
|
92
|
-
return {
|
|
93
|
-
url: toPathString(localVarUrlObj),
|
|
94
|
-
options: localVarRequestOptions,
|
|
95
|
-
};
|
|
96
|
-
},
|
|
97
44
|
/**
|
|
98
45
|
*
|
|
99
46
|
* @summary Delete an unpublished JAR version
|
|
@@ -500,22 +447,6 @@ export const ClusterJarApiAxiosParamCreator = function (configuration?: Configur
|
|
|
500
447
|
export const ClusterJarApiFp = function(configuration?: Configuration) {
|
|
501
448
|
const localVarAxiosParamCreator = ClusterJarApiAxiosParamCreator(configuration)
|
|
502
449
|
return {
|
|
503
|
-
/**
|
|
504
|
-
*
|
|
505
|
-
* @summary Archive a JAR while retaining published files and startup synchronization
|
|
506
|
-
* @param {string} engineName Doris or SelectDB engine of the target cluster.
|
|
507
|
-
* @param {string} orgName
|
|
508
|
-
* @param {string} clusterName
|
|
509
|
-
* @param {string} jarId
|
|
510
|
-
* @param {*} [options] Override http request option.
|
|
511
|
-
* @throws {RequiredError}
|
|
512
|
-
*/
|
|
513
|
-
async archiveClusterJar(engineName: string, orgName: string, clusterName: string, jarId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
514
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.archiveClusterJar(engineName, orgName, clusterName, jarId, options);
|
|
515
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
516
|
-
const localVarOperationServerBasePath = operationServerMap['ClusterJarApi.archiveClusterJar']?.[localVarOperationServerIndex]?.url;
|
|
517
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
518
|
-
},
|
|
519
450
|
/**
|
|
520
451
|
*
|
|
521
452
|
* @summary Delete an unpublished JAR version
|
|
@@ -640,16 +571,6 @@ export const ClusterJarApiFp = function(configuration?: Configuration) {
|
|
|
640
571
|
export const ClusterJarApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
641
572
|
const localVarFp = ClusterJarApiFp(configuration)
|
|
642
573
|
return {
|
|
643
|
-
/**
|
|
644
|
-
*
|
|
645
|
-
* @summary Archive a JAR while retaining published files and startup synchronization
|
|
646
|
-
* @param {ClusterJarApiArchiveClusterJarRequest} requestParameters Request parameters.
|
|
647
|
-
* @param {*} [options] Override http request option.
|
|
648
|
-
* @throws {RequiredError}
|
|
649
|
-
*/
|
|
650
|
-
archiveClusterJar(requestParameters: ClusterJarApiArchiveClusterJarRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
651
|
-
return localVarFp.archiveClusterJar(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.jarId, options).then((request) => request(axios, basePath));
|
|
652
|
-
},
|
|
653
574
|
/**
|
|
654
575
|
*
|
|
655
576
|
* @summary Delete an unpublished JAR version
|
|
@@ -729,16 +650,6 @@ export const ClusterJarApiFactory = function (configuration?: Configuration, bas
|
|
|
729
650
|
* @interface ClusterJarApi
|
|
730
651
|
*/
|
|
731
652
|
export interface ClusterJarApiInterface {
|
|
732
|
-
/**
|
|
733
|
-
*
|
|
734
|
-
* @summary Archive a JAR while retaining published files and startup synchronization
|
|
735
|
-
* @param {ClusterJarApiArchiveClusterJarRequest} requestParameters Request parameters.
|
|
736
|
-
* @param {*} [options] Override http request option.
|
|
737
|
-
* @throws {RequiredError}
|
|
738
|
-
* @memberof ClusterJarApiInterface
|
|
739
|
-
*/
|
|
740
|
-
archiveClusterJar(requestParameters: ClusterJarApiArchiveClusterJarRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
741
|
-
|
|
742
653
|
/**
|
|
743
654
|
*
|
|
744
655
|
* @summary Delete an unpublished JAR version
|
|
@@ -811,41 +722,6 @@ export interface ClusterJarApiInterface {
|
|
|
811
722
|
|
|
812
723
|
}
|
|
813
724
|
|
|
814
|
-
/**
|
|
815
|
-
* Request parameters for archiveClusterJar operation in ClusterJarApi.
|
|
816
|
-
* @export
|
|
817
|
-
* @interface ClusterJarApiArchiveClusterJarRequest
|
|
818
|
-
*/
|
|
819
|
-
export interface ClusterJarApiArchiveClusterJarRequest {
|
|
820
|
-
/**
|
|
821
|
-
* Doris or SelectDB engine of the target cluster.
|
|
822
|
-
* @type {string}
|
|
823
|
-
* @memberof ClusterJarApiArchiveClusterJar
|
|
824
|
-
*/
|
|
825
|
-
readonly engineName: string
|
|
826
|
-
|
|
827
|
-
/**
|
|
828
|
-
*
|
|
829
|
-
* @type {string}
|
|
830
|
-
* @memberof ClusterJarApiArchiveClusterJar
|
|
831
|
-
*/
|
|
832
|
-
readonly orgName: string
|
|
833
|
-
|
|
834
|
-
/**
|
|
835
|
-
*
|
|
836
|
-
* @type {string}
|
|
837
|
-
* @memberof ClusterJarApiArchiveClusterJar
|
|
838
|
-
*/
|
|
839
|
-
readonly clusterName: string
|
|
840
|
-
|
|
841
|
-
/**
|
|
842
|
-
*
|
|
843
|
-
* @type {string}
|
|
844
|
-
* @memberof ClusterJarApiArchiveClusterJar
|
|
845
|
-
*/
|
|
846
|
-
readonly jarId: string
|
|
847
|
-
}
|
|
848
|
-
|
|
849
725
|
/**
|
|
850
726
|
* Request parameters for deleteClusterJar operation in ClusterJarApi.
|
|
851
727
|
* @export
|
|
@@ -1112,18 +988,6 @@ export interface ClusterJarApiUploadClusterJarRequest {
|
|
|
1112
988
|
* @extends {BaseAPI}
|
|
1113
989
|
*/
|
|
1114
990
|
export class ClusterJarApi extends BaseAPI implements ClusterJarApiInterface {
|
|
1115
|
-
/**
|
|
1116
|
-
*
|
|
1117
|
-
* @summary Archive a JAR while retaining published files and startup synchronization
|
|
1118
|
-
* @param {ClusterJarApiArchiveClusterJarRequest} requestParameters Request parameters.
|
|
1119
|
-
* @param {*} [options] Override http request option.
|
|
1120
|
-
* @throws {RequiredError}
|
|
1121
|
-
* @memberof ClusterJarApi
|
|
1122
|
-
*/
|
|
1123
|
-
public archiveClusterJar(requestParameters: ClusterJarApiArchiveClusterJarRequest, options?: RawAxiosRequestConfig) {
|
|
1124
|
-
return ClusterJarApiFp(this.configuration).archiveClusterJar(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.jarId, options).then((request) => request(this.axios, this.basePath));
|
|
1125
|
-
}
|
|
1126
|
-
|
|
1127
991
|
/**
|
|
1128
992
|
*
|
|
1129
993
|
* @summary Delete an unpublished JAR version
|
|
@@ -805,59 +805,6 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
805
805
|
options: localVarRequestOptions,
|
|
806
806
|
};
|
|
807
807
|
},
|
|
808
|
-
/**
|
|
809
|
-
*
|
|
810
|
-
* @summary Archive a JAR while retaining published files and startup synchronization
|
|
811
|
-
* @param {string} engineName Doris or SelectDB engine of the target cluster.
|
|
812
|
-
* @param {string} orgName
|
|
813
|
-
* @param {string} clusterName
|
|
814
|
-
* @param {string} jarId
|
|
815
|
-
* @param {*} [options] Override http request option.
|
|
816
|
-
* @throws {RequiredError}
|
|
817
|
-
*/
|
|
818
|
-
archiveClusterJar: async (engineName: string, orgName: string, clusterName: string, jarId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
819
|
-
// verify required parameter 'engineName' is not null or undefined
|
|
820
|
-
assertParamExists('archiveClusterJar', 'engineName', engineName)
|
|
821
|
-
// verify required parameter 'orgName' is not null or undefined
|
|
822
|
-
assertParamExists('archiveClusterJar', 'orgName', orgName)
|
|
823
|
-
// verify required parameter 'clusterName' is not null or undefined
|
|
824
|
-
assertParamExists('archiveClusterJar', 'clusterName', clusterName)
|
|
825
|
-
// verify required parameter 'jarId' is not null or undefined
|
|
826
|
-
assertParamExists('archiveClusterJar', 'jarId', jarId)
|
|
827
|
-
const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/jars/{jarId}/archive`
|
|
828
|
-
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
|
|
829
|
-
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
830
|
-
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
831
|
-
.replace(`{${"jarId"}}`, encodeURIComponent(String(jarId)));
|
|
832
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
833
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
834
|
-
let baseOptions;
|
|
835
|
-
if (configuration) {
|
|
836
|
-
baseOptions = configuration.baseOptions;
|
|
837
|
-
}
|
|
838
|
-
|
|
839
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
840
|
-
const localVarHeaderParameter = {} as any;
|
|
841
|
-
const localVarQueryParameter = {} as any;
|
|
842
|
-
|
|
843
|
-
// authentication BearerToken required
|
|
844
|
-
// http bearer authentication required
|
|
845
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
846
|
-
|
|
847
|
-
// authentication DigestAuth required
|
|
848
|
-
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
853
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
854
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
855
|
-
|
|
856
|
-
return {
|
|
857
|
-
url: toPathString(localVarUrlObj),
|
|
858
|
-
options: localVarRequestOptions,
|
|
859
|
-
};
|
|
860
|
-
},
|
|
861
808
|
/**
|
|
862
809
|
* Batch add permissions to a role
|
|
863
810
|
* @summary Batch add permissions to a role
|
|
@@ -18025,22 +17972,6 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
18025
17972
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.alterParameter']?.[localVarOperationServerIndex]?.url;
|
|
18026
17973
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18027
17974
|
},
|
|
18028
|
-
/**
|
|
18029
|
-
*
|
|
18030
|
-
* @summary Archive a JAR while retaining published files and startup synchronization
|
|
18031
|
-
* @param {string} engineName Doris or SelectDB engine of the target cluster.
|
|
18032
|
-
* @param {string} orgName
|
|
18033
|
-
* @param {string} clusterName
|
|
18034
|
-
* @param {string} jarId
|
|
18035
|
-
* @param {*} [options] Override http request option.
|
|
18036
|
-
* @throws {RequiredError}
|
|
18037
|
-
*/
|
|
18038
|
-
async archiveClusterJar(engineName: string, orgName: string, clusterName: string, jarId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
18039
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.archiveClusterJar(engineName, orgName, clusterName, jarId, options);
|
|
18040
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
18041
|
-
const localVarOperationServerBasePath = operationServerMap['SharedApi.archiveClusterJar']?.[localVarOperationServerIndex]?.url;
|
|
18042
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18043
|
-
},
|
|
18044
17975
|
/**
|
|
18045
17976
|
* Batch add permissions to a role
|
|
18046
17977
|
* @summary Batch add permissions to a role
|
|
@@ -23041,16 +22972,6 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
23041
22972
|
alterParameter(requestParameters: SharedApiAlterParameterRequest, options?: RawAxiosRequestConfig): AxiosPromise<string> {
|
|
23042
22973
|
return localVarFp.alterParameter(requestParameters.orgName, requestParameters.clusterName, requestParameters.tenantId, requestParameters.dmsObAlterParameter, options).then((request) => request(axios, basePath));
|
|
23043
22974
|
},
|
|
23044
|
-
/**
|
|
23045
|
-
*
|
|
23046
|
-
* @summary Archive a JAR while retaining published files and startup synchronization
|
|
23047
|
-
* @param {SharedApiArchiveClusterJarRequest} requestParameters Request parameters.
|
|
23048
|
-
* @param {*} [options] Override http request option.
|
|
23049
|
-
* @throws {RequiredError}
|
|
23050
|
-
*/
|
|
23051
|
-
archiveClusterJar(requestParameters: SharedApiArchiveClusterJarRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
23052
|
-
return localVarFp.archiveClusterJar(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.jarId, options).then((request) => request(axios, basePath));
|
|
23053
|
-
},
|
|
23054
22975
|
/**
|
|
23055
22976
|
* Batch add permissions to a role
|
|
23056
22977
|
* @summary Batch add permissions to a role
|
|
@@ -26216,16 +26137,6 @@ export interface SharedApiInterface {
|
|
|
26216
26137
|
*/
|
|
26217
26138
|
alterParameter(requestParameters: SharedApiAlterParameterRequest, options?: RawAxiosRequestConfig): AxiosPromise<string>;
|
|
26218
26139
|
|
|
26219
|
-
/**
|
|
26220
|
-
*
|
|
26221
|
-
* @summary Archive a JAR while retaining published files and startup synchronization
|
|
26222
|
-
* @param {SharedApiArchiveClusterJarRequest} requestParameters Request parameters.
|
|
26223
|
-
* @param {*} [options] Override http request option.
|
|
26224
|
-
* @throws {RequiredError}
|
|
26225
|
-
* @memberof SharedApiInterface
|
|
26226
|
-
*/
|
|
26227
|
-
archiveClusterJar(requestParameters: SharedApiArchiveClusterJarRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
26228
|
-
|
|
26229
26140
|
/**
|
|
26230
26141
|
* Batch add permissions to a role
|
|
26231
26142
|
* @summary Batch add permissions to a role
|
|
@@ -29666,41 +29577,6 @@ export interface SharedApiAlterParameterRequest {
|
|
|
29666
29577
|
readonly dmsObAlterParameter: DmsObAlterParameter
|
|
29667
29578
|
}
|
|
29668
29579
|
|
|
29669
|
-
/**
|
|
29670
|
-
* Request parameters for archiveClusterJar operation in SharedApi.
|
|
29671
|
-
* @export
|
|
29672
|
-
* @interface SharedApiArchiveClusterJarRequest
|
|
29673
|
-
*/
|
|
29674
|
-
export interface SharedApiArchiveClusterJarRequest {
|
|
29675
|
-
/**
|
|
29676
|
-
* Doris or SelectDB engine of the target cluster.
|
|
29677
|
-
* @type {string}
|
|
29678
|
-
* @memberof SharedApiArchiveClusterJar
|
|
29679
|
-
*/
|
|
29680
|
-
readonly engineName: string
|
|
29681
|
-
|
|
29682
|
-
/**
|
|
29683
|
-
*
|
|
29684
|
-
* @type {string}
|
|
29685
|
-
* @memberof SharedApiArchiveClusterJar
|
|
29686
|
-
*/
|
|
29687
|
-
readonly orgName: string
|
|
29688
|
-
|
|
29689
|
-
/**
|
|
29690
|
-
*
|
|
29691
|
-
* @type {string}
|
|
29692
|
-
* @memberof SharedApiArchiveClusterJar
|
|
29693
|
-
*/
|
|
29694
|
-
readonly clusterName: string
|
|
29695
|
-
|
|
29696
|
-
/**
|
|
29697
|
-
*
|
|
29698
|
-
* @type {string}
|
|
29699
|
-
* @memberof SharedApiArchiveClusterJar
|
|
29700
|
-
*/
|
|
29701
|
-
readonly jarId: string
|
|
29702
|
-
}
|
|
29703
|
-
|
|
29704
29580
|
/**
|
|
29705
29581
|
* Request parameters for batchAddRolePermissions operation in SharedApi.
|
|
29706
29582
|
* @export
|
|
@@ -40354,18 +40230,6 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
40354
40230
|
return SharedApiFp(this.configuration).alterParameter(requestParameters.orgName, requestParameters.clusterName, requestParameters.tenantId, requestParameters.dmsObAlterParameter, options).then((request) => request(this.axios, this.basePath));
|
|
40355
40231
|
}
|
|
40356
40232
|
|
|
40357
|
-
/**
|
|
40358
|
-
*
|
|
40359
|
-
* @summary Archive a JAR while retaining published files and startup synchronization
|
|
40360
|
-
* @param {SharedApiArchiveClusterJarRequest} requestParameters Request parameters.
|
|
40361
|
-
* @param {*} [options] Override http request option.
|
|
40362
|
-
* @throws {RequiredError}
|
|
40363
|
-
* @memberof SharedApi
|
|
40364
|
-
*/
|
|
40365
|
-
public archiveClusterJar(requestParameters: SharedApiArchiveClusterJarRequest, options?: RawAxiosRequestConfig) {
|
|
40366
|
-
return SharedApiFp(this.configuration).archiveClusterJar(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.jarId, options).then((request) => request(this.axios, this.basePath));
|
|
40367
|
-
}
|
|
40368
|
-
|
|
40369
40233
|
/**
|
|
40370
40234
|
* Batch add permissions to a role
|
|
40371
40235
|
* @summary Batch add permissions to a role
|
|
@@ -35,6 +35,12 @@ import type { SelectiveMethodOption } from './selective-method-option';
|
|
|
35
35
|
* @interface BackupOption
|
|
36
36
|
*/
|
|
37
37
|
export interface BackupOption {
|
|
38
|
+
/**
|
|
39
|
+
* Engine modes that support backup and restore. Omitted or null means all modes (legacy behavior); an empty array disables backup and restore for all modes.
|
|
40
|
+
* @type {Array<string>}
|
|
41
|
+
* @memberof BackupOption
|
|
42
|
+
*/
|
|
43
|
+
'modes'?: Array<string>;
|
|
38
44
|
/**
|
|
39
45
|
*
|
|
40
46
|
* @type {string}
|
|
@@ -191,6 +191,12 @@ export interface ClusterCreate {
|
|
|
191
191
|
* @memberof ClusterCreate
|
|
192
192
|
*/
|
|
193
193
|
'networkMode'?: NetworkMode;
|
|
194
|
+
/**
|
|
195
|
+
* Name of the VIP Pool (VIP Pool poolName) used as the MetalLB address pool for LoadBalancer services. Only effective when networkMode is LoadBalancer.
|
|
196
|
+
* @type {string}
|
|
197
|
+
* @memberof ClusterCreate
|
|
198
|
+
*/
|
|
199
|
+
'vipPoolName'?: string;
|
|
194
200
|
/**
|
|
195
201
|
*
|
|
196
202
|
* @type {Array<ServiceRef>}
|
|
@@ -19,6 +19,9 @@ import type { ComponentNetwork } from './component-network';
|
|
|
19
19
|
// May contain unused imports in some cases
|
|
20
20
|
// @ts-ignore
|
|
21
21
|
import type { ComponentVolumeItem } from './component-volume-item';
|
|
22
|
+
// May contain unused imports in some cases
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import type { InstanceTemplateCreate } from './instance-template-create';
|
|
22
25
|
|
|
23
26
|
/**
|
|
24
27
|
* ComponentItem is the information of a component
|
|
@@ -39,11 +42,17 @@ export interface ComponentItemCreate {
|
|
|
39
42
|
*/
|
|
40
43
|
'compNum'?: number;
|
|
41
44
|
/**
|
|
42
|
-
* The number of replicas, for standalone mode, the replicas is 1, for raftGroup mode, the default replicas is 3.
|
|
45
|
+
* The number of replicas, for standalone mode, the replicas is 1, for raftGroup mode, the default replicas is 3. If the rendered component has instance templates, this must equal the sum of all template replica counts in the complete instanceTemplates list.
|
|
43
46
|
* @type {number}
|
|
44
47
|
* @memberof ComponentItemCreate
|
|
45
48
|
*/
|
|
46
49
|
'replicas'?: number;
|
|
50
|
+
/**
|
|
51
|
+
* Per-template replicas and optional overlays (env, annotations, labels). Required when the chart renders instance templates. Names must exactly match all chart-rendered instances, without missing, extra, or duplicate names; order does not matter. Component replicas must equal the sum of all requested instance template replica counts.
|
|
52
|
+
* @type {Array<InstanceTemplateCreate>}
|
|
53
|
+
* @memberof ComponentItemCreate
|
|
54
|
+
*/
|
|
55
|
+
'instanceTemplates'?: Array<InstanceTemplateCreate>;
|
|
47
56
|
/**
|
|
48
57
|
* Whether to skip resource constraint validation when creating cluster
|
|
49
58
|
* @type {boolean}
|
|
@@ -20,6 +20,42 @@
|
|
|
20
20
|
* @interface DmsPagination
|
|
21
21
|
*/
|
|
22
22
|
export interface DmsPagination {
|
|
23
|
+
/**
|
|
24
|
+
* Zero-based offset of this showData page.
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof DmsPagination
|
|
27
|
+
*/
|
|
28
|
+
'offset'?: number | null;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof DmsPagination
|
|
33
|
+
*/
|
|
34
|
+
'limit'?: number | null;
|
|
35
|
+
/**
|
|
36
|
+
* Whether another showData page exists; determined by reading one extra row.
|
|
37
|
+
* @type {boolean}
|
|
38
|
+
* @memberof DmsPagination
|
|
39
|
+
*/
|
|
40
|
+
'hasMore'?: boolean | null;
|
|
41
|
+
/**
|
|
42
|
+
* Present only when hasMore is true.
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof DmsPagination
|
|
45
|
+
*/
|
|
46
|
+
'nextOffset'?: number | null;
|
|
47
|
+
/**
|
|
48
|
+
* Exact count returned only by countOnly requests (including zero).
|
|
49
|
+
* @type {number}
|
|
50
|
+
* @memberof DmsPagination
|
|
51
|
+
*/
|
|
52
|
+
'totalRows'?: number | null;
|
|
53
|
+
/**
|
|
54
|
+
* Primary-key columns used for ordering; empty means ordering is not guaranteed. Pages are not a fixed snapshot.
|
|
55
|
+
* @type {Array<string>}
|
|
56
|
+
* @memberof DmsPagination
|
|
57
|
+
*/
|
|
58
|
+
'orderColumns'?: Array<string>;
|
|
23
59
|
/**
|
|
24
60
|
*
|
|
25
61
|
* @type {number}
|
|
@@ -511,6 +511,13 @@ export * from './instance-metrics';
|
|
|
511
511
|
export * from './instance-metrics-list';
|
|
512
512
|
export * from './instance-status';
|
|
513
513
|
export * from './instance-storage-item';
|
|
514
|
+
export * from './instance-template-attribute';
|
|
515
|
+
export * from './instance-template-create';
|
|
516
|
+
export * from './instance-template-create-env-inner';
|
|
517
|
+
export * from './instance-template-env';
|
|
518
|
+
export * from './instance-template-op';
|
|
519
|
+
export * from './instance-template-replicas';
|
|
520
|
+
export * from './instance-template-volume-expand';
|
|
514
521
|
export * from './integer-option';
|
|
515
522
|
export * from './international-desc';
|
|
516
523
|
export * from './io-quantity';
|
|
@@ -573,6 +580,7 @@ export * from './milvus-role-list';
|
|
|
573
580
|
export * from './milvus-role-request';
|
|
574
581
|
export * from './mode-compatible-kubeblocks-version';
|
|
575
582
|
export * from './mode-component';
|
|
583
|
+
export * from './mode-component-instance-template';
|
|
576
584
|
export * from './mode-object-storage';
|
|
577
585
|
export * from './mode-object-storage-additional-helm-value-path';
|
|
578
586
|
export * from './mode-object-storage-service-ref';
|
|
@@ -672,7 +680,7 @@ export * from './ops-stop';
|
|
|
672
680
|
export * from './ops-upgrade';
|
|
673
681
|
export * from './ops-vscale';
|
|
674
682
|
export * from './ops-volume-expand';
|
|
675
|
-
export * from './ops-volume-expand-volumes-
|
|
683
|
+
export * from './ops-volume-expand-volumes-items0';
|
|
676
684
|
export * from './org';
|
|
677
685
|
export * from './org-aggregation-group-type';
|
|
678
686
|
export * from './org-create';
|
|
@@ -878,6 +886,7 @@ export * from './task';
|
|
|
878
886
|
export * from './task-failure-policy';
|
|
879
887
|
export * from './task-list';
|
|
880
888
|
export * from './task-list-item';
|
|
889
|
+
export * from './task-retry-mode';
|
|
881
890
|
export * from './task-schedule';
|
|
882
891
|
export * from './task-schedule-type';
|
|
883
892
|
export * from './task-status';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KubeBlocks Cloud API
|
|
5
|
+
* 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.
|
|
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
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Heterogeneous attribute the frontend may render on an instance template at create.
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
export const InstanceTemplateAttribute = {
|
|
24
|
+
env: 'env',
|
|
25
|
+
annotations: 'annotations',
|
|
26
|
+
labels: 'labels',
|
|
27
|
+
availabilityZone: 'availabilityZone',
|
|
28
|
+
storageClass: 'storageClass'
|
|
29
|
+
} as const;
|
|
30
|
+
|
|
31
|
+
export type InstanceTemplateAttribute = typeof InstanceTemplateAttribute[keyof typeof InstanceTemplateAttribute];
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KubeBlocks Cloud API
|
|
5
|
+
* 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.
|
|
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
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface InstanceTemplateCreateEnvInner
|
|
21
|
+
*/
|
|
22
|
+
export interface InstanceTemplateCreateEnvInner {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof InstanceTemplateCreateEnvInner
|
|
27
|
+
*/
|
|
28
|
+
'name': string;
|
|
29
|
+
/**
|
|
30
|
+
* Plain string value only. valueFrom is not supported.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof InstanceTemplateCreateEnvInner
|
|
33
|
+
*/
|
|
34
|
+
'value': string;
|
|
35
|
+
}
|
|
36
|
+
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KubeBlocks Cloud API
|
|
5
|
+
* 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.
|
|
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 { InstanceTemplateCreateEnvInner } from './instance-template-create-env-inner';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Create assignment for one instance template. name and replicas are required. env, annotations, labels, availabilityZone, and storageClass are optional overlays onto the chart-rendered instance. The request must include every chart-rendered instance template exactly once. A template with an explicit zone uses single-zone scheduling: hostname anti-affinity follows the scheduling policy, while explicit rules and additional topology keys are preserved. Component scheduling remains unchanged; templates without a zone inherit it, including its zone anti-affinity constraints. Chart instance scheduling policies are cleared; an omitted or empty availabilityZone leaves the instance policy unset to inherit the component policy.
|
|
22
|
+
* @export
|
|
23
|
+
* @interface InstanceTemplateCreate
|
|
24
|
+
*/
|
|
25
|
+
export interface InstanceTemplateCreate {
|
|
26
|
+
/**
|
|
27
|
+
* Instance template name; must match a chart-rendered instance.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof InstanceTemplateCreate
|
|
30
|
+
*/
|
|
31
|
+
'name': string;
|
|
32
|
+
/**
|
|
33
|
+
* Replica count for this instance template.
|
|
34
|
+
* @type {number}
|
|
35
|
+
* @memberof InstanceTemplateCreate
|
|
36
|
+
*/
|
|
37
|
+
'replicas': number;
|
|
38
|
+
/**
|
|
39
|
+
* Availability zone for this template (topology.kubernetes.io/zone); omitted or empty inherits the component zone selection. Must be enabled in the environment. If the request explicitly supplies a non-empty cluster availabilityZones list, the template zone must also belong to that list.
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof InstanceTemplateCreate
|
|
42
|
+
*/
|
|
43
|
+
'availabilityZone'?: string;
|
|
44
|
+
/**
|
|
45
|
+
* StorageClass name for all persistent volumes in this template. Copied from component volumeClaimTemplates, preserving volume sizes and other settings while overriding storageClassName. Chart instance volume templates are cleared; omitted or empty leaves instance volumeClaimTemplates unset.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof InstanceTemplateCreate
|
|
48
|
+
*/
|
|
49
|
+
'storageClass'?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Simple env vars (name and value only) merged into this template. valueFrom is not supported; overlaying a name clears any chart valueFrom.
|
|
52
|
+
* @type {Array<InstanceTemplateCreateEnvInner>}
|
|
53
|
+
* @memberof InstanceTemplateCreate
|
|
54
|
+
*/
|
|
55
|
+
'env'?: Array<InstanceTemplateCreateEnvInner>;
|
|
56
|
+
/**
|
|
57
|
+
* Annotation map (string key to string value). Merged into this template; same-name keys overwritten. Chart keys are not deleted.
|
|
58
|
+
* @type {{ [key: string]: string; }}
|
|
59
|
+
* @memberof InstanceTemplateCreate
|
|
60
|
+
*/
|
|
61
|
+
'annotations'?: { [key: string]: string; };
|
|
62
|
+
/**
|
|
63
|
+
* Label map (string key to string value). Merged into this template; same-name keys overwritten. Chart keys are not deleted.
|
|
64
|
+
* @type {{ [key: string]: string; }}
|
|
65
|
+
* @memberof InstanceTemplateCreate
|
|
66
|
+
*/
|
|
67
|
+
'labels'?: { [key: string]: string; };
|
|
68
|
+
}
|
|
69
|
+
|