@alicloud/ddosbgp20180720 2.0.0 → 2.0.1

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/src/client.ts CHANGED
@@ -9,16 +9,14 @@ import EndpointUtil from '@alicloud/endpoint-util';
9
9
  import * as $tea from '@alicloud/tea-typescript';
10
10
 
11
11
  export class AddIpRequest extends $tea.Model {
12
- sourceIp?: string;
13
- ipList?: string;
14
12
  instanceId?: string;
13
+ ipList?: string;
15
14
  regionId?: string;
16
15
  resourceGroupId?: string;
17
16
  static names(): { [key: string]: string } {
18
17
  return {
19
- sourceIp: 'SourceIp',
20
- ipList: 'IpList',
21
18
  instanceId: 'InstanceId',
19
+ ipList: 'IpList',
22
20
  regionId: 'RegionId',
23
21
  resourceGroupId: 'ResourceGroupId',
24
22
  };
@@ -26,9 +24,8 @@ export class AddIpRequest extends $tea.Model {
26
24
 
27
25
  static types(): { [key: string]: any } {
28
26
  return {
29
- sourceIp: 'string',
30
- ipList: 'string',
31
27
  instanceId: 'string',
28
+ ipList: 'string',
32
29
  regionId: 'string',
33
30
  resourceGroupId: 'string',
34
31
  };
@@ -60,10 +57,12 @@ export class AddIpResponseBody extends $tea.Model {
60
57
 
61
58
  export class AddIpResponse extends $tea.Model {
62
59
  headers: { [key: string]: string };
60
+ statusCode: number;
63
61
  body: AddIpResponseBody;
64
62
  static names(): { [key: string]: string } {
65
63
  return {
66
64
  headers: 'headers',
65
+ statusCode: 'statusCode',
67
66
  body: 'body',
68
67
  };
69
68
  }
@@ -71,6 +70,7 @@ export class AddIpResponse extends $tea.Model {
71
70
  static types(): { [key: string]: any } {
72
71
  return {
73
72
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
73
+ statusCode: 'number',
74
74
  body: AddIpResponseBody,
75
75
  };
76
76
  }
@@ -80,23 +80,92 @@ export class AddIpResponse extends $tea.Model {
80
80
  }
81
81
  }
82
82
 
83
- export class CheckGrantRequest extends $tea.Model {
84
- sourceIp?: string;
85
- resourceGroupId?: string;
83
+ export class CheckAccessLogAuthRequest extends $tea.Model {
86
84
  regionId?: string;
85
+ resourceGroupId?: string;
87
86
  static names(): { [key: string]: string } {
88
87
  return {
89
- sourceIp: 'SourceIp',
90
- resourceGroupId: 'ResourceGroupId',
91
88
  regionId: 'RegionId',
89
+ resourceGroupId: 'ResourceGroupId',
92
90
  };
93
91
  }
94
92
 
95
93
  static types(): { [key: string]: any } {
96
94
  return {
97
- sourceIp: 'string',
95
+ regionId: 'string',
98
96
  resourceGroupId: 'string',
97
+ };
98
+ }
99
+
100
+ constructor(map?: { [key: string]: any }) {
101
+ super(map);
102
+ }
103
+ }
104
+
105
+ export class CheckAccessLogAuthResponseBody extends $tea.Model {
106
+ accessLogAuth?: boolean;
107
+ requestId?: string;
108
+ static names(): { [key: string]: string } {
109
+ return {
110
+ accessLogAuth: 'AccessLogAuth',
111
+ requestId: 'RequestId',
112
+ };
113
+ }
114
+
115
+ static types(): { [key: string]: any } {
116
+ return {
117
+ accessLogAuth: 'boolean',
118
+ requestId: 'string',
119
+ };
120
+ }
121
+
122
+ constructor(map?: { [key: string]: any }) {
123
+ super(map);
124
+ }
125
+ }
126
+
127
+ export class CheckAccessLogAuthResponse extends $tea.Model {
128
+ headers: { [key: string]: string };
129
+ statusCode: number;
130
+ body: CheckAccessLogAuthResponseBody;
131
+ static names(): { [key: string]: string } {
132
+ return {
133
+ headers: 'headers',
134
+ statusCode: 'statusCode',
135
+ body: 'body',
136
+ };
137
+ }
138
+
139
+ static types(): { [key: string]: any } {
140
+ return {
141
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
142
+ statusCode: 'number',
143
+ body: CheckAccessLogAuthResponseBody,
144
+ };
145
+ }
146
+
147
+ constructor(map?: { [key: string]: any }) {
148
+ super(map);
149
+ }
150
+ }
151
+
152
+ export class CheckGrantRequest extends $tea.Model {
153
+ isSlr?: boolean;
154
+ regionId?: string;
155
+ resourceGroupId?: string;
156
+ static names(): { [key: string]: string } {
157
+ return {
158
+ isSlr: 'IsSlr',
159
+ regionId: 'RegionId',
160
+ resourceGroupId: 'ResourceGroupId',
161
+ };
162
+ }
163
+
164
+ static types(): { [key: string]: any } {
165
+ return {
166
+ isSlr: 'boolean',
99
167
  regionId: 'string',
168
+ resourceGroupId: 'string',
100
169
  };
101
170
  }
102
171
 
@@ -106,19 +175,19 @@ export class CheckGrantRequest extends $tea.Model {
106
175
  }
107
176
 
108
177
  export class CheckGrantResponseBody extends $tea.Model {
109
- status?: number;
110
178
  requestId?: string;
179
+ status?: number;
111
180
  static names(): { [key: string]: string } {
112
181
  return {
113
- status: 'Status',
114
182
  requestId: 'RequestId',
183
+ status: 'Status',
115
184
  };
116
185
  }
117
186
 
118
187
  static types(): { [key: string]: any } {
119
188
  return {
120
- status: 'number',
121
189
  requestId: 'string',
190
+ status: 'number',
122
191
  };
123
192
  }
124
193
 
@@ -129,10 +198,12 @@ export class CheckGrantResponseBody extends $tea.Model {
129
198
 
130
199
  export class CheckGrantResponse extends $tea.Model {
131
200
  headers: { [key: string]: string };
201
+ statusCode: number;
132
202
  body: CheckGrantResponseBody;
133
203
  static names(): { [key: string]: string } {
134
204
  return {
135
205
  headers: 'headers',
206
+ statusCode: 'statusCode',
136
207
  body: 'body',
137
208
  };
138
209
  }
@@ -140,6 +211,7 @@ export class CheckGrantResponse extends $tea.Model {
140
211
  static types(): { [key: string]: any } {
141
212
  return {
142
213
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
214
+ statusCode: 'number',
143
215
  body: CheckGrantResponseBody,
144
216
  };
145
217
  }
@@ -150,52 +222,49 @@ export class CheckGrantResponse extends $tea.Model {
150
222
  }
151
223
 
152
224
  export class ConfigSchedruleOnDemandRequest extends $tea.Model {
153
- sourceIp?: string;
154
225
  instanceId?: string;
155
- ruleName?: string;
156
- ruleConditionMbps?: string;
157
- ruleConditionKpps?: string;
158
- ruleConditionCnt?: string;
226
+ regionId?: string;
159
227
  ruleAction?: string;
228
+ ruleConditionCnt?: string;
229
+ ruleConditionKpps?: string;
230
+ ruleConditionMbps?: string;
231
+ ruleName?: string;
160
232
  ruleSwitch?: string;
161
- ruleUndoMode?: string;
162
233
  ruleUndoBeginTime?: string;
163
234
  ruleUndoEndTime?: string;
235
+ ruleUndoMode?: string;
164
236
  timeZone?: string;
165
- regionId?: string;
166
237
  static names(): { [key: string]: string } {
167
238
  return {
168
- sourceIp: 'SourceIp',
169
239
  instanceId: 'InstanceId',
170
- ruleName: 'RuleName',
171
- ruleConditionMbps: 'RuleConditionMbps',
172
- ruleConditionKpps: 'RuleConditionKpps',
173
- ruleConditionCnt: 'RuleConditionCnt',
240
+ regionId: 'RegionId',
174
241
  ruleAction: 'RuleAction',
242
+ ruleConditionCnt: 'RuleConditionCnt',
243
+ ruleConditionKpps: 'RuleConditionKpps',
244
+ ruleConditionMbps: 'RuleConditionMbps',
245
+ ruleName: 'RuleName',
175
246
  ruleSwitch: 'RuleSwitch',
176
- ruleUndoMode: 'RuleUndoMode',
177
247
  ruleUndoBeginTime: 'RuleUndoBeginTime',
178
248
  ruleUndoEndTime: 'RuleUndoEndTime',
249
+ ruleUndoMode: 'RuleUndoMode',
179
250
  timeZone: 'TimeZone',
180
- regionId: 'RegionId',
181
251
  };
182
252
  }
183
253
 
184
254
  static types(): { [key: string]: any } {
185
255
  return {
186
- sourceIp: 'string',
187
256
  instanceId: 'string',
188
- ruleName: 'string',
189
- ruleConditionMbps: 'string',
190
- ruleConditionKpps: 'string',
191
- ruleConditionCnt: 'string',
257
+ regionId: 'string',
192
258
  ruleAction: 'string',
259
+ ruleConditionCnt: 'string',
260
+ ruleConditionKpps: 'string',
261
+ ruleConditionMbps: 'string',
262
+ ruleName: 'string',
193
263
  ruleSwitch: 'string',
194
- ruleUndoMode: 'string',
195
264
  ruleUndoBeginTime: 'string',
196
265
  ruleUndoEndTime: 'string',
266
+ ruleUndoMode: 'string',
197
267
  timeZone: 'string',
198
- regionId: 'string',
199
268
  };
200
269
  }
201
270
 
@@ -225,10 +294,12 @@ export class ConfigSchedruleOnDemandResponseBody extends $tea.Model {
225
294
 
226
295
  export class ConfigSchedruleOnDemandResponse extends $tea.Model {
227
296
  headers: { [key: string]: string };
297
+ statusCode: number;
228
298
  body: ConfigSchedruleOnDemandResponseBody;
229
299
  static names(): { [key: string]: string } {
230
300
  return {
231
301
  headers: 'headers',
302
+ statusCode: 'statusCode',
232
303
  body: 'body',
233
304
  };
234
305
  }
@@ -236,6 +307,7 @@ export class ConfigSchedruleOnDemandResponse extends $tea.Model {
236
307
  static types(): { [key: string]: any } {
237
308
  return {
238
309
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
310
+ statusCode: 'number',
239
311
  body: ConfigSchedruleOnDemandResponseBody,
240
312
  };
241
313
  }
@@ -246,52 +318,49 @@ export class ConfigSchedruleOnDemandResponse extends $tea.Model {
246
318
  }
247
319
 
248
320
  export class CreateSchedruleOnDemandRequest extends $tea.Model {
249
- sourceIp?: string;
250
321
  instanceId?: string;
251
- ruleName?: string;
252
- ruleConditionMbps?: string;
253
- ruleConditionKpps?: string;
254
- ruleConditionCnt?: string;
322
+ regionId?: string;
255
323
  ruleAction?: string;
324
+ ruleConditionCnt?: string;
325
+ ruleConditionKpps?: string;
326
+ ruleConditionMbps?: string;
327
+ ruleName?: string;
256
328
  ruleSwitch?: string;
257
- ruleUndoMode?: string;
258
329
  ruleUndoBeginTime?: string;
259
330
  ruleUndoEndTime?: string;
331
+ ruleUndoMode?: string;
260
332
  timeZone?: string;
261
- regionId?: string;
262
333
  static names(): { [key: string]: string } {
263
334
  return {
264
- sourceIp: 'SourceIp',
265
335
  instanceId: 'InstanceId',
266
- ruleName: 'RuleName',
267
- ruleConditionMbps: 'RuleConditionMbps',
268
- ruleConditionKpps: 'RuleConditionKpps',
269
- ruleConditionCnt: 'RuleConditionCnt',
336
+ regionId: 'RegionId',
270
337
  ruleAction: 'RuleAction',
338
+ ruleConditionCnt: 'RuleConditionCnt',
339
+ ruleConditionKpps: 'RuleConditionKpps',
340
+ ruleConditionMbps: 'RuleConditionMbps',
341
+ ruleName: 'RuleName',
271
342
  ruleSwitch: 'RuleSwitch',
272
- ruleUndoMode: 'RuleUndoMode',
273
343
  ruleUndoBeginTime: 'RuleUndoBeginTime',
274
344
  ruleUndoEndTime: 'RuleUndoEndTime',
345
+ ruleUndoMode: 'RuleUndoMode',
275
346
  timeZone: 'TimeZone',
276
- regionId: 'RegionId',
277
347
  };
278
348
  }
279
349
 
280
350
  static types(): { [key: string]: any } {
281
351
  return {
282
- sourceIp: 'string',
283
352
  instanceId: 'string',
284
- ruleName: 'string',
285
- ruleConditionMbps: 'string',
286
- ruleConditionKpps: 'string',
287
- ruleConditionCnt: 'string',
353
+ regionId: 'string',
288
354
  ruleAction: 'string',
355
+ ruleConditionCnt: 'string',
356
+ ruleConditionKpps: 'string',
357
+ ruleConditionMbps: 'string',
358
+ ruleName: 'string',
289
359
  ruleSwitch: 'string',
290
- ruleUndoMode: 'string',
291
360
  ruleUndoBeginTime: 'string',
292
361
  ruleUndoEndTime: 'string',
362
+ ruleUndoMode: 'string',
293
363
  timeZone: 'string',
294
- regionId: 'string',
295
364
  };
296
365
  }
297
366
 
@@ -321,10 +390,12 @@ export class CreateSchedruleOnDemandResponseBody extends $tea.Model {
321
390
 
322
391
  export class CreateSchedruleOnDemandResponse extends $tea.Model {
323
392
  headers: { [key: string]: string };
393
+ statusCode: number;
324
394
  body: CreateSchedruleOnDemandResponseBody;
325
395
  static names(): { [key: string]: string } {
326
396
  return {
327
397
  headers: 'headers',
398
+ statusCode: 'statusCode',
328
399
  body: 'body',
329
400
  };
330
401
  }
@@ -332,6 +403,7 @@ export class CreateSchedruleOnDemandResponse extends $tea.Model {
332
403
  static types(): { [key: string]: any } {
333
404
  return {
334
405
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
406
+ statusCode: 'number',
335
407
  body: CreateSchedruleOnDemandResponseBody,
336
408
  };
337
409
  }
@@ -342,28 +414,25 @@ export class CreateSchedruleOnDemandResponse extends $tea.Model {
342
414
  }
343
415
 
344
416
  export class DeleteBlackholeRequest extends $tea.Model {
345
- sourceIp?: string;
346
- ip?: string;
347
417
  instanceId?: string;
348
- resourceGroupId?: string;
418
+ ip?: string;
349
419
  regionId?: string;
420
+ resourceGroupId?: string;
350
421
  static names(): { [key: string]: string } {
351
422
  return {
352
- sourceIp: 'SourceIp',
353
- ip: 'Ip',
354
423
  instanceId: 'InstanceId',
355
- resourceGroupId: 'ResourceGroupId',
424
+ ip: 'Ip',
356
425
  regionId: 'RegionId',
426
+ resourceGroupId: 'ResourceGroupId',
357
427
  };
358
428
  }
359
429
 
360
430
  static types(): { [key: string]: any } {
361
431
  return {
362
- sourceIp: 'string',
363
- ip: 'string',
364
432
  instanceId: 'string',
365
- resourceGroupId: 'string',
433
+ ip: 'string',
366
434
  regionId: 'string',
435
+ resourceGroupId: 'string',
367
436
  };
368
437
  }
369
438
 
@@ -393,10 +462,12 @@ export class DeleteBlackholeResponseBody extends $tea.Model {
393
462
 
394
463
  export class DeleteBlackholeResponse extends $tea.Model {
395
464
  headers: { [key: string]: string };
465
+ statusCode: number;
396
466
  body: DeleteBlackholeResponseBody;
397
467
  static names(): { [key: string]: string } {
398
468
  return {
399
469
  headers: 'headers',
470
+ statusCode: 'statusCode',
400
471
  body: 'body',
401
472
  };
402
473
  }
@@ -404,6 +475,7 @@ export class DeleteBlackholeResponse extends $tea.Model {
404
475
  static types(): { [key: string]: any } {
405
476
  return {
406
477
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
478
+ statusCode: 'number',
407
479
  body: DeleteBlackholeResponseBody,
408
480
  };
409
481
  }
@@ -414,28 +486,25 @@ export class DeleteBlackholeResponse extends $tea.Model {
414
486
  }
415
487
 
416
488
  export class DeleteIpRequest extends $tea.Model {
417
- sourceIp?: string;
418
- ipList?: string;
419
489
  instanceId?: string;
420
- resourceGroupId?: string;
490
+ ipList?: string;
421
491
  regionId?: string;
492
+ resourceGroupId?: string;
422
493
  static names(): { [key: string]: string } {
423
494
  return {
424
- sourceIp: 'SourceIp',
425
- ipList: 'IpList',
426
495
  instanceId: 'InstanceId',
427
- resourceGroupId: 'ResourceGroupId',
496
+ ipList: 'IpList',
428
497
  regionId: 'RegionId',
498
+ resourceGroupId: 'ResourceGroupId',
429
499
  };
430
500
  }
431
501
 
432
502
  static types(): { [key: string]: any } {
433
503
  return {
434
- sourceIp: 'string',
435
- ipList: 'string',
436
504
  instanceId: 'string',
437
- resourceGroupId: 'string',
505
+ ipList: 'string',
438
506
  regionId: 'string',
507
+ resourceGroupId: 'string',
439
508
  };
440
509
  }
441
510
 
@@ -465,10 +534,12 @@ export class DeleteIpResponseBody extends $tea.Model {
465
534
 
466
535
  export class DeleteIpResponse extends $tea.Model {
467
536
  headers: { [key: string]: string };
537
+ statusCode: number;
468
538
  body: DeleteIpResponseBody;
469
539
  static names(): { [key: string]: string } {
470
540
  return {
471
541
  headers: 'headers',
542
+ statusCode: 'statusCode',
472
543
  body: 'body',
473
544
  };
474
545
  }
@@ -476,6 +547,7 @@ export class DeleteIpResponse extends $tea.Model {
476
547
  static types(): { [key: string]: any } {
477
548
  return {
478
549
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
550
+ statusCode: 'number',
479
551
  body: DeleteIpResponseBody,
480
552
  };
481
553
  }
@@ -486,25 +558,22 @@ export class DeleteIpResponse extends $tea.Model {
486
558
  }
487
559
 
488
560
  export class DeleteSchedruleOnDemandRequest extends $tea.Model {
489
- sourceIp?: string;
490
561
  instanceId?: string;
491
- ruleName?: string;
492
562
  regionId?: string;
563
+ ruleName?: string;
493
564
  static names(): { [key: string]: string } {
494
565
  return {
495
- sourceIp: 'SourceIp',
496
566
  instanceId: 'InstanceId',
497
- ruleName: 'RuleName',
498
567
  regionId: 'RegionId',
568
+ ruleName: 'RuleName',
499
569
  };
500
570
  }
501
571
 
502
572
  static types(): { [key: string]: any } {
503
573
  return {
504
- sourceIp: 'string',
505
574
  instanceId: 'string',
506
- ruleName: 'string',
507
575
  regionId: 'string',
576
+ ruleName: 'string',
508
577
  };
509
578
  }
510
579
 
@@ -534,10 +603,12 @@ export class DeleteSchedruleOnDemandResponseBody extends $tea.Model {
534
603
 
535
604
  export class DeleteSchedruleOnDemandResponse extends $tea.Model {
536
605
  headers: { [key: string]: string };
606
+ statusCode: number;
537
607
  body: DeleteSchedruleOnDemandResponseBody;
538
608
  static names(): { [key: string]: string } {
539
609
  return {
540
610
  headers: 'headers',
611
+ statusCode: 'statusCode',
541
612
  body: 'body',
542
613
  };
543
614
  }
@@ -545,6 +616,7 @@ export class DeleteSchedruleOnDemandResponse extends $tea.Model {
545
616
  static types(): { [key: string]: any } {
546
617
  return {
547
618
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
619
+ statusCode: 'number',
548
620
  body: DeleteSchedruleOnDemandResponseBody,
549
621
  };
550
622
  }
@@ -555,40 +627,37 @@ export class DeleteSchedruleOnDemandResponse extends $tea.Model {
555
627
  }
556
628
 
557
629
  export class DescribeDdosEventRequest extends $tea.Model {
558
- sourceIp?: string;
559
- startTime?: number;
560
630
  endTime?: number;
561
- pageSize?: number;
562
- pageNo?: number;
563
631
  instanceId?: string;
564
632
  ip?: string;
565
- resourceGroupId?: string;
633
+ pageNo?: number;
634
+ pageSize?: number;
566
635
  regionId?: string;
636
+ resourceGroupId?: string;
637
+ startTime?: number;
567
638
  static names(): { [key: string]: string } {
568
639
  return {
569
- sourceIp: 'SourceIp',
570
- startTime: 'StartTime',
571
640
  endTime: 'EndTime',
572
- pageSize: 'PageSize',
573
- pageNo: 'PageNo',
574
641
  instanceId: 'InstanceId',
575
642
  ip: 'Ip',
576
- resourceGroupId: 'ResourceGroupId',
643
+ pageNo: 'PageNo',
644
+ pageSize: 'PageSize',
577
645
  regionId: 'RegionId',
646
+ resourceGroupId: 'ResourceGroupId',
647
+ startTime: 'StartTime',
578
648
  };
579
649
  }
580
650
 
581
651
  static types(): { [key: string]: any } {
582
652
  return {
583
- sourceIp: 'string',
584
- startTime: 'number',
585
653
  endTime: 'number',
586
- pageSize: 'number',
587
- pageNo: 'number',
588
654
  instanceId: 'string',
589
655
  ip: 'string',
590
- resourceGroupId: 'string',
656
+ pageNo: 'number',
657
+ pageSize: 'number',
591
658
  regionId: 'string',
659
+ resourceGroupId: 'string',
660
+ startTime: 'number',
592
661
  };
593
662
  }
594
663
 
@@ -598,21 +667,21 @@ export class DescribeDdosEventRequest extends $tea.Model {
598
667
  }
599
668
 
600
669
  export class DescribeDdosEventResponseBody extends $tea.Model {
601
- requestId?: string;
602
670
  events?: DescribeDdosEventResponseBodyEvents[];
671
+ requestId?: string;
603
672
  total?: number;
604
673
  static names(): { [key: string]: string } {
605
674
  return {
606
- requestId: 'RequestId',
607
675
  events: 'Events',
676
+ requestId: 'RequestId',
608
677
  total: 'Total',
609
678
  };
610
679
  }
611
680
 
612
681
  static types(): { [key: string]: any } {
613
682
  return {
614
- requestId: 'string',
615
683
  events: { 'type': 'array', 'itemType': DescribeDdosEventResponseBodyEvents },
684
+ requestId: 'string',
616
685
  total: 'number',
617
686
  };
618
687
  }
@@ -624,10 +693,12 @@ export class DescribeDdosEventResponseBody extends $tea.Model {
624
693
 
625
694
  export class DescribeDdosEventResponse extends $tea.Model {
626
695
  headers: { [key: string]: string };
696
+ statusCode: number;
627
697
  body: DescribeDdosEventResponseBody;
628
698
  static names(): { [key: string]: string } {
629
699
  return {
630
700
  headers: 'headers',
701
+ statusCode: 'statusCode',
631
702
  body: 'body',
632
703
  };
633
704
  }
@@ -635,6 +706,7 @@ export class DescribeDdosEventResponse extends $tea.Model {
635
706
  static types(): { [key: string]: any } {
636
707
  return {
637
708
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
709
+ statusCode: 'number',
638
710
  body: DescribeDdosEventResponseBody,
639
711
  };
640
712
  }
@@ -645,22 +717,19 @@ export class DescribeDdosEventResponse extends $tea.Model {
645
717
  }
646
718
 
647
719
  export class DescribeExcpetionCountRequest extends $tea.Model {
648
- sourceIp?: string;
649
- resourceGroupId?: string;
650
720
  regionId?: string;
721
+ resourceGroupId?: string;
651
722
  static names(): { [key: string]: string } {
652
723
  return {
653
- sourceIp: 'SourceIp',
654
- resourceGroupId: 'ResourceGroupId',
655
724
  regionId: 'RegionId',
725
+ resourceGroupId: 'ResourceGroupId',
656
726
  };
657
727
  }
658
728
 
659
729
  static types(): { [key: string]: any } {
660
730
  return {
661
- sourceIp: 'string',
662
- resourceGroupId: 'string',
663
731
  regionId: 'string',
732
+ resourceGroupId: 'string',
664
733
  };
665
734
  }
666
735
 
@@ -670,22 +739,22 @@ export class DescribeExcpetionCountRequest extends $tea.Model {
670
739
  }
671
740
 
672
741
  export class DescribeExcpetionCountResponseBody extends $tea.Model {
673
- requestId?: string;
674
742
  exceptionIpCount?: number;
675
743
  expireTimeCount?: number;
744
+ requestId?: string;
676
745
  static names(): { [key: string]: string } {
677
746
  return {
678
- requestId: 'RequestId',
679
747
  exceptionIpCount: 'ExceptionIpCount',
680
748
  expireTimeCount: 'ExpireTimeCount',
749
+ requestId: 'RequestId',
681
750
  };
682
751
  }
683
752
 
684
753
  static types(): { [key: string]: any } {
685
754
  return {
686
- requestId: 'string',
687
755
  exceptionIpCount: 'number',
688
756
  expireTimeCount: 'number',
757
+ requestId: 'string',
689
758
  };
690
759
  }
691
760
 
@@ -696,10 +765,12 @@ export class DescribeExcpetionCountResponseBody extends $tea.Model {
696
765
 
697
766
  export class DescribeExcpetionCountResponse extends $tea.Model {
698
767
  headers: { [key: string]: string };
768
+ statusCode: number;
699
769
  body: DescribeExcpetionCountResponseBody;
700
770
  static names(): { [key: string]: string } {
701
771
  return {
702
772
  headers: 'headers',
773
+ statusCode: 'statusCode',
703
774
  body: 'body',
704
775
  };
705
776
  }
@@ -707,6 +778,7 @@ export class DescribeExcpetionCountResponse extends $tea.Model {
707
778
  static types(): { [key: string]: any } {
708
779
  return {
709
780
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
781
+ statusCode: 'number',
710
782
  body: DescribeExcpetionCountResponseBody,
711
783
  };
712
784
  }
@@ -717,51 +789,51 @@ export class DescribeExcpetionCountResponse extends $tea.Model {
717
789
  }
718
790
 
719
791
  export class DescribeInstanceListRequest extends $tea.Model {
720
- sourceIp?: string;
721
- resourceGroupId?: string;
722
792
  instanceIdList?: string;
723
- remark?: string;
724
- pageNo?: number;
725
- pageSize?: number;
726
- ipVersion?: string;
727
793
  instanceType?: string;
794
+ instanceTypeList?: string[];
728
795
  ip?: string;
796
+ ipVersion?: string;
729
797
  orderby?: string;
730
798
  orderdire?: string;
799
+ pageNo?: number;
800
+ pageSize?: number;
731
801
  regionId?: string;
802
+ remark?: string;
803
+ resourceGroupId?: string;
732
804
  tag?: DescribeInstanceListRequestTag[];
733
805
  static names(): { [key: string]: string } {
734
806
  return {
735
- sourceIp: 'SourceIp',
736
- resourceGroupId: 'ResourceGroupId',
737
807
  instanceIdList: 'InstanceIdList',
738
- remark: 'Remark',
739
- pageNo: 'PageNo',
740
- pageSize: 'PageSize',
741
- ipVersion: 'IpVersion',
742
808
  instanceType: 'InstanceType',
809
+ instanceTypeList: 'InstanceTypeList',
743
810
  ip: 'Ip',
811
+ ipVersion: 'IpVersion',
744
812
  orderby: 'Orderby',
745
813
  orderdire: 'Orderdire',
814
+ pageNo: 'PageNo',
815
+ pageSize: 'PageSize',
746
816
  regionId: 'RegionId',
817
+ remark: 'Remark',
818
+ resourceGroupId: 'ResourceGroupId',
747
819
  tag: 'Tag',
748
820
  };
749
821
  }
750
822
 
751
823
  static types(): { [key: string]: any } {
752
824
  return {
753
- sourceIp: 'string',
754
- resourceGroupId: 'string',
755
825
  instanceIdList: 'string',
756
- remark: 'string',
757
- pageNo: 'number',
758
- pageSize: 'number',
759
- ipVersion: 'string',
760
826
  instanceType: 'string',
827
+ instanceTypeList: { 'type': 'array', 'itemType': 'string' },
761
828
  ip: 'string',
829
+ ipVersion: 'string',
762
830
  orderby: 'string',
763
831
  orderdire: 'string',
832
+ pageNo: 'number',
833
+ pageSize: 'number',
764
834
  regionId: 'string',
835
+ remark: 'string',
836
+ resourceGroupId: 'string',
765
837
  tag: { 'type': 'array', 'itemType': DescribeInstanceListRequestTag },
766
838
  };
767
839
  }
@@ -772,22 +844,22 @@ export class DescribeInstanceListRequest extends $tea.Model {
772
844
  }
773
845
 
774
846
  export class DescribeInstanceListResponseBody extends $tea.Model {
847
+ instanceList?: DescribeInstanceListResponseBodyInstanceList[];
775
848
  requestId?: string;
776
849
  total?: number;
777
- instanceList?: DescribeInstanceListResponseBodyInstanceList[];
778
850
  static names(): { [key: string]: string } {
779
851
  return {
852
+ instanceList: 'InstanceList',
780
853
  requestId: 'RequestId',
781
854
  total: 'Total',
782
- instanceList: 'InstanceList',
783
855
  };
784
856
  }
785
857
 
786
858
  static types(): { [key: string]: any } {
787
859
  return {
860
+ instanceList: { 'type': 'array', 'itemType': DescribeInstanceListResponseBodyInstanceList },
788
861
  requestId: 'string',
789
862
  total: 'number',
790
- instanceList: { 'type': 'array', 'itemType': DescribeInstanceListResponseBodyInstanceList },
791
863
  };
792
864
  }
793
865
 
@@ -798,10 +870,12 @@ export class DescribeInstanceListResponseBody extends $tea.Model {
798
870
 
799
871
  export class DescribeInstanceListResponse extends $tea.Model {
800
872
  headers: { [key: string]: string };
873
+ statusCode: number;
801
874
  body: DescribeInstanceListResponseBody;
802
875
  static names(): { [key: string]: string } {
803
876
  return {
804
877
  headers: 'headers',
878
+ statusCode: 'statusCode',
805
879
  body: 'body',
806
880
  };
807
881
  }
@@ -809,6 +883,7 @@ export class DescribeInstanceListResponse extends $tea.Model {
809
883
  static types(): { [key: string]: any } {
810
884
  return {
811
885
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
886
+ statusCode: 'number',
812
887
  body: DescribeInstanceListResponseBody,
813
888
  };
814
889
  }
@@ -819,15 +894,11 @@ export class DescribeInstanceListResponse extends $tea.Model {
819
894
  }
820
895
 
821
896
  export class DescribeInstanceSpecsRequest extends $tea.Model {
822
- sourceIp?: string;
823
- lang?: string;
824
897
  instanceIdList?: string;
825
898
  regionId?: string;
826
899
  resourceGroupId?: string;
827
900
  static names(): { [key: string]: string } {
828
901
  return {
829
- sourceIp: 'SourceIp',
830
- lang: 'Lang',
831
902
  instanceIdList: 'InstanceIdList',
832
903
  regionId: 'RegionId',
833
904
  resourceGroupId: 'ResourceGroupId',
@@ -836,8 +907,6 @@ export class DescribeInstanceSpecsRequest extends $tea.Model {
836
907
 
837
908
  static types(): { [key: string]: any } {
838
909
  return {
839
- sourceIp: 'string',
840
- lang: 'string',
841
910
  instanceIdList: 'string',
842
911
  regionId: 'string',
843
912
  resourceGroupId: 'string',
@@ -850,19 +919,19 @@ export class DescribeInstanceSpecsRequest extends $tea.Model {
850
919
  }
851
920
 
852
921
  export class DescribeInstanceSpecsResponseBody extends $tea.Model {
853
- requestId?: string;
854
922
  instanceSpecs?: DescribeInstanceSpecsResponseBodyInstanceSpecs[];
923
+ requestId?: string;
855
924
  static names(): { [key: string]: string } {
856
925
  return {
857
- requestId: 'RequestId',
858
926
  instanceSpecs: 'InstanceSpecs',
927
+ requestId: 'RequestId',
859
928
  };
860
929
  }
861
930
 
862
931
  static types(): { [key: string]: any } {
863
932
  return {
864
- requestId: 'string',
865
933
  instanceSpecs: { 'type': 'array', 'itemType': DescribeInstanceSpecsResponseBodyInstanceSpecs },
934
+ requestId: 'string',
866
935
  };
867
936
  }
868
937
 
@@ -873,10 +942,12 @@ export class DescribeInstanceSpecsResponseBody extends $tea.Model {
873
942
 
874
943
  export class DescribeInstanceSpecsResponse extends $tea.Model {
875
944
  headers: { [key: string]: string };
945
+ statusCode: number;
876
946
  body: DescribeInstanceSpecsResponseBody;
877
947
  static names(): { [key: string]: string } {
878
948
  return {
879
949
  headers: 'headers',
950
+ statusCode: 'statusCode',
880
951
  body: 'body',
881
952
  };
882
953
  }
@@ -884,6 +955,7 @@ export class DescribeInstanceSpecsResponse extends $tea.Model {
884
955
  static types(): { [key: string]: any } {
885
956
  return {
886
957
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
958
+ statusCode: 'number',
887
959
  body: DescribeInstanceSpecsResponseBody,
888
960
  };
889
961
  }
@@ -894,40 +966,37 @@ export class DescribeInstanceSpecsResponse extends $tea.Model {
894
966
  }
895
967
 
896
968
  export class DescribeOnDemandDdosEventRequest extends $tea.Model {
897
- sourceIp?: string;
898
- startTime?: number;
899
969
  endTime?: number;
900
- pageSize?: number;
901
- pageNo?: number;
902
970
  instanceId?: string;
903
971
  ip?: string;
904
- resourceGroupId?: string;
972
+ pageNo?: number;
973
+ pageSize?: number;
905
974
  regionId?: string;
975
+ resourceGroupId?: string;
976
+ startTime?: number;
906
977
  static names(): { [key: string]: string } {
907
978
  return {
908
- sourceIp: 'SourceIp',
909
- startTime: 'StartTime',
910
979
  endTime: 'EndTime',
911
- pageSize: 'PageSize',
912
- pageNo: 'PageNo',
913
980
  instanceId: 'InstanceId',
914
981
  ip: 'Ip',
915
- resourceGroupId: 'ResourceGroupId',
982
+ pageNo: 'PageNo',
983
+ pageSize: 'PageSize',
916
984
  regionId: 'RegionId',
985
+ resourceGroupId: 'ResourceGroupId',
986
+ startTime: 'StartTime',
917
987
  };
918
988
  }
919
989
 
920
990
  static types(): { [key: string]: any } {
921
991
  return {
922
- sourceIp: 'string',
923
- startTime: 'number',
924
992
  endTime: 'number',
925
- pageSize: 'number',
926
- pageNo: 'number',
927
993
  instanceId: 'string',
928
994
  ip: 'string',
929
- resourceGroupId: 'string',
995
+ pageNo: 'number',
996
+ pageSize: 'number',
930
997
  regionId: 'string',
998
+ resourceGroupId: 'string',
999
+ startTime: 'number',
931
1000
  };
932
1001
  }
933
1002
 
@@ -937,21 +1006,21 @@ export class DescribeOnDemandDdosEventRequest extends $tea.Model {
937
1006
  }
938
1007
 
939
1008
  export class DescribeOnDemandDdosEventResponseBody extends $tea.Model {
940
- requestId?: string;
941
1009
  events?: DescribeOnDemandDdosEventResponseBodyEvents[];
1010
+ requestId?: string;
942
1011
  total?: number;
943
1012
  static names(): { [key: string]: string } {
944
1013
  return {
945
- requestId: 'RequestId',
946
1014
  events: 'Events',
1015
+ requestId: 'RequestId',
947
1016
  total: 'Total',
948
1017
  };
949
1018
  }
950
1019
 
951
1020
  static types(): { [key: string]: any } {
952
1021
  return {
953
- requestId: 'string',
954
1022
  events: { 'type': 'array', 'itemType': DescribeOnDemandDdosEventResponseBodyEvents },
1023
+ requestId: 'string',
955
1024
  total: 'number',
956
1025
  };
957
1026
  }
@@ -963,10 +1032,12 @@ export class DescribeOnDemandDdosEventResponseBody extends $tea.Model {
963
1032
 
964
1033
  export class DescribeOnDemandDdosEventResponse extends $tea.Model {
965
1034
  headers: { [key: string]: string };
1035
+ statusCode: number;
966
1036
  body: DescribeOnDemandDdosEventResponseBody;
967
1037
  static names(): { [key: string]: string } {
968
1038
  return {
969
1039
  headers: 'headers',
1040
+ statusCode: 'statusCode',
970
1041
  body: 'body',
971
1042
  };
972
1043
  }
@@ -974,6 +1045,7 @@ export class DescribeOnDemandDdosEventResponse extends $tea.Model {
974
1045
  static types(): { [key: string]: any } {
975
1046
  return {
976
1047
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1048
+ statusCode: 'number',
977
1049
  body: DescribeOnDemandDdosEventResponseBody,
978
1050
  };
979
1051
  }
@@ -984,22 +1056,19 @@ export class DescribeOnDemandDdosEventResponse extends $tea.Model {
984
1056
  }
985
1057
 
986
1058
  export class DescribeOnDemandInstanceStatusRequest extends $tea.Model {
987
- sourceIp?: string;
988
- regionId?: string;
989
1059
  instanceIdList?: string[];
1060
+ regionId?: string;
990
1061
  static names(): { [key: string]: string } {
991
1062
  return {
992
- sourceIp: 'SourceIp',
993
- regionId: 'RegionId',
994
1063
  instanceIdList: 'InstanceIdList',
1064
+ regionId: 'RegionId',
995
1065
  };
996
1066
  }
997
1067
 
998
1068
  static types(): { [key: string]: any } {
999
1069
  return {
1000
- sourceIp: 'string',
1001
- regionId: 'string',
1002
1070
  instanceIdList: { 'type': 'array', 'itemType': 'string' },
1071
+ regionId: 'string',
1003
1072
  };
1004
1073
  }
1005
1074
 
@@ -1032,10 +1101,12 @@ export class DescribeOnDemandInstanceStatusResponseBody extends $tea.Model {
1032
1101
 
1033
1102
  export class DescribeOnDemandInstanceStatusResponse extends $tea.Model {
1034
1103
  headers: { [key: string]: string };
1104
+ statusCode: number;
1035
1105
  body: DescribeOnDemandInstanceStatusResponseBody;
1036
1106
  static names(): { [key: string]: string } {
1037
1107
  return {
1038
1108
  headers: 'headers',
1109
+ statusCode: 'statusCode',
1039
1110
  body: 'body',
1040
1111
  };
1041
1112
  }
@@ -1043,6 +1114,7 @@ export class DescribeOnDemandInstanceStatusResponse extends $tea.Model {
1043
1114
  static types(): { [key: string]: any } {
1044
1115
  return {
1045
1116
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1117
+ statusCode: 'number',
1046
1118
  body: DescribeOnDemandInstanceStatusResponseBody,
1047
1119
  };
1048
1120
  }
@@ -1053,46 +1125,40 @@ export class DescribeOnDemandInstanceStatusResponse extends $tea.Model {
1053
1125
  }
1054
1126
 
1055
1127
  export class DescribeOpEntitiesRequest extends $tea.Model {
1056
- sourceIp?: string;
1057
- lang?: string;
1058
1128
  currentPage?: number;
1059
- pageSize?: number;
1060
- startTime?: number;
1061
1129
  endTime?: number;
1130
+ instanceId?: string;
1062
1131
  orderBy?: string;
1063
1132
  orderDir?: string;
1064
- instanceId?: string;
1065
- resourceGroupId?: string;
1133
+ pageSize?: number;
1066
1134
  regionId?: string;
1135
+ resourceGroupId?: string;
1136
+ startTime?: number;
1067
1137
  static names(): { [key: string]: string } {
1068
1138
  return {
1069
- sourceIp: 'SourceIp',
1070
- lang: 'Lang',
1071
1139
  currentPage: 'CurrentPage',
1072
- pageSize: 'PageSize',
1073
- startTime: 'StartTime',
1074
1140
  endTime: 'EndTime',
1141
+ instanceId: 'InstanceId',
1075
1142
  orderBy: 'OrderBy',
1076
1143
  orderDir: 'OrderDir',
1077
- instanceId: 'InstanceId',
1078
- resourceGroupId: 'ResourceGroupId',
1144
+ pageSize: 'PageSize',
1079
1145
  regionId: 'RegionId',
1146
+ resourceGroupId: 'ResourceGroupId',
1147
+ startTime: 'StartTime',
1080
1148
  };
1081
1149
  }
1082
1150
 
1083
1151
  static types(): { [key: string]: any } {
1084
1152
  return {
1085
- sourceIp: 'string',
1086
- lang: 'string',
1087
1153
  currentPage: 'number',
1088
- pageSize: 'number',
1089
- startTime: 'number',
1090
1154
  endTime: 'number',
1155
+ instanceId: 'string',
1091
1156
  orderBy: 'string',
1092
1157
  orderDir: 'string',
1093
- instanceId: 'string',
1094
- resourceGroupId: 'string',
1158
+ pageSize: 'number',
1095
1159
  regionId: 'string',
1160
+ resourceGroupId: 'string',
1161
+ startTime: 'number',
1096
1162
  };
1097
1163
  }
1098
1164
 
@@ -1102,22 +1168,22 @@ export class DescribeOpEntitiesRequest extends $tea.Model {
1102
1168
  }
1103
1169
 
1104
1170
  export class DescribeOpEntitiesResponseBody extends $tea.Model {
1105
- totalCount?: number;
1106
- requestId?: string;
1107
1171
  opEntities?: DescribeOpEntitiesResponseBodyOpEntities[];
1172
+ requestId?: string;
1173
+ totalCount?: number;
1108
1174
  static names(): { [key: string]: string } {
1109
1175
  return {
1110
- totalCount: 'TotalCount',
1111
- requestId: 'RequestId',
1112
1176
  opEntities: 'OpEntities',
1177
+ requestId: 'RequestId',
1178
+ totalCount: 'TotalCount',
1113
1179
  };
1114
1180
  }
1115
1181
 
1116
1182
  static types(): { [key: string]: any } {
1117
1183
  return {
1118
- totalCount: 'number',
1119
- requestId: 'string',
1120
1184
  opEntities: { 'type': 'array', 'itemType': DescribeOpEntitiesResponseBodyOpEntities },
1185
+ requestId: 'string',
1186
+ totalCount: 'number',
1121
1187
  };
1122
1188
  }
1123
1189
 
@@ -1128,10 +1194,12 @@ export class DescribeOpEntitiesResponseBody extends $tea.Model {
1128
1194
 
1129
1195
  export class DescribeOpEntitiesResponse extends $tea.Model {
1130
1196
  headers: { [key: string]: string };
1197
+ statusCode: number;
1131
1198
  body: DescribeOpEntitiesResponseBody;
1132
1199
  static names(): { [key: string]: string } {
1133
1200
  return {
1134
1201
  headers: 'headers',
1202
+ statusCode: 'statusCode',
1135
1203
  body: 'body',
1136
1204
  };
1137
1205
  }
@@ -1139,6 +1207,7 @@ export class DescribeOpEntitiesResponse extends $tea.Model {
1139
1207
  static types(): { [key: string]: any } {
1140
1208
  return {
1141
1209
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1210
+ statusCode: 'number',
1142
1211
  body: DescribeOpEntitiesResponseBody,
1143
1212
  };
1144
1213
  }
@@ -1149,37 +1218,37 @@ export class DescribeOpEntitiesResponse extends $tea.Model {
1149
1218
  }
1150
1219
 
1151
1220
  export class DescribePackIpListRequest extends $tea.Model {
1152
- sourceIp?: string;
1153
- pageNo?: number;
1154
- pageSize?: number;
1155
1221
  instanceId?: string;
1156
1222
  ip?: string;
1223
+ memberUid?: string;
1224
+ pageNo?: number;
1225
+ pageSize?: number;
1157
1226
  productName?: string;
1158
- resourceGroupId?: string;
1159
1227
  regionId?: string;
1228
+ resourceGroupId?: string;
1160
1229
  static names(): { [key: string]: string } {
1161
1230
  return {
1162
- sourceIp: 'SourceIp',
1163
- pageNo: 'PageNo',
1164
- pageSize: 'PageSize',
1165
1231
  instanceId: 'InstanceId',
1166
1232
  ip: 'Ip',
1233
+ memberUid: 'MemberUid',
1234
+ pageNo: 'PageNo',
1235
+ pageSize: 'PageSize',
1167
1236
  productName: 'ProductName',
1168
- resourceGroupId: 'ResourceGroupId',
1169
1237
  regionId: 'RegionId',
1238
+ resourceGroupId: 'ResourceGroupId',
1170
1239
  };
1171
1240
  }
1172
1241
 
1173
1242
  static types(): { [key: string]: any } {
1174
1243
  return {
1175
- sourceIp: 'string',
1176
- pageNo: 'number',
1177
- pageSize: 'number',
1178
1244
  instanceId: 'string',
1179
1245
  ip: 'string',
1246
+ memberUid: 'string',
1247
+ pageNo: 'number',
1248
+ pageSize: 'number',
1180
1249
  productName: 'string',
1181
- resourceGroupId: 'string',
1182
1250
  regionId: 'string',
1251
+ resourceGroupId: 'string',
1183
1252
  };
1184
1253
  }
1185
1254
 
@@ -1189,28 +1258,28 @@ export class DescribePackIpListRequest extends $tea.Model {
1189
1258
  }
1190
1259
 
1191
1260
  export class DescribePackIpListResponseBody extends $tea.Model {
1192
- requestId?: string;
1193
- ipList?: DescribePackIpListResponseBodyIpList[];
1194
- total?: number;
1195
1261
  code?: string;
1262
+ ipList?: DescribePackIpListResponseBodyIpList[];
1263
+ requestId?: string;
1196
1264
  success?: boolean;
1265
+ total?: number;
1197
1266
  static names(): { [key: string]: string } {
1198
1267
  return {
1199
- requestId: 'RequestId',
1200
- ipList: 'IpList',
1201
- total: 'Total',
1202
1268
  code: 'Code',
1269
+ ipList: 'IpList',
1270
+ requestId: 'RequestId',
1203
1271
  success: 'Success',
1272
+ total: 'Total',
1204
1273
  };
1205
1274
  }
1206
1275
 
1207
1276
  static types(): { [key: string]: any } {
1208
1277
  return {
1209
- requestId: 'string',
1210
- ipList: { 'type': 'array', 'itemType': DescribePackIpListResponseBodyIpList },
1211
- total: 'number',
1212
1278
  code: 'string',
1279
+ ipList: { 'type': 'array', 'itemType': DescribePackIpListResponseBodyIpList },
1280
+ requestId: 'string',
1213
1281
  success: 'boolean',
1282
+ total: 'number',
1214
1283
  };
1215
1284
  }
1216
1285
 
@@ -1221,10 +1290,12 @@ export class DescribePackIpListResponseBody extends $tea.Model {
1221
1290
 
1222
1291
  export class DescribePackIpListResponse extends $tea.Model {
1223
1292
  headers: { [key: string]: string };
1293
+ statusCode: number;
1224
1294
  body: DescribePackIpListResponseBody;
1225
1295
  static names(): { [key: string]: string } {
1226
1296
  return {
1227
1297
  headers: 'headers',
1298
+ statusCode: 'statusCode',
1228
1299
  body: 'body',
1229
1300
  };
1230
1301
  }
@@ -1232,6 +1303,7 @@ export class DescribePackIpListResponse extends $tea.Model {
1232
1303
  static types(): { [key: string]: any } {
1233
1304
  return {
1234
1305
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1306
+ statusCode: 'number',
1235
1307
  body: DescribePackIpListResponseBody,
1236
1308
  };
1237
1309
  }
@@ -1241,34 +1313,19 @@ export class DescribePackIpListResponse extends $tea.Model {
1241
1313
  }
1242
1314
  }
1243
1315
 
1244
- export class DescribePackPaidTrafficRequest extends $tea.Model {
1245
- sourceIp?: string;
1246
- instanceId?: string;
1247
- currentPage?: number;
1248
- pageSize?: number;
1249
- startTime?: number;
1250
- endTime?: number;
1316
+ export class DescribeRegionsRequest extends $tea.Model {
1317
+ regionId?: string;
1251
1318
  resourceGroupId?: string;
1252
1319
  static names(): { [key: string]: string } {
1253
1320
  return {
1254
- sourceIp: 'SourceIp',
1255
- instanceId: 'InstanceId',
1256
- currentPage: 'CurrentPage',
1257
- pageSize: 'PageSize',
1258
- startTime: 'StartTime',
1259
- endTime: 'EndTime',
1321
+ regionId: 'RegionId',
1260
1322
  resourceGroupId: 'ResourceGroupId',
1261
1323
  };
1262
1324
  }
1263
1325
 
1264
1326
  static types(): { [key: string]: any } {
1265
1327
  return {
1266
- sourceIp: 'string',
1267
- instanceId: 'string',
1268
- currentPage: 'number',
1269
- pageSize: 'number',
1270
- startTime: 'number',
1271
- endTime: 'number',
1328
+ regionId: 'string',
1272
1329
  resourceGroupId: 'string',
1273
1330
  };
1274
1331
  }
@@ -1278,23 +1335,26 @@ export class DescribePackPaidTrafficRequest extends $tea.Model {
1278
1335
  }
1279
1336
  }
1280
1337
 
1281
- export class DescribePackPaidTrafficResponseBody extends $tea.Model {
1282
- totalCount?: number;
1338
+ export class DescribeRegionsResponseBody extends $tea.Model {
1339
+ code?: string;
1340
+ regions?: DescribeRegionsResponseBodyRegions[];
1283
1341
  requestId?: string;
1284
- packPaidTraffics?: DescribePackPaidTrafficResponseBodyPackPaidTraffics[];
1342
+ success?: boolean;
1285
1343
  static names(): { [key: string]: string } {
1286
1344
  return {
1287
- totalCount: 'TotalCount',
1345
+ code: 'Code',
1346
+ regions: 'Regions',
1288
1347
  requestId: 'RequestId',
1289
- packPaidTraffics: 'PackPaidTraffics',
1348
+ success: 'Success',
1290
1349
  };
1291
1350
  }
1292
1351
 
1293
1352
  static types(): { [key: string]: any } {
1294
1353
  return {
1295
- totalCount: 'number',
1354
+ code: 'string',
1355
+ regions: { 'type': 'array', 'itemType': DescribeRegionsResponseBodyRegions },
1296
1356
  requestId: 'string',
1297
- packPaidTraffics: { 'type': 'array', 'itemType': DescribePackPaidTrafficResponseBodyPackPaidTraffics },
1357
+ success: 'boolean',
1298
1358
  };
1299
1359
  }
1300
1360
 
@@ -1303,12 +1363,14 @@ export class DescribePackPaidTrafficResponseBody extends $tea.Model {
1303
1363
  }
1304
1364
  }
1305
1365
 
1306
- export class DescribePackPaidTrafficResponse extends $tea.Model {
1366
+ export class DescribeRegionsResponse extends $tea.Model {
1307
1367
  headers: { [key: string]: string };
1308
- body: DescribePackPaidTrafficResponseBody;
1368
+ statusCode: number;
1369
+ body: DescribeRegionsResponseBody;
1309
1370
  static names(): { [key: string]: string } {
1310
1371
  return {
1311
1372
  headers: 'headers',
1373
+ statusCode: 'statusCode',
1312
1374
  body: 'body',
1313
1375
  };
1314
1376
  }
@@ -1316,7 +1378,8 @@ export class DescribePackPaidTrafficResponse extends $tea.Model {
1316
1378
  static types(): { [key: string]: any } {
1317
1379
  return {
1318
1380
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1319
- body: DescribePackPaidTrafficResponseBody,
1381
+ statusCode: 'number',
1382
+ body: DescribeRegionsResponseBody,
1320
1383
  };
1321
1384
  }
1322
1385
 
@@ -1325,23 +1388,41 @@ export class DescribePackPaidTrafficResponse extends $tea.Model {
1325
1388
  }
1326
1389
  }
1327
1390
 
1328
- export class DescribeRegionsRequest extends $tea.Model {
1329
- sourceIp?: string;
1330
- resourceGroupId?: string;
1391
+ export class DescribeTrafficRequest extends $tea.Model {
1392
+ endTime?: number;
1393
+ flowType?: string;
1394
+ instanceId?: string;
1395
+ interval?: number;
1396
+ ip?: string;
1397
+ ipnet?: string;
1331
1398
  regionId?: string;
1399
+ resourceGroupId?: string;
1400
+ startTime?: number;
1332
1401
  static names(): { [key: string]: string } {
1333
1402
  return {
1334
- sourceIp: 'SourceIp',
1335
- resourceGroupId: 'ResourceGroupId',
1403
+ endTime: 'EndTime',
1404
+ flowType: 'FlowType',
1405
+ instanceId: 'InstanceId',
1406
+ interval: 'Interval',
1407
+ ip: 'Ip',
1408
+ ipnet: 'Ipnet',
1336
1409
  regionId: 'RegionId',
1410
+ resourceGroupId: 'ResourceGroupId',
1411
+ startTime: 'StartTime',
1337
1412
  };
1338
1413
  }
1339
1414
 
1340
1415
  static types(): { [key: string]: any } {
1341
1416
  return {
1342
- sourceIp: 'string',
1343
- resourceGroupId: 'string',
1417
+ endTime: 'number',
1418
+ flowType: 'string',
1419
+ instanceId: 'string',
1420
+ interval: 'number',
1421
+ ip: 'string',
1422
+ ipnet: 'string',
1344
1423
  regionId: 'string',
1424
+ resourceGroupId: 'string',
1425
+ startTime: 'number',
1345
1426
  };
1346
1427
  }
1347
1428
 
@@ -1350,26 +1431,20 @@ export class DescribeRegionsRequest extends $tea.Model {
1350
1431
  }
1351
1432
  }
1352
1433
 
1353
- export class DescribeRegionsResponseBody extends $tea.Model {
1434
+ export class DescribeTrafficResponseBody extends $tea.Model {
1435
+ flowList?: DescribeTrafficResponseBodyFlowList[];
1354
1436
  requestId?: string;
1355
- regions?: DescribeRegionsResponseBodyRegions[];
1356
- code?: string;
1357
- success?: boolean;
1358
1437
  static names(): { [key: string]: string } {
1359
1438
  return {
1439
+ flowList: 'FlowList',
1360
1440
  requestId: 'RequestId',
1361
- regions: 'Regions',
1362
- code: 'Code',
1363
- success: 'Success',
1364
1441
  };
1365
1442
  }
1366
1443
 
1367
1444
  static types(): { [key: string]: any } {
1368
1445
  return {
1446
+ flowList: { 'type': 'array', 'itemType': DescribeTrafficResponseBodyFlowList },
1369
1447
  requestId: 'string',
1370
- regions: { 'type': 'array', 'itemType': DescribeRegionsResponseBodyRegions },
1371
- code: 'string',
1372
- success: 'boolean',
1373
1448
  };
1374
1449
  }
1375
1450
 
@@ -1378,12 +1453,14 @@ export class DescribeRegionsResponseBody extends $tea.Model {
1378
1453
  }
1379
1454
  }
1380
1455
 
1381
- export class DescribeRegionsResponse extends $tea.Model {
1456
+ export class DescribeTrafficResponse extends $tea.Model {
1382
1457
  headers: { [key: string]: string };
1383
- body: DescribeRegionsResponseBody;
1458
+ statusCode: number;
1459
+ body: DescribeTrafficResponseBody;
1384
1460
  static names(): { [key: string]: string } {
1385
1461
  return {
1386
1462
  headers: 'headers',
1463
+ statusCode: 'statusCode',
1387
1464
  body: 'body',
1388
1465
  };
1389
1466
  }
@@ -1391,7 +1468,8 @@ export class DescribeRegionsResponse extends $tea.Model {
1391
1468
  static types(): { [key: string]: any } {
1392
1469
  return {
1393
1470
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1394
- body: DescribeRegionsResponseBody,
1471
+ statusCode: 'number',
1472
+ body: DescribeTrafficResponseBody,
1395
1473
  };
1396
1474
  }
1397
1475
 
@@ -1400,25 +1478,19 @@ export class DescribeRegionsResponse extends $tea.Model {
1400
1478
  }
1401
1479
  }
1402
1480
 
1403
- export class DescribeResourcePackInstancesRequest extends $tea.Model {
1404
- sourceIp?: string;
1405
- pageSize?: number;
1406
- currentPage?: number;
1481
+ export class GetSlsOpenStatusRequest extends $tea.Model {
1482
+ regionId?: string;
1407
1483
  resourceGroupId?: string;
1408
1484
  static names(): { [key: string]: string } {
1409
1485
  return {
1410
- sourceIp: 'SourceIp',
1411
- pageSize: 'PageSize',
1412
- currentPage: 'CurrentPage',
1486
+ regionId: 'RegionId',
1413
1487
  resourceGroupId: 'ResourceGroupId',
1414
1488
  };
1415
1489
  }
1416
1490
 
1417
1491
  static types(): { [key: string]: any } {
1418
1492
  return {
1419
- sourceIp: 'string',
1420
- pageSize: 'number',
1421
- currentPage: 'number',
1493
+ regionId: 'string',
1422
1494
  resourceGroupId: 'string',
1423
1495
  };
1424
1496
  }
@@ -1428,23 +1500,20 @@ export class DescribeResourcePackInstancesRequest extends $tea.Model {
1428
1500
  }
1429
1501
  }
1430
1502
 
1431
- export class DescribeResourcePackInstancesResponseBody extends $tea.Model {
1432
- totalCount?: number;
1503
+ export class GetSlsOpenStatusResponseBody extends $tea.Model {
1433
1504
  requestId?: string;
1434
- resourcePacks?: DescribeResourcePackInstancesResponseBodyResourcePacks[];
1505
+ slsOpenStatus?: boolean;
1435
1506
  static names(): { [key: string]: string } {
1436
1507
  return {
1437
- totalCount: 'TotalCount',
1438
1508
  requestId: 'RequestId',
1439
- resourcePacks: 'ResourcePacks',
1509
+ slsOpenStatus: 'SlsOpenStatus',
1440
1510
  };
1441
1511
  }
1442
1512
 
1443
1513
  static types(): { [key: string]: any } {
1444
1514
  return {
1445
- totalCount: 'number',
1446
1515
  requestId: 'string',
1447
- resourcePacks: { 'type': 'array', 'itemType': DescribeResourcePackInstancesResponseBodyResourcePacks },
1516
+ slsOpenStatus: 'boolean',
1448
1517
  };
1449
1518
  }
1450
1519
 
@@ -1453,12 +1522,14 @@ export class DescribeResourcePackInstancesResponseBody extends $tea.Model {
1453
1522
  }
1454
1523
  }
1455
1524
 
1456
- export class DescribeResourcePackInstancesResponse extends $tea.Model {
1525
+ export class GetSlsOpenStatusResponse extends $tea.Model {
1457
1526
  headers: { [key: string]: string };
1458
- body: DescribeResourcePackInstancesResponseBody;
1527
+ statusCode: number;
1528
+ body: GetSlsOpenStatusResponseBody;
1459
1529
  static names(): { [key: string]: string } {
1460
1530
  return {
1461
1531
  headers: 'headers',
1532
+ statusCode: 'statusCode',
1462
1533
  body: 'body',
1463
1534
  };
1464
1535
  }
@@ -1466,7 +1537,8 @@ export class DescribeResourcePackInstancesResponse extends $tea.Model {
1466
1537
  static types(): { [key: string]: any } {
1467
1538
  return {
1468
1539
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1469
- body: DescribeResourcePackInstancesResponseBody,
1540
+ statusCode: 'number',
1541
+ body: GetSlsOpenStatusResponseBody,
1470
1542
  };
1471
1543
  }
1472
1544
 
@@ -1475,25 +1547,22 @@ export class DescribeResourcePackInstancesResponse extends $tea.Model {
1475
1547
  }
1476
1548
  }
1477
1549
 
1478
- export class DescribeResourcePackStatisticsRequest extends $tea.Model {
1479
- sourceIp?: string;
1480
- ddosRegionId?: string;
1481
- instanceId?: string;
1550
+ export class ListOpenedAccessLogInstancesRequest extends $tea.Model {
1551
+ pageNumber?: number;
1552
+ pageSize?: number;
1482
1553
  resourceGroupId?: string;
1483
1554
  static names(): { [key: string]: string } {
1484
1555
  return {
1485
- sourceIp: 'SourceIp',
1486
- ddosRegionId: 'DdosRegionId',
1487
- instanceId: 'InstanceId',
1556
+ pageNumber: 'PageNumber',
1557
+ pageSize: 'PageSize',
1488
1558
  resourceGroupId: 'ResourceGroupId',
1489
1559
  };
1490
1560
  }
1491
1561
 
1492
1562
  static types(): { [key: string]: any } {
1493
1563
  return {
1494
- sourceIp: 'string',
1495
- ddosRegionId: 'string',
1496
- instanceId: 'string',
1564
+ pageNumber: 'number',
1565
+ pageSize: 'number',
1497
1566
  resourceGroupId: 'string',
1498
1567
  };
1499
1568
  }
@@ -1503,29 +1572,23 @@ export class DescribeResourcePackStatisticsRequest extends $tea.Model {
1503
1572
  }
1504
1573
  }
1505
1574
 
1506
- export class DescribeResourcePackStatisticsResponseBody extends $tea.Model {
1575
+ export class ListOpenedAccessLogInstancesResponseBody extends $tea.Model {
1507
1576
  requestId?: string;
1508
- totalInitCapacity?: number;
1509
- totalCurrCapacity?: number;
1510
- availablePackNum?: number;
1511
- totalUsedCapacity?: number;
1577
+ slsConfigStatus?: ListOpenedAccessLogInstancesResponseBodySlsConfigStatus[];
1578
+ totalCount?: number;
1512
1579
  static names(): { [key: string]: string } {
1513
1580
  return {
1514
1581
  requestId: 'RequestId',
1515
- totalInitCapacity: 'TotalInitCapacity',
1516
- totalCurrCapacity: 'TotalCurrCapacity',
1517
- availablePackNum: 'AvailablePackNum',
1518
- totalUsedCapacity: 'TotalUsedCapacity',
1582
+ slsConfigStatus: 'SlsConfigStatus',
1583
+ totalCount: 'TotalCount',
1519
1584
  };
1520
1585
  }
1521
1586
 
1522
1587
  static types(): { [key: string]: any } {
1523
1588
  return {
1524
1589
  requestId: 'string',
1525
- totalInitCapacity: 'number',
1526
- totalCurrCapacity: 'number',
1527
- availablePackNum: 'number',
1528
- totalUsedCapacity: 'number',
1590
+ slsConfigStatus: { 'type': 'array', 'itemType': ListOpenedAccessLogInstancesResponseBodySlsConfigStatus },
1591
+ totalCount: 'number',
1529
1592
  };
1530
1593
  }
1531
1594
 
@@ -1534,12 +1597,14 @@ export class DescribeResourcePackStatisticsResponseBody extends $tea.Model {
1534
1597
  }
1535
1598
  }
1536
1599
 
1537
- export class DescribeResourcePackStatisticsResponse extends $tea.Model {
1600
+ export class ListOpenedAccessLogInstancesResponse extends $tea.Model {
1538
1601
  headers: { [key: string]: string };
1539
- body: DescribeResourcePackStatisticsResponseBody;
1602
+ statusCode: number;
1603
+ body: ListOpenedAccessLogInstancesResponseBody;
1540
1604
  static names(): { [key: string]: string } {
1541
1605
  return {
1542
1606
  headers: 'headers',
1607
+ statusCode: 'statusCode',
1543
1608
  body: 'body',
1544
1609
  };
1545
1610
  }
@@ -1547,7 +1612,8 @@ export class DescribeResourcePackStatisticsResponse extends $tea.Model {
1547
1612
  static types(): { [key: string]: any } {
1548
1613
  return {
1549
1614
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1550
- body: DescribeResourcePackStatisticsResponseBody,
1615
+ statusCode: 'number',
1616
+ body: ListOpenedAccessLogInstancesResponseBody,
1551
1617
  };
1552
1618
  }
1553
1619
 
@@ -1556,29 +1622,29 @@ export class DescribeResourcePackStatisticsResponse extends $tea.Model {
1556
1622
  }
1557
1623
  }
1558
1624
 
1559
- export class DescribeResourcePackUsageRequest extends $tea.Model {
1560
- sourceIp?: string;
1561
- endTime?: number;
1562
- startTime?: number;
1563
- instanceId?: string;
1625
+ export class ListTagKeysRequest extends $tea.Model {
1626
+ currentPage?: number;
1627
+ pageSize?: number;
1628
+ regionId?: string;
1564
1629
  resourceGroupId?: string;
1630
+ resourceType?: string;
1565
1631
  static names(): { [key: string]: string } {
1566
1632
  return {
1567
- sourceIp: 'SourceIp',
1568
- endTime: 'EndTime',
1569
- startTime: 'StartTime',
1570
- instanceId: 'InstanceId',
1633
+ currentPage: 'CurrentPage',
1634
+ pageSize: 'PageSize',
1635
+ regionId: 'RegionId',
1571
1636
  resourceGroupId: 'ResourceGroupId',
1637
+ resourceType: 'ResourceType',
1572
1638
  };
1573
1639
  }
1574
1640
 
1575
1641
  static types(): { [key: string]: any } {
1576
1642
  return {
1577
- sourceIp: 'string',
1578
- endTime: 'number',
1579
- startTime: 'number',
1580
- instanceId: 'string',
1643
+ currentPage: 'number',
1644
+ pageSize: 'number',
1645
+ regionId: 'string',
1581
1646
  resourceGroupId: 'string',
1647
+ resourceType: 'string',
1582
1648
  };
1583
1649
  }
1584
1650
 
@@ -1587,212 +1653,29 @@ export class DescribeResourcePackUsageRequest extends $tea.Model {
1587
1653
  }
1588
1654
  }
1589
1655
 
1590
- export class DescribeResourcePackUsageResponseBody extends $tea.Model {
1591
- endTime?: number;
1656
+ export class ListTagKeysResponseBody extends $tea.Model {
1657
+ currentPage?: number;
1658
+ pageSize?: number;
1592
1659
  requestId?: string;
1593
- packUsages?: DescribeResourcePackUsageResponseBodyPackUsages[];
1594
- startTime?: number;
1595
- interval?: number;
1660
+ tagKeys?: ListTagKeysResponseBodyTagKeys[];
1661
+ totalCount?: number;
1596
1662
  static names(): { [key: string]: string } {
1597
1663
  return {
1598
- endTime: 'EndTime',
1664
+ currentPage: 'CurrentPage',
1665
+ pageSize: 'PageSize',
1599
1666
  requestId: 'RequestId',
1600
- packUsages: 'PackUsages',
1601
- startTime: 'StartTime',
1602
- interval: 'Interval',
1667
+ tagKeys: 'TagKeys',
1668
+ totalCount: 'TotalCount',
1603
1669
  };
1604
1670
  }
1605
1671
 
1606
1672
  static types(): { [key: string]: any } {
1607
1673
  return {
1608
- endTime: 'number',
1609
- requestId: 'string',
1610
- packUsages: { 'type': 'array', 'itemType': DescribeResourcePackUsageResponseBodyPackUsages },
1611
- startTime: 'number',
1612
- interval: 'number',
1613
- };
1614
- }
1615
-
1616
- constructor(map?: { [key: string]: any }) {
1617
- super(map);
1618
- }
1619
- }
1620
-
1621
- export class DescribeResourcePackUsageResponse extends $tea.Model {
1622
- headers: { [key: string]: string };
1623
- body: DescribeResourcePackUsageResponseBody;
1624
- static names(): { [key: string]: string } {
1625
- return {
1626
- headers: 'headers',
1627
- body: 'body',
1628
- };
1629
- }
1630
-
1631
- static types(): { [key: string]: any } {
1632
- return {
1633
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1634
- body: DescribeResourcePackUsageResponseBody,
1635
- };
1636
- }
1637
-
1638
- constructor(map?: { [key: string]: any }) {
1639
- super(map);
1640
- }
1641
- }
1642
-
1643
- export class DescribeTrafficRequest extends $tea.Model {
1644
- sourceIp?: string;
1645
- instanceId?: string;
1646
- ipnet?: string;
1647
- ip?: string;
1648
- startTime?: number;
1649
- endTime?: number;
1650
- interval?: number;
1651
- resourceGroupId?: string;
1652
- regionId?: string;
1653
- static names(): { [key: string]: string } {
1654
- return {
1655
- sourceIp: 'SourceIp',
1656
- instanceId: 'InstanceId',
1657
- ipnet: 'Ipnet',
1658
- ip: 'Ip',
1659
- startTime: 'StartTime',
1660
- endTime: 'EndTime',
1661
- interval: 'Interval',
1662
- resourceGroupId: 'ResourceGroupId',
1663
- regionId: 'RegionId',
1664
- };
1665
- }
1666
-
1667
- static types(): { [key: string]: any } {
1668
- return {
1669
- sourceIp: 'string',
1670
- instanceId: 'string',
1671
- ipnet: 'string',
1672
- ip: 'string',
1673
- startTime: 'number',
1674
- endTime: 'number',
1675
- interval: 'number',
1676
- resourceGroupId: 'string',
1677
- regionId: 'string',
1678
- };
1679
- }
1680
-
1681
- constructor(map?: { [key: string]: any }) {
1682
- super(map);
1683
- }
1684
- }
1685
-
1686
- export class DescribeTrafficResponseBody extends $tea.Model {
1687
- flowList?: DescribeTrafficResponseBodyFlowList[];
1688
- requestId?: string;
1689
- static names(): { [key: string]: string } {
1690
- return {
1691
- flowList: 'FlowList',
1692
- requestId: 'RequestId',
1693
- };
1694
- }
1695
-
1696
- static types(): { [key: string]: any } {
1697
- return {
1698
- flowList: { 'type': 'array', 'itemType': DescribeTrafficResponseBodyFlowList },
1699
- requestId: 'string',
1700
- };
1701
- }
1702
-
1703
- constructor(map?: { [key: string]: any }) {
1704
- super(map);
1705
- }
1706
- }
1707
-
1708
- export class DescribeTrafficResponse extends $tea.Model {
1709
- headers: { [key: string]: string };
1710
- body: DescribeTrafficResponseBody;
1711
- static names(): { [key: string]: string } {
1712
- return {
1713
- headers: 'headers',
1714
- body: 'body',
1715
- };
1716
- }
1717
-
1718
- static types(): { [key: string]: any } {
1719
- return {
1720
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1721
- body: DescribeTrafficResponseBody,
1722
- };
1723
- }
1724
-
1725
- constructor(map?: { [key: string]: any }) {
1726
- super(map);
1727
- }
1728
- }
1729
-
1730
- export class ListTagKeysRequest extends $tea.Model {
1731
- sourceIp?: string;
1732
- regionId?: string;
1733
- tagOwnerUid?: string;
1734
- tagOwnerBid?: string;
1735
- resourceType?: string;
1736
- scope?: string;
1737
- pageSize?: number;
1738
- currentPage?: number;
1739
- resourceGroupId?: string;
1740
- static names(): { [key: string]: string } {
1741
- return {
1742
- sourceIp: 'SourceIp',
1743
- regionId: 'RegionId',
1744
- tagOwnerUid: 'TagOwnerUid',
1745
- tagOwnerBid: 'TagOwnerBid',
1746
- resourceType: 'ResourceType',
1747
- scope: 'Scope',
1748
- pageSize: 'PageSize',
1749
- currentPage: 'CurrentPage',
1750
- resourceGroupId: 'ResourceGroupId',
1751
- };
1752
- }
1753
-
1754
- static types(): { [key: string]: any } {
1755
- return {
1756
- sourceIp: 'string',
1757
- regionId: 'string',
1758
- tagOwnerUid: 'string',
1759
- tagOwnerBid: 'string',
1760
- resourceType: 'string',
1761
- scope: 'string',
1762
- pageSize: 'number',
1763
1674
  currentPage: 'number',
1764
- resourceGroupId: 'string',
1765
- };
1766
- }
1767
-
1768
- constructor(map?: { [key: string]: any }) {
1769
- super(map);
1770
- }
1771
- }
1772
-
1773
- export class ListTagKeysResponseBody extends $tea.Model {
1774
- totalCount?: number;
1775
- requestId?: string;
1776
- pageSize?: number;
1777
- currentPage?: number;
1778
- tagKeys?: ListTagKeysResponseBodyTagKeys[];
1779
- static names(): { [key: string]: string } {
1780
- return {
1781
- totalCount: 'TotalCount',
1782
- requestId: 'RequestId',
1783
- pageSize: 'PageSize',
1784
- currentPage: 'CurrentPage',
1785
- tagKeys: 'TagKeys',
1786
- };
1787
- }
1788
-
1789
- static types(): { [key: string]: any } {
1790
- return {
1791
- totalCount: 'number',
1792
- requestId: 'string',
1793
1675
  pageSize: 'number',
1794
- currentPage: 'number',
1676
+ requestId: 'string',
1795
1677
  tagKeys: { 'type': 'array', 'itemType': ListTagKeysResponseBodyTagKeys },
1678
+ totalCount: 'number',
1796
1679
  };
1797
1680
  }
1798
1681
 
@@ -1803,10 +1686,12 @@ export class ListTagKeysResponseBody extends $tea.Model {
1803
1686
 
1804
1687
  export class ListTagKeysResponse extends $tea.Model {
1805
1688
  headers: { [key: string]: string };
1689
+ statusCode: number;
1806
1690
  body: ListTagKeysResponseBody;
1807
1691
  static names(): { [key: string]: string } {
1808
1692
  return {
1809
1693
  headers: 'headers',
1694
+ statusCode: 'statusCode',
1810
1695
  body: 'body',
1811
1696
  };
1812
1697
  }
@@ -1814,6 +1699,7 @@ export class ListTagKeysResponse extends $tea.Model {
1814
1699
  static types(): { [key: string]: any } {
1815
1700
  return {
1816
1701
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1702
+ statusCode: 'number',
1817
1703
  body: ListTagKeysResponseBody,
1818
1704
  };
1819
1705
  }
@@ -1824,42 +1710,30 @@ export class ListTagKeysResponse extends $tea.Model {
1824
1710
  }
1825
1711
 
1826
1712
  export class ListTagResourcesRequest extends $tea.Model {
1827
- sourceIp?: string;
1828
- resourceGroupId?: string;
1829
- regionId?: string;
1830
- tagOwnerUid?: string;
1831
- tagOwnerBid?: string;
1832
- resourceType?: string;
1833
- scope?: string;
1834
1713
  nextToken?: string;
1714
+ regionId?: string;
1715
+ resourceGroupId?: string;
1835
1716
  resourceId?: string[];
1717
+ resourceType?: string;
1836
1718
  tag?: ListTagResourcesRequestTag[];
1837
1719
  static names(): { [key: string]: string } {
1838
1720
  return {
1839
- sourceIp: 'SourceIp',
1840
- resourceGroupId: 'ResourceGroupId',
1841
- regionId: 'RegionId',
1842
- tagOwnerUid: 'TagOwnerUid',
1843
- tagOwnerBid: 'TagOwnerBid',
1844
- resourceType: 'ResourceType',
1845
- scope: 'Scope',
1846
1721
  nextToken: 'NextToken',
1722
+ regionId: 'RegionId',
1723
+ resourceGroupId: 'ResourceGroupId',
1847
1724
  resourceId: 'ResourceId',
1725
+ resourceType: 'ResourceType',
1848
1726
  tag: 'Tag',
1849
1727
  };
1850
1728
  }
1851
1729
 
1852
1730
  static types(): { [key: string]: any } {
1853
1731
  return {
1854
- sourceIp: 'string',
1855
- resourceGroupId: 'string',
1856
- regionId: 'string',
1857
- tagOwnerUid: 'string',
1858
- tagOwnerBid: 'string',
1859
- resourceType: 'string',
1860
- scope: 'string',
1861
1732
  nextToken: 'string',
1733
+ regionId: 'string',
1734
+ resourceGroupId: 'string',
1862
1735
  resourceId: { 'type': 'array', 'itemType': 'string' },
1736
+ resourceType: 'string',
1863
1737
  tag: { 'type': 'array', 'itemType': ListTagResourcesRequestTag },
1864
1738
  };
1865
1739
  }
@@ -1896,10 +1770,12 @@ export class ListTagResourcesResponseBody extends $tea.Model {
1896
1770
 
1897
1771
  export class ListTagResourcesResponse extends $tea.Model {
1898
1772
  headers: { [key: string]: string };
1773
+ statusCode: number;
1899
1774
  body: ListTagResourcesResponseBody;
1900
1775
  static names(): { [key: string]: string } {
1901
1776
  return {
1902
1777
  headers: 'headers',
1778
+ statusCode: 'statusCode',
1903
1779
  body: 'body',
1904
1780
  };
1905
1781
  }
@@ -1907,6 +1783,7 @@ export class ListTagResourcesResponse extends $tea.Model {
1907
1783
  static types(): { [key: string]: any } {
1908
1784
  return {
1909
1785
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1786
+ statusCode: 'number',
1910
1787
  body: ListTagResourcesResponseBody,
1911
1788
  };
1912
1789
  }
@@ -1917,31 +1794,25 @@ export class ListTagResourcesResponse extends $tea.Model {
1917
1794
  }
1918
1795
 
1919
1796
  export class ModifyRemarkRequest extends $tea.Model {
1920
- sourceIp?: string;
1921
- lang?: string;
1922
1797
  instanceId?: string;
1798
+ regionId?: string;
1923
1799
  remark?: string;
1924
1800
  resourceGroupId?: string;
1925
- regionId?: string;
1926
1801
  static names(): { [key: string]: string } {
1927
1802
  return {
1928
- sourceIp: 'SourceIp',
1929
- lang: 'Lang',
1930
1803
  instanceId: 'InstanceId',
1804
+ regionId: 'RegionId',
1931
1805
  remark: 'Remark',
1932
1806
  resourceGroupId: 'ResourceGroupId',
1933
- regionId: 'RegionId',
1934
1807
  };
1935
1808
  }
1936
1809
 
1937
1810
  static types(): { [key: string]: any } {
1938
1811
  return {
1939
- sourceIp: 'string',
1940
- lang: 'string',
1941
1812
  instanceId: 'string',
1813
+ regionId: 'string',
1942
1814
  remark: 'string',
1943
1815
  resourceGroupId: 'string',
1944
- regionId: 'string',
1945
1816
  };
1946
1817
  }
1947
1818
 
@@ -1971,10 +1842,12 @@ export class ModifyRemarkResponseBody extends $tea.Model {
1971
1842
 
1972
1843
  export class ModifyRemarkResponse extends $tea.Model {
1973
1844
  headers: { [key: string]: string };
1845
+ statusCode: number;
1974
1846
  body: ModifyRemarkResponseBody;
1975
1847
  static names(): { [key: string]: string } {
1976
1848
  return {
1977
1849
  headers: 'headers',
1850
+ statusCode: 'statusCode',
1978
1851
  body: 'body',
1979
1852
  };
1980
1853
  }
@@ -1982,6 +1855,7 @@ export class ModifyRemarkResponse extends $tea.Model {
1982
1855
  static types(): { [key: string]: any } {
1983
1856
  return {
1984
1857
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1858
+ statusCode: 'number',
1985
1859
  body: ModifyRemarkResponseBody,
1986
1860
  };
1987
1861
  }
@@ -1992,12 +1866,10 @@ export class ModifyRemarkResponse extends $tea.Model {
1992
1866
  }
1993
1867
 
1994
1868
  export class QuerySchedruleOnDemandRequest extends $tea.Model {
1995
- sourceIp?: string;
1996
1869
  instanceId?: string;
1997
1870
  regionId?: string;
1998
1871
  static names(): { [key: string]: string } {
1999
1872
  return {
2000
- sourceIp: 'SourceIp',
2001
1873
  instanceId: 'InstanceId',
2002
1874
  regionId: 'RegionId',
2003
1875
  };
@@ -2005,7 +1877,6 @@ export class QuerySchedruleOnDemandRequest extends $tea.Model {
2005
1877
 
2006
1878
  static types(): { [key: string]: any } {
2007
1879
  return {
2008
- sourceIp: 'string',
2009
1880
  instanceId: 'string',
2010
1881
  regionId: 'string',
2011
1882
  };
@@ -2017,28 +1888,28 @@ export class QuerySchedruleOnDemandRequest extends $tea.Model {
2017
1888
  }
2018
1889
 
2019
1890
  export class QuerySchedruleOnDemandResponseBody extends $tea.Model {
2020
- requestId?: string;
2021
1891
  instanceId?: string;
2022
- userId?: string;
2023
- ruleStatus?: QuerySchedruleOnDemandResponseBodyRuleStatus[];
1892
+ requestId?: string;
2024
1893
  ruleConfig?: QuerySchedruleOnDemandResponseBodyRuleConfig[];
1894
+ ruleStatus?: QuerySchedruleOnDemandResponseBodyRuleStatus[];
1895
+ userId?: string;
2025
1896
  static names(): { [key: string]: string } {
2026
1897
  return {
2027
- requestId: 'RequestId',
2028
1898
  instanceId: 'InstanceId',
2029
- userId: 'UserId',
2030
- ruleStatus: 'RuleStatus',
1899
+ requestId: 'RequestId',
2031
1900
  ruleConfig: 'RuleConfig',
1901
+ ruleStatus: 'RuleStatus',
1902
+ userId: 'UserId',
2032
1903
  };
2033
1904
  }
2034
1905
 
2035
1906
  static types(): { [key: string]: any } {
2036
1907
  return {
2037
- requestId: 'string',
2038
1908
  instanceId: 'string',
2039
- userId: 'string',
2040
- ruleStatus: { 'type': 'array', 'itemType': QuerySchedruleOnDemandResponseBodyRuleStatus },
1909
+ requestId: 'string',
2041
1910
  ruleConfig: { 'type': 'array', 'itemType': QuerySchedruleOnDemandResponseBodyRuleConfig },
1911
+ ruleStatus: { 'type': 'array', 'itemType': QuerySchedruleOnDemandResponseBodyRuleStatus },
1912
+ userId: 'string',
2042
1913
  };
2043
1914
  }
2044
1915
 
@@ -2049,10 +1920,12 @@ export class QuerySchedruleOnDemandResponseBody extends $tea.Model {
2049
1920
 
2050
1921
  export class QuerySchedruleOnDemandResponse extends $tea.Model {
2051
1922
  headers: { [key: string]: string };
1923
+ statusCode: number;
2052
1924
  body: QuerySchedruleOnDemandResponseBody;
2053
1925
  static names(): { [key: string]: string } {
2054
1926
  return {
2055
1927
  headers: 'headers',
1928
+ statusCode: 'statusCode',
2056
1929
  body: 'body',
2057
1930
  };
2058
1931
  }
@@ -2060,6 +1933,7 @@ export class QuerySchedruleOnDemandResponse extends $tea.Model {
2060
1933
  static types(): { [key: string]: any } {
2061
1934
  return {
2062
1935
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1936
+ statusCode: 'number',
2063
1937
  body: QuerySchedruleOnDemandResponseBody,
2064
1938
  };
2065
1939
  }
@@ -2070,25 +1944,22 @@ export class QuerySchedruleOnDemandResponse extends $tea.Model {
2070
1944
  }
2071
1945
 
2072
1946
  export class SetInstanceModeOnDemandRequest extends $tea.Model {
2073
- sourceIp?: string;
1947
+ instanceIdList?: string[];
2074
1948
  mode?: string;
2075
1949
  regionId?: string;
2076
- instanceIdList?: string[];
2077
1950
  static names(): { [key: string]: string } {
2078
1951
  return {
2079
- sourceIp: 'SourceIp',
1952
+ instanceIdList: 'InstanceIdList',
2080
1953
  mode: 'Mode',
2081
1954
  regionId: 'RegionId',
2082
- instanceIdList: 'InstanceIdList',
2083
1955
  };
2084
1956
  }
2085
1957
 
2086
1958
  static types(): { [key: string]: any } {
2087
1959
  return {
2088
- sourceIp: 'string',
1960
+ instanceIdList: { 'type': 'array', 'itemType': 'string' },
2089
1961
  mode: 'string',
2090
1962
  regionId: 'string',
2091
- instanceIdList: { 'type': 'array', 'itemType': 'string' },
2092
1963
  };
2093
1964
  }
2094
1965
 
@@ -2118,10 +1989,12 @@ export class SetInstanceModeOnDemandResponseBody extends $tea.Model {
2118
1989
 
2119
1990
  export class SetInstanceModeOnDemandResponse extends $tea.Model {
2120
1991
  headers: { [key: string]: string };
1992
+ statusCode: number;
2121
1993
  body: SetInstanceModeOnDemandResponseBody;
2122
1994
  static names(): { [key: string]: string } {
2123
1995
  return {
2124
1996
  headers: 'headers',
1997
+ statusCode: 'statusCode',
2125
1998
  body: 'body',
2126
1999
  };
2127
2000
  }
@@ -2129,6 +2002,7 @@ export class SetInstanceModeOnDemandResponse extends $tea.Model {
2129
2002
  static types(): { [key: string]: any } {
2130
2003
  return {
2131
2004
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2005
+ statusCode: 'number',
2132
2006
  body: SetInstanceModeOnDemandResponseBody,
2133
2007
  };
2134
2008
  }
@@ -2139,39 +2013,27 @@ export class SetInstanceModeOnDemandResponse extends $tea.Model {
2139
2013
  }
2140
2014
 
2141
2015
  export class TagResourcesRequest extends $tea.Model {
2142
- sourceIp?: string;
2143
- resourceGroupId?: string;
2144
2016
  regionId?: string;
2145
- tagOwnerUid?: string;
2146
- tagOwnerBid?: string;
2147
- resourceType?: string;
2148
- scope?: string;
2017
+ resourceGroupId?: string;
2149
2018
  resourceId?: string[];
2019
+ resourceType?: string;
2150
2020
  tag?: TagResourcesRequestTag[];
2151
2021
  static names(): { [key: string]: string } {
2152
2022
  return {
2153
- sourceIp: 'SourceIp',
2154
- resourceGroupId: 'ResourceGroupId',
2155
2023
  regionId: 'RegionId',
2156
- tagOwnerUid: 'TagOwnerUid',
2157
- tagOwnerBid: 'TagOwnerBid',
2158
- resourceType: 'ResourceType',
2159
- scope: 'Scope',
2024
+ resourceGroupId: 'ResourceGroupId',
2160
2025
  resourceId: 'ResourceId',
2026
+ resourceType: 'ResourceType',
2161
2027
  tag: 'Tag',
2162
2028
  };
2163
2029
  }
2164
2030
 
2165
2031
  static types(): { [key: string]: any } {
2166
2032
  return {
2167
- sourceIp: 'string',
2168
- resourceGroupId: 'string',
2169
2033
  regionId: 'string',
2170
- tagOwnerUid: 'string',
2171
- tagOwnerBid: 'string',
2172
- resourceType: 'string',
2173
- scope: 'string',
2034
+ resourceGroupId: 'string',
2174
2035
  resourceId: { 'type': 'array', 'itemType': 'string' },
2036
+ resourceType: 'string',
2175
2037
  tag: { 'type': 'array', 'itemType': TagResourcesRequestTag },
2176
2038
  };
2177
2039
  }
@@ -2202,10 +2064,12 @@ export class TagResourcesResponseBody extends $tea.Model {
2202
2064
 
2203
2065
  export class TagResourcesResponse extends $tea.Model {
2204
2066
  headers: { [key: string]: string };
2067
+ statusCode: number;
2205
2068
  body: TagResourcesResponseBody;
2206
2069
  static names(): { [key: string]: string } {
2207
2070
  return {
2208
2071
  headers: 'headers',
2072
+ statusCode: 'statusCode',
2209
2073
  body: 'body',
2210
2074
  };
2211
2075
  }
@@ -2213,6 +2077,7 @@ export class TagResourcesResponse extends $tea.Model {
2213
2077
  static types(): { [key: string]: any } {
2214
2078
  return {
2215
2079
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2080
+ statusCode: 'number',
2216
2081
  body: TagResourcesResponseBody,
2217
2082
  };
2218
2083
  }
@@ -2223,39 +2088,30 @@ export class TagResourcesResponse extends $tea.Model {
2223
2088
  }
2224
2089
 
2225
2090
  export class UntagResourcesRequest extends $tea.Model {
2226
- sourceIp?: string;
2227
- resourceGroupId?: string;
2228
- regionId?: string;
2229
- tagOwnerUid?: string;
2230
- tagOwnerBid?: string;
2231
- resourceType?: string;
2232
2091
  all?: boolean;
2092
+ regionId?: string;
2093
+ resourceGroupId?: string;
2233
2094
  resourceId?: string[];
2095
+ resourceType?: string;
2234
2096
  tagKey?: string[];
2235
2097
  static names(): { [key: string]: string } {
2236
2098
  return {
2237
- sourceIp: 'SourceIp',
2238
- resourceGroupId: 'ResourceGroupId',
2239
- regionId: 'RegionId',
2240
- tagOwnerUid: 'TagOwnerUid',
2241
- tagOwnerBid: 'TagOwnerBid',
2242
- resourceType: 'ResourceType',
2243
2099
  all: 'All',
2100
+ regionId: 'RegionId',
2101
+ resourceGroupId: 'ResourceGroupId',
2244
2102
  resourceId: 'ResourceId',
2103
+ resourceType: 'ResourceType',
2245
2104
  tagKey: 'TagKey',
2246
2105
  };
2247
2106
  }
2248
2107
 
2249
2108
  static types(): { [key: string]: any } {
2250
2109
  return {
2251
- sourceIp: 'string',
2252
- resourceGroupId: 'string',
2253
- regionId: 'string',
2254
- tagOwnerUid: 'string',
2255
- tagOwnerBid: 'string',
2256
- resourceType: 'string',
2257
2110
  all: 'boolean',
2111
+ regionId: 'string',
2112
+ resourceGroupId: 'string',
2258
2113
  resourceId: { 'type': 'array', 'itemType': 'string' },
2114
+ resourceType: 'string',
2259
2115
  tagKey: { 'type': 'array', 'itemType': 'string' },
2260
2116
  };
2261
2117
  }
@@ -2286,10 +2142,12 @@ export class UntagResourcesResponseBody extends $tea.Model {
2286
2142
 
2287
2143
  export class UntagResourcesResponse extends $tea.Model {
2288
2144
  headers: { [key: string]: string };
2145
+ statusCode: number;
2289
2146
  body: UntagResourcesResponseBody;
2290
2147
  static names(): { [key: string]: string } {
2291
2148
  return {
2292
2149
  headers: 'headers',
2150
+ statusCode: 'statusCode',
2293
2151
  body: 'body',
2294
2152
  };
2295
2153
  }
@@ -2297,6 +2155,7 @@ export class UntagResourcesResponse extends $tea.Model {
2297
2155
  static types(): { [key: string]: any } {
2298
2156
  return {
2299
2157
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2158
+ statusCode: 'number',
2300
2159
  body: UntagResourcesResponseBody,
2301
2160
  };
2302
2161
  }
@@ -2308,30 +2167,30 @@ export class UntagResourcesResponse extends $tea.Model {
2308
2167
 
2309
2168
  export class DescribeDdosEventResponseBodyEvents extends $tea.Model {
2310
2169
  endTime?: number;
2311
- status?: string;
2312
- startTime?: number;
2313
- mbps?: number;
2314
2170
  ip?: string;
2171
+ mbps?: number;
2315
2172
  pps?: number;
2173
+ startTime?: number;
2174
+ status?: string;
2316
2175
  static names(): { [key: string]: string } {
2317
2176
  return {
2318
2177
  endTime: 'EndTime',
2319
- status: 'Status',
2320
- startTime: 'StartTime',
2321
- mbps: 'Mbps',
2322
2178
  ip: 'Ip',
2179
+ mbps: 'Mbps',
2323
2180
  pps: 'Pps',
2181
+ startTime: 'StartTime',
2182
+ status: 'Status',
2324
2183
  };
2325
2184
  }
2326
2185
 
2327
2186
  static types(): { [key: string]: any } {
2328
2187
  return {
2329
2188
  endTime: 'number',
2330
- status: 'string',
2331
- startTime: 'number',
2332
- mbps: 'number',
2333
2189
  ip: 'string',
2190
+ mbps: 'number',
2334
2191
  pps: 'number',
2192
+ startTime: 'number',
2193
+ status: 'string',
2335
2194
  };
2336
2195
  }
2337
2196
 
@@ -2363,43 +2222,46 @@ export class DescribeInstanceListRequestTag extends $tea.Model {
2363
2222
  }
2364
2223
 
2365
2224
  export class DescribeInstanceListResponseBodyInstanceList extends $tea.Model {
2366
- status?: string;
2367
- ipType?: string;
2368
2225
  autoRenewal?: boolean;
2369
- remark?: string;
2226
+ blackholdingCount?: string;
2227
+ coverageType?: number;
2370
2228
  expireTime?: number;
2371
- product?: string;
2372
2229
  gmtCreate?: number;
2373
2230
  instanceId?: string;
2374
2231
  instanceType?: string;
2375
- blackholdingCount?: string;
2232
+ ipType?: string;
2233
+ product?: string;
2234
+ remark?: string;
2235
+ status?: string;
2376
2236
  static names(): { [key: string]: string } {
2377
2237
  return {
2378
- status: 'Status',
2379
- ipType: 'IpType',
2380
2238
  autoRenewal: 'AutoRenewal',
2381
- remark: 'Remark',
2239
+ blackholdingCount: 'BlackholdingCount',
2240
+ coverageType: 'CoverageType',
2382
2241
  expireTime: 'ExpireTime',
2383
- product: 'Product',
2384
2242
  gmtCreate: 'GmtCreate',
2385
2243
  instanceId: 'InstanceId',
2386
2244
  instanceType: 'InstanceType',
2387
- blackholdingCount: 'BlackholdingCount',
2245
+ ipType: 'IpType',
2246
+ product: 'Product',
2247
+ remark: 'Remark',
2248
+ status: 'Status',
2388
2249
  };
2389
2250
  }
2390
2251
 
2391
2252
  static types(): { [key: string]: any } {
2392
2253
  return {
2393
- status: 'string',
2394
- ipType: 'string',
2395
2254
  autoRenewal: 'boolean',
2396
- remark: 'string',
2255
+ blackholdingCount: 'string',
2256
+ coverageType: 'number',
2397
2257
  expireTime: 'number',
2398
- product: 'string',
2399
2258
  gmtCreate: 'number',
2400
2259
  instanceId: 'string',
2401
2260
  instanceType: 'string',
2402
- blackholdingCount: 'string',
2261
+ ipType: 'string',
2262
+ product: 'string',
2263
+ remark: 'string',
2264
+ status: 'string',
2403
2265
  };
2404
2266
  }
2405
2267
 
@@ -2409,31 +2271,37 @@ export class DescribeInstanceListResponseBodyInstanceList extends $tea.Model {
2409
2271
  }
2410
2272
 
2411
2273
  export class DescribeInstanceSpecsResponseBodyInstanceSpecsPackConfig extends $tea.Model {
2412
- packBasicThre?: number;
2274
+ bandwidth?: number;
2413
2275
  bindIpCount?: number;
2414
- packAdvThre?: number;
2415
- ipBasicThre?: number;
2416
2276
  ipAdvanceThre?: number;
2277
+ ipBasicThre?: number;
2417
2278
  ipSpec?: number;
2279
+ normalBandwidth?: number;
2280
+ packAdvThre?: number;
2281
+ packBasicThre?: number;
2418
2282
  static names(): { [key: string]: string } {
2419
2283
  return {
2420
- packBasicThre: 'PackBasicThre',
2284
+ bandwidth: 'Bandwidth',
2421
2285
  bindIpCount: 'BindIpCount',
2422
- packAdvThre: 'PackAdvThre',
2423
- ipBasicThre: 'IpBasicThre',
2424
2286
  ipAdvanceThre: 'IpAdvanceThre',
2287
+ ipBasicThre: 'IpBasicThre',
2425
2288
  ipSpec: 'IpSpec',
2289
+ normalBandwidth: 'NormalBandwidth',
2290
+ packAdvThre: 'PackAdvThre',
2291
+ packBasicThre: 'PackBasicThre',
2426
2292
  };
2427
2293
  }
2428
2294
 
2429
2295
  static types(): { [key: string]: any } {
2430
2296
  return {
2431
- packBasicThre: 'number',
2297
+ bandwidth: 'number',
2432
2298
  bindIpCount: 'number',
2433
- packAdvThre: 'number',
2434
- ipBasicThre: 'number',
2435
2299
  ipAdvanceThre: 'number',
2300
+ ipBasicThre: 'number',
2436
2301
  ipSpec: 'number',
2302
+ normalBandwidth: 'number',
2303
+ packAdvThre: 'number',
2304
+ packBasicThre: 'number',
2437
2305
  };
2438
2306
  }
2439
2307
 
@@ -2443,25 +2311,34 @@ export class DescribeInstanceSpecsResponseBodyInstanceSpecsPackConfig extends $t
2443
2311
  }
2444
2312
 
2445
2313
  export class DescribeInstanceSpecsResponseBodyInstanceSpecs extends $tea.Model {
2446
- packConfig?: DescribeInstanceSpecsResponseBodyInstanceSpecsPackConfig;
2447
- region?: string;
2314
+ availableDefenseTimes?: number;
2448
2315
  availableDeleteBlackholeCount?: string;
2449
2316
  instanceId?: string;
2317
+ isFullDefenseMode?: number;
2318
+ packConfig?: DescribeInstanceSpecsResponseBodyInstanceSpecsPackConfig;
2319
+ region?: string;
2320
+ totalDefenseTimes?: number;
2450
2321
  static names(): { [key: string]: string } {
2451
2322
  return {
2452
- packConfig: 'PackConfig',
2453
- region: 'Region',
2323
+ availableDefenseTimes: 'AvailableDefenseTimes',
2454
2324
  availableDeleteBlackholeCount: 'AvailableDeleteBlackholeCount',
2455
2325
  instanceId: 'InstanceId',
2326
+ isFullDefenseMode: 'IsFullDefenseMode',
2327
+ packConfig: 'PackConfig',
2328
+ region: 'Region',
2329
+ totalDefenseTimes: 'TotalDefenseTimes',
2456
2330
  };
2457
2331
  }
2458
2332
 
2459
2333
  static types(): { [key: string]: any } {
2460
2334
  return {
2461
- packConfig: DescribeInstanceSpecsResponseBodyInstanceSpecsPackConfig,
2462
- region: 'string',
2335
+ availableDefenseTimes: 'number',
2463
2336
  availableDeleteBlackholeCount: 'string',
2464
2337
  instanceId: 'string',
2338
+ isFullDefenseMode: 'number',
2339
+ packConfig: DescribeInstanceSpecsResponseBodyInstanceSpecsPackConfig,
2340
+ region: 'string',
2341
+ totalDefenseTimes: 'number',
2465
2342
  };
2466
2343
  }
2467
2344
 
@@ -2472,30 +2349,30 @@ export class DescribeInstanceSpecsResponseBodyInstanceSpecs extends $tea.Model {
2472
2349
 
2473
2350
  export class DescribeOnDemandDdosEventResponseBodyEvents extends $tea.Model {
2474
2351
  endTime?: number;
2475
- status?: string;
2476
- startTime?: number;
2477
- mbps?: number;
2478
2352
  ip?: string;
2353
+ mbps?: number;
2479
2354
  pps?: number;
2355
+ startTime?: number;
2356
+ status?: string;
2480
2357
  static names(): { [key: string]: string } {
2481
2358
  return {
2482
2359
  endTime: 'EndTime',
2483
- status: 'Status',
2484
- startTime: 'StartTime',
2485
- mbps: 'Mbps',
2486
2360
  ip: 'Ip',
2361
+ mbps: 'Mbps',
2487
2362
  pps: 'Pps',
2363
+ startTime: 'StartTime',
2364
+ status: 'Status',
2488
2365
  };
2489
2366
  }
2490
2367
 
2491
2368
  static types(): { [key: string]: any } {
2492
2369
  return {
2493
2370
  endTime: 'number',
2494
- status: 'string',
2495
- startTime: 'number',
2496
- mbps: 'number',
2497
2371
  ip: 'string',
2372
+ mbps: 'number',
2498
2373
  pps: 'number',
2374
+ startTime: 'number',
2375
+ status: 'string',
2499
2376
  };
2500
2377
  }
2501
2378
 
@@ -2505,34 +2382,34 @@ export class DescribeOnDemandDdosEventResponseBodyEvents extends $tea.Model {
2505
2382
  }
2506
2383
 
2507
2384
  export class DescribeOnDemandInstanceStatusResponseBodyInstances extends $tea.Model {
2508
- userId?: string;
2509
- mode?: string;
2510
- instanceId?: string;
2511
2385
  declared?: string;
2512
- registedAs?: string;
2513
- net?: string;
2514
2386
  desc?: string;
2387
+ instanceId?: string;
2388
+ mode?: string;
2389
+ net?: string;
2390
+ registedAs?: string;
2391
+ userId?: string;
2515
2392
  static names(): { [key: string]: string } {
2516
2393
  return {
2517
- userId: 'UserId',
2518
- mode: 'Mode',
2519
- instanceId: 'InstanceId',
2520
2394
  declared: 'Declared',
2521
- registedAs: 'RegistedAs',
2522
- net: 'Net',
2523
2395
  desc: 'Desc',
2396
+ instanceId: 'InstanceId',
2397
+ mode: 'Mode',
2398
+ net: 'Net',
2399
+ registedAs: 'RegistedAs',
2400
+ userId: 'UserId',
2524
2401
  };
2525
2402
  }
2526
2403
 
2527
2404
  static types(): { [key: string]: any } {
2528
2405
  return {
2529
- userId: 'string',
2530
- mode: 'string',
2531
- instanceId: 'string',
2532
2406
  declared: 'string',
2533
- registedAs: 'string',
2534
- net: 'string',
2535
2407
  desc: 'string',
2408
+ instanceId: 'string',
2409
+ mode: 'string',
2410
+ net: 'string',
2411
+ registedAs: 'string',
2412
+ userId: 'string',
2536
2413
  };
2537
2414
  }
2538
2415
 
@@ -2542,30 +2419,30 @@ export class DescribeOnDemandInstanceStatusResponseBodyInstances extends $tea.Mo
2542
2419
  }
2543
2420
 
2544
2421
  export class DescribeOpEntitiesResponseBodyOpEntities extends $tea.Model {
2545
- entityType?: number;
2546
2422
  entityObject?: string;
2547
- opAction?: number;
2423
+ entityType?: number;
2548
2424
  gmtCreate?: number;
2549
2425
  opAccount?: string;
2426
+ opAction?: number;
2550
2427
  opDesc?: string;
2551
2428
  static names(): { [key: string]: string } {
2552
2429
  return {
2553
- entityType: 'EntityType',
2554
2430
  entityObject: 'EntityObject',
2555
- opAction: 'OpAction',
2431
+ entityType: 'EntityType',
2556
2432
  gmtCreate: 'GmtCreate',
2557
2433
  opAccount: 'OpAccount',
2434
+ opAction: 'OpAction',
2558
2435
  opDesc: 'OpDesc',
2559
2436
  };
2560
2437
  }
2561
2438
 
2562
2439
  static types(): { [key: string]: any } {
2563
2440
  return {
2564
- entityType: 'number',
2565
2441
  entityObject: 'string',
2566
- opAction: 'number',
2442
+ entityType: 'number',
2567
2443
  gmtCreate: 'number',
2568
2444
  opAccount: 'string',
2445
+ opAction: 'number',
2569
2446
  opDesc: 'string',
2570
2447
  };
2571
2448
  }
@@ -2576,62 +2453,31 @@ export class DescribeOpEntitiesResponseBodyOpEntities extends $tea.Model {
2576
2453
  }
2577
2454
 
2578
2455
  export class DescribePackIpListResponseBodyIpList extends $tea.Model {
2579
- status?: string;
2580
- remark?: string;
2581
- product?: string;
2582
2456
  ip?: string;
2457
+ memberUid?: string;
2458
+ product?: string;
2459
+ region?: string;
2460
+ remark?: string;
2461
+ status?: string;
2583
2462
  static names(): { [key: string]: string } {
2584
2463
  return {
2585
- status: 'Status',
2586
- remark: 'Remark',
2587
- product: 'Product',
2588
2464
  ip: 'Ip',
2465
+ memberUid: 'MemberUid',
2466
+ product: 'Product',
2467
+ region: 'Region',
2468
+ remark: 'Remark',
2469
+ status: 'Status',
2589
2470
  };
2590
2471
  }
2591
2472
 
2592
2473
  static types(): { [key: string]: any } {
2593
2474
  return {
2594
- status: 'string',
2595
- remark: 'string',
2596
- product: 'string',
2597
2475
  ip: 'string',
2598
- };
2599
- }
2600
-
2601
- constructor(map?: { [key: string]: any }) {
2602
- super(map);
2603
- }
2604
- }
2605
-
2606
- export class DescribePackPaidTrafficResponseBodyPackPaidTraffics extends $tea.Model {
2607
- startTime?: number;
2608
- baseBandwidth?: number;
2609
- elasticBandwidth?: number;
2610
- totalCapacity?: number;
2611
- maxAttack?: number;
2612
- instanceId?: string;
2613
- paidCapacity?: number;
2614
- static names(): { [key: string]: string } {
2615
- return {
2616
- startTime: 'StartTime',
2617
- baseBandwidth: 'BaseBandwidth',
2618
- elasticBandwidth: 'ElasticBandwidth',
2619
- totalCapacity: 'TotalCapacity',
2620
- maxAttack: 'MaxAttack',
2621
- instanceId: 'InstanceId',
2622
- paidCapacity: 'PaidCapacity',
2623
- };
2624
- }
2625
-
2626
- static types(): { [key: string]: any } {
2627
- return {
2628
- startTime: 'number',
2629
- baseBandwidth: 'number',
2630
- elasticBandwidth: 'number',
2631
- totalCapacity: 'number',
2632
- maxAttack: 'number',
2633
- instanceId: 'string',
2634
- paidCapacity: 'number',
2476
+ memberUid: 'string',
2477
+ product: 'string',
2478
+ region: 'string',
2479
+ remark: 'string',
2480
+ status: 'string',
2635
2481
  };
2636
2482
  }
2637
2483
 
@@ -2642,21 +2488,21 @@ export class DescribePackPaidTrafficResponseBodyPackPaidTraffics extends $tea.Mo
2642
2488
 
2643
2489
  export class DescribeRegionsResponseBodyRegions extends $tea.Model {
2644
2490
  regionEnName?: string;
2645
- regionName?: string;
2646
2491
  regionId?: string;
2492
+ regionName?: string;
2647
2493
  static names(): { [key: string]: string } {
2648
2494
  return {
2649
2495
  regionEnName: 'RegionEnName',
2650
- regionName: 'RegionName',
2651
2496
  regionId: 'RegionId',
2497
+ regionName: 'RegionName',
2652
2498
  };
2653
2499
  }
2654
2500
 
2655
2501
  static types(): { [key: string]: any } {
2656
2502
  return {
2657
2503
  regionEnName: 'string',
2658
- regionName: 'string',
2659
2504
  regionId: 'string',
2505
+ regionName: 'string',
2660
2506
  };
2661
2507
  }
2662
2508
 
@@ -2665,54 +2511,35 @@ export class DescribeRegionsResponseBodyRegions extends $tea.Model {
2665
2511
  }
2666
2512
  }
2667
2513
 
2668
- export class DescribeResourcePackInstancesResponseBodyResourcePacks extends $tea.Model {
2669
- endTime?: number;
2670
- status?: string;
2671
- startTime?: number;
2672
- resourcePackId?: string;
2673
- currCapacity?: number;
2674
- initCapacity?: number;
2675
- static names(): { [key: string]: string } {
2676
- return {
2677
- endTime: 'EndTime',
2678
- status: 'Status',
2679
- startTime: 'StartTime',
2680
- resourcePackId: 'ResourcePackId',
2681
- currCapacity: 'CurrCapacity',
2682
- initCapacity: 'InitCapacity',
2683
- };
2684
- }
2685
-
2686
- static types(): { [key: string]: any } {
2687
- return {
2688
- endTime: 'number',
2689
- status: 'string',
2690
- startTime: 'number',
2691
- resourcePackId: 'string',
2692
- currCapacity: 'number',
2693
- initCapacity: 'number',
2694
- };
2695
- }
2696
-
2697
- constructor(map?: { [key: string]: any }) {
2698
- super(map);
2699
- }
2700
- }
2701
-
2702
- export class DescribeResourcePackUsageResponseBodyPackUsages extends $tea.Model {
2514
+ export class DescribeTrafficResponseBodyFlowList extends $tea.Model {
2515
+ attackBps?: number;
2516
+ attackPps?: number;
2517
+ flowType?: string;
2518
+ kbps?: number;
2519
+ name?: string;
2520
+ pps?: number;
2703
2521
  time?: number;
2704
- traffic?: number;
2705
2522
  static names(): { [key: string]: string } {
2706
2523
  return {
2524
+ attackBps: 'AttackBps',
2525
+ attackPps: 'AttackPps',
2526
+ flowType: 'FlowType',
2527
+ kbps: 'Kbps',
2528
+ name: 'Name',
2529
+ pps: 'Pps',
2707
2530
  time: 'Time',
2708
- traffic: 'Traffic',
2709
2531
  };
2710
2532
  }
2711
2533
 
2712
2534
  static types(): { [key: string]: any } {
2713
2535
  return {
2536
+ attackBps: 'number',
2537
+ attackPps: 'number',
2538
+ flowType: 'string',
2539
+ kbps: 'number',
2540
+ name: 'string',
2541
+ pps: 'number',
2714
2542
  time: 'number',
2715
- traffic: 'number',
2716
2543
  };
2717
2544
  }
2718
2545
 
@@ -2721,35 +2548,20 @@ export class DescribeResourcePackUsageResponseBodyPackUsages extends $tea.Model
2721
2548
  }
2722
2549
  }
2723
2550
 
2724
- export class DescribeTrafficResponseBodyFlowList extends $tea.Model {
2725
- time?: number;
2726
- flowType?: string;
2727
- attackPps?: number;
2728
- name?: string;
2729
- pps?: number;
2730
- kbps?: number;
2731
- attackBps?: number;
2551
+ export class ListOpenedAccessLogInstancesResponseBodySlsConfigStatus extends $tea.Model {
2552
+ enable?: boolean;
2553
+ instanceId?: string;
2732
2554
  static names(): { [key: string]: string } {
2733
2555
  return {
2734
- time: 'Time',
2735
- flowType: 'FlowType',
2736
- attackPps: 'AttackPps',
2737
- name: 'Name',
2738
- pps: 'Pps',
2739
- kbps: 'Kbps',
2740
- attackBps: 'AttackBps',
2556
+ enable: 'Enable',
2557
+ instanceId: 'InstanceId',
2741
2558
  };
2742
2559
  }
2743
2560
 
2744
2561
  static types(): { [key: string]: any } {
2745
2562
  return {
2746
- time: 'number',
2747
- flowType: 'string',
2748
- attackPps: 'number',
2749
- name: 'string',
2750
- pps: 'number',
2751
- kbps: 'number',
2752
- attackBps: 'number',
2563
+ enable: 'boolean',
2564
+ instanceId: 'string',
2753
2565
  };
2754
2566
  }
2755
2567
 
@@ -2803,25 +2615,25 @@ export class ListTagResourcesRequestTag extends $tea.Model {
2803
2615
  }
2804
2616
 
2805
2617
  export class ListTagResourcesResponseBodyTagResourcesTagResource extends $tea.Model {
2806
- resourceType?: string;
2807
- tagValue?: string;
2808
2618
  resourceId?: string;
2619
+ resourceType?: string;
2809
2620
  tagKey?: string;
2621
+ tagValue?: string;
2810
2622
  static names(): { [key: string]: string } {
2811
2623
  return {
2812
- resourceType: 'ResourceType',
2813
- tagValue: 'TagValue',
2814
2624
  resourceId: 'ResourceId',
2625
+ resourceType: 'ResourceType',
2815
2626
  tagKey: 'TagKey',
2627
+ tagValue: 'TagValue',
2816
2628
  };
2817
2629
  }
2818
2630
 
2819
2631
  static types(): { [key: string]: any } {
2820
2632
  return {
2821
- resourceType: 'string',
2822
- tagValue: 'string',
2823
2633
  resourceId: 'string',
2634
+ resourceType: 'string',
2824
2635
  tagKey: 'string',
2636
+ tagValue: 'string',
2825
2637
  };
2826
2638
  }
2827
2639
 
@@ -2849,20 +2661,44 @@ export class ListTagResourcesResponseBodyTagResources extends $tea.Model {
2849
2661
  }
2850
2662
  }
2851
2663
 
2852
- export class QuerySchedruleOnDemandResponseBodyRuleStatus extends $tea.Model {
2853
- ruleSchedStatus?: string;
2854
- net?: string;
2664
+ export class QuerySchedruleOnDemandResponseBodyRuleConfig extends $tea.Model {
2665
+ ruleAction?: string;
2666
+ ruleConditionCnt?: string;
2667
+ ruleConditionKpps?: string;
2668
+ ruleConditionMbps?: string;
2669
+ ruleName?: string;
2670
+ ruleSwitch?: string;
2671
+ ruleUndoBeginTime?: string;
2672
+ ruleUndoEndTime?: string;
2673
+ ruleUndoMode?: string;
2674
+ timeZone?: string;
2855
2675
  static names(): { [key: string]: string } {
2856
2676
  return {
2857
- ruleSchedStatus: 'RuleSchedStatus',
2858
- net: 'Net',
2677
+ ruleAction: 'RuleAction',
2678
+ ruleConditionCnt: 'RuleConditionCnt',
2679
+ ruleConditionKpps: 'RuleConditionKpps',
2680
+ ruleConditionMbps: 'RuleConditionMbps',
2681
+ ruleName: 'RuleName',
2682
+ ruleSwitch: 'RuleSwitch',
2683
+ ruleUndoBeginTime: 'RuleUndoBeginTime',
2684
+ ruleUndoEndTime: 'RuleUndoEndTime',
2685
+ ruleUndoMode: 'RuleUndoMode',
2686
+ timeZone: 'TimeZone',
2859
2687
  };
2860
2688
  }
2861
2689
 
2862
2690
  static types(): { [key: string]: any } {
2863
2691
  return {
2864
- ruleSchedStatus: 'string',
2865
- net: 'string',
2692
+ ruleAction: 'string',
2693
+ ruleConditionCnt: 'string',
2694
+ ruleConditionKpps: 'string',
2695
+ ruleConditionMbps: 'string',
2696
+ ruleName: 'string',
2697
+ ruleSwitch: 'string',
2698
+ ruleUndoBeginTime: 'string',
2699
+ ruleUndoEndTime: 'string',
2700
+ ruleUndoMode: 'string',
2701
+ timeZone: 'string',
2866
2702
  };
2867
2703
  }
2868
2704
 
@@ -2871,44 +2707,20 @@ export class QuerySchedruleOnDemandResponseBodyRuleStatus extends $tea.Model {
2871
2707
  }
2872
2708
  }
2873
2709
 
2874
- export class QuerySchedruleOnDemandResponseBodyRuleConfig extends $tea.Model {
2875
- ruleSwitch?: string;
2876
- ruleConditionMbps?: string;
2877
- timeZone?: string;
2878
- ruleAction?: string;
2879
- ruleConditionKpps?: string;
2880
- ruleUndoMode?: string;
2881
- ruleUndoBeginTime?: string;
2882
- ruleConditionCnt?: string;
2883
- ruleUndoEndTime?: string;
2884
- ruleName?: string;
2710
+ export class QuerySchedruleOnDemandResponseBodyRuleStatus extends $tea.Model {
2711
+ net?: string;
2712
+ ruleSchedStatus?: string;
2885
2713
  static names(): { [key: string]: string } {
2886
2714
  return {
2887
- ruleSwitch: 'RuleSwitch',
2888
- ruleConditionMbps: 'RuleConditionMbps',
2889
- timeZone: 'TimeZone',
2890
- ruleAction: 'RuleAction',
2891
- ruleConditionKpps: 'RuleConditionKpps',
2892
- ruleUndoMode: 'RuleUndoMode',
2893
- ruleUndoBeginTime: 'RuleUndoBeginTime',
2894
- ruleConditionCnt: 'RuleConditionCnt',
2895
- ruleUndoEndTime: 'RuleUndoEndTime',
2896
- ruleName: 'RuleName',
2715
+ net: 'Net',
2716
+ ruleSchedStatus: 'RuleSchedStatus',
2897
2717
  };
2898
2718
  }
2899
2719
 
2900
2720
  static types(): { [key: string]: any } {
2901
2721
  return {
2902
- ruleSwitch: 'string',
2903
- ruleConditionMbps: 'string',
2904
- timeZone: 'string',
2905
- ruleAction: 'string',
2906
- ruleConditionKpps: 'string',
2907
- ruleUndoMode: 'string',
2908
- ruleUndoBeginTime: 'string',
2909
- ruleConditionCnt: 'string',
2910
- ruleUndoEndTime: 'string',
2911
- ruleName: 'string',
2722
+ net: 'string',
2723
+ ruleSchedStatus: 'string',
2912
2724
  };
2913
2725
  }
2914
2726
 
@@ -2986,10 +2798,38 @@ export default class Client extends OpenApi {
2986
2798
 
2987
2799
  async addIpWithOptions(request: AddIpRequest, runtime: $Util.RuntimeOptions): Promise<AddIpResponse> {
2988
2800
  Util.validateModel(request);
2801
+ let query = { };
2802
+ if (!Util.isUnset(request.instanceId)) {
2803
+ query["InstanceId"] = request.instanceId;
2804
+ }
2805
+
2806
+ if (!Util.isUnset(request.ipList)) {
2807
+ query["IpList"] = request.ipList;
2808
+ }
2809
+
2810
+ if (!Util.isUnset(request.regionId)) {
2811
+ query["RegionId"] = request.regionId;
2812
+ }
2813
+
2814
+ if (!Util.isUnset(request.resourceGroupId)) {
2815
+ query["ResourceGroupId"] = request.resourceGroupId;
2816
+ }
2817
+
2989
2818
  let req = new $OpenApi.OpenApiRequest({
2990
- body: Util.toMap(request),
2819
+ query: OpenApiUtil.query(query),
2820
+ });
2821
+ let params = new $OpenApi.Params({
2822
+ action: "AddIp",
2823
+ version: "2018-07-20",
2824
+ protocol: "HTTPS",
2825
+ pathname: "/",
2826
+ method: "POST",
2827
+ authType: "AK",
2828
+ style: "RPC",
2829
+ reqBodyType: "formData",
2830
+ bodyType: "json",
2991
2831
  });
2992
- return $tea.cast<AddIpResponse>(await this.doRPCRequest("AddIp", "2018-07-20", "HTTPS", "POST", "AK", "json", req, runtime), new AddIpResponse({}));
2832
+ return $tea.cast<AddIpResponse>(await this.callApi(params, req, runtime), new AddIpResponse({}));
2993
2833
  }
2994
2834
 
2995
2835
  async addIp(request: AddIpRequest): Promise<AddIpResponse> {
@@ -2997,15 +2837,76 @@ export default class Client extends OpenApi {
2997
2837
  return await this.addIpWithOptions(request, runtime);
2998
2838
  }
2999
2839
 
2840
+ async checkAccessLogAuthWithOptions(request: CheckAccessLogAuthRequest, runtime: $Util.RuntimeOptions): Promise<CheckAccessLogAuthResponse> {
2841
+ Util.validateModel(request);
2842
+ let query = { };
2843
+ if (!Util.isUnset(request.regionId)) {
2844
+ query["RegionId"] = request.regionId;
2845
+ }
2846
+
2847
+ if (!Util.isUnset(request.resourceGroupId)) {
2848
+ query["ResourceGroupId"] = request.resourceGroupId;
2849
+ }
2850
+
2851
+ let req = new $OpenApi.OpenApiRequest({
2852
+ query: OpenApiUtil.query(query),
2853
+ });
2854
+ let params = new $OpenApi.Params({
2855
+ action: "CheckAccessLogAuth",
2856
+ version: "2018-07-20",
2857
+ protocol: "HTTPS",
2858
+ pathname: "/",
2859
+ method: "POST",
2860
+ authType: "AK",
2861
+ style: "RPC",
2862
+ reqBodyType: "formData",
2863
+ bodyType: "json",
2864
+ });
2865
+ return $tea.cast<CheckAccessLogAuthResponse>(await this.callApi(params, req, runtime), new CheckAccessLogAuthResponse({}));
2866
+ }
2867
+
2868
+ async checkAccessLogAuth(request: CheckAccessLogAuthRequest): Promise<CheckAccessLogAuthResponse> {
2869
+ let runtime = new $Util.RuntimeOptions({ });
2870
+ return await this.checkAccessLogAuthWithOptions(request, runtime);
2871
+ }
2872
+
2873
+ /**
2874
+ * Indicates whether Anti-DDoS Origin is authorized to obtain information about the assets within the current Alibaba Cloud account. Valid values:
2875
+ * * **1**: Anti-DDoS Origin is authorized to obtain information about the assets within the current Alibaba Cloud account.
2876
+ * * **0**: Anti-DDoS Origin is not authorized to obtain information about the assets within the current Alibaba Cloud account.
2877
+ *
2878
+ * @param request CheckGrantRequest
2879
+ * @param runtime runtime options for this request RuntimeOptions
2880
+ * @return CheckGrantResponse
2881
+ */
3000
2882
  async checkGrantWithOptions(request: CheckGrantRequest, runtime: $Util.RuntimeOptions): Promise<CheckGrantResponse> {
3001
2883
  Util.validateModel(request);
3002
2884
  let query = OpenApiUtil.query(Util.toMap(request));
3003
2885
  let req = new $OpenApi.OpenApiRequest({
3004
- query: query,
2886
+ query: OpenApiUtil.query(query),
2887
+ });
2888
+ let params = new $OpenApi.Params({
2889
+ action: "CheckGrant",
2890
+ version: "2018-07-20",
2891
+ protocol: "HTTPS",
2892
+ pathname: "/",
2893
+ method: "GET",
2894
+ authType: "AK",
2895
+ style: "RPC",
2896
+ reqBodyType: "formData",
2897
+ bodyType: "json",
3005
2898
  });
3006
- return $tea.cast<CheckGrantResponse>(await this.doRPCRequest("CheckGrant", "2018-07-20", "HTTPS", "GET", "AK", "json", req, runtime), new CheckGrantResponse({}));
2899
+ return $tea.cast<CheckGrantResponse>(await this.callApi(params, req, runtime), new CheckGrantResponse({}));
3007
2900
  }
3008
2901
 
2902
+ /**
2903
+ * Indicates whether Anti-DDoS Origin is authorized to obtain information about the assets within the current Alibaba Cloud account. Valid values:
2904
+ * * **1**: Anti-DDoS Origin is authorized to obtain information about the assets within the current Alibaba Cloud account.
2905
+ * * **0**: Anti-DDoS Origin is not authorized to obtain information about the assets within the current Alibaba Cloud account.
2906
+ *
2907
+ * @param request CheckGrantRequest
2908
+ * @return CheckGrantResponse
2909
+ */
3009
2910
  async checkGrant(request: CheckGrantRequest): Promise<CheckGrantResponse> {
3010
2911
  let runtime = new $Util.RuntimeOptions({ });
3011
2912
  return await this.checkGrantWithOptions(request, runtime);
@@ -3013,10 +2914,70 @@ export default class Client extends OpenApi {
3013
2914
 
3014
2915
  async configSchedruleOnDemandWithOptions(request: ConfigSchedruleOnDemandRequest, runtime: $Util.RuntimeOptions): Promise<ConfigSchedruleOnDemandResponse> {
3015
2916
  Util.validateModel(request);
2917
+ let query = { };
2918
+ if (!Util.isUnset(request.instanceId)) {
2919
+ query["InstanceId"] = request.instanceId;
2920
+ }
2921
+
2922
+ if (!Util.isUnset(request.regionId)) {
2923
+ query["RegionId"] = request.regionId;
2924
+ }
2925
+
2926
+ if (!Util.isUnset(request.ruleAction)) {
2927
+ query["RuleAction"] = request.ruleAction;
2928
+ }
2929
+
2930
+ if (!Util.isUnset(request.ruleConditionCnt)) {
2931
+ query["RuleConditionCnt"] = request.ruleConditionCnt;
2932
+ }
2933
+
2934
+ if (!Util.isUnset(request.ruleConditionKpps)) {
2935
+ query["RuleConditionKpps"] = request.ruleConditionKpps;
2936
+ }
2937
+
2938
+ if (!Util.isUnset(request.ruleConditionMbps)) {
2939
+ query["RuleConditionMbps"] = request.ruleConditionMbps;
2940
+ }
2941
+
2942
+ if (!Util.isUnset(request.ruleName)) {
2943
+ query["RuleName"] = request.ruleName;
2944
+ }
2945
+
2946
+ if (!Util.isUnset(request.ruleSwitch)) {
2947
+ query["RuleSwitch"] = request.ruleSwitch;
2948
+ }
2949
+
2950
+ if (!Util.isUnset(request.ruleUndoBeginTime)) {
2951
+ query["RuleUndoBeginTime"] = request.ruleUndoBeginTime;
2952
+ }
2953
+
2954
+ if (!Util.isUnset(request.ruleUndoEndTime)) {
2955
+ query["RuleUndoEndTime"] = request.ruleUndoEndTime;
2956
+ }
2957
+
2958
+ if (!Util.isUnset(request.ruleUndoMode)) {
2959
+ query["RuleUndoMode"] = request.ruleUndoMode;
2960
+ }
2961
+
2962
+ if (!Util.isUnset(request.timeZone)) {
2963
+ query["TimeZone"] = request.timeZone;
2964
+ }
2965
+
3016
2966
  let req = new $OpenApi.OpenApiRequest({
3017
- body: Util.toMap(request),
2967
+ query: OpenApiUtil.query(query),
2968
+ });
2969
+ let params = new $OpenApi.Params({
2970
+ action: "ConfigSchedruleOnDemand",
2971
+ version: "2018-07-20",
2972
+ protocol: "HTTPS",
2973
+ pathname: "/",
2974
+ method: "POST",
2975
+ authType: "AK",
2976
+ style: "RPC",
2977
+ reqBodyType: "formData",
2978
+ bodyType: "json",
3018
2979
  });
3019
- return $tea.cast<ConfigSchedruleOnDemandResponse>(await this.doRPCRequest("ConfigSchedruleOnDemand", "2018-07-20", "HTTPS", "POST", "AK", "json", req, runtime), new ConfigSchedruleOnDemandResponse({}));
2980
+ return $tea.cast<ConfigSchedruleOnDemandResponse>(await this.callApi(params, req, runtime), new ConfigSchedruleOnDemandResponse({}));
3020
2981
  }
3021
2982
 
3022
2983
  async configSchedruleOnDemand(request: ConfigSchedruleOnDemandRequest): Promise<ConfigSchedruleOnDemandResponse> {
@@ -3026,10 +2987,70 @@ export default class Client extends OpenApi {
3026
2987
 
3027
2988
  async createSchedruleOnDemandWithOptions(request: CreateSchedruleOnDemandRequest, runtime: $Util.RuntimeOptions): Promise<CreateSchedruleOnDemandResponse> {
3028
2989
  Util.validateModel(request);
2990
+ let query = { };
2991
+ if (!Util.isUnset(request.instanceId)) {
2992
+ query["InstanceId"] = request.instanceId;
2993
+ }
2994
+
2995
+ if (!Util.isUnset(request.regionId)) {
2996
+ query["RegionId"] = request.regionId;
2997
+ }
2998
+
2999
+ if (!Util.isUnset(request.ruleAction)) {
3000
+ query["RuleAction"] = request.ruleAction;
3001
+ }
3002
+
3003
+ if (!Util.isUnset(request.ruleConditionCnt)) {
3004
+ query["RuleConditionCnt"] = request.ruleConditionCnt;
3005
+ }
3006
+
3007
+ if (!Util.isUnset(request.ruleConditionKpps)) {
3008
+ query["RuleConditionKpps"] = request.ruleConditionKpps;
3009
+ }
3010
+
3011
+ if (!Util.isUnset(request.ruleConditionMbps)) {
3012
+ query["RuleConditionMbps"] = request.ruleConditionMbps;
3013
+ }
3014
+
3015
+ if (!Util.isUnset(request.ruleName)) {
3016
+ query["RuleName"] = request.ruleName;
3017
+ }
3018
+
3019
+ if (!Util.isUnset(request.ruleSwitch)) {
3020
+ query["RuleSwitch"] = request.ruleSwitch;
3021
+ }
3022
+
3023
+ if (!Util.isUnset(request.ruleUndoBeginTime)) {
3024
+ query["RuleUndoBeginTime"] = request.ruleUndoBeginTime;
3025
+ }
3026
+
3027
+ if (!Util.isUnset(request.ruleUndoEndTime)) {
3028
+ query["RuleUndoEndTime"] = request.ruleUndoEndTime;
3029
+ }
3030
+
3031
+ if (!Util.isUnset(request.ruleUndoMode)) {
3032
+ query["RuleUndoMode"] = request.ruleUndoMode;
3033
+ }
3034
+
3035
+ if (!Util.isUnset(request.timeZone)) {
3036
+ query["TimeZone"] = request.timeZone;
3037
+ }
3038
+
3029
3039
  let req = new $OpenApi.OpenApiRequest({
3030
- body: Util.toMap(request),
3040
+ query: OpenApiUtil.query(query),
3031
3041
  });
3032
- return $tea.cast<CreateSchedruleOnDemandResponse>(await this.doRPCRequest("CreateSchedruleOnDemand", "2018-07-20", "HTTPS", "POST", "AK", "json", req, runtime), new CreateSchedruleOnDemandResponse({}));
3042
+ let params = new $OpenApi.Params({
3043
+ action: "CreateSchedruleOnDemand",
3044
+ version: "2018-07-20",
3045
+ protocol: "HTTPS",
3046
+ pathname: "/",
3047
+ method: "POST",
3048
+ authType: "AK",
3049
+ style: "RPC",
3050
+ reqBodyType: "formData",
3051
+ bodyType: "json",
3052
+ });
3053
+ return $tea.cast<CreateSchedruleOnDemandResponse>(await this.callApi(params, req, runtime), new CreateSchedruleOnDemandResponse({}));
3033
3054
  }
3034
3055
 
3035
3056
  async createSchedruleOnDemand(request: CreateSchedruleOnDemandRequest): Promise<CreateSchedruleOnDemandResponse> {
@@ -3037,27 +3058,117 @@ export default class Client extends OpenApi {
3037
3058
  return await this.createSchedruleOnDemandWithOptions(request, runtime);
3038
3059
  }
3039
3060
 
3061
+ /**
3062
+ * You can call the DeleteBlackhole operation to deactivate blackhole filtering for a protected IP address.
3063
+ * Before you call this operation, you can call the [DescribePackIpList](~~118701~~) operation to query the protection status of the IP addresses that are protected by your Anti-DDoS Origin instance. For example, you can query whether blackhole filtering is triggered for an IP address.
3064
+ * ### Limits
3065
+ * You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
3066
+ *
3067
+ * @param request DeleteBlackholeRequest
3068
+ * @param runtime runtime options for this request RuntimeOptions
3069
+ * @return DeleteBlackholeResponse
3070
+ */
3040
3071
  async deleteBlackholeWithOptions(request: DeleteBlackholeRequest, runtime: $Util.RuntimeOptions): Promise<DeleteBlackholeResponse> {
3041
3072
  Util.validateModel(request);
3073
+ let query = { };
3074
+ if (!Util.isUnset(request.instanceId)) {
3075
+ query["InstanceId"] = request.instanceId;
3076
+ }
3077
+
3078
+ if (!Util.isUnset(request.ip)) {
3079
+ query["Ip"] = request.ip;
3080
+ }
3081
+
3082
+ if (!Util.isUnset(request.regionId)) {
3083
+ query["RegionId"] = request.regionId;
3084
+ }
3085
+
3086
+ if (!Util.isUnset(request.resourceGroupId)) {
3087
+ query["ResourceGroupId"] = request.resourceGroupId;
3088
+ }
3089
+
3042
3090
  let req = new $OpenApi.OpenApiRequest({
3043
- body: Util.toMap(request),
3091
+ query: OpenApiUtil.query(query),
3044
3092
  });
3045
- return $tea.cast<DeleteBlackholeResponse>(await this.doRPCRequest("DeleteBlackhole", "2018-07-20", "HTTPS", "POST", "AK", "json", req, runtime), new DeleteBlackholeResponse({}));
3046
- }
3047
-
3093
+ let params = new $OpenApi.Params({
3094
+ action: "DeleteBlackhole",
3095
+ version: "2018-07-20",
3096
+ protocol: "HTTPS",
3097
+ pathname: "/",
3098
+ method: "POST",
3099
+ authType: "AK",
3100
+ style: "RPC",
3101
+ reqBodyType: "formData",
3102
+ bodyType: "json",
3103
+ });
3104
+ return $tea.cast<DeleteBlackholeResponse>(await this.callApi(params, req, runtime), new DeleteBlackholeResponse({}));
3105
+ }
3106
+
3107
+ /**
3108
+ * You can call the DeleteBlackhole operation to deactivate blackhole filtering for a protected IP address.
3109
+ * Before you call this operation, you can call the [DescribePackIpList](~~118701~~) operation to query the protection status of the IP addresses that are protected by your Anti-DDoS Origin instance. For example, you can query whether blackhole filtering is triggered for an IP address.
3110
+ * ### Limits
3111
+ * You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
3112
+ *
3113
+ * @param request DeleteBlackholeRequest
3114
+ * @return DeleteBlackholeResponse
3115
+ */
3048
3116
  async deleteBlackhole(request: DeleteBlackholeRequest): Promise<DeleteBlackholeResponse> {
3049
3117
  let runtime = new $Util.RuntimeOptions({ });
3050
3118
  return await this.deleteBlackholeWithOptions(request, runtime);
3051
3119
  }
3052
3120
 
3121
+ /**
3122
+ * The ID of the Anti-DDoS Origin Enterprise instance.
3123
+ * > You can call the [DescribeInstanceList](~~118698~~) operation to query the IDs of all Anti-DDoS Origin Enterprise instances.
3124
+ *
3125
+ * @param request DeleteIpRequest
3126
+ * @param runtime runtime options for this request RuntimeOptions
3127
+ * @return DeleteIpResponse
3128
+ */
3053
3129
  async deleteIpWithOptions(request: DeleteIpRequest, runtime: $Util.RuntimeOptions): Promise<DeleteIpResponse> {
3054
3130
  Util.validateModel(request);
3131
+ let query = { };
3132
+ if (!Util.isUnset(request.instanceId)) {
3133
+ query["InstanceId"] = request.instanceId;
3134
+ }
3135
+
3136
+ if (!Util.isUnset(request.ipList)) {
3137
+ query["IpList"] = request.ipList;
3138
+ }
3139
+
3140
+ if (!Util.isUnset(request.regionId)) {
3141
+ query["RegionId"] = request.regionId;
3142
+ }
3143
+
3144
+ if (!Util.isUnset(request.resourceGroupId)) {
3145
+ query["ResourceGroupId"] = request.resourceGroupId;
3146
+ }
3147
+
3055
3148
  let req = new $OpenApi.OpenApiRequest({
3056
- body: Util.toMap(request),
3149
+ query: OpenApiUtil.query(query),
3150
+ });
3151
+ let params = new $OpenApi.Params({
3152
+ action: "DeleteIp",
3153
+ version: "2018-07-20",
3154
+ protocol: "HTTPS",
3155
+ pathname: "/",
3156
+ method: "POST",
3157
+ authType: "AK",
3158
+ style: "RPC",
3159
+ reqBodyType: "formData",
3160
+ bodyType: "json",
3057
3161
  });
3058
- return $tea.cast<DeleteIpResponse>(await this.doRPCRequest("DeleteIp", "2018-07-20", "HTTPS", "POST", "AK", "json", req, runtime), new DeleteIpResponse({}));
3162
+ return $tea.cast<DeleteIpResponse>(await this.callApi(params, req, runtime), new DeleteIpResponse({}));
3059
3163
  }
3060
3164
 
3165
+ /**
3166
+ * The ID of the Anti-DDoS Origin Enterprise instance.
3167
+ * > You can call the [DescribeInstanceList](~~118698~~) operation to query the IDs of all Anti-DDoS Origin Enterprise instances.
3168
+ *
3169
+ * @param request DeleteIpRequest
3170
+ * @return DeleteIpResponse
3171
+ */
3061
3172
  async deleteIp(request: DeleteIpRequest): Promise<DeleteIpResponse> {
3062
3173
  let runtime = new $Util.RuntimeOptions({ });
3063
3174
  return await this.deleteIpWithOptions(request, runtime);
@@ -3065,10 +3176,34 @@ export default class Client extends OpenApi {
3065
3176
 
3066
3177
  async deleteSchedruleOnDemandWithOptions(request: DeleteSchedruleOnDemandRequest, runtime: $Util.RuntimeOptions): Promise<DeleteSchedruleOnDemandResponse> {
3067
3178
  Util.validateModel(request);
3179
+ let query = { };
3180
+ if (!Util.isUnset(request.instanceId)) {
3181
+ query["InstanceId"] = request.instanceId;
3182
+ }
3183
+
3184
+ if (!Util.isUnset(request.regionId)) {
3185
+ query["RegionId"] = request.regionId;
3186
+ }
3187
+
3188
+ if (!Util.isUnset(request.ruleName)) {
3189
+ query["RuleName"] = request.ruleName;
3190
+ }
3191
+
3068
3192
  let req = new $OpenApi.OpenApiRequest({
3069
- body: Util.toMap(request),
3193
+ query: OpenApiUtil.query(query),
3194
+ });
3195
+ let params = new $OpenApi.Params({
3196
+ action: "DeleteSchedruleOnDemand",
3197
+ version: "2018-07-20",
3198
+ protocol: "HTTPS",
3199
+ pathname: "/",
3200
+ method: "POST",
3201
+ authType: "AK",
3202
+ style: "RPC",
3203
+ reqBodyType: "formData",
3204
+ bodyType: "json",
3070
3205
  });
3071
- return $tea.cast<DeleteSchedruleOnDemandResponse>(await this.doRPCRequest("DeleteSchedruleOnDemand", "2018-07-20", "HTTPS", "POST", "AK", "json", req, runtime), new DeleteSchedruleOnDemandResponse({}));
3206
+ return $tea.cast<DeleteSchedruleOnDemandResponse>(await this.callApi(params, req, runtime), new DeleteSchedruleOnDemandResponse({}));
3072
3207
  }
3073
3208
 
3074
3209
  async deleteSchedruleOnDemand(request: DeleteSchedruleOnDemandRequest): Promise<DeleteSchedruleOnDemandResponse> {
@@ -3076,40 +3211,213 @@ export default class Client extends OpenApi {
3076
3211
  return await this.deleteSchedruleOnDemandWithOptions(request, runtime);
3077
3212
  }
3078
3213
 
3214
+ /**
3215
+ * The number of entries to return on each page.
3216
+ *
3217
+ * @param request DescribeDdosEventRequest
3218
+ * @param runtime runtime options for this request RuntimeOptions
3219
+ * @return DescribeDdosEventResponse
3220
+ */
3079
3221
  async describeDdosEventWithOptions(request: DescribeDdosEventRequest, runtime: $Util.RuntimeOptions): Promise<DescribeDdosEventResponse> {
3080
3222
  Util.validateModel(request);
3223
+ let query = { };
3224
+ if (!Util.isUnset(request.endTime)) {
3225
+ query["EndTime"] = request.endTime;
3226
+ }
3227
+
3228
+ if (!Util.isUnset(request.instanceId)) {
3229
+ query["InstanceId"] = request.instanceId;
3230
+ }
3231
+
3232
+ if (!Util.isUnset(request.ip)) {
3233
+ query["Ip"] = request.ip;
3234
+ }
3235
+
3236
+ if (!Util.isUnset(request.pageNo)) {
3237
+ query["PageNo"] = request.pageNo;
3238
+ }
3239
+
3240
+ if (!Util.isUnset(request.pageSize)) {
3241
+ query["PageSize"] = request.pageSize;
3242
+ }
3243
+
3244
+ if (!Util.isUnset(request.regionId)) {
3245
+ query["RegionId"] = request.regionId;
3246
+ }
3247
+
3248
+ if (!Util.isUnset(request.resourceGroupId)) {
3249
+ query["ResourceGroupId"] = request.resourceGroupId;
3250
+ }
3251
+
3252
+ if (!Util.isUnset(request.startTime)) {
3253
+ query["StartTime"] = request.startTime;
3254
+ }
3255
+
3081
3256
  let req = new $OpenApi.OpenApiRequest({
3082
- body: Util.toMap(request),
3257
+ query: OpenApiUtil.query(query),
3258
+ });
3259
+ let params = new $OpenApi.Params({
3260
+ action: "DescribeDdosEvent",
3261
+ version: "2018-07-20",
3262
+ protocol: "HTTPS",
3263
+ pathname: "/",
3264
+ method: "POST",
3265
+ authType: "AK",
3266
+ style: "RPC",
3267
+ reqBodyType: "formData",
3268
+ bodyType: "json",
3083
3269
  });
3084
- return $tea.cast<DescribeDdosEventResponse>(await this.doRPCRequest("DescribeDdosEvent", "2018-07-20", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeDdosEventResponse({}));
3270
+ return $tea.cast<DescribeDdosEventResponse>(await this.callApi(params, req, runtime), new DescribeDdosEventResponse({}));
3085
3271
  }
3086
3272
 
3273
+ /**
3274
+ * The number of entries to return on each page.
3275
+ *
3276
+ * @param request DescribeDdosEventRequest
3277
+ * @return DescribeDdosEventResponse
3278
+ */
3087
3279
  async describeDdosEvent(request: DescribeDdosEventRequest): Promise<DescribeDdosEventResponse> {
3088
3280
  let runtime = new $Util.RuntimeOptions({ });
3089
3281
  return await this.describeDdosEventWithOptions(request, runtime);
3090
3282
  }
3091
3283
 
3284
+ /**
3285
+ * The operation that you want to perform. Set the value to **DescribeExcpetionCount**.
3286
+ *
3287
+ * @param request DescribeExcpetionCountRequest
3288
+ * @param runtime runtime options for this request RuntimeOptions
3289
+ * @return DescribeExcpetionCountResponse
3290
+ */
3092
3291
  async describeExcpetionCountWithOptions(request: DescribeExcpetionCountRequest, runtime: $Util.RuntimeOptions): Promise<DescribeExcpetionCountResponse> {
3093
3292
  Util.validateModel(request);
3293
+ let query = { };
3294
+ if (!Util.isUnset(request.regionId)) {
3295
+ query["RegionId"] = request.regionId;
3296
+ }
3297
+
3298
+ if (!Util.isUnset(request.resourceGroupId)) {
3299
+ query["ResourceGroupId"] = request.resourceGroupId;
3300
+ }
3301
+
3094
3302
  let req = new $OpenApi.OpenApiRequest({
3095
- body: Util.toMap(request),
3303
+ query: OpenApiUtil.query(query),
3304
+ });
3305
+ let params = new $OpenApi.Params({
3306
+ action: "DescribeExcpetionCount",
3307
+ version: "2018-07-20",
3308
+ protocol: "HTTPS",
3309
+ pathname: "/",
3310
+ method: "POST",
3311
+ authType: "AK",
3312
+ style: "RPC",
3313
+ reqBodyType: "formData",
3314
+ bodyType: "json",
3096
3315
  });
3097
- return $tea.cast<DescribeExcpetionCountResponse>(await this.doRPCRequest("DescribeExcpetionCount", "2018-07-20", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeExcpetionCountResponse({}));
3316
+ return $tea.cast<DescribeExcpetionCountResponse>(await this.callApi(params, req, runtime), new DescribeExcpetionCountResponse({}));
3098
3317
  }
3099
3318
 
3319
+ /**
3320
+ * The operation that you want to perform. Set the value to **DescribeExcpetionCount**.
3321
+ *
3322
+ * @param request DescribeExcpetionCountRequest
3323
+ * @return DescribeExcpetionCountResponse
3324
+ */
3100
3325
  async describeExcpetionCount(request: DescribeExcpetionCountRequest): Promise<DescribeExcpetionCountResponse> {
3101
3326
  let runtime = new $Util.RuntimeOptions({ });
3102
3327
  return await this.describeExcpetionCountWithOptions(request, runtime);
3103
3328
  }
3104
3329
 
3330
+ /**
3331
+ * The status of the instance. Valid values:
3332
+ * * **1**: normal
3333
+ * * **2**: expired
3334
+ * * **3**: released
3335
+ *
3336
+ * @param request DescribeInstanceListRequest
3337
+ * @param runtime runtime options for this request RuntimeOptions
3338
+ * @return DescribeInstanceListResponse
3339
+ */
3105
3340
  async describeInstanceListWithOptions(request: DescribeInstanceListRequest, runtime: $Util.RuntimeOptions): Promise<DescribeInstanceListResponse> {
3106
3341
  Util.validateModel(request);
3342
+ let query = { };
3343
+ if (!Util.isUnset(request.instanceIdList)) {
3344
+ query["InstanceIdList"] = request.instanceIdList;
3345
+ }
3346
+
3347
+ if (!Util.isUnset(request.instanceType)) {
3348
+ query["InstanceType"] = request.instanceType;
3349
+ }
3350
+
3351
+ if (!Util.isUnset(request.instanceTypeList)) {
3352
+ query["InstanceTypeList"] = request.instanceTypeList;
3353
+ }
3354
+
3355
+ if (!Util.isUnset(request.ip)) {
3356
+ query["Ip"] = request.ip;
3357
+ }
3358
+
3359
+ if (!Util.isUnset(request.ipVersion)) {
3360
+ query["IpVersion"] = request.ipVersion;
3361
+ }
3362
+
3363
+ if (!Util.isUnset(request.orderby)) {
3364
+ query["Orderby"] = request.orderby;
3365
+ }
3366
+
3367
+ if (!Util.isUnset(request.orderdire)) {
3368
+ query["Orderdire"] = request.orderdire;
3369
+ }
3370
+
3371
+ if (!Util.isUnset(request.pageNo)) {
3372
+ query["PageNo"] = request.pageNo;
3373
+ }
3374
+
3375
+ if (!Util.isUnset(request.pageSize)) {
3376
+ query["PageSize"] = request.pageSize;
3377
+ }
3378
+
3379
+ if (!Util.isUnset(request.regionId)) {
3380
+ query["RegionId"] = request.regionId;
3381
+ }
3382
+
3383
+ if (!Util.isUnset(request.remark)) {
3384
+ query["Remark"] = request.remark;
3385
+ }
3386
+
3387
+ if (!Util.isUnset(request.resourceGroupId)) {
3388
+ query["ResourceGroupId"] = request.resourceGroupId;
3389
+ }
3390
+
3391
+ if (!Util.isUnset(request.tag)) {
3392
+ query["Tag"] = request.tag;
3393
+ }
3394
+
3107
3395
  let req = new $OpenApi.OpenApiRequest({
3108
- body: Util.toMap(request),
3396
+ query: OpenApiUtil.query(query),
3109
3397
  });
3110
- return $tea.cast<DescribeInstanceListResponse>(await this.doRPCRequest("DescribeInstanceList", "2018-07-20", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeInstanceListResponse({}));
3111
- }
3112
-
3398
+ let params = new $OpenApi.Params({
3399
+ action: "DescribeInstanceList",
3400
+ version: "2018-07-20",
3401
+ protocol: "HTTPS",
3402
+ pathname: "/",
3403
+ method: "POST",
3404
+ authType: "AK",
3405
+ style: "RPC",
3406
+ reqBodyType: "formData",
3407
+ bodyType: "json",
3408
+ });
3409
+ return $tea.cast<DescribeInstanceListResponse>(await this.callApi(params, req, runtime), new DescribeInstanceListResponse({}));
3410
+ }
3411
+
3412
+ /**
3413
+ * The status of the instance. Valid values:
3414
+ * * **1**: normal
3415
+ * * **2**: expired
3416
+ * * **3**: released
3417
+ *
3418
+ * @param request DescribeInstanceListRequest
3419
+ * @return DescribeInstanceListResponse
3420
+ */
3113
3421
  async describeInstanceList(request: DescribeInstanceListRequest): Promise<DescribeInstanceListResponse> {
3114
3422
  let runtime = new $Util.RuntimeOptions({ });
3115
3423
  return await this.describeInstanceListWithOptions(request, runtime);
@@ -3117,10 +3425,34 @@ export default class Client extends OpenApi {
3117
3425
 
3118
3426
  async describeInstanceSpecsWithOptions(request: DescribeInstanceSpecsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeInstanceSpecsResponse> {
3119
3427
  Util.validateModel(request);
3428
+ let query = { };
3429
+ if (!Util.isUnset(request.instanceIdList)) {
3430
+ query["InstanceIdList"] = request.instanceIdList;
3431
+ }
3432
+
3433
+ if (!Util.isUnset(request.regionId)) {
3434
+ query["RegionId"] = request.regionId;
3435
+ }
3436
+
3437
+ if (!Util.isUnset(request.resourceGroupId)) {
3438
+ query["ResourceGroupId"] = request.resourceGroupId;
3439
+ }
3440
+
3120
3441
  let req = new $OpenApi.OpenApiRequest({
3121
- body: Util.toMap(request),
3442
+ query: OpenApiUtil.query(query),
3443
+ });
3444
+ let params = new $OpenApi.Params({
3445
+ action: "DescribeInstanceSpecs",
3446
+ version: "2018-07-20",
3447
+ protocol: "HTTPS",
3448
+ pathname: "/",
3449
+ method: "POST",
3450
+ authType: "AK",
3451
+ style: "RPC",
3452
+ reqBodyType: "formData",
3453
+ bodyType: "json",
3122
3454
  });
3123
- return $tea.cast<DescribeInstanceSpecsResponse>(await this.doRPCRequest("DescribeInstanceSpecs", "2018-07-20", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeInstanceSpecsResponse({}));
3455
+ return $tea.cast<DescribeInstanceSpecsResponse>(await this.callApi(params, req, runtime), new DescribeInstanceSpecsResponse({}));
3124
3456
  }
3125
3457
 
3126
3458
  async describeInstanceSpecs(request: DescribeInstanceSpecsRequest): Promise<DescribeInstanceSpecsResponse> {
@@ -3128,14 +3460,71 @@ export default class Client extends OpenApi {
3128
3460
  return await this.describeInstanceSpecsWithOptions(request, runtime);
3129
3461
  }
3130
3462
 
3463
+ /**
3464
+ * The ID of the resource group.
3465
+ *
3466
+ * @param request DescribeOnDemandDdosEventRequest
3467
+ * @param runtime runtime options for this request RuntimeOptions
3468
+ * @return DescribeOnDemandDdosEventResponse
3469
+ */
3131
3470
  async describeOnDemandDdosEventWithOptions(request: DescribeOnDemandDdosEventRequest, runtime: $Util.RuntimeOptions): Promise<DescribeOnDemandDdosEventResponse> {
3132
3471
  Util.validateModel(request);
3472
+ let query = { };
3473
+ if (!Util.isUnset(request.endTime)) {
3474
+ query["EndTime"] = request.endTime;
3475
+ }
3476
+
3477
+ if (!Util.isUnset(request.instanceId)) {
3478
+ query["InstanceId"] = request.instanceId;
3479
+ }
3480
+
3481
+ if (!Util.isUnset(request.ip)) {
3482
+ query["Ip"] = request.ip;
3483
+ }
3484
+
3485
+ if (!Util.isUnset(request.pageNo)) {
3486
+ query["PageNo"] = request.pageNo;
3487
+ }
3488
+
3489
+ if (!Util.isUnset(request.pageSize)) {
3490
+ query["PageSize"] = request.pageSize;
3491
+ }
3492
+
3493
+ if (!Util.isUnset(request.regionId)) {
3494
+ query["RegionId"] = request.regionId;
3495
+ }
3496
+
3497
+ if (!Util.isUnset(request.resourceGroupId)) {
3498
+ query["ResourceGroupId"] = request.resourceGroupId;
3499
+ }
3500
+
3501
+ if (!Util.isUnset(request.startTime)) {
3502
+ query["StartTime"] = request.startTime;
3503
+ }
3504
+
3133
3505
  let req = new $OpenApi.OpenApiRequest({
3134
- body: Util.toMap(request),
3506
+ query: OpenApiUtil.query(query),
3507
+ });
3508
+ let params = new $OpenApi.Params({
3509
+ action: "DescribeOnDemandDdosEvent",
3510
+ version: "2018-07-20",
3511
+ protocol: "HTTPS",
3512
+ pathname: "/",
3513
+ method: "POST",
3514
+ authType: "AK",
3515
+ style: "RPC",
3516
+ reqBodyType: "formData",
3517
+ bodyType: "json",
3135
3518
  });
3136
- return $tea.cast<DescribeOnDemandDdosEventResponse>(await this.doRPCRequest("DescribeOnDemandDdosEvent", "2018-07-20", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeOnDemandDdosEventResponse({}));
3519
+ return $tea.cast<DescribeOnDemandDdosEventResponse>(await this.callApi(params, req, runtime), new DescribeOnDemandDdosEventResponse({}));
3137
3520
  }
3138
3521
 
3522
+ /**
3523
+ * The ID of the resource group.
3524
+ *
3525
+ * @param request DescribeOnDemandDdosEventRequest
3526
+ * @return DescribeOnDemandDdosEventResponse
3527
+ */
3139
3528
  async describeOnDemandDdosEvent(request: DescribeOnDemandDdosEventRequest): Promise<DescribeOnDemandDdosEventResponse> {
3140
3529
  let runtime = new $Util.RuntimeOptions({ });
3141
3530
  return await this.describeOnDemandDdosEventWithOptions(request, runtime);
@@ -3143,10 +3532,30 @@ export default class Client extends OpenApi {
3143
3532
 
3144
3533
  async describeOnDemandInstanceStatusWithOptions(request: DescribeOnDemandInstanceStatusRequest, runtime: $Util.RuntimeOptions): Promise<DescribeOnDemandInstanceStatusResponse> {
3145
3534
  Util.validateModel(request);
3535
+ let query = { };
3536
+ if (!Util.isUnset(request.instanceIdList)) {
3537
+ query["InstanceIdList"] = request.instanceIdList;
3538
+ }
3539
+
3540
+ if (!Util.isUnset(request.regionId)) {
3541
+ query["RegionId"] = request.regionId;
3542
+ }
3543
+
3146
3544
  let req = new $OpenApi.OpenApiRequest({
3147
- body: Util.toMap(request),
3545
+ query: OpenApiUtil.query(query),
3546
+ });
3547
+ let params = new $OpenApi.Params({
3548
+ action: "DescribeOnDemandInstanceStatus",
3549
+ version: "2018-07-20",
3550
+ protocol: "HTTPS",
3551
+ pathname: "/",
3552
+ method: "POST",
3553
+ authType: "AK",
3554
+ style: "RPC",
3555
+ reqBodyType: "formData",
3556
+ bodyType: "json",
3148
3557
  });
3149
- return $tea.cast<DescribeOnDemandInstanceStatusResponse>(await this.doRPCRequest("DescribeOnDemandInstanceStatus", "2018-07-20", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeOnDemandInstanceStatusResponse({}));
3558
+ return $tea.cast<DescribeOnDemandInstanceStatusResponse>(await this.callApi(params, req, runtime), new DescribeOnDemandInstanceStatusResponse({}));
3150
3559
  }
3151
3560
 
3152
3561
  async describeOnDemandInstanceStatus(request: DescribeOnDemandInstanceStatusRequest): Promise<DescribeOnDemandInstanceStatusResponse> {
@@ -3154,51 +3563,176 @@ export default class Client extends OpenApi {
3154
3563
  return await this.describeOnDemandInstanceStatusWithOptions(request, runtime);
3155
3564
  }
3156
3565
 
3566
+ /**
3567
+ * The start time. Operation logs that were generated after this time are queried.**** This value is a UNIX timestamp. Unit: milliseconds.
3568
+ *
3569
+ * @param request DescribeOpEntitiesRequest
3570
+ * @param runtime runtime options for this request RuntimeOptions
3571
+ * @return DescribeOpEntitiesResponse
3572
+ */
3157
3573
  async describeOpEntitiesWithOptions(request: DescribeOpEntitiesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeOpEntitiesResponse> {
3158
3574
  Util.validateModel(request);
3575
+ let query = { };
3576
+ if (!Util.isUnset(request.currentPage)) {
3577
+ query["CurrentPage"] = request.currentPage;
3578
+ }
3579
+
3580
+ if (!Util.isUnset(request.endTime)) {
3581
+ query["EndTime"] = request.endTime;
3582
+ }
3583
+
3584
+ if (!Util.isUnset(request.instanceId)) {
3585
+ query["InstanceId"] = request.instanceId;
3586
+ }
3587
+
3588
+ if (!Util.isUnset(request.orderBy)) {
3589
+ query["OrderBy"] = request.orderBy;
3590
+ }
3591
+
3592
+ if (!Util.isUnset(request.orderDir)) {
3593
+ query["OrderDir"] = request.orderDir;
3594
+ }
3595
+
3596
+ if (!Util.isUnset(request.pageSize)) {
3597
+ query["PageSize"] = request.pageSize;
3598
+ }
3599
+
3600
+ if (!Util.isUnset(request.regionId)) {
3601
+ query["RegionId"] = request.regionId;
3602
+ }
3603
+
3604
+ if (!Util.isUnset(request.resourceGroupId)) {
3605
+ query["ResourceGroupId"] = request.resourceGroupId;
3606
+ }
3607
+
3608
+ if (!Util.isUnset(request.startTime)) {
3609
+ query["StartTime"] = request.startTime;
3610
+ }
3611
+
3159
3612
  let req = new $OpenApi.OpenApiRequest({
3160
- body: Util.toMap(request),
3613
+ query: OpenApiUtil.query(query),
3614
+ });
3615
+ let params = new $OpenApi.Params({
3616
+ action: "DescribeOpEntities",
3617
+ version: "2018-07-20",
3618
+ protocol: "HTTPS",
3619
+ pathname: "/",
3620
+ method: "POST",
3621
+ authType: "AK",
3622
+ style: "RPC",
3623
+ reqBodyType: "formData",
3624
+ bodyType: "json",
3161
3625
  });
3162
- return $tea.cast<DescribeOpEntitiesResponse>(await this.doRPCRequest("DescribeOpEntities", "2018-07-20", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeOpEntitiesResponse({}));
3626
+ return $tea.cast<DescribeOpEntitiesResponse>(await this.callApi(params, req, runtime), new DescribeOpEntitiesResponse({}));
3163
3627
  }
3164
3628
 
3629
+ /**
3630
+ * The start time. Operation logs that were generated after this time are queried.**** This value is a UNIX timestamp. Unit: milliseconds.
3631
+ *
3632
+ * @param request DescribeOpEntitiesRequest
3633
+ * @return DescribeOpEntitiesResponse
3634
+ */
3165
3635
  async describeOpEntities(request: DescribeOpEntitiesRequest): Promise<DescribeOpEntitiesResponse> {
3166
3636
  let runtime = new $Util.RuntimeOptions({ });
3167
3637
  return await this.describeOpEntitiesWithOptions(request, runtime);
3168
3638
  }
3169
3639
 
3640
+ /**
3641
+ * The number of entries to return on each page.
3642
+ *
3643
+ * @param request DescribePackIpListRequest
3644
+ * @param runtime runtime options for this request RuntimeOptions
3645
+ * @return DescribePackIpListResponse
3646
+ */
3170
3647
  async describePackIpListWithOptions(request: DescribePackIpListRequest, runtime: $Util.RuntimeOptions): Promise<DescribePackIpListResponse> {
3171
3648
  Util.validateModel(request);
3649
+ let query = { };
3650
+ if (!Util.isUnset(request.instanceId)) {
3651
+ query["InstanceId"] = request.instanceId;
3652
+ }
3653
+
3654
+ if (!Util.isUnset(request.ip)) {
3655
+ query["Ip"] = request.ip;
3656
+ }
3657
+
3658
+ if (!Util.isUnset(request.memberUid)) {
3659
+ query["MemberUid"] = request.memberUid;
3660
+ }
3661
+
3662
+ if (!Util.isUnset(request.pageNo)) {
3663
+ query["PageNo"] = request.pageNo;
3664
+ }
3665
+
3666
+ if (!Util.isUnset(request.pageSize)) {
3667
+ query["PageSize"] = request.pageSize;
3668
+ }
3669
+
3670
+ if (!Util.isUnset(request.productName)) {
3671
+ query["ProductName"] = request.productName;
3672
+ }
3673
+
3674
+ if (!Util.isUnset(request.regionId)) {
3675
+ query["RegionId"] = request.regionId;
3676
+ }
3677
+
3678
+ if (!Util.isUnset(request.resourceGroupId)) {
3679
+ query["ResourceGroupId"] = request.resourceGroupId;
3680
+ }
3681
+
3172
3682
  let req = new $OpenApi.OpenApiRequest({
3173
- body: Util.toMap(request),
3683
+ query: OpenApiUtil.query(query),
3684
+ });
3685
+ let params = new $OpenApi.Params({
3686
+ action: "DescribePackIpList",
3687
+ version: "2018-07-20",
3688
+ protocol: "HTTPS",
3689
+ pathname: "/",
3690
+ method: "POST",
3691
+ authType: "AK",
3692
+ style: "RPC",
3693
+ reqBodyType: "formData",
3694
+ bodyType: "json",
3174
3695
  });
3175
- return $tea.cast<DescribePackIpListResponse>(await this.doRPCRequest("DescribePackIpList", "2018-07-20", "HTTPS", "POST", "AK", "json", req, runtime), new DescribePackIpListResponse({}));
3696
+ return $tea.cast<DescribePackIpListResponse>(await this.callApi(params, req, runtime), new DescribePackIpListResponse({}));
3176
3697
  }
3177
3698
 
3699
+ /**
3700
+ * The number of entries to return on each page.
3701
+ *
3702
+ * @param request DescribePackIpListRequest
3703
+ * @return DescribePackIpListResponse
3704
+ */
3178
3705
  async describePackIpList(request: DescribePackIpListRequest): Promise<DescribePackIpListResponse> {
3179
3706
  let runtime = new $Util.RuntimeOptions({ });
3180
3707
  return await this.describePackIpListWithOptions(request, runtime);
3181
3708
  }
3182
3709
 
3183
- async describePackPaidTrafficWithOptions(request: DescribePackPaidTrafficRequest, runtime: $Util.RuntimeOptions): Promise<DescribePackPaidTrafficResponse> {
3710
+ async describeRegionsWithOptions(request: DescribeRegionsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeRegionsResponse> {
3184
3711
  Util.validateModel(request);
3185
- let req = new $OpenApi.OpenApiRequest({
3186
- body: Util.toMap(request),
3187
- });
3188
- return $tea.cast<DescribePackPaidTrafficResponse>(await this.doRPCRequest("DescribePackPaidTraffic", "2018-07-20", "HTTPS", "POST", "AK", "json", req, runtime), new DescribePackPaidTrafficResponse({}));
3189
- }
3712
+ let query = { };
3713
+ if (!Util.isUnset(request.regionId)) {
3714
+ query["RegionId"] = request.regionId;
3715
+ }
3190
3716
 
3191
- async describePackPaidTraffic(request: DescribePackPaidTrafficRequest): Promise<DescribePackPaidTrafficResponse> {
3192
- let runtime = new $Util.RuntimeOptions({ });
3193
- return await this.describePackPaidTrafficWithOptions(request, runtime);
3194
- }
3717
+ if (!Util.isUnset(request.resourceGroupId)) {
3718
+ query["ResourceGroupId"] = request.resourceGroupId;
3719
+ }
3195
3720
 
3196
- async describeRegionsWithOptions(request: DescribeRegionsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeRegionsResponse> {
3197
- Util.validateModel(request);
3198
3721
  let req = new $OpenApi.OpenApiRequest({
3199
- body: Util.toMap(request),
3722
+ query: OpenApiUtil.query(query),
3200
3723
  });
3201
- return $tea.cast<DescribeRegionsResponse>(await this.doRPCRequest("DescribeRegions", "2018-07-20", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeRegionsResponse({}));
3724
+ let params = new $OpenApi.Params({
3725
+ action: "DescribeRegions",
3726
+ version: "2018-07-20",
3727
+ protocol: "HTTPS",
3728
+ pathname: "/",
3729
+ method: "POST",
3730
+ authType: "AK",
3731
+ style: "RPC",
3732
+ reqBodyType: "formData",
3733
+ bodyType: "json",
3734
+ });
3735
+ return $tea.cast<DescribeRegionsResponse>(await this.callApi(params, req, runtime), new DescribeRegionsResponse({}));
3202
3736
  }
3203
3737
 
3204
3738
  async describeRegions(request: DescribeRegionsRequest): Promise<DescribeRegionsResponse> {
@@ -3206,64 +3740,190 @@ export default class Client extends OpenApi {
3206
3740
  return await this.describeRegionsWithOptions(request, runtime);
3207
3741
  }
3208
3742
 
3209
- async describeResourcePackInstancesWithOptions(request: DescribeResourcePackInstancesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeResourcePackInstancesResponse> {
3743
+ /**
3744
+ * The bandwidth of attack traffic. Unit: bit/s.
3745
+ * > This parameter is returned only if attack traffic exists.
3746
+ *
3747
+ * @param request DescribeTrafficRequest
3748
+ * @param runtime runtime options for this request RuntimeOptions
3749
+ * @return DescribeTrafficResponse
3750
+ */
3751
+ async describeTrafficWithOptions(request: DescribeTrafficRequest, runtime: $Util.RuntimeOptions): Promise<DescribeTrafficResponse> {
3210
3752
  Util.validateModel(request);
3211
- let req = new $OpenApi.OpenApiRequest({
3212
- body: Util.toMap(request),
3213
- });
3214
- return $tea.cast<DescribeResourcePackInstancesResponse>(await this.doRPCRequest("DescribeResourcePackInstances", "2018-07-20", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeResourcePackInstancesResponse({}));
3215
- }
3753
+ let query = { };
3754
+ if (!Util.isUnset(request.endTime)) {
3755
+ query["EndTime"] = request.endTime;
3756
+ }
3216
3757
 
3217
- async describeResourcePackInstances(request: DescribeResourcePackInstancesRequest): Promise<DescribeResourcePackInstancesResponse> {
3218
- let runtime = new $Util.RuntimeOptions({ });
3219
- return await this.describeResourcePackInstancesWithOptions(request, runtime);
3220
- }
3758
+ if (!Util.isUnset(request.flowType)) {
3759
+ query["FlowType"] = request.flowType;
3760
+ }
3761
+
3762
+ if (!Util.isUnset(request.instanceId)) {
3763
+ query["InstanceId"] = request.instanceId;
3764
+ }
3765
+
3766
+ if (!Util.isUnset(request.interval)) {
3767
+ query["Interval"] = request.interval;
3768
+ }
3769
+
3770
+ if (!Util.isUnset(request.ip)) {
3771
+ query["Ip"] = request.ip;
3772
+ }
3773
+
3774
+ if (!Util.isUnset(request.ipnet)) {
3775
+ query["Ipnet"] = request.ipnet;
3776
+ }
3777
+
3778
+ if (!Util.isUnset(request.regionId)) {
3779
+ query["RegionId"] = request.regionId;
3780
+ }
3781
+
3782
+ if (!Util.isUnset(request.resourceGroupId)) {
3783
+ query["ResourceGroupId"] = request.resourceGroupId;
3784
+ }
3785
+
3786
+ if (!Util.isUnset(request.startTime)) {
3787
+ query["StartTime"] = request.startTime;
3788
+ }
3221
3789
 
3222
- async describeResourcePackStatisticsWithOptions(request: DescribeResourcePackStatisticsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeResourcePackStatisticsResponse> {
3223
- Util.validateModel(request);
3224
3790
  let req = new $OpenApi.OpenApiRequest({
3225
- body: Util.toMap(request),
3791
+ query: OpenApiUtil.query(query),
3226
3792
  });
3227
- return $tea.cast<DescribeResourcePackStatisticsResponse>(await this.doRPCRequest("DescribeResourcePackStatistics", "2018-07-20", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeResourcePackStatisticsResponse({}));
3793
+ let params = new $OpenApi.Params({
3794
+ action: "DescribeTraffic",
3795
+ version: "2018-07-20",
3796
+ protocol: "HTTPS",
3797
+ pathname: "/",
3798
+ method: "POST",
3799
+ authType: "AK",
3800
+ style: "RPC",
3801
+ reqBodyType: "formData",
3802
+ bodyType: "json",
3803
+ });
3804
+ return $tea.cast<DescribeTrafficResponse>(await this.callApi(params, req, runtime), new DescribeTrafficResponse({}));
3228
3805
  }
3229
3806
 
3230
- async describeResourcePackStatistics(request: DescribeResourcePackStatisticsRequest): Promise<DescribeResourcePackStatisticsResponse> {
3807
+ /**
3808
+ * The bandwidth of attack traffic. Unit: bit/s.
3809
+ * > This parameter is returned only if attack traffic exists.
3810
+ *
3811
+ * @param request DescribeTrafficRequest
3812
+ * @return DescribeTrafficResponse
3813
+ */
3814
+ async describeTraffic(request: DescribeTrafficRequest): Promise<DescribeTrafficResponse> {
3231
3815
  let runtime = new $Util.RuntimeOptions({ });
3232
- return await this.describeResourcePackStatisticsWithOptions(request, runtime);
3816
+ return await this.describeTrafficWithOptions(request, runtime);
3233
3817
  }
3234
3818
 
3235
- async describeResourcePackUsageWithOptions(request: DescribeResourcePackUsageRequest, runtime: $Util.RuntimeOptions): Promise<DescribeResourcePackUsageResponse> {
3819
+ async getSlsOpenStatusWithOptions(request: GetSlsOpenStatusRequest, runtime: $Util.RuntimeOptions): Promise<GetSlsOpenStatusResponse> {
3236
3820
  Util.validateModel(request);
3821
+ let query = { };
3822
+ if (!Util.isUnset(request.regionId)) {
3823
+ query["RegionId"] = request.regionId;
3824
+ }
3825
+
3826
+ if (!Util.isUnset(request.resourceGroupId)) {
3827
+ query["ResourceGroupId"] = request.resourceGroupId;
3828
+ }
3829
+
3237
3830
  let req = new $OpenApi.OpenApiRequest({
3238
- body: Util.toMap(request),
3831
+ query: OpenApiUtil.query(query),
3832
+ });
3833
+ let params = new $OpenApi.Params({
3834
+ action: "GetSlsOpenStatus",
3835
+ version: "2018-07-20",
3836
+ protocol: "HTTPS",
3837
+ pathname: "/",
3838
+ method: "POST",
3839
+ authType: "AK",
3840
+ style: "RPC",
3841
+ reqBodyType: "formData",
3842
+ bodyType: "json",
3239
3843
  });
3240
- return $tea.cast<DescribeResourcePackUsageResponse>(await this.doRPCRequest("DescribeResourcePackUsage", "2018-07-20", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeResourcePackUsageResponse({}));
3844
+ return $tea.cast<GetSlsOpenStatusResponse>(await this.callApi(params, req, runtime), new GetSlsOpenStatusResponse({}));
3241
3845
  }
3242
3846
 
3243
- async describeResourcePackUsage(request: DescribeResourcePackUsageRequest): Promise<DescribeResourcePackUsageResponse> {
3847
+ async getSlsOpenStatus(request: GetSlsOpenStatusRequest): Promise<GetSlsOpenStatusResponse> {
3244
3848
  let runtime = new $Util.RuntimeOptions({ });
3245
- return await this.describeResourcePackUsageWithOptions(request, runtime);
3849
+ return await this.getSlsOpenStatusWithOptions(request, runtime);
3246
3850
  }
3247
3851
 
3248
- async describeTrafficWithOptions(request: DescribeTrafficRequest, runtime: $Util.RuntimeOptions): Promise<DescribeTrafficResponse> {
3852
+ async listOpenedAccessLogInstancesWithOptions(request: ListOpenedAccessLogInstancesRequest, runtime: $Util.RuntimeOptions): Promise<ListOpenedAccessLogInstancesResponse> {
3249
3853
  Util.validateModel(request);
3854
+ let query = { };
3855
+ if (!Util.isUnset(request.pageNumber)) {
3856
+ query["PageNumber"] = request.pageNumber;
3857
+ }
3858
+
3859
+ if (!Util.isUnset(request.pageSize)) {
3860
+ query["PageSize"] = request.pageSize;
3861
+ }
3862
+
3863
+ if (!Util.isUnset(request.resourceGroupId)) {
3864
+ query["ResourceGroupId"] = request.resourceGroupId;
3865
+ }
3866
+
3250
3867
  let req = new $OpenApi.OpenApiRequest({
3251
- body: Util.toMap(request),
3868
+ query: OpenApiUtil.query(query),
3252
3869
  });
3253
- return $tea.cast<DescribeTrafficResponse>(await this.doRPCRequest("DescribeTraffic", "2018-07-20", "HTTPS", "POST", "AK", "json", req, runtime), new DescribeTrafficResponse({}));
3870
+ let params = new $OpenApi.Params({
3871
+ action: "ListOpenedAccessLogInstances",
3872
+ version: "2018-07-20",
3873
+ protocol: "HTTPS",
3874
+ pathname: "/",
3875
+ method: "POST",
3876
+ authType: "AK",
3877
+ style: "RPC",
3878
+ reqBodyType: "formData",
3879
+ bodyType: "json",
3880
+ });
3881
+ return $tea.cast<ListOpenedAccessLogInstancesResponse>(await this.callApi(params, req, runtime), new ListOpenedAccessLogInstancesResponse({}));
3254
3882
  }
3255
3883
 
3256
- async describeTraffic(request: DescribeTrafficRequest): Promise<DescribeTrafficResponse> {
3884
+ async listOpenedAccessLogInstances(request: ListOpenedAccessLogInstancesRequest): Promise<ListOpenedAccessLogInstancesResponse> {
3257
3885
  let runtime = new $Util.RuntimeOptions({ });
3258
- return await this.describeTrafficWithOptions(request, runtime);
3886
+ return await this.listOpenedAccessLogInstancesWithOptions(request, runtime);
3259
3887
  }
3260
3888
 
3261
3889
  async listTagKeysWithOptions(request: ListTagKeysRequest, runtime: $Util.RuntimeOptions): Promise<ListTagKeysResponse> {
3262
3890
  Util.validateModel(request);
3891
+ let query = { };
3892
+ if (!Util.isUnset(request.currentPage)) {
3893
+ query["CurrentPage"] = request.currentPage;
3894
+ }
3895
+
3896
+ if (!Util.isUnset(request.pageSize)) {
3897
+ query["PageSize"] = request.pageSize;
3898
+ }
3899
+
3900
+ if (!Util.isUnset(request.regionId)) {
3901
+ query["RegionId"] = request.regionId;
3902
+ }
3903
+
3904
+ if (!Util.isUnset(request.resourceGroupId)) {
3905
+ query["ResourceGroupId"] = request.resourceGroupId;
3906
+ }
3907
+
3908
+ if (!Util.isUnset(request.resourceType)) {
3909
+ query["ResourceType"] = request.resourceType;
3910
+ }
3911
+
3263
3912
  let req = new $OpenApi.OpenApiRequest({
3264
- body: Util.toMap(request),
3913
+ query: OpenApiUtil.query(query),
3914
+ });
3915
+ let params = new $OpenApi.Params({
3916
+ action: "ListTagKeys",
3917
+ version: "2018-07-20",
3918
+ protocol: "HTTPS",
3919
+ pathname: "/",
3920
+ method: "POST",
3921
+ authType: "AK",
3922
+ style: "RPC",
3923
+ reqBodyType: "formData",
3924
+ bodyType: "json",
3265
3925
  });
3266
- return $tea.cast<ListTagKeysResponse>(await this.doRPCRequest("ListTagKeys", "2018-07-20", "HTTPS", "POST", "AK", "json", req, runtime), new ListTagKeysResponse({}));
3926
+ return $tea.cast<ListTagKeysResponse>(await this.callApi(params, req, runtime), new ListTagKeysResponse({}));
3267
3927
  }
3268
3928
 
3269
3929
  async listTagKeys(request: ListTagKeysRequest): Promise<ListTagKeysResponse> {
@@ -3271,27 +3931,119 @@ export default class Client extends OpenApi {
3271
3931
  return await this.listTagKeysWithOptions(request, runtime);
3272
3932
  }
3273
3933
 
3934
+ /**
3935
+ * The ID of the region where the Anti-DDoS Origin instance resides.
3936
+ * > You can call the [DescribeRegions](~~118703~~) operation to query the most recent region list.
3937
+ *
3938
+ * @param request ListTagResourcesRequest
3939
+ * @param runtime runtime options for this request RuntimeOptions
3940
+ * @return ListTagResourcesResponse
3941
+ */
3274
3942
  async listTagResourcesWithOptions(request: ListTagResourcesRequest, runtime: $Util.RuntimeOptions): Promise<ListTagResourcesResponse> {
3275
3943
  Util.validateModel(request);
3944
+ let query = { };
3945
+ if (!Util.isUnset(request.nextToken)) {
3946
+ query["NextToken"] = request.nextToken;
3947
+ }
3948
+
3949
+ if (!Util.isUnset(request.regionId)) {
3950
+ query["RegionId"] = request.regionId;
3951
+ }
3952
+
3953
+ if (!Util.isUnset(request.resourceGroupId)) {
3954
+ query["ResourceGroupId"] = request.resourceGroupId;
3955
+ }
3956
+
3957
+ if (!Util.isUnset(request.resourceId)) {
3958
+ query["ResourceId"] = request.resourceId;
3959
+ }
3960
+
3961
+ if (!Util.isUnset(request.resourceType)) {
3962
+ query["ResourceType"] = request.resourceType;
3963
+ }
3964
+
3965
+ if (!Util.isUnset(request.tag)) {
3966
+ query["Tag"] = request.tag;
3967
+ }
3968
+
3276
3969
  let req = new $OpenApi.OpenApiRequest({
3277
- body: Util.toMap(request),
3970
+ query: OpenApiUtil.query(query),
3971
+ });
3972
+ let params = new $OpenApi.Params({
3973
+ action: "ListTagResources",
3974
+ version: "2018-07-20",
3975
+ protocol: "HTTPS",
3976
+ pathname: "/",
3977
+ method: "POST",
3978
+ authType: "AK",
3979
+ style: "RPC",
3980
+ reqBodyType: "formData",
3981
+ bodyType: "json",
3278
3982
  });
3279
- return $tea.cast<ListTagResourcesResponse>(await this.doRPCRequest("ListTagResources", "2018-07-20", "HTTPS", "POST", "AK", "json", req, runtime), new ListTagResourcesResponse({}));
3983
+ return $tea.cast<ListTagResourcesResponse>(await this.callApi(params, req, runtime), new ListTagResourcesResponse({}));
3280
3984
  }
3281
3985
 
3986
+ /**
3987
+ * The ID of the region where the Anti-DDoS Origin instance resides.
3988
+ * > You can call the [DescribeRegions](~~118703~~) operation to query the most recent region list.
3989
+ *
3990
+ * @param request ListTagResourcesRequest
3991
+ * @return ListTagResourcesResponse
3992
+ */
3282
3993
  async listTagResources(request: ListTagResourcesRequest): Promise<ListTagResourcesResponse> {
3283
3994
  let runtime = new $Util.RuntimeOptions({ });
3284
3995
  return await this.listTagResourcesWithOptions(request, runtime);
3285
3996
  }
3286
3997
 
3998
+ /**
3999
+ * The operation that you want to perform. Set the value to **ModifyRemark**.
4000
+ *
4001
+ * @param request ModifyRemarkRequest
4002
+ * @param runtime runtime options for this request RuntimeOptions
4003
+ * @return ModifyRemarkResponse
4004
+ */
3287
4005
  async modifyRemarkWithOptions(request: ModifyRemarkRequest, runtime: $Util.RuntimeOptions): Promise<ModifyRemarkResponse> {
3288
4006
  Util.validateModel(request);
4007
+ let query = { };
4008
+ if (!Util.isUnset(request.instanceId)) {
4009
+ query["InstanceId"] = request.instanceId;
4010
+ }
4011
+
4012
+ if (!Util.isUnset(request.regionId)) {
4013
+ query["RegionId"] = request.regionId;
4014
+ }
4015
+
4016
+ if (!Util.isUnset(request.remark)) {
4017
+ query["Remark"] = request.remark;
4018
+ }
4019
+
4020
+ if (!Util.isUnset(request.resourceGroupId)) {
4021
+ query["ResourceGroupId"] = request.resourceGroupId;
4022
+ }
4023
+
3289
4024
  let req = new $OpenApi.OpenApiRequest({
3290
- body: Util.toMap(request),
4025
+ query: OpenApiUtil.query(query),
4026
+ });
4027
+ let params = new $OpenApi.Params({
4028
+ action: "ModifyRemark",
4029
+ version: "2018-07-20",
4030
+ protocol: "HTTPS",
4031
+ pathname: "/",
4032
+ method: "POST",
4033
+ authType: "AK",
4034
+ style: "RPC",
4035
+ reqBodyType: "formData",
4036
+ bodyType: "json",
3291
4037
  });
3292
- return $tea.cast<ModifyRemarkResponse>(await this.doRPCRequest("ModifyRemark", "2018-07-20", "HTTPS", "POST", "AK", "json", req, runtime), new ModifyRemarkResponse({}));
4038
+ return $tea.cast<ModifyRemarkResponse>(await this.callApi(params, req, runtime), new ModifyRemarkResponse({}));
3293
4039
  }
3294
4040
 
4041
+ /**
4042
+ * The operation that you want to perform. Set the value to **ModifyRemark**.
4043
+ *
4044
+ * @param request ModifyRemarkRequest
4045
+ * @return ModifyRemarkResponse
4046
+ */
3295
4047
  async modifyRemark(request: ModifyRemarkRequest): Promise<ModifyRemarkResponse> {
3296
4048
  let runtime = new $Util.RuntimeOptions({ });
3297
4049
  return await this.modifyRemarkWithOptions(request, runtime);
@@ -3299,10 +4051,30 @@ export default class Client extends OpenApi {
3299
4051
 
3300
4052
  async querySchedruleOnDemandWithOptions(request: QuerySchedruleOnDemandRequest, runtime: $Util.RuntimeOptions): Promise<QuerySchedruleOnDemandResponse> {
3301
4053
  Util.validateModel(request);
4054
+ let query = { };
4055
+ if (!Util.isUnset(request.instanceId)) {
4056
+ query["InstanceId"] = request.instanceId;
4057
+ }
4058
+
4059
+ if (!Util.isUnset(request.regionId)) {
4060
+ query["RegionId"] = request.regionId;
4061
+ }
4062
+
3302
4063
  let req = new $OpenApi.OpenApiRequest({
3303
- body: Util.toMap(request),
4064
+ query: OpenApiUtil.query(query),
4065
+ });
4066
+ let params = new $OpenApi.Params({
4067
+ action: "QuerySchedruleOnDemand",
4068
+ version: "2018-07-20",
4069
+ protocol: "HTTPS",
4070
+ pathname: "/",
4071
+ method: "POST",
4072
+ authType: "AK",
4073
+ style: "RPC",
4074
+ reqBodyType: "formData",
4075
+ bodyType: "json",
3304
4076
  });
3305
- return $tea.cast<QuerySchedruleOnDemandResponse>(await this.doRPCRequest("QuerySchedruleOnDemand", "2018-07-20", "HTTPS", "POST", "AK", "json", req, runtime), new QuerySchedruleOnDemandResponse({}));
4077
+ return $tea.cast<QuerySchedruleOnDemandResponse>(await this.callApi(params, req, runtime), new QuerySchedruleOnDemandResponse({}));
3306
4078
  }
3307
4079
 
3308
4080
  async querySchedruleOnDemand(request: QuerySchedruleOnDemandRequest): Promise<QuerySchedruleOnDemandResponse> {
@@ -3312,10 +4084,34 @@ export default class Client extends OpenApi {
3312
4084
 
3313
4085
  async setInstanceModeOnDemandWithOptions(request: SetInstanceModeOnDemandRequest, runtime: $Util.RuntimeOptions): Promise<SetInstanceModeOnDemandResponse> {
3314
4086
  Util.validateModel(request);
4087
+ let query = { };
4088
+ if (!Util.isUnset(request.instanceIdList)) {
4089
+ query["InstanceIdList"] = request.instanceIdList;
4090
+ }
4091
+
4092
+ if (!Util.isUnset(request.mode)) {
4093
+ query["Mode"] = request.mode;
4094
+ }
4095
+
4096
+ if (!Util.isUnset(request.regionId)) {
4097
+ query["RegionId"] = request.regionId;
4098
+ }
4099
+
3315
4100
  let req = new $OpenApi.OpenApiRequest({
3316
- body: Util.toMap(request),
4101
+ query: OpenApiUtil.query(query),
3317
4102
  });
3318
- return $tea.cast<SetInstanceModeOnDemandResponse>(await this.doRPCRequest("SetInstanceModeOnDemand", "2018-07-20", "HTTPS", "POST", "AK", "json", req, runtime), new SetInstanceModeOnDemandResponse({}));
4103
+ let params = new $OpenApi.Params({
4104
+ action: "SetInstanceModeOnDemand",
4105
+ version: "2018-07-20",
4106
+ protocol: "HTTPS",
4107
+ pathname: "/",
4108
+ method: "POST",
4109
+ authType: "AK",
4110
+ style: "RPC",
4111
+ reqBodyType: "formData",
4112
+ bodyType: "json",
4113
+ });
4114
+ return $tea.cast<SetInstanceModeOnDemandResponse>(await this.callApi(params, req, runtime), new SetInstanceModeOnDemandResponse({}));
3319
4115
  }
3320
4116
 
3321
4117
  async setInstanceModeOnDemand(request: SetInstanceModeOnDemandRequest): Promise<SetInstanceModeOnDemandResponse> {
@@ -3323,14 +4119,61 @@ export default class Client extends OpenApi {
3323
4119
  return await this.setInstanceModeOnDemandWithOptions(request, runtime);
3324
4120
  }
3325
4121
 
4122
+ /**
4123
+ * The ID of Anti-DDoS Origin Instance N to which you want to add tags.
4124
+ * > You can call the [DescribeInstanceList](~~118698~~) operation to query the IDs of all Anti-DDoS Origin instances.
4125
+ *
4126
+ * @param request TagResourcesRequest
4127
+ * @param runtime runtime options for this request RuntimeOptions
4128
+ * @return TagResourcesResponse
4129
+ */
3326
4130
  async tagResourcesWithOptions(request: TagResourcesRequest, runtime: $Util.RuntimeOptions): Promise<TagResourcesResponse> {
3327
4131
  Util.validateModel(request);
4132
+ let query = { };
4133
+ if (!Util.isUnset(request.regionId)) {
4134
+ query["RegionId"] = request.regionId;
4135
+ }
4136
+
4137
+ if (!Util.isUnset(request.resourceGroupId)) {
4138
+ query["ResourceGroupId"] = request.resourceGroupId;
4139
+ }
4140
+
4141
+ if (!Util.isUnset(request.resourceId)) {
4142
+ query["ResourceId"] = request.resourceId;
4143
+ }
4144
+
4145
+ if (!Util.isUnset(request.resourceType)) {
4146
+ query["ResourceType"] = request.resourceType;
4147
+ }
4148
+
4149
+ if (!Util.isUnset(request.tag)) {
4150
+ query["Tag"] = request.tag;
4151
+ }
4152
+
3328
4153
  let req = new $OpenApi.OpenApiRequest({
3329
- body: Util.toMap(request),
4154
+ query: OpenApiUtil.query(query),
4155
+ });
4156
+ let params = new $OpenApi.Params({
4157
+ action: "TagResources",
4158
+ version: "2018-07-20",
4159
+ protocol: "HTTPS",
4160
+ pathname: "/",
4161
+ method: "POST",
4162
+ authType: "AK",
4163
+ style: "RPC",
4164
+ reqBodyType: "formData",
4165
+ bodyType: "json",
3330
4166
  });
3331
- return $tea.cast<TagResourcesResponse>(await this.doRPCRequest("TagResources", "2018-07-20", "HTTPS", "POST", "AK", "json", req, runtime), new TagResourcesResponse({}));
4167
+ return $tea.cast<TagResourcesResponse>(await this.callApi(params, req, runtime), new TagResourcesResponse({}));
3332
4168
  }
3333
4169
 
4170
+ /**
4171
+ * The ID of Anti-DDoS Origin Instance N to which you want to add tags.
4172
+ * > You can call the [DescribeInstanceList](~~118698~~) operation to query the IDs of all Anti-DDoS Origin instances.
4173
+ *
4174
+ * @param request TagResourcesRequest
4175
+ * @return TagResourcesResponse
4176
+ */
3334
4177
  async tagResources(request: TagResourcesRequest): Promise<TagResourcesResponse> {
3335
4178
  let runtime = new $Util.RuntimeOptions({ });
3336
4179
  return await this.tagResourcesWithOptions(request, runtime);
@@ -3338,10 +4181,46 @@ export default class Client extends OpenApi {
3338
4181
 
3339
4182
  async untagResourcesWithOptions(request: UntagResourcesRequest, runtime: $Util.RuntimeOptions): Promise<UntagResourcesResponse> {
3340
4183
  Util.validateModel(request);
4184
+ let query = { };
4185
+ if (!Util.isUnset(request.all)) {
4186
+ query["All"] = request.all;
4187
+ }
4188
+
4189
+ if (!Util.isUnset(request.regionId)) {
4190
+ query["RegionId"] = request.regionId;
4191
+ }
4192
+
4193
+ if (!Util.isUnset(request.resourceGroupId)) {
4194
+ query["ResourceGroupId"] = request.resourceGroupId;
4195
+ }
4196
+
4197
+ if (!Util.isUnset(request.resourceId)) {
4198
+ query["ResourceId"] = request.resourceId;
4199
+ }
4200
+
4201
+ if (!Util.isUnset(request.resourceType)) {
4202
+ query["ResourceType"] = request.resourceType;
4203
+ }
4204
+
4205
+ if (!Util.isUnset(request.tagKey)) {
4206
+ query["TagKey"] = request.tagKey;
4207
+ }
4208
+
3341
4209
  let req = new $OpenApi.OpenApiRequest({
3342
- body: Util.toMap(request),
4210
+ query: OpenApiUtil.query(query),
4211
+ });
4212
+ let params = new $OpenApi.Params({
4213
+ action: "UntagResources",
4214
+ version: "2018-07-20",
4215
+ protocol: "HTTPS",
4216
+ pathname: "/",
4217
+ method: "POST",
4218
+ authType: "AK",
4219
+ style: "RPC",
4220
+ reqBodyType: "formData",
4221
+ bodyType: "json",
3343
4222
  });
3344
- return $tea.cast<UntagResourcesResponse>(await this.doRPCRequest("UntagResources", "2018-07-20", "HTTPS", "POST", "AK", "json", req, runtime), new UntagResourcesResponse({}));
4223
+ return $tea.cast<UntagResourcesResponse>(await this.callApi(params, req, runtime), new UntagResourcesResponse({}));
3345
4224
  }
3346
4225
 
3347
4226
  async untagResources(request: UntagResourcesRequest): Promise<UntagResourcesResponse> {