kb-cloud-client-typescript 2.4.0-alpha.88 → 2.4.0-alpha.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adminapi/apis/cluster-log-api.d.ts +198 -0
- package/dist/adminapi/apis/cluster-log-api.d.ts.map +1 -1
- package/dist/adminapi/apis/cluster-log-api.js +228 -0
- package/dist/adminapi/apis/cluster-log-api.js.map +1 -1
- package/dist/adminapi/apis/environment-api.d.ts +174 -0
- package/dist/adminapi/apis/environment-api.d.ts.map +1 -1
- package/dist/adminapi/apis/environment-api.js +213 -0
- package/dist/adminapi/apis/environment-api.js.map +1 -1
- package/dist/adminapi/models/index.d.ts +1 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +1 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/log-retention.d.ts +49 -0
- package/dist/adminapi/models/log-retention.d.ts.map +1 -0
- package/dist/adminapi/models/log-retention.js +16 -0
- package/dist/adminapi/models/log-retention.js.map +1 -0
- package/dist/internalapi/api.d.ts +2 -0
- package/dist/internalapi/api.d.ts.map +1 -1
- package/dist/internalapi/api.js +2 -0
- package/dist/internalapi/api.js.map +1 -1
- package/dist/internalapi/apis/opsrequest-api.d.ts +121 -0
- package/dist/internalapi/apis/opsrequest-api.d.ts.map +1 -0
- package/dist/internalapi/apis/opsrequest-api.js +142 -0
- package/dist/internalapi/apis/opsrequest-api.js.map +1 -0
- package/dist/internalapi/apis/parameter-api.d.ts +128 -0
- package/dist/internalapi/apis/parameter-api.d.ts.map +1 -0
- package/dist/internalapi/apis/parameter-api.js +146 -0
- package/dist/internalapi/apis/parameter-api.js.map +1 -0
- package/dist/internalapi/apis/shared-api.d.ts +153 -0
- package/dist/internalapi/apis/shared-api.d.ts.map +1 -1
- package/dist/internalapi/apis/shared-api.js +160 -0
- package/dist/internalapi/apis/shared-api.js.map +1 -1
- package/dist/internalapi/models/index.d.ts +7 -0
- package/dist/internalapi/models/index.d.ts.map +1 -1
- package/dist/internalapi/models/index.js +7 -0
- package/dist/internalapi/models/index.js.map +1 -1
- package/dist/internalapi/models/ops-request-name.d.ts +31 -0
- package/dist/internalapi/models/ops-request-name.d.ts.map +1 -0
- package/dist/internalapi/models/ops-request-name.js +16 -0
- package/dist/internalapi/models/ops-request-name.js.map +1 -0
- package/dist/internalapi/models/parameter-item.d.ts +50 -0
- package/dist/internalapi/models/parameter-item.d.ts.map +1 -0
- package/dist/internalapi/models/parameter-item.js +16 -0
- package/dist/internalapi/models/parameter-item.js.map +1 -0
- package/dist/internalapi/models/parameter-list.d.ts +38 -0
- package/dist/internalapi/models/parameter-list.d.ts.map +1 -0
- package/dist/internalapi/models/parameter-list.js +16 -0
- package/dist/internalapi/models/parameter-list.js.map +1 -0
- package/dist/internalapi/models/parameter-prop.d.ts +85 -0
- package/dist/internalapi/models/parameter-prop.d.ts.map +1 -0
- package/dist/internalapi/models/parameter-prop.js +16 -0
- package/dist/internalapi/models/parameter-prop.js.map +1 -0
- package/dist/internalapi/models/reconfigure-create.d.ts +52 -0
- package/dist/internalapi/models/reconfigure-create.d.ts.map +1 -0
- package/dist/internalapi/models/reconfigure-create.js +16 -0
- package/dist/internalapi/models/reconfigure-create.js.map +1 -0
- package/dist/internalapi/models/task-schedule-type.d.ts +23 -0
- package/dist/internalapi/models/task-schedule-type.d.ts.map +1 -0
- package/dist/internalapi/models/task-schedule-type.js +27 -0
- package/dist/internalapi/models/task-schedule-type.js.map +1 -0
- package/dist/internalapi/models/task-schedule.d.ts +38 -0
- package/dist/internalapi/models/task-schedule.d.ts.map +1 -0
- package/dist/internalapi/models/task-schedule.js +16 -0
- package/dist/internalapi/models/task-schedule.js.map +1 -0
- package/dist/openapi/apis/cluster-log-api.d.ts +198 -0
- package/dist/openapi/apis/cluster-log-api.d.ts.map +1 -1
- package/dist/openapi/apis/cluster-log-api.js +228 -0
- package/dist/openapi/apis/cluster-log-api.js.map +1 -1
- package/dist/openapi/models/index.d.ts +1 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +1 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/dist/openapi/models/log-retention.d.ts +49 -0
- package/dist/openapi/models/log-retention.d.ts.map +1 -0
- package/dist/openapi/models/log-retention.js +16 -0
- package/dist/openapi/models/log-retention.js.map +1 -0
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +1 -0
- package/src/adminapi/apis/cluster-log-api.ts +352 -0
- package/src/adminapi/apis/environment-api.ts +316 -0
- package/src/adminapi/models/index.ts +1 -0
- package/src/adminapi/models/log-retention.ts +54 -0
- package/src/adminapi.yaml +227 -0
- package/src/internalapi/.openapi-generator/FILES +9 -0
- package/src/internalapi/api.ts +2 -0
- package/src/internalapi/apis/opsrequest-api.ts +197 -0
- package/src/internalapi/apis/parameter-api.ts +207 -0
- package/src/internalapi/apis/shared-api.ts +264 -0
- package/src/internalapi/models/index.ts +7 -0
- package/src/internalapi/models/ops-request-name.ts +36 -0
- package/src/internalapi/models/parameter-item.ts +57 -0
- package/src/internalapi/models/parameter-list.ts +45 -0
- package/src/internalapi/models/parameter-prop.ts +90 -0
- package/src/internalapi/models/reconfigure-create.ts +57 -0
- package/src/internalapi/models/task-schedule-type.ts +32 -0
- package/src/internalapi/models/task-schedule.ts +47 -0
- package/src/internalapi.yaml +224 -0
- package/src/openapi/.openapi-generator/FILES +1 -0
- package/src/openapi/apis/cluster-log-api.ts +352 -0
- package/src/openapi/models/index.ts +1 -0
- package/src/openapi/models/log-retention.ts +54 -0
- package/src/openapi.yaml +136 -0
|
@@ -78,6 +78,8 @@ import type { Kubeconfig } from '../models';
|
|
|
78
78
|
// @ts-ignore
|
|
79
79
|
import type { ListKubernetesNodeOpType } from '../models';
|
|
80
80
|
// @ts-ignore
|
|
81
|
+
import type { LogRetention } from '../models';
|
|
82
|
+
// @ts-ignore
|
|
81
83
|
import type { NodeGroup } from '../models';
|
|
82
84
|
// @ts-ignore
|
|
83
85
|
import type { NodeGroupUpdate } from '../models';
|
|
@@ -446,6 +448,47 @@ export const EnvironmentApiAxiosParamCreator = function (configuration?: Configu
|
|
|
446
448
|
|
|
447
449
|
|
|
448
450
|
|
|
451
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
452
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
453
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
454
|
+
|
|
455
|
+
return {
|
|
456
|
+
url: toPathString(localVarUrlObj),
|
|
457
|
+
options: localVarRequestOptions,
|
|
458
|
+
};
|
|
459
|
+
},
|
|
460
|
+
/**
|
|
461
|
+
* Removes environment settings and returns the built-in defaults.
|
|
462
|
+
* @summary Reset environment log retention
|
|
463
|
+
* @param {string} environmentName
|
|
464
|
+
* @param {*} [options] Override http request option.
|
|
465
|
+
* @throws {RequiredError}
|
|
466
|
+
*/
|
|
467
|
+
deleteEnvironmentLogRetention: async (environmentName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
468
|
+
// verify required parameter 'environmentName' is not null or undefined
|
|
469
|
+
assertParamExists('deleteEnvironmentLogRetention', 'environmentName', environmentName)
|
|
470
|
+
const localVarPath = `/admin/v1/environments/{environmentName}/logs/retention`
|
|
471
|
+
.replace(`{${"environmentName"}}`, encodeURIComponent(String(environmentName)));
|
|
472
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
473
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
474
|
+
let baseOptions;
|
|
475
|
+
if (configuration) {
|
|
476
|
+
baseOptions = configuration.baseOptions;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
480
|
+
const localVarHeaderParameter = {} as any;
|
|
481
|
+
const localVarQueryParameter = {} as any;
|
|
482
|
+
|
|
483
|
+
// authentication BearerToken required
|
|
484
|
+
// http bearer authentication required
|
|
485
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
486
|
+
|
|
487
|
+
// authentication DigestAuth required
|
|
488
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
489
|
+
|
|
490
|
+
|
|
491
|
+
|
|
449
492
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
450
493
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
451
494
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -790,6 +833,47 @@ export const EnvironmentApiAxiosParamCreator = function (configuration?: Configu
|
|
|
790
833
|
|
|
791
834
|
|
|
792
835
|
|
|
836
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
837
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
838
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
839
|
+
|
|
840
|
+
return {
|
|
841
|
+
url: toPathString(localVarUrlObj),
|
|
842
|
+
options: localVarRequestOptions,
|
|
843
|
+
};
|
|
844
|
+
},
|
|
845
|
+
/**
|
|
846
|
+
*
|
|
847
|
+
* @summary Get environment log retention
|
|
848
|
+
* @param {string} environmentName
|
|
849
|
+
* @param {*} [options] Override http request option.
|
|
850
|
+
* @throws {RequiredError}
|
|
851
|
+
*/
|
|
852
|
+
getEnvironmentLogRetention: async (environmentName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
853
|
+
// verify required parameter 'environmentName' is not null or undefined
|
|
854
|
+
assertParamExists('getEnvironmentLogRetention', 'environmentName', environmentName)
|
|
855
|
+
const localVarPath = `/admin/v1/environments/{environmentName}/logs/retention`
|
|
856
|
+
.replace(`{${"environmentName"}}`, encodeURIComponent(String(environmentName)));
|
|
857
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
858
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
859
|
+
let baseOptions;
|
|
860
|
+
if (configuration) {
|
|
861
|
+
baseOptions = configuration.baseOptions;
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
865
|
+
const localVarHeaderParameter = {} as any;
|
|
866
|
+
const localVarQueryParameter = {} as any;
|
|
867
|
+
|
|
868
|
+
// authentication BearerToken required
|
|
869
|
+
// http bearer authentication required
|
|
870
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
871
|
+
|
|
872
|
+
// authentication DigestAuth required
|
|
873
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
874
|
+
|
|
875
|
+
|
|
876
|
+
|
|
793
877
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
794
878
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
795
879
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -2098,6 +2182,53 @@ export const EnvironmentApiAxiosParamCreator = function (configuration?: Configu
|
|
|
2098
2182
|
options: localVarRequestOptions,
|
|
2099
2183
|
};
|
|
2100
2184
|
},
|
|
2185
|
+
/**
|
|
2186
|
+
* Replaces the current settings. Applies to the next cleanup.
|
|
2187
|
+
* @summary Set environment log retention
|
|
2188
|
+
* @param {string} environmentName
|
|
2189
|
+
* @param {LogRetention} logRetention
|
|
2190
|
+
* @param {*} [options] Override http request option.
|
|
2191
|
+
* @throws {RequiredError}
|
|
2192
|
+
*/
|
|
2193
|
+
putEnvironmentLogRetention: async (environmentName: string, logRetention: LogRetention, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2194
|
+
// verify required parameter 'environmentName' is not null or undefined
|
|
2195
|
+
assertParamExists('putEnvironmentLogRetention', 'environmentName', environmentName)
|
|
2196
|
+
// verify required parameter 'logRetention' is not null or undefined
|
|
2197
|
+
assertParamExists('putEnvironmentLogRetention', 'logRetention', logRetention)
|
|
2198
|
+
const localVarPath = `/admin/v1/environments/{environmentName}/logs/retention`
|
|
2199
|
+
.replace(`{${"environmentName"}}`, encodeURIComponent(String(environmentName)));
|
|
2200
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2201
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2202
|
+
let baseOptions;
|
|
2203
|
+
if (configuration) {
|
|
2204
|
+
baseOptions = configuration.baseOptions;
|
|
2205
|
+
}
|
|
2206
|
+
|
|
2207
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
2208
|
+
const localVarHeaderParameter = {} as any;
|
|
2209
|
+
const localVarQueryParameter = {} as any;
|
|
2210
|
+
|
|
2211
|
+
// authentication BearerToken required
|
|
2212
|
+
// http bearer authentication required
|
|
2213
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2214
|
+
|
|
2215
|
+
// authentication DigestAuth required
|
|
2216
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
2217
|
+
|
|
2218
|
+
|
|
2219
|
+
|
|
2220
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2221
|
+
|
|
2222
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2223
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2224
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2225
|
+
localVarRequestOptions.data = serializeDataIfNeeded(logRetention, localVarRequestOptions, configuration)
|
|
2226
|
+
|
|
2227
|
+
return {
|
|
2228
|
+
url: toPathString(localVarUrlObj),
|
|
2229
|
+
options: localVarRequestOptions,
|
|
2230
|
+
};
|
|
2231
|
+
},
|
|
2101
2232
|
/**
|
|
2102
2233
|
* Remove the node from maintenance mode. This action restores the node to its normal operational state, allowing it to resume handling workloads.
|
|
2103
2234
|
* @summary Remove the node from maintenance mode
|
|
@@ -2488,6 +2619,19 @@ export const EnvironmentApiFp = function(configuration?: Configuration) {
|
|
|
2488
2619
|
const localVarOperationServerBasePath = operationServerMap['EnvironmentApi.deleteEnvironmentCredential']?.[localVarOperationServerIndex]?.url;
|
|
2489
2620
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2490
2621
|
},
|
|
2622
|
+
/**
|
|
2623
|
+
* Removes environment settings and returns the built-in defaults.
|
|
2624
|
+
* @summary Reset environment log retention
|
|
2625
|
+
* @param {string} environmentName
|
|
2626
|
+
* @param {*} [options] Override http request option.
|
|
2627
|
+
* @throws {RequiredError}
|
|
2628
|
+
*/
|
|
2629
|
+
async deleteEnvironmentLogRetention(environmentName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LogRetention>> {
|
|
2630
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteEnvironmentLogRetention(environmentName, options);
|
|
2631
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2632
|
+
const localVarOperationServerBasePath = operationServerMap['EnvironmentApi.deleteEnvironmentLogRetention']?.[localVarOperationServerIndex]?.url;
|
|
2633
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2634
|
+
},
|
|
2491
2635
|
/**
|
|
2492
2636
|
*
|
|
2493
2637
|
* @summary Delete environment node group
|
|
@@ -2596,6 +2740,19 @@ export const EnvironmentApiFp = function(configuration?: Configuration) {
|
|
|
2596
2740
|
const localVarOperationServerBasePath = operationServerMap['EnvironmentApi.getEnvironmentKubeconfig']?.[localVarOperationServerIndex]?.url;
|
|
2597
2741
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2598
2742
|
},
|
|
2743
|
+
/**
|
|
2744
|
+
*
|
|
2745
|
+
* @summary Get environment log retention
|
|
2746
|
+
* @param {string} environmentName
|
|
2747
|
+
* @param {*} [options] Override http request option.
|
|
2748
|
+
* @throws {RequiredError}
|
|
2749
|
+
*/
|
|
2750
|
+
async getEnvironmentLogRetention(environmentName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LogRetention>> {
|
|
2751
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getEnvironmentLogRetention(environmentName, options);
|
|
2752
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2753
|
+
const localVarOperationServerBasePath = operationServerMap['EnvironmentApi.getEnvironmentLogRetention']?.[localVarOperationServerIndex]?.url;
|
|
2754
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2755
|
+
},
|
|
2599
2756
|
/**
|
|
2600
2757
|
*
|
|
2601
2758
|
* @summary Get environment MetricsMonitorStats
|
|
@@ -2981,6 +3138,20 @@ export const EnvironmentApiFp = function(configuration?: Configuration) {
|
|
|
2981
3138
|
const localVarOperationServerBasePath = operationServerMap['EnvironmentApi.preflightEnvironment']?.[localVarOperationServerIndex]?.url;
|
|
2982
3139
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2983
3140
|
},
|
|
3141
|
+
/**
|
|
3142
|
+
* Replaces the current settings. Applies to the next cleanup.
|
|
3143
|
+
* @summary Set environment log retention
|
|
3144
|
+
* @param {string} environmentName
|
|
3145
|
+
* @param {LogRetention} logRetention
|
|
3146
|
+
* @param {*} [options] Override http request option.
|
|
3147
|
+
* @throws {RequiredError}
|
|
3148
|
+
*/
|
|
3149
|
+
async putEnvironmentLogRetention(environmentName: string, logRetention: LogRetention, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LogRetention>> {
|
|
3150
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putEnvironmentLogRetention(environmentName, logRetention, options);
|
|
3151
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3152
|
+
const localVarOperationServerBasePath = operationServerMap['EnvironmentApi.putEnvironmentLogRetention']?.[localVarOperationServerIndex]?.url;
|
|
3153
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3154
|
+
},
|
|
2984
3155
|
/**
|
|
2985
3156
|
* Remove the node from maintenance mode. This action restores the node to its normal operational state, allowing it to resume handling workloads.
|
|
2986
3157
|
* @summary Remove the node from maintenance mode
|
|
@@ -3155,6 +3326,16 @@ export const EnvironmentApiFactory = function (configuration?: Configuration, ba
|
|
|
3155
3326
|
deleteEnvironmentCredential(requestParameters: EnvironmentApiDeleteEnvironmentCredentialRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
3156
3327
|
return localVarFp.deleteEnvironmentCredential(requestParameters.environmentName, requestParameters.credentialName, options).then((request) => request(axios, basePath));
|
|
3157
3328
|
},
|
|
3329
|
+
/**
|
|
3330
|
+
* Removes environment settings and returns the built-in defaults.
|
|
3331
|
+
* @summary Reset environment log retention
|
|
3332
|
+
* @param {EnvironmentApiDeleteEnvironmentLogRetentionRequest} requestParameters Request parameters.
|
|
3333
|
+
* @param {*} [options] Override http request option.
|
|
3334
|
+
* @throws {RequiredError}
|
|
3335
|
+
*/
|
|
3336
|
+
deleteEnvironmentLogRetention(requestParameters: EnvironmentApiDeleteEnvironmentLogRetentionRequest, options?: RawAxiosRequestConfig): AxiosPromise<LogRetention> {
|
|
3337
|
+
return localVarFp.deleteEnvironmentLogRetention(requestParameters.environmentName, options).then((request) => request(axios, basePath));
|
|
3338
|
+
},
|
|
3158
3339
|
/**
|
|
3159
3340
|
*
|
|
3160
3341
|
* @summary Delete environment node group
|
|
@@ -3235,6 +3416,16 @@ export const EnvironmentApiFactory = function (configuration?: Configuration, ba
|
|
|
3235
3416
|
getEnvironmentKubeconfig(requestParameters: EnvironmentApiGetEnvironmentKubeconfigRequest, options?: RawAxiosRequestConfig): AxiosPromise<HttpBody> {
|
|
3236
3417
|
return localVarFp.getEnvironmentKubeconfig(requestParameters.environmentName, options).then((request) => request(axios, basePath));
|
|
3237
3418
|
},
|
|
3419
|
+
/**
|
|
3420
|
+
*
|
|
3421
|
+
* @summary Get environment log retention
|
|
3422
|
+
* @param {EnvironmentApiGetEnvironmentLogRetentionRequest} requestParameters Request parameters.
|
|
3423
|
+
* @param {*} [options] Override http request option.
|
|
3424
|
+
* @throws {RequiredError}
|
|
3425
|
+
*/
|
|
3426
|
+
getEnvironmentLogRetention(requestParameters: EnvironmentApiGetEnvironmentLogRetentionRequest, options?: RawAxiosRequestConfig): AxiosPromise<LogRetention> {
|
|
3427
|
+
return localVarFp.getEnvironmentLogRetention(requestParameters.environmentName, options).then((request) => request(axios, basePath));
|
|
3428
|
+
},
|
|
3238
3429
|
/**
|
|
3239
3430
|
*
|
|
3240
3431
|
* @summary Get environment MetricsMonitorStats
|
|
@@ -3503,6 +3694,16 @@ export const EnvironmentApiFactory = function (configuration?: Configuration, ba
|
|
|
3503
3694
|
preflightEnvironment(requestParameters: EnvironmentApiPreflightEnvironmentRequest, options?: RawAxiosRequestConfig): AxiosPromise<PreflightList> {
|
|
3504
3695
|
return localVarFp.preflightEnvironment(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
3505
3696
|
},
|
|
3697
|
+
/**
|
|
3698
|
+
* Replaces the current settings. Applies to the next cleanup.
|
|
3699
|
+
* @summary Set environment log retention
|
|
3700
|
+
* @param {EnvironmentApiPutEnvironmentLogRetentionRequest} requestParameters Request parameters.
|
|
3701
|
+
* @param {*} [options] Override http request option.
|
|
3702
|
+
* @throws {RequiredError}
|
|
3703
|
+
*/
|
|
3704
|
+
putEnvironmentLogRetention(requestParameters: EnvironmentApiPutEnvironmentLogRetentionRequest, options?: RawAxiosRequestConfig): AxiosPromise<LogRetention> {
|
|
3705
|
+
return localVarFp.putEnvironmentLogRetention(requestParameters.environmentName, requestParameters.logRetention, options).then((request) => request(axios, basePath));
|
|
3706
|
+
},
|
|
3506
3707
|
/**
|
|
3507
3708
|
* Remove the node from maintenance mode. This action restores the node to its normal operational state, allowing it to resume handling workloads.
|
|
3508
3709
|
* @summary Remove the node from maintenance mode
|
|
@@ -3652,6 +3853,16 @@ export interface EnvironmentApiInterface {
|
|
|
3652
3853
|
*/
|
|
3653
3854
|
deleteEnvironmentCredential(requestParameters: EnvironmentApiDeleteEnvironmentCredentialRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
3654
3855
|
|
|
3856
|
+
/**
|
|
3857
|
+
* Removes environment settings and returns the built-in defaults.
|
|
3858
|
+
* @summary Reset environment log retention
|
|
3859
|
+
* @param {EnvironmentApiDeleteEnvironmentLogRetentionRequest} requestParameters Request parameters.
|
|
3860
|
+
* @param {*} [options] Override http request option.
|
|
3861
|
+
* @throws {RequiredError}
|
|
3862
|
+
* @memberof EnvironmentApiInterface
|
|
3863
|
+
*/
|
|
3864
|
+
deleteEnvironmentLogRetention(requestParameters: EnvironmentApiDeleteEnvironmentLogRetentionRequest, options?: RawAxiosRequestConfig): AxiosPromise<LogRetention>;
|
|
3865
|
+
|
|
3655
3866
|
/**
|
|
3656
3867
|
*
|
|
3657
3868
|
* @summary Delete environment node group
|
|
@@ -3732,6 +3943,16 @@ export interface EnvironmentApiInterface {
|
|
|
3732
3943
|
*/
|
|
3733
3944
|
getEnvironmentKubeconfig(requestParameters: EnvironmentApiGetEnvironmentKubeconfigRequest, options?: RawAxiosRequestConfig): AxiosPromise<HttpBody>;
|
|
3734
3945
|
|
|
3946
|
+
/**
|
|
3947
|
+
*
|
|
3948
|
+
* @summary Get environment log retention
|
|
3949
|
+
* @param {EnvironmentApiGetEnvironmentLogRetentionRequest} requestParameters Request parameters.
|
|
3950
|
+
* @param {*} [options] Override http request option.
|
|
3951
|
+
* @throws {RequiredError}
|
|
3952
|
+
* @memberof EnvironmentApiInterface
|
|
3953
|
+
*/
|
|
3954
|
+
getEnvironmentLogRetention(requestParameters: EnvironmentApiGetEnvironmentLogRetentionRequest, options?: RawAxiosRequestConfig): AxiosPromise<LogRetention>;
|
|
3955
|
+
|
|
3735
3956
|
/**
|
|
3736
3957
|
*
|
|
3737
3958
|
* @summary Get environment MetricsMonitorStats
|
|
@@ -4000,6 +4221,16 @@ export interface EnvironmentApiInterface {
|
|
|
4000
4221
|
*/
|
|
4001
4222
|
preflightEnvironment(requestParameters: EnvironmentApiPreflightEnvironmentRequest, options?: RawAxiosRequestConfig): AxiosPromise<PreflightList>;
|
|
4002
4223
|
|
|
4224
|
+
/**
|
|
4225
|
+
* Replaces the current settings. Applies to the next cleanup.
|
|
4226
|
+
* @summary Set environment log retention
|
|
4227
|
+
* @param {EnvironmentApiPutEnvironmentLogRetentionRequest} requestParameters Request parameters.
|
|
4228
|
+
* @param {*} [options] Override http request option.
|
|
4229
|
+
* @throws {RequiredError}
|
|
4230
|
+
* @memberof EnvironmentApiInterface
|
|
4231
|
+
*/
|
|
4232
|
+
putEnvironmentLogRetention(requestParameters: EnvironmentApiPutEnvironmentLogRetentionRequest, options?: RawAxiosRequestConfig): AxiosPromise<LogRetention>;
|
|
4233
|
+
|
|
4003
4234
|
/**
|
|
4004
4235
|
* Remove the node from maintenance mode. This action restores the node to its normal operational state, allowing it to resume handling workloads.
|
|
4005
4236
|
* @summary Remove the node from maintenance mode
|
|
@@ -4216,6 +4447,20 @@ export interface EnvironmentApiDeleteEnvironmentCredentialRequest {
|
|
|
4216
4447
|
readonly credentialName: string
|
|
4217
4448
|
}
|
|
4218
4449
|
|
|
4450
|
+
/**
|
|
4451
|
+
* Request parameters for deleteEnvironmentLogRetention operation in EnvironmentApi.
|
|
4452
|
+
* @export
|
|
4453
|
+
* @interface EnvironmentApiDeleteEnvironmentLogRetentionRequest
|
|
4454
|
+
*/
|
|
4455
|
+
export interface EnvironmentApiDeleteEnvironmentLogRetentionRequest {
|
|
4456
|
+
/**
|
|
4457
|
+
*
|
|
4458
|
+
* @type {string}
|
|
4459
|
+
* @memberof EnvironmentApiDeleteEnvironmentLogRetention
|
|
4460
|
+
*/
|
|
4461
|
+
readonly environmentName: string
|
|
4462
|
+
}
|
|
4463
|
+
|
|
4219
4464
|
/**
|
|
4220
4465
|
* Request parameters for deleteNodeGroup operation in EnvironmentApi.
|
|
4221
4466
|
* @export
|
|
@@ -4356,6 +4601,20 @@ export interface EnvironmentApiGetEnvironmentKubeconfigRequest {
|
|
|
4356
4601
|
readonly environmentName: string
|
|
4357
4602
|
}
|
|
4358
4603
|
|
|
4604
|
+
/**
|
|
4605
|
+
* Request parameters for getEnvironmentLogRetention operation in EnvironmentApi.
|
|
4606
|
+
* @export
|
|
4607
|
+
* @interface EnvironmentApiGetEnvironmentLogRetentionRequest
|
|
4608
|
+
*/
|
|
4609
|
+
export interface EnvironmentApiGetEnvironmentLogRetentionRequest {
|
|
4610
|
+
/**
|
|
4611
|
+
*
|
|
4612
|
+
* @type {string}
|
|
4613
|
+
* @memberof EnvironmentApiGetEnvironmentLogRetention
|
|
4614
|
+
*/
|
|
4615
|
+
readonly environmentName: string
|
|
4616
|
+
}
|
|
4617
|
+
|
|
4359
4618
|
/**
|
|
4360
4619
|
* Request parameters for getEnvironmentMetricsMonitorStats operation in EnvironmentApi.
|
|
4361
4620
|
* @export
|
|
@@ -4958,6 +5217,27 @@ export interface EnvironmentApiPreflightEnvironmentRequest {
|
|
|
4958
5217
|
readonly body: Kubeconfig
|
|
4959
5218
|
}
|
|
4960
5219
|
|
|
5220
|
+
/**
|
|
5221
|
+
* Request parameters for putEnvironmentLogRetention operation in EnvironmentApi.
|
|
5222
|
+
* @export
|
|
5223
|
+
* @interface EnvironmentApiPutEnvironmentLogRetentionRequest
|
|
5224
|
+
*/
|
|
5225
|
+
export interface EnvironmentApiPutEnvironmentLogRetentionRequest {
|
|
5226
|
+
/**
|
|
5227
|
+
*
|
|
5228
|
+
* @type {string}
|
|
5229
|
+
* @memberof EnvironmentApiPutEnvironmentLogRetention
|
|
5230
|
+
*/
|
|
5231
|
+
readonly environmentName: string
|
|
5232
|
+
|
|
5233
|
+
/**
|
|
5234
|
+
*
|
|
5235
|
+
* @type {LogRetention}
|
|
5236
|
+
* @memberof EnvironmentApiPutEnvironmentLogRetention
|
|
5237
|
+
*/
|
|
5238
|
+
readonly logRetention: LogRetention
|
|
5239
|
+
}
|
|
5240
|
+
|
|
4961
5241
|
/**
|
|
4962
5242
|
* Request parameters for removeNodeMaintenanceMode operation in EnvironmentApi.
|
|
4963
5243
|
* @export
|
|
@@ -5187,6 +5467,18 @@ export class EnvironmentApi extends BaseAPI implements EnvironmentApiInterface {
|
|
|
5187
5467
|
return EnvironmentApiFp(this.configuration).deleteEnvironmentCredential(requestParameters.environmentName, requestParameters.credentialName, options).then((request) => request(this.axios, this.basePath));
|
|
5188
5468
|
}
|
|
5189
5469
|
|
|
5470
|
+
/**
|
|
5471
|
+
* Removes environment settings and returns the built-in defaults.
|
|
5472
|
+
* @summary Reset environment log retention
|
|
5473
|
+
* @param {EnvironmentApiDeleteEnvironmentLogRetentionRequest} requestParameters Request parameters.
|
|
5474
|
+
* @param {*} [options] Override http request option.
|
|
5475
|
+
* @throws {RequiredError}
|
|
5476
|
+
* @memberof EnvironmentApi
|
|
5477
|
+
*/
|
|
5478
|
+
public deleteEnvironmentLogRetention(requestParameters: EnvironmentApiDeleteEnvironmentLogRetentionRequest, options?: RawAxiosRequestConfig) {
|
|
5479
|
+
return EnvironmentApiFp(this.configuration).deleteEnvironmentLogRetention(requestParameters.environmentName, options).then((request) => request(this.axios, this.basePath));
|
|
5480
|
+
}
|
|
5481
|
+
|
|
5190
5482
|
/**
|
|
5191
5483
|
*
|
|
5192
5484
|
* @summary Delete environment node group
|
|
@@ -5283,6 +5575,18 @@ export class EnvironmentApi extends BaseAPI implements EnvironmentApiInterface {
|
|
|
5283
5575
|
return EnvironmentApiFp(this.configuration).getEnvironmentKubeconfig(requestParameters.environmentName, options).then((request) => request(this.axios, this.basePath));
|
|
5284
5576
|
}
|
|
5285
5577
|
|
|
5578
|
+
/**
|
|
5579
|
+
*
|
|
5580
|
+
* @summary Get environment log retention
|
|
5581
|
+
* @param {EnvironmentApiGetEnvironmentLogRetentionRequest} requestParameters Request parameters.
|
|
5582
|
+
* @param {*} [options] Override http request option.
|
|
5583
|
+
* @throws {RequiredError}
|
|
5584
|
+
* @memberof EnvironmentApi
|
|
5585
|
+
*/
|
|
5586
|
+
public getEnvironmentLogRetention(requestParameters: EnvironmentApiGetEnvironmentLogRetentionRequest, options?: RawAxiosRequestConfig) {
|
|
5587
|
+
return EnvironmentApiFp(this.configuration).getEnvironmentLogRetention(requestParameters.environmentName, options).then((request) => request(this.axios, this.basePath));
|
|
5588
|
+
}
|
|
5589
|
+
|
|
5286
5590
|
/**
|
|
5287
5591
|
*
|
|
5288
5592
|
* @summary Get environment MetricsMonitorStats
|
|
@@ -5605,6 +5909,18 @@ export class EnvironmentApi extends BaseAPI implements EnvironmentApiInterface {
|
|
|
5605
5909
|
return EnvironmentApiFp(this.configuration).preflightEnvironment(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
5606
5910
|
}
|
|
5607
5911
|
|
|
5912
|
+
/**
|
|
5913
|
+
* Replaces the current settings. Applies to the next cleanup.
|
|
5914
|
+
* @summary Set environment log retention
|
|
5915
|
+
* @param {EnvironmentApiPutEnvironmentLogRetentionRequest} requestParameters Request parameters.
|
|
5916
|
+
* @param {*} [options] Override http request option.
|
|
5917
|
+
* @throws {RequiredError}
|
|
5918
|
+
* @memberof EnvironmentApi
|
|
5919
|
+
*/
|
|
5920
|
+
public putEnvironmentLogRetention(requestParameters: EnvironmentApiPutEnvironmentLogRetentionRequest, options?: RawAxiosRequestConfig) {
|
|
5921
|
+
return EnvironmentApiFp(this.configuration).putEnvironmentLogRetention(requestParameters.environmentName, requestParameters.logRetention, options).then((request) => request(this.axios, this.basePath));
|
|
5922
|
+
}
|
|
5923
|
+
|
|
5608
5924
|
/**
|
|
5609
5925
|
* Remove the node from maintenance mode. This action restores the node to its normal operational state, allowing it to resume handling workloads.
|
|
5610
5926
|
* @summary Remove the node from maintenance mode
|
|
@@ -649,6 +649,7 @@ export * from './log-backend-type';
|
|
|
649
649
|
export * from './log-disk';
|
|
650
650
|
export * from './log-entry';
|
|
651
651
|
export * from './log-option';
|
|
652
|
+
export * from './log-retention';
|
|
652
653
|
export * from './mapping-description';
|
|
653
654
|
export * from './mark-vulns-as-ignored';
|
|
654
655
|
export * from './memory';
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
* Log retention in days.
|
|
19
|
+
* @export
|
|
20
|
+
* @interface LogRetention
|
|
21
|
+
*/
|
|
22
|
+
export interface LogRetention {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof LogRetention
|
|
27
|
+
*/
|
|
28
|
+
'pod': number;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof LogRetention
|
|
33
|
+
*/
|
|
34
|
+
'running': number;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {number}
|
|
38
|
+
* @memberof LogRetention
|
|
39
|
+
*/
|
|
40
|
+
'error': number;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof LogRetention
|
|
45
|
+
*/
|
|
46
|
+
'slow': number;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {number}
|
|
50
|
+
* @memberof LogRetention
|
|
51
|
+
*/
|
|
52
|
+
'audit': number;
|
|
53
|
+
}
|
|
54
|
+
|