kb-cloud-client-typescript 2.2.136 → 2.2.138
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/load-balancer-api.d.ts +175 -0
- package/dist/adminapi/apis/load-balancer-api.d.ts.map +1 -1
- package/dist/adminapi/apis/load-balancer-api.js +213 -0
- package/dist/adminapi/apis/load-balancer-api.js.map +1 -1
- package/dist/adminapi/models/index.d.ts +3 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +3 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/load-balancer-annotations.d.ts +35 -0
- package/dist/adminapi/models/load-balancer-annotations.d.ts.map +1 -0
- package/dist/adminapi/models/load-balancer-annotations.js +16 -0
- package/dist/adminapi/models/load-balancer-annotations.js.map +1 -0
- package/dist/adminapi/models/load-balancer-config-update.d.ts +26 -0
- package/dist/adminapi/models/load-balancer-config-update.d.ts.map +1 -0
- package/dist/adminapi/models/load-balancer-config-update.js +16 -0
- package/dist/adminapi/models/load-balancer-config-update.js.map +1 -0
- package/dist/adminapi/models/load-balancer-config.d.ts +32 -0
- package/dist/adminapi/models/load-balancer-config.d.ts.map +1 -0
- package/dist/adminapi/models/load-balancer-config.js +16 -0
- package/dist/adminapi/models/load-balancer-config.js.map +1 -0
- package/dist/adminapi/models/mode-option-values-mappings.d.ts +1 -1
- package/dist/internalapi/apis/recycle-bin-cluster-api.d.ts +15 -7
- package/dist/internalapi/apis/recycle-bin-cluster-api.d.ts.map +1 -1
- package/dist/internalapi/apis/recycle-bin-cluster-api.js +18 -11
- package/dist/internalapi/apis/recycle-bin-cluster-api.js.map +1 -1
- package/dist/openapi/models/mode-option-values-mappings.d.ts +1 -1
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +3 -0
- package/src/adminapi/apis/load-balancer-api.ts +318 -0
- package/src/adminapi/models/index.ts +3 -0
- package/src/adminapi/models/load-balancer-annotations.ts +36 -0
- package/src/adminapi/models/load-balancer-config-update.ts +33 -0
- package/src/adminapi/models/load-balancer-config.ts +39 -0
- package/src/adminapi/models/mode-option-values-mappings.ts +1 -1
- package/src/adminapi.yaml +117 -0
- package/src/internalapi/apis/recycle-bin-cluster-api.ts +29 -14
- package/src/internalapi.yaml +9 -3
- package/src/openapi/models/mode-option-values-mappings.ts +1 -1
- package/src/openapi.yaml +1 -0
|
@@ -25,6 +25,10 @@ import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError
|
|
|
25
25
|
import type { APIErrorResponse } from '../models';
|
|
26
26
|
// @ts-ignore
|
|
27
27
|
import type { LoadBalancer } from '../models';
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
import type { LoadBalancerConfig } from '../models';
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
import type { LoadBalancerConfigUpdate } from '../models';
|
|
28
32
|
/**
|
|
29
33
|
* LoadBalancerApi - axios parameter creator
|
|
30
34
|
* @export
|
|
@@ -108,6 +112,135 @@ export const LoadBalancerApiAxiosParamCreator = function (configuration?: Config
|
|
|
108
112
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
109
113
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
110
114
|
|
|
115
|
+
return {
|
|
116
|
+
url: toPathString(localVarUrlObj),
|
|
117
|
+
options: localVarRequestOptions,
|
|
118
|
+
};
|
|
119
|
+
},
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @summary Get the effective load balancer configuration of an environment
|
|
123
|
+
* @param {string} environmentName name of the environment
|
|
124
|
+
* @param {*} [options] Override http request option.
|
|
125
|
+
* @throws {RequiredError}
|
|
126
|
+
*/
|
|
127
|
+
getLoadBalancerConfig: async (environmentName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
128
|
+
// verify required parameter 'environmentName' is not null or undefined
|
|
129
|
+
assertParamExists('getLoadBalancerConfig', 'environmentName', environmentName)
|
|
130
|
+
const localVarPath = `/admin/v1/environments/{environmentName}/loadbalancer/config`
|
|
131
|
+
.replace(`{${"environmentName"}}`, encodeURIComponent(String(environmentName)));
|
|
132
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
133
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
134
|
+
let baseOptions;
|
|
135
|
+
if (configuration) {
|
|
136
|
+
baseOptions = configuration.baseOptions;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
140
|
+
const localVarHeaderParameter = {} as any;
|
|
141
|
+
const localVarQueryParameter = {} as any;
|
|
142
|
+
|
|
143
|
+
// authentication BearerToken required
|
|
144
|
+
// http bearer authentication required
|
|
145
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
146
|
+
|
|
147
|
+
// authentication DigestAuth required
|
|
148
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
153
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
154
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
155
|
+
|
|
156
|
+
return {
|
|
157
|
+
url: toPathString(localVarUrlObj),
|
|
158
|
+
options: localVarRequestOptions,
|
|
159
|
+
};
|
|
160
|
+
},
|
|
161
|
+
/**
|
|
162
|
+
*
|
|
163
|
+
* @summary Reset the environment load balancer configuration to the current provider defaults
|
|
164
|
+
* @param {string} environmentName name of the environment
|
|
165
|
+
* @param {*} [options] Override http request option.
|
|
166
|
+
* @throws {RequiredError}
|
|
167
|
+
*/
|
|
168
|
+
resetLoadBalancerConfig: async (environmentName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
169
|
+
// verify required parameter 'environmentName' is not null or undefined
|
|
170
|
+
assertParamExists('resetLoadBalancerConfig', 'environmentName', environmentName)
|
|
171
|
+
const localVarPath = `/admin/v1/environments/{environmentName}/loadbalancer/config`
|
|
172
|
+
.replace(`{${"environmentName"}}`, encodeURIComponent(String(environmentName)));
|
|
173
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
174
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
175
|
+
let baseOptions;
|
|
176
|
+
if (configuration) {
|
|
177
|
+
baseOptions = configuration.baseOptions;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
181
|
+
const localVarHeaderParameter = {} as any;
|
|
182
|
+
const localVarQueryParameter = {} as any;
|
|
183
|
+
|
|
184
|
+
// authentication BearerToken required
|
|
185
|
+
// http bearer authentication required
|
|
186
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
187
|
+
|
|
188
|
+
// authentication DigestAuth required
|
|
189
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
194
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
195
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
196
|
+
|
|
197
|
+
return {
|
|
198
|
+
url: toPathString(localVarUrlObj),
|
|
199
|
+
options: localVarRequestOptions,
|
|
200
|
+
};
|
|
201
|
+
},
|
|
202
|
+
/**
|
|
203
|
+
*
|
|
204
|
+
* @summary Save and immediately activate the load balancer configuration of an environment
|
|
205
|
+
* @param {string} environmentName name of the environment
|
|
206
|
+
* @param {LoadBalancerConfigUpdate} body
|
|
207
|
+
* @param {*} [options] Override http request option.
|
|
208
|
+
* @throws {RequiredError}
|
|
209
|
+
*/
|
|
210
|
+
updateLoadBalancerConfig: async (environmentName: string, body: LoadBalancerConfigUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
211
|
+
// verify required parameter 'environmentName' is not null or undefined
|
|
212
|
+
assertParamExists('updateLoadBalancerConfig', 'environmentName', environmentName)
|
|
213
|
+
// verify required parameter 'body' is not null or undefined
|
|
214
|
+
assertParamExists('updateLoadBalancerConfig', 'body', body)
|
|
215
|
+
const localVarPath = `/admin/v1/environments/{environmentName}/loadbalancer/config`
|
|
216
|
+
.replace(`{${"environmentName"}}`, encodeURIComponent(String(environmentName)));
|
|
217
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
218
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
219
|
+
let baseOptions;
|
|
220
|
+
if (configuration) {
|
|
221
|
+
baseOptions = configuration.baseOptions;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
225
|
+
const localVarHeaderParameter = {} as any;
|
|
226
|
+
const localVarQueryParameter = {} as any;
|
|
227
|
+
|
|
228
|
+
// authentication BearerToken required
|
|
229
|
+
// http bearer authentication required
|
|
230
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
231
|
+
|
|
232
|
+
// authentication DigestAuth required
|
|
233
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
238
|
+
|
|
239
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
240
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
241
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
242
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
243
|
+
|
|
111
244
|
return {
|
|
112
245
|
url: toPathString(localVarUrlObj),
|
|
113
246
|
options: localVarRequestOptions,
|
|
@@ -149,6 +282,46 @@ export const LoadBalancerApiFp = function(configuration?: Configuration) {
|
|
|
149
282
|
const localVarOperationServerBasePath = operationServerMap['LoadBalancerApi.getLoadBalancer']?.[localVarOperationServerIndex]?.url;
|
|
150
283
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
151
284
|
},
|
|
285
|
+
/**
|
|
286
|
+
*
|
|
287
|
+
* @summary Get the effective load balancer configuration of an environment
|
|
288
|
+
* @param {string} environmentName name of the environment
|
|
289
|
+
* @param {*} [options] Override http request option.
|
|
290
|
+
* @throws {RequiredError}
|
|
291
|
+
*/
|
|
292
|
+
async getLoadBalancerConfig(environmentName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoadBalancerConfig>> {
|
|
293
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getLoadBalancerConfig(environmentName, options);
|
|
294
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
295
|
+
const localVarOperationServerBasePath = operationServerMap['LoadBalancerApi.getLoadBalancerConfig']?.[localVarOperationServerIndex]?.url;
|
|
296
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
297
|
+
},
|
|
298
|
+
/**
|
|
299
|
+
*
|
|
300
|
+
* @summary Reset the environment load balancer configuration to the current provider defaults
|
|
301
|
+
* @param {string} environmentName name of the environment
|
|
302
|
+
* @param {*} [options] Override http request option.
|
|
303
|
+
* @throws {RequiredError}
|
|
304
|
+
*/
|
|
305
|
+
async resetLoadBalancerConfig(environmentName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoadBalancerConfig>> {
|
|
306
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.resetLoadBalancerConfig(environmentName, options);
|
|
307
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
308
|
+
const localVarOperationServerBasePath = operationServerMap['LoadBalancerApi.resetLoadBalancerConfig']?.[localVarOperationServerIndex]?.url;
|
|
309
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
310
|
+
},
|
|
311
|
+
/**
|
|
312
|
+
*
|
|
313
|
+
* @summary Save and immediately activate the load balancer configuration of an environment
|
|
314
|
+
* @param {string} environmentName name of the environment
|
|
315
|
+
* @param {LoadBalancerConfigUpdate} body
|
|
316
|
+
* @param {*} [options] Override http request option.
|
|
317
|
+
* @throws {RequiredError}
|
|
318
|
+
*/
|
|
319
|
+
async updateLoadBalancerConfig(environmentName: string, body: LoadBalancerConfigUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoadBalancerConfig>> {
|
|
320
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateLoadBalancerConfig(environmentName, body, options);
|
|
321
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
322
|
+
const localVarOperationServerBasePath = operationServerMap['LoadBalancerApi.updateLoadBalancerConfig']?.[localVarOperationServerIndex]?.url;
|
|
323
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
324
|
+
},
|
|
152
325
|
}
|
|
153
326
|
};
|
|
154
327
|
|
|
@@ -179,6 +352,36 @@ export const LoadBalancerApiFactory = function (configuration?: Configuration, b
|
|
|
179
352
|
getLoadBalancer(requestParameters: LoadBalancerApiGetLoadBalancerRequest, options?: RawAxiosRequestConfig): AxiosPromise<LoadBalancer> {
|
|
180
353
|
return localVarFp.getLoadBalancer(requestParameters.environmentName, options).then((request) => request(axios, basePath));
|
|
181
354
|
},
|
|
355
|
+
/**
|
|
356
|
+
*
|
|
357
|
+
* @summary Get the effective load balancer configuration of an environment
|
|
358
|
+
* @param {LoadBalancerApiGetLoadBalancerConfigRequest} requestParameters Request parameters.
|
|
359
|
+
* @param {*} [options] Override http request option.
|
|
360
|
+
* @throws {RequiredError}
|
|
361
|
+
*/
|
|
362
|
+
getLoadBalancerConfig(requestParameters: LoadBalancerApiGetLoadBalancerConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise<LoadBalancerConfig> {
|
|
363
|
+
return localVarFp.getLoadBalancerConfig(requestParameters.environmentName, options).then((request) => request(axios, basePath));
|
|
364
|
+
},
|
|
365
|
+
/**
|
|
366
|
+
*
|
|
367
|
+
* @summary Reset the environment load balancer configuration to the current provider defaults
|
|
368
|
+
* @param {LoadBalancerApiResetLoadBalancerConfigRequest} requestParameters Request parameters.
|
|
369
|
+
* @param {*} [options] Override http request option.
|
|
370
|
+
* @throws {RequiredError}
|
|
371
|
+
*/
|
|
372
|
+
resetLoadBalancerConfig(requestParameters: LoadBalancerApiResetLoadBalancerConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise<LoadBalancerConfig> {
|
|
373
|
+
return localVarFp.resetLoadBalancerConfig(requestParameters.environmentName, options).then((request) => request(axios, basePath));
|
|
374
|
+
},
|
|
375
|
+
/**
|
|
376
|
+
*
|
|
377
|
+
* @summary Save and immediately activate the load balancer configuration of an environment
|
|
378
|
+
* @param {LoadBalancerApiUpdateLoadBalancerConfigRequest} requestParameters Request parameters.
|
|
379
|
+
* @param {*} [options] Override http request option.
|
|
380
|
+
* @throws {RequiredError}
|
|
381
|
+
*/
|
|
382
|
+
updateLoadBalancerConfig(requestParameters: LoadBalancerApiUpdateLoadBalancerConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise<LoadBalancerConfig> {
|
|
383
|
+
return localVarFp.updateLoadBalancerConfig(requestParameters.environmentName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
384
|
+
},
|
|
182
385
|
};
|
|
183
386
|
};
|
|
184
387
|
|
|
@@ -208,6 +411,36 @@ export interface LoadBalancerApiInterface {
|
|
|
208
411
|
*/
|
|
209
412
|
getLoadBalancer(requestParameters: LoadBalancerApiGetLoadBalancerRequest, options?: RawAxiosRequestConfig): AxiosPromise<LoadBalancer>;
|
|
210
413
|
|
|
414
|
+
/**
|
|
415
|
+
*
|
|
416
|
+
* @summary Get the effective load balancer configuration of an environment
|
|
417
|
+
* @param {LoadBalancerApiGetLoadBalancerConfigRequest} requestParameters Request parameters.
|
|
418
|
+
* @param {*} [options] Override http request option.
|
|
419
|
+
* @throws {RequiredError}
|
|
420
|
+
* @memberof LoadBalancerApiInterface
|
|
421
|
+
*/
|
|
422
|
+
getLoadBalancerConfig(requestParameters: LoadBalancerApiGetLoadBalancerConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise<LoadBalancerConfig>;
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
*
|
|
426
|
+
* @summary Reset the environment load balancer configuration to the current provider defaults
|
|
427
|
+
* @param {LoadBalancerApiResetLoadBalancerConfigRequest} requestParameters Request parameters.
|
|
428
|
+
* @param {*} [options] Override http request option.
|
|
429
|
+
* @throws {RequiredError}
|
|
430
|
+
* @memberof LoadBalancerApiInterface
|
|
431
|
+
*/
|
|
432
|
+
resetLoadBalancerConfig(requestParameters: LoadBalancerApiResetLoadBalancerConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise<LoadBalancerConfig>;
|
|
433
|
+
|
|
434
|
+
/**
|
|
435
|
+
*
|
|
436
|
+
* @summary Save and immediately activate the load balancer configuration of an environment
|
|
437
|
+
* @param {LoadBalancerApiUpdateLoadBalancerConfigRequest} requestParameters Request parameters.
|
|
438
|
+
* @param {*} [options] Override http request option.
|
|
439
|
+
* @throws {RequiredError}
|
|
440
|
+
* @memberof LoadBalancerApiInterface
|
|
441
|
+
*/
|
|
442
|
+
updateLoadBalancerConfig(requestParameters: LoadBalancerApiUpdateLoadBalancerConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise<LoadBalancerConfig>;
|
|
443
|
+
|
|
211
444
|
}
|
|
212
445
|
|
|
213
446
|
/**
|
|
@@ -238,6 +471,55 @@ export interface LoadBalancerApiGetLoadBalancerRequest {
|
|
|
238
471
|
readonly environmentName: string
|
|
239
472
|
}
|
|
240
473
|
|
|
474
|
+
/**
|
|
475
|
+
* Request parameters for getLoadBalancerConfig operation in LoadBalancerApi.
|
|
476
|
+
* @export
|
|
477
|
+
* @interface LoadBalancerApiGetLoadBalancerConfigRequest
|
|
478
|
+
*/
|
|
479
|
+
export interface LoadBalancerApiGetLoadBalancerConfigRequest {
|
|
480
|
+
/**
|
|
481
|
+
* name of the environment
|
|
482
|
+
* @type {string}
|
|
483
|
+
* @memberof LoadBalancerApiGetLoadBalancerConfig
|
|
484
|
+
*/
|
|
485
|
+
readonly environmentName: string
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* Request parameters for resetLoadBalancerConfig operation in LoadBalancerApi.
|
|
490
|
+
* @export
|
|
491
|
+
* @interface LoadBalancerApiResetLoadBalancerConfigRequest
|
|
492
|
+
*/
|
|
493
|
+
export interface LoadBalancerApiResetLoadBalancerConfigRequest {
|
|
494
|
+
/**
|
|
495
|
+
* name of the environment
|
|
496
|
+
* @type {string}
|
|
497
|
+
* @memberof LoadBalancerApiResetLoadBalancerConfig
|
|
498
|
+
*/
|
|
499
|
+
readonly environmentName: string
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
/**
|
|
503
|
+
* Request parameters for updateLoadBalancerConfig operation in LoadBalancerApi.
|
|
504
|
+
* @export
|
|
505
|
+
* @interface LoadBalancerApiUpdateLoadBalancerConfigRequest
|
|
506
|
+
*/
|
|
507
|
+
export interface LoadBalancerApiUpdateLoadBalancerConfigRequest {
|
|
508
|
+
/**
|
|
509
|
+
* name of the environment
|
|
510
|
+
* @type {string}
|
|
511
|
+
* @memberof LoadBalancerApiUpdateLoadBalancerConfig
|
|
512
|
+
*/
|
|
513
|
+
readonly environmentName: string
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
*
|
|
517
|
+
* @type {LoadBalancerConfigUpdate}
|
|
518
|
+
* @memberof LoadBalancerApiUpdateLoadBalancerConfig
|
|
519
|
+
*/
|
|
520
|
+
readonly body: LoadBalancerConfigUpdate
|
|
521
|
+
}
|
|
522
|
+
|
|
241
523
|
/**
|
|
242
524
|
* LoadBalancerApi - object-oriented interface
|
|
243
525
|
* @export
|
|
@@ -268,5 +550,41 @@ export class LoadBalancerApi extends BaseAPI implements LoadBalancerApiInterface
|
|
|
268
550
|
public getLoadBalancer(requestParameters: LoadBalancerApiGetLoadBalancerRequest, options?: RawAxiosRequestConfig) {
|
|
269
551
|
return LoadBalancerApiFp(this.configuration).getLoadBalancer(requestParameters.environmentName, options).then((request) => request(this.axios, this.basePath));
|
|
270
552
|
}
|
|
553
|
+
|
|
554
|
+
/**
|
|
555
|
+
*
|
|
556
|
+
* @summary Get the effective load balancer configuration of an environment
|
|
557
|
+
* @param {LoadBalancerApiGetLoadBalancerConfigRequest} requestParameters Request parameters.
|
|
558
|
+
* @param {*} [options] Override http request option.
|
|
559
|
+
* @throws {RequiredError}
|
|
560
|
+
* @memberof LoadBalancerApi
|
|
561
|
+
*/
|
|
562
|
+
public getLoadBalancerConfig(requestParameters: LoadBalancerApiGetLoadBalancerConfigRequest, options?: RawAxiosRequestConfig) {
|
|
563
|
+
return LoadBalancerApiFp(this.configuration).getLoadBalancerConfig(requestParameters.environmentName, options).then((request) => request(this.axios, this.basePath));
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
/**
|
|
567
|
+
*
|
|
568
|
+
* @summary Reset the environment load balancer configuration to the current provider defaults
|
|
569
|
+
* @param {LoadBalancerApiResetLoadBalancerConfigRequest} requestParameters Request parameters.
|
|
570
|
+
* @param {*} [options] Override http request option.
|
|
571
|
+
* @throws {RequiredError}
|
|
572
|
+
* @memberof LoadBalancerApi
|
|
573
|
+
*/
|
|
574
|
+
public resetLoadBalancerConfig(requestParameters: LoadBalancerApiResetLoadBalancerConfigRequest, options?: RawAxiosRequestConfig) {
|
|
575
|
+
return LoadBalancerApiFp(this.configuration).resetLoadBalancerConfig(requestParameters.environmentName, options).then((request) => request(this.axios, this.basePath));
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
/**
|
|
579
|
+
*
|
|
580
|
+
* @summary Save and immediately activate the load balancer configuration of an environment
|
|
581
|
+
* @param {LoadBalancerApiUpdateLoadBalancerConfigRequest} requestParameters Request parameters.
|
|
582
|
+
* @param {*} [options] Override http request option.
|
|
583
|
+
* @throws {RequiredError}
|
|
584
|
+
* @memberof LoadBalancerApi
|
|
585
|
+
*/
|
|
586
|
+
public updateLoadBalancerConfig(requestParameters: LoadBalancerApiUpdateLoadBalancerConfigRequest, options?: RawAxiosRequestConfig) {
|
|
587
|
+
return LoadBalancerApiFp(this.configuration).updateLoadBalancerConfig(requestParameters.environmentName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
588
|
+
}
|
|
271
589
|
}
|
|
272
590
|
|
|
@@ -478,7 +478,10 @@ export * from './list-seaweed-fspolicies200-response-items-inner';
|
|
|
478
478
|
export * from './llm';
|
|
479
479
|
export * from './llm-list';
|
|
480
480
|
export * from './load-balancer';
|
|
481
|
+
export * from './load-balancer-annotations';
|
|
481
482
|
export * from './load-balancer-available-type';
|
|
483
|
+
export * from './load-balancer-config';
|
|
484
|
+
export * from './load-balancer-config-update';
|
|
482
485
|
export * from './load-balancer-ipam-status';
|
|
483
486
|
export * from './load-balancer-status';
|
|
484
487
|
export * from './localized-description';
|
|
@@ -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
|
+
* Provider-neutral annotations applied to load balancer Services by exposure type.
|
|
19
|
+
* @export
|
|
20
|
+
* @interface LoadBalancerAnnotations
|
|
21
|
+
*/
|
|
22
|
+
export interface LoadBalancerAnnotations {
|
|
23
|
+
/**
|
|
24
|
+
* Annotations used for load balancers exposed inside the VPC.
|
|
25
|
+
* @type {{ [key: string]: string; }}
|
|
26
|
+
* @memberof LoadBalancerAnnotations
|
|
27
|
+
*/
|
|
28
|
+
'vpc': { [key: string]: string; };
|
|
29
|
+
/**
|
|
30
|
+
* Annotations used for load balancers exposed to the Internet.
|
|
31
|
+
* @type {{ [key: string]: string; }}
|
|
32
|
+
* @memberof LoadBalancerAnnotations
|
|
33
|
+
*/
|
|
34
|
+
'internet': { [key: string]: string; };
|
|
35
|
+
}
|
|
36
|
+
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { LoadBalancerAnnotations } from './load-balancer-annotations';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Complete editable load balancer annotations for an environment.
|
|
22
|
+
* @export
|
|
23
|
+
* @interface LoadBalancerConfigUpdate
|
|
24
|
+
*/
|
|
25
|
+
export interface LoadBalancerConfigUpdate {
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {LoadBalancerAnnotations}
|
|
29
|
+
* @memberof LoadBalancerConfigUpdate
|
|
30
|
+
*/
|
|
31
|
+
'annotations': LoadBalancerAnnotations;
|
|
32
|
+
}
|
|
33
|
+
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Admin API
|
|
5
|
+
* The Admin API is used to manage the ApeCloud platform.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@apecloud.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { LoadBalancerAnnotations } from './load-balancer-annotations';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Effective load balancer annotations for an environment.
|
|
22
|
+
* @export
|
|
23
|
+
* @interface LoadBalancerConfig
|
|
24
|
+
*/
|
|
25
|
+
export interface LoadBalancerConfig {
|
|
26
|
+
/**
|
|
27
|
+
* Current environment provider returned by the server.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof LoadBalancerConfig
|
|
30
|
+
*/
|
|
31
|
+
'provider': string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {LoadBalancerAnnotations}
|
|
35
|
+
* @memberof LoadBalancerConfig
|
|
36
|
+
*/
|
|
37
|
+
'annotations': LoadBalancerAnnotations;
|
|
38
|
+
}
|
|
39
|
+
|
|
@@ -24,7 +24,7 @@ import type { ModeOptionValuesMappingsMappingsInner } from './mode-option-values
|
|
|
24
24
|
*/
|
|
25
25
|
export interface ModeOptionValuesMappings {
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* if omitted, all KB versions are compatible
|
|
28
28
|
* @type {Array<string>}
|
|
29
29
|
* @memberof ModeOptionValuesMappings
|
|
30
30
|
*/
|
package/src/adminapi.yaml
CHANGED
|
@@ -7165,6 +7165,85 @@ paths:
|
|
|
7165
7165
|
'404':
|
|
7166
7166
|
$ref: '#/components/responses/404'
|
|
7167
7167
|
x-codegen-request-body-name: body
|
|
7168
|
+
/admin/v1/environments/{environmentName}/loadbalancer/config:
|
|
7169
|
+
get:
|
|
7170
|
+
tags:
|
|
7171
|
+
- loadBalancer
|
|
7172
|
+
operationId: getLoadBalancerConfig
|
|
7173
|
+
summary: Get the effective load balancer configuration of an environment
|
|
7174
|
+
parameters:
|
|
7175
|
+
- name: environmentName
|
|
7176
|
+
in: path
|
|
7177
|
+
description: name of the environment
|
|
7178
|
+
required: true
|
|
7179
|
+
schema:
|
|
7180
|
+
type: string
|
|
7181
|
+
responses:
|
|
7182
|
+
'200':
|
|
7183
|
+
description: A successful response.
|
|
7184
|
+
content:
|
|
7185
|
+
application/json:
|
|
7186
|
+
schema:
|
|
7187
|
+
$ref: '#/components/schemas/loadBalancerConfig'
|
|
7188
|
+
'403':
|
|
7189
|
+
$ref: '#/components/responses/403'
|
|
7190
|
+
'404':
|
|
7191
|
+
$ref: '#/components/responses/404'
|
|
7192
|
+
put:
|
|
7193
|
+
tags:
|
|
7194
|
+
- loadBalancer
|
|
7195
|
+
operationId: updateLoadBalancerConfig
|
|
7196
|
+
summary: Save and immediately activate the load balancer configuration of an environment
|
|
7197
|
+
parameters:
|
|
7198
|
+
- name: environmentName
|
|
7199
|
+
in: path
|
|
7200
|
+
description: name of the environment
|
|
7201
|
+
required: true
|
|
7202
|
+
schema:
|
|
7203
|
+
type: string
|
|
7204
|
+
requestBody:
|
|
7205
|
+
required: true
|
|
7206
|
+
content:
|
|
7207
|
+
application/json:
|
|
7208
|
+
schema:
|
|
7209
|
+
$ref: '#/components/schemas/loadBalancerConfigUpdate'
|
|
7210
|
+
responses:
|
|
7211
|
+
'200':
|
|
7212
|
+
description: A successful response.
|
|
7213
|
+
content:
|
|
7214
|
+
application/json:
|
|
7215
|
+
schema:
|
|
7216
|
+
$ref: '#/components/schemas/loadBalancerConfig'
|
|
7217
|
+
'400':
|
|
7218
|
+
$ref: '#/components/responses/400'
|
|
7219
|
+
'403':
|
|
7220
|
+
$ref: '#/components/responses/403'
|
|
7221
|
+
'404':
|
|
7222
|
+
$ref: '#/components/responses/404'
|
|
7223
|
+
x-codegen-request-body-name: body
|
|
7224
|
+
delete:
|
|
7225
|
+
tags:
|
|
7226
|
+
- loadBalancer
|
|
7227
|
+
operationId: resetLoadBalancerConfig
|
|
7228
|
+
summary: Reset the environment load balancer configuration to the current provider defaults
|
|
7229
|
+
parameters:
|
|
7230
|
+
- name: environmentName
|
|
7231
|
+
in: path
|
|
7232
|
+
description: name of the environment
|
|
7233
|
+
required: true
|
|
7234
|
+
schema:
|
|
7235
|
+
type: string
|
|
7236
|
+
responses:
|
|
7237
|
+
'200':
|
|
7238
|
+
description: The effective provider defaults after reset.
|
|
7239
|
+
content:
|
|
7240
|
+
application/json:
|
|
7241
|
+
schema:
|
|
7242
|
+
$ref: '#/components/schemas/loadBalancerConfig'
|
|
7243
|
+
'403':
|
|
7244
|
+
$ref: '#/components/responses/403'
|
|
7245
|
+
'404':
|
|
7246
|
+
$ref: '#/components/responses/404'
|
|
7168
7247
|
/admin/v1/environments/{environmentName}/loadbalancer/vipPool:
|
|
7169
7248
|
get:
|
|
7170
7249
|
operationId: listVIPPool
|
|
@@ -26751,6 +26830,43 @@ components:
|
|
|
26751
26830
|
required:
|
|
26752
26831
|
- status
|
|
26753
26832
|
type: object
|
|
26833
|
+
loadBalancerAnnotations:
|
|
26834
|
+
description: Provider-neutral annotations applied to load balancer Services by exposure type.
|
|
26835
|
+
type: object
|
|
26836
|
+
properties:
|
|
26837
|
+
vpc:
|
|
26838
|
+
description: Annotations used for load balancers exposed inside the VPC.
|
|
26839
|
+
type: object
|
|
26840
|
+
additionalProperties:
|
|
26841
|
+
type: string
|
|
26842
|
+
internet:
|
|
26843
|
+
description: Annotations used for load balancers exposed to the Internet.
|
|
26844
|
+
type: object
|
|
26845
|
+
additionalProperties:
|
|
26846
|
+
type: string
|
|
26847
|
+
required:
|
|
26848
|
+
- vpc
|
|
26849
|
+
- internet
|
|
26850
|
+
loadBalancerConfig:
|
|
26851
|
+
description: Effective load balancer annotations for an environment.
|
|
26852
|
+
type: object
|
|
26853
|
+
properties:
|
|
26854
|
+
provider:
|
|
26855
|
+
description: Current environment provider returned by the server.
|
|
26856
|
+
type: string
|
|
26857
|
+
annotations:
|
|
26858
|
+
$ref: '#/components/schemas/loadBalancerAnnotations'
|
|
26859
|
+
required:
|
|
26860
|
+
- provider
|
|
26861
|
+
- annotations
|
|
26862
|
+
loadBalancerConfigUpdate:
|
|
26863
|
+
description: Complete editable load balancer annotations for an environment.
|
|
26864
|
+
type: object
|
|
26865
|
+
properties:
|
|
26866
|
+
annotations:
|
|
26867
|
+
$ref: '#/components/schemas/loadBalancerAnnotations'
|
|
26868
|
+
required:
|
|
26869
|
+
- annotations
|
|
26754
26870
|
vipPool:
|
|
26755
26871
|
description: VIP Pool
|
|
26756
26872
|
properties:
|
|
@@ -29054,6 +29170,7 @@ components:
|
|
|
29054
29170
|
properties:
|
|
29055
29171
|
compatibleKBVersions:
|
|
29056
29172
|
type: array
|
|
29173
|
+
description: if omitted, all KB versions are compatible
|
|
29057
29174
|
items:
|
|
29058
29175
|
type: string
|
|
29059
29176
|
mappings:
|