kb-cloud-client-typescript 2.4.0-alpha.144 → 2.4.0-alpha.146
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/dms-api.d.ts +113 -0
- package/dist/adminapi/apis/dms-api.d.ts.map +1 -1
- package/dist/adminapi/apis/dms-api.js +108 -0
- package/dist/adminapi/apis/dms-api.js.map +1 -1
- package/dist/adminapi/apis/environment-api.d.ts +5 -5
- package/dist/adminapi/apis/environment-api.js +4 -4
- package/dist/adminapi/apis/shared-api.d.ts +113 -0
- package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
- package/dist/adminapi/apis/shared-api.js +108 -0
- package/dist/adminapi/apis/shared-api.js.map +1 -1
- package/dist/adminapi/apis/vip-pool-api.d.ts +65 -0
- package/dist/adminapi/apis/vip-pool-api.d.ts.map +1 -1
- package/dist/adminapi/apis/vip-pool-api.js +75 -0
- package/dist/adminapi/apis/vip-pool-api.js.map +1 -1
- package/dist/adminapi/models/dms-audit-list.d.ts +32 -0
- package/dist/adminapi/models/dms-audit-list.d.ts.map +1 -0
- package/dist/adminapi/models/dms-audit-list.js +16 -0
- package/dist/adminapi/models/dms-audit-list.js.map +1 -0
- package/dist/adminapi/models/dms-audit-risk.d.ts +25 -0
- package/dist/adminapi/models/dms-audit-risk.d.ts.map +1 -0
- package/dist/adminapi/models/dms-audit-risk.js +29 -0
- package/dist/adminapi/models/dms-audit-risk.js.map +1 -0
- package/dist/adminapi/models/dms-audit-statement.d.ts +93 -0
- package/dist/adminapi/models/dms-audit-statement.d.ts.map +1 -0
- package/dist/adminapi/models/dms-audit-statement.js +16 -0
- package/dist/adminapi/models/dms-audit-statement.js.map +1 -0
- package/dist/adminapi/models/dms-audit-status.d.ts +23 -0
- package/dist/adminapi/models/dms-audit-status.d.ts.map +1 -0
- package/dist/adminapi/models/dms-audit-status.js +27 -0
- package/dist/adminapi/models/dms-audit-status.js.map +1 -0
- package/dist/adminapi/models/dms-audit.d.ts +154 -0
- package/dist/adminapi/models/dms-audit.d.ts.map +1 -0
- package/dist/adminapi/models/dms-audit.js +16 -0
- package/dist/adminapi/models/dms-audit.js.map +1 -0
- package/dist/adminapi/models/dms-option.d.ts +1 -1
- package/dist/adminapi/models/environment-module-action.d.ts +2 -1
- package/dist/adminapi/models/environment-module-action.d.ts.map +1 -1
- package/dist/adminapi/models/environment-module-action.js +3 -2
- package/dist/adminapi/models/environment-module-action.js.map +1 -1
- package/dist/adminapi/models/environment-module-status.d.ts +2 -0
- package/dist/adminapi/models/environment-module-status.d.ts.map +1 -1
- package/dist/adminapi/models/environment-module-status.js +2 -0
- package/dist/adminapi/models/environment-module-status.js.map +1 -1
- package/dist/adminapi/models/environment-module-update.d.ts +1 -1
- package/dist/adminapi/models/environment-module.d.ts +12 -0
- package/dist/adminapi/models/environment-module.d.ts.map +1 -1
- package/dist/adminapi/models/index.d.ts +8 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +8 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/vip-port-check-request.d.ts +31 -0
- package/dist/adminapi/models/vip-port-check-request.d.ts.map +1 -0
- package/dist/adminapi/models/vip-port-check-request.js +16 -0
- package/dist/adminapi/models/vip-port-check-request.js.map +1 -0
- package/dist/adminapi/models/vip-port-check-result-occupied-ports-inner.d.ts +31 -0
- package/dist/adminapi/models/vip-port-check-result-occupied-ports-inner.d.ts.map +1 -0
- package/dist/adminapi/models/vip-port-check-result-occupied-ports-inner.js +16 -0
- package/dist/adminapi/models/vip-port-check-result-occupied-ports-inner.js.map +1 -0
- package/dist/adminapi/models/vip-port-check-result.d.ts +38 -0
- package/dist/adminapi/models/vip-port-check-result.d.ts.map +1 -0
- package/dist/adminapi/models/vip-port-check-result.js +16 -0
- package/dist/adminapi/models/vip-port-check-result.js.map +1 -0
- package/dist/internalapi/apis/environment-api.d.ts +101 -0
- package/dist/internalapi/apis/environment-api.d.ts.map +1 -1
- package/dist/internalapi/apis/environment-api.js +98 -1
- package/dist/internalapi/apis/environment-api.js.map +1 -1
- package/dist/openapi/apis/dms-api.d.ts +113 -0
- package/dist/openapi/apis/dms-api.d.ts.map +1 -1
- package/dist/openapi/apis/dms-api.js +108 -0
- package/dist/openapi/apis/dms-api.js.map +1 -1
- package/dist/openapi/apis/shared-api.d.ts +113 -0
- package/dist/openapi/apis/shared-api.d.ts.map +1 -1
- package/dist/openapi/apis/shared-api.js +108 -0
- package/dist/openapi/apis/shared-api.js.map +1 -1
- package/dist/openapi/apis/vip-pool-api.d.ts +65 -0
- package/dist/openapi/apis/vip-pool-api.d.ts.map +1 -1
- package/dist/openapi/apis/vip-pool-api.js +75 -0
- package/dist/openapi/apis/vip-pool-api.js.map +1 -1
- package/dist/openapi/models/dms-audit-list.d.ts +32 -0
- package/dist/openapi/models/dms-audit-list.d.ts.map +1 -0
- package/dist/openapi/models/dms-audit-list.js +16 -0
- package/dist/openapi/models/dms-audit-list.js.map +1 -0
- package/dist/openapi/models/dms-audit-risk.d.ts +25 -0
- package/dist/openapi/models/dms-audit-risk.d.ts.map +1 -0
- package/dist/openapi/models/dms-audit-risk.js +29 -0
- package/dist/openapi/models/dms-audit-risk.js.map +1 -0
- package/dist/openapi/models/dms-audit-statement.d.ts +93 -0
- package/dist/openapi/models/dms-audit-statement.d.ts.map +1 -0
- package/dist/openapi/models/dms-audit-statement.js +16 -0
- package/dist/openapi/models/dms-audit-statement.js.map +1 -0
- package/dist/openapi/models/dms-audit-status.d.ts +23 -0
- package/dist/openapi/models/dms-audit-status.d.ts.map +1 -0
- package/dist/openapi/models/dms-audit-status.js +27 -0
- package/dist/openapi/models/dms-audit-status.js.map +1 -0
- package/dist/openapi/models/dms-audit.d.ts +154 -0
- package/dist/openapi/models/dms-audit.d.ts.map +1 -0
- package/dist/openapi/models/dms-audit.js +16 -0
- package/dist/openapi/models/dms-audit.js.map +1 -0
- package/dist/openapi/models/dms-option.d.ts +1 -1
- package/dist/openapi/models/environment-module-status.d.ts +2 -0
- package/dist/openapi/models/environment-module-status.d.ts.map +1 -1
- package/dist/openapi/models/environment-module-status.js +2 -0
- package/dist/openapi/models/environment-module-status.js.map +1 -1
- package/dist/openapi/models/environment-module.d.ts +12 -0
- package/dist/openapi/models/environment-module.d.ts.map +1 -1
- package/dist/openapi/models/index.d.ts +8 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +8 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/dist/openapi/models/vip-port-check-request.d.ts +31 -0
- package/dist/openapi/models/vip-port-check-request.d.ts.map +1 -0
- package/dist/openapi/models/vip-port-check-request.js +16 -0
- package/dist/openapi/models/vip-port-check-request.js.map +1 -0
- package/dist/openapi/models/vip-port-check-result-occupied-ports-inner.d.ts +31 -0
- package/dist/openapi/models/vip-port-check-result-occupied-ports-inner.d.ts.map +1 -0
- package/dist/openapi/models/vip-port-check-result-occupied-ports-inner.js +16 -0
- package/dist/openapi/models/vip-port-check-result-occupied-ports-inner.js.map +1 -0
- package/dist/openapi/models/vip-port-check-result.d.ts +38 -0
- package/dist/openapi/models/vip-port-check-result.d.ts.map +1 -0
- package/dist/openapi/models/vip-port-check-result.js +16 -0
- package/dist/openapi/models/vip-port-check-result.js.map +1 -0
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +8 -0
- package/src/adminapi/apis/dms-api.ts +198 -0
- package/src/adminapi/apis/environment-api.ts +5 -5
- package/src/adminapi/apis/shared-api.ts +198 -0
- package/src/adminapi/apis/vip-pool-api.ts +118 -0
- package/src/adminapi/models/dms-audit-list.ts +39 -0
- package/src/adminapi/models/dms-audit-risk.ts +34 -0
- package/src/adminapi/models/dms-audit-statement.ts +104 -0
- package/src/adminapi/models/dms-audit-status.ts +32 -0
- package/src/adminapi/models/dms-audit.ts +167 -0
- package/src/adminapi/models/dms-option.ts +1 -1
- package/src/adminapi/models/environment-module-action.ts +3 -2
- package/src/adminapi/models/environment-module-status.ts +2 -0
- package/src/adminapi/models/environment-module-update.ts +1 -1
- package/src/adminapi/models/environment-module.ts +12 -0
- package/src/adminapi/models/index.ts +8 -0
- package/src/adminapi/models/vip-port-check-request.ts +36 -0
- package/src/adminapi/models/vip-port-check-result-occupied-ports-inner.ts +36 -0
- package/src/adminapi/models/vip-port-check-result.ts +45 -0
- package/src/adminapi.yaml +290 -2
- package/src/internalapi/apis/environment-api.ts +159 -0
- package/src/internalapi.yaml +64 -18
- package/src/openapi/.openapi-generator/FILES +8 -0
- package/src/openapi/apis/dms-api.ts +198 -0
- package/src/openapi/apis/shared-api.ts +198 -0
- package/src/openapi/apis/vip-pool-api.ts +118 -0
- package/src/openapi/models/dms-audit-list.ts +39 -0
- package/src/openapi/models/dms-audit-risk.ts +34 -0
- package/src/openapi/models/dms-audit-statement.ts +104 -0
- package/src/openapi/models/dms-audit-status.ts +32 -0
- package/src/openapi/models/dms-audit.ts +167 -0
- package/src/openapi/models/dms-option.ts +1 -1
- package/src/openapi/models/environment-module-status.ts +2 -0
- package/src/openapi/models/environment-module.ts +12 -0
- package/src/openapi/models/index.ts +8 -0
- package/src/openapi/models/vip-port-check-request.ts +36 -0
- package/src/openapi/models/vip-port-check-result-occupied-ports-inner.ts +36 -0
- package/src/openapi/models/vip-port-check-result.ts +45 -0
- package/src/openapi.yaml +285 -0
|
@@ -31,12 +31,63 @@ import type { VipPoolCreate } from '../models';
|
|
|
31
31
|
import type { VipPoolList } from '../models';
|
|
32
32
|
// @ts-ignore
|
|
33
33
|
import type { VipPoolUpdate } from '../models';
|
|
34
|
+
// @ts-ignore
|
|
35
|
+
import type { VipPortCheckRequest } from '../models';
|
|
36
|
+
// @ts-ignore
|
|
37
|
+
import type { VipPortCheckResult } from '../models';
|
|
34
38
|
/**
|
|
35
39
|
* VipPoolApi - axios parameter creator
|
|
36
40
|
* @export
|
|
37
41
|
*/
|
|
38
42
|
export const VipPoolApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
39
43
|
return {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @summary Check whether ports are already used on a VIP
|
|
47
|
+
* @param {string} environmentName name of the environment
|
|
48
|
+
* @param {VipPortCheckRequest} body
|
|
49
|
+
* @param {*} [options] Override http request option.
|
|
50
|
+
* @throws {RequiredError}
|
|
51
|
+
*/
|
|
52
|
+
checkVIPPorts: async (environmentName: string, body: VipPortCheckRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
53
|
+
// verify required parameter 'environmentName' is not null or undefined
|
|
54
|
+
assertParamExists('checkVIPPorts', 'environmentName', environmentName)
|
|
55
|
+
// verify required parameter 'body' is not null or undefined
|
|
56
|
+
assertParamExists('checkVIPPorts', 'body', body)
|
|
57
|
+
const localVarPath = `/admin/v1/environments/{environmentName}/loadbalancer/vipPool/checkPorts`
|
|
58
|
+
.replace(`{${"environmentName"}}`, encodeURIComponent(String(environmentName)));
|
|
59
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
60
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
61
|
+
let baseOptions;
|
|
62
|
+
if (configuration) {
|
|
63
|
+
baseOptions = configuration.baseOptions;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
67
|
+
const localVarHeaderParameter = {} as any;
|
|
68
|
+
const localVarQueryParameter = {} as any;
|
|
69
|
+
|
|
70
|
+
// authentication BearerToken required
|
|
71
|
+
// http bearer authentication required
|
|
72
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
73
|
+
|
|
74
|
+
// authentication DigestAuth required
|
|
75
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
80
|
+
|
|
81
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
82
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
83
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
84
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
85
|
+
|
|
86
|
+
return {
|
|
87
|
+
url: toPathString(localVarUrlObj),
|
|
88
|
+
options: localVarRequestOptions,
|
|
89
|
+
};
|
|
90
|
+
},
|
|
40
91
|
/**
|
|
41
92
|
*
|
|
42
93
|
* @summary Create environment VIP Pool
|
|
@@ -231,6 +282,20 @@ export const VipPoolApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
231
282
|
export const VipPoolApiFp = function(configuration?: Configuration) {
|
|
232
283
|
const localVarAxiosParamCreator = VipPoolApiAxiosParamCreator(configuration)
|
|
233
284
|
return {
|
|
285
|
+
/**
|
|
286
|
+
*
|
|
287
|
+
* @summary Check whether ports are already used on a VIP
|
|
288
|
+
* @param {string} environmentName name of the environment
|
|
289
|
+
* @param {VipPortCheckRequest} body
|
|
290
|
+
* @param {*} [options] Override http request option.
|
|
291
|
+
* @throws {RequiredError}
|
|
292
|
+
*/
|
|
293
|
+
async checkVIPPorts(environmentName: string, body: VipPortCheckRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VipPortCheckResult>> {
|
|
294
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.checkVIPPorts(environmentName, body, options);
|
|
295
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
296
|
+
const localVarOperationServerBasePath = operationServerMap['VipPoolApi.checkVIPPorts']?.[localVarOperationServerIndex]?.url;
|
|
297
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
298
|
+
},
|
|
234
299
|
/**
|
|
235
300
|
*
|
|
236
301
|
* @summary Create environment VIP Pool
|
|
@@ -297,6 +362,16 @@ export const VipPoolApiFp = function(configuration?: Configuration) {
|
|
|
297
362
|
export const VipPoolApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
298
363
|
const localVarFp = VipPoolApiFp(configuration)
|
|
299
364
|
return {
|
|
365
|
+
/**
|
|
366
|
+
*
|
|
367
|
+
* @summary Check whether ports are already used on a VIP
|
|
368
|
+
* @param {VipPoolApiCheckVIPPortsRequest} requestParameters Request parameters.
|
|
369
|
+
* @param {*} [options] Override http request option.
|
|
370
|
+
* @throws {RequiredError}
|
|
371
|
+
*/
|
|
372
|
+
checkVIPPorts(requestParameters: VipPoolApiCheckVIPPortsRequest, options?: RawAxiosRequestConfig): AxiosPromise<VipPortCheckResult> {
|
|
373
|
+
return localVarFp.checkVIPPorts(requestParameters.environmentName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
374
|
+
},
|
|
300
375
|
/**
|
|
301
376
|
*
|
|
302
377
|
* @summary Create environment VIP Pool
|
|
@@ -346,6 +421,16 @@ export const VipPoolApiFactory = function (configuration?: Configuration, basePa
|
|
|
346
421
|
* @interface VipPoolApi
|
|
347
422
|
*/
|
|
348
423
|
export interface VipPoolApiInterface {
|
|
424
|
+
/**
|
|
425
|
+
*
|
|
426
|
+
* @summary Check whether ports are already used on a VIP
|
|
427
|
+
* @param {VipPoolApiCheckVIPPortsRequest} requestParameters Request parameters.
|
|
428
|
+
* @param {*} [options] Override http request option.
|
|
429
|
+
* @throws {RequiredError}
|
|
430
|
+
* @memberof VipPoolApiInterface
|
|
431
|
+
*/
|
|
432
|
+
checkVIPPorts(requestParameters: VipPoolApiCheckVIPPortsRequest, options?: RawAxiosRequestConfig): AxiosPromise<VipPortCheckResult>;
|
|
433
|
+
|
|
349
434
|
/**
|
|
350
435
|
*
|
|
351
436
|
* @summary Create environment VIP Pool
|
|
@@ -388,6 +473,27 @@ export interface VipPoolApiInterface {
|
|
|
388
473
|
|
|
389
474
|
}
|
|
390
475
|
|
|
476
|
+
/**
|
|
477
|
+
* Request parameters for checkVIPPorts operation in VipPoolApi.
|
|
478
|
+
* @export
|
|
479
|
+
* @interface VipPoolApiCheckVIPPortsRequest
|
|
480
|
+
*/
|
|
481
|
+
export interface VipPoolApiCheckVIPPortsRequest {
|
|
482
|
+
/**
|
|
483
|
+
* name of the environment
|
|
484
|
+
* @type {string}
|
|
485
|
+
* @memberof VipPoolApiCheckVIPPorts
|
|
486
|
+
*/
|
|
487
|
+
readonly environmentName: string
|
|
488
|
+
|
|
489
|
+
/**
|
|
490
|
+
*
|
|
491
|
+
* @type {VipPortCheckRequest}
|
|
492
|
+
* @memberof VipPoolApiCheckVIPPorts
|
|
493
|
+
*/
|
|
494
|
+
readonly body: VipPortCheckRequest
|
|
495
|
+
}
|
|
496
|
+
|
|
391
497
|
/**
|
|
392
498
|
* Request parameters for createVIPPool operation in VipPoolApi.
|
|
393
499
|
* @export
|
|
@@ -479,6 +585,18 @@ export interface VipPoolApiUpdateVIPPoolRequest {
|
|
|
479
585
|
* @extends {BaseAPI}
|
|
480
586
|
*/
|
|
481
587
|
export class VipPoolApi extends BaseAPI implements VipPoolApiInterface {
|
|
588
|
+
/**
|
|
589
|
+
*
|
|
590
|
+
* @summary Check whether ports are already used on a VIP
|
|
591
|
+
* @param {VipPoolApiCheckVIPPortsRequest} requestParameters Request parameters.
|
|
592
|
+
* @param {*} [options] Override http request option.
|
|
593
|
+
* @throws {RequiredError}
|
|
594
|
+
* @memberof VipPoolApi
|
|
595
|
+
*/
|
|
596
|
+
public checkVIPPorts(requestParameters: VipPoolApiCheckVIPPortsRequest, options?: RawAxiosRequestConfig) {
|
|
597
|
+
return VipPoolApiFp(this.configuration).checkVIPPorts(requestParameters.environmentName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
598
|
+
}
|
|
599
|
+
|
|
482
600
|
/**
|
|
483
601
|
*
|
|
484
602
|
* @summary Create environment VIP Pool
|
|
@@ -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 { DmsAudit } from './dms-audit';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @export
|
|
23
|
+
* @interface DmsAuditList
|
|
24
|
+
*/
|
|
25
|
+
export interface DmsAuditList {
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<DmsAudit>}
|
|
29
|
+
* @memberof DmsAuditList
|
|
30
|
+
*/
|
|
31
|
+
'items': Array<DmsAudit>;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {number}
|
|
35
|
+
* @memberof DmsAuditList
|
|
36
|
+
*/
|
|
37
|
+
'total': number;
|
|
38
|
+
}
|
|
39
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
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 DmsAuditRisk = {
|
|
24
|
+
unknown: 'unknown',
|
|
25
|
+
read_only: 'read_only',
|
|
26
|
+
ddl: 'ddl',
|
|
27
|
+
dml: 'dml',
|
|
28
|
+
high: 'high'
|
|
29
|
+
} as const;
|
|
30
|
+
|
|
31
|
+
export type DmsAuditRisk = typeof DmsAuditRisk[keyof typeof DmsAuditRisk];
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
@@ -0,0 +1,104 @@
|
|
|
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 { DmsAuditRisk } from './dms-audit-risk';
|
|
19
|
+
// May contain unused imports in some cases
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import type { DmsAuditStatus } from './dms-audit-status';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface DmsAuditStatement
|
|
27
|
+
*/
|
|
28
|
+
export interface DmsAuditStatement {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof DmsAuditStatement
|
|
33
|
+
*/
|
|
34
|
+
'sequence': number;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof DmsAuditStatement
|
|
39
|
+
*/
|
|
40
|
+
'statement': string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof DmsAuditStatement
|
|
45
|
+
*/
|
|
46
|
+
'database': string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {Array<string>}
|
|
50
|
+
* @memberof DmsAuditStatement
|
|
51
|
+
*/
|
|
52
|
+
'tableNames': Array<string>;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof DmsAuditStatement
|
|
57
|
+
*/
|
|
58
|
+
'sessionId'?: string;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {DmsAuditRisk}
|
|
62
|
+
* @memberof DmsAuditStatement
|
|
63
|
+
*/
|
|
64
|
+
'risk': DmsAuditRisk;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {DmsAuditStatus}
|
|
68
|
+
* @memberof DmsAuditStatement
|
|
69
|
+
*/
|
|
70
|
+
'status': DmsAuditStatus;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof DmsAuditStatement
|
|
75
|
+
*/
|
|
76
|
+
'errorMessage': string;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {number}
|
|
80
|
+
* @memberof DmsAuditStatement
|
|
81
|
+
*/
|
|
82
|
+
'durationMs'?: number;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {number}
|
|
86
|
+
* @memberof DmsAuditStatement
|
|
87
|
+
*/
|
|
88
|
+
'rowsAffected'?: number;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {string}
|
|
92
|
+
* @memberof DmsAuditStatement
|
|
93
|
+
*/
|
|
94
|
+
'startedAt'?: string;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {string}
|
|
98
|
+
* @memberof DmsAuditStatement
|
|
99
|
+
*/
|
|
100
|
+
'finishedAt'?: string;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Admin API
|
|
5
|
+
* The Admin API is used to manage the ApeCloud platform.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@apecloud.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
export const DmsAuditStatus = {
|
|
24
|
+
success: 'success',
|
|
25
|
+
failed: 'failed',
|
|
26
|
+
unknown: 'unknown'
|
|
27
|
+
} as const;
|
|
28
|
+
|
|
29
|
+
export type DmsAuditStatus = typeof DmsAuditStatus[keyof typeof DmsAuditStatus];
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
@@ -0,0 +1,167 @@
|
|
|
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 { DmsAuditRisk } from './dms-audit-risk';
|
|
19
|
+
// May contain unused imports in some cases
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import type { DmsAuditStatement } from './dms-audit-statement';
|
|
22
|
+
// May contain unused imports in some cases
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import type { DmsAuditStatus } from './dms-audit-status';
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
* @interface DmsAudit
|
|
30
|
+
*/
|
|
31
|
+
export interface DmsAudit {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof DmsAudit
|
|
36
|
+
*/
|
|
37
|
+
'id': string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof DmsAudit
|
|
42
|
+
*/
|
|
43
|
+
'orgName': string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof DmsAudit
|
|
48
|
+
*/
|
|
49
|
+
'clusterId': string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof DmsAudit
|
|
54
|
+
*/
|
|
55
|
+
'clusterName': string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof DmsAudit
|
|
60
|
+
*/
|
|
61
|
+
'datasourceId'?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Absent for migrated history with unknown actor.
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof DmsAudit
|
|
66
|
+
*/
|
|
67
|
+
'userId'?: string;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof DmsAudit
|
|
72
|
+
*/
|
|
73
|
+
'userName': string;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof DmsAudit
|
|
78
|
+
*/
|
|
79
|
+
'engine': string;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof DmsAudit
|
|
84
|
+
*/
|
|
85
|
+
'database': string;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof DmsAudit
|
|
90
|
+
*/
|
|
91
|
+
'operation': string;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {string}
|
|
95
|
+
* @memberof DmsAudit
|
|
96
|
+
*/
|
|
97
|
+
'statement': string;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @type {string}
|
|
101
|
+
* @memberof DmsAudit
|
|
102
|
+
*/
|
|
103
|
+
'clientIp'?: string;
|
|
104
|
+
/**
|
|
105
|
+
* Native database session ID; see individual statements when a batch uses multiple connections.
|
|
106
|
+
* @type {string}
|
|
107
|
+
* @memberof DmsAudit
|
|
108
|
+
*/
|
|
109
|
+
'sessionId'?: string;
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @type {DmsAuditRisk}
|
|
113
|
+
* @memberof DmsAudit
|
|
114
|
+
*/
|
|
115
|
+
'risk'?: DmsAuditRisk;
|
|
116
|
+
/**
|
|
117
|
+
*
|
|
118
|
+
* @type {Array<string>}
|
|
119
|
+
* @memberof DmsAudit
|
|
120
|
+
*/
|
|
121
|
+
'tableNames'?: Array<string>;
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
* @type {string}
|
|
125
|
+
* @memberof DmsAudit
|
|
126
|
+
*/
|
|
127
|
+
'errorMessage'?: string;
|
|
128
|
+
/**
|
|
129
|
+
*
|
|
130
|
+
* @type {number}
|
|
131
|
+
* @memberof DmsAudit
|
|
132
|
+
*/
|
|
133
|
+
'rowsAffected'?: number;
|
|
134
|
+
/**
|
|
135
|
+
*
|
|
136
|
+
* @type {Array<DmsAuditStatement>}
|
|
137
|
+
* @memberof DmsAudit
|
|
138
|
+
*/
|
|
139
|
+
'statements'?: Array<DmsAuditStatement>;
|
|
140
|
+
/**
|
|
141
|
+
*
|
|
142
|
+
* @type {DmsAuditStatus}
|
|
143
|
+
* @memberof DmsAudit
|
|
144
|
+
*/
|
|
145
|
+
'status': DmsAuditStatus;
|
|
146
|
+
/**
|
|
147
|
+
*
|
|
148
|
+
* @type {string}
|
|
149
|
+
* @memberof DmsAudit
|
|
150
|
+
*/
|
|
151
|
+
'createdAt': string;
|
|
152
|
+
/**
|
|
153
|
+
*
|
|
154
|
+
* @type {string}
|
|
155
|
+
* @memberof DmsAudit
|
|
156
|
+
*/
|
|
157
|
+
'finishedAt'?: string;
|
|
158
|
+
/**
|
|
159
|
+
*
|
|
160
|
+
* @type {number}
|
|
161
|
+
* @memberof DmsAudit
|
|
162
|
+
*/
|
|
163
|
+
'durationMs'?: number;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
@@ -33,7 +33,7 @@ export interface DmsOption {
|
|
|
33
33
|
*/
|
|
34
34
|
'protocol'?: string;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Engine capabilities and audit policy. auditSensitiveColumns is an array of case-insensitive sensitive column names; auditHighRiskStatements is an array of engine-specific rules: SQL keyword prefixes, Redis command/subcommand prefixes (FLUSHALL, CONFIG SET), or MongoDB command names (dropDatabase, delete, dropIndexes, $out). MongoDB shell helpers map to native command names; dynamic scripts may remain unclassified. Built-in credential redaction always applies.
|
|
37
37
|
* @type {{ [key: string]: any; }}
|
|
38
38
|
* @memberof DmsOption
|
|
39
39
|
*/
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
* Action to perform on the environment module: - Enable: Enable the module - Disable: Disable the module - Upgrade: Upgrade the module
|
|
18
|
+
* Action to perform on the environment module: - Enable: Enable the module - Disable: Disable the module - Upgrade: Upgrade the module - Uninstall: Remove the module and its dedicated resources. Read uninstallWarning and run a dry run before confirmation.
|
|
19
19
|
* @export
|
|
20
20
|
* @enum {string}
|
|
21
21
|
*/
|
|
@@ -23,7 +23,8 @@
|
|
|
23
23
|
export const EnvironmentModuleAction = {
|
|
24
24
|
Enable: 'Enable',
|
|
25
25
|
Disable: 'Disable',
|
|
26
|
-
Upgrade: 'Upgrade'
|
|
26
|
+
Upgrade: 'Upgrade',
|
|
27
|
+
Uninstall: 'Uninstall'
|
|
27
28
|
} as const;
|
|
28
29
|
|
|
29
30
|
export type EnvironmentModuleAction = typeof EnvironmentModuleAction[keyof typeof EnvironmentModuleAction];
|
|
@@ -36,7 +36,7 @@ export interface EnvironmentModuleUpdate {
|
|
|
36
36
|
*/
|
|
37
37
|
'action': EnvironmentModuleAction;
|
|
38
38
|
/**
|
|
39
|
-
* For a supported
|
|
39
|
+
* For a supported install, upgrade, or uninstall action, only run synchronous checks when true. When false or omitted, repeat the checks and submit the asynchronous task if all checks pass.
|
|
40
40
|
* @type {boolean}
|
|
41
41
|
* @memberof EnvironmentModuleUpdate
|
|
42
42
|
*/
|
|
@@ -101,6 +101,18 @@ export interface EnvironmentModule {
|
|
|
101
101
|
* @memberof EnvironmentModule
|
|
102
102
|
*/
|
|
103
103
|
'actionWarning'?: LocalizedDescription;
|
|
104
|
+
/**
|
|
105
|
+
* Whether the module supports the Uninstall action. A dry run checks whether it is currently safe to uninstall.
|
|
106
|
+
* @type {boolean}
|
|
107
|
+
* @memberof EnvironmentModule
|
|
108
|
+
*/
|
|
109
|
+
'uninstallSupported'?: boolean;
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @type {LocalizedDescription}
|
|
113
|
+
* @memberof EnvironmentModule
|
|
114
|
+
*/
|
|
115
|
+
'uninstallWarning'?: LocalizedDescription;
|
|
104
116
|
}
|
|
105
117
|
|
|
106
118
|
|
|
@@ -373,6 +373,11 @@ export * from './disaster-recovery-status-response';
|
|
|
373
373
|
export * from './disaster-recovery-task';
|
|
374
374
|
export * from './dm-file';
|
|
375
375
|
export * from './dm-tablespace';
|
|
376
|
+
export * from './dms-audit';
|
|
377
|
+
export * from './dms-audit-list';
|
|
378
|
+
export * from './dms-audit-risk';
|
|
379
|
+
export * from './dms-audit-statement';
|
|
380
|
+
export * from './dms-audit-status';
|
|
376
381
|
export * from './dms-check-constraint';
|
|
377
382
|
export * from './dms-exclude-constraint';
|
|
378
383
|
export * from './dms-exclude-constraint-exclude-inner';
|
|
@@ -1213,6 +1218,9 @@ export * from './vip-pool';
|
|
|
1213
1218
|
export * from './vip-pool-create';
|
|
1214
1219
|
export * from './vip-pool-list';
|
|
1215
1220
|
export * from './vip-pool-update';
|
|
1221
|
+
export * from './vip-port-check-request';
|
|
1222
|
+
export * from './vip-port-check-result';
|
|
1223
|
+
export * from './vip-port-check-result-occupied-ports-inner';
|
|
1216
1224
|
export * from './volume-restore-policy';
|
|
1217
1225
|
export * from './vuln-item';
|
|
1218
1226
|
export * from './vuln-list';
|
|
@@ -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
|
+
* VIP port check request
|
|
19
|
+
* @export
|
|
20
|
+
* @interface VipPortCheckRequest
|
|
21
|
+
*/
|
|
22
|
+
export interface VipPortCheckRequest {
|
|
23
|
+
/**
|
|
24
|
+
* VIP address to check
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof VipPortCheckRequest
|
|
27
|
+
*/
|
|
28
|
+
'ip': string;
|
|
29
|
+
/**
|
|
30
|
+
* TCP ports to check. When empty, only the occupied ports are returned.
|
|
31
|
+
* @type {Array<number>}
|
|
32
|
+
* @memberof VipPortCheckRequest
|
|
33
|
+
*/
|
|
34
|
+
'ports'?: Array<number>;
|
|
35
|
+
}
|
|
36
|
+
|