kb-cloud-client-typescript 2.4.0-alpha.65 → 2.4.0-alpha.67
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/environment-api.d.ts +95 -0
- package/dist/adminapi/apis/environment-api.d.ts.map +1 -1
- package/dist/adminapi/apis/environment-api.js +93 -0
- package/dist/adminapi/apis/environment-api.js.map +1 -1
- package/dist/adminapi/apis/parameter-template-api.d.ts +18 -10
- package/dist/adminapi/apis/parameter-template-api.d.ts.map +1 -1
- package/dist/adminapi/apis/parameter-template-api.js +16 -11
- package/dist/adminapi/apis/parameter-template-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/cluster-create.d.ts +6 -0
- package/dist/adminapi/models/cluster-create.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/engine-option-history.d.ts +5 -4
- package/dist/adminapi/models/engine-option-history.d.ts.map +1 -1
- package/dist/adminapi/models/index.d.ts +8 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +8 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/instance-template-attribute.d.ts +23 -0
- package/dist/adminapi/models/instance-template-attribute.d.ts.map +1 -0
- package/dist/adminapi/models/instance-template-attribute.js +27 -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 +54 -0
- package/dist/adminapi/models/instance-template-create.d.ts.map +1 -0
- package/dist/adminapi/models/instance-template-create.js +16 -0
- 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 +22 -0
- package/dist/adminapi/models/instance-template-op.d.ts.map +1 -0
- package/dist/adminapi/models/instance-template-op.js +26 -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/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-vscale.d.ts +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/models/cluster-create.d.ts +6 -0
- package/dist/openapi/models/cluster-create.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/index.d.ts +7 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +7 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/dist/openapi/models/instance-template-attribute.d.ts +23 -0
- package/dist/openapi/models/instance-template-attribute.d.ts.map +1 -0
- package/dist/openapi/models/instance-template-attribute.js +27 -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 +54 -0
- package/dist/openapi/models/instance-template-create.d.ts.map +1 -0
- package/dist/openapi/models/instance-template-create.js +16 -0
- 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 +22 -0
- package/dist/openapi/models/instance-template-op.d.ts.map +1 -0
- package/dist/openapi/models/instance-template-op.js +26 -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/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-vscale.d.ts +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 +8 -0
- package/src/adminapi/apis/environment-api.ts +155 -0
- package/src/adminapi/apis/parameter-template-api.ts +26 -13
- package/src/adminapi/apis/vip-pool-api.ts +128 -0
- package/src/adminapi/models/cluster-create.ts +6 -0
- package/src/adminapi/models/component-item-create.ts +10 -1
- package/src/adminapi/models/engine-option-history.ts +3 -6
- package/src/adminapi/models/index.ts +8 -0
- package/src/adminapi/models/instance-template-attribute.ts +32 -0
- package/src/adminapi/models/instance-template-create-env-inner.ts +36 -0
- package/src/adminapi/models/instance-template-create.ts +57 -0
- package/src/adminapi/models/instance-template-env.ts +57 -0
- package/src/adminapi/models/instance-template-op.ts +31 -0
- package/src/adminapi/models/instance-template-replicas.ts +36 -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-vscale.ts +1 -1
- 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 +369 -69
- package/src/internalapi.yaml +2 -4
- package/src/openapi/.openapi-generator/FILES +7 -0
- package/src/openapi/models/cluster-create.ts +6 -0
- package/src/openapi/models/component-item-create.ts +10 -1
- package/src/openapi/models/index.ts +7 -0
- package/src/openapi/models/instance-template-attribute.ts +32 -0
- package/src/openapi/models/instance-template-create-env-inner.ts +36 -0
- package/src/openapi/models/instance-template-create.ts +57 -0
- package/src/openapi/models/instance-template-env.ts +57 -0
- package/src/openapi/models/instance-template-op.ts +31 -0
- package/src/openapi/models/instance-template-replicas.ts +36 -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-vscale.ts +1 -1
- package/src/openapi/models/vip-pool.ts +12 -0
- package/src/openapi.yaml +240 -62
|
@@ -1039,6 +1039,70 @@ export const EnvironmentApiAxiosParamCreator = function (configuration?: Configu
|
|
|
1039
1039
|
|
|
1040
1040
|
|
|
1041
1041
|
|
|
1042
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1043
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1044
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1045
|
+
|
|
1046
|
+
return {
|
|
1047
|
+
url: toPathString(localVarUrlObj),
|
|
1048
|
+
options: localVarRequestOptions,
|
|
1049
|
+
};
|
|
1050
|
+
},
|
|
1051
|
+
/**
|
|
1052
|
+
* Returns one named Kubernetes object, excluding metadata.managedFields. The code allowlist currently permits only apiVersion v1 with kind PersistentVolumeClaim; other valid resource types return 403 before Kubernetes access. Requires Admin environment read permission. Does not support lists, subresources or writes.
|
|
1053
|
+
* @summary Get a live Kubernetes resource
|
|
1054
|
+
* @param {string} environmentName
|
|
1055
|
+
* @param {string} resourceName
|
|
1056
|
+
* @param {string} apiVersion Kubernetes API version. Currently only v1 with kind PersistentVolumeClaim is allowed.
|
|
1057
|
+
* @param {string} kind Kubernetes kind. Currently only PersistentVolumeClaim with apiVersion v1 is allowed.
|
|
1058
|
+
* @param {string} [namespace] Required for namespaced kinds; must be omitted for cluster-scoped kinds.
|
|
1059
|
+
* @param {*} [options] Override http request option.
|
|
1060
|
+
* @throws {RequiredError}
|
|
1061
|
+
*/
|
|
1062
|
+
getEnvironmentResource: async (environmentName: string, resourceName: string, apiVersion: string, kind: string, namespace?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1063
|
+
// verify required parameter 'environmentName' is not null or undefined
|
|
1064
|
+
assertParamExists('getEnvironmentResource', 'environmentName', environmentName)
|
|
1065
|
+
// verify required parameter 'resourceName' is not null or undefined
|
|
1066
|
+
assertParamExists('getEnvironmentResource', 'resourceName', resourceName)
|
|
1067
|
+
// verify required parameter 'apiVersion' is not null or undefined
|
|
1068
|
+
assertParamExists('getEnvironmentResource', 'apiVersion', apiVersion)
|
|
1069
|
+
// verify required parameter 'kind' is not null or undefined
|
|
1070
|
+
assertParamExists('getEnvironmentResource', 'kind', kind)
|
|
1071
|
+
const localVarPath = `/admin/v1/environments/{environmentName}/resources/{resourceName}`
|
|
1072
|
+
.replace(`{${"environmentName"}}`, encodeURIComponent(String(environmentName)))
|
|
1073
|
+
.replace(`{${"resourceName"}}`, encodeURIComponent(String(resourceName)));
|
|
1074
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1075
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1076
|
+
let baseOptions;
|
|
1077
|
+
if (configuration) {
|
|
1078
|
+
baseOptions = configuration.baseOptions;
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1082
|
+
const localVarHeaderParameter = {} as any;
|
|
1083
|
+
const localVarQueryParameter = {} as any;
|
|
1084
|
+
|
|
1085
|
+
// authentication BearerToken required
|
|
1086
|
+
// http bearer authentication required
|
|
1087
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1088
|
+
|
|
1089
|
+
// authentication DigestAuth required
|
|
1090
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
1091
|
+
|
|
1092
|
+
if (apiVersion !== undefined) {
|
|
1093
|
+
localVarQueryParameter['apiVersion'] = apiVersion;
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
if (kind !== undefined) {
|
|
1097
|
+
localVarQueryParameter['kind'] = kind;
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
if (namespace !== undefined) {
|
|
1101
|
+
localVarQueryParameter['namespace'] = namespace;
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
|
|
1105
|
+
|
|
1042
1106
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1043
1107
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1044
1108
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -2606,6 +2670,23 @@ export const EnvironmentApiFp = function(configuration?: Configuration) {
|
|
|
2606
2670
|
const localVarOperationServerBasePath = operationServerMap['EnvironmentApi.getEnvironmentProvisioningProgress']?.[localVarOperationServerIndex]?.url;
|
|
2607
2671
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2608
2672
|
},
|
|
2673
|
+
/**
|
|
2674
|
+
* Returns one named Kubernetes object, excluding metadata.managedFields. The code allowlist currently permits only apiVersion v1 with kind PersistentVolumeClaim; other valid resource types return 403 before Kubernetes access. Requires Admin environment read permission. Does not support lists, subresources or writes.
|
|
2675
|
+
* @summary Get a live Kubernetes resource
|
|
2676
|
+
* @param {string} environmentName
|
|
2677
|
+
* @param {string} resourceName
|
|
2678
|
+
* @param {string} apiVersion Kubernetes API version. Currently only v1 with kind PersistentVolumeClaim is allowed.
|
|
2679
|
+
* @param {string} kind Kubernetes kind. Currently only PersistentVolumeClaim with apiVersion v1 is allowed.
|
|
2680
|
+
* @param {string} [namespace] Required for namespaced kinds; must be omitted for cluster-scoped kinds.
|
|
2681
|
+
* @param {*} [options] Override http request option.
|
|
2682
|
+
* @throws {RequiredError}
|
|
2683
|
+
*/
|
|
2684
|
+
async getEnvironmentResource(environmentName: string, resourceName: string, apiVersion: string, kind: string, namespace?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: any; }>> {
|
|
2685
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getEnvironmentResource(environmentName, resourceName, apiVersion, kind, namespace, options);
|
|
2686
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2687
|
+
const localVarOperationServerBasePath = operationServerMap['EnvironmentApi.getEnvironmentResource']?.[localVarOperationServerIndex]?.url;
|
|
2688
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2689
|
+
},
|
|
2609
2690
|
/**
|
|
2610
2691
|
*
|
|
2611
2692
|
* @summary Get environment status
|
|
@@ -3204,6 +3285,16 @@ export const EnvironmentApiFactory = function (configuration?: Configuration, ba
|
|
|
3204
3285
|
getEnvironmentProvisioningProgress(requestParameters: EnvironmentApiGetEnvironmentProvisioningProgressRequest, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: any; }> {
|
|
3205
3286
|
return localVarFp.getEnvironmentProvisioningProgress(requestParameters.environmentName, options).then((request) => request(axios, basePath));
|
|
3206
3287
|
},
|
|
3288
|
+
/**
|
|
3289
|
+
* Returns one named Kubernetes object, excluding metadata.managedFields. The code allowlist currently permits only apiVersion v1 with kind PersistentVolumeClaim; other valid resource types return 403 before Kubernetes access. Requires Admin environment read permission. Does not support lists, subresources or writes.
|
|
3290
|
+
* @summary Get a live Kubernetes resource
|
|
3291
|
+
* @param {EnvironmentApiGetEnvironmentResourceRequest} requestParameters Request parameters.
|
|
3292
|
+
* @param {*} [options] Override http request option.
|
|
3293
|
+
* @throws {RequiredError}
|
|
3294
|
+
*/
|
|
3295
|
+
getEnvironmentResource(requestParameters: EnvironmentApiGetEnvironmentResourceRequest, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: any; }> {
|
|
3296
|
+
return localVarFp.getEnvironmentResource(requestParameters.environmentName, requestParameters.resourceName, requestParameters.apiVersion, requestParameters.kind, requestParameters.namespace, options).then((request) => request(axios, basePath));
|
|
3297
|
+
},
|
|
3207
3298
|
/**
|
|
3208
3299
|
*
|
|
3209
3300
|
* @summary Get environment status
|
|
@@ -3691,6 +3782,16 @@ export interface EnvironmentApiInterface {
|
|
|
3691
3782
|
*/
|
|
3692
3783
|
getEnvironmentProvisioningProgress(requestParameters: EnvironmentApiGetEnvironmentProvisioningProgressRequest, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: any; }>;
|
|
3693
3784
|
|
|
3785
|
+
/**
|
|
3786
|
+
* Returns one named Kubernetes object, excluding metadata.managedFields. The code allowlist currently permits only apiVersion v1 with kind PersistentVolumeClaim; other valid resource types return 403 before Kubernetes access. Requires Admin environment read permission. Does not support lists, subresources or writes.
|
|
3787
|
+
* @summary Get a live Kubernetes resource
|
|
3788
|
+
* @param {EnvironmentApiGetEnvironmentResourceRequest} requestParameters Request parameters.
|
|
3789
|
+
* @param {*} [options] Override http request option.
|
|
3790
|
+
* @throws {RequiredError}
|
|
3791
|
+
* @memberof EnvironmentApiInterface
|
|
3792
|
+
*/
|
|
3793
|
+
getEnvironmentResource(requestParameters: EnvironmentApiGetEnvironmentResourceRequest, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: any; }>;
|
|
3794
|
+
|
|
3694
3795
|
/**
|
|
3695
3796
|
*
|
|
3696
3797
|
* @summary Get environment status
|
|
@@ -4388,6 +4489,48 @@ export interface EnvironmentApiGetEnvironmentProvisioningProgressRequest {
|
|
|
4388
4489
|
readonly environmentName: string
|
|
4389
4490
|
}
|
|
4390
4491
|
|
|
4492
|
+
/**
|
|
4493
|
+
* Request parameters for getEnvironmentResource operation in EnvironmentApi.
|
|
4494
|
+
* @export
|
|
4495
|
+
* @interface EnvironmentApiGetEnvironmentResourceRequest
|
|
4496
|
+
*/
|
|
4497
|
+
export interface EnvironmentApiGetEnvironmentResourceRequest {
|
|
4498
|
+
/**
|
|
4499
|
+
*
|
|
4500
|
+
* @type {string}
|
|
4501
|
+
* @memberof EnvironmentApiGetEnvironmentResource
|
|
4502
|
+
*/
|
|
4503
|
+
readonly environmentName: string
|
|
4504
|
+
|
|
4505
|
+
/**
|
|
4506
|
+
*
|
|
4507
|
+
* @type {string}
|
|
4508
|
+
* @memberof EnvironmentApiGetEnvironmentResource
|
|
4509
|
+
*/
|
|
4510
|
+
readonly resourceName: string
|
|
4511
|
+
|
|
4512
|
+
/**
|
|
4513
|
+
* Kubernetes API version. Currently only v1 with kind PersistentVolumeClaim is allowed.
|
|
4514
|
+
* @type {string}
|
|
4515
|
+
* @memberof EnvironmentApiGetEnvironmentResource
|
|
4516
|
+
*/
|
|
4517
|
+
readonly apiVersion: string
|
|
4518
|
+
|
|
4519
|
+
/**
|
|
4520
|
+
* Kubernetes kind. Currently only PersistentVolumeClaim with apiVersion v1 is allowed.
|
|
4521
|
+
* @type {string}
|
|
4522
|
+
* @memberof EnvironmentApiGetEnvironmentResource
|
|
4523
|
+
*/
|
|
4524
|
+
readonly kind: string
|
|
4525
|
+
|
|
4526
|
+
/**
|
|
4527
|
+
* Required for namespaced kinds; must be omitted for cluster-scoped kinds.
|
|
4528
|
+
* @type {string}
|
|
4529
|
+
* @memberof EnvironmentApiGetEnvironmentResource
|
|
4530
|
+
*/
|
|
4531
|
+
readonly namespace?: string
|
|
4532
|
+
}
|
|
4533
|
+
|
|
4391
4534
|
/**
|
|
4392
4535
|
* Request parameters for getEnvironmentStatus operation in EnvironmentApi.
|
|
4393
4536
|
* @export
|
|
@@ -5200,6 +5343,18 @@ export class EnvironmentApi extends BaseAPI implements EnvironmentApiInterface {
|
|
|
5200
5343
|
return EnvironmentApiFp(this.configuration).getEnvironmentProvisioningProgress(requestParameters.environmentName, options).then((request) => request(this.axios, this.basePath));
|
|
5201
5344
|
}
|
|
5202
5345
|
|
|
5346
|
+
/**
|
|
5347
|
+
* Returns one named Kubernetes object, excluding metadata.managedFields. The code allowlist currently permits only apiVersion v1 with kind PersistentVolumeClaim; other valid resource types return 403 before Kubernetes access. Requires Admin environment read permission. Does not support lists, subresources or writes.
|
|
5348
|
+
* @summary Get a live Kubernetes resource
|
|
5349
|
+
* @param {EnvironmentApiGetEnvironmentResourceRequest} requestParameters Request parameters.
|
|
5350
|
+
* @param {*} [options] Override http request option.
|
|
5351
|
+
* @throws {RequiredError}
|
|
5352
|
+
* @memberof EnvironmentApi
|
|
5353
|
+
*/
|
|
5354
|
+
public getEnvironmentResource(requestParameters: EnvironmentApiGetEnvironmentResourceRequest, options?: RawAxiosRequestConfig) {
|
|
5355
|
+
return EnvironmentApiFp(this.configuration).getEnvironmentResource(requestParameters.environmentName, requestParameters.resourceName, requestParameters.apiVersion, requestParameters.kind, requestParameters.namespace, options).then((request) => request(this.axios, this.basePath));
|
|
5356
|
+
}
|
|
5357
|
+
|
|
5203
5358
|
/**
|
|
5204
5359
|
*
|
|
5205
5360
|
* @summary Get environment status
|
|
@@ -50,14 +50,15 @@ import type { ParameterTemplatePartition } from '../models';
|
|
|
50
50
|
export const ParameterTemplateApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
51
51
|
return {
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
53
|
+
* Create a parameter template in the target organization from an existing template. To copy a custom template from another organization, specify oriOrgName and provide a new name. Cross-organization creation only supports non-private custom source templates. The created template is always non-private; any isPrivate value in the request body is ignored.
|
|
54
54
|
* @summary Create parameter template
|
|
55
|
-
* @param {string} orgName
|
|
55
|
+
* @param {string} orgName Name of the target organization
|
|
56
56
|
* @param {ParamTplCreate} body
|
|
57
|
+
* @param {string} [oriOrgName] Name of the source organization. When omitted, empty, or equal to orgName, existing creation behavior is preserved: custom templates are read from the target organization and default templates from the system organization. A different source organization requires oriPartition to be custom and name to differ from oriName. Both organizations must be active. The source may be the system organization, but the target must not be the system organization. A non-empty value containing only whitespace is invalid.
|
|
57
58
|
* @param {*} [options] Override http request option.
|
|
58
59
|
* @throws {RequiredError}
|
|
59
60
|
*/
|
|
60
|
-
createParameterTemplate: async (orgName: string, body: ParamTplCreate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
61
|
+
createParameterTemplate: async (orgName: string, body: ParamTplCreate, oriOrgName?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
61
62
|
// verify required parameter 'orgName' is not null or undefined
|
|
62
63
|
assertParamExists('createParameterTemplate', 'orgName', orgName)
|
|
63
64
|
// verify required parameter 'body' is not null or undefined
|
|
@@ -85,6 +86,10 @@ export const ParameterTemplateApiAxiosParamCreator = function (configuration?: C
|
|
|
85
86
|
localVarQueryParameter['orgName'] = orgName;
|
|
86
87
|
}
|
|
87
88
|
|
|
89
|
+
if (oriOrgName !== undefined) {
|
|
90
|
+
localVarQueryParameter['oriOrgName'] = oriOrgName;
|
|
91
|
+
}
|
|
92
|
+
|
|
88
93
|
|
|
89
94
|
|
|
90
95
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -552,15 +557,16 @@ export const ParameterTemplateApiFp = function(configuration?: Configuration) {
|
|
|
552
557
|
const localVarAxiosParamCreator = ParameterTemplateApiAxiosParamCreator(configuration)
|
|
553
558
|
return {
|
|
554
559
|
/**
|
|
555
|
-
*
|
|
560
|
+
* Create a parameter template in the target organization from an existing template. To copy a custom template from another organization, specify oriOrgName and provide a new name. Cross-organization creation only supports non-private custom source templates. The created template is always non-private; any isPrivate value in the request body is ignored.
|
|
556
561
|
* @summary Create parameter template
|
|
557
|
-
* @param {string} orgName
|
|
562
|
+
* @param {string} orgName Name of the target organization
|
|
558
563
|
* @param {ParamTplCreate} body
|
|
564
|
+
* @param {string} [oriOrgName] Name of the source organization. When omitted, empty, or equal to orgName, existing creation behavior is preserved: custom templates are read from the target organization and default templates from the system organization. A different source organization requires oriPartition to be custom and name to differ from oriName. Both organizations must be active. The source may be the system organization, but the target must not be the system organization. A non-empty value containing only whitespace is invalid.
|
|
559
565
|
* @param {*} [options] Override http request option.
|
|
560
566
|
* @throws {RequiredError}
|
|
561
567
|
*/
|
|
562
|
-
async createParameterTemplate(orgName: string, body: ParamTplCreate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ParamTplListItem>> {
|
|
563
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createParameterTemplate(orgName, body, options);
|
|
568
|
+
async createParameterTemplate(orgName: string, body: ParamTplCreate, oriOrgName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ParamTplListItem>> {
|
|
569
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createParameterTemplate(orgName, body, oriOrgName, options);
|
|
564
570
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
565
571
|
const localVarOperationServerBasePath = operationServerMap['ParameterTemplateApi.createParameterTemplate']?.[localVarOperationServerIndex]?.url;
|
|
566
572
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -701,14 +707,14 @@ export const ParameterTemplateApiFactory = function (configuration?: Configurati
|
|
|
701
707
|
const localVarFp = ParameterTemplateApiFp(configuration)
|
|
702
708
|
return {
|
|
703
709
|
/**
|
|
704
|
-
*
|
|
710
|
+
* Create a parameter template in the target organization from an existing template. To copy a custom template from another organization, specify oriOrgName and provide a new name. Cross-organization creation only supports non-private custom source templates. The created template is always non-private; any isPrivate value in the request body is ignored.
|
|
705
711
|
* @summary Create parameter template
|
|
706
712
|
* @param {ParameterTemplateApiCreateParameterTemplateRequest} requestParameters Request parameters.
|
|
707
713
|
* @param {*} [options] Override http request option.
|
|
708
714
|
* @throws {RequiredError}
|
|
709
715
|
*/
|
|
710
716
|
createParameterTemplate(requestParameters: ParameterTemplateApiCreateParameterTemplateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ParamTplListItem> {
|
|
711
|
-
return localVarFp.createParameterTemplate(requestParameters.orgName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
717
|
+
return localVarFp.createParameterTemplate(requestParameters.orgName, requestParameters.body, requestParameters.oriOrgName, options).then((request) => request(axios, basePath));
|
|
712
718
|
},
|
|
713
719
|
/**
|
|
714
720
|
*
|
|
@@ -800,7 +806,7 @@ export const ParameterTemplateApiFactory = function (configuration?: Configurati
|
|
|
800
806
|
*/
|
|
801
807
|
export interface ParameterTemplateApiInterface {
|
|
802
808
|
/**
|
|
803
|
-
*
|
|
809
|
+
* Create a parameter template in the target organization from an existing template. To copy a custom template from another organization, specify oriOrgName and provide a new name. Cross-organization creation only supports non-private custom source templates. The created template is always non-private; any isPrivate value in the request body is ignored.
|
|
804
810
|
* @summary Create parameter template
|
|
805
811
|
* @param {ParameterTemplateApiCreateParameterTemplateRequest} requestParameters Request parameters.
|
|
806
812
|
* @param {*} [options] Override http request option.
|
|
@@ -898,7 +904,7 @@ export interface ParameterTemplateApiInterface {
|
|
|
898
904
|
*/
|
|
899
905
|
export interface ParameterTemplateApiCreateParameterTemplateRequest {
|
|
900
906
|
/**
|
|
901
|
-
*
|
|
907
|
+
* Name of the target organization
|
|
902
908
|
* @type {string}
|
|
903
909
|
* @memberof ParameterTemplateApiCreateParameterTemplate
|
|
904
910
|
*/
|
|
@@ -910,6 +916,13 @@ export interface ParameterTemplateApiCreateParameterTemplateRequest {
|
|
|
910
916
|
* @memberof ParameterTemplateApiCreateParameterTemplate
|
|
911
917
|
*/
|
|
912
918
|
readonly body: ParamTplCreate
|
|
919
|
+
|
|
920
|
+
/**
|
|
921
|
+
* Name of the source organization. When omitted, empty, or equal to orgName, existing creation behavior is preserved: custom templates are read from the target organization and default templates from the system organization. A different source organization requires oriPartition to be custom and name to differ from oriName. Both organizations must be active. The source may be the system organization, but the target must not be the system organization. A non-empty value containing only whitespace is invalid.
|
|
922
|
+
* @type {string}
|
|
923
|
+
* @memberof ParameterTemplateApiCreateParameterTemplate
|
|
924
|
+
*/
|
|
925
|
+
readonly oriOrgName?: string
|
|
913
926
|
}
|
|
914
927
|
|
|
915
928
|
/**
|
|
@@ -1179,7 +1192,7 @@ export interface ParameterTemplateApiUpdateClusterParameterTemplateRequest {
|
|
|
1179
1192
|
*/
|
|
1180
1193
|
export class ParameterTemplateApi extends BaseAPI implements ParameterTemplateApiInterface {
|
|
1181
1194
|
/**
|
|
1182
|
-
*
|
|
1195
|
+
* Create a parameter template in the target organization from an existing template. To copy a custom template from another organization, specify oriOrgName and provide a new name. Cross-organization creation only supports non-private custom source templates. The created template is always non-private; any isPrivate value in the request body is ignored.
|
|
1183
1196
|
* @summary Create parameter template
|
|
1184
1197
|
* @param {ParameterTemplateApiCreateParameterTemplateRequest} requestParameters Request parameters.
|
|
1185
1198
|
* @param {*} [options] Override http request option.
|
|
@@ -1187,7 +1200,7 @@ export class ParameterTemplateApi extends BaseAPI implements ParameterTemplateAp
|
|
|
1187
1200
|
* @memberof ParameterTemplateApi
|
|
1188
1201
|
*/
|
|
1189
1202
|
public createParameterTemplate(requestParameters: ParameterTemplateApiCreateParameterTemplateRequest, options?: RawAxiosRequestConfig) {
|
|
1190
|
-
return ParameterTemplateApiFp(this.configuration).createParameterTemplate(requestParameters.orgName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1203
|
+
return ParameterTemplateApiFp(this.configuration).createParameterTemplate(requestParameters.orgName, requestParameters.body, requestParameters.oriOrgName, options).then((request) => request(this.axios, this.basePath));
|
|
1191
1204
|
}
|
|
1192
1205
|
|
|
1193
1206
|
/**
|
|
@@ -29,6 +29,8 @@ import type { VipPool } from '../models';
|
|
|
29
29
|
import type { VipPoolCreate } from '../models';
|
|
30
30
|
// @ts-ignore
|
|
31
31
|
import type { VipPoolList } from '../models';
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
import type { VipPoolUpdate } from '../models';
|
|
32
34
|
/**
|
|
33
35
|
* VipPoolApi - axios parameter creator
|
|
34
36
|
* @export
|
|
@@ -163,6 +165,57 @@ export const VipPoolApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
163
165
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
164
166
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
165
167
|
|
|
168
|
+
return {
|
|
169
|
+
url: toPathString(localVarUrlObj),
|
|
170
|
+
options: localVarRequestOptions,
|
|
171
|
+
};
|
|
172
|
+
},
|
|
173
|
+
/**
|
|
174
|
+
*
|
|
175
|
+
* @summary Update environment VIP Pool
|
|
176
|
+
* @param {string} environmentName name of the environment
|
|
177
|
+
* @param {string} poolID id of the VIP Pool
|
|
178
|
+
* @param {VipPoolUpdate} body
|
|
179
|
+
* @param {*} [options] Override http request option.
|
|
180
|
+
* @throws {RequiredError}
|
|
181
|
+
*/
|
|
182
|
+
updateVIPPool: async (environmentName: string, poolID: string, body: VipPoolUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
183
|
+
// verify required parameter 'environmentName' is not null or undefined
|
|
184
|
+
assertParamExists('updateVIPPool', 'environmentName', environmentName)
|
|
185
|
+
// verify required parameter 'poolID' is not null or undefined
|
|
186
|
+
assertParamExists('updateVIPPool', 'poolID', poolID)
|
|
187
|
+
// verify required parameter 'body' is not null or undefined
|
|
188
|
+
assertParamExists('updateVIPPool', 'body', body)
|
|
189
|
+
const localVarPath = `/admin/v1/environments/{environmentName}/loadbalancer/vipPool/{poolID}`
|
|
190
|
+
.replace(`{${"environmentName"}}`, encodeURIComponent(String(environmentName)))
|
|
191
|
+
.replace(`{${"poolID"}}`, encodeURIComponent(String(poolID)));
|
|
192
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
193
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
194
|
+
let baseOptions;
|
|
195
|
+
if (configuration) {
|
|
196
|
+
baseOptions = configuration.baseOptions;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
200
|
+
const localVarHeaderParameter = {} as any;
|
|
201
|
+
const localVarQueryParameter = {} as any;
|
|
202
|
+
|
|
203
|
+
// authentication BearerToken required
|
|
204
|
+
// http bearer authentication required
|
|
205
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
206
|
+
|
|
207
|
+
// authentication DigestAuth required
|
|
208
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
213
|
+
|
|
214
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
215
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
216
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
217
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
218
|
+
|
|
166
219
|
return {
|
|
167
220
|
url: toPathString(localVarUrlObj),
|
|
168
221
|
options: localVarRequestOptions,
|
|
@@ -219,6 +272,21 @@ export const VipPoolApiFp = function(configuration?: Configuration) {
|
|
|
219
272
|
const localVarOperationServerBasePath = operationServerMap['VipPoolApi.listVIPPool']?.[localVarOperationServerIndex]?.url;
|
|
220
273
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
221
274
|
},
|
|
275
|
+
/**
|
|
276
|
+
*
|
|
277
|
+
* @summary Update environment VIP Pool
|
|
278
|
+
* @param {string} environmentName name of the environment
|
|
279
|
+
* @param {string} poolID id of the VIP Pool
|
|
280
|
+
* @param {VipPoolUpdate} body
|
|
281
|
+
* @param {*} [options] Override http request option.
|
|
282
|
+
* @throws {RequiredError}
|
|
283
|
+
*/
|
|
284
|
+
async updateVIPPool(environmentName: string, poolID: string, body: VipPoolUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VipPool>> {
|
|
285
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateVIPPool(environmentName, poolID, body, options);
|
|
286
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
287
|
+
const localVarOperationServerBasePath = operationServerMap['VipPoolApi.updateVIPPool']?.[localVarOperationServerIndex]?.url;
|
|
288
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
289
|
+
},
|
|
222
290
|
}
|
|
223
291
|
};
|
|
224
292
|
|
|
@@ -259,6 +327,16 @@ export const VipPoolApiFactory = function (configuration?: Configuration, basePa
|
|
|
259
327
|
listVIPPool(requestParameters: VipPoolApiListVIPPoolRequest, options?: RawAxiosRequestConfig): AxiosPromise<VipPoolList> {
|
|
260
328
|
return localVarFp.listVIPPool(requestParameters.environmentName, options).then((request) => request(axios, basePath));
|
|
261
329
|
},
|
|
330
|
+
/**
|
|
331
|
+
*
|
|
332
|
+
* @summary Update environment VIP Pool
|
|
333
|
+
* @param {VipPoolApiUpdateVIPPoolRequest} requestParameters Request parameters.
|
|
334
|
+
* @param {*} [options] Override http request option.
|
|
335
|
+
* @throws {RequiredError}
|
|
336
|
+
*/
|
|
337
|
+
updateVIPPool(requestParameters: VipPoolApiUpdateVIPPoolRequest, options?: RawAxiosRequestConfig): AxiosPromise<VipPool> {
|
|
338
|
+
return localVarFp.updateVIPPool(requestParameters.environmentName, requestParameters.poolID, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
339
|
+
},
|
|
262
340
|
};
|
|
263
341
|
};
|
|
264
342
|
|
|
@@ -298,6 +376,16 @@ export interface VipPoolApiInterface {
|
|
|
298
376
|
*/
|
|
299
377
|
listVIPPool(requestParameters: VipPoolApiListVIPPoolRequest, options?: RawAxiosRequestConfig): AxiosPromise<VipPoolList>;
|
|
300
378
|
|
|
379
|
+
/**
|
|
380
|
+
*
|
|
381
|
+
* @summary Update environment VIP Pool
|
|
382
|
+
* @param {VipPoolApiUpdateVIPPoolRequest} requestParameters Request parameters.
|
|
383
|
+
* @param {*} [options] Override http request option.
|
|
384
|
+
* @throws {RequiredError}
|
|
385
|
+
* @memberof VipPoolApiInterface
|
|
386
|
+
*/
|
|
387
|
+
updateVIPPool(requestParameters: VipPoolApiUpdateVIPPoolRequest, options?: RawAxiosRequestConfig): AxiosPromise<VipPool>;
|
|
388
|
+
|
|
301
389
|
}
|
|
302
390
|
|
|
303
391
|
/**
|
|
@@ -356,6 +444,34 @@ export interface VipPoolApiListVIPPoolRequest {
|
|
|
356
444
|
readonly environmentName: string
|
|
357
445
|
}
|
|
358
446
|
|
|
447
|
+
/**
|
|
448
|
+
* Request parameters for updateVIPPool operation in VipPoolApi.
|
|
449
|
+
* @export
|
|
450
|
+
* @interface VipPoolApiUpdateVIPPoolRequest
|
|
451
|
+
*/
|
|
452
|
+
export interface VipPoolApiUpdateVIPPoolRequest {
|
|
453
|
+
/**
|
|
454
|
+
* name of the environment
|
|
455
|
+
* @type {string}
|
|
456
|
+
* @memberof VipPoolApiUpdateVIPPool
|
|
457
|
+
*/
|
|
458
|
+
readonly environmentName: string
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* id of the VIP Pool
|
|
462
|
+
* @type {string}
|
|
463
|
+
* @memberof VipPoolApiUpdateVIPPool
|
|
464
|
+
*/
|
|
465
|
+
readonly poolID: string
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
*
|
|
469
|
+
* @type {VipPoolUpdate}
|
|
470
|
+
* @memberof VipPoolApiUpdateVIPPool
|
|
471
|
+
*/
|
|
472
|
+
readonly body: VipPoolUpdate
|
|
473
|
+
}
|
|
474
|
+
|
|
359
475
|
/**
|
|
360
476
|
* VipPoolApi - object-oriented interface
|
|
361
477
|
* @export
|
|
@@ -398,5 +514,17 @@ export class VipPoolApi extends BaseAPI implements VipPoolApiInterface {
|
|
|
398
514
|
public listVIPPool(requestParameters: VipPoolApiListVIPPoolRequest, options?: RawAxiosRequestConfig) {
|
|
399
515
|
return VipPoolApiFp(this.configuration).listVIPPool(requestParameters.environmentName, options).then((request) => request(this.axios, this.basePath));
|
|
400
516
|
}
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
*
|
|
520
|
+
* @summary Update environment VIP Pool
|
|
521
|
+
* @param {VipPoolApiUpdateVIPPoolRequest} requestParameters Request parameters.
|
|
522
|
+
* @param {*} [options] Override http request option.
|
|
523
|
+
* @throws {RequiredError}
|
|
524
|
+
* @memberof VipPoolApi
|
|
525
|
+
*/
|
|
526
|
+
public updateVIPPool(requestParameters: VipPoolApiUpdateVIPPoolRequest, options?: RawAxiosRequestConfig) {
|
|
527
|
+
return VipPoolApiFp(this.configuration).updateVIPPool(requestParameters.environmentName, requestParameters.poolID, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
528
|
+
}
|
|
401
529
|
}
|
|
402
530
|
|
|
@@ -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
|
-
* Omit to use the cluster chart default. Set zero to disable the component when its resource constraints allow zero replicas.
|
|
45
|
+
* Omit to use the cluster chart default. Set zero to disable the component when its resource constraints allow zero replicas. 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 | null;
|
|
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}
|
|
@@ -13,9 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
// May contain unused imports in some cases
|
|
17
|
-
// @ts-ignore
|
|
18
|
-
import type { EngineOption } from './engine-option';
|
|
19
16
|
|
|
20
17
|
/**
|
|
21
18
|
*
|
|
@@ -36,11 +33,11 @@ export interface EngineOptionHistory {
|
|
|
36
33
|
*/
|
|
37
34
|
'modifierEmail'?: string;
|
|
38
35
|
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {
|
|
36
|
+
* Engine option document stored when this history row was written. This is a point-in-time snapshot, not the current engineOption create/update contract. Nested fields such as endpoints.protocol may be absent on older rows.
|
|
37
|
+
* @type {{ [key: string]: any; }}
|
|
41
38
|
* @memberof EngineOptionHistory
|
|
42
39
|
*/
|
|
43
|
-
'option':
|
|
40
|
+
'option': { [key: string]: any; };
|
|
44
41
|
/**
|
|
45
42
|
*
|
|
46
43
|
* @type {string}
|
|
@@ -586,6 +586,12 @@ export * from './instance-resource-stats-list';
|
|
|
586
586
|
export * from './instance-resource-stats-type';
|
|
587
587
|
export * from './instance-status';
|
|
588
588
|
export * from './instance-storage-item';
|
|
589
|
+
export * from './instance-template-attribute';
|
|
590
|
+
export * from './instance-template-create';
|
|
591
|
+
export * from './instance-template-create-env-inner';
|
|
592
|
+
export * from './instance-template-env';
|
|
593
|
+
export * from './instance-template-op';
|
|
594
|
+
export * from './instance-template-replicas';
|
|
589
595
|
export * from './integer-option';
|
|
590
596
|
export * from './international-desc';
|
|
591
597
|
export * from './io-quantity';
|
|
@@ -658,6 +664,7 @@ export * from './milvus-role-list';
|
|
|
658
664
|
export * from './milvus-role-request';
|
|
659
665
|
export * from './mode-compatible-kubeblocks-version';
|
|
660
666
|
export * from './mode-component';
|
|
667
|
+
export * from './mode-component-instance-template';
|
|
661
668
|
export * from './mode-object-storage';
|
|
662
669
|
export * from './mode-object-storage-additional-helm-value-path';
|
|
663
670
|
export * from './mode-object-storage-service-ref';
|
|
@@ -1069,6 +1076,7 @@ export * from './user-update';
|
|
|
1069
1076
|
export * from './vip-pool';
|
|
1070
1077
|
export * from './vip-pool-create';
|
|
1071
1078
|
export * from './vip-pool-list';
|
|
1079
|
+
export * from './vip-pool-update';
|
|
1072
1080
|
export * from './volume-restore-policy';
|
|
1073
1081
|
export * from './vuln-item';
|
|
1074
1082
|
export * from './vuln-list';
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
|
|
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
|
+
} as const;
|
|
28
|
+
|
|
29
|
+
export type InstanceTemplateAttribute = typeof InstanceTemplateAttribute[keyof typeof InstanceTemplateAttribute];
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
|
|
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
|
+
|