@alicloud/waf-openapi20211001 6.1.1 → 6.2.0
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/client.d.ts +75 -0
- package/dist/client.js +246 -0
- package/dist/client.js.map +1 -1
- package/dist/models/DescribeAlarmBannerRequest.d.ts +31 -0
- package/dist/models/DescribeAlarmBannerRequest.js +62 -0
- package/dist/models/DescribeAlarmBannerRequest.js.map +1 -0
- package/dist/models/DescribeAlarmBannerResponse.d.ts +19 -0
- package/dist/models/DescribeAlarmBannerResponse.js +69 -0
- package/dist/models/DescribeAlarmBannerResponse.js.map +1 -0
- package/dist/models/DescribeAlarmBannerResponseBody.d.ts +51 -0
- package/dist/models/DescribeAlarmBannerResponseBody.js +88 -0
- package/dist/models/DescribeAlarmBannerResponseBody.js.map +1 -0
- package/dist/models/DescribeAlarmListRequest.d.ts +31 -0
- package/dist/models/DescribeAlarmListRequest.js +62 -0
- package/dist/models/DescribeAlarmListRequest.js.map +1 -0
- package/dist/models/DescribeAlarmListResponse.d.ts +19 -0
- package/dist/models/DescribeAlarmListResponse.js +69 -0
- package/dist/models/DescribeAlarmListResponse.js.map +1 -0
- package/dist/models/DescribeAlarmListResponseBody.d.ts +66 -0
- package/dist/models/DescribeAlarmListResponseBody.js +94 -0
- package/dist/models/DescribeAlarmListResponseBody.js.map +1 -0
- package/dist/models/DescribeBotAppKeyRequest.d.ts +36 -0
- package/dist/models/DescribeBotAppKeyRequest.js +64 -0
- package/dist/models/DescribeBotAppKeyRequest.js.map +1 -0
- package/dist/models/DescribeBotAppKeyResponse.d.ts +19 -0
- package/dist/models/DescribeBotAppKeyResponse.js +69 -0
- package/dist/models/DescribeBotAppKeyResponse.js.map +1 -0
- package/dist/models/DescribeBotAppKeyResponseBody.d.ts +26 -0
- package/dist/models/DescribeBotAppKeyResponseBody.js +60 -0
- package/dist/models/DescribeBotAppKeyResponseBody.js.map +1 -0
- package/dist/models/DescribeThreatEventDetailRequest.d.ts +39 -0
- package/dist/models/DescribeThreatEventDetailRequest.js +64 -0
- package/dist/models/DescribeThreatEventDetailRequest.js.map +1 -0
- package/dist/models/DescribeThreatEventDetailResponse.d.ts +19 -0
- package/dist/models/DescribeThreatEventDetailResponse.js +69 -0
- package/dist/models/DescribeThreatEventDetailResponse.js.map +1 -0
- package/dist/models/DescribeThreatEventDetailResponseBody.d.ts +91 -0
- package/dist/models/DescribeThreatEventDetailResponseBody.js +104 -0
- package/dist/models/DescribeThreatEventDetailResponseBody.js.map +1 -0
- package/dist/models/DescribeThreatEventRequest.d.ts +62 -0
- package/dist/models/DescribeThreatEventRequest.js +72 -0
- package/dist/models/DescribeThreatEventRequest.js.map +1 -0
- package/dist/models/DescribeThreatEventResponse.d.ts +19 -0
- package/dist/models/DescribeThreatEventResponse.js +69 -0
- package/dist/models/DescribeThreatEventResponse.js.map +1 -0
- package/dist/models/DescribeThreatEventResponseBody.d.ts +71 -0
- package/dist/models/DescribeThreatEventResponseBody.js +96 -0
- package/dist/models/DescribeThreatEventResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +19 -0
- package/dist/models/model.js +56 -18
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +278 -0
- package/src/models/DescribeAlarmBannerRequest.ts +48 -0
- package/src/models/DescribeAlarmBannerResponse.ts +40 -0
- package/src/models/DescribeAlarmBannerResponseBody.ts +85 -0
- package/src/models/DescribeAlarmListRequest.ts +48 -0
- package/src/models/DescribeAlarmListResponse.ts +40 -0
- package/src/models/DescribeAlarmListResponseBody.ts +106 -0
- package/src/models/DescribeBotAppKeyRequest.ts +55 -0
- package/src/models/DescribeBotAppKeyResponse.ts +40 -0
- package/src/models/DescribeBotAppKeyResponseBody.ts +41 -0
- package/src/models/DescribeThreatEventDetailRequest.ts +58 -0
- package/src/models/DescribeThreatEventDetailResponse.ts +40 -0
- package/src/models/DescribeThreatEventDetailResponseBody.ts +141 -0
- package/src/models/DescribeThreatEventRequest.ts +89 -0
- package/src/models/DescribeThreatEventResponse.ts +40 -0
- package/src/models/DescribeThreatEventResponseBody.ts +113 -0
- package/src/models/model.ts +19 -0
package/src/client.ts
CHANGED
|
@@ -2357,6 +2357,106 @@ export default class Client extends OpenApi {
|
|
|
2357
2357
|
return await this.describeAccountDelegatedStatusWithOptions(request, runtime);
|
|
2358
2358
|
}
|
|
2359
2359
|
|
|
2360
|
+
/**
|
|
2361
|
+
* 查询实例信息
|
|
2362
|
+
*
|
|
2363
|
+
* @param request - DescribeAlarmBannerRequest
|
|
2364
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2365
|
+
* @returns DescribeAlarmBannerResponse
|
|
2366
|
+
*/
|
|
2367
|
+
async describeAlarmBannerWithOptions(request: $_model.DescribeAlarmBannerRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeAlarmBannerResponse> {
|
|
2368
|
+
request.validate();
|
|
2369
|
+
let query = { };
|
|
2370
|
+
if (!$dara.isNull(request.instanceId)) {
|
|
2371
|
+
query["InstanceId"] = request.instanceId;
|
|
2372
|
+
}
|
|
2373
|
+
|
|
2374
|
+
if (!$dara.isNull(request.regionId)) {
|
|
2375
|
+
query["RegionId"] = request.regionId;
|
|
2376
|
+
}
|
|
2377
|
+
|
|
2378
|
+
if (!$dara.isNull(request.resourceManagerResourceGroupId)) {
|
|
2379
|
+
query["ResourceManagerResourceGroupId"] = request.resourceManagerResourceGroupId;
|
|
2380
|
+
}
|
|
2381
|
+
|
|
2382
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2383
|
+
query: OpenApiUtil.query(query),
|
|
2384
|
+
});
|
|
2385
|
+
let params = new $OpenApiUtil.Params({
|
|
2386
|
+
action: "DescribeAlarmBanner",
|
|
2387
|
+
version: "2021-10-01",
|
|
2388
|
+
protocol: "HTTPS",
|
|
2389
|
+
pathname: "/",
|
|
2390
|
+
method: "POST",
|
|
2391
|
+
authType: "AK",
|
|
2392
|
+
style: "RPC",
|
|
2393
|
+
reqBodyType: "formData",
|
|
2394
|
+
bodyType: "json",
|
|
2395
|
+
});
|
|
2396
|
+
return $dara.cast<$_model.DescribeAlarmBannerResponse>(await this.callApi(params, req, runtime), new $_model.DescribeAlarmBannerResponse({}));
|
|
2397
|
+
}
|
|
2398
|
+
|
|
2399
|
+
/**
|
|
2400
|
+
* 查询实例信息
|
|
2401
|
+
*
|
|
2402
|
+
* @param request - DescribeAlarmBannerRequest
|
|
2403
|
+
* @returns DescribeAlarmBannerResponse
|
|
2404
|
+
*/
|
|
2405
|
+
async describeAlarmBanner(request: $_model.DescribeAlarmBannerRequest): Promise<$_model.DescribeAlarmBannerResponse> {
|
|
2406
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2407
|
+
return await this.describeAlarmBannerWithOptions(request, runtime);
|
|
2408
|
+
}
|
|
2409
|
+
|
|
2410
|
+
/**
|
|
2411
|
+
* 查询实例信息
|
|
2412
|
+
*
|
|
2413
|
+
* @param request - DescribeAlarmListRequest
|
|
2414
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2415
|
+
* @returns DescribeAlarmListResponse
|
|
2416
|
+
*/
|
|
2417
|
+
async describeAlarmListWithOptions(request: $_model.DescribeAlarmListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeAlarmListResponse> {
|
|
2418
|
+
request.validate();
|
|
2419
|
+
let query = { };
|
|
2420
|
+
if (!$dara.isNull(request.instanceId)) {
|
|
2421
|
+
query["InstanceId"] = request.instanceId;
|
|
2422
|
+
}
|
|
2423
|
+
|
|
2424
|
+
if (!$dara.isNull(request.regionId)) {
|
|
2425
|
+
query["RegionId"] = request.regionId;
|
|
2426
|
+
}
|
|
2427
|
+
|
|
2428
|
+
if (!$dara.isNull(request.resourceManagerResourceGroupId)) {
|
|
2429
|
+
query["ResourceManagerResourceGroupId"] = request.resourceManagerResourceGroupId;
|
|
2430
|
+
}
|
|
2431
|
+
|
|
2432
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2433
|
+
query: OpenApiUtil.query(query),
|
|
2434
|
+
});
|
|
2435
|
+
let params = new $OpenApiUtil.Params({
|
|
2436
|
+
action: "DescribeAlarmList",
|
|
2437
|
+
version: "2021-10-01",
|
|
2438
|
+
protocol: "HTTPS",
|
|
2439
|
+
pathname: "/",
|
|
2440
|
+
method: "POST",
|
|
2441
|
+
authType: "AK",
|
|
2442
|
+
style: "RPC",
|
|
2443
|
+
reqBodyType: "formData",
|
|
2444
|
+
bodyType: "json",
|
|
2445
|
+
});
|
|
2446
|
+
return $dara.cast<$_model.DescribeAlarmListResponse>(await this.callApi(params, req, runtime), new $_model.DescribeAlarmListResponse({}));
|
|
2447
|
+
}
|
|
2448
|
+
|
|
2449
|
+
/**
|
|
2450
|
+
* 查询实例信息
|
|
2451
|
+
*
|
|
2452
|
+
* @param request - DescribeAlarmListRequest
|
|
2453
|
+
* @returns DescribeAlarmListResponse
|
|
2454
|
+
*/
|
|
2455
|
+
async describeAlarmList(request: $_model.DescribeAlarmListRequest): Promise<$_model.DescribeAlarmListResponse> {
|
|
2456
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2457
|
+
return await this.describeAlarmListWithOptions(request, runtime);
|
|
2458
|
+
}
|
|
2459
|
+
|
|
2360
2460
|
/**
|
|
2361
2461
|
* Queries the list of data export tasks in the API security module.
|
|
2362
2462
|
*
|
|
@@ -3869,6 +3969,60 @@ export default class Client extends OpenApi {
|
|
|
3869
3969
|
return await this.describeBaseSystemRulesWithOptions(request, runtime);
|
|
3870
3970
|
}
|
|
3871
3971
|
|
|
3972
|
+
/**
|
|
3973
|
+
* 分页查询防护模板
|
|
3974
|
+
*
|
|
3975
|
+
* @param request - DescribeBotAppKeyRequest
|
|
3976
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3977
|
+
* @returns DescribeBotAppKeyResponse
|
|
3978
|
+
*/
|
|
3979
|
+
async describeBotAppKeyWithOptions(request: $_model.DescribeBotAppKeyRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeBotAppKeyResponse> {
|
|
3980
|
+
request.validate();
|
|
3981
|
+
let query = { };
|
|
3982
|
+
if (!$dara.isNull(request.instanceId)) {
|
|
3983
|
+
query["InstanceId"] = request.instanceId;
|
|
3984
|
+
}
|
|
3985
|
+
|
|
3986
|
+
if (!$dara.isNull(request.keyVersion)) {
|
|
3987
|
+
query["KeyVersion"] = request.keyVersion;
|
|
3988
|
+
}
|
|
3989
|
+
|
|
3990
|
+
if (!$dara.isNull(request.regionId)) {
|
|
3991
|
+
query["RegionId"] = request.regionId;
|
|
3992
|
+
}
|
|
3993
|
+
|
|
3994
|
+
if (!$dara.isNull(request.resourceManagerResourceGroupId)) {
|
|
3995
|
+
query["ResourceManagerResourceGroupId"] = request.resourceManagerResourceGroupId;
|
|
3996
|
+
}
|
|
3997
|
+
|
|
3998
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
3999
|
+
query: OpenApiUtil.query(query),
|
|
4000
|
+
});
|
|
4001
|
+
let params = new $OpenApiUtil.Params({
|
|
4002
|
+
action: "DescribeBotAppKey",
|
|
4003
|
+
version: "2021-10-01",
|
|
4004
|
+
protocol: "HTTPS",
|
|
4005
|
+
pathname: "/",
|
|
4006
|
+
method: "POST",
|
|
4007
|
+
authType: "AK",
|
|
4008
|
+
style: "RPC",
|
|
4009
|
+
reqBodyType: "formData",
|
|
4010
|
+
bodyType: "json",
|
|
4011
|
+
});
|
|
4012
|
+
return $dara.cast<$_model.DescribeBotAppKeyResponse>(await this.callApi(params, req, runtime), new $_model.DescribeBotAppKeyResponse({}));
|
|
4013
|
+
}
|
|
4014
|
+
|
|
4015
|
+
/**
|
|
4016
|
+
* 分页查询防护模板
|
|
4017
|
+
*
|
|
4018
|
+
* @param request - DescribeBotAppKeyRequest
|
|
4019
|
+
* @returns DescribeBotAppKeyResponse
|
|
4020
|
+
*/
|
|
4021
|
+
async describeBotAppKey(request: $_model.DescribeBotAppKeyRequest): Promise<$_model.DescribeBotAppKeyResponse> {
|
|
4022
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
4023
|
+
return await this.describeBotAppKeyWithOptions(request, runtime);
|
|
4024
|
+
}
|
|
4025
|
+
|
|
3872
4026
|
/**
|
|
3873
4027
|
* 分页获取Bot管理规则标签信息
|
|
3874
4028
|
*
|
|
@@ -10221,6 +10375,130 @@ export default class Client extends OpenApi {
|
|
|
10221
10375
|
return await this.describeTemplateResourcesWithOptions(request, runtime);
|
|
10222
10376
|
}
|
|
10223
10377
|
|
|
10378
|
+
/**
|
|
10379
|
+
* 查看攻击事件列表
|
|
10380
|
+
*
|
|
10381
|
+
* @param request - DescribeThreatEventRequest
|
|
10382
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
10383
|
+
* @returns DescribeThreatEventResponse
|
|
10384
|
+
*/
|
|
10385
|
+
async describeThreatEventWithOptions(request: $_model.DescribeThreatEventRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeThreatEventResponse> {
|
|
10386
|
+
request.validate();
|
|
10387
|
+
let query = { };
|
|
10388
|
+
if (!$dara.isNull(request.domainName)) {
|
|
10389
|
+
query["DomainName"] = request.domainName;
|
|
10390
|
+
}
|
|
10391
|
+
|
|
10392
|
+
if (!$dara.isNull(request.endTime)) {
|
|
10393
|
+
query["EndTime"] = request.endTime;
|
|
10394
|
+
}
|
|
10395
|
+
|
|
10396
|
+
if (!$dara.isNull(request.instanceId)) {
|
|
10397
|
+
query["InstanceId"] = request.instanceId;
|
|
10398
|
+
}
|
|
10399
|
+
|
|
10400
|
+
if (!$dara.isNull(request.pageNumber)) {
|
|
10401
|
+
query["PageNumber"] = request.pageNumber;
|
|
10402
|
+
}
|
|
10403
|
+
|
|
10404
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
10405
|
+
query["PageSize"] = request.pageSize;
|
|
10406
|
+
}
|
|
10407
|
+
|
|
10408
|
+
if (!$dara.isNull(request.regionId)) {
|
|
10409
|
+
query["RegionId"] = request.regionId;
|
|
10410
|
+
}
|
|
10411
|
+
|
|
10412
|
+
if (!$dara.isNull(request.resourceManagerResourceGroupId)) {
|
|
10413
|
+
query["ResourceManagerResourceGroupId"] = request.resourceManagerResourceGroupId;
|
|
10414
|
+
}
|
|
10415
|
+
|
|
10416
|
+
if (!$dara.isNull(request.startTime)) {
|
|
10417
|
+
query["StartTime"] = request.startTime;
|
|
10418
|
+
}
|
|
10419
|
+
|
|
10420
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
10421
|
+
query: OpenApiUtil.query(query),
|
|
10422
|
+
});
|
|
10423
|
+
let params = new $OpenApiUtil.Params({
|
|
10424
|
+
action: "DescribeThreatEvent",
|
|
10425
|
+
version: "2021-10-01",
|
|
10426
|
+
protocol: "HTTPS",
|
|
10427
|
+
pathname: "/",
|
|
10428
|
+
method: "POST",
|
|
10429
|
+
authType: "AK",
|
|
10430
|
+
style: "RPC",
|
|
10431
|
+
reqBodyType: "formData",
|
|
10432
|
+
bodyType: "json",
|
|
10433
|
+
});
|
|
10434
|
+
return $dara.cast<$_model.DescribeThreatEventResponse>(await this.callApi(params, req, runtime), new $_model.DescribeThreatEventResponse({}));
|
|
10435
|
+
}
|
|
10436
|
+
|
|
10437
|
+
/**
|
|
10438
|
+
* 查看攻击事件列表
|
|
10439
|
+
*
|
|
10440
|
+
* @param request - DescribeThreatEventRequest
|
|
10441
|
+
* @returns DescribeThreatEventResponse
|
|
10442
|
+
*/
|
|
10443
|
+
async describeThreatEvent(request: $_model.DescribeThreatEventRequest): Promise<$_model.DescribeThreatEventResponse> {
|
|
10444
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
10445
|
+
return await this.describeThreatEventWithOptions(request, runtime);
|
|
10446
|
+
}
|
|
10447
|
+
|
|
10448
|
+
/**
|
|
10449
|
+
* 查看威胁事件详情
|
|
10450
|
+
*
|
|
10451
|
+
* @param request - DescribeThreatEventDetailRequest
|
|
10452
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
10453
|
+
* @returns DescribeThreatEventDetailResponse
|
|
10454
|
+
*/
|
|
10455
|
+
async describeThreatEventDetailWithOptions(request: $_model.DescribeThreatEventDetailRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeThreatEventDetailResponse> {
|
|
10456
|
+
request.validate();
|
|
10457
|
+
let query = { };
|
|
10458
|
+
if (!$dara.isNull(request.eventId)) {
|
|
10459
|
+
query["EventId"] = request.eventId;
|
|
10460
|
+
}
|
|
10461
|
+
|
|
10462
|
+
if (!$dara.isNull(request.instanceId)) {
|
|
10463
|
+
query["InstanceId"] = request.instanceId;
|
|
10464
|
+
}
|
|
10465
|
+
|
|
10466
|
+
if (!$dara.isNull(request.regionId)) {
|
|
10467
|
+
query["RegionId"] = request.regionId;
|
|
10468
|
+
}
|
|
10469
|
+
|
|
10470
|
+
if (!$dara.isNull(request.resourceManagerResourceGroupId)) {
|
|
10471
|
+
query["ResourceManagerResourceGroupId"] = request.resourceManagerResourceGroupId;
|
|
10472
|
+
}
|
|
10473
|
+
|
|
10474
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
10475
|
+
query: OpenApiUtil.query(query),
|
|
10476
|
+
});
|
|
10477
|
+
let params = new $OpenApiUtil.Params({
|
|
10478
|
+
action: "DescribeThreatEventDetail",
|
|
10479
|
+
version: "2021-10-01",
|
|
10480
|
+
protocol: "HTTPS",
|
|
10481
|
+
pathname: "/",
|
|
10482
|
+
method: "POST",
|
|
10483
|
+
authType: "AK",
|
|
10484
|
+
style: "RPC",
|
|
10485
|
+
reqBodyType: "formData",
|
|
10486
|
+
bodyType: "json",
|
|
10487
|
+
});
|
|
10488
|
+
return $dara.cast<$_model.DescribeThreatEventDetailResponse>(await this.callApi(params, req, runtime), new $_model.DescribeThreatEventDetailResponse({}));
|
|
10489
|
+
}
|
|
10490
|
+
|
|
10491
|
+
/**
|
|
10492
|
+
* 查看威胁事件详情
|
|
10493
|
+
*
|
|
10494
|
+
* @param request - DescribeThreatEventDetailRequest
|
|
10495
|
+
* @returns DescribeThreatEventDetailResponse
|
|
10496
|
+
*/
|
|
10497
|
+
async describeThreatEventDetail(request: $_model.DescribeThreatEventDetailRequest): Promise<$_model.DescribeThreatEventDetailResponse> {
|
|
10498
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
10499
|
+
return await this.describeThreatEventDetailWithOptions(request, runtime);
|
|
10500
|
+
}
|
|
10501
|
+
|
|
10224
10502
|
/**
|
|
10225
10503
|
* Queries the trends of API security risks.
|
|
10226
10504
|
*
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DescribeAlarmBannerRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* This parameter is required.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* waf_v3prepaid_public_cn-kf74****
|
|
12
|
+
*/
|
|
13
|
+
instanceId?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @example
|
|
16
|
+
* cn-hangzhou
|
|
17
|
+
*/
|
|
18
|
+
regionId?: string;
|
|
19
|
+
/**
|
|
20
|
+
* @example
|
|
21
|
+
* rg-aek2zerdgm****
|
|
22
|
+
*/
|
|
23
|
+
resourceManagerResourceGroupId?: string;
|
|
24
|
+
static names(): { [key: string]: string } {
|
|
25
|
+
return {
|
|
26
|
+
instanceId: 'InstanceId',
|
|
27
|
+
regionId: 'RegionId',
|
|
28
|
+
resourceManagerResourceGroupId: 'ResourceManagerResourceGroupId',
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
static types(): { [key: string]: any } {
|
|
33
|
+
return {
|
|
34
|
+
instanceId: 'string',
|
|
35
|
+
regionId: 'string',
|
|
36
|
+
resourceManagerResourceGroupId: 'string',
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
validate() {
|
|
41
|
+
super.validate();
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
constructor(map?: { [key: string]: any }) {
|
|
45
|
+
super(map);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DescribeAlarmBannerResponseBody } from "./DescribeAlarmBannerResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DescribeAlarmBannerResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: DescribeAlarmBannerResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: DescribeAlarmBannerResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DescribeAlarmBannerResponseBodyBannerStatus extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 4count
|
|
9
|
+
*/
|
|
10
|
+
cause?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* 9008
|
|
14
|
+
*/
|
|
15
|
+
count?: number;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* true
|
|
19
|
+
*/
|
|
20
|
+
status?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* @example
|
|
23
|
+
* sandbox
|
|
24
|
+
*/
|
|
25
|
+
type?: string;
|
|
26
|
+
static names(): { [key: string]: string } {
|
|
27
|
+
return {
|
|
28
|
+
cause: 'Cause',
|
|
29
|
+
count: 'Count',
|
|
30
|
+
status: 'Status',
|
|
31
|
+
type: 'Type',
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
static types(): { [key: string]: any } {
|
|
36
|
+
return {
|
|
37
|
+
cause: 'string',
|
|
38
|
+
count: 'number',
|
|
39
|
+
status: 'boolean',
|
|
40
|
+
type: 'string',
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
validate() {
|
|
45
|
+
super.validate();
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
constructor(map?: { [key: string]: any }) {
|
|
49
|
+
super(map);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export class DescribeAlarmBannerResponseBody extends $dara.Model {
|
|
54
|
+
bannerStatus?: DescribeAlarmBannerResponseBodyBannerStatus;
|
|
55
|
+
/**
|
|
56
|
+
* @example
|
|
57
|
+
* 5555DC36-0CF2-5AA3-B1C7-D6BD8****
|
|
58
|
+
*/
|
|
59
|
+
requestId?: string;
|
|
60
|
+
static names(): { [key: string]: string } {
|
|
61
|
+
return {
|
|
62
|
+
bannerStatus: 'BannerStatus',
|
|
63
|
+
requestId: 'RequestId',
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
static types(): { [key: string]: any } {
|
|
68
|
+
return {
|
|
69
|
+
bannerStatus: DescribeAlarmBannerResponseBodyBannerStatus,
|
|
70
|
+
requestId: 'string',
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
validate() {
|
|
75
|
+
if(this.bannerStatus && typeof (this.bannerStatus as any).validate === 'function') {
|
|
76
|
+
(this.bannerStatus as any).validate();
|
|
77
|
+
}
|
|
78
|
+
super.validate();
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
constructor(map?: { [key: string]: any }) {
|
|
82
|
+
super(map);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DescribeAlarmListRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* This parameter is required.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* waf_v2_public_cn-pe33e****
|
|
12
|
+
*/
|
|
13
|
+
instanceId?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @example
|
|
16
|
+
* cn-hangzhou
|
|
17
|
+
*/
|
|
18
|
+
regionId?: string;
|
|
19
|
+
/**
|
|
20
|
+
* @example
|
|
21
|
+
* rg-aek2ipnu***
|
|
22
|
+
*/
|
|
23
|
+
resourceManagerResourceGroupId?: string;
|
|
24
|
+
static names(): { [key: string]: string } {
|
|
25
|
+
return {
|
|
26
|
+
instanceId: 'InstanceId',
|
|
27
|
+
regionId: 'RegionId',
|
|
28
|
+
resourceManagerResourceGroupId: 'ResourceManagerResourceGroupId',
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
static types(): { [key: string]: any } {
|
|
33
|
+
return {
|
|
34
|
+
instanceId: 'string',
|
|
35
|
+
regionId: 'string',
|
|
36
|
+
resourceManagerResourceGroupId: 'string',
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
validate() {
|
|
41
|
+
super.validate();
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
constructor(map?: { [key: string]: any }) {
|
|
45
|
+
super(map);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DescribeAlarmListResponseBody } from "./DescribeAlarmListResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DescribeAlarmListResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: DescribeAlarmListResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: DescribeAlarmListResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DescribeAlarmListResponseBodyAlarms extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 4count
|
|
9
|
+
*/
|
|
10
|
+
cause?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* 1605600798
|
|
14
|
+
*/
|
|
15
|
+
endTime?: number;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* 12000
|
|
19
|
+
*/
|
|
20
|
+
maxQps?: number;
|
|
21
|
+
/**
|
|
22
|
+
* @example
|
|
23
|
+
* 10000
|
|
24
|
+
*/
|
|
25
|
+
spec?: number;
|
|
26
|
+
/**
|
|
27
|
+
* @example
|
|
28
|
+
* 1605600767
|
|
29
|
+
*/
|
|
30
|
+
startTime?: number;
|
|
31
|
+
/**
|
|
32
|
+
* @example
|
|
33
|
+
* 1
|
|
34
|
+
*/
|
|
35
|
+
status?: number;
|
|
36
|
+
/**
|
|
37
|
+
* @example
|
|
38
|
+
* qps
|
|
39
|
+
*/
|
|
40
|
+
type?: string;
|
|
41
|
+
static names(): { [key: string]: string } {
|
|
42
|
+
return {
|
|
43
|
+
cause: 'Cause',
|
|
44
|
+
endTime: 'EndTime',
|
|
45
|
+
maxQps: 'MaxQps',
|
|
46
|
+
spec: 'Spec',
|
|
47
|
+
startTime: 'StartTime',
|
|
48
|
+
status: 'Status',
|
|
49
|
+
type: 'Type',
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
static types(): { [key: string]: any } {
|
|
54
|
+
return {
|
|
55
|
+
cause: 'string',
|
|
56
|
+
endTime: 'number',
|
|
57
|
+
maxQps: 'number',
|
|
58
|
+
spec: 'number',
|
|
59
|
+
startTime: 'number',
|
|
60
|
+
status: 'number',
|
|
61
|
+
type: 'string',
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
validate() {
|
|
66
|
+
super.validate();
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
constructor(map?: { [key: string]: any }) {
|
|
70
|
+
super(map);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export class DescribeAlarmListResponseBody extends $dara.Model {
|
|
75
|
+
alarms?: DescribeAlarmListResponseBodyAlarms[];
|
|
76
|
+
/**
|
|
77
|
+
* @example
|
|
78
|
+
* 8D8EBFB7-E1EB-5236-952A-092EDC72***
|
|
79
|
+
*/
|
|
80
|
+
requestId?: string;
|
|
81
|
+
static names(): { [key: string]: string } {
|
|
82
|
+
return {
|
|
83
|
+
alarms: 'Alarms',
|
|
84
|
+
requestId: 'RequestId',
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
static types(): { [key: string]: any } {
|
|
89
|
+
return {
|
|
90
|
+
alarms: { 'type': 'array', 'itemType': DescribeAlarmListResponseBodyAlarms },
|
|
91
|
+
requestId: 'string',
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
validate() {
|
|
96
|
+
if(Array.isArray(this.alarms)) {
|
|
97
|
+
$dara.Model.validateArray(this.alarms);
|
|
98
|
+
}
|
|
99
|
+
super.validate();
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
constructor(map?: { [key: string]: any }) {
|
|
103
|
+
super(map);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|