kb-cloud-client-typescript 2.3.0-alpha.155 → 2.3.0-alpha.157
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 +56 -0
- package/dist/adminapi/apis/environment-api.d.ts.map +1 -1
- package/dist/adminapi/apis/environment-api.js +69 -0
- package/dist/adminapi/apis/environment-api.js.map +1 -1
- package/dist/adminapi/models/cluster-create.d.ts +13 -0
- package/dist/adminapi/models/cluster-create.d.ts.map +1 -1
- package/dist/adminapi/models/cluster.d.ts +13 -0
- package/dist/adminapi/models/cluster.d.ts.map +1 -1
- package/dist/adminapi/models/environment-create.d.ts +6 -0
- package/dist/adminapi/models/environment-create.d.ts.map +1 -1
- package/dist/adminapi/models/environment-update.d.ts +6 -0
- package/dist/adminapi/models/environment-update.d.ts.map +1 -1
- package/dist/adminapi/models/environment.d.ts +6 -0
- package/dist/adminapi/models/environment.d.ts.map +1 -1
- package/dist/adminapi/models/index.d.ts +8 -1
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +8 -1
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/koordinator-node-reservation.d.ts +71 -0
- package/dist/adminapi/models/koordinator-node-reservation.d.ts.map +1 -0
- package/dist/adminapi/models/{storage-config-log.d.ts → koordinator-node-reservation.js} +5 -14
- package/dist/adminapi/models/koordinator-node-reservation.js.map +1 -0
- package/dist/adminapi/models/koordinator-reservation-allocate-policy.d.ts +22 -0
- package/dist/adminapi/models/koordinator-reservation-allocate-policy.d.ts.map +1 -0
- package/dist/adminapi/models/koordinator-reservation-allocate-policy.js +26 -0
- package/dist/adminapi/models/koordinator-reservation-allocate-policy.js.map +1 -0
- package/dist/adminapi/models/koordinator-reservation-resource-class.d.ts +22 -0
- package/dist/adminapi/models/koordinator-reservation-resource-class.d.ts.map +1 -0
- package/dist/adminapi/models/koordinator-reservation-resource-class.js +26 -0
- package/dist/adminapi/models/koordinator-reservation-resource-class.js.map +1 -0
- package/dist/adminapi/models/koordinator-reservation-resources.d.ts +31 -0
- package/dist/adminapi/models/koordinator-reservation-resources.d.ts.map +1 -0
- package/dist/adminapi/models/koordinator-reservation-resources.js +16 -0
- package/dist/adminapi/models/koordinator-reservation-resources.js.map +1 -0
- package/dist/adminapi/models/koordinator-reservation-status.d.ts +50 -0
- package/dist/adminapi/models/koordinator-reservation-status.d.ts.map +1 -0
- package/dist/adminapi/models/koordinator-reservation-status.js +16 -0
- package/dist/adminapi/models/koordinator-reservation-status.js.map +1 -0
- package/dist/adminapi/models/koordinator-reservation-summary-item.d.ts +51 -0
- package/dist/adminapi/models/koordinator-reservation-summary-item.d.ts.map +1 -0
- package/dist/adminapi/models/koordinator-reservation-summary-item.js +16 -0
- package/dist/adminapi/models/koordinator-reservation-summary-item.js.map +1 -0
- package/dist/adminapi/models/koordinator-reservation-summary.d.ts +51 -0
- package/dist/adminapi/models/koordinator-reservation-summary.d.ts.map +1 -0
- package/dist/adminapi/models/koordinator-reservation-summary.js +16 -0
- package/dist/adminapi/models/koordinator-reservation-summary.js.map +1 -0
- package/dist/adminapi/models/node.d.ts +7 -0
- package/dist/adminapi/models/node.d.ts.map +1 -1
- package/dist/adminapi/models/parameter-prop.d.ts +6 -0
- package/dist/adminapi/models/parameter-prop.d.ts.map +1 -1
- package/dist/adminapi/models/scheduler-option.d.ts +37 -0
- package/dist/adminapi/models/scheduler-option.d.ts.map +1 -0
- package/dist/adminapi/models/{storage-config-log.js → scheduler-option.js} +1 -1
- package/dist/adminapi/models/scheduler-option.js.map +1 -0
- package/dist/adminapi/models/storage-config.d.ts +0 -7
- package/dist/adminapi/models/storage-config.d.ts.map +1 -1
- package/dist/internalapi/models/cluster.d.ts +13 -0
- package/dist/internalapi/models/cluster.d.ts.map +1 -1
- package/dist/internalapi/models/index.d.ts +1 -0
- package/dist/internalapi/models/index.d.ts.map +1 -1
- package/dist/internalapi/models/index.js +1 -0
- package/dist/internalapi/models/index.js.map +1 -1
- package/dist/internalapi/models/koordinator-reservation-resource-class.d.ts +22 -0
- package/dist/internalapi/models/koordinator-reservation-resource-class.d.ts.map +1 -0
- package/dist/internalapi/models/koordinator-reservation-resource-class.js +26 -0
- package/dist/internalapi/models/koordinator-reservation-resource-class.js.map +1 -0
- package/dist/openapi/apis/data-replication-api.d.ts +4 -4
- package/dist/openapi/apis/data-replication-api.d.ts.map +1 -1
- package/dist/openapi/models/cluster-create.d.ts +13 -0
- package/dist/openapi/models/cluster-create.d.ts.map +1 -1
- package/dist/openapi/models/cluster.d.ts +13 -0
- package/dist/openapi/models/cluster.d.ts.map +1 -1
- package/dist/openapi/models/index.d.ts +5 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +5 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/dist/openapi/models/koordinator-node-reservation.d.ts +71 -0
- package/dist/openapi/models/koordinator-node-reservation.d.ts.map +1 -0
- package/dist/openapi/models/koordinator-node-reservation.js +16 -0
- package/dist/openapi/models/koordinator-node-reservation.js.map +1 -0
- package/dist/openapi/models/koordinator-reservation-allocate-policy.d.ts +22 -0
- package/dist/openapi/models/koordinator-reservation-allocate-policy.d.ts.map +1 -0
- package/dist/openapi/models/koordinator-reservation-allocate-policy.js +26 -0
- package/dist/openapi/models/koordinator-reservation-allocate-policy.js.map +1 -0
- package/dist/openapi/models/koordinator-reservation-resource-class.d.ts +22 -0
- package/dist/openapi/models/koordinator-reservation-resource-class.d.ts.map +1 -0
- package/dist/openapi/models/koordinator-reservation-resource-class.js +26 -0
- package/dist/openapi/models/koordinator-reservation-resource-class.js.map +1 -0
- package/dist/openapi/models/koordinator-reservation-resources.d.ts +31 -0
- package/dist/openapi/models/koordinator-reservation-resources.d.ts.map +1 -0
- package/dist/openapi/models/koordinator-reservation-resources.js +16 -0
- package/dist/openapi/models/koordinator-reservation-resources.js.map +1 -0
- package/dist/openapi/models/koordinator-reservation-status.d.ts +50 -0
- package/dist/openapi/models/koordinator-reservation-status.d.ts.map +1 -0
- package/dist/openapi/models/koordinator-reservation-status.js +16 -0
- package/dist/openapi/models/koordinator-reservation-status.js.map +1 -0
- package/dist/openapi/models/node.d.ts +7 -0
- package/dist/openapi/models/node.d.ts.map +1 -1
- package/dist/openapi/models/parameter-prop.d.ts +6 -0
- package/dist/openapi/models/parameter-prop.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +8 -1
- package/src/adminapi/apis/environment-api.ts +102 -0
- package/src/adminapi/models/cluster-create.ts +15 -0
- package/src/adminapi/models/cluster.ts +15 -0
- package/src/adminapi/models/environment-create.ts +6 -0
- package/src/adminapi/models/environment-update.ts +6 -0
- package/src/adminapi/models/environment.ts +6 -0
- package/src/adminapi/models/index.ts +8 -1
- package/src/adminapi/models/koordinator-node-reservation.ts +86 -0
- package/src/adminapi/models/koordinator-reservation-allocate-policy.ts +31 -0
- package/src/adminapi/models/{storage-config-log.ts → koordinator-reservation-resource-class.ts} +11 -10
- package/src/adminapi/models/koordinator-reservation-resources.ts +36 -0
- package/src/adminapi/models/koordinator-reservation-status.ts +57 -0
- package/src/adminapi/models/koordinator-reservation-summary-item.ts +62 -0
- package/src/adminapi/models/koordinator-reservation-summary.ts +60 -0
- package/src/adminapi/models/node.ts +9 -0
- package/src/adminapi/models/parameter-prop.ts +6 -0
- package/src/adminapi/models/scheduler-option.ts +42 -0
- package/src/adminapi/models/storage-config.ts +0 -9
- package/src/adminapi.yaml +167 -10
- package/src/internalapi/.openapi-generator/FILES +1 -0
- package/src/internalapi/models/cluster.ts +15 -0
- package/src/internalapi/models/index.ts +1 -0
- package/src/internalapi/models/koordinator-reservation-resource-class.ts +31 -0
- package/src/internalapi.yaml +13 -0
- package/src/openapi/.openapi-generator/FILES +5 -0
- package/src/openapi/apis/data-replication-api.ts +3 -3
- package/src/openapi/models/cluster-create.ts +15 -0
- package/src/openapi/models/cluster.ts +15 -0
- package/src/openapi/models/index.ts +5 -0
- package/src/openapi/models/koordinator-node-reservation.ts +86 -0
- package/src/openapi/models/koordinator-reservation-allocate-policy.ts +31 -0
- package/src/openapi/models/koordinator-reservation-resource-class.ts +31 -0
- package/src/openapi/models/koordinator-reservation-resources.ts +36 -0
- package/src/openapi/models/koordinator-reservation-status.ts +57 -0
- package/src/openapi/models/node.ts +9 -0
- package/src/openapi/models/parameter-prop.ts +6 -0
- package/src/openapi.yaml +83 -1
- package/dist/adminapi/models/storage-config-log.d.ts.map +0 -1
- package/dist/adminapi/models/storage-config-log.js.map +0 -1
|
@@ -70,6 +70,8 @@ import type { EnvironmentUpdate } from '../models';
|
|
|
70
70
|
// @ts-ignore
|
|
71
71
|
import type { HttpBody } from '../models';
|
|
72
72
|
// @ts-ignore
|
|
73
|
+
import type { KoordinatorReservationSummary } from '../models';
|
|
74
|
+
// @ts-ignore
|
|
73
75
|
import type { Kubeconfig } from '../models';
|
|
74
76
|
// @ts-ignore
|
|
75
77
|
import type { ListKubernetesNodeOpType } from '../models';
|
|
@@ -1135,6 +1137,47 @@ export const EnvironmentApiAxiosParamCreator = function (configuration?: Configu
|
|
|
1135
1137
|
|
|
1136
1138
|
|
|
1137
1139
|
|
|
1140
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1141
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1142
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1143
|
+
|
|
1144
|
+
return {
|
|
1145
|
+
url: toPathString(localVarUrlObj),
|
|
1146
|
+
options: localVarRequestOptions,
|
|
1147
|
+
};
|
|
1148
|
+
},
|
|
1149
|
+
/**
|
|
1150
|
+
* Get Koordinator Reservation summary for the cluster creation page.
|
|
1151
|
+
* @summary Get Koordinator Reservation summary
|
|
1152
|
+
* @param {string} environmentName name of the environment
|
|
1153
|
+
* @param {*} [options] Override http request option.
|
|
1154
|
+
* @throws {RequiredError}
|
|
1155
|
+
*/
|
|
1156
|
+
getKoordinatorReservationSummary: async (environmentName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1157
|
+
// verify required parameter 'environmentName' is not null or undefined
|
|
1158
|
+
assertParamExists('getKoordinatorReservationSummary', 'environmentName', environmentName)
|
|
1159
|
+
const localVarPath = `/admin/v1/environments/{environmentName}/koordinatorReservations/summary`
|
|
1160
|
+
.replace(`{${"environmentName"}}`, encodeURIComponent(String(environmentName)));
|
|
1161
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1162
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1163
|
+
let baseOptions;
|
|
1164
|
+
if (configuration) {
|
|
1165
|
+
baseOptions = configuration.baseOptions;
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1169
|
+
const localVarHeaderParameter = {} as any;
|
|
1170
|
+
const localVarQueryParameter = {} as any;
|
|
1171
|
+
|
|
1172
|
+
// authentication BearerToken required
|
|
1173
|
+
// http bearer authentication required
|
|
1174
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1175
|
+
|
|
1176
|
+
// authentication DigestAuth required
|
|
1177
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
1178
|
+
|
|
1179
|
+
|
|
1180
|
+
|
|
1138
1181
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1139
1182
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1140
1183
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -2548,6 +2591,19 @@ export const EnvironmentApiFp = function(configuration?: Configuration) {
|
|
|
2548
2591
|
const localVarOperationServerBasePath = operationServerMap['EnvironmentApi.getEnvironmentStatusHistory']?.[localVarOperationServerIndex]?.url;
|
|
2549
2592
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2550
2593
|
},
|
|
2594
|
+
/**
|
|
2595
|
+
* Get Koordinator Reservation summary for the cluster creation page.
|
|
2596
|
+
* @summary Get Koordinator Reservation summary
|
|
2597
|
+
* @param {string} environmentName name of the environment
|
|
2598
|
+
* @param {*} [options] Override http request option.
|
|
2599
|
+
* @throws {RequiredError}
|
|
2600
|
+
*/
|
|
2601
|
+
async getKoordinatorReservationSummary(environmentName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<KoordinatorReservationSummary>> {
|
|
2602
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getKoordinatorReservationSummary(environmentName, options);
|
|
2603
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2604
|
+
const localVarOperationServerBasePath = operationServerMap['EnvironmentApi.getKoordinatorReservationSummary']?.[localVarOperationServerIndex]?.url;
|
|
2605
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2606
|
+
},
|
|
2551
2607
|
/**
|
|
2552
2608
|
* Get Kubernetes DNS
|
|
2553
2609
|
* @summary Get Kubernetes DNS
|
|
@@ -3112,6 +3168,16 @@ export const EnvironmentApiFactory = function (configuration?: Configuration, ba
|
|
|
3112
3168
|
getEnvironmentStatusHistory(requestParameters: EnvironmentApiGetEnvironmentStatusHistoryRequest, options?: RawAxiosRequestConfig): AxiosPromise<EnvironmentStatusHistory> {
|
|
3113
3169
|
return localVarFp.getEnvironmentStatusHistory(requestParameters.environmentName, requestParameters.startTime, requestParameters.endTime, options).then((request) => request(axios, basePath));
|
|
3114
3170
|
},
|
|
3171
|
+
/**
|
|
3172
|
+
* Get Koordinator Reservation summary for the cluster creation page.
|
|
3173
|
+
* @summary Get Koordinator Reservation summary
|
|
3174
|
+
* @param {EnvironmentApiGetKoordinatorReservationSummaryRequest} requestParameters Request parameters.
|
|
3175
|
+
* @param {*} [options] Override http request option.
|
|
3176
|
+
* @throws {RequiredError}
|
|
3177
|
+
*/
|
|
3178
|
+
getKoordinatorReservationSummary(requestParameters: EnvironmentApiGetKoordinatorReservationSummaryRequest, options?: RawAxiosRequestConfig): AxiosPromise<KoordinatorReservationSummary> {
|
|
3179
|
+
return localVarFp.getKoordinatorReservationSummary(requestParameters.environmentName, options).then((request) => request(axios, basePath));
|
|
3180
|
+
},
|
|
3115
3181
|
/**
|
|
3116
3182
|
* Get Kubernetes DNS
|
|
3117
3183
|
* @summary Get Kubernetes DNS
|
|
@@ -3579,6 +3645,16 @@ export interface EnvironmentApiInterface {
|
|
|
3579
3645
|
*/
|
|
3580
3646
|
getEnvironmentStatusHistory(requestParameters: EnvironmentApiGetEnvironmentStatusHistoryRequest, options?: RawAxiosRequestConfig): AxiosPromise<EnvironmentStatusHistory>;
|
|
3581
3647
|
|
|
3648
|
+
/**
|
|
3649
|
+
* Get Koordinator Reservation summary for the cluster creation page.
|
|
3650
|
+
* @summary Get Koordinator Reservation summary
|
|
3651
|
+
* @param {EnvironmentApiGetKoordinatorReservationSummaryRequest} requestParameters Request parameters.
|
|
3652
|
+
* @param {*} [options] Override http request option.
|
|
3653
|
+
* @throws {RequiredError}
|
|
3654
|
+
* @memberof EnvironmentApiInterface
|
|
3655
|
+
*/
|
|
3656
|
+
getKoordinatorReservationSummary(requestParameters: EnvironmentApiGetKoordinatorReservationSummaryRequest, options?: RawAxiosRequestConfig): AxiosPromise<KoordinatorReservationSummary>;
|
|
3657
|
+
|
|
3582
3658
|
/**
|
|
3583
3659
|
* Get Kubernetes DNS
|
|
3584
3660
|
* @summary Get Kubernetes DNS
|
|
@@ -4278,6 +4354,20 @@ export interface EnvironmentApiGetEnvironmentStatusHistoryRequest {
|
|
|
4278
4354
|
readonly endTime: string
|
|
4279
4355
|
}
|
|
4280
4356
|
|
|
4357
|
+
/**
|
|
4358
|
+
* Request parameters for getKoordinatorReservationSummary operation in EnvironmentApi.
|
|
4359
|
+
* @export
|
|
4360
|
+
* @interface EnvironmentApiGetKoordinatorReservationSummaryRequest
|
|
4361
|
+
*/
|
|
4362
|
+
export interface EnvironmentApiGetKoordinatorReservationSummaryRequest {
|
|
4363
|
+
/**
|
|
4364
|
+
* name of the environment
|
|
4365
|
+
* @type {string}
|
|
4366
|
+
* @memberof EnvironmentApiGetKoordinatorReservationSummary
|
|
4367
|
+
*/
|
|
4368
|
+
readonly environmentName: string
|
|
4369
|
+
}
|
|
4370
|
+
|
|
4281
4371
|
/**
|
|
4282
4372
|
* Request parameters for getKubernetesDNS operation in EnvironmentApi.
|
|
4283
4373
|
* @export
|
|
@@ -5044,6 +5134,18 @@ export class EnvironmentApi extends BaseAPI implements EnvironmentApiInterface {
|
|
|
5044
5134
|
return EnvironmentApiFp(this.configuration).getEnvironmentStatusHistory(requestParameters.environmentName, requestParameters.startTime, requestParameters.endTime, options).then((request) => request(this.axios, this.basePath));
|
|
5045
5135
|
}
|
|
5046
5136
|
|
|
5137
|
+
/**
|
|
5138
|
+
* Get Koordinator Reservation summary for the cluster creation page.
|
|
5139
|
+
* @summary Get Koordinator Reservation summary
|
|
5140
|
+
* @param {EnvironmentApiGetKoordinatorReservationSummaryRequest} requestParameters Request parameters.
|
|
5141
|
+
* @param {*} [options] Override http request option.
|
|
5142
|
+
* @throws {RequiredError}
|
|
5143
|
+
* @memberof EnvironmentApi
|
|
5144
|
+
*/
|
|
5145
|
+
public getKoordinatorReservationSummary(requestParameters: EnvironmentApiGetKoordinatorReservationSummaryRequest, options?: RawAxiosRequestConfig) {
|
|
5146
|
+
return EnvironmentApiFp(this.configuration).getKoordinatorReservationSummary(requestParameters.environmentName, options).then((request) => request(this.axios, this.basePath));
|
|
5147
|
+
}
|
|
5148
|
+
|
|
5047
5149
|
/**
|
|
5048
5150
|
* Get Kubernetes DNS
|
|
5049
5151
|
* @summary Get Kubernetes DNS
|
|
@@ -39,6 +39,9 @@ import type { ComponentItemCreate } from './component-item-create';
|
|
|
39
39
|
import type { InitOptionItem } from './init-option-item';
|
|
40
40
|
// May contain unused imports in some cases
|
|
41
41
|
// @ts-ignore
|
|
42
|
+
import type { KoordinatorReservationResourceClass } from './koordinator-reservation-resource-class';
|
|
43
|
+
// May contain unused imports in some cases
|
|
44
|
+
// @ts-ignore
|
|
42
45
|
import type { NetworkMode } from './network-mode';
|
|
43
46
|
// May contain unused imports in some cases
|
|
44
47
|
// @ts-ignore
|
|
@@ -212,6 +215,18 @@ export interface ClusterCreate {
|
|
|
212
215
|
* @memberof ClusterCreate
|
|
213
216
|
*/
|
|
214
217
|
'schedulingPolicy'?: SchedulingPolicyType;
|
|
218
|
+
/**
|
|
219
|
+
* Scheduler used by this cluster. If omitted, KBE uses the environment default. When koordinatorEnabled is true for the target environment, the environment default is the globally configured Koordinator scheduler.
|
|
220
|
+
* @type {string}
|
|
221
|
+
* @memberof ClusterCreate
|
|
222
|
+
*/
|
|
223
|
+
'schedulerName'?: string | null;
|
|
224
|
+
/**
|
|
225
|
+
*
|
|
226
|
+
* @type {KoordinatorReservationResourceClass}
|
|
227
|
+
* @memberof ClusterCreate
|
|
228
|
+
*/
|
|
229
|
+
'reservationResourceClass'?: KoordinatorReservationResourceClass;
|
|
215
230
|
}
|
|
216
231
|
|
|
217
232
|
|
|
@@ -39,6 +39,9 @@ import type { ComponentItem } from './component-item';
|
|
|
39
39
|
import type { InitOptionItem } from './init-option-item';
|
|
40
40
|
// May contain unused imports in some cases
|
|
41
41
|
// @ts-ignore
|
|
42
|
+
import type { KoordinatorReservationResourceClass } from './koordinator-reservation-resource-class';
|
|
43
|
+
// May contain unused imports in some cases
|
|
44
|
+
// @ts-ignore
|
|
42
45
|
import type { NetworkMode } from './network-mode';
|
|
43
46
|
// May contain unused imports in some cases
|
|
44
47
|
// @ts-ignore
|
|
@@ -314,6 +317,18 @@ export interface Cluster {
|
|
|
314
317
|
* @memberof Cluster
|
|
315
318
|
*/
|
|
316
319
|
'schedulingPolicy'?: SchedulingPolicyType;
|
|
320
|
+
/**
|
|
321
|
+
* Effective scheduler used when the cluster was created.
|
|
322
|
+
* @type {string}
|
|
323
|
+
* @memberof Cluster
|
|
324
|
+
*/
|
|
325
|
+
'schedulerName'?: string | null;
|
|
326
|
+
/**
|
|
327
|
+
*
|
|
328
|
+
* @type {KoordinatorReservationResourceClass}
|
|
329
|
+
* @memberof Cluster
|
|
330
|
+
*/
|
|
331
|
+
'reservationResourceClass'?: KoordinatorReservationResourceClass;
|
|
317
332
|
}
|
|
318
333
|
|
|
319
334
|
|
|
@@ -131,6 +131,12 @@ export interface EnvironmentCreate {
|
|
|
131
131
|
* @memberof EnvironmentCreate
|
|
132
132
|
*/
|
|
133
133
|
'sla'?: boolean;
|
|
134
|
+
/**
|
|
135
|
+
* Whether this environment has Koordinator installed and can use Koordinator scheduler and reservations.
|
|
136
|
+
* @type {boolean}
|
|
137
|
+
* @memberof EnvironmentCreate
|
|
138
|
+
*/
|
|
139
|
+
'koordinatorEnabled'?: boolean;
|
|
134
140
|
}
|
|
135
141
|
|
|
136
142
|
|
|
@@ -152,6 +152,12 @@ export interface EnvironmentUpdate {
|
|
|
152
152
|
* @memberof EnvironmentUpdate
|
|
153
153
|
*/
|
|
154
154
|
'slaEnabled'?: boolean;
|
|
155
|
+
/**
|
|
156
|
+
* Whether this environment has Koordinator installed and can use Koordinator scheduler and reservations.
|
|
157
|
+
* @type {boolean}
|
|
158
|
+
* @memberof EnvironmentUpdate
|
|
159
|
+
*/
|
|
160
|
+
'koordinatorEnabled'?: boolean;
|
|
155
161
|
/**
|
|
156
162
|
*
|
|
157
163
|
* @type {ClusterSchedulingPolicy}
|
|
@@ -188,6 +188,12 @@ export interface Environment {
|
|
|
188
188
|
* @memberof Environment
|
|
189
189
|
*/
|
|
190
190
|
'slaEnabled'?: boolean;
|
|
191
|
+
/**
|
|
192
|
+
* Whether this environment has Koordinator installed and can use Koordinator scheduler and reservations.
|
|
193
|
+
* @type {boolean}
|
|
194
|
+
* @memberof Environment
|
|
195
|
+
*/
|
|
196
|
+
'koordinatorEnabled'?: boolean;
|
|
191
197
|
}
|
|
192
198
|
|
|
193
199
|
|
|
@@ -461,6 +461,13 @@ export * from './ip-whitelist';
|
|
|
461
461
|
export * from './ip-whitelist-list';
|
|
462
462
|
export * from './key';
|
|
463
463
|
export * from './key-list';
|
|
464
|
+
export * from './koordinator-node-reservation';
|
|
465
|
+
export * from './koordinator-reservation-allocate-policy';
|
|
466
|
+
export * from './koordinator-reservation-resource-class';
|
|
467
|
+
export * from './koordinator-reservation-resources';
|
|
468
|
+
export * from './koordinator-reservation-status';
|
|
469
|
+
export * from './koordinator-reservation-summary';
|
|
470
|
+
export * from './koordinator-reservation-summary-item';
|
|
464
471
|
export * from './kubeconfig';
|
|
465
472
|
export * from './license';
|
|
466
473
|
export * from './license-option';
|
|
@@ -763,6 +770,7 @@ export * from './role-update';
|
|
|
763
770
|
export * from './sla';
|
|
764
771
|
export * from './slacluster';
|
|
765
772
|
export * from './slasettings';
|
|
773
|
+
export * from './scheduler-option';
|
|
766
774
|
export * from './scheduling-config';
|
|
767
775
|
export * from './scheduling-policy-type';
|
|
768
776
|
export * from './select-module-mode';
|
|
@@ -801,7 +809,6 @@ export * from './storage-class-update';
|
|
|
801
809
|
export * from './storage-class-volume-binding-mode';
|
|
802
810
|
export * from './storage-config';
|
|
803
811
|
export * from './storage-config-backup';
|
|
804
|
-
export * from './storage-config-log';
|
|
805
812
|
export * from './storage-create';
|
|
806
813
|
export * from './storage-display-name';
|
|
807
814
|
export * from './storage-option';
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Admin API
|
|
5
|
+
* The Admin API is used to manage the ApeCloud platform.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@apecloud.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { KoordinatorReservationAllocatePolicy } from './koordinator-reservation-allocate-policy';
|
|
19
|
+
// May contain unused imports in some cases
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import type { KoordinatorReservationResourceClass } from './koordinator-reservation-resource-class';
|
|
22
|
+
// May contain unused imports in some cases
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import type { KoordinatorReservationResources } from './koordinator-reservation-resources';
|
|
25
|
+
// May contain unused imports in some cases
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import type { KoordinatorReservationStatus } from './koordinator-reservation-status';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface KoordinatorNodeReservation
|
|
33
|
+
*/
|
|
34
|
+
export interface KoordinatorNodeReservation {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {KoordinatorReservationResourceClass}
|
|
38
|
+
* @memberof KoordinatorNodeReservation
|
|
39
|
+
*/
|
|
40
|
+
'resourceClass': KoordinatorReservationResourceClass;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof KoordinatorNodeReservation
|
|
45
|
+
*/
|
|
46
|
+
'reservationName'?: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {KoordinatorReservationResources}
|
|
50
|
+
* @memberof KoordinatorNodeReservation
|
|
51
|
+
*/
|
|
52
|
+
'resources': KoordinatorReservationResources;
|
|
53
|
+
/**
|
|
54
|
+
* Kubernetes duration string. Koordinator defaults omitted ttl to 24h.
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof KoordinatorNodeReservation
|
|
57
|
+
*/
|
|
58
|
+
'ttl'?: string;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {boolean}
|
|
62
|
+
* @memberof KoordinatorNodeReservation
|
|
63
|
+
*/
|
|
64
|
+
'allocateOnce'?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {boolean}
|
|
68
|
+
* @memberof KoordinatorNodeReservation
|
|
69
|
+
*/
|
|
70
|
+
'preAllocation'?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {KoordinatorReservationAllocatePolicy}
|
|
74
|
+
* @memberof KoordinatorNodeReservation
|
|
75
|
+
*/
|
|
76
|
+
'allocatePolicy'?: KoordinatorReservationAllocatePolicy;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {KoordinatorReservationStatus}
|
|
80
|
+
* @memberof KoordinatorNodeReservation
|
|
81
|
+
*/
|
|
82
|
+
'status'?: KoordinatorReservationStatus;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
export const KoordinatorReservationAllocatePolicy = {
|
|
24
|
+
Restricted: 'Restricted',
|
|
25
|
+
Aligned: 'Aligned'
|
|
26
|
+
} as const;
|
|
27
|
+
|
|
28
|
+
export type KoordinatorReservationAllocatePolicy = typeof KoordinatorReservationAllocatePolicy[keyof typeof KoordinatorReservationAllocatePolicy];
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
package/src/adminapi/models/{storage-config-log.ts → koordinator-reservation-resource-class.ts}
RENAMED
|
@@ -15,16 +15,17 @@
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
*
|
|
19
19
|
* @export
|
|
20
|
-
* @
|
|
20
|
+
* @enum {string}
|
|
21
21
|
*/
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
22
|
+
|
|
23
|
+
export const KoordinatorReservationResourceClass = {
|
|
24
|
+
database: 'database',
|
|
25
|
+
business: 'business'
|
|
26
|
+
} as const;
|
|
27
|
+
|
|
28
|
+
export type KoordinatorReservationResourceClass = typeof KoordinatorReservationResourceClass[keyof typeof KoordinatorReservationResourceClass];
|
|
29
|
+
|
|
30
|
+
|
|
30
31
|
|
|
@@ -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
|
+
* Resource requests supported by KBE for Koordinator Reservations. Values are Kubernetes quantities and responses use Kubernetes canonical quantity strings.
|
|
19
|
+
* @export
|
|
20
|
+
* @interface KoordinatorReservationResources
|
|
21
|
+
*/
|
|
22
|
+
export interface KoordinatorReservationResources {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof KoordinatorReservationResources
|
|
27
|
+
*/
|
|
28
|
+
'cpu'?: string;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof KoordinatorReservationResources
|
|
33
|
+
*/
|
|
34
|
+
'memory'?: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Admin API
|
|
5
|
+
* The Admin API is used to manage the ApeCloud platform.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@apecloud.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { KoordinatorReservationResources } from './koordinator-reservation-resources';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @export
|
|
23
|
+
* @interface KoordinatorReservationStatus
|
|
24
|
+
*/
|
|
25
|
+
export interface KoordinatorReservationStatus {
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof KoordinatorReservationStatus
|
|
30
|
+
*/
|
|
31
|
+
'phase'?: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof KoordinatorReservationStatus
|
|
36
|
+
*/
|
|
37
|
+
'nodeName'?: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {KoordinatorReservationResources}
|
|
41
|
+
* @memberof KoordinatorReservationStatus
|
|
42
|
+
*/
|
|
43
|
+
'allocatable'?: KoordinatorReservationResources;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {KoordinatorReservationResources}
|
|
47
|
+
* @memberof KoordinatorReservationStatus
|
|
48
|
+
*/
|
|
49
|
+
'allocated'?: KoordinatorReservationResources;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {KoordinatorReservationResources}
|
|
53
|
+
* @memberof KoordinatorReservationStatus
|
|
54
|
+
*/
|
|
55
|
+
'available'?: KoordinatorReservationResources;
|
|
56
|
+
}
|
|
57
|
+
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Admin API
|
|
5
|
+
* The Admin API is used to manage the ApeCloud platform.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@apecloud.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { KoordinatorReservationResourceClass } from './koordinator-reservation-resource-class';
|
|
19
|
+
// May contain unused imports in some cases
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import type { KoordinatorReservationResources } from './koordinator-reservation-resources';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface KoordinatorReservationSummaryItem
|
|
27
|
+
*/
|
|
28
|
+
export interface KoordinatorReservationSummaryItem {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {KoordinatorReservationResourceClass}
|
|
32
|
+
* @memberof KoordinatorReservationSummaryItem
|
|
33
|
+
*/
|
|
34
|
+
'resourceClass'?: KoordinatorReservationResourceClass;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {number}
|
|
38
|
+
* @memberof KoordinatorReservationSummaryItem
|
|
39
|
+
*/
|
|
40
|
+
'nodeCount'?: number;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {KoordinatorReservationResources}
|
|
44
|
+
* @memberof KoordinatorReservationSummaryItem
|
|
45
|
+
*/
|
|
46
|
+
'total'?: KoordinatorReservationResources;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {KoordinatorReservationResources}
|
|
50
|
+
* @memberof KoordinatorReservationSummaryItem
|
|
51
|
+
*/
|
|
52
|
+
'allocated'?: KoordinatorReservationResources;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {KoordinatorReservationResources}
|
|
56
|
+
* @memberof KoordinatorReservationSummaryItem
|
|
57
|
+
*/
|
|
58
|
+
'available'?: KoordinatorReservationResources;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Admin API
|
|
5
|
+
* The Admin API is used to manage the ApeCloud platform.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@apecloud.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { KoordinatorReservationSummaryItem } from './koordinator-reservation-summary-item';
|
|
19
|
+
// May contain unused imports in some cases
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import type { SchedulerOption } from './scheduler-option';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface KoordinatorReservationSummary
|
|
27
|
+
*/
|
|
28
|
+
export interface KoordinatorReservationSummary {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {boolean}
|
|
32
|
+
* @memberof KoordinatorReservationSummary
|
|
33
|
+
*/
|
|
34
|
+
'enabled': boolean;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof KoordinatorReservationSummary
|
|
39
|
+
*/
|
|
40
|
+
'schedulerName'?: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof KoordinatorReservationSummary
|
|
45
|
+
*/
|
|
46
|
+
'defaultSchedulerName'?: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {Array<SchedulerOption>}
|
|
50
|
+
* @memberof KoordinatorReservationSummary
|
|
51
|
+
*/
|
|
52
|
+
'schedulerOptions': Array<SchedulerOption>;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {Array<KoordinatorReservationSummaryItem>}
|
|
56
|
+
* @memberof KoordinatorReservationSummary
|
|
57
|
+
*/
|
|
58
|
+
'items': Array<KoordinatorReservationSummaryItem>;
|
|
59
|
+
}
|
|
60
|
+
|
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { KoordinatorNodeReservation } from './koordinator-node-reservation';
|
|
16
19
|
// May contain unused imports in some cases
|
|
17
20
|
// @ts-ignore
|
|
18
21
|
import type { NodeStatus } from './node-status';
|
|
@@ -110,6 +113,12 @@ export interface Node {
|
|
|
110
113
|
* @memberof Node
|
|
111
114
|
*/
|
|
112
115
|
'managed'?: boolean;
|
|
116
|
+
/**
|
|
117
|
+
*
|
|
118
|
+
* @type {Array<KoordinatorNodeReservation>}
|
|
119
|
+
* @memberof Node
|
|
120
|
+
*/
|
|
121
|
+
'koordinatorReservations'?: Array<KoordinatorNodeReservation>;
|
|
113
122
|
/**
|
|
114
123
|
*
|
|
115
124
|
* @type {NodeStatus}
|
|
@@ -80,5 +80,11 @@ export interface ParameterProp {
|
|
|
80
80
|
* @memberof ParameterProp
|
|
81
81
|
*/
|
|
82
82
|
'enum'?: Array<any>;
|
|
83
|
+
/**
|
|
84
|
+
* The unit of the parameter value (e.g., seconds, bytes, ms, percentage)
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof ParameterProp
|
|
87
|
+
*/
|
|
88
|
+
'unit'?: string;
|
|
83
89
|
}
|
|
84
90
|
|