@alicloud/ddosbgp20180720 2.1.0 → 2.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 +151 -0
- package/dist/client.js +631 -370
- package/dist/client.js.map +1 -1
- package/package.json +6 -6
- package/src/client.ts +334 -0
package/src/client.ts
CHANGED
|
@@ -984,6 +984,120 @@ export class DescribeDdosEventResponse extends $tea.Model {
|
|
|
984
984
|
}
|
|
985
985
|
}
|
|
986
986
|
|
|
987
|
+
export class DescribeDdosOriginInstanceBillRequest extends $tea.Model {
|
|
988
|
+
endTime?: number;
|
|
989
|
+
isShowList?: boolean;
|
|
990
|
+
startTime?: number;
|
|
991
|
+
type?: string;
|
|
992
|
+
static names(): { [key: string]: string } {
|
|
993
|
+
return {
|
|
994
|
+
endTime: 'EndTime',
|
|
995
|
+
isShowList: 'IsShowList',
|
|
996
|
+
startTime: 'StartTime',
|
|
997
|
+
type: 'Type',
|
|
998
|
+
};
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
static types(): { [key: string]: any } {
|
|
1002
|
+
return {
|
|
1003
|
+
endTime: 'number',
|
|
1004
|
+
isShowList: 'boolean',
|
|
1005
|
+
startTime: 'number',
|
|
1006
|
+
type: 'string',
|
|
1007
|
+
};
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
constructor(map?: { [key: string]: any }) {
|
|
1011
|
+
super(map);
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
export class DescribeDdosOriginInstanceBillResponseBody extends $tea.Model {
|
|
1016
|
+
debtStatus?: number;
|
|
1017
|
+
flowList?: DescribeDdosOriginInstanceBillResponseBodyFlowList[];
|
|
1018
|
+
flowRegion?: { [key: string]: any };
|
|
1019
|
+
instanceId?: string;
|
|
1020
|
+
ipCount?: number;
|
|
1021
|
+
ipCountOrFunctionList?: DescribeDdosOriginInstanceBillResponseBodyIpCountOrFunctionList[];
|
|
1022
|
+
ipInfo?: string;
|
|
1023
|
+
requestId?: string;
|
|
1024
|
+
standardAssetsFlowList?: DescribeDdosOriginInstanceBillResponseBodyStandardAssetsFlowList[];
|
|
1025
|
+
standardAssetsFlowRegion?: { [key: string]: any };
|
|
1026
|
+
standardAssetsTotalFlowCn?: number;
|
|
1027
|
+
standardAssetsTotalFlowOv?: number;
|
|
1028
|
+
status?: number;
|
|
1029
|
+
totalFlowCn?: number;
|
|
1030
|
+
totalFlowOv?: number;
|
|
1031
|
+
static names(): { [key: string]: string } {
|
|
1032
|
+
return {
|
|
1033
|
+
debtStatus: 'DebtStatus',
|
|
1034
|
+
flowList: 'FlowList',
|
|
1035
|
+
flowRegion: 'FlowRegion',
|
|
1036
|
+
instanceId: 'InstanceId',
|
|
1037
|
+
ipCount: 'IpCount',
|
|
1038
|
+
ipCountOrFunctionList: 'IpCountOrFunctionList',
|
|
1039
|
+
ipInfo: 'IpInfo',
|
|
1040
|
+
requestId: 'RequestId',
|
|
1041
|
+
standardAssetsFlowList: 'StandardAssetsFlowList',
|
|
1042
|
+
standardAssetsFlowRegion: 'StandardAssetsFlowRegion',
|
|
1043
|
+
standardAssetsTotalFlowCn: 'StandardAssetsTotalFlowCn',
|
|
1044
|
+
standardAssetsTotalFlowOv: 'StandardAssetsTotalFlowOv',
|
|
1045
|
+
status: 'Status',
|
|
1046
|
+
totalFlowCn: 'TotalFlowCn',
|
|
1047
|
+
totalFlowOv: 'TotalFlowOv',
|
|
1048
|
+
};
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
static types(): { [key: string]: any } {
|
|
1052
|
+
return {
|
|
1053
|
+
debtStatus: 'number',
|
|
1054
|
+
flowList: { 'type': 'array', 'itemType': DescribeDdosOriginInstanceBillResponseBodyFlowList },
|
|
1055
|
+
flowRegion: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
1056
|
+
instanceId: 'string',
|
|
1057
|
+
ipCount: 'number',
|
|
1058
|
+
ipCountOrFunctionList: { 'type': 'array', 'itemType': DescribeDdosOriginInstanceBillResponseBodyIpCountOrFunctionList },
|
|
1059
|
+
ipInfo: 'string',
|
|
1060
|
+
requestId: 'string',
|
|
1061
|
+
standardAssetsFlowList: { 'type': 'array', 'itemType': DescribeDdosOriginInstanceBillResponseBodyStandardAssetsFlowList },
|
|
1062
|
+
standardAssetsFlowRegion: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
1063
|
+
standardAssetsTotalFlowCn: 'number',
|
|
1064
|
+
standardAssetsTotalFlowOv: 'number',
|
|
1065
|
+
status: 'number',
|
|
1066
|
+
totalFlowCn: 'number',
|
|
1067
|
+
totalFlowOv: 'number',
|
|
1068
|
+
};
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
constructor(map?: { [key: string]: any }) {
|
|
1072
|
+
super(map);
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
export class DescribeDdosOriginInstanceBillResponse extends $tea.Model {
|
|
1077
|
+
headers?: { [key: string]: string };
|
|
1078
|
+
statusCode?: number;
|
|
1079
|
+
body?: DescribeDdosOriginInstanceBillResponseBody;
|
|
1080
|
+
static names(): { [key: string]: string } {
|
|
1081
|
+
return {
|
|
1082
|
+
headers: 'headers',
|
|
1083
|
+
statusCode: 'statusCode',
|
|
1084
|
+
body: 'body',
|
|
1085
|
+
};
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
static types(): { [key: string]: any } {
|
|
1089
|
+
return {
|
|
1090
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1091
|
+
statusCode: 'number',
|
|
1092
|
+
body: DescribeDdosOriginInstanceBillResponseBody,
|
|
1093
|
+
};
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
constructor(map?: { [key: string]: any }) {
|
|
1097
|
+
super(map);
|
|
1098
|
+
}
|
|
1099
|
+
}
|
|
1100
|
+
|
|
987
1101
|
export class DescribeExcpetionCountRequest extends $tea.Model {
|
|
988
1102
|
regionId?: string;
|
|
989
1103
|
resourceGroupId?: string;
|
|
@@ -2311,6 +2425,69 @@ export class QuerySchedruleOnDemandResponse extends $tea.Model {
|
|
|
2311
2425
|
}
|
|
2312
2426
|
}
|
|
2313
2427
|
|
|
2428
|
+
export class ReleaseDdosOriginInstanceRequest extends $tea.Model {
|
|
2429
|
+
instanceId?: string;
|
|
2430
|
+
static names(): { [key: string]: string } {
|
|
2431
|
+
return {
|
|
2432
|
+
instanceId: 'InstanceId',
|
|
2433
|
+
};
|
|
2434
|
+
}
|
|
2435
|
+
|
|
2436
|
+
static types(): { [key: string]: any } {
|
|
2437
|
+
return {
|
|
2438
|
+
instanceId: 'string',
|
|
2439
|
+
};
|
|
2440
|
+
}
|
|
2441
|
+
|
|
2442
|
+
constructor(map?: { [key: string]: any }) {
|
|
2443
|
+
super(map);
|
|
2444
|
+
}
|
|
2445
|
+
}
|
|
2446
|
+
|
|
2447
|
+
export class ReleaseDdosOriginInstanceResponseBody extends $tea.Model {
|
|
2448
|
+
requestId?: string;
|
|
2449
|
+
static names(): { [key: string]: string } {
|
|
2450
|
+
return {
|
|
2451
|
+
requestId: 'RequestId',
|
|
2452
|
+
};
|
|
2453
|
+
}
|
|
2454
|
+
|
|
2455
|
+
static types(): { [key: string]: any } {
|
|
2456
|
+
return {
|
|
2457
|
+
requestId: 'string',
|
|
2458
|
+
};
|
|
2459
|
+
}
|
|
2460
|
+
|
|
2461
|
+
constructor(map?: { [key: string]: any }) {
|
|
2462
|
+
super(map);
|
|
2463
|
+
}
|
|
2464
|
+
}
|
|
2465
|
+
|
|
2466
|
+
export class ReleaseDdosOriginInstanceResponse extends $tea.Model {
|
|
2467
|
+
headers?: { [key: string]: string };
|
|
2468
|
+
statusCode?: number;
|
|
2469
|
+
body?: ReleaseDdosOriginInstanceResponseBody;
|
|
2470
|
+
static names(): { [key: string]: string } {
|
|
2471
|
+
return {
|
|
2472
|
+
headers: 'headers',
|
|
2473
|
+
statusCode: 'statusCode',
|
|
2474
|
+
body: 'body',
|
|
2475
|
+
};
|
|
2476
|
+
}
|
|
2477
|
+
|
|
2478
|
+
static types(): { [key: string]: any } {
|
|
2479
|
+
return {
|
|
2480
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
2481
|
+
statusCode: 'number',
|
|
2482
|
+
body: ReleaseDdosOriginInstanceResponseBody,
|
|
2483
|
+
};
|
|
2484
|
+
}
|
|
2485
|
+
|
|
2486
|
+
constructor(map?: { [key: string]: any }) {
|
|
2487
|
+
super(map);
|
|
2488
|
+
}
|
|
2489
|
+
}
|
|
2490
|
+
|
|
2314
2491
|
export class SetInstanceModeOnDemandRequest extends $tea.Model {
|
|
2315
2492
|
instanceIdList?: string[];
|
|
2316
2493
|
mode?: string;
|
|
@@ -2651,6 +2828,93 @@ export class DescribeDdosEventResponseBodyEvents extends $tea.Model {
|
|
|
2651
2828
|
}
|
|
2652
2829
|
}
|
|
2653
2830
|
|
|
2831
|
+
export class DescribeDdosOriginInstanceBillResponseBodyFlowList extends $tea.Model {
|
|
2832
|
+
memberFlow?: string;
|
|
2833
|
+
regionFlow?: string;
|
|
2834
|
+
time?: number;
|
|
2835
|
+
totalFlow?: number;
|
|
2836
|
+
static names(): { [key: string]: string } {
|
|
2837
|
+
return {
|
|
2838
|
+
memberFlow: 'MemberFlow',
|
|
2839
|
+
regionFlow: 'RegionFlow',
|
|
2840
|
+
time: 'Time',
|
|
2841
|
+
totalFlow: 'TotalFlow',
|
|
2842
|
+
};
|
|
2843
|
+
}
|
|
2844
|
+
|
|
2845
|
+
static types(): { [key: string]: any } {
|
|
2846
|
+
return {
|
|
2847
|
+
memberFlow: 'string',
|
|
2848
|
+
regionFlow: 'string',
|
|
2849
|
+
time: 'number',
|
|
2850
|
+
totalFlow: 'number',
|
|
2851
|
+
};
|
|
2852
|
+
}
|
|
2853
|
+
|
|
2854
|
+
constructor(map?: { [key: string]: any }) {
|
|
2855
|
+
super(map);
|
|
2856
|
+
}
|
|
2857
|
+
}
|
|
2858
|
+
|
|
2859
|
+
export class DescribeDdosOriginInstanceBillResponseBodyIpCountOrFunctionList extends $tea.Model {
|
|
2860
|
+
coverage?: string;
|
|
2861
|
+
ipCntCn?: number;
|
|
2862
|
+
ipCntOv?: number;
|
|
2863
|
+
memberIpCnt?: string;
|
|
2864
|
+
time?: number;
|
|
2865
|
+
static names(): { [key: string]: string } {
|
|
2866
|
+
return {
|
|
2867
|
+
coverage: 'Coverage',
|
|
2868
|
+
ipCntCn: 'IpCntCn',
|
|
2869
|
+
ipCntOv: 'IpCntOv',
|
|
2870
|
+
memberIpCnt: 'MemberIpCnt',
|
|
2871
|
+
time: 'Time',
|
|
2872
|
+
};
|
|
2873
|
+
}
|
|
2874
|
+
|
|
2875
|
+
static types(): { [key: string]: any } {
|
|
2876
|
+
return {
|
|
2877
|
+
coverage: 'string',
|
|
2878
|
+
ipCntCn: 'number',
|
|
2879
|
+
ipCntOv: 'number',
|
|
2880
|
+
memberIpCnt: 'string',
|
|
2881
|
+
time: 'number',
|
|
2882
|
+
};
|
|
2883
|
+
}
|
|
2884
|
+
|
|
2885
|
+
constructor(map?: { [key: string]: any }) {
|
|
2886
|
+
super(map);
|
|
2887
|
+
}
|
|
2888
|
+
}
|
|
2889
|
+
|
|
2890
|
+
export class DescribeDdosOriginInstanceBillResponseBodyStandardAssetsFlowList extends $tea.Model {
|
|
2891
|
+
memberFlow?: string;
|
|
2892
|
+
regionFlow?: string;
|
|
2893
|
+
time?: number;
|
|
2894
|
+
totalFlow?: number;
|
|
2895
|
+
static names(): { [key: string]: string } {
|
|
2896
|
+
return {
|
|
2897
|
+
memberFlow: 'MemberFlow',
|
|
2898
|
+
regionFlow: 'RegionFlow',
|
|
2899
|
+
time: 'Time',
|
|
2900
|
+
totalFlow: 'TotalFlow',
|
|
2901
|
+
};
|
|
2902
|
+
}
|
|
2903
|
+
|
|
2904
|
+
static types(): { [key: string]: any } {
|
|
2905
|
+
return {
|
|
2906
|
+
memberFlow: 'string',
|
|
2907
|
+
regionFlow: 'string',
|
|
2908
|
+
time: 'number',
|
|
2909
|
+
totalFlow: 'number',
|
|
2910
|
+
};
|
|
2911
|
+
}
|
|
2912
|
+
|
|
2913
|
+
constructor(map?: { [key: string]: any }) {
|
|
2914
|
+
super(map);
|
|
2915
|
+
}
|
|
2916
|
+
}
|
|
2917
|
+
|
|
2654
2918
|
export class DescribeInstanceListRequestTag extends $tea.Model {
|
|
2655
2919
|
key?: string;
|
|
2656
2920
|
value?: string;
|
|
@@ -3936,6 +4200,47 @@ export default class Client extends OpenApi {
|
|
|
3936
4200
|
return await this.describeDdosEventWithOptions(request, runtime);
|
|
3937
4201
|
}
|
|
3938
4202
|
|
|
4203
|
+
async describeDdosOriginInstanceBillWithOptions(request: DescribeDdosOriginInstanceBillRequest, runtime: $Util.RuntimeOptions): Promise<DescribeDdosOriginInstanceBillResponse> {
|
|
4204
|
+
Util.validateModel(request);
|
|
4205
|
+
let query = { };
|
|
4206
|
+
if (!Util.isUnset(request.endTime)) {
|
|
4207
|
+
query["EndTime"] = request.endTime;
|
|
4208
|
+
}
|
|
4209
|
+
|
|
4210
|
+
if (!Util.isUnset(request.isShowList)) {
|
|
4211
|
+
query["IsShowList"] = request.isShowList;
|
|
4212
|
+
}
|
|
4213
|
+
|
|
4214
|
+
if (!Util.isUnset(request.startTime)) {
|
|
4215
|
+
query["StartTime"] = request.startTime;
|
|
4216
|
+
}
|
|
4217
|
+
|
|
4218
|
+
if (!Util.isUnset(request.type)) {
|
|
4219
|
+
query["Type"] = request.type;
|
|
4220
|
+
}
|
|
4221
|
+
|
|
4222
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
4223
|
+
query: OpenApiUtil.query(query),
|
|
4224
|
+
});
|
|
4225
|
+
let params = new $OpenApi.Params({
|
|
4226
|
+
action: "DescribeDdosOriginInstanceBill",
|
|
4227
|
+
version: "2018-07-20",
|
|
4228
|
+
protocol: "HTTPS",
|
|
4229
|
+
pathname: "/",
|
|
4230
|
+
method: "POST",
|
|
4231
|
+
authType: "AK",
|
|
4232
|
+
style: "RPC",
|
|
4233
|
+
reqBodyType: "formData",
|
|
4234
|
+
bodyType: "json",
|
|
4235
|
+
});
|
|
4236
|
+
return $tea.cast<DescribeDdosOriginInstanceBillResponse>(await this.callApi(params, req, runtime), new DescribeDdosOriginInstanceBillResponse({}));
|
|
4237
|
+
}
|
|
4238
|
+
|
|
4239
|
+
async describeDdosOriginInstanceBill(request: DescribeDdosOriginInstanceBillRequest): Promise<DescribeDdosOriginInstanceBillResponse> {
|
|
4240
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
4241
|
+
return await this.describeDdosOriginInstanceBillWithOptions(request, runtime);
|
|
4242
|
+
}
|
|
4243
|
+
|
|
3939
4244
|
/**
|
|
3940
4245
|
* ## Usage notes
|
|
3941
4246
|
* You can call the DescribeExcpetionCount operation to query the number of assets that are in an abnormal state and the number of Anti-DDoS Origin instances that are about to expire in a specific region. For example, if blackhole filtering is triggered for an IP address, the IP address is in an abnormal state. An instance whose remaining validity period is less than seven days is considered as an instance that is about to expire.
|
|
@@ -4794,6 +5099,35 @@ export default class Client extends OpenApi {
|
|
|
4794
5099
|
return await this.querySchedruleOnDemandWithOptions(request, runtime);
|
|
4795
5100
|
}
|
|
4796
5101
|
|
|
5102
|
+
async releaseDdosOriginInstanceWithOptions(request: ReleaseDdosOriginInstanceRequest, runtime: $Util.RuntimeOptions): Promise<ReleaseDdosOriginInstanceResponse> {
|
|
5103
|
+
Util.validateModel(request);
|
|
5104
|
+
let query = { };
|
|
5105
|
+
if (!Util.isUnset(request.instanceId)) {
|
|
5106
|
+
query["InstanceId"] = request.instanceId;
|
|
5107
|
+
}
|
|
5108
|
+
|
|
5109
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
5110
|
+
query: OpenApiUtil.query(query),
|
|
5111
|
+
});
|
|
5112
|
+
let params = new $OpenApi.Params({
|
|
5113
|
+
action: "ReleaseDdosOriginInstance",
|
|
5114
|
+
version: "2018-07-20",
|
|
5115
|
+
protocol: "HTTPS",
|
|
5116
|
+
pathname: "/",
|
|
5117
|
+
method: "POST",
|
|
5118
|
+
authType: "AK",
|
|
5119
|
+
style: "RPC",
|
|
5120
|
+
reqBodyType: "formData",
|
|
5121
|
+
bodyType: "json",
|
|
5122
|
+
});
|
|
5123
|
+
return $tea.cast<ReleaseDdosOriginInstanceResponse>(await this.callApi(params, req, runtime), new ReleaseDdosOriginInstanceResponse({}));
|
|
5124
|
+
}
|
|
5125
|
+
|
|
5126
|
+
async releaseDdosOriginInstance(request: ReleaseDdosOriginInstanceRequest): Promise<ReleaseDdosOriginInstanceResponse> {
|
|
5127
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
5128
|
+
return await this.releaseDdosOriginInstanceWithOptions(request, runtime);
|
|
5129
|
+
}
|
|
5130
|
+
|
|
4797
5131
|
async setInstanceModeOnDemandWithOptions(request: SetInstanceModeOnDemandRequest, runtime: $Util.RuntimeOptions): Promise<SetInstanceModeOnDemandResponse> {
|
|
4798
5132
|
Util.validateModel(request);
|
|
4799
5133
|
let query = { };
|