tencentcloud-sdk-antiddos 1.0.200

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,4253 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ module TencentCloud
18
+ module Antiddos
19
+ module V20200309
20
+ # AssociateDDoSEipAddress请求参数结构体
21
+ class AssociateDDoSEipAddressRequest < TencentCloud::Common::AbstractModel
22
+ # @param InstanceId: 资源实例ID,实例ID形如:bgpip-0000011x。只能填写高防IP实例。
23
+ # @type InstanceId: String
24
+ # @param Eip: 资源实例ID对应的高防弹性公网IP。
25
+ # @type Eip: String
26
+ # @param CvmInstanceID: 要绑定的实例 ID。实例 ID 形如:ins-11112222。可通过登录控制台查询,也可通过 DescribeInstances 接口返回值中的InstanceId获取。
27
+ # @type CvmInstanceID: String
28
+ # @param CvmRegion: cvm实例所在地域,例如:ap-hongkong。
29
+ # @type CvmRegion: String
30
+
31
+ attr_accessor :InstanceId, :Eip, :CvmInstanceID, :CvmRegion
32
+
33
+ def initialize(instanceid=nil, eip=nil, cvminstanceid=nil, cvmregion=nil)
34
+ @InstanceId = instanceid
35
+ @Eip = eip
36
+ @CvmInstanceID = cvminstanceid
37
+ @CvmRegion = cvmregion
38
+ end
39
+
40
+ def deserialize(params)
41
+ @InstanceId = params['InstanceId']
42
+ @Eip = params['Eip']
43
+ @CvmInstanceID = params['CvmInstanceID']
44
+ @CvmRegion = params['CvmRegion']
45
+ end
46
+ end
47
+
48
+ # AssociateDDoSEipAddress返回参数结构体
49
+ class AssociateDDoSEipAddressResponse < TencentCloud::Common::AbstractModel
50
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
51
+ # @type RequestId: String
52
+
53
+ attr_accessor :RequestId
54
+
55
+ def initialize(requestid=nil)
56
+ @RequestId = requestid
57
+ end
58
+
59
+ def deserialize(params)
60
+ @RequestId = params['RequestId']
61
+ end
62
+ end
63
+
64
+ # AssociateDDoSEipLoadBalancer请求参数结构体
65
+ class AssociateDDoSEipLoadBalancerRequest < TencentCloud::Common::AbstractModel
66
+ # @param InstanceId: 资源实例ID,实例ID形如:bgpip-0000011x。只能填写高防IP实例。
67
+ # @type InstanceId: String
68
+ # @param Eip: 资源实例ID对应的高防弹性公网IP。
69
+ # @type Eip: String
70
+ # @param LoadBalancerID: 要绑定的负载均衡ID。负载均衡 ID 形如:lb-0000002i。可通过登录控制台查询,也可通过 DescribeLoadBalancers 接口返回值中的LoadBalancerId获取。
71
+ # @type LoadBalancerID: String
72
+ # @param LoadBalancerRegion: Clb所在地域,例如:ap-hongkong。
73
+ # @type LoadBalancerRegion: String
74
+
75
+ attr_accessor :InstanceId, :Eip, :LoadBalancerID, :LoadBalancerRegion
76
+
77
+ def initialize(instanceid=nil, eip=nil, loadbalancerid=nil, loadbalancerregion=nil)
78
+ @InstanceId = instanceid
79
+ @Eip = eip
80
+ @LoadBalancerID = loadbalancerid
81
+ @LoadBalancerRegion = loadbalancerregion
82
+ end
83
+
84
+ def deserialize(params)
85
+ @InstanceId = params['InstanceId']
86
+ @Eip = params['Eip']
87
+ @LoadBalancerID = params['LoadBalancerID']
88
+ @LoadBalancerRegion = params['LoadBalancerRegion']
89
+ end
90
+ end
91
+
92
+ # AssociateDDoSEipLoadBalancer返回参数结构体
93
+ class AssociateDDoSEipLoadBalancerResponse < TencentCloud::Common::AbstractModel
94
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
95
+ # @type RequestId: String
96
+
97
+ attr_accessor :RequestId
98
+
99
+ def initialize(requestid=nil)
100
+ @RequestId = requestid
101
+ end
102
+
103
+ def deserialize(params)
104
+ @RequestId = params['RequestId']
105
+ end
106
+ end
107
+
108
+ # 高防IP资产实例信息
109
+ class BGPIPInstance < TencentCloud::Common::AbstractModel
110
+ # @param InstanceDetail: 资产实例的详细信息
111
+ # @type InstanceDetail: :class:`Tencentcloud::Antiddos.v20200309.models.InstanceRelation`
112
+ # @param SpecificationLimit: 资产实例的规格信息
113
+ # @type SpecificationLimit: :class:`Tencentcloud::Antiddos.v20200309.models.BGPIPInstanceSpecification`
114
+ # @param Usage: 资产实例的使用统计信息
115
+ # @type Usage: :class:`Tencentcloud::Antiddos.v20200309.models.BGPIPInstanceUsages`
116
+ # @param Region: 资产实例所在的地域
117
+ # @type Region: :class:`Tencentcloud::Antiddos.v20200309.models.RegionInfo`
118
+ # @param Status: 资产实例的防护状态,状态码如下:
119
+ # "idle":正常状态(无攻击)
120
+ # "attacking":攻击中
121
+ # "blocking":封堵中
122
+ # "creating":创建中
123
+ # "deblocking":解封中
124
+ # "isolate":回收隔离中
125
+ # @type Status: String
126
+ # @param ExpiredTime: 购买时间
127
+ # @type ExpiredTime: String
128
+ # @param CreatedTime: 到期时间
129
+ # @type CreatedTime: String
130
+ # @param Name: 资产实例的名称
131
+ # @type Name: String
132
+ # @param PackInfo: 资产实例所属的套餐包信息,
133
+ # 注意:当资产实例不是套餐包的实例时,此字段为null
134
+ # 注意:此字段可能返回 null,表示取不到有效值。
135
+ # @type PackInfo: :class:`Tencentcloud::Antiddos.v20200309.models.PackInfo`
136
+ # @param StaticPackRelation: 资产实例所属的三网套餐包详情,
137
+ # 注意:当资产实例不是三网套餐包的实例时,此字段为null
138
+ # 注意:此字段可能返回 null,表示取不到有效值。
139
+ # @type StaticPackRelation: :class:`Tencentcloud::Antiddos.v20200309.models.StaticPackRelation`
140
+ # @param ZoneId: 区分高防IP境外线路
141
+ # 注意:此字段可能返回 null,表示取不到有效值。
142
+ # @type ZoneId: Integer
143
+ # @param Tgw: 区分集群
144
+ # 注意:此字段可能返回 null,表示取不到有效值。
145
+ # @type Tgw: Integer
146
+ # @param EipAddressStatus: 高防弹性公网IP状态,包含'CREATING'(创建中),'BINDING'(绑定中),'BIND'(已绑定),'UNBINDING'(解绑中),'UNBIND'(已解绑),'OFFLINING'(释放中),'BIND_ENI'(绑定悬空弹性网卡)。只对高防弹性公网IP实例有效。
147
+ # 注意:此字段可能返回 null,表示取不到有效值。
148
+ # @type EipAddressStatus: String
149
+ # @param EipFlag: 是否高防弹性公网IP实例,是为1,否为0。
150
+ # 注意:此字段可能返回 null,表示取不到有效值。
151
+ # @type EipFlag: Integer
152
+ # @param EipAddressPackRelation: 资产实例所属的高防弹性公网IP套餐包详情,
153
+ # 注意:当资产实例不是高防弹性公网IP套餐包的实例时,此字段为null
154
+ # 注意:此字段可能返回 null,表示取不到有效值。
155
+ # @type EipAddressPackRelation: :class:`Tencentcloud::Antiddos.v20200309.models.EipAddressPackRelation`
156
+ # @param EipAddressInfo: 高防弹性公网IP关联的实例信息。
157
+ # 注意:当资产实例不是高防弹性公网IP实例时,此字段为null
158
+ # 注意:此字段可能返回 null,表示取不到有效值。
159
+ # @type EipAddressInfo: :class:`Tencentcloud::Antiddos.v20200309.models.EipAddressRelation`
160
+ # @param Domain: 建议客户接入的域名,客户可使用域名接入。
161
+ # 注意:此字段可能返回 null,表示取不到有效值。
162
+ # @type Domain: String
163
+
164
+ attr_accessor :InstanceDetail, :SpecificationLimit, :Usage, :Region, :Status, :ExpiredTime, :CreatedTime, :Name, :PackInfo, :StaticPackRelation, :ZoneId, :Tgw, :EipAddressStatus, :EipFlag, :EipAddressPackRelation, :EipAddressInfo, :Domain
165
+
166
+ def initialize(instancedetail=nil, specificationlimit=nil, usage=nil, region=nil, status=nil, expiredtime=nil, createdtime=nil, name=nil, packinfo=nil, staticpackrelation=nil, zoneid=nil, tgw=nil, eipaddressstatus=nil, eipflag=nil, eipaddresspackrelation=nil, eipaddressinfo=nil, domain=nil)
167
+ @InstanceDetail = instancedetail
168
+ @SpecificationLimit = specificationlimit
169
+ @Usage = usage
170
+ @Region = region
171
+ @Status = status
172
+ @ExpiredTime = expiredtime
173
+ @CreatedTime = createdtime
174
+ @Name = name
175
+ @PackInfo = packinfo
176
+ @StaticPackRelation = staticpackrelation
177
+ @ZoneId = zoneid
178
+ @Tgw = tgw
179
+ @EipAddressStatus = eipaddressstatus
180
+ @EipFlag = eipflag
181
+ @EipAddressPackRelation = eipaddresspackrelation
182
+ @EipAddressInfo = eipaddressinfo
183
+ @Domain = domain
184
+ end
185
+
186
+ def deserialize(params)
187
+ unless params['InstanceDetail'].nil?
188
+ @InstanceDetail = InstanceRelation.new
189
+ @InstanceDetail.deserialize(params['InstanceDetail'])
190
+ end
191
+ unless params['SpecificationLimit'].nil?
192
+ @SpecificationLimit = BGPIPInstanceSpecification.new
193
+ @SpecificationLimit.deserialize(params['SpecificationLimit'])
194
+ end
195
+ unless params['Usage'].nil?
196
+ @Usage = BGPIPInstanceUsages.new
197
+ @Usage.deserialize(params['Usage'])
198
+ end
199
+ unless params['Region'].nil?
200
+ @Region = RegionInfo.new
201
+ @Region.deserialize(params['Region'])
202
+ end
203
+ @Status = params['Status']
204
+ @ExpiredTime = params['ExpiredTime']
205
+ @CreatedTime = params['CreatedTime']
206
+ @Name = params['Name']
207
+ unless params['PackInfo'].nil?
208
+ @PackInfo = PackInfo.new
209
+ @PackInfo.deserialize(params['PackInfo'])
210
+ end
211
+ unless params['StaticPackRelation'].nil?
212
+ @StaticPackRelation = StaticPackRelation.new
213
+ @StaticPackRelation.deserialize(params['StaticPackRelation'])
214
+ end
215
+ @ZoneId = params['ZoneId']
216
+ @Tgw = params['Tgw']
217
+ @EipAddressStatus = params['EipAddressStatus']
218
+ @EipFlag = params['EipFlag']
219
+ unless params['EipAddressPackRelation'].nil?
220
+ @EipAddressPackRelation = EipAddressPackRelation.new
221
+ @EipAddressPackRelation.deserialize(params['EipAddressPackRelation'])
222
+ end
223
+ unless params['EipAddressInfo'].nil?
224
+ @EipAddressInfo = EipAddressRelation.new
225
+ @EipAddressInfo.deserialize(params['EipAddressInfo'])
226
+ end
227
+ @Domain = params['Domain']
228
+ end
229
+ end
230
+
231
+ # 高防IP资产实例的规格信息
232
+ class BGPIPInstanceSpecification < TencentCloud::Common::AbstractModel
233
+ # @param ProtectBandwidth: 保底防护峰值,单位Mbps
234
+ # @type ProtectBandwidth: Integer
235
+ # @param ProtectCCQPS: CC防护峰值,单位qps
236
+ # @type ProtectCCQPS: Integer
237
+ # @param NormalBandwidth: 正常业务带宽,单位Mbps
238
+ # @type NormalBandwidth: Integer
239
+ # @param ForwardRulesLimit: 转发规则数,单位条
240
+ # @type ForwardRulesLimit: Integer
241
+ # @param AutoRenewFlag: 自动续费状态,取值[
242
+ # 0:没有开启自动续费
243
+ # 1:开启了自动续费
244
+ # ]
245
+ # @type AutoRenewFlag: Integer
246
+ # @param Line: 高防IP线路,取值为[
247
+ # 1:BGP线路
248
+ # 2:电信
249
+ # 3:联通
250
+ # 4:移动
251
+ # 99:第三方合作线路
252
+ # ]
253
+ # @type Line: Integer
254
+ # @param ElasticBandwidth: 弹性防护峰值,单位Mbps
255
+ # @type ElasticBandwidth: Integer
256
+
257
+ attr_accessor :ProtectBandwidth, :ProtectCCQPS, :NormalBandwidth, :ForwardRulesLimit, :AutoRenewFlag, :Line, :ElasticBandwidth
258
+
259
+ def initialize(protectbandwidth=nil, protectccqps=nil, normalbandwidth=nil, forwardruleslimit=nil, autorenewflag=nil, line=nil, elasticbandwidth=nil)
260
+ @ProtectBandwidth = protectbandwidth
261
+ @ProtectCCQPS = protectccqps
262
+ @NormalBandwidth = normalbandwidth
263
+ @ForwardRulesLimit = forwardruleslimit
264
+ @AutoRenewFlag = autorenewflag
265
+ @Line = line
266
+ @ElasticBandwidth = elasticbandwidth
267
+ end
268
+
269
+ def deserialize(params)
270
+ @ProtectBandwidth = params['ProtectBandwidth']
271
+ @ProtectCCQPS = params['ProtectCCQPS']
272
+ @NormalBandwidth = params['NormalBandwidth']
273
+ @ForwardRulesLimit = params['ForwardRulesLimit']
274
+ @AutoRenewFlag = params['AutoRenewFlag']
275
+ @Line = params['Line']
276
+ @ElasticBandwidth = params['ElasticBandwidth']
277
+ end
278
+ end
279
+
280
+ # 高防IP资产实例的使用信息统计
281
+ class BGPIPInstanceUsages < TencentCloud::Common::AbstractModel
282
+ # @param PortRulesUsage: 已使用的端口规则数,单位条
283
+ # @type PortRulesUsage: Integer
284
+ # @param DomainRulesUsage: 已使用的域名规则数,单位条
285
+ # @type DomainRulesUsage: Integer
286
+ # @param Last7DayAttackCount: 最近7天的攻击次数,单位次
287
+ # @type Last7DayAttackCount: Integer
288
+
289
+ attr_accessor :PortRulesUsage, :DomainRulesUsage, :Last7DayAttackCount
290
+
291
+ def initialize(portrulesusage=nil, domainrulesusage=nil, last7dayattackcount=nil)
292
+ @PortRulesUsage = portrulesusage
293
+ @DomainRulesUsage = domainrulesusage
294
+ @Last7DayAttackCount = last7dayattackcount
295
+ end
296
+
297
+ def deserialize(params)
298
+ @PortRulesUsage = params['PortRulesUsage']
299
+ @DomainRulesUsage = params['DomainRulesUsage']
300
+ @Last7DayAttackCount = params['Last7DayAttackCount']
301
+ end
302
+ end
303
+
304
+ # 高防包资产实例信息
305
+ class BGPInstance < TencentCloud::Common::AbstractModel
306
+ # @param InstanceDetail: 资产实例的详细信息
307
+ # @type InstanceDetail: :class:`Tencentcloud::Antiddos.v20200309.models.InstanceRelation`
308
+ # @param SpecificationLimit: 资产实例的规格信息
309
+ # @type SpecificationLimit: :class:`Tencentcloud::Antiddos.v20200309.models.BGPInstanceSpecification`
310
+ # @param Usage: 资产实例的使用统计信息
311
+ # @type Usage: :class:`Tencentcloud::Antiddos.v20200309.models.BGPInstanceUsages`
312
+ # @param Region: 资产实例所在的地域
313
+ # @type Region: :class:`Tencentcloud::Antiddos.v20200309.models.RegionInfo`
314
+ # @param Status: 资产实例的防护状态,状态码如下:
315
+ # "idle":正常状态(无攻击)
316
+ # "attacking":攻击中
317
+ # "blocking":封堵中
318
+ # "creating":创建中
319
+ # "deblocking":解封中
320
+ # "isolate":回收隔离中
321
+ # @type Status: String
322
+ # @param CreatedTime: 购买时间
323
+ # @type CreatedTime: String
324
+ # @param ExpiredTime: 到期时间
325
+ # @type ExpiredTime: String
326
+ # @param Name: 资产实例的名称
327
+ # @type Name: String
328
+ # @param PackInfo: 资产实例所属的套餐包信息,
329
+ # 注意:当资产实例不是套餐包的实例时,此字段为null
330
+ # 注意:此字段可能返回 null,表示取不到有效值。
331
+ # @type PackInfo: :class:`Tencentcloud::Antiddos.v20200309.models.PackInfo`
332
+ # @param EipProductInfos: 高防包绑定的EIP属于的云产品信息
333
+ # @type EipProductInfos: Array
334
+ # @param BoundStatus: 高防包绑定状态,取值[
335
+ # "idle":绑定已完成
336
+ # "bounding":正在绑定中
337
+ # "failed":绑定失败
338
+ # ]
339
+ # @type BoundStatus: String
340
+ # @param DDoSLevel: 四层防护严格级别
341
+ # @type DDoSLevel: String
342
+ # @param CCEnable: CC防护开关
343
+ # @type CCEnable: Integer
344
+
345
+ attr_accessor :InstanceDetail, :SpecificationLimit, :Usage, :Region, :Status, :CreatedTime, :ExpiredTime, :Name, :PackInfo, :EipProductInfos, :BoundStatus, :DDoSLevel, :CCEnable
346
+
347
+ def initialize(instancedetail=nil, specificationlimit=nil, usage=nil, region=nil, status=nil, createdtime=nil, expiredtime=nil, name=nil, packinfo=nil, eipproductinfos=nil, boundstatus=nil, ddoslevel=nil, ccenable=nil)
348
+ @InstanceDetail = instancedetail
349
+ @SpecificationLimit = specificationlimit
350
+ @Usage = usage
351
+ @Region = region
352
+ @Status = status
353
+ @CreatedTime = createdtime
354
+ @ExpiredTime = expiredtime
355
+ @Name = name
356
+ @PackInfo = packinfo
357
+ @EipProductInfos = eipproductinfos
358
+ @BoundStatus = boundstatus
359
+ @DDoSLevel = ddoslevel
360
+ @CCEnable = ccenable
361
+ end
362
+
363
+ def deserialize(params)
364
+ unless params['InstanceDetail'].nil?
365
+ @InstanceDetail = InstanceRelation.new
366
+ @InstanceDetail.deserialize(params['InstanceDetail'])
367
+ end
368
+ unless params['SpecificationLimit'].nil?
369
+ @SpecificationLimit = BGPInstanceSpecification.new
370
+ @SpecificationLimit.deserialize(params['SpecificationLimit'])
371
+ end
372
+ unless params['Usage'].nil?
373
+ @Usage = BGPInstanceUsages.new
374
+ @Usage.deserialize(params['Usage'])
375
+ end
376
+ unless params['Region'].nil?
377
+ @Region = RegionInfo.new
378
+ @Region.deserialize(params['Region'])
379
+ end
380
+ @Status = params['Status']
381
+ @CreatedTime = params['CreatedTime']
382
+ @ExpiredTime = params['ExpiredTime']
383
+ @Name = params['Name']
384
+ unless params['PackInfo'].nil?
385
+ @PackInfo = PackInfo.new
386
+ @PackInfo.deserialize(params['PackInfo'])
387
+ end
388
+ unless params['EipProductInfos'].nil?
389
+ @EipProductInfos = []
390
+ params['EipProductInfos'].each do |i|
391
+ eipproductinfo_tmp = EipProductInfo.new
392
+ eipproductinfo_tmp.deserialize(i)
393
+ @EipProductInfos << eipproductinfo_tmp
394
+ end
395
+ end
396
+ @BoundStatus = params['BoundStatus']
397
+ @DDoSLevel = params['DDoSLevel']
398
+ @CCEnable = params['CCEnable']
399
+ end
400
+ end
401
+
402
+ # 高防包资产实例的规格信息
403
+ class BGPInstanceSpecification < TencentCloud::Common::AbstractModel
404
+ # @param ProtectBandwidth: 保底防护峰值,单位Gbps
405
+ # @type ProtectBandwidth: Integer
406
+ # @param ProtectCountLimit: 防护次数,单位次
407
+ # @type ProtectCountLimit: Integer
408
+ # @param ProtectIPNumberLimit: 防护IP数,单位个
409
+ # @type ProtectIPNumberLimit: Integer
410
+ # @param AutoRenewFlag: 自动续费状态,取值[
411
+ # 0:没有开启自动续费
412
+ # 1:开启了自动续费
413
+ # ]
414
+ # @type AutoRenewFlag: Integer
415
+
416
+ attr_accessor :ProtectBandwidth, :ProtectCountLimit, :ProtectIPNumberLimit, :AutoRenewFlag
417
+
418
+ def initialize(protectbandwidth=nil, protectcountlimit=nil, protectipnumberlimit=nil, autorenewflag=nil)
419
+ @ProtectBandwidth = protectbandwidth
420
+ @ProtectCountLimit = protectcountlimit
421
+ @ProtectIPNumberLimit = protectipnumberlimit
422
+ @AutoRenewFlag = autorenewflag
423
+ end
424
+
425
+ def deserialize(params)
426
+ @ProtectBandwidth = params['ProtectBandwidth']
427
+ @ProtectCountLimit = params['ProtectCountLimit']
428
+ @ProtectIPNumberLimit = params['ProtectIPNumberLimit']
429
+ @AutoRenewFlag = params['AutoRenewFlag']
430
+ end
431
+ end
432
+
433
+ # 高防包资产实例的使用信息统计
434
+ class BGPInstanceUsages < TencentCloud::Common::AbstractModel
435
+ # @param ProtectCountUsage: 已使用的防护次数,单位次
436
+ # @type ProtectCountUsage: Integer
437
+ # @param ProtectIPNumberUsage: 已防护的IP数,单位个
438
+ # @type ProtectIPNumberUsage: Integer
439
+ # @param Last7DayAttackCount: 最近7天的攻击次数,单位次
440
+ # @type Last7DayAttackCount: Integer
441
+
442
+ attr_accessor :ProtectCountUsage, :ProtectIPNumberUsage, :Last7DayAttackCount
443
+
444
+ def initialize(protectcountusage=nil, protectipnumberusage=nil, last7dayattackcount=nil)
445
+ @ProtectCountUsage = protectcountusage
446
+ @ProtectIPNumberUsage = protectipnumberusage
447
+ @Last7DayAttackCount = last7dayattackcount
448
+ end
449
+
450
+ def deserialize(params)
451
+ @ProtectCountUsage = params['ProtectCountUsage']
452
+ @ProtectIPNumberUsage = params['ProtectIPNumberUsage']
453
+ @Last7DayAttackCount = params['Last7DayAttackCount']
454
+ end
455
+ end
456
+
457
+ # 黑白名单IP
458
+ class BlackWhiteIpRelation < TencentCloud::Common::AbstractModel
459
+ # @param Ip: IP地址
460
+ # @type Ip: String
461
+ # @param Type: IP类型,取值[black(黑IP),white(白IP)]
462
+ # @type Type: String
463
+ # @param InstanceDetailList: 黑白IP所属的实例
464
+ # @type InstanceDetailList: Array
465
+ # @param Mask: ip掩码,0表示32位完整ip
466
+ # @type Mask: Integer
467
+
468
+ attr_accessor :Ip, :Type, :InstanceDetailList, :Mask
469
+
470
+ def initialize(ip=nil, type=nil, instancedetaillist=nil, mask=nil)
471
+ @Ip = ip
472
+ @Type = type
473
+ @InstanceDetailList = instancedetaillist
474
+ @Mask = mask
475
+ end
476
+
477
+ def deserialize(params)
478
+ @Ip = params['Ip']
479
+ @Type = params['Type']
480
+ unless params['InstanceDetailList'].nil?
481
+ @InstanceDetailList = []
482
+ params['InstanceDetailList'].each do |i|
483
+ instancerelation_tmp = InstanceRelation.new
484
+ instancerelation_tmp.deserialize(i)
485
+ @InstanceDetailList << instancerelation_tmp
486
+ end
487
+ end
488
+ @Mask = params['Mask']
489
+ end
490
+ end
491
+
492
+ # 高防包绑定IP对象
493
+ class BoundIpInfo < TencentCloud::Common::AbstractModel
494
+ # @param Ip: IP地址
495
+ # @type Ip: String
496
+ # @param BizType: 绑定的产品分类,取值[public(CVM、CLB产品),bm(黑石产品),eni(弹性网卡),vpngw(VPN网关), natgw(NAT网关),waf(Web应用安全产品),fpc(金融产品),gaap(GAAP产品), other(托管IP)]
497
+ # @type BizType: String
498
+ # @param InstanceId: IP所属的资源实例ID,当绑定新IP时必须填写此字段;例如是弹性网卡的IP,则InstanceId填写弹性网卡的ID(eni-*); 如果绑定的是托管IP没有对应的资源实例ID,请填写"none";
499
+ # @type InstanceId: String
500
+ # @param DeviceType: 产品分类下的子类型,取值[cvm(CVM),lb(负载均衡器),eni(弹性网卡),vpngw(VPN),natgw(NAT),waf(WAF),fpc(金融),gaap(GAAP),other(托管IP),eip(黑石弹性IP)]
501
+ # @type DeviceType: String
502
+ # @param IspCode: 运营商,0:电信;1:联通;2:移动;5:BGP
503
+ # @type IspCode: Integer
504
+
505
+ attr_accessor :Ip, :BizType, :InstanceId, :DeviceType, :IspCode
506
+
507
+ def initialize(ip=nil, biztype=nil, instanceid=nil, devicetype=nil, ispcode=nil)
508
+ @Ip = ip
509
+ @BizType = biztype
510
+ @InstanceId = instanceid
511
+ @DeviceType = devicetype
512
+ @IspCode = ispcode
513
+ end
514
+
515
+ def deserialize(params)
516
+ @Ip = params['Ip']
517
+ @BizType = params['BizType']
518
+ @InstanceId = params['InstanceId']
519
+ @DeviceType = params['DeviceType']
520
+ @IspCode = params['IspCode']
521
+ end
522
+ end
523
+
524
+ # 使用证书的规则集合
525
+ class CertIdInsL7Rules < TencentCloud::Common::AbstractModel
526
+ # @param L7Rules: 使用证书的规则列表
527
+ # @type L7Rules: Array
528
+ # @param CertId: 证书ID
529
+ # @type CertId: String
530
+
531
+ attr_accessor :L7Rules, :CertId
532
+
533
+ def initialize(l7rules=nil, certid=nil)
534
+ @L7Rules = l7rules
535
+ @CertId = certid
536
+ end
537
+
538
+ def deserialize(params)
539
+ unless params['L7Rules'].nil?
540
+ @L7Rules = []
541
+ params['L7Rules'].each do |i|
542
+ insl7rules_tmp = InsL7Rules.new
543
+ insl7rules_tmp.deserialize(i)
544
+ @L7Rules << insl7rules_tmp
545
+ end
546
+ end
547
+ @CertId = params['CertId']
548
+ end
549
+ end
550
+
551
+ # CreateBlackWhiteIpList请求参数结构体
552
+ class CreateBlackWhiteIpListRequest < TencentCloud::Common::AbstractModel
553
+ # @param InstanceId: 资源实例ID
554
+ # @type InstanceId: String
555
+ # @param IpList: IP列表
556
+ # @type IpList: Array
557
+ # @param Type: IP类型,取值[black(黑名单IP), white(白名单IP)]
558
+ # @type Type: String
559
+
560
+ attr_accessor :InstanceId, :IpList, :Type
561
+
562
+ def initialize(instanceid=nil, iplist=nil, type=nil)
563
+ @InstanceId = instanceid
564
+ @IpList = iplist
565
+ @Type = type
566
+ end
567
+
568
+ def deserialize(params)
569
+ @InstanceId = params['InstanceId']
570
+ @IpList = params['IpList']
571
+ @Type = params['Type']
572
+ end
573
+ end
574
+
575
+ # CreateBlackWhiteIpList返回参数结构体
576
+ class CreateBlackWhiteIpListResponse < TencentCloud::Common::AbstractModel
577
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
578
+ # @type RequestId: String
579
+
580
+ attr_accessor :RequestId
581
+
582
+ def initialize(requestid=nil)
583
+ @RequestId = requestid
584
+ end
585
+
586
+ def deserialize(params)
587
+ @RequestId = params['RequestId']
588
+ end
589
+ end
590
+
591
+ # CreateBoundIP请求参数结构体
592
+ class CreateBoundIPRequest < TencentCloud::Common::AbstractModel
593
+ # @param Business: 大禹子产品代号(bgp表示独享包;bgp-multip表示共享包)
594
+ # @type Business: String
595
+ # @param Id: 资源实例ID
596
+ # @type Id: String
597
+ # @param BoundDevList: 绑定到资源实例的IP数组,当资源实例为高防包(独享包)时,数组只允许填1个IP;当没有要绑定的IP时可以为空数组;但是BoundDevList和UnBoundDevList至少有一个不为空;
598
+ # @type BoundDevList: Array
599
+ # @param UnBoundDevList: 与资源实例解绑的IP数组,当资源实例为高防包(独享包)时,数组只允许填1个IP;当没有要解绑的IP时可以为空数组;但是BoundDevList和UnBoundDevList至少有一个不为空;
600
+ # @type UnBoundDevList: Array
601
+ # @param CopyPolicy: 已弃用,不填
602
+ # @type CopyPolicy: String
603
+
604
+ attr_accessor :Business, :Id, :BoundDevList, :UnBoundDevList, :CopyPolicy
605
+
606
+ def initialize(business=nil, id=nil, bounddevlist=nil, unbounddevlist=nil, copypolicy=nil)
607
+ @Business = business
608
+ @Id = id
609
+ @BoundDevList = bounddevlist
610
+ @UnBoundDevList = unbounddevlist
611
+ @CopyPolicy = copypolicy
612
+ end
613
+
614
+ def deserialize(params)
615
+ @Business = params['Business']
616
+ @Id = params['Id']
617
+ unless params['BoundDevList'].nil?
618
+ @BoundDevList = []
619
+ params['BoundDevList'].each do |i|
620
+ boundipinfo_tmp = BoundIpInfo.new
621
+ boundipinfo_tmp.deserialize(i)
622
+ @BoundDevList << boundipinfo_tmp
623
+ end
624
+ end
625
+ unless params['UnBoundDevList'].nil?
626
+ @UnBoundDevList = []
627
+ params['UnBoundDevList'].each do |i|
628
+ boundipinfo_tmp = BoundIpInfo.new
629
+ boundipinfo_tmp.deserialize(i)
630
+ @UnBoundDevList << boundipinfo_tmp
631
+ end
632
+ end
633
+ @CopyPolicy = params['CopyPolicy']
634
+ end
635
+ end
636
+
637
+ # CreateBoundIP返回参数结构体
638
+ class CreateBoundIPResponse < TencentCloud::Common::AbstractModel
639
+ # @param Success: 成功码
640
+ # @type Success: :class:`Tencentcloud::Antiddos.v20200309.models.SuccessCode`
641
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
642
+ # @type RequestId: String
643
+
644
+ attr_accessor :Success, :RequestId
645
+
646
+ def initialize(success=nil, requestid=nil)
647
+ @Success = success
648
+ @RequestId = requestid
649
+ end
650
+
651
+ def deserialize(params)
652
+ unless params['Success'].nil?
653
+ @Success = SuccessCode.new
654
+ @Success.deserialize(params['Success'])
655
+ end
656
+ @RequestId = params['RequestId']
657
+ end
658
+ end
659
+
660
+ # CreateDDoSAI请求参数结构体
661
+ class CreateDDoSAIRequest < TencentCloud::Common::AbstractModel
662
+ # @param InstanceIdList: 资源实例ID列表
663
+ # @type InstanceIdList: Array
664
+ # @param DDoSAI: AI防护开关,取值[
665
+ # on(开启)
666
+ # off(关闭)
667
+ # ]
668
+ # @type DDoSAI: String
669
+
670
+ attr_accessor :InstanceIdList, :DDoSAI
671
+
672
+ def initialize(instanceidlist=nil, ddosai=nil)
673
+ @InstanceIdList = instanceidlist
674
+ @DDoSAI = ddosai
675
+ end
676
+
677
+ def deserialize(params)
678
+ @InstanceIdList = params['InstanceIdList']
679
+ @DDoSAI = params['DDoSAI']
680
+ end
681
+ end
682
+
683
+ # CreateDDoSAI返回参数结构体
684
+ class CreateDDoSAIResponse < TencentCloud::Common::AbstractModel
685
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
686
+ # @type RequestId: String
687
+
688
+ attr_accessor :RequestId
689
+
690
+ def initialize(requestid=nil)
691
+ @RequestId = requestid
692
+ end
693
+
694
+ def deserialize(params)
695
+ @RequestId = params['RequestId']
696
+ end
697
+ end
698
+
699
+ # CreateDDoSGeoIPBlockConfig请求参数结构体
700
+ class CreateDDoSGeoIPBlockConfigRequest < TencentCloud::Common::AbstractModel
701
+ # @param InstanceId: 资源实例ID
702
+ # @type InstanceId: String
703
+ # @param DDoSGeoIPBlockConfig: DDoS区域封禁配置,填写参数时配置ID请为空
704
+ # @type DDoSGeoIPBlockConfig: :class:`Tencentcloud::Antiddos.v20200309.models.DDoSGeoIPBlockConfig`
705
+
706
+ attr_accessor :InstanceId, :DDoSGeoIPBlockConfig
707
+
708
+ def initialize(instanceid=nil, ddosgeoipblockconfig=nil)
709
+ @InstanceId = instanceid
710
+ @DDoSGeoIPBlockConfig = ddosgeoipblockconfig
711
+ end
712
+
713
+ def deserialize(params)
714
+ @InstanceId = params['InstanceId']
715
+ unless params['DDoSGeoIPBlockConfig'].nil?
716
+ @DDoSGeoIPBlockConfig = DDoSGeoIPBlockConfig.new
717
+ @DDoSGeoIPBlockConfig.deserialize(params['DDoSGeoIPBlockConfig'])
718
+ end
719
+ end
720
+ end
721
+
722
+ # CreateDDoSGeoIPBlockConfig返回参数结构体
723
+ class CreateDDoSGeoIPBlockConfigResponse < TencentCloud::Common::AbstractModel
724
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
725
+ # @type RequestId: String
726
+
727
+ attr_accessor :RequestId
728
+
729
+ def initialize(requestid=nil)
730
+ @RequestId = requestid
731
+ end
732
+
733
+ def deserialize(params)
734
+ @RequestId = params['RequestId']
735
+ end
736
+ end
737
+
738
+ # CreateDDoSSpeedLimitConfig请求参数结构体
739
+ class CreateDDoSSpeedLimitConfigRequest < TencentCloud::Common::AbstractModel
740
+ # @param InstanceId: 资源实例ID
741
+ # @type InstanceId: String
742
+ # @param DDoSSpeedLimitConfig: 访问限速配置,填写参数时配置ID请为空
743
+ # @type DDoSSpeedLimitConfig: :class:`Tencentcloud::Antiddos.v20200309.models.DDoSSpeedLimitConfig`
744
+
745
+ attr_accessor :InstanceId, :DDoSSpeedLimitConfig
746
+
747
+ def initialize(instanceid=nil, ddosspeedlimitconfig=nil)
748
+ @InstanceId = instanceid
749
+ @DDoSSpeedLimitConfig = ddosspeedlimitconfig
750
+ end
751
+
752
+ def deserialize(params)
753
+ @InstanceId = params['InstanceId']
754
+ unless params['DDoSSpeedLimitConfig'].nil?
755
+ @DDoSSpeedLimitConfig = DDoSSpeedLimitConfig.new
756
+ @DDoSSpeedLimitConfig.deserialize(params['DDoSSpeedLimitConfig'])
757
+ end
758
+ end
759
+ end
760
+
761
+ # CreateDDoSSpeedLimitConfig返回参数结构体
762
+ class CreateDDoSSpeedLimitConfigResponse < TencentCloud::Common::AbstractModel
763
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
764
+ # @type RequestId: String
765
+
766
+ attr_accessor :RequestId
767
+
768
+ def initialize(requestid=nil)
769
+ @RequestId = requestid
770
+ end
771
+
772
+ def deserialize(params)
773
+ @RequestId = params['RequestId']
774
+ end
775
+ end
776
+
777
+ # CreateDefaultAlarmThreshold请求参数结构体
778
+ class CreateDefaultAlarmThresholdRequest < TencentCloud::Common::AbstractModel
779
+ # @param DefaultAlarmConfig: 默认告警阈值配置
780
+ # @type DefaultAlarmConfig: :class:`Tencentcloud::Antiddos.v20200309.models.DefaultAlarmThreshold`
781
+ # @param InstanceType: 产品类型,取值[
782
+ # bgp(表示高防包产品)
783
+ # bgpip(表示高防IP产品)
784
+ # ]
785
+ # @type InstanceType: String
786
+
787
+ attr_accessor :DefaultAlarmConfig, :InstanceType
788
+
789
+ def initialize(defaultalarmconfig=nil, instancetype=nil)
790
+ @DefaultAlarmConfig = defaultalarmconfig
791
+ @InstanceType = instancetype
792
+ end
793
+
794
+ def deserialize(params)
795
+ unless params['DefaultAlarmConfig'].nil?
796
+ @DefaultAlarmConfig = DefaultAlarmThreshold.new
797
+ @DefaultAlarmConfig.deserialize(params['DefaultAlarmConfig'])
798
+ end
799
+ @InstanceType = params['InstanceType']
800
+ end
801
+ end
802
+
803
+ # CreateDefaultAlarmThreshold返回参数结构体
804
+ class CreateDefaultAlarmThresholdResponse < TencentCloud::Common::AbstractModel
805
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
806
+ # @type RequestId: String
807
+
808
+ attr_accessor :RequestId
809
+
810
+ def initialize(requestid=nil)
811
+ @RequestId = requestid
812
+ end
813
+
814
+ def deserialize(params)
815
+ @RequestId = params['RequestId']
816
+ end
817
+ end
818
+
819
+ # CreateIPAlarmThresholdConfig请求参数结构体
820
+ class CreateIPAlarmThresholdConfigRequest < TencentCloud::Common::AbstractModel
821
+ # @param IpAlarmThresholdConfigList: IP告警阈值配置列表
822
+ # @type IpAlarmThresholdConfigList: Array
823
+
824
+ attr_accessor :IpAlarmThresholdConfigList
825
+
826
+ def initialize(ipalarmthresholdconfiglist=nil)
827
+ @IpAlarmThresholdConfigList = ipalarmthresholdconfiglist
828
+ end
829
+
830
+ def deserialize(params)
831
+ unless params['IpAlarmThresholdConfigList'].nil?
832
+ @IpAlarmThresholdConfigList = []
833
+ params['IpAlarmThresholdConfigList'].each do |i|
834
+ ipalarmthresholdrelation_tmp = IPAlarmThresholdRelation.new
835
+ ipalarmthresholdrelation_tmp.deserialize(i)
836
+ @IpAlarmThresholdConfigList << ipalarmthresholdrelation_tmp
837
+ end
838
+ end
839
+ end
840
+ end
841
+
842
+ # CreateIPAlarmThresholdConfig返回参数结构体
843
+ class CreateIPAlarmThresholdConfigResponse < TencentCloud::Common::AbstractModel
844
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
845
+ # @type RequestId: String
846
+
847
+ attr_accessor :RequestId
848
+
849
+ def initialize(requestid=nil)
850
+ @RequestId = requestid
851
+ end
852
+
853
+ def deserialize(params)
854
+ @RequestId = params['RequestId']
855
+ end
856
+ end
857
+
858
+ # CreateL7RuleCerts请求参数结构体
859
+ class CreateL7RuleCertsRequest < TencentCloud::Common::AbstractModel
860
+ # @param CertId: SSL证书ID
861
+ # @type CertId: String
862
+ # @param L7Rules: L7域名转发规则列表
863
+ # @type L7Rules: Array
864
+
865
+ attr_accessor :CertId, :L7Rules
866
+
867
+ def initialize(certid=nil, l7rules=nil)
868
+ @CertId = certid
869
+ @L7Rules = l7rules
870
+ end
871
+
872
+ def deserialize(params)
873
+ @CertId = params['CertId']
874
+ unless params['L7Rules'].nil?
875
+ @L7Rules = []
876
+ params['L7Rules'].each do |i|
877
+ insl7rules_tmp = InsL7Rules.new
878
+ insl7rules_tmp.deserialize(i)
879
+ @L7Rules << insl7rules_tmp
880
+ end
881
+ end
882
+ end
883
+ end
884
+
885
+ # CreateL7RuleCerts返回参数结构体
886
+ class CreateL7RuleCertsResponse < TencentCloud::Common::AbstractModel
887
+ # @param Success: 成功码
888
+ # @type Success: :class:`Tencentcloud::Antiddos.v20200309.models.SuccessCode`
889
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
890
+ # @type RequestId: String
891
+
892
+ attr_accessor :Success, :RequestId
893
+
894
+ def initialize(success=nil, requestid=nil)
895
+ @Success = success
896
+ @RequestId = requestid
897
+ end
898
+
899
+ def deserialize(params)
900
+ unless params['Success'].nil?
901
+ @Success = SuccessCode.new
902
+ @Success.deserialize(params['Success'])
903
+ end
904
+ @RequestId = params['RequestId']
905
+ end
906
+ end
907
+
908
+ # CreatePacketFilterConfig请求参数结构体
909
+ class CreatePacketFilterConfigRequest < TencentCloud::Common::AbstractModel
910
+ # @param InstanceId: 资源实例ID
911
+ # @type InstanceId: String
912
+ # @param PacketFilterConfig: 特征过滤规则
913
+ # @type PacketFilterConfig: :class:`Tencentcloud::Antiddos.v20200309.models.PacketFilterConfig`
914
+
915
+ attr_accessor :InstanceId, :PacketFilterConfig
916
+
917
+ def initialize(instanceid=nil, packetfilterconfig=nil)
918
+ @InstanceId = instanceid
919
+ @PacketFilterConfig = packetfilterconfig
920
+ end
921
+
922
+ def deserialize(params)
923
+ @InstanceId = params['InstanceId']
924
+ unless params['PacketFilterConfig'].nil?
925
+ @PacketFilterConfig = PacketFilterConfig.new
926
+ @PacketFilterConfig.deserialize(params['PacketFilterConfig'])
927
+ end
928
+ end
929
+ end
930
+
931
+ # CreatePacketFilterConfig返回参数结构体
932
+ class CreatePacketFilterConfigResponse < TencentCloud::Common::AbstractModel
933
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
934
+ # @type RequestId: String
935
+
936
+ attr_accessor :RequestId
937
+
938
+ def initialize(requestid=nil)
939
+ @RequestId = requestid
940
+ end
941
+
942
+ def deserialize(params)
943
+ @RequestId = params['RequestId']
944
+ end
945
+ end
946
+
947
+ # CreateProtocolBlockConfig请求参数结构体
948
+ class CreateProtocolBlockConfigRequest < TencentCloud::Common::AbstractModel
949
+ # @param InstanceId: 资源实例ID
950
+ # @type InstanceId: String
951
+ # @param ProtocolBlockConfig: 协议封禁配置
952
+ # @type ProtocolBlockConfig: :class:`Tencentcloud::Antiddos.v20200309.models.ProtocolBlockConfig`
953
+
954
+ attr_accessor :InstanceId, :ProtocolBlockConfig
955
+
956
+ def initialize(instanceid=nil, protocolblockconfig=nil)
957
+ @InstanceId = instanceid
958
+ @ProtocolBlockConfig = protocolblockconfig
959
+ end
960
+
961
+ def deserialize(params)
962
+ @InstanceId = params['InstanceId']
963
+ unless params['ProtocolBlockConfig'].nil?
964
+ @ProtocolBlockConfig = ProtocolBlockConfig.new
965
+ @ProtocolBlockConfig.deserialize(params['ProtocolBlockConfig'])
966
+ end
967
+ end
968
+ end
969
+
970
+ # CreateProtocolBlockConfig返回参数结构体
971
+ class CreateProtocolBlockConfigResponse < TencentCloud::Common::AbstractModel
972
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
973
+ # @type RequestId: String
974
+
975
+ attr_accessor :RequestId
976
+
977
+ def initialize(requestid=nil)
978
+ @RequestId = requestid
979
+ end
980
+
981
+ def deserialize(params)
982
+ @RequestId = params['RequestId']
983
+ end
984
+ end
985
+
986
+ # CreateSchedulingDomain请求参数结构体
987
+ class CreateSchedulingDomainRequest < TencentCloud::Common::AbstractModel
988
+
989
+
990
+ def initialize()
991
+ end
992
+
993
+ def deserialize(params)
994
+ end
995
+ end
996
+
997
+ # CreateSchedulingDomain返回参数结构体
998
+ class CreateSchedulingDomainResponse < TencentCloud::Common::AbstractModel
999
+ # @param Domain: 新创建的域名
1000
+ # @type Domain: String
1001
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1002
+ # @type RequestId: String
1003
+
1004
+ attr_accessor :Domain, :RequestId
1005
+
1006
+ def initialize(domain=nil, requestid=nil)
1007
+ @Domain = domain
1008
+ @RequestId = requestid
1009
+ end
1010
+
1011
+ def deserialize(params)
1012
+ @Domain = params['Domain']
1013
+ @RequestId = params['RequestId']
1014
+ end
1015
+ end
1016
+
1017
+ # CreateWaterPrintConfig请求参数结构体
1018
+ class CreateWaterPrintConfigRequest < TencentCloud::Common::AbstractModel
1019
+ # @param InstanceId: 资源实例ID
1020
+ # @type InstanceId: String
1021
+ # @param WaterPrintConfig: 水印防护配置
1022
+ # @type WaterPrintConfig: :class:`Tencentcloud::Antiddos.v20200309.models.WaterPrintConfig`
1023
+
1024
+ attr_accessor :InstanceId, :WaterPrintConfig
1025
+
1026
+ def initialize(instanceid=nil, waterprintconfig=nil)
1027
+ @InstanceId = instanceid
1028
+ @WaterPrintConfig = waterprintconfig
1029
+ end
1030
+
1031
+ def deserialize(params)
1032
+ @InstanceId = params['InstanceId']
1033
+ unless params['WaterPrintConfig'].nil?
1034
+ @WaterPrintConfig = WaterPrintConfig.new
1035
+ @WaterPrintConfig.deserialize(params['WaterPrintConfig'])
1036
+ end
1037
+ end
1038
+ end
1039
+
1040
+ # CreateWaterPrintConfig返回参数结构体
1041
+ class CreateWaterPrintConfigResponse < TencentCloud::Common::AbstractModel
1042
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1043
+ # @type RequestId: String
1044
+
1045
+ attr_accessor :RequestId
1046
+
1047
+ def initialize(requestid=nil)
1048
+ @RequestId = requestid
1049
+ end
1050
+
1051
+ def deserialize(params)
1052
+ @RequestId = params['RequestId']
1053
+ end
1054
+ end
1055
+
1056
+ # CreateWaterPrintKey请求参数结构体
1057
+ class CreateWaterPrintKeyRequest < TencentCloud::Common::AbstractModel
1058
+ # @param InstanceId: 资源实例ID
1059
+ # @type InstanceId: String
1060
+
1061
+ attr_accessor :InstanceId
1062
+
1063
+ def initialize(instanceid=nil)
1064
+ @InstanceId = instanceid
1065
+ end
1066
+
1067
+ def deserialize(params)
1068
+ @InstanceId = params['InstanceId']
1069
+ end
1070
+ end
1071
+
1072
+ # CreateWaterPrintKey返回参数结构体
1073
+ class CreateWaterPrintKeyResponse < TencentCloud::Common::AbstractModel
1074
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1075
+ # @type RequestId: String
1076
+
1077
+ attr_accessor :RequestId
1078
+
1079
+ def initialize(requestid=nil)
1080
+ @RequestId = requestid
1081
+ end
1082
+
1083
+ def deserialize(params)
1084
+ @RequestId = params['RequestId']
1085
+ end
1086
+ end
1087
+
1088
+ # DDoS防护的AI防护开关
1089
+ class DDoSAIRelation < TencentCloud::Common::AbstractModel
1090
+ # @param DDoSAI: AI防护开关,取值[
1091
+ # on(开启)
1092
+ # off(关闭)
1093
+ # ]
1094
+ # @type DDoSAI: String
1095
+ # @param InstanceDetailList: AI防护开关所属的资源实例
1096
+ # @type InstanceDetailList: Array
1097
+
1098
+ attr_accessor :DDoSAI, :InstanceDetailList
1099
+
1100
+ def initialize(ddosai=nil, instancedetaillist=nil)
1101
+ @DDoSAI = ddosai
1102
+ @InstanceDetailList = instancedetaillist
1103
+ end
1104
+
1105
+ def deserialize(params)
1106
+ @DDoSAI = params['DDoSAI']
1107
+ unless params['InstanceDetailList'].nil?
1108
+ @InstanceDetailList = []
1109
+ params['InstanceDetailList'].each do |i|
1110
+ instancerelation_tmp = InstanceRelation.new
1111
+ instancerelation_tmp.deserialize(i)
1112
+ @InstanceDetailList << instancerelation_tmp
1113
+ end
1114
+ end
1115
+ end
1116
+ end
1117
+
1118
+ # DDoS防护的区域封禁配置
1119
+ class DDoSGeoIPBlockConfig < TencentCloud::Common::AbstractModel
1120
+ # @param RegionType: 区域类型,取值[
1121
+ # oversea(海外)
1122
+ # china(国内)
1123
+ # customized(自定义地区)
1124
+ # ]
1125
+ # @type RegionType: String
1126
+ # @param Action: 封禁动作,取值[
1127
+ # drop(拦截)
1128
+ # trans(放行)
1129
+ # ]
1130
+ # @type Action: String
1131
+ # @param Id: 配置ID,配置添加成功后生成;添加新配置时不用填写此字段,修改或删除配置时需要填写配置ID
1132
+ # @type Id: String
1133
+ # @param AreaList: 当RegionType为customized时,必须填写AreaList,且最多填写128个;
1134
+ # @type AreaList: Array
1135
+
1136
+ attr_accessor :RegionType, :Action, :Id, :AreaList
1137
+
1138
+ def initialize(regiontype=nil, action=nil, id=nil, arealist=nil)
1139
+ @RegionType = regiontype
1140
+ @Action = action
1141
+ @Id = id
1142
+ @AreaList = arealist
1143
+ end
1144
+
1145
+ def deserialize(params)
1146
+ @RegionType = params['RegionType']
1147
+ @Action = params['Action']
1148
+ @Id = params['Id']
1149
+ @AreaList = params['AreaList']
1150
+ end
1151
+ end
1152
+
1153
+ # DDoS区域封禁配置相关信息
1154
+ class DDoSGeoIPBlockConfigRelation < TencentCloud::Common::AbstractModel
1155
+ # @param GeoIPBlockConfig: DDoS区域封禁配置
1156
+ # @type GeoIPBlockConfig: :class:`Tencentcloud::Antiddos.v20200309.models.DDoSGeoIPBlockConfig`
1157
+ # @param InstanceDetailList: 配置所属的资源实例
1158
+ # @type InstanceDetailList: Array
1159
+
1160
+ attr_accessor :GeoIPBlockConfig, :InstanceDetailList
1161
+
1162
+ def initialize(geoipblockconfig=nil, instancedetaillist=nil)
1163
+ @GeoIPBlockConfig = geoipblockconfig
1164
+ @InstanceDetailList = instancedetaillist
1165
+ end
1166
+
1167
+ def deserialize(params)
1168
+ unless params['GeoIPBlockConfig'].nil?
1169
+ @GeoIPBlockConfig = DDoSGeoIPBlockConfig.new
1170
+ @GeoIPBlockConfig.deserialize(params['GeoIPBlockConfig'])
1171
+ end
1172
+ unless params['InstanceDetailList'].nil?
1173
+ @InstanceDetailList = []
1174
+ params['InstanceDetailList'].each do |i|
1175
+ instancerelation_tmp = InstanceRelation.new
1176
+ instancerelation_tmp.deserialize(i)
1177
+ @InstanceDetailList << instancerelation_tmp
1178
+ end
1179
+ end
1180
+ end
1181
+ end
1182
+
1183
+ # DDoS访问限速配置
1184
+ class DDoSSpeedLimitConfig < TencentCloud::Common::AbstractModel
1185
+ # @param Mode: 限速模式,取值[
1186
+ # 1(基于源IP限速)
1187
+ # 2(基于目的端口限速)
1188
+ # ]
1189
+ # @type Mode: Integer
1190
+ # @param SpeedValues: 限速值,每种类型的限速值最多支持1个;该字段数组至少有一种限速值
1191
+ # @type SpeedValues: Array
1192
+ # @param DstPortScopes: 此字段已弃用,请填写新字段DstPortList。
1193
+ # @type DstPortScopes: Array
1194
+ # @param Id: 配置ID,配置添加成功后生成;添加新限制配置时不用填写此字段,修改或删除限速配置时需要填写配置ID
1195
+ # @type Id: String
1196
+ # @param ProtocolList: IP protocol numbers, 取值[
1197
+ # ALL(所有协议)
1198
+ # TCP(tcp协议)
1199
+ # UDP(udp协议)
1200
+ # SMP(smp协议)
1201
+ # 1;2-100(自定义协议号范围,最多8个)
1202
+ # ]
1203
+ # 注意:当自定义协议号范围时,只能填写协议号,多个范围;分隔;当填写ALL时不能再填写其他协议或协议号。
1204
+ # @type ProtocolList: String
1205
+ # @param DstPortList: 端口范围列表,最多8个,多个;分隔,范围表示用-;此端口范围必须填写;填写样式1:0-65535,样式2:80;443;1000-2000
1206
+ # @type DstPortList: String
1207
+
1208
+ attr_accessor :Mode, :SpeedValues, :DstPortScopes, :Id, :ProtocolList, :DstPortList
1209
+
1210
+ def initialize(mode=nil, speedvalues=nil, dstportscopes=nil, id=nil, protocollist=nil, dstportlist=nil)
1211
+ @Mode = mode
1212
+ @SpeedValues = speedvalues
1213
+ @DstPortScopes = dstportscopes
1214
+ @Id = id
1215
+ @ProtocolList = protocollist
1216
+ @DstPortList = dstportlist
1217
+ end
1218
+
1219
+ def deserialize(params)
1220
+ @Mode = params['Mode']
1221
+ unless params['SpeedValues'].nil?
1222
+ @SpeedValues = []
1223
+ params['SpeedValues'].each do |i|
1224
+ speedvalue_tmp = SpeedValue.new
1225
+ speedvalue_tmp.deserialize(i)
1226
+ @SpeedValues << speedvalue_tmp
1227
+ end
1228
+ end
1229
+ unless params['DstPortScopes'].nil?
1230
+ @DstPortScopes = []
1231
+ params['DstPortScopes'].each do |i|
1232
+ portsegment_tmp = PortSegment.new
1233
+ portsegment_tmp.deserialize(i)
1234
+ @DstPortScopes << portsegment_tmp
1235
+ end
1236
+ end
1237
+ @Id = params['Id']
1238
+ @ProtocolList = params['ProtocolList']
1239
+ @DstPortList = params['DstPortList']
1240
+ end
1241
+ end
1242
+
1243
+ # DDoS访问限速配置相关信息
1244
+ class DDoSSpeedLimitConfigRelation < TencentCloud::Common::AbstractModel
1245
+ # @param SpeedLimitConfig: DDoS访问限速配置
1246
+ # @type SpeedLimitConfig: :class:`Tencentcloud::Antiddos.v20200309.models.DDoSSpeedLimitConfig`
1247
+ # @param InstanceDetailList: 配置所属的资源实例
1248
+ # @type InstanceDetailList: Array
1249
+
1250
+ attr_accessor :SpeedLimitConfig, :InstanceDetailList
1251
+
1252
+ def initialize(speedlimitconfig=nil, instancedetaillist=nil)
1253
+ @SpeedLimitConfig = speedlimitconfig
1254
+ @InstanceDetailList = instancedetaillist
1255
+ end
1256
+
1257
+ def deserialize(params)
1258
+ unless params['SpeedLimitConfig'].nil?
1259
+ @SpeedLimitConfig = DDoSSpeedLimitConfig.new
1260
+ @SpeedLimitConfig.deserialize(params['SpeedLimitConfig'])
1261
+ end
1262
+ unless params['InstanceDetailList'].nil?
1263
+ @InstanceDetailList = []
1264
+ params['InstanceDetailList'].each do |i|
1265
+ instancerelation_tmp = InstanceRelation.new
1266
+ instancerelation_tmp.deserialize(i)
1267
+ @InstanceDetailList << instancerelation_tmp
1268
+ end
1269
+ end
1270
+ end
1271
+ end
1272
+
1273
+ # 单IP默认告警阈值配置
1274
+ class DefaultAlarmThreshold < TencentCloud::Common::AbstractModel
1275
+ # @param AlarmType: 告警阈值类型,取值[
1276
+ # 1(入流量告警阈值)
1277
+ # 2(攻击清洗流量告警阈值)
1278
+ # ]
1279
+ # @type AlarmType: Integer
1280
+ # @param AlarmThreshold: 告警阈值,单位Mbps,取值>=0;当作为输入参数时,设置0会删除告警阈值配置;
1281
+ # @type AlarmThreshold: Integer
1282
+
1283
+ attr_accessor :AlarmType, :AlarmThreshold
1284
+
1285
+ def initialize(alarmtype=nil, alarmthreshold=nil)
1286
+ @AlarmType = alarmtype
1287
+ @AlarmThreshold = alarmthreshold
1288
+ end
1289
+
1290
+ def deserialize(params)
1291
+ @AlarmType = params['AlarmType']
1292
+ @AlarmThreshold = params['AlarmThreshold']
1293
+ end
1294
+ end
1295
+
1296
+ # DeleteBlackWhiteIpList请求参数结构体
1297
+ class DeleteBlackWhiteIpListRequest < TencentCloud::Common::AbstractModel
1298
+ # @param InstanceId: 资源实例ID
1299
+ # @type InstanceId: String
1300
+ # @param IpList: IP列表
1301
+ # @type IpList: Array
1302
+ # @param Type: IP类型,取值[black(黑名单IP), white(白名单IP)]
1303
+ # @type Type: String
1304
+
1305
+ attr_accessor :InstanceId, :IpList, :Type
1306
+
1307
+ def initialize(instanceid=nil, iplist=nil, type=nil)
1308
+ @InstanceId = instanceid
1309
+ @IpList = iplist
1310
+ @Type = type
1311
+ end
1312
+
1313
+ def deserialize(params)
1314
+ @InstanceId = params['InstanceId']
1315
+ @IpList = params['IpList']
1316
+ @Type = params['Type']
1317
+ end
1318
+ end
1319
+
1320
+ # DeleteBlackWhiteIpList返回参数结构体
1321
+ class DeleteBlackWhiteIpListResponse < TencentCloud::Common::AbstractModel
1322
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1323
+ # @type RequestId: String
1324
+
1325
+ attr_accessor :RequestId
1326
+
1327
+ def initialize(requestid=nil)
1328
+ @RequestId = requestid
1329
+ end
1330
+
1331
+ def deserialize(params)
1332
+ @RequestId = params['RequestId']
1333
+ end
1334
+ end
1335
+
1336
+ # DeleteDDoSGeoIPBlockConfig请求参数结构体
1337
+ class DeleteDDoSGeoIPBlockConfigRequest < TencentCloud::Common::AbstractModel
1338
+ # @param InstanceId: 资源实例ID
1339
+ # @type InstanceId: String
1340
+ # @param DDoSGeoIPBlockConfig: DDoS区域封禁配置,填写参数时配置ID不能为空
1341
+ # @type DDoSGeoIPBlockConfig: :class:`Tencentcloud::Antiddos.v20200309.models.DDoSGeoIPBlockConfig`
1342
+
1343
+ attr_accessor :InstanceId, :DDoSGeoIPBlockConfig
1344
+
1345
+ def initialize(instanceid=nil, ddosgeoipblockconfig=nil)
1346
+ @InstanceId = instanceid
1347
+ @DDoSGeoIPBlockConfig = ddosgeoipblockconfig
1348
+ end
1349
+
1350
+ def deserialize(params)
1351
+ @InstanceId = params['InstanceId']
1352
+ unless params['DDoSGeoIPBlockConfig'].nil?
1353
+ @DDoSGeoIPBlockConfig = DDoSGeoIPBlockConfig.new
1354
+ @DDoSGeoIPBlockConfig.deserialize(params['DDoSGeoIPBlockConfig'])
1355
+ end
1356
+ end
1357
+ end
1358
+
1359
+ # DeleteDDoSGeoIPBlockConfig返回参数结构体
1360
+ class DeleteDDoSGeoIPBlockConfigResponse < TencentCloud::Common::AbstractModel
1361
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1362
+ # @type RequestId: String
1363
+
1364
+ attr_accessor :RequestId
1365
+
1366
+ def initialize(requestid=nil)
1367
+ @RequestId = requestid
1368
+ end
1369
+
1370
+ def deserialize(params)
1371
+ @RequestId = params['RequestId']
1372
+ end
1373
+ end
1374
+
1375
+ # DeleteDDoSSpeedLimitConfig请求参数结构体
1376
+ class DeleteDDoSSpeedLimitConfigRequest < TencentCloud::Common::AbstractModel
1377
+ # @param InstanceId: 资源实例ID
1378
+ # @type InstanceId: String
1379
+ # @param DDoSSpeedLimitConfig: 访问限速配置,填写参数时配置ID不能为空
1380
+ # @type DDoSSpeedLimitConfig: :class:`Tencentcloud::Antiddos.v20200309.models.DDoSSpeedLimitConfig`
1381
+
1382
+ attr_accessor :InstanceId, :DDoSSpeedLimitConfig
1383
+
1384
+ def initialize(instanceid=nil, ddosspeedlimitconfig=nil)
1385
+ @InstanceId = instanceid
1386
+ @DDoSSpeedLimitConfig = ddosspeedlimitconfig
1387
+ end
1388
+
1389
+ def deserialize(params)
1390
+ @InstanceId = params['InstanceId']
1391
+ unless params['DDoSSpeedLimitConfig'].nil?
1392
+ @DDoSSpeedLimitConfig = DDoSSpeedLimitConfig.new
1393
+ @DDoSSpeedLimitConfig.deserialize(params['DDoSSpeedLimitConfig'])
1394
+ end
1395
+ end
1396
+ end
1397
+
1398
+ # DeleteDDoSSpeedLimitConfig返回参数结构体
1399
+ class DeleteDDoSSpeedLimitConfigResponse < TencentCloud::Common::AbstractModel
1400
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1401
+ # @type RequestId: String
1402
+
1403
+ attr_accessor :RequestId
1404
+
1405
+ def initialize(requestid=nil)
1406
+ @RequestId = requestid
1407
+ end
1408
+
1409
+ def deserialize(params)
1410
+ @RequestId = params['RequestId']
1411
+ end
1412
+ end
1413
+
1414
+ # DeletePacketFilterConfig请求参数结构体
1415
+ class DeletePacketFilterConfigRequest < TencentCloud::Common::AbstractModel
1416
+ # @param InstanceId: 资源实例ID
1417
+ # @type InstanceId: String
1418
+ # @param PacketFilterConfig: 特征过滤配置
1419
+ # @type PacketFilterConfig: :class:`Tencentcloud::Antiddos.v20200309.models.PacketFilterConfig`
1420
+
1421
+ attr_accessor :InstanceId, :PacketFilterConfig
1422
+
1423
+ def initialize(instanceid=nil, packetfilterconfig=nil)
1424
+ @InstanceId = instanceid
1425
+ @PacketFilterConfig = packetfilterconfig
1426
+ end
1427
+
1428
+ def deserialize(params)
1429
+ @InstanceId = params['InstanceId']
1430
+ unless params['PacketFilterConfig'].nil?
1431
+ @PacketFilterConfig = PacketFilterConfig.new
1432
+ @PacketFilterConfig.deserialize(params['PacketFilterConfig'])
1433
+ end
1434
+ end
1435
+ end
1436
+
1437
+ # DeletePacketFilterConfig返回参数结构体
1438
+ class DeletePacketFilterConfigResponse < TencentCloud::Common::AbstractModel
1439
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1440
+ # @type RequestId: String
1441
+
1442
+ attr_accessor :RequestId
1443
+
1444
+ def initialize(requestid=nil)
1445
+ @RequestId = requestid
1446
+ end
1447
+
1448
+ def deserialize(params)
1449
+ @RequestId = params['RequestId']
1450
+ end
1451
+ end
1452
+
1453
+ # DeleteWaterPrintConfig请求参数结构体
1454
+ class DeleteWaterPrintConfigRequest < TencentCloud::Common::AbstractModel
1455
+ # @param InstanceId: 资源实例ID
1456
+ # @type InstanceId: String
1457
+
1458
+ attr_accessor :InstanceId
1459
+
1460
+ def initialize(instanceid=nil)
1461
+ @InstanceId = instanceid
1462
+ end
1463
+
1464
+ def deserialize(params)
1465
+ @InstanceId = params['InstanceId']
1466
+ end
1467
+ end
1468
+
1469
+ # DeleteWaterPrintConfig返回参数结构体
1470
+ class DeleteWaterPrintConfigResponse < TencentCloud::Common::AbstractModel
1471
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1472
+ # @type RequestId: String
1473
+
1474
+ attr_accessor :RequestId
1475
+
1476
+ def initialize(requestid=nil)
1477
+ @RequestId = requestid
1478
+ end
1479
+
1480
+ def deserialize(params)
1481
+ @RequestId = params['RequestId']
1482
+ end
1483
+ end
1484
+
1485
+ # DeleteWaterPrintKey请求参数结构体
1486
+ class DeleteWaterPrintKeyRequest < TencentCloud::Common::AbstractModel
1487
+ # @param InstanceId: 资源实例ID
1488
+ # @type InstanceId: String
1489
+ # @param KeyId: 水印密钥ID
1490
+ # @type KeyId: String
1491
+
1492
+ attr_accessor :InstanceId, :KeyId
1493
+
1494
+ def initialize(instanceid=nil, keyid=nil)
1495
+ @InstanceId = instanceid
1496
+ @KeyId = keyid
1497
+ end
1498
+
1499
+ def deserialize(params)
1500
+ @InstanceId = params['InstanceId']
1501
+ @KeyId = params['KeyId']
1502
+ end
1503
+ end
1504
+
1505
+ # DeleteWaterPrintKey返回参数结构体
1506
+ class DeleteWaterPrintKeyResponse < TencentCloud::Common::AbstractModel
1507
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1508
+ # @type RequestId: String
1509
+
1510
+ attr_accessor :RequestId
1511
+
1512
+ def initialize(requestid=nil)
1513
+ @RequestId = requestid
1514
+ end
1515
+
1516
+ def deserialize(params)
1517
+ @RequestId = params['RequestId']
1518
+ end
1519
+ end
1520
+
1521
+ # DescribeBasicDeviceStatus请求参数结构体
1522
+ class DescribeBasicDeviceStatusRequest < TencentCloud::Common::AbstractModel
1523
+ # @param IpList: IP 资源列表
1524
+ # @type IpList: Array
1525
+
1526
+ attr_accessor :IpList
1527
+
1528
+ def initialize(iplist=nil)
1529
+ @IpList = iplist
1530
+ end
1531
+
1532
+ def deserialize(params)
1533
+ @IpList = params['IpList']
1534
+ end
1535
+ end
1536
+
1537
+ # DescribeBasicDeviceStatus返回参数结构体
1538
+ class DescribeBasicDeviceStatusResponse < TencentCloud::Common::AbstractModel
1539
+ # @param Data: 返回资源及状态,状态码:
1540
+ # 1 - 封堵状态
1541
+ # 2 - 正常状态
1542
+ # 3 - 攻击状态
1543
+ # @type Data: Array
1544
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1545
+ # @type RequestId: String
1546
+
1547
+ attr_accessor :Data, :RequestId
1548
+
1549
+ def initialize(data=nil, requestid=nil)
1550
+ @Data = data
1551
+ @RequestId = requestid
1552
+ end
1553
+
1554
+ def deserialize(params)
1555
+ unless params['Data'].nil?
1556
+ @Data = []
1557
+ params['Data'].each do |i|
1558
+ keyvalue_tmp = KeyValue.new
1559
+ keyvalue_tmp.deserialize(i)
1560
+ @Data << keyvalue_tmp
1561
+ end
1562
+ end
1563
+ @RequestId = params['RequestId']
1564
+ end
1565
+ end
1566
+
1567
+ # DescribeBizTrend请求参数结构体
1568
+ class DescribeBizTrendRequest < TencentCloud::Common::AbstractModel
1569
+ # @param Statistics: 统计方式,可取值max, min, avg, sum, 如统计纬度是流量速率或包量速率,仅可取值max
1570
+ # @type Statistics: String
1571
+ # @param Business: 大禹子产品代号(bgpip表示高防IP)
1572
+ # @type Business: String
1573
+ # @param Period: 统计周期,可取值300,1800,3600,21600,86400,单位秒
1574
+ # @type Period: Integer
1575
+ # @param StartTime: 统计开始时间。 例:“2020-09-22 00:00:00”
1576
+ # @type StartTime: String
1577
+ # @param EndTime: 统计结束时间。 例:“2020-09-22 00:00:00”
1578
+ # @type EndTime: String
1579
+ # @param Id: 资源实例ID
1580
+ # @type Id: String
1581
+ # @param MetricName: 统计纬度,可取值connum, new_conn, inactive_conn, intraffic, outtraffic, inpkg, outpkg, qps
1582
+ # @type MetricName: String
1583
+ # @param Domain: 统计纬度为qps时,可选特定域名查询
1584
+ # @type Domain: String
1585
+ # @param ProtoInfo: 协议及端口列表,协议可取值TCP, UDP, HTTP, HTTPS,仅统计纬度为连接数时有效
1586
+ # @type ProtoInfo: Array
1587
+
1588
+ attr_accessor :Statistics, :Business, :Period, :StartTime, :EndTime, :Id, :MetricName, :Domain, :ProtoInfo
1589
+
1590
+ def initialize(statistics=nil, business=nil, period=nil, starttime=nil, endtime=nil, id=nil, metricname=nil, domain=nil, protoinfo=nil)
1591
+ @Statistics = statistics
1592
+ @Business = business
1593
+ @Period = period
1594
+ @StartTime = starttime
1595
+ @EndTime = endtime
1596
+ @Id = id
1597
+ @MetricName = metricname
1598
+ @Domain = domain
1599
+ @ProtoInfo = protoinfo
1600
+ end
1601
+
1602
+ def deserialize(params)
1603
+ @Statistics = params['Statistics']
1604
+ @Business = params['Business']
1605
+ @Period = params['Period']
1606
+ @StartTime = params['StartTime']
1607
+ @EndTime = params['EndTime']
1608
+ @Id = params['Id']
1609
+ @MetricName = params['MetricName']
1610
+ @Domain = params['Domain']
1611
+ unless params['ProtoInfo'].nil?
1612
+ @ProtoInfo = []
1613
+ params['ProtoInfo'].each do |i|
1614
+ protocolport_tmp = ProtocolPort.new
1615
+ protocolport_tmp.deserialize(i)
1616
+ @ProtoInfo << protocolport_tmp
1617
+ end
1618
+ end
1619
+ end
1620
+ end
1621
+
1622
+ # DescribeBizTrend返回参数结构体
1623
+ class DescribeBizTrendResponse < TencentCloud::Common::AbstractModel
1624
+ # @param DataList: 曲线图各个时间点的值
1625
+ # @type DataList: Array
1626
+ # @param MetricName: 统计纬度
1627
+ # @type MetricName: String
1628
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1629
+ # @type RequestId: String
1630
+
1631
+ attr_accessor :DataList, :MetricName, :RequestId
1632
+
1633
+ def initialize(datalist=nil, metricname=nil, requestid=nil)
1634
+ @DataList = datalist
1635
+ @MetricName = metricname
1636
+ @RequestId = requestid
1637
+ end
1638
+
1639
+ def deserialize(params)
1640
+ @DataList = params['DataList']
1641
+ @MetricName = params['MetricName']
1642
+ @RequestId = params['RequestId']
1643
+ end
1644
+ end
1645
+
1646
+ # DescribeBlackWhiteIpList请求参数结构体
1647
+ class DescribeBlackWhiteIpListRequest < TencentCloud::Common::AbstractModel
1648
+ # @param InstanceId: 资源实例ID
1649
+ # @type InstanceId: String
1650
+
1651
+ attr_accessor :InstanceId
1652
+
1653
+ def initialize(instanceid=nil)
1654
+ @InstanceId = instanceid
1655
+ end
1656
+
1657
+ def deserialize(params)
1658
+ @InstanceId = params['InstanceId']
1659
+ end
1660
+ end
1661
+
1662
+ # DescribeBlackWhiteIpList返回参数结构体
1663
+ class DescribeBlackWhiteIpListResponse < TencentCloud::Common::AbstractModel
1664
+ # @param BlackIpList: 黑名单IP列表
1665
+ # @type BlackIpList: Array
1666
+ # @param WhiteIpList: 白名单IP列表
1667
+ # @type WhiteIpList: Array
1668
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1669
+ # @type RequestId: String
1670
+
1671
+ attr_accessor :BlackIpList, :WhiteIpList, :RequestId
1672
+
1673
+ def initialize(blackiplist=nil, whiteiplist=nil, requestid=nil)
1674
+ @BlackIpList = blackiplist
1675
+ @WhiteIpList = whiteiplist
1676
+ @RequestId = requestid
1677
+ end
1678
+
1679
+ def deserialize(params)
1680
+ @BlackIpList = params['BlackIpList']
1681
+ @WhiteIpList = params['WhiteIpList']
1682
+ @RequestId = params['RequestId']
1683
+ end
1684
+ end
1685
+
1686
+ # DescribeCCTrend请求参数结构体
1687
+ class DescribeCCTrendRequest < TencentCloud::Common::AbstractModel
1688
+ # @param Business: 大禹子产品代号(bgpip表示高防IP;bgp表示独享包;bgp-multip表示共享包;net表示高防IP专业版;basic表示DDoS基础防护)
1689
+ # @type Business: String
1690
+ # @param Ip: 资源的IP
1691
+ # @type Ip: String
1692
+ # @param Period: 统计粒度,取值[300(5分钟),3600(小时),86400(天)]
1693
+ # @type Period: Integer
1694
+ # @param StartTime: 统计开始时间
1695
+ # @type StartTime: String
1696
+ # @param EndTime: 统计结束时间
1697
+ # @type EndTime: String
1698
+ # @param MetricName: 指标,取值[inqps(总请求峰值,dropqps(攻击请求峰值)),incount(请求次数), dropcount(攻击次数)]
1699
+ # @type MetricName: String
1700
+ # @param Domain: 域名,可选
1701
+ # @type Domain: String
1702
+ # @param Id: 资源实例ID,当Business为basic时,此字段不用填写(因为基础防护没有资源实例)
1703
+ # @type Id: String
1704
+
1705
+ attr_accessor :Business, :Ip, :Period, :StartTime, :EndTime, :MetricName, :Domain, :Id
1706
+
1707
+ def initialize(business=nil, ip=nil, period=nil, starttime=nil, endtime=nil, metricname=nil, domain=nil, id=nil)
1708
+ @Business = business
1709
+ @Ip = ip
1710
+ @Period = period
1711
+ @StartTime = starttime
1712
+ @EndTime = endtime
1713
+ @MetricName = metricname
1714
+ @Domain = domain
1715
+ @Id = id
1716
+ end
1717
+
1718
+ def deserialize(params)
1719
+ @Business = params['Business']
1720
+ @Ip = params['Ip']
1721
+ @Period = params['Period']
1722
+ @StartTime = params['StartTime']
1723
+ @EndTime = params['EndTime']
1724
+ @MetricName = params['MetricName']
1725
+ @Domain = params['Domain']
1726
+ @Id = params['Id']
1727
+ end
1728
+ end
1729
+
1730
+ # DescribeCCTrend返回参数结构体
1731
+ class DescribeCCTrendResponse < TencentCloud::Common::AbstractModel
1732
+ # @param Count: 值个数
1733
+ # @type Count: Integer
1734
+ # @param Business: 大禹子产品代号(bgpip表示高防IP;bgp表示独享包;bgp-multip表示共享包;net表示高防IP专业版;basic表示DDoS基础防护)
1735
+ # @type Business: String
1736
+ # @param Ip: 资源的IP
1737
+ # @type Ip: String
1738
+ # @param Period: 统计粒度,取值[300(5分钟),3600(小时),86400(天)]
1739
+ # @type Period: Integer
1740
+ # @param StartTime: 统计开始时间
1741
+ # @type StartTime: String
1742
+ # @param EndTime: 统计结束时间
1743
+ # @type EndTime: String
1744
+ # @param Data: 值数组
1745
+ # @type Data: Array
1746
+ # @param Id: 资源ID
1747
+ # 注意:此字段可能返回 null,表示取不到有效值。
1748
+ # @type Id: String
1749
+ # @param MetricName: 指标,取值[inqps(总请求峰值,dropqps(攻击请求峰值)),incount(请求次数), dropcount(攻击次数)]
1750
+ # @type MetricName: String
1751
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1752
+ # @type RequestId: String
1753
+
1754
+ attr_accessor :Count, :Business, :Ip, :Period, :StartTime, :EndTime, :Data, :Id, :MetricName, :RequestId
1755
+
1756
+ def initialize(count=nil, business=nil, ip=nil, period=nil, starttime=nil, endtime=nil, data=nil, id=nil, metricname=nil, requestid=nil)
1757
+ @Count = count
1758
+ @Business = business
1759
+ @Ip = ip
1760
+ @Period = period
1761
+ @StartTime = starttime
1762
+ @EndTime = endtime
1763
+ @Data = data
1764
+ @Id = id
1765
+ @MetricName = metricname
1766
+ @RequestId = requestid
1767
+ end
1768
+
1769
+ def deserialize(params)
1770
+ @Count = params['Count']
1771
+ @Business = params['Business']
1772
+ @Ip = params['Ip']
1773
+ @Period = params['Period']
1774
+ @StartTime = params['StartTime']
1775
+ @EndTime = params['EndTime']
1776
+ @Data = params['Data']
1777
+ @Id = params['Id']
1778
+ @MetricName = params['MetricName']
1779
+ @RequestId = params['RequestId']
1780
+ end
1781
+ end
1782
+
1783
+ # DescribeDDoSTrend请求参数结构体
1784
+ class DescribeDDoSTrendRequest < TencentCloud::Common::AbstractModel
1785
+ # @param Business: 大禹子产品代号(bgpip表示高防IP;bgp表示独享包;bgp-multip表示共享包;net表示高防IP专业版;basic表示DDoS基础防护)
1786
+ # @type Business: String
1787
+ # @param Ip: 资源实例的IP
1788
+ # @type Ip: String
1789
+ # @param Period: 统计粒度,取值[300(5分钟),3600(小时),86400(天)]
1790
+ # @type Period: Integer
1791
+ # @param StartTime: 统计开始时间
1792
+ # @type StartTime: String
1793
+ # @param EndTime: 统计结束时间
1794
+ # @type EndTime: String
1795
+ # @param MetricName: 指标,取值[bps(攻击流量带宽,pps(攻击包速率))]
1796
+ # @type MetricName: String
1797
+ # @param Id: 资源实例ID,当Business为basic时,此字段不用填写(因为基础防护没有资源实例)
1798
+ # @type Id: String
1799
+
1800
+ attr_accessor :Business, :Ip, :Period, :StartTime, :EndTime, :MetricName, :Id
1801
+
1802
+ def initialize(business=nil, ip=nil, period=nil, starttime=nil, endtime=nil, metricname=nil, id=nil)
1803
+ @Business = business
1804
+ @Ip = ip
1805
+ @Period = period
1806
+ @StartTime = starttime
1807
+ @EndTime = endtime
1808
+ @MetricName = metricname
1809
+ @Id = id
1810
+ end
1811
+
1812
+ def deserialize(params)
1813
+ @Business = params['Business']
1814
+ @Ip = params['Ip']
1815
+ @Period = params['Period']
1816
+ @StartTime = params['StartTime']
1817
+ @EndTime = params['EndTime']
1818
+ @MetricName = params['MetricName']
1819
+ @Id = params['Id']
1820
+ end
1821
+ end
1822
+
1823
+ # DescribeDDoSTrend返回参数结构体
1824
+ class DescribeDDoSTrendResponse < TencentCloud::Common::AbstractModel
1825
+ # @param Count: 值个数
1826
+ # @type Count: Integer
1827
+ # @param Business: 大禹子产品代号(bgpip表示高防IP;bgp表示独享包;bgp-multip表示共享包;net表示高防IP专业版;basic表示DDoS基础防护)
1828
+ # @type Business: String
1829
+ # @param Ip: 资源的IP
1830
+ # @type Ip: String
1831
+ # @param Period: 统计粒度,取值[300(5分钟),3600(小时),86400(天)]
1832
+ # @type Period: Integer
1833
+ # @param StartTime: 统计开始时间
1834
+ # @type StartTime: String
1835
+ # @param EndTime: 统计结束时间
1836
+ # @type EndTime: String
1837
+ # @param Data: 值数组,攻击流量带宽单位为Mbps,包速率单位为pps
1838
+ # @type Data: Array
1839
+ # @param Id: 资源ID
1840
+ # 注意:此字段可能返回 null,表示取不到有效值。
1841
+ # @type Id: String
1842
+ # @param MetricName: 指标,取值[bps(攻击流量带宽,pps(攻击包速率))]
1843
+ # @type MetricName: String
1844
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1845
+ # @type RequestId: String
1846
+
1847
+ attr_accessor :Count, :Business, :Ip, :Period, :StartTime, :EndTime, :Data, :Id, :MetricName, :RequestId
1848
+
1849
+ def initialize(count=nil, business=nil, ip=nil, period=nil, starttime=nil, endtime=nil, data=nil, id=nil, metricname=nil, requestid=nil)
1850
+ @Count = count
1851
+ @Business = business
1852
+ @Ip = ip
1853
+ @Period = period
1854
+ @StartTime = starttime
1855
+ @EndTime = endtime
1856
+ @Data = data
1857
+ @Id = id
1858
+ @MetricName = metricname
1859
+ @RequestId = requestid
1860
+ end
1861
+
1862
+ def deserialize(params)
1863
+ @Count = params['Count']
1864
+ @Business = params['Business']
1865
+ @Ip = params['Ip']
1866
+ @Period = params['Period']
1867
+ @StartTime = params['StartTime']
1868
+ @EndTime = params['EndTime']
1869
+ @Data = params['Data']
1870
+ @Id = params['Id']
1871
+ @MetricName = params['MetricName']
1872
+ @RequestId = params['RequestId']
1873
+ end
1874
+ end
1875
+
1876
+ # DescribeDefaultAlarmThreshold请求参数结构体
1877
+ class DescribeDefaultAlarmThresholdRequest < TencentCloud::Common::AbstractModel
1878
+ # @param InstanceType: 产品类型,取值[
1879
+ # bgp(表示高防包产品)
1880
+ # bgpip(表示高防IP产品)
1881
+ # ]
1882
+ # @type InstanceType: String
1883
+ # @param FilterAlarmType: 告警阈值类型搜索,取值[
1884
+ # 1(入流量告警阈值)
1885
+ # 2(攻击清洗流量告警阈值)
1886
+ # ]
1887
+ # @type FilterAlarmType: Integer
1888
+
1889
+ attr_accessor :InstanceType, :FilterAlarmType
1890
+
1891
+ def initialize(instancetype=nil, filteralarmtype=nil)
1892
+ @InstanceType = instancetype
1893
+ @FilterAlarmType = filteralarmtype
1894
+ end
1895
+
1896
+ def deserialize(params)
1897
+ @InstanceType = params['InstanceType']
1898
+ @FilterAlarmType = params['FilterAlarmType']
1899
+ end
1900
+ end
1901
+
1902
+ # DescribeDefaultAlarmThreshold返回参数结构体
1903
+ class DescribeDefaultAlarmThresholdResponse < TencentCloud::Common::AbstractModel
1904
+ # @param DefaultAlarmConfigList: 默认告警阈值配置
1905
+ # @type DefaultAlarmConfigList: Array
1906
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1907
+ # @type RequestId: String
1908
+
1909
+ attr_accessor :DefaultAlarmConfigList, :RequestId
1910
+
1911
+ def initialize(defaultalarmconfiglist=nil, requestid=nil)
1912
+ @DefaultAlarmConfigList = defaultalarmconfiglist
1913
+ @RequestId = requestid
1914
+ end
1915
+
1916
+ def deserialize(params)
1917
+ unless params['DefaultAlarmConfigList'].nil?
1918
+ @DefaultAlarmConfigList = []
1919
+ params['DefaultAlarmConfigList'].each do |i|
1920
+ defaultalarmthreshold_tmp = DefaultAlarmThreshold.new
1921
+ defaultalarmthreshold_tmp.deserialize(i)
1922
+ @DefaultAlarmConfigList << defaultalarmthreshold_tmp
1923
+ end
1924
+ end
1925
+ @RequestId = params['RequestId']
1926
+ end
1927
+ end
1928
+
1929
+ # DescribeL7RulesBySSLCertId请求参数结构体
1930
+ class DescribeL7RulesBySSLCertIdRequest < TencentCloud::Common::AbstractModel
1931
+ # @param Status: 域名状态,可取bindable, binded, opened, closed, all,all表示全部状态
1932
+ # @type Status: String
1933
+ # @param CertIds: 证书ID列表
1934
+ # @type CertIds: Array
1935
+
1936
+ attr_accessor :Status, :CertIds
1937
+
1938
+ def initialize(status=nil, certids=nil)
1939
+ @Status = status
1940
+ @CertIds = certids
1941
+ end
1942
+
1943
+ def deserialize(params)
1944
+ @Status = params['Status']
1945
+ @CertIds = params['CertIds']
1946
+ end
1947
+ end
1948
+
1949
+ # DescribeL7RulesBySSLCertId返回参数结构体
1950
+ class DescribeL7RulesBySSLCertIdResponse < TencentCloud::Common::AbstractModel
1951
+ # @param CertSet: 证书规则集合
1952
+ # @type CertSet: Array
1953
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1954
+ # @type RequestId: String
1955
+
1956
+ attr_accessor :CertSet, :RequestId
1957
+
1958
+ def initialize(certset=nil, requestid=nil)
1959
+ @CertSet = certset
1960
+ @RequestId = requestid
1961
+ end
1962
+
1963
+ def deserialize(params)
1964
+ unless params['CertSet'].nil?
1965
+ @CertSet = []
1966
+ params['CertSet'].each do |i|
1967
+ certidinsl7rules_tmp = CertIdInsL7Rules.new
1968
+ certidinsl7rules_tmp.deserialize(i)
1969
+ @CertSet << certidinsl7rules_tmp
1970
+ end
1971
+ end
1972
+ @RequestId = params['RequestId']
1973
+ end
1974
+ end
1975
+
1976
+ # DescribeListBGPIPInstances请求参数结构体
1977
+ class DescribeListBGPIPInstancesRequest < TencentCloud::Common::AbstractModel
1978
+ # @param Offset: 页起始偏移,取值为(页码-1)*一页条数
1979
+ # @type Offset: Integer
1980
+ # @param Limit: 一页条数,当Limit=0时,默认一页条数为20;最大取值为100
1981
+ # @type Limit: Integer
1982
+ # @param FilterIp: IP搜索
1983
+ # @type FilterIp: String
1984
+ # @param FilterInstanceId: 资产实例ID搜索,例如,bgpip-00000001
1985
+ # @type FilterInstanceId: String
1986
+ # @param FilterLine: 高防IP线路搜索,取值为[
1987
+ # 1:BGP线路
1988
+ # 2:电信
1989
+ # 3:联通
1990
+ # 4:移动
1991
+ # 99:第三方合作线路
1992
+ # ]
1993
+ # @type FilterLine: Integer
1994
+ # @param FilterRegion: 地域搜索,例如,ap-guangzhou
1995
+ # @type FilterRegion: String
1996
+ # @param FilterName: 名称搜索
1997
+ # @type FilterName: String
1998
+ # @param FilterEipType: 是否只获取高防弹性公网IP实例。填写时,只能填写1或者0。当填写1时,表示返回高防弹性公网IP实例。当填写0时,表示返回非高防弹性公网IP实例。
1999
+ # @type FilterEipType: Integer
2000
+ # @param FilterEipEipAddressStatus: 高防弹性公网IP实例的绑定状态搜索条件,取值范围 [BINDING、 BIND、UNBINDING、UNBIND]。该搜索条件只在FilterEipType=1时才有效。
2001
+ # @type FilterEipEipAddressStatus: Array
2002
+
2003
+ attr_accessor :Offset, :Limit, :FilterIp, :FilterInstanceId, :FilterLine, :FilterRegion, :FilterName, :FilterEipType, :FilterEipEipAddressStatus
2004
+
2005
+ def initialize(offset=nil, limit=nil, filterip=nil, filterinstanceid=nil, filterline=nil, filterregion=nil, filtername=nil, filtereiptype=nil, filtereipeipaddressstatus=nil)
2006
+ @Offset = offset
2007
+ @Limit = limit
2008
+ @FilterIp = filterip
2009
+ @FilterInstanceId = filterinstanceid
2010
+ @FilterLine = filterline
2011
+ @FilterRegion = filterregion
2012
+ @FilterName = filtername
2013
+ @FilterEipType = filtereiptype
2014
+ @FilterEipEipAddressStatus = filtereipeipaddressstatus
2015
+ end
2016
+
2017
+ def deserialize(params)
2018
+ @Offset = params['Offset']
2019
+ @Limit = params['Limit']
2020
+ @FilterIp = params['FilterIp']
2021
+ @FilterInstanceId = params['FilterInstanceId']
2022
+ @FilterLine = params['FilterLine']
2023
+ @FilterRegion = params['FilterRegion']
2024
+ @FilterName = params['FilterName']
2025
+ @FilterEipType = params['FilterEipType']
2026
+ @FilterEipEipAddressStatus = params['FilterEipEipAddressStatus']
2027
+ end
2028
+ end
2029
+
2030
+ # DescribeListBGPIPInstances返回参数结构体
2031
+ class DescribeListBGPIPInstancesResponse < TencentCloud::Common::AbstractModel
2032
+ # @param Total: 总数
2033
+ # @type Total: Integer
2034
+ # @param InstanceList: 高防IP资产实例列表
2035
+ # @type InstanceList: Array
2036
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2037
+ # @type RequestId: String
2038
+
2039
+ attr_accessor :Total, :InstanceList, :RequestId
2040
+
2041
+ def initialize(total=nil, instancelist=nil, requestid=nil)
2042
+ @Total = total
2043
+ @InstanceList = instancelist
2044
+ @RequestId = requestid
2045
+ end
2046
+
2047
+ def deserialize(params)
2048
+ @Total = params['Total']
2049
+ unless params['InstanceList'].nil?
2050
+ @InstanceList = []
2051
+ params['InstanceList'].each do |i|
2052
+ bgpipinstance_tmp = BGPIPInstance.new
2053
+ bgpipinstance_tmp.deserialize(i)
2054
+ @InstanceList << bgpipinstance_tmp
2055
+ end
2056
+ end
2057
+ @RequestId = params['RequestId']
2058
+ end
2059
+ end
2060
+
2061
+ # DescribeListBGPInstances请求参数结构体
2062
+ class DescribeListBGPInstancesRequest < TencentCloud::Common::AbstractModel
2063
+ # @param Offset: 页起始偏移,取值为(页码-1)*一页条数
2064
+ # @type Offset: Integer
2065
+ # @param Limit: 一页条数,当Limit=0时,默认一页条数为20;最大取值为100
2066
+ # @type Limit: Integer
2067
+ # @param FilterIp: IP搜索
2068
+ # @type FilterIp: String
2069
+ # @param FilterInstanceId: 资产实例ID搜索,例如,bgp-00000001
2070
+ # @type FilterInstanceId: String
2071
+ # @param FilterRegion: 地域搜索,例如,ap-guangzhou
2072
+ # @type FilterRegion: String
2073
+ # @param FilterName: 名称搜索
2074
+ # @type FilterName: String
2075
+ # @param FilterLine: 按照线路搜索, 1: BGP; 2: 三网
2076
+ # @type FilterLine: Integer
2077
+
2078
+ attr_accessor :Offset, :Limit, :FilterIp, :FilterInstanceId, :FilterRegion, :FilterName, :FilterLine
2079
+
2080
+ def initialize(offset=nil, limit=nil, filterip=nil, filterinstanceid=nil, filterregion=nil, filtername=nil, filterline=nil)
2081
+ @Offset = offset
2082
+ @Limit = limit
2083
+ @FilterIp = filterip
2084
+ @FilterInstanceId = filterinstanceid
2085
+ @FilterRegion = filterregion
2086
+ @FilterName = filtername
2087
+ @FilterLine = filterline
2088
+ end
2089
+
2090
+ def deserialize(params)
2091
+ @Offset = params['Offset']
2092
+ @Limit = params['Limit']
2093
+ @FilterIp = params['FilterIp']
2094
+ @FilterInstanceId = params['FilterInstanceId']
2095
+ @FilterRegion = params['FilterRegion']
2096
+ @FilterName = params['FilterName']
2097
+ @FilterLine = params['FilterLine']
2098
+ end
2099
+ end
2100
+
2101
+ # DescribeListBGPInstances返回参数结构体
2102
+ class DescribeListBGPInstancesResponse < TencentCloud::Common::AbstractModel
2103
+ # @param Total: 总数
2104
+ # @type Total: Integer
2105
+ # @param InstanceList: 高防包资产实例列表
2106
+ # @type InstanceList: Array
2107
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2108
+ # @type RequestId: String
2109
+
2110
+ attr_accessor :Total, :InstanceList, :RequestId
2111
+
2112
+ def initialize(total=nil, instancelist=nil, requestid=nil)
2113
+ @Total = total
2114
+ @InstanceList = instancelist
2115
+ @RequestId = requestid
2116
+ end
2117
+
2118
+ def deserialize(params)
2119
+ @Total = params['Total']
2120
+ unless params['InstanceList'].nil?
2121
+ @InstanceList = []
2122
+ params['InstanceList'].each do |i|
2123
+ bgpinstance_tmp = BGPInstance.new
2124
+ bgpinstance_tmp.deserialize(i)
2125
+ @InstanceList << bgpinstance_tmp
2126
+ end
2127
+ end
2128
+ @RequestId = params['RequestId']
2129
+ end
2130
+ end
2131
+
2132
+ # DescribeListBlackWhiteIpList请求参数结构体
2133
+ class DescribeListBlackWhiteIpListRequest < TencentCloud::Common::AbstractModel
2134
+ # @param Offset: 页起始偏移,取值为(页码-1)*一页条数
2135
+ # @type Offset: Integer
2136
+ # @param Limit: 一页条数,当Limit=0时,默认一页条数为100;最大取值为100
2137
+ # @type Limit: Integer
2138
+ # @param FilterInstanceId: 资源实例ID搜索, 支持资源实例前缀通配搜索,例如bgp-*表示获取高防包类型的资源实例
2139
+ # @type FilterInstanceId: String
2140
+ # @param FilterIp: IP搜索
2141
+ # @type FilterIp: String
2142
+
2143
+ attr_accessor :Offset, :Limit, :FilterInstanceId, :FilterIp
2144
+
2145
+ def initialize(offset=nil, limit=nil, filterinstanceid=nil, filterip=nil)
2146
+ @Offset = offset
2147
+ @Limit = limit
2148
+ @FilterInstanceId = filterinstanceid
2149
+ @FilterIp = filterip
2150
+ end
2151
+
2152
+ def deserialize(params)
2153
+ @Offset = params['Offset']
2154
+ @Limit = params['Limit']
2155
+ @FilterInstanceId = params['FilterInstanceId']
2156
+ @FilterIp = params['FilterIp']
2157
+ end
2158
+ end
2159
+
2160
+ # DescribeListBlackWhiteIpList返回参数结构体
2161
+ class DescribeListBlackWhiteIpListResponse < TencentCloud::Common::AbstractModel
2162
+ # @param Total: 总数
2163
+ # @type Total: Integer
2164
+ # @param IpList: 黑白IP列表
2165
+ # @type IpList: Array
2166
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2167
+ # @type RequestId: String
2168
+
2169
+ attr_accessor :Total, :IpList, :RequestId
2170
+
2171
+ def initialize(total=nil, iplist=nil, requestid=nil)
2172
+ @Total = total
2173
+ @IpList = iplist
2174
+ @RequestId = requestid
2175
+ end
2176
+
2177
+ def deserialize(params)
2178
+ @Total = params['Total']
2179
+ unless params['IpList'].nil?
2180
+ @IpList = []
2181
+ params['IpList'].each do |i|
2182
+ blackwhiteiprelation_tmp = BlackWhiteIpRelation.new
2183
+ blackwhiteiprelation_tmp.deserialize(i)
2184
+ @IpList << blackwhiteiprelation_tmp
2185
+ end
2186
+ end
2187
+ @RequestId = params['RequestId']
2188
+ end
2189
+ end
2190
+
2191
+ # DescribeListDDoSAI请求参数结构体
2192
+ class DescribeListDDoSAIRequest < TencentCloud::Common::AbstractModel
2193
+ # @param Offset: 页起始偏移,取值为(页码-1)*一页条数
2194
+ # @type Offset: Integer
2195
+ # @param Limit: 一页条数,当Limit=0时,默认一页条数为100;最大取值为100
2196
+ # @type Limit: Integer
2197
+ # @param FilterInstanceId: 资源实例ID搜索, 支持资源实例前缀通配搜索,例如bgp-*表示获取高防包类型的资源实例
2198
+ # @type FilterInstanceId: String
2199
+ # @param FilterIp: IP搜索
2200
+ # @type FilterIp: String
2201
+
2202
+ attr_accessor :Offset, :Limit, :FilterInstanceId, :FilterIp
2203
+
2204
+ def initialize(offset=nil, limit=nil, filterinstanceid=nil, filterip=nil)
2205
+ @Offset = offset
2206
+ @Limit = limit
2207
+ @FilterInstanceId = filterinstanceid
2208
+ @FilterIp = filterip
2209
+ end
2210
+
2211
+ def deserialize(params)
2212
+ @Offset = params['Offset']
2213
+ @Limit = params['Limit']
2214
+ @FilterInstanceId = params['FilterInstanceId']
2215
+ @FilterIp = params['FilterIp']
2216
+ end
2217
+ end
2218
+
2219
+ # DescribeListDDoSAI返回参数结构体
2220
+ class DescribeListDDoSAIResponse < TencentCloud::Common::AbstractModel
2221
+ # @param Total: 总数
2222
+ # @type Total: Integer
2223
+ # @param ConfigList: AI防护开关列表
2224
+ # @type ConfigList: Array
2225
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2226
+ # @type RequestId: String
2227
+
2228
+ attr_accessor :Total, :ConfigList, :RequestId
2229
+
2230
+ def initialize(total=nil, configlist=nil, requestid=nil)
2231
+ @Total = total
2232
+ @ConfigList = configlist
2233
+ @RequestId = requestid
2234
+ end
2235
+
2236
+ def deserialize(params)
2237
+ @Total = params['Total']
2238
+ unless params['ConfigList'].nil?
2239
+ @ConfigList = []
2240
+ params['ConfigList'].each do |i|
2241
+ ddosairelation_tmp = DDoSAIRelation.new
2242
+ ddosairelation_tmp.deserialize(i)
2243
+ @ConfigList << ddosairelation_tmp
2244
+ end
2245
+ end
2246
+ @RequestId = params['RequestId']
2247
+ end
2248
+ end
2249
+
2250
+ # DescribeListDDoSGeoIPBlockConfig请求参数结构体
2251
+ class DescribeListDDoSGeoIPBlockConfigRequest < TencentCloud::Common::AbstractModel
2252
+ # @param Offset: 页起始偏移,取值为(页码-1)*一页条数
2253
+ # @type Offset: Integer
2254
+ # @param Limit: 一页条数,当Limit=0时,默认一页条数为100;最大取值为100
2255
+ # @type Limit: Integer
2256
+ # @param FilterInstanceId: 资源实例ID搜索, 支持资源实例前缀通配搜索,例如bgp-*表示获取高防包类型的资源实例
2257
+ # @type FilterInstanceId: String
2258
+ # @param FilterIp: IP搜索
2259
+ # @type FilterIp: String
2260
+
2261
+ attr_accessor :Offset, :Limit, :FilterInstanceId, :FilterIp
2262
+
2263
+ def initialize(offset=nil, limit=nil, filterinstanceid=nil, filterip=nil)
2264
+ @Offset = offset
2265
+ @Limit = limit
2266
+ @FilterInstanceId = filterinstanceid
2267
+ @FilterIp = filterip
2268
+ end
2269
+
2270
+ def deserialize(params)
2271
+ @Offset = params['Offset']
2272
+ @Limit = params['Limit']
2273
+ @FilterInstanceId = params['FilterInstanceId']
2274
+ @FilterIp = params['FilterIp']
2275
+ end
2276
+ end
2277
+
2278
+ # DescribeListDDoSGeoIPBlockConfig返回参数结构体
2279
+ class DescribeListDDoSGeoIPBlockConfigResponse < TencentCloud::Common::AbstractModel
2280
+ # @param Total: 总数
2281
+ # @type Total: Integer
2282
+ # @param ConfigList: DDoS区域封禁配置列表
2283
+ # @type ConfigList: Array
2284
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2285
+ # @type RequestId: String
2286
+
2287
+ attr_accessor :Total, :ConfigList, :RequestId
2288
+
2289
+ def initialize(total=nil, configlist=nil, requestid=nil)
2290
+ @Total = total
2291
+ @ConfigList = configlist
2292
+ @RequestId = requestid
2293
+ end
2294
+
2295
+ def deserialize(params)
2296
+ @Total = params['Total']
2297
+ unless params['ConfigList'].nil?
2298
+ @ConfigList = []
2299
+ params['ConfigList'].each do |i|
2300
+ ddosgeoipblockconfigrelation_tmp = DDoSGeoIPBlockConfigRelation.new
2301
+ ddosgeoipblockconfigrelation_tmp.deserialize(i)
2302
+ @ConfigList << ddosgeoipblockconfigrelation_tmp
2303
+ end
2304
+ end
2305
+ @RequestId = params['RequestId']
2306
+ end
2307
+ end
2308
+
2309
+ # DescribeListDDoSSpeedLimitConfig请求参数结构体
2310
+ class DescribeListDDoSSpeedLimitConfigRequest < TencentCloud::Common::AbstractModel
2311
+ # @param Offset: 页起始偏移,取值为(页码-1)*一页条数
2312
+ # @type Offset: Integer
2313
+ # @param Limit: 一页条数,当Limit=0时,默认一页条数为100;最大取值为100
2314
+ # @type Limit: Integer
2315
+ # @param FilterInstanceId: 资源实例ID搜索, 支持资源实例前缀通配搜索,例如bgp-*表示获取高防包类型的资源实例
2316
+ # @type FilterInstanceId: String
2317
+ # @param FilterIp: IP搜索
2318
+ # @type FilterIp: String
2319
+
2320
+ attr_accessor :Offset, :Limit, :FilterInstanceId, :FilterIp
2321
+
2322
+ def initialize(offset=nil, limit=nil, filterinstanceid=nil, filterip=nil)
2323
+ @Offset = offset
2324
+ @Limit = limit
2325
+ @FilterInstanceId = filterinstanceid
2326
+ @FilterIp = filterip
2327
+ end
2328
+
2329
+ def deserialize(params)
2330
+ @Offset = params['Offset']
2331
+ @Limit = params['Limit']
2332
+ @FilterInstanceId = params['FilterInstanceId']
2333
+ @FilterIp = params['FilterIp']
2334
+ end
2335
+ end
2336
+
2337
+ # DescribeListDDoSSpeedLimitConfig返回参数结构体
2338
+ class DescribeListDDoSSpeedLimitConfigResponse < TencentCloud::Common::AbstractModel
2339
+ # @param Total: 总数
2340
+ # @type Total: Integer
2341
+ # @param ConfigList: 访问限速配置列表
2342
+ # @type ConfigList: Array
2343
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2344
+ # @type RequestId: String
2345
+
2346
+ attr_accessor :Total, :ConfigList, :RequestId
2347
+
2348
+ def initialize(total=nil, configlist=nil, requestid=nil)
2349
+ @Total = total
2350
+ @ConfigList = configlist
2351
+ @RequestId = requestid
2352
+ end
2353
+
2354
+ def deserialize(params)
2355
+ @Total = params['Total']
2356
+ unless params['ConfigList'].nil?
2357
+ @ConfigList = []
2358
+ params['ConfigList'].each do |i|
2359
+ ddosspeedlimitconfigrelation_tmp = DDoSSpeedLimitConfigRelation.new
2360
+ ddosspeedlimitconfigrelation_tmp.deserialize(i)
2361
+ @ConfigList << ddosspeedlimitconfigrelation_tmp
2362
+ end
2363
+ end
2364
+ @RequestId = params['RequestId']
2365
+ end
2366
+ end
2367
+
2368
+ # DescribeListIPAlarmConfig请求参数结构体
2369
+ class DescribeListIPAlarmConfigRequest < TencentCloud::Common::AbstractModel
2370
+ # @param Offset: 页起始偏移,取值为(页码-1)*一页条数
2371
+ # @type Offset: Integer
2372
+ # @param Limit: 一页条数,当Limit=0时,默认一页条数为100;最大取值为100
2373
+ # @type Limit: Integer
2374
+ # @param FilterInstanceId: 资源实例ID搜索, 支持资源实例前缀通配搜索,例如bgp-*表示获取高防包类型的资源实例
2375
+ # @type FilterInstanceId: String
2376
+ # @param FilterAlarmType: 告警阈值类型搜索,取值[
2377
+ # 1(入流量告警阈值)
2378
+ # 2(攻击清洗流量告警阈值)
2379
+ # ]
2380
+ # @type FilterAlarmType: Integer
2381
+ # @param FilterIp: IP搜索
2382
+ # @type FilterIp: String
2383
+
2384
+ attr_accessor :Offset, :Limit, :FilterInstanceId, :FilterAlarmType, :FilterIp
2385
+
2386
+ def initialize(offset=nil, limit=nil, filterinstanceid=nil, filteralarmtype=nil, filterip=nil)
2387
+ @Offset = offset
2388
+ @Limit = limit
2389
+ @FilterInstanceId = filterinstanceid
2390
+ @FilterAlarmType = filteralarmtype
2391
+ @FilterIp = filterip
2392
+ end
2393
+
2394
+ def deserialize(params)
2395
+ @Offset = params['Offset']
2396
+ @Limit = params['Limit']
2397
+ @FilterInstanceId = params['FilterInstanceId']
2398
+ @FilterAlarmType = params['FilterAlarmType']
2399
+ @FilterIp = params['FilterIp']
2400
+ end
2401
+ end
2402
+
2403
+ # DescribeListIPAlarmConfig返回参数结构体
2404
+ class DescribeListIPAlarmConfigResponse < TencentCloud::Common::AbstractModel
2405
+ # @param Total: 总数
2406
+ # @type Total: Integer
2407
+ # @param ConfigList: IP告警阈值配置列表
2408
+ # @type ConfigList: Array
2409
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2410
+ # @type RequestId: String
2411
+
2412
+ attr_accessor :Total, :ConfigList, :RequestId
2413
+
2414
+ def initialize(total=nil, configlist=nil, requestid=nil)
2415
+ @Total = total
2416
+ @ConfigList = configlist
2417
+ @RequestId = requestid
2418
+ end
2419
+
2420
+ def deserialize(params)
2421
+ @Total = params['Total']
2422
+ unless params['ConfigList'].nil?
2423
+ @ConfigList = []
2424
+ params['ConfigList'].each do |i|
2425
+ ipalarmthresholdrelation_tmp = IPAlarmThresholdRelation.new
2426
+ ipalarmthresholdrelation_tmp.deserialize(i)
2427
+ @ConfigList << ipalarmthresholdrelation_tmp
2428
+ end
2429
+ end
2430
+ @RequestId = params['RequestId']
2431
+ end
2432
+ end
2433
+
2434
+ # DescribeListListener请求参数结构体
2435
+ class DescribeListListenerRequest < TencentCloud::Common::AbstractModel
2436
+
2437
+
2438
+ def initialize()
2439
+ end
2440
+
2441
+ def deserialize(params)
2442
+ end
2443
+ end
2444
+
2445
+ # DescribeListListener返回参数结构体
2446
+ class DescribeListListenerResponse < TencentCloud::Common::AbstractModel
2447
+ # @param Layer4Listeners: 4层转发监听器列表
2448
+ # @type Layer4Listeners: Array
2449
+ # @param Layer7Listeners: 7层转发监听器列表
2450
+ # @type Layer7Listeners: Array
2451
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2452
+ # @type RequestId: String
2453
+
2454
+ attr_accessor :Layer4Listeners, :Layer7Listeners, :RequestId
2455
+
2456
+ def initialize(layer4listeners=nil, layer7listeners=nil, requestid=nil)
2457
+ @Layer4Listeners = layer4listeners
2458
+ @Layer7Listeners = layer7listeners
2459
+ @RequestId = requestid
2460
+ end
2461
+
2462
+ def deserialize(params)
2463
+ unless params['Layer4Listeners'].nil?
2464
+ @Layer4Listeners = []
2465
+ params['Layer4Listeners'].each do |i|
2466
+ layer4rule_tmp = Layer4Rule.new
2467
+ layer4rule_tmp.deserialize(i)
2468
+ @Layer4Listeners << layer4rule_tmp
2469
+ end
2470
+ end
2471
+ unless params['Layer7Listeners'].nil?
2472
+ @Layer7Listeners = []
2473
+ params['Layer7Listeners'].each do |i|
2474
+ layer7rule_tmp = Layer7Rule.new
2475
+ layer7rule_tmp.deserialize(i)
2476
+ @Layer7Listeners << layer7rule_tmp
2477
+ end
2478
+ end
2479
+ @RequestId = params['RequestId']
2480
+ end
2481
+ end
2482
+
2483
+ # DescribeListPacketFilterConfig请求参数结构体
2484
+ class DescribeListPacketFilterConfigRequest < TencentCloud::Common::AbstractModel
2485
+ # @param Offset: 页起始偏移,取值为(页码-1)*一页条数
2486
+ # @type Offset: Integer
2487
+ # @param Limit: 一页条数,当Limit=0时,默认一页条数为100;最大取值为100
2488
+ # @type Limit: Integer
2489
+ # @param FilterInstanceId: 资源实例ID搜索, 支持资源实例前缀通配搜索,例如bgp-*表示获取高防包类型的资源实例
2490
+ # @type FilterInstanceId: String
2491
+ # @param FilterIp: IP搜索
2492
+ # @type FilterIp: String
2493
+
2494
+ attr_accessor :Offset, :Limit, :FilterInstanceId, :FilterIp
2495
+
2496
+ def initialize(offset=nil, limit=nil, filterinstanceid=nil, filterip=nil)
2497
+ @Offset = offset
2498
+ @Limit = limit
2499
+ @FilterInstanceId = filterinstanceid
2500
+ @FilterIp = filterip
2501
+ end
2502
+
2503
+ def deserialize(params)
2504
+ @Offset = params['Offset']
2505
+ @Limit = params['Limit']
2506
+ @FilterInstanceId = params['FilterInstanceId']
2507
+ @FilterIp = params['FilterIp']
2508
+ end
2509
+ end
2510
+
2511
+ # DescribeListPacketFilterConfig返回参数结构体
2512
+ class DescribeListPacketFilterConfigResponse < TencentCloud::Common::AbstractModel
2513
+ # @param Total: 总数
2514
+ # @type Total: Integer
2515
+ # @param ConfigList: 特征过滤配置
2516
+ # @type ConfigList: Array
2517
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2518
+ # @type RequestId: String
2519
+
2520
+ attr_accessor :Total, :ConfigList, :RequestId
2521
+
2522
+ def initialize(total=nil, configlist=nil, requestid=nil)
2523
+ @Total = total
2524
+ @ConfigList = configlist
2525
+ @RequestId = requestid
2526
+ end
2527
+
2528
+ def deserialize(params)
2529
+ @Total = params['Total']
2530
+ unless params['ConfigList'].nil?
2531
+ @ConfigList = []
2532
+ params['ConfigList'].each do |i|
2533
+ packetfilterrelation_tmp = PacketFilterRelation.new
2534
+ packetfilterrelation_tmp.deserialize(i)
2535
+ @ConfigList << packetfilterrelation_tmp
2536
+ end
2537
+ end
2538
+ @RequestId = params['RequestId']
2539
+ end
2540
+ end
2541
+
2542
+ # DescribeListProtectThresholdConfig请求参数结构体
2543
+ class DescribeListProtectThresholdConfigRequest < TencentCloud::Common::AbstractModel
2544
+ # @param Offset: 页起始偏移,取值为(页码-1)*一页条数
2545
+ # @type Offset: Integer
2546
+ # @param Limit: 一页条数,当Limit=0时,默认一页条数为100;最大取值为100
2547
+ # @type Limit: Integer
2548
+ # @param FilterInstanceId: 资源实例ID搜索, 支持资源实例前缀通配搜索,例如bgp-*表示获取高防包类型的资源实例
2549
+ # @type FilterInstanceId: String
2550
+ # @param FilterIp: IP搜索
2551
+ # @type FilterIp: String
2552
+ # @param FilterDomain: 域名搜索(查询域名与协议的CC防护阈值时使用)
2553
+ # @type FilterDomain: String
2554
+ # @param FilterProtocol: 协议搜索(查询域名与协议的CC防护阈值时使用)
2555
+ # @type FilterProtocol: String
2556
+
2557
+ attr_accessor :Offset, :Limit, :FilterInstanceId, :FilterIp, :FilterDomain, :FilterProtocol
2558
+
2559
+ def initialize(offset=nil, limit=nil, filterinstanceid=nil, filterip=nil, filterdomain=nil, filterprotocol=nil)
2560
+ @Offset = offset
2561
+ @Limit = limit
2562
+ @FilterInstanceId = filterinstanceid
2563
+ @FilterIp = filterip
2564
+ @FilterDomain = filterdomain
2565
+ @FilterProtocol = filterprotocol
2566
+ end
2567
+
2568
+ def deserialize(params)
2569
+ @Offset = params['Offset']
2570
+ @Limit = params['Limit']
2571
+ @FilterInstanceId = params['FilterInstanceId']
2572
+ @FilterIp = params['FilterIp']
2573
+ @FilterDomain = params['FilterDomain']
2574
+ @FilterProtocol = params['FilterProtocol']
2575
+ end
2576
+ end
2577
+
2578
+ # DescribeListProtectThresholdConfig返回参数结构体
2579
+ class DescribeListProtectThresholdConfigResponse < TencentCloud::Common::AbstractModel
2580
+ # @param Total: 总记录数
2581
+ # @type Total: Integer
2582
+ # @param ConfigList: 防护阈值配置列表
2583
+ # @type ConfigList: Array
2584
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2585
+ # @type RequestId: String
2586
+
2587
+ attr_accessor :Total, :ConfigList, :RequestId
2588
+
2589
+ def initialize(total=nil, configlist=nil, requestid=nil)
2590
+ @Total = total
2591
+ @ConfigList = configlist
2592
+ @RequestId = requestid
2593
+ end
2594
+
2595
+ def deserialize(params)
2596
+ @Total = params['Total']
2597
+ unless params['ConfigList'].nil?
2598
+ @ConfigList = []
2599
+ params['ConfigList'].each do |i|
2600
+ protectthresholdrelation_tmp = ProtectThresholdRelation.new
2601
+ protectthresholdrelation_tmp.deserialize(i)
2602
+ @ConfigList << protectthresholdrelation_tmp
2603
+ end
2604
+ end
2605
+ @RequestId = params['RequestId']
2606
+ end
2607
+ end
2608
+
2609
+ # DescribeListProtocolBlockConfig请求参数结构体
2610
+ class DescribeListProtocolBlockConfigRequest < TencentCloud::Common::AbstractModel
2611
+ # @param Offset: 页起始偏移,取值为(页码-1)*一页条数
2612
+ # @type Offset: Integer
2613
+ # @param Limit: 一页条数,当Limit=0时,默认一页条数为100;最大取值为100
2614
+ # @type Limit: Integer
2615
+ # @param FilterInstanceId: 资源实例ID搜索, 支持资源实例前缀通配搜索,例如bgp-*表示获取高防包类型的资源实例
2616
+ # @type FilterInstanceId: String
2617
+ # @param FilterIp: IP搜索
2618
+ # @type FilterIp: String
2619
+
2620
+ attr_accessor :Offset, :Limit, :FilterInstanceId, :FilterIp
2621
+
2622
+ def initialize(offset=nil, limit=nil, filterinstanceid=nil, filterip=nil)
2623
+ @Offset = offset
2624
+ @Limit = limit
2625
+ @FilterInstanceId = filterinstanceid
2626
+ @FilterIp = filterip
2627
+ end
2628
+
2629
+ def deserialize(params)
2630
+ @Offset = params['Offset']
2631
+ @Limit = params['Limit']
2632
+ @FilterInstanceId = params['FilterInstanceId']
2633
+ @FilterIp = params['FilterIp']
2634
+ end
2635
+ end
2636
+
2637
+ # DescribeListProtocolBlockConfig返回参数结构体
2638
+ class DescribeListProtocolBlockConfigResponse < TencentCloud::Common::AbstractModel
2639
+ # @param Total: 总数
2640
+ # @type Total: Integer
2641
+ # @param ConfigList: 协议封禁配置
2642
+ # @type ConfigList: Array
2643
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2644
+ # @type RequestId: String
2645
+
2646
+ attr_accessor :Total, :ConfigList, :RequestId
2647
+
2648
+ def initialize(total=nil, configlist=nil, requestid=nil)
2649
+ @Total = total
2650
+ @ConfigList = configlist
2651
+ @RequestId = requestid
2652
+ end
2653
+
2654
+ def deserialize(params)
2655
+ @Total = params['Total']
2656
+ unless params['ConfigList'].nil?
2657
+ @ConfigList = []
2658
+ params['ConfigList'].each do |i|
2659
+ protocolblockrelation_tmp = ProtocolBlockRelation.new
2660
+ protocolblockrelation_tmp.deserialize(i)
2661
+ @ConfigList << protocolblockrelation_tmp
2662
+ end
2663
+ end
2664
+ @RequestId = params['RequestId']
2665
+ end
2666
+ end
2667
+
2668
+ # DescribeListSchedulingDomain请求参数结构体
2669
+ class DescribeListSchedulingDomainRequest < TencentCloud::Common::AbstractModel
2670
+ # @param Offset: 页起始偏移,取值为(页码-1)*一页条数
2671
+ # @type Offset: Integer
2672
+ # @param Limit: 一页条数,当Limit=0时,默认一页条数为20;最大取值为100
2673
+ # @type Limit: Integer
2674
+ # @param FilterDomain: 调度域名搜索
2675
+ # @type FilterDomain: String
2676
+
2677
+ attr_accessor :Offset, :Limit, :FilterDomain
2678
+
2679
+ def initialize(offset=nil, limit=nil, filterdomain=nil)
2680
+ @Offset = offset
2681
+ @Limit = limit
2682
+ @FilterDomain = filterdomain
2683
+ end
2684
+
2685
+ def deserialize(params)
2686
+ @Offset = params['Offset']
2687
+ @Limit = params['Limit']
2688
+ @FilterDomain = params['FilterDomain']
2689
+ end
2690
+ end
2691
+
2692
+ # DescribeListSchedulingDomain返回参数结构体
2693
+ class DescribeListSchedulingDomainResponse < TencentCloud::Common::AbstractModel
2694
+ # @param Total: 总数
2695
+ # @type Total: Integer
2696
+ # @param DomainList: 调度域名信息列表
2697
+ # @type DomainList: Array
2698
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2699
+ # @type RequestId: String
2700
+
2701
+ attr_accessor :Total, :DomainList, :RequestId
2702
+
2703
+ def initialize(total=nil, domainlist=nil, requestid=nil)
2704
+ @Total = total
2705
+ @DomainList = domainlist
2706
+ @RequestId = requestid
2707
+ end
2708
+
2709
+ def deserialize(params)
2710
+ @Total = params['Total']
2711
+ unless params['DomainList'].nil?
2712
+ @DomainList = []
2713
+ params['DomainList'].each do |i|
2714
+ schedulingdomaininfo_tmp = SchedulingDomainInfo.new
2715
+ schedulingdomaininfo_tmp.deserialize(i)
2716
+ @DomainList << schedulingdomaininfo_tmp
2717
+ end
2718
+ end
2719
+ @RequestId = params['RequestId']
2720
+ end
2721
+ end
2722
+
2723
+ # DescribeListWaterPrintConfig请求参数结构体
2724
+ class DescribeListWaterPrintConfigRequest < TencentCloud::Common::AbstractModel
2725
+ # @param Offset: 页起始偏移,取值为(页码-1)*一页条数
2726
+ # @type Offset: Integer
2727
+ # @param Limit: 一页条数,当Limit=0时,默认一页条数为100;最大取值为100
2728
+ # @type Limit: Integer
2729
+ # @param FilterInstanceId: 资源实例ID搜索, 支持资源实例前缀通配搜索,例如bgp-*表示获取高防包类型的资源实例
2730
+ # @type FilterInstanceId: String
2731
+ # @param FilterIp: IP搜索
2732
+ # @type FilterIp: String
2733
+
2734
+ attr_accessor :Offset, :Limit, :FilterInstanceId, :FilterIp
2735
+
2736
+ def initialize(offset=nil, limit=nil, filterinstanceid=nil, filterip=nil)
2737
+ @Offset = offset
2738
+ @Limit = limit
2739
+ @FilterInstanceId = filterinstanceid
2740
+ @FilterIp = filterip
2741
+ end
2742
+
2743
+ def deserialize(params)
2744
+ @Offset = params['Offset']
2745
+ @Limit = params['Limit']
2746
+ @FilterInstanceId = params['FilterInstanceId']
2747
+ @FilterIp = params['FilterIp']
2748
+ end
2749
+ end
2750
+
2751
+ # DescribeListWaterPrintConfig返回参数结构体
2752
+ class DescribeListWaterPrintConfigResponse < TencentCloud::Common::AbstractModel
2753
+ # @param Total: 总数
2754
+ # @type Total: Integer
2755
+ # @param ConfigList: 水印配置列表
2756
+ # @type ConfigList: Array
2757
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2758
+ # @type RequestId: String
2759
+
2760
+ attr_accessor :Total, :ConfigList, :RequestId
2761
+
2762
+ def initialize(total=nil, configlist=nil, requestid=nil)
2763
+ @Total = total
2764
+ @ConfigList = configlist
2765
+ @RequestId = requestid
2766
+ end
2767
+
2768
+ def deserialize(params)
2769
+ @Total = params['Total']
2770
+ unless params['ConfigList'].nil?
2771
+ @ConfigList = []
2772
+ params['ConfigList'].each do |i|
2773
+ waterprintrelation_tmp = WaterPrintRelation.new
2774
+ waterprintrelation_tmp.deserialize(i)
2775
+ @ConfigList << waterprintrelation_tmp
2776
+ end
2777
+ end
2778
+ @RequestId = params['RequestId']
2779
+ end
2780
+ end
2781
+
2782
+ # DisassociateDDoSEipAddress请求参数结构体
2783
+ class DisassociateDDoSEipAddressRequest < TencentCloud::Common::AbstractModel
2784
+ # @param InstanceId: 资源实例ID,实例ID形如:bgpip-0000011x。只能填写高防IP实例。
2785
+ # @type InstanceId: String
2786
+ # @param Eip: 资源实例ID对应的高防弹性公网IP。
2787
+ # @type Eip: String
2788
+
2789
+ attr_accessor :InstanceId, :Eip
2790
+
2791
+ def initialize(instanceid=nil, eip=nil)
2792
+ @InstanceId = instanceid
2793
+ @Eip = eip
2794
+ end
2795
+
2796
+ def deserialize(params)
2797
+ @InstanceId = params['InstanceId']
2798
+ @Eip = params['Eip']
2799
+ end
2800
+ end
2801
+
2802
+ # DisassociateDDoSEipAddress返回参数结构体
2803
+ class DisassociateDDoSEipAddressResponse < TencentCloud::Common::AbstractModel
2804
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2805
+ # @type RequestId: String
2806
+
2807
+ attr_accessor :RequestId
2808
+
2809
+ def initialize(requestid=nil)
2810
+ @RequestId = requestid
2811
+ end
2812
+
2813
+ def deserialize(params)
2814
+ @RequestId = params['RequestId']
2815
+ end
2816
+ end
2817
+
2818
+ # Anycast高防套餐详情
2819
+ class EipAddressPackRelation < TencentCloud::Common::AbstractModel
2820
+ # @param IpCount: 套餐IP数量
2821
+ # @type IpCount: Integer
2822
+ # @param AutoRenewFlag: 自动续费标记
2823
+ # @type AutoRenewFlag: Integer
2824
+ # @param CurDeadline: 当前到期时间
2825
+ # @type CurDeadline: String
2826
+
2827
+ attr_accessor :IpCount, :AutoRenewFlag, :CurDeadline
2828
+
2829
+ def initialize(ipcount=nil, autorenewflag=nil, curdeadline=nil)
2830
+ @IpCount = ipcount
2831
+ @AutoRenewFlag = autorenewflag
2832
+ @CurDeadline = curdeadline
2833
+ end
2834
+
2835
+ def deserialize(params)
2836
+ @IpCount = params['IpCount']
2837
+ @AutoRenewFlag = params['AutoRenewFlag']
2838
+ @CurDeadline = params['CurDeadline']
2839
+ end
2840
+ end
2841
+
2842
+ # 高防弹性公网IP关联信息
2843
+ class EipAddressRelation < TencentCloud::Common::AbstractModel
2844
+ # @param EipAddressRegion: 高防弹性公网IP绑定的实例地区,例如hk代表香港
2845
+ # 注意:此字段可能返回 null,表示取不到有效值。
2846
+ # @type EipAddressRegion: String
2847
+ # @param EipBoundRscIns: 绑定的资源实例ID。可能是一个CVM。
2848
+ # 注意:此字段可能返回 null,表示取不到有效值。
2849
+ # @type EipBoundRscIns: String
2850
+ # @param EipBoundRscEni: 绑定的弹性网卡ID
2851
+ # 注意:此字段可能返回 null,表示取不到有效值。
2852
+ # @type EipBoundRscEni: String
2853
+ # @param EipBoundRscVip: 绑定的资源内网ip
2854
+ # 注意:此字段可能返回 null,表示取不到有效值。
2855
+ # @type EipBoundRscVip: String
2856
+ # @param ModifyTime: 修改时间
2857
+ # 注意:此字段可能返回 null,表示取不到有效值。
2858
+ # @type ModifyTime: String
2859
+
2860
+ attr_accessor :EipAddressRegion, :EipBoundRscIns, :EipBoundRscEni, :EipBoundRscVip, :ModifyTime
2861
+
2862
+ def initialize(eipaddressregion=nil, eipboundrscins=nil, eipboundrsceni=nil, eipboundrscvip=nil, modifytime=nil)
2863
+ @EipAddressRegion = eipaddressregion
2864
+ @EipBoundRscIns = eipboundrscins
2865
+ @EipBoundRscEni = eipboundrsceni
2866
+ @EipBoundRscVip = eipboundrscvip
2867
+ @ModifyTime = modifytime
2868
+ end
2869
+
2870
+ def deserialize(params)
2871
+ @EipAddressRegion = params['EipAddressRegion']
2872
+ @EipBoundRscIns = params['EipBoundRscIns']
2873
+ @EipBoundRscEni = params['EipBoundRscEni']
2874
+ @EipBoundRscVip = params['EipBoundRscVip']
2875
+ @ModifyTime = params['ModifyTime']
2876
+ end
2877
+ end
2878
+
2879
+ # EIP所属的云产品信息
2880
+ class EipProductInfo < TencentCloud::Common::AbstractModel
2881
+ # @param Ip: IP地址
2882
+ # @type Ip: String
2883
+ # @param BizType: 云产品类型,取值[
2884
+ # public(CVM产品),
2885
+ # bm(黑石产品),
2886
+ # eni(弹性网卡),
2887
+ # vpngw(VPN网关),
2888
+ # natgw(NAT网关),
2889
+ # waf(Web应用安全产品),
2890
+ # fpc(金融产品),
2891
+ # gaap(GAAP产品),
2892
+ # other(托管IP)
2893
+ # ]
2894
+ # @type BizType: String
2895
+ # @param DeviceType: 云产品子类型,取值[cvm(CVM),lb(负载均衡器),eni(弹性网卡),vpngw(VPN),natgw(NAT),waf(WAF),fpc(金融),gaap(GAAP),other(托管IP),eip(黑石弹性IP)]
2896
+ # @type DeviceType: String
2897
+ # @param InstanceId: IP所属的云产品实例ID,例如是弹性网卡的IP,InstanceId为弹性网卡的ID(eni-*); 如果是托管IP没有对应的资源实例ID,InstanceId为""
2898
+ # @type InstanceId: String
2899
+
2900
+ attr_accessor :Ip, :BizType, :DeviceType, :InstanceId
2901
+
2902
+ def initialize(ip=nil, biztype=nil, devicetype=nil, instanceid=nil)
2903
+ @Ip = ip
2904
+ @BizType = biztype
2905
+ @DeviceType = devicetype
2906
+ @InstanceId = instanceid
2907
+ end
2908
+
2909
+ def deserialize(params)
2910
+ @Ip = params['Ip']
2911
+ @BizType = params['BizType']
2912
+ @DeviceType = params['DeviceType']
2913
+ @InstanceId = params['InstanceId']
2914
+ end
2915
+ end
2916
+
2917
+ # 转发监听器
2918
+ class ForwardListener < TencentCloud::Common::AbstractModel
2919
+ # @param FrontendPort: 转发监听端口下限,取值1~65535
2920
+ # @type FrontendPort: Integer
2921
+ # @param ForwardProtocol: 转发协议,取值[
2922
+ # TCP
2923
+ # UDP
2924
+ # ]
2925
+ # @type ForwardProtocol: String
2926
+ # @param FrontendPortEnd: 转发监听端口上限,取值1~65535
2927
+ # @type FrontendPortEnd: Integer
2928
+
2929
+ attr_accessor :FrontendPort, :ForwardProtocol, :FrontendPortEnd
2930
+
2931
+ def initialize(frontendport=nil, forwardprotocol=nil, frontendportend=nil)
2932
+ @FrontendPort = frontendport
2933
+ @ForwardProtocol = forwardprotocol
2934
+ @FrontendPortEnd = frontendportend
2935
+ end
2936
+
2937
+ def deserialize(params)
2938
+ @FrontendPort = params['FrontendPort']
2939
+ @ForwardProtocol = params['ForwardProtocol']
2940
+ @FrontendPortEnd = params['FrontendPortEnd']
2941
+ end
2942
+ end
2943
+
2944
+ # 单IP告警阈值配置
2945
+ class IPAlarmThresholdRelation < TencentCloud::Common::AbstractModel
2946
+ # @param AlarmType: 告警阈值类型,取值[
2947
+ # 1(入流量告警阈值)
2948
+ # 2(攻击清洗流量告警阈值)
2949
+ # ]
2950
+ # @type AlarmType: Integer
2951
+ # @param AlarmThreshold: 告警阈值,单位Mbps,取值>=0;当作为输入参数时,设置0会删除告警阈值配置;
2952
+ # @type AlarmThreshold: Integer
2953
+ # @param InstanceDetailList: 告警阈值所属的资源实例
2954
+ # @type InstanceDetailList: Array
2955
+
2956
+ attr_accessor :AlarmType, :AlarmThreshold, :InstanceDetailList
2957
+
2958
+ def initialize(alarmtype=nil, alarmthreshold=nil, instancedetaillist=nil)
2959
+ @AlarmType = alarmtype
2960
+ @AlarmThreshold = alarmthreshold
2961
+ @InstanceDetailList = instancedetaillist
2962
+ end
2963
+
2964
+ def deserialize(params)
2965
+ @AlarmType = params['AlarmType']
2966
+ @AlarmThreshold = params['AlarmThreshold']
2967
+ unless params['InstanceDetailList'].nil?
2968
+ @InstanceDetailList = []
2969
+ params['InstanceDetailList'].each do |i|
2970
+ instancerelation_tmp = InstanceRelation.new
2971
+ instancerelation_tmp.deserialize(i)
2972
+ @InstanceDetailList << instancerelation_tmp
2973
+ end
2974
+ end
2975
+ end
2976
+ end
2977
+
2978
+ # IP线路信息
2979
+ class IPLineInfo < TencentCloud::Common::AbstractModel
2980
+ # @param Type: IP线路类型,取值[
2981
+ # "bgp":BGP线路IP
2982
+ # "ctcc":电信线路IP
2983
+ # "cucc":联通线路IP
2984
+ # "cmcc":移动线路IP
2985
+ # "abroad":境外线路IP
2986
+ # ]
2987
+ # @type Type: String
2988
+ # @param Eip: 线路IP
2989
+ # @type Eip: String
2990
+
2991
+ attr_accessor :Type, :Eip
2992
+
2993
+ def initialize(type=nil, eip=nil)
2994
+ @Type = type
2995
+ @Eip = eip
2996
+ end
2997
+
2998
+ def deserialize(params)
2999
+ @Type = params['Type']
3000
+ @Eip = params['Eip']
3001
+ end
3002
+ end
3003
+
3004
+ # 实例7层规则
3005
+ class InsL7Rules < TencentCloud::Common::AbstractModel
3006
+ # @param Status: 规则状态,0: 正常运行中, 1: 配置规则中(配置生效中), 2: 配置规则失败(配置生效失败), 3: 删除规则中(删除生效中), 5: 删除规则失败(删除失败), 6: 等待添加规则, 7: 等待删除规则, 8: 等待上传证书, 9: 规则对应的资源不存在,被隔离, 10:等待修改规则, 11:配置修改中
3007
+ # @type Status: Integer
3008
+ # @param Domain: 域名
3009
+ # @type Domain: String
3010
+ # @param Protocol: 协议
3011
+ # @type Protocol: String
3012
+ # @param InsId: 实例ID
3013
+ # @type InsId: String
3014
+ # @param AppId: 用户AppID
3015
+ # @type AppId: String
3016
+ # @param VirtualPort: 高防端口
3017
+ # @type VirtualPort: String
3018
+ # @param SSLId: 证书ID
3019
+ # @type SSLId: String
3020
+
3021
+ attr_accessor :Status, :Domain, :Protocol, :InsId, :AppId, :VirtualPort, :SSLId
3022
+
3023
+ def initialize(status=nil, domain=nil, protocol=nil, insid=nil, appid=nil, virtualport=nil, sslid=nil)
3024
+ @Status = status
3025
+ @Domain = domain
3026
+ @Protocol = protocol
3027
+ @InsId = insid
3028
+ @AppId = appid
3029
+ @VirtualPort = virtualport
3030
+ @SSLId = sslid
3031
+ end
3032
+
3033
+ def deserialize(params)
3034
+ @Status = params['Status']
3035
+ @Domain = params['Domain']
3036
+ @Protocol = params['Protocol']
3037
+ @InsId = params['InsId']
3038
+ @AppId = params['AppId']
3039
+ @VirtualPort = params['VirtualPort']
3040
+ @SSLId = params['SSLId']
3041
+ end
3042
+ end
3043
+
3044
+ # 资源实例IP信息
3045
+ class InstanceRelation < TencentCloud::Common::AbstractModel
3046
+ # @param EipList: 资源实例的IP
3047
+ # @type EipList: Array
3048
+ # @param InstanceId: 资源实例的ID
3049
+ # @type InstanceId: String
3050
+
3051
+ attr_accessor :EipList, :InstanceId
3052
+
3053
+ def initialize(eiplist=nil, instanceid=nil)
3054
+ @EipList = eiplist
3055
+ @InstanceId = instanceid
3056
+ end
3057
+
3058
+ def deserialize(params)
3059
+ @EipList = params['EipList']
3060
+ @InstanceId = params['InstanceId']
3061
+ end
3062
+ end
3063
+
3064
+ # 字段值,K-V形式
3065
+ class KeyValue < TencentCloud::Common::AbstractModel
3066
+ # @param Key: 字段名称
3067
+ # @type Key: String
3068
+ # @param Value: 字段取值
3069
+ # @type Value: String
3070
+
3071
+ attr_accessor :Key, :Value
3072
+
3073
+ def initialize(key=nil, value=nil)
3074
+ @Key = key
3075
+ @Value = value
3076
+ end
3077
+
3078
+ def deserialize(params)
3079
+ @Key = params['Key']
3080
+ @Value = params['Value']
3081
+ end
3082
+ end
3083
+
3084
+ # L4规则回源列表
3085
+ class L4RuleSource < TencentCloud::Common::AbstractModel
3086
+ # @param Source: 回源IP或域名
3087
+ # @type Source: String
3088
+ # @param Weight: 权重值,取值[0,100]
3089
+ # @type Weight: Integer
3090
+ # @param Port: 8000
3091
+ # 注意:此字段可能返回 null,表示取不到有效值。
3092
+ # @type Port: Integer
3093
+
3094
+ attr_accessor :Source, :Weight, :Port
3095
+
3096
+ def initialize(source=nil, weight=nil, port=nil)
3097
+ @Source = source
3098
+ @Weight = weight
3099
+ @Port = port
3100
+ end
3101
+
3102
+ def deserialize(params)
3103
+ @Source = params['Source']
3104
+ @Weight = params['Weight']
3105
+ @Port = params['Port']
3106
+ end
3107
+ end
3108
+
3109
+ # L7规则
3110
+ class L7RuleEntry < TencentCloud::Common::AbstractModel
3111
+ # @param KeepTime: 会话保持时间,单位秒
3112
+ # @type KeepTime: Integer
3113
+ # @param Domain: 转发域名
3114
+ # @type Domain: String
3115
+ # @param Protocol: 转发协议,取值[http, https]
3116
+ # @type Protocol: String
3117
+ # @param SourceType: 回源方式,取值[1(域名回源),2(IP回源)]
3118
+ # @type SourceType: Integer
3119
+ # @param LbType: 负载均衡方式,取值[1(加权轮询)]
3120
+ # @type LbType: Integer
3121
+ # @param SourceList: 回源列表
3122
+ # @type SourceList: Array
3123
+ # @param KeepEnable: 会话保持开关,取值[0(会话保持关闭),1(会话保持开启)]
3124
+ # @type KeepEnable: Integer
3125
+ # @param Status: 规则状态,取值[0(规则配置成功),1(规则配置生效中),2(规则配置失败),3(规则删除生效中),5(规则删除失败),6(规则等待配置),7(规则等待删除),8(规则待配置证书)]
3126
+ # @type Status: Integer
3127
+ # @param RuleId: 规则ID,当添加新规则时可以不用填写此字段;当修改或者删除规则时需要填写此字段;
3128
+ # @type RuleId: String
3129
+ # @param CCThreshold: HTTPS协议的CC防护阈值
3130
+ # @type CCThreshold: Integer
3131
+ # @param PrivateKey: 当证书来源为自有证书时,此字段必须填写证书密钥;(因已不再支持自有证书,此字段已弃用,请不用填写此字段)
3132
+ # @type PrivateKey: String
3133
+ # @param CCEnable: HTTPS协议的CC防护状态,取值[0(关闭), 1(开启)]
3134
+ # @type CCEnable: Integer
3135
+ # @param HttpsToHttpEnable: 是否开启Https协议使用Http回源,取值[0(关闭), 1(开启)],不填写默认是关闭
3136
+ # 注意:此字段可能返回 null,表示取不到有效值。
3137
+ # @type HttpsToHttpEnable: Integer
3138
+ # @param CertType: 证书来源,当转发协议为https时必须填,取值[2(腾讯云托管证书)],当转发协议为http时也可以填0
3139
+ # @type CertType: Integer
3140
+ # @param Cert: 当证书来源为自有证书时,此字段必须填写证书内容;(因已不再支持自有证书,此字段已弃用,请不用填写此字段)
3141
+ # @type Cert: String
3142
+ # @param CCLevel: HTTPS协议的CC防护等级
3143
+ # @type CCLevel: String
3144
+ # @param RuleName: 规则描述
3145
+ # @type RuleName: String
3146
+ # @param CCStatus: cc防护状态,取值[0(关闭), 1(开启)]
3147
+ # @type CCStatus: Integer
3148
+ # @param VirtualPort: 接入端口值
3149
+ # 注意:此字段可能返回 null,表示取不到有效值。
3150
+ # @type VirtualPort: Integer
3151
+ # @param SSLId: 当证书来源为腾讯云托管证书时,此字段必须填写托管证书ID
3152
+ # @type SSLId: String
3153
+ # @param Id: 同ruleId
3154
+ # @type Id: String
3155
+
3156
+ attr_accessor :KeepTime, :Domain, :Protocol, :SourceType, :LbType, :SourceList, :KeepEnable, :Status, :RuleId, :CCThreshold, :PrivateKey, :CCEnable, :HttpsToHttpEnable, :CertType, :Cert, :CCLevel, :RuleName, :CCStatus, :VirtualPort, :SSLId, :Id
3157
+
3158
+ def initialize(keeptime=nil, domain=nil, protocol=nil, sourcetype=nil, lbtype=nil, sourcelist=nil, keepenable=nil, status=nil, ruleid=nil, ccthreshold=nil, privatekey=nil, ccenable=nil, httpstohttpenable=nil, certtype=nil, cert=nil, cclevel=nil, rulename=nil, ccstatus=nil, virtualport=nil, sslid=nil, id=nil)
3159
+ @KeepTime = keeptime
3160
+ @Domain = domain
3161
+ @Protocol = protocol
3162
+ @SourceType = sourcetype
3163
+ @LbType = lbtype
3164
+ @SourceList = sourcelist
3165
+ @KeepEnable = keepenable
3166
+ @Status = status
3167
+ @RuleId = ruleid
3168
+ @CCThreshold = ccthreshold
3169
+ @PrivateKey = privatekey
3170
+ @CCEnable = ccenable
3171
+ @HttpsToHttpEnable = httpstohttpenable
3172
+ @CertType = certtype
3173
+ @Cert = cert
3174
+ @CCLevel = cclevel
3175
+ @RuleName = rulename
3176
+ @CCStatus = ccstatus
3177
+ @VirtualPort = virtualport
3178
+ @SSLId = sslid
3179
+ @Id = id
3180
+ end
3181
+
3182
+ def deserialize(params)
3183
+ @KeepTime = params['KeepTime']
3184
+ @Domain = params['Domain']
3185
+ @Protocol = params['Protocol']
3186
+ @SourceType = params['SourceType']
3187
+ @LbType = params['LbType']
3188
+ unless params['SourceList'].nil?
3189
+ @SourceList = []
3190
+ params['SourceList'].each do |i|
3191
+ l4rulesource_tmp = L4RuleSource.new
3192
+ l4rulesource_tmp.deserialize(i)
3193
+ @SourceList << l4rulesource_tmp
3194
+ end
3195
+ end
3196
+ @KeepEnable = params['KeepEnable']
3197
+ @Status = params['Status']
3198
+ @RuleId = params['RuleId']
3199
+ @CCThreshold = params['CCThreshold']
3200
+ @PrivateKey = params['PrivateKey']
3201
+ @CCEnable = params['CCEnable']
3202
+ @HttpsToHttpEnable = params['HttpsToHttpEnable']
3203
+ @CertType = params['CertType']
3204
+ @Cert = params['Cert']
3205
+ @CCLevel = params['CCLevel']
3206
+ @RuleName = params['RuleName']
3207
+ @CCStatus = params['CCStatus']
3208
+ @VirtualPort = params['VirtualPort']
3209
+ @SSLId = params['SSLId']
3210
+ @Id = params['Id']
3211
+ end
3212
+ end
3213
+
3214
+ # 4层转发规则
3215
+ class Layer4Rule < TencentCloud::Common::AbstractModel
3216
+ # @param BackendPort: 源站端口,取值1~65535
3217
+ # @type BackendPort: Integer
3218
+ # @param FrontendPort: 转发端口,取值1~65535
3219
+ # @type FrontendPort: Integer
3220
+ # @param Protocol: 转发协议,取值[
3221
+ # TCP(TCP协议)
3222
+ # UDP(UDP协议)
3223
+ # ]
3224
+ # @type Protocol: String
3225
+ # @param RealServers: 源站列表
3226
+ # @type RealServers: Array
3227
+ # @param InstanceDetails: 规则所属的资源实例
3228
+ # @type InstanceDetails: Array
3229
+
3230
+ attr_accessor :BackendPort, :FrontendPort, :Protocol, :RealServers, :InstanceDetails
3231
+
3232
+ def initialize(backendport=nil, frontendport=nil, protocol=nil, realservers=nil, instancedetails=nil)
3233
+ @BackendPort = backendport
3234
+ @FrontendPort = frontendport
3235
+ @Protocol = protocol
3236
+ @RealServers = realservers
3237
+ @InstanceDetails = instancedetails
3238
+ end
3239
+
3240
+ def deserialize(params)
3241
+ @BackendPort = params['BackendPort']
3242
+ @FrontendPort = params['FrontendPort']
3243
+ @Protocol = params['Protocol']
3244
+ unless params['RealServers'].nil?
3245
+ @RealServers = []
3246
+ params['RealServers'].each do |i|
3247
+ sourceserver_tmp = SourceServer.new
3248
+ sourceserver_tmp.deserialize(i)
3249
+ @RealServers << sourceserver_tmp
3250
+ end
3251
+ end
3252
+ unless params['InstanceDetails'].nil?
3253
+ @InstanceDetails = []
3254
+ params['InstanceDetails'].each do |i|
3255
+ instancerelation_tmp = InstanceRelation.new
3256
+ instancerelation_tmp.deserialize(i)
3257
+ @InstanceDetails << instancerelation_tmp
3258
+ end
3259
+ end
3260
+ end
3261
+ end
3262
+
3263
+ # 7层转发规则
3264
+ class Layer7Rule < TencentCloud::Common::AbstractModel
3265
+ # @param Domain: 域名
3266
+ # @type Domain: String
3267
+ # @param ProxyTypeList: 转发类型列表
3268
+ # @type ProxyTypeList: Array
3269
+ # @param RealServers: 源站列表
3270
+ # @type RealServers: Array
3271
+ # @param InstanceDetails: 规则所属的资源实例
3272
+ # @type InstanceDetails: Array
3273
+
3274
+ attr_accessor :Domain, :ProxyTypeList, :RealServers, :InstanceDetails
3275
+
3276
+ def initialize(domain=nil, proxytypelist=nil, realservers=nil, instancedetails=nil)
3277
+ @Domain = domain
3278
+ @ProxyTypeList = proxytypelist
3279
+ @RealServers = realservers
3280
+ @InstanceDetails = instancedetails
3281
+ end
3282
+
3283
+ def deserialize(params)
3284
+ @Domain = params['Domain']
3285
+ unless params['ProxyTypeList'].nil?
3286
+ @ProxyTypeList = []
3287
+ params['ProxyTypeList'].each do |i|
3288
+ proxytypeinfo_tmp = ProxyTypeInfo.new
3289
+ proxytypeinfo_tmp.deserialize(i)
3290
+ @ProxyTypeList << proxytypeinfo_tmp
3291
+ end
3292
+ end
3293
+ unless params['RealServers'].nil?
3294
+ @RealServers = []
3295
+ params['RealServers'].each do |i|
3296
+ sourceserver_tmp = SourceServer.new
3297
+ sourceserver_tmp.deserialize(i)
3298
+ @RealServers << sourceserver_tmp
3299
+ end
3300
+ end
3301
+ unless params['InstanceDetails'].nil?
3302
+ @InstanceDetails = []
3303
+ params['InstanceDetails'].each do |i|
3304
+ instancerelation_tmp = InstanceRelation.new
3305
+ instancerelation_tmp.deserialize(i)
3306
+ @InstanceDetails << instancerelation_tmp
3307
+ end
3308
+ end
3309
+ end
3310
+ end
3311
+
3312
+ # 域名与协议纬度的CC防护阈值
3313
+ class ListenerCcThreholdConfig < TencentCloud::Common::AbstractModel
3314
+ # @param Domain: 域名
3315
+ # @type Domain: String
3316
+ # @param Protocol: 协议(可取值htttps)
3317
+ # @type Protocol: String
3318
+ # @param CCEnable: 开关状态(0:关闭,1:开启)
3319
+ # @type CCEnable: Integer
3320
+ # @param CCThreshold: cc防护阈值
3321
+ # @type CCThreshold: Integer
3322
+
3323
+ attr_accessor :Domain, :Protocol, :CCEnable, :CCThreshold
3324
+
3325
+ def initialize(domain=nil, protocol=nil, ccenable=nil, ccthreshold=nil)
3326
+ @Domain = domain
3327
+ @Protocol = protocol
3328
+ @CCEnable = ccenable
3329
+ @CCThreshold = ccthreshold
3330
+ end
3331
+
3332
+ def deserialize(params)
3333
+ @Domain = params['Domain']
3334
+ @Protocol = params['Protocol']
3335
+ @CCEnable = params['CCEnable']
3336
+ @CCThreshold = params['CCThreshold']
3337
+ end
3338
+ end
3339
+
3340
+ # ModifyDDoSGeoIPBlockConfig请求参数结构体
3341
+ class ModifyDDoSGeoIPBlockConfigRequest < TencentCloud::Common::AbstractModel
3342
+ # @param InstanceId: 资源实例ID
3343
+ # @type InstanceId: String
3344
+ # @param DDoSGeoIPBlockConfig: DDoS区域封禁配置,填写参数时配置ID不能为空
3345
+ # @type DDoSGeoIPBlockConfig: :class:`Tencentcloud::Antiddos.v20200309.models.DDoSGeoIPBlockConfig`
3346
+
3347
+ attr_accessor :InstanceId, :DDoSGeoIPBlockConfig
3348
+
3349
+ def initialize(instanceid=nil, ddosgeoipblockconfig=nil)
3350
+ @InstanceId = instanceid
3351
+ @DDoSGeoIPBlockConfig = ddosgeoipblockconfig
3352
+ end
3353
+
3354
+ def deserialize(params)
3355
+ @InstanceId = params['InstanceId']
3356
+ unless params['DDoSGeoIPBlockConfig'].nil?
3357
+ @DDoSGeoIPBlockConfig = DDoSGeoIPBlockConfig.new
3358
+ @DDoSGeoIPBlockConfig.deserialize(params['DDoSGeoIPBlockConfig'])
3359
+ end
3360
+ end
3361
+ end
3362
+
3363
+ # ModifyDDoSGeoIPBlockConfig返回参数结构体
3364
+ class ModifyDDoSGeoIPBlockConfigResponse < TencentCloud::Common::AbstractModel
3365
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3366
+ # @type RequestId: String
3367
+
3368
+ attr_accessor :RequestId
3369
+
3370
+ def initialize(requestid=nil)
3371
+ @RequestId = requestid
3372
+ end
3373
+
3374
+ def deserialize(params)
3375
+ @RequestId = params['RequestId']
3376
+ end
3377
+ end
3378
+
3379
+ # ModifyDDoSSpeedLimitConfig请求参数结构体
3380
+ class ModifyDDoSSpeedLimitConfigRequest < TencentCloud::Common::AbstractModel
3381
+ # @param InstanceId: 资源实例ID
3382
+ # @type InstanceId: String
3383
+ # @param DDoSSpeedLimitConfig: 访问限速配置,填写参数时配置ID不能为空
3384
+ # @type DDoSSpeedLimitConfig: :class:`Tencentcloud::Antiddos.v20200309.models.DDoSSpeedLimitConfig`
3385
+
3386
+ attr_accessor :InstanceId, :DDoSSpeedLimitConfig
3387
+
3388
+ def initialize(instanceid=nil, ddosspeedlimitconfig=nil)
3389
+ @InstanceId = instanceid
3390
+ @DDoSSpeedLimitConfig = ddosspeedlimitconfig
3391
+ end
3392
+
3393
+ def deserialize(params)
3394
+ @InstanceId = params['InstanceId']
3395
+ unless params['DDoSSpeedLimitConfig'].nil?
3396
+ @DDoSSpeedLimitConfig = DDoSSpeedLimitConfig.new
3397
+ @DDoSSpeedLimitConfig.deserialize(params['DDoSSpeedLimitConfig'])
3398
+ end
3399
+ end
3400
+ end
3401
+
3402
+ # ModifyDDoSSpeedLimitConfig返回参数结构体
3403
+ class ModifyDDoSSpeedLimitConfigResponse < TencentCloud::Common::AbstractModel
3404
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3405
+ # @type RequestId: String
3406
+
3407
+ attr_accessor :RequestId
3408
+
3409
+ def initialize(requestid=nil)
3410
+ @RequestId = requestid
3411
+ end
3412
+
3413
+ def deserialize(params)
3414
+ @RequestId = params['RequestId']
3415
+ end
3416
+ end
3417
+
3418
+ # ModifyDomainUsrName请求参数结构体
3419
+ class ModifyDomainUsrNameRequest < TencentCloud::Common::AbstractModel
3420
+ # @param DomainName: 用户CNAME
3421
+ # @type DomainName: String
3422
+ # @param DomainUserName: 域名名称
3423
+ # @type DomainUserName: String
3424
+
3425
+ attr_accessor :DomainName, :DomainUserName
3426
+
3427
+ def initialize(domainname=nil, domainusername=nil)
3428
+ @DomainName = domainname
3429
+ @DomainUserName = domainusername
3430
+ end
3431
+
3432
+ def deserialize(params)
3433
+ @DomainName = params['DomainName']
3434
+ @DomainUserName = params['DomainUserName']
3435
+ end
3436
+ end
3437
+
3438
+ # ModifyDomainUsrName返回参数结构体
3439
+ class ModifyDomainUsrNameResponse < TencentCloud::Common::AbstractModel
3440
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3441
+ # @type RequestId: String
3442
+
3443
+ attr_accessor :RequestId
3444
+
3445
+ def initialize(requestid=nil)
3446
+ @RequestId = requestid
3447
+ end
3448
+
3449
+ def deserialize(params)
3450
+ @RequestId = params['RequestId']
3451
+ end
3452
+ end
3453
+
3454
+ # ModifyL7RulesEdge请求参数结构体
3455
+ class ModifyL7RulesEdgeRequest < TencentCloud::Common::AbstractModel
3456
+ # @param Business: 大禹子产品代号(edge表示边界防护产品)
3457
+ # @type Business: String
3458
+ # @param Id: 资源ID
3459
+ # @type Id: String
3460
+ # @param Rule: 规则
3461
+ # @type Rule: :class:`Tencentcloud::Antiddos.v20200309.models.L7RuleEntry`
3462
+
3463
+ attr_accessor :Business, :Id, :Rule
3464
+
3465
+ def initialize(business=nil, id=nil, rule=nil)
3466
+ @Business = business
3467
+ @Id = id
3468
+ @Rule = rule
3469
+ end
3470
+
3471
+ def deserialize(params)
3472
+ @Business = params['Business']
3473
+ @Id = params['Id']
3474
+ unless params['Rule'].nil?
3475
+ @Rule = L7RuleEntry.new
3476
+ @Rule.deserialize(params['Rule'])
3477
+ end
3478
+ end
3479
+ end
3480
+
3481
+ # ModifyL7RulesEdge返回参数结构体
3482
+ class ModifyL7RulesEdgeResponse < TencentCloud::Common::AbstractModel
3483
+ # @param Success: 成功码
3484
+ # @type Success: :class:`Tencentcloud::Antiddos.v20200309.models.SuccessCode`
3485
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3486
+ # @type RequestId: String
3487
+
3488
+ attr_accessor :Success, :RequestId
3489
+
3490
+ def initialize(success=nil, requestid=nil)
3491
+ @Success = success
3492
+ @RequestId = requestid
3493
+ end
3494
+
3495
+ def deserialize(params)
3496
+ unless params['Success'].nil?
3497
+ @Success = SuccessCode.new
3498
+ @Success.deserialize(params['Success'])
3499
+ end
3500
+ @RequestId = params['RequestId']
3501
+ end
3502
+ end
3503
+
3504
+ # ModifyPacketFilterConfig请求参数结构体
3505
+ class ModifyPacketFilterConfigRequest < TencentCloud::Common::AbstractModel
3506
+ # @param InstanceId: 资源实例ID
3507
+ # @type InstanceId: String
3508
+ # @param PacketFilterConfig: 特征过滤配置
3509
+ # @type PacketFilterConfig: :class:`Tencentcloud::Antiddos.v20200309.models.PacketFilterConfig`
3510
+
3511
+ attr_accessor :InstanceId, :PacketFilterConfig
3512
+
3513
+ def initialize(instanceid=nil, packetfilterconfig=nil)
3514
+ @InstanceId = instanceid
3515
+ @PacketFilterConfig = packetfilterconfig
3516
+ end
3517
+
3518
+ def deserialize(params)
3519
+ @InstanceId = params['InstanceId']
3520
+ unless params['PacketFilterConfig'].nil?
3521
+ @PacketFilterConfig = PacketFilterConfig.new
3522
+ @PacketFilterConfig.deserialize(params['PacketFilterConfig'])
3523
+ end
3524
+ end
3525
+ end
3526
+
3527
+ # ModifyPacketFilterConfig返回参数结构体
3528
+ class ModifyPacketFilterConfigResponse < TencentCloud::Common::AbstractModel
3529
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3530
+ # @type RequestId: String
3531
+
3532
+ attr_accessor :RequestId
3533
+
3534
+ def initialize(requestid=nil)
3535
+ @RequestId = requestid
3536
+ end
3537
+
3538
+ def deserialize(params)
3539
+ @RequestId = params['RequestId']
3540
+ end
3541
+ end
3542
+
3543
+ # 套餐包信息
3544
+ class PackInfo < TencentCloud::Common::AbstractModel
3545
+ # @param PackType: 套餐包的类型,取值[
3546
+ # staticpack:高防IP三网套餐包
3547
+ # insurance:保险套餐包
3548
+ # ]
3549
+ # @type PackType: String
3550
+ # @param PackId: 套餐包的ID
3551
+ # @type PackId: String
3552
+
3553
+ attr_accessor :PackType, :PackId
3554
+
3555
+ def initialize(packtype=nil, packid=nil)
3556
+ @PackType = packtype
3557
+ @PackId = packid
3558
+ end
3559
+
3560
+ def deserialize(params)
3561
+ @PackType = params['PackType']
3562
+ @PackId = params['PackId']
3563
+ end
3564
+ end
3565
+
3566
+ # 特征过滤配置
3567
+ class PacketFilterConfig < TencentCloud::Common::AbstractModel
3568
+ # @param Protocol: 协议,取值[tcp udp icmp all]
3569
+ # @type Protocol: String
3570
+ # @param SportStart: 起始源端口,取值0~65535
3571
+ # @type SportStart: Integer
3572
+ # @param SportEnd: 结束源端口,取值1~65535,必须大于等于起始源端口
3573
+ # @type SportEnd: Integer
3574
+ # @param DportStart: 起始目的端口,取值0~65535
3575
+ # @type DportStart: Integer
3576
+ # @param DportEnd: 结束目的端口,取值1~65535,必须大于等于起始目的端口
3577
+ # @type DportEnd: Integer
3578
+ # @param PktlenMin: 最小报文长度,取值1-1500
3579
+ # @type PktlenMin: Integer
3580
+ # @param PktlenMax: 最大报文长度,取值1-1500,必须大于等于最小报文长度
3581
+ # @type PktlenMax: Integer
3582
+ # @param Action: 动作,取值[
3583
+ # drop(丢弃)
3584
+ # transmit(放行)
3585
+ # drop_black(丢弃并拉黑)
3586
+ # drop_rst(拦截)
3587
+ # drop_black_rst(拦截并拉黑)
3588
+ # forward(继续防护)
3589
+ # ]
3590
+ # @type Action: String
3591
+ # @param MatchBegin: 检测位置,取值[
3592
+ # begin_l3(IP头)
3593
+ # begin_l4(TCP/UDP头)
3594
+ # begin_l5(T载荷)
3595
+ # no_match(不匹配)
3596
+ # ]
3597
+ # @type MatchBegin: String
3598
+ # @param MatchType: 检测类型,取值[
3599
+ # sunday(关键字)
3600
+ # pcre(正则表达式)
3601
+ # ]
3602
+ # @type MatchType: String
3603
+ # @param Str: 检测值,关键字符串或正则表达式,取值[
3604
+ # 当检测类型为sunday时,请填写字符串或者16进制字节码,例如\x313233对应的是字符串"123"的16进制字节码;
3605
+ # 当检测类型为pcre时, 请填写正则表达式字符串;
3606
+ # ]
3607
+ # @type Str: String
3608
+ # @param Depth: 从检测位置开始的检测深度,取值[0,1500]
3609
+ # @type Depth: Integer
3610
+ # @param Offset: 从检测位置开始的偏移量,取值范围[0,Depth]
3611
+ # @type Offset: Integer
3612
+ # @param IsNot: 是否包含检测值,取值[
3613
+ # 0(包含)
3614
+ # 1(不包含)
3615
+ # ]
3616
+ # @type IsNot: Integer
3617
+ # @param MatchLogic: 当有第二个检测条件时,与第一检测条件的且或关系,取值[
3618
+ # and(且的关系)
3619
+ # none(当没有第二个检测条件时填写此值)
3620
+ # ]
3621
+ # @type MatchLogic: String
3622
+ # @param MatchBegin2: 第二个检测位置,取值[
3623
+ # begin_l5(载荷)
3624
+ # no_match(不匹配)
3625
+ # ]
3626
+ # @type MatchBegin2: String
3627
+ # @param MatchType2: 第二个检测类型,取值[
3628
+ # sunday(关键字)
3629
+ # pcre(正则表达式)
3630
+ # ]
3631
+ # @type MatchType2: String
3632
+ # @param Str2: 第二个检测值,关键字符串或正则表达式,取值[
3633
+ # 当检测类型为sunday时,请填写字符串或者16进制字节码,例如\x313233对应的是字符串"123"的16进制字节码;
3634
+ # 当检测类型为pcre时, 请填写正则表达式字符串;
3635
+ # ]
3636
+ # @type Str2: String
3637
+ # @param Depth2: 从第二个检测位置开始的第二个检测深度,取值[0,1500]
3638
+ # @type Depth2: Integer
3639
+ # @param Offset2: 从第二个检测位置开始的偏移量,取值范围[0,Depth2]
3640
+ # @type Offset2: Integer
3641
+ # @param IsNot2: 第二个检测是否包含检测值,取值[
3642
+ # 0(包含)
3643
+ # 1(不包含)
3644
+ # ]
3645
+ # @type IsNot2: Integer
3646
+ # @param Id: 特征过滤配置添加成功后自动生成的规则ID,当添加新特征过滤配置时,此字段不用填写;
3647
+ # @type Id: String
3648
+
3649
+ attr_accessor :Protocol, :SportStart, :SportEnd, :DportStart, :DportEnd, :PktlenMin, :PktlenMax, :Action, :MatchBegin, :MatchType, :Str, :Depth, :Offset, :IsNot, :MatchLogic, :MatchBegin2, :MatchType2, :Str2, :Depth2, :Offset2, :IsNot2, :Id
3650
+
3651
+ def initialize(protocol=nil, sportstart=nil, sportend=nil, dportstart=nil, dportend=nil, pktlenmin=nil, pktlenmax=nil, action=nil, matchbegin=nil, matchtype=nil, str=nil, depth=nil, offset=nil, isnot=nil, matchlogic=nil, matchbegin2=nil, matchtype2=nil, str2=nil, depth2=nil, offset2=nil, isnot2=nil, id=nil)
3652
+ @Protocol = protocol
3653
+ @SportStart = sportstart
3654
+ @SportEnd = sportend
3655
+ @DportStart = dportstart
3656
+ @DportEnd = dportend
3657
+ @PktlenMin = pktlenmin
3658
+ @PktlenMax = pktlenmax
3659
+ @Action = action
3660
+ @MatchBegin = matchbegin
3661
+ @MatchType = matchtype
3662
+ @Str = str
3663
+ @Depth = depth
3664
+ @Offset = offset
3665
+ @IsNot = isnot
3666
+ @MatchLogic = matchlogic
3667
+ @MatchBegin2 = matchbegin2
3668
+ @MatchType2 = matchtype2
3669
+ @Str2 = str2
3670
+ @Depth2 = depth2
3671
+ @Offset2 = offset2
3672
+ @IsNot2 = isnot2
3673
+ @Id = id
3674
+ end
3675
+
3676
+ def deserialize(params)
3677
+ @Protocol = params['Protocol']
3678
+ @SportStart = params['SportStart']
3679
+ @SportEnd = params['SportEnd']
3680
+ @DportStart = params['DportStart']
3681
+ @DportEnd = params['DportEnd']
3682
+ @PktlenMin = params['PktlenMin']
3683
+ @PktlenMax = params['PktlenMax']
3684
+ @Action = params['Action']
3685
+ @MatchBegin = params['MatchBegin']
3686
+ @MatchType = params['MatchType']
3687
+ @Str = params['Str']
3688
+ @Depth = params['Depth']
3689
+ @Offset = params['Offset']
3690
+ @IsNot = params['IsNot']
3691
+ @MatchLogic = params['MatchLogic']
3692
+ @MatchBegin2 = params['MatchBegin2']
3693
+ @MatchType2 = params['MatchType2']
3694
+ @Str2 = params['Str2']
3695
+ @Depth2 = params['Depth2']
3696
+ @Offset2 = params['Offset2']
3697
+ @IsNot2 = params['IsNot2']
3698
+ @Id = params['Id']
3699
+ end
3700
+ end
3701
+
3702
+ # 特征过滤相关信息
3703
+ class PacketFilterRelation < TencentCloud::Common::AbstractModel
3704
+ # @param PacketFilterConfig: 特征过滤配置
3705
+ # @type PacketFilterConfig: :class:`Tencentcloud::Antiddos.v20200309.models.PacketFilterConfig`
3706
+ # @param InstanceDetailList: 特征过滤配置所属的实例
3707
+ # @type InstanceDetailList: Array
3708
+
3709
+ attr_accessor :PacketFilterConfig, :InstanceDetailList
3710
+
3711
+ def initialize(packetfilterconfig=nil, instancedetaillist=nil)
3712
+ @PacketFilterConfig = packetfilterconfig
3713
+ @InstanceDetailList = instancedetaillist
3714
+ end
3715
+
3716
+ def deserialize(params)
3717
+ unless params['PacketFilterConfig'].nil?
3718
+ @PacketFilterConfig = PacketFilterConfig.new
3719
+ @PacketFilterConfig.deserialize(params['PacketFilterConfig'])
3720
+ end
3721
+ unless params['InstanceDetailList'].nil?
3722
+ @InstanceDetailList = []
3723
+ params['InstanceDetailList'].each do |i|
3724
+ instancerelation_tmp = InstanceRelation.new
3725
+ instancerelation_tmp.deserialize(i)
3726
+ @InstanceDetailList << instancerelation_tmp
3727
+ end
3728
+ end
3729
+ end
3730
+ end
3731
+
3732
+ # 端口段信息
3733
+ class PortSegment < TencentCloud::Common::AbstractModel
3734
+ # @param BeginPort: 起始端口,取值1~65535
3735
+ # @type BeginPort: Integer
3736
+ # @param EndPort: 结束端口,取值1~65535,必须不小于起始端口
3737
+ # @type EndPort: Integer
3738
+
3739
+ attr_accessor :BeginPort, :EndPort
3740
+
3741
+ def initialize(beginport=nil, endport=nil)
3742
+ @BeginPort = beginport
3743
+ @EndPort = endport
3744
+ end
3745
+
3746
+ def deserialize(params)
3747
+ @BeginPort = params['BeginPort']
3748
+ @EndPort = params['EndPort']
3749
+ end
3750
+ end
3751
+
3752
+ # 防护阈值配置相关信息
3753
+ class ProtectThresholdRelation < TencentCloud::Common::AbstractModel
3754
+ # @param DDoSLevel: DDoS防护等级,取值[
3755
+ # low(宽松)
3756
+ # middle(适中)
3757
+ # high(严格)
3758
+ # ]
3759
+ # @type DDoSLevel: String
3760
+ # @param DDoSThreshold: DDoS清洗阈值,单位Mbps
3761
+ # @type DDoSThreshold: Integer
3762
+ # @param DDoSAI: DDoS的AI防护开关,取值[
3763
+ # on(开启)
3764
+ # off(关闭)
3765
+ # ]
3766
+ # @type DDoSAI: String
3767
+ # @param CCEnable: CC清洗开关,取值[
3768
+ # 0(关闭)
3769
+ # 1(开启)
3770
+ # ]
3771
+ # @type CCEnable: Integer
3772
+ # @param CCThreshold: CC清洗阈值,单位QPS
3773
+ # @type CCThreshold: Integer
3774
+ # @param InstanceDetailList: 所属的资源实例
3775
+ # @type InstanceDetailList: Array
3776
+ # @param ListenerCcThresholdList: 域名与协议纬度的防护阈值
3777
+ # @type ListenerCcThresholdList: Array
3778
+
3779
+ attr_accessor :DDoSLevel, :DDoSThreshold, :DDoSAI, :CCEnable, :CCThreshold, :InstanceDetailList, :ListenerCcThresholdList
3780
+
3781
+ def initialize(ddoslevel=nil, ddosthreshold=nil, ddosai=nil, ccenable=nil, ccthreshold=nil, instancedetaillist=nil, listenerccthresholdlist=nil)
3782
+ @DDoSLevel = ddoslevel
3783
+ @DDoSThreshold = ddosthreshold
3784
+ @DDoSAI = ddosai
3785
+ @CCEnable = ccenable
3786
+ @CCThreshold = ccthreshold
3787
+ @InstanceDetailList = instancedetaillist
3788
+ @ListenerCcThresholdList = listenerccthresholdlist
3789
+ end
3790
+
3791
+ def deserialize(params)
3792
+ @DDoSLevel = params['DDoSLevel']
3793
+ @DDoSThreshold = params['DDoSThreshold']
3794
+ @DDoSAI = params['DDoSAI']
3795
+ @CCEnable = params['CCEnable']
3796
+ @CCThreshold = params['CCThreshold']
3797
+ unless params['InstanceDetailList'].nil?
3798
+ @InstanceDetailList = []
3799
+ params['InstanceDetailList'].each do |i|
3800
+ instancerelation_tmp = InstanceRelation.new
3801
+ instancerelation_tmp.deserialize(i)
3802
+ @InstanceDetailList << instancerelation_tmp
3803
+ end
3804
+ end
3805
+ unless params['ListenerCcThresholdList'].nil?
3806
+ @ListenerCcThresholdList = []
3807
+ params['ListenerCcThresholdList'].each do |i|
3808
+ listenerccthreholdconfig_tmp = ListenerCcThreholdConfig.new
3809
+ listenerccthreholdconfig_tmp.deserialize(i)
3810
+ @ListenerCcThresholdList << listenerccthreholdconfig_tmp
3811
+ end
3812
+ end
3813
+ end
3814
+ end
3815
+
3816
+ # 协议封禁配置
3817
+ class ProtocolBlockConfig < TencentCloud::Common::AbstractModel
3818
+ # @param DropTcp: TCP封禁,取值[0(封禁关),1(封禁开)]
3819
+ # @type DropTcp: Integer
3820
+ # @param DropUdp: UDP封禁,取值[0(封禁关),1(封禁开)]
3821
+ # @type DropUdp: Integer
3822
+ # @param DropIcmp: ICMP封禁,取值[0(封禁关),1(封禁开)]
3823
+ # @type DropIcmp: Integer
3824
+ # @param DropOther: 其他协议封禁,取值[0(封禁关),1(封禁开)]
3825
+ # @type DropOther: Integer
3826
+ # @param CheckExceptNullConnect: 异常空连接防护,取值[0(防护关),1(防护开)]
3827
+ # @type CheckExceptNullConnect: Integer
3828
+
3829
+ attr_accessor :DropTcp, :DropUdp, :DropIcmp, :DropOther, :CheckExceptNullConnect
3830
+
3831
+ def initialize(droptcp=nil, dropudp=nil, dropicmp=nil, dropother=nil, checkexceptnullconnect=nil)
3832
+ @DropTcp = droptcp
3833
+ @DropUdp = dropudp
3834
+ @DropIcmp = dropicmp
3835
+ @DropOther = dropother
3836
+ @CheckExceptNullConnect = checkexceptnullconnect
3837
+ end
3838
+
3839
+ def deserialize(params)
3840
+ @DropTcp = params['DropTcp']
3841
+ @DropUdp = params['DropUdp']
3842
+ @DropIcmp = params['DropIcmp']
3843
+ @DropOther = params['DropOther']
3844
+ @CheckExceptNullConnect = params['CheckExceptNullConnect']
3845
+ end
3846
+ end
3847
+
3848
+ # 协议封禁相关信息
3849
+ class ProtocolBlockRelation < TencentCloud::Common::AbstractModel
3850
+ # @param ProtocolBlockConfig: 协议封禁配置
3851
+ # @type ProtocolBlockConfig: :class:`Tencentcloud::Antiddos.v20200309.models.ProtocolBlockConfig`
3852
+ # @param InstanceDetailList: 协议封禁配置所属的实例
3853
+ # @type InstanceDetailList: Array
3854
+
3855
+ attr_accessor :ProtocolBlockConfig, :InstanceDetailList
3856
+
3857
+ def initialize(protocolblockconfig=nil, instancedetaillist=nil)
3858
+ @ProtocolBlockConfig = protocolblockconfig
3859
+ @InstanceDetailList = instancedetaillist
3860
+ end
3861
+
3862
+ def deserialize(params)
3863
+ unless params['ProtocolBlockConfig'].nil?
3864
+ @ProtocolBlockConfig = ProtocolBlockConfig.new
3865
+ @ProtocolBlockConfig.deserialize(params['ProtocolBlockConfig'])
3866
+ end
3867
+ unless params['InstanceDetailList'].nil?
3868
+ @InstanceDetailList = []
3869
+ params['InstanceDetailList'].each do |i|
3870
+ instancerelation_tmp = InstanceRelation.new
3871
+ instancerelation_tmp.deserialize(i)
3872
+ @InstanceDetailList << instancerelation_tmp
3873
+ end
3874
+ end
3875
+ end
3876
+ end
3877
+
3878
+ # Protocol、Port参数
3879
+ class ProtocolPort < TencentCloud::Common::AbstractModel
3880
+ # @param Protocol: 协议(tcp;udp)
3881
+ # @type Protocol: String
3882
+ # @param Port: 端口
3883
+ # @type Port: Integer
3884
+
3885
+ attr_accessor :Protocol, :Port
3886
+
3887
+ def initialize(protocol=nil, port=nil)
3888
+ @Protocol = protocol
3889
+ @Port = port
3890
+ end
3891
+
3892
+ def deserialize(params)
3893
+ @Protocol = params['Protocol']
3894
+ @Port = params['Port']
3895
+ end
3896
+ end
3897
+
3898
+ # 转发类型
3899
+ class ProxyTypeInfo < TencentCloud::Common::AbstractModel
3900
+ # @param ProxyPorts: 转发监听端口列表,端口取值1~65535
3901
+ # @type ProxyPorts: Array
3902
+ # @param ProxyType: 转发协议,取值[
3903
+ # http(HTTP协议)
3904
+ # https(HTTPS协议)
3905
+ # ]
3906
+ # @type ProxyType: String
3907
+
3908
+ attr_accessor :ProxyPorts, :ProxyType
3909
+
3910
+ def initialize(proxyports=nil, proxytype=nil)
3911
+ @ProxyPorts = proxyports
3912
+ @ProxyType = proxytype
3913
+ end
3914
+
3915
+ def deserialize(params)
3916
+ @ProxyPorts = params['ProxyPorts']
3917
+ @ProxyType = params['ProxyType']
3918
+ end
3919
+ end
3920
+
3921
+ # 地域信息
3922
+ class RegionInfo < TencentCloud::Common::AbstractModel
3923
+ # @param Region: 地域名称,例如,ap-guangzhou
3924
+ # @type Region: String
3925
+
3926
+ attr_accessor :Region
3927
+
3928
+ def initialize(region=nil)
3929
+ @Region = region
3930
+ end
3931
+
3932
+ def deserialize(params)
3933
+ @Region = params['Region']
3934
+ end
3935
+ end
3936
+
3937
+ # 调度域名信息
3938
+ class SchedulingDomainInfo < TencentCloud::Common::AbstractModel
3939
+ # @param Domain: 调度域名
3940
+ # @type Domain: String
3941
+ # @param LineIPList: 线路IP列表
3942
+ # @type LineIPList: Array
3943
+ # @param Method: 调度方式,当前仅支持优先级的方式,取值[priority]
3944
+ # @type Method: String
3945
+ # @param TTL: 调度域名解析记录的TTL值
3946
+ # @type TTL: Integer
3947
+ # @param Status: 运行状态,取值[
3948
+ # 0:未运行
3949
+ # 1:运行中
3950
+ # 2:运行异常
3951
+ # ]
3952
+ # @type Status: Integer
3953
+ # @param CreatedTime: 创建时间
3954
+ # @type CreatedTime: String
3955
+ # @param ModifyTime: 最后修改时间
3956
+ # @type ModifyTime: String
3957
+ # @param UsrDomainName: 域名名称
3958
+ # 注意:此字段可能返回 null,表示取不到有效值。
3959
+ # @type UsrDomainName: String
3960
+
3961
+ attr_accessor :Domain, :LineIPList, :Method, :TTL, :Status, :CreatedTime, :ModifyTime, :UsrDomainName
3962
+
3963
+ def initialize(domain=nil, lineiplist=nil, method=nil, ttl=nil, status=nil, createdtime=nil, modifytime=nil, usrdomainname=nil)
3964
+ @Domain = domain
3965
+ @LineIPList = lineiplist
3966
+ @Method = method
3967
+ @TTL = ttl
3968
+ @Status = status
3969
+ @CreatedTime = createdtime
3970
+ @ModifyTime = modifytime
3971
+ @UsrDomainName = usrdomainname
3972
+ end
3973
+
3974
+ def deserialize(params)
3975
+ @Domain = params['Domain']
3976
+ unless params['LineIPList'].nil?
3977
+ @LineIPList = []
3978
+ params['LineIPList'].each do |i|
3979
+ iplineinfo_tmp = IPLineInfo.new
3980
+ iplineinfo_tmp.deserialize(i)
3981
+ @LineIPList << iplineinfo_tmp
3982
+ end
3983
+ end
3984
+ @Method = params['Method']
3985
+ @TTL = params['TTL']
3986
+ @Status = params['Status']
3987
+ @CreatedTime = params['CreatedTime']
3988
+ @ModifyTime = params['ModifyTime']
3989
+ @UsrDomainName = params['UsrDomainName']
3990
+ end
3991
+ end
3992
+
3993
+ # 源站信息
3994
+ class SourceServer < TencentCloud::Common::AbstractModel
3995
+ # @param RealServer: 源站的地址(IP或者域名)
3996
+ # @type RealServer: String
3997
+ # @param RsType: 源站的地址类型,取值[
3998
+ # 1(域名地址)
3999
+ # 2(IP地址)
4000
+ # ]
4001
+ # @type RsType: Integer
4002
+ # @param Weight: 源站的回源权重,取值1~100
4003
+ # @type Weight: Integer
4004
+
4005
+ attr_accessor :RealServer, :RsType, :Weight
4006
+
4007
+ def initialize(realserver=nil, rstype=nil, weight=nil)
4008
+ @RealServer = realserver
4009
+ @RsType = rstype
4010
+ @Weight = weight
4011
+ end
4012
+
4013
+ def deserialize(params)
4014
+ @RealServer = params['RealServer']
4015
+ @RsType = params['RsType']
4016
+ @Weight = params['Weight']
4017
+ end
4018
+ end
4019
+
4020
+ # 限速值类型,例如:包速率pps、带宽bps
4021
+ class SpeedValue < TencentCloud::Common::AbstractModel
4022
+ # @param Type: 限速值类型,取值[
4023
+ # 1(包速率pps)
4024
+ # 2(带宽bps)
4025
+ # ]
4026
+ # @type Type: Integer
4027
+ # @param Value: 值大小
4028
+ # @type Value: Integer
4029
+
4030
+ attr_accessor :Type, :Value
4031
+
4032
+ def initialize(type=nil, value=nil)
4033
+ @Type = type
4034
+ @Value = value
4035
+ end
4036
+
4037
+ def deserialize(params)
4038
+ @Type = params['Type']
4039
+ @Value = params['Value']
4040
+ end
4041
+ end
4042
+
4043
+ # 三网高防套餐详情
4044
+ class StaticPackRelation < TencentCloud::Common::AbstractModel
4045
+ # @param ProtectBandwidth: 保底带宽
4046
+ # 注意:此字段可能返回 null,表示取不到有效值。
4047
+ # @type ProtectBandwidth: Integer
4048
+ # @param NormalBandwidth: 业务带宽
4049
+ # 注意:此字段可能返回 null,表示取不到有效值。
4050
+ # @type NormalBandwidth: Integer
4051
+ # @param ForwardRulesLimit: 转发规则
4052
+ # 注意:此字段可能返回 null,表示取不到有效值。
4053
+ # @type ForwardRulesLimit: Integer
4054
+ # @param AutoRenewFlag: 自动续费标记
4055
+ # 注意:此字段可能返回 null,表示取不到有效值。
4056
+ # @type AutoRenewFlag: Integer
4057
+ # @param CurDeadline: 到期时间
4058
+ # 注意:此字段可能返回 null,表示取不到有效值。
4059
+ # @type CurDeadline: String
4060
+
4061
+ attr_accessor :ProtectBandwidth, :NormalBandwidth, :ForwardRulesLimit, :AutoRenewFlag, :CurDeadline
4062
+
4063
+ def initialize(protectbandwidth=nil, normalbandwidth=nil, forwardruleslimit=nil, autorenewflag=nil, curdeadline=nil)
4064
+ @ProtectBandwidth = protectbandwidth
4065
+ @NormalBandwidth = normalbandwidth
4066
+ @ForwardRulesLimit = forwardruleslimit
4067
+ @AutoRenewFlag = autorenewflag
4068
+ @CurDeadline = curdeadline
4069
+ end
4070
+
4071
+ def deserialize(params)
4072
+ @ProtectBandwidth = params['ProtectBandwidth']
4073
+ @NormalBandwidth = params['NormalBandwidth']
4074
+ @ForwardRulesLimit = params['ForwardRulesLimit']
4075
+ @AutoRenewFlag = params['AutoRenewFlag']
4076
+ @CurDeadline = params['CurDeadline']
4077
+ end
4078
+ end
4079
+
4080
+ # 操作返回码,只用于返回成功的情况
4081
+ class SuccessCode < TencentCloud::Common::AbstractModel
4082
+ # @param Message: 描述
4083
+ # @type Message: String
4084
+ # @param Code: 成功/错误码
4085
+ # @type Code: String
4086
+
4087
+ attr_accessor :Message, :Code
4088
+
4089
+ def initialize(message=nil, code=nil)
4090
+ @Message = message
4091
+ @Code = code
4092
+ end
4093
+
4094
+ def deserialize(params)
4095
+ @Message = params['Message']
4096
+ @Code = params['Code']
4097
+ end
4098
+ end
4099
+
4100
+ # SwitchWaterPrintConfig请求参数结构体
4101
+ class SwitchWaterPrintConfigRequest < TencentCloud::Common::AbstractModel
4102
+ # @param InstanceId: 资源实例ID
4103
+ # @type InstanceId: String
4104
+ # @param OpenStatus: 水印开启/关闭状态,1表示开启;0表示关闭
4105
+ # @type OpenStatus: Integer
4106
+
4107
+ attr_accessor :InstanceId, :OpenStatus
4108
+
4109
+ def initialize(instanceid=nil, openstatus=nil)
4110
+ @InstanceId = instanceid
4111
+ @OpenStatus = openstatus
4112
+ end
4113
+
4114
+ def deserialize(params)
4115
+ @InstanceId = params['InstanceId']
4116
+ @OpenStatus = params['OpenStatus']
4117
+ end
4118
+ end
4119
+
4120
+ # SwitchWaterPrintConfig返回参数结构体
4121
+ class SwitchWaterPrintConfigResponse < TencentCloud::Common::AbstractModel
4122
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4123
+ # @type RequestId: String
4124
+
4125
+ attr_accessor :RequestId
4126
+
4127
+ def initialize(requestid=nil)
4128
+ @RequestId = requestid
4129
+ end
4130
+
4131
+ def deserialize(params)
4132
+ @RequestId = params['RequestId']
4133
+ end
4134
+ end
4135
+
4136
+ # 水印防护配置
4137
+ class WaterPrintConfig < TencentCloud::Common::AbstractModel
4138
+ # @param Offset: 水印偏移量,取值范围[0, 100)
4139
+ # @type Offset: Integer
4140
+ # @param OpenStatus: 是否开启,取值[
4141
+ # 0(手动开启)
4142
+ # 1(立即运行)
4143
+ # ]
4144
+ # @type OpenStatus: Integer
4145
+ # @param Listeners: 水印所属的转发监听器列表
4146
+ # @type Listeners: Array
4147
+ # @param Keys: 水印添加成功后生成的水印密钥列表,一条水印最少1个密钥,最多2个密钥
4148
+ # @type Keys: Array
4149
+ # @param Verify: 水印检查模式, 取值[
4150
+ # checkall(普通模式)
4151
+ # shortfpcheckall(精简模式)
4152
+ # ]
4153
+ # @type Verify: String
4154
+
4155
+ attr_accessor :Offset, :OpenStatus, :Listeners, :Keys, :Verify
4156
+
4157
+ def initialize(offset=nil, openstatus=nil, listeners=nil, keys=nil, verify=nil)
4158
+ @Offset = offset
4159
+ @OpenStatus = openstatus
4160
+ @Listeners = listeners
4161
+ @Keys = keys
4162
+ @Verify = verify
4163
+ end
4164
+
4165
+ def deserialize(params)
4166
+ @Offset = params['Offset']
4167
+ @OpenStatus = params['OpenStatus']
4168
+ unless params['Listeners'].nil?
4169
+ @Listeners = []
4170
+ params['Listeners'].each do |i|
4171
+ forwardlistener_tmp = ForwardListener.new
4172
+ forwardlistener_tmp.deserialize(i)
4173
+ @Listeners << forwardlistener_tmp
4174
+ end
4175
+ end
4176
+ unless params['Keys'].nil?
4177
+ @Keys = []
4178
+ params['Keys'].each do |i|
4179
+ waterprintkey_tmp = WaterPrintKey.new
4180
+ waterprintkey_tmp.deserialize(i)
4181
+ @Keys << waterprintkey_tmp
4182
+ end
4183
+ end
4184
+ @Verify = params['Verify']
4185
+ end
4186
+ end
4187
+
4188
+ # 生成的水印密钥
4189
+ class WaterPrintKey < TencentCloud::Common::AbstractModel
4190
+ # @param KeyVersion: 密钥版本号
4191
+ # @type KeyVersion: String
4192
+ # @param KeyContent: 密钥内容
4193
+ # @type KeyContent: String
4194
+ # @param KeyId: 密钥ID
4195
+ # @type KeyId: String
4196
+ # @param KeyOpenStatus: 密钥启用状态,只有一个取值1(启用)
4197
+ # @type KeyOpenStatus: Integer
4198
+ # @param CreateTime: 密钥生成时间
4199
+ # @type CreateTime: String
4200
+
4201
+ attr_accessor :KeyVersion, :KeyContent, :KeyId, :KeyOpenStatus, :CreateTime
4202
+
4203
+ def initialize(keyversion=nil, keycontent=nil, keyid=nil, keyopenstatus=nil, createtime=nil)
4204
+ @KeyVersion = keyversion
4205
+ @KeyContent = keycontent
4206
+ @KeyId = keyid
4207
+ @KeyOpenStatus = keyopenstatus
4208
+ @CreateTime = createtime
4209
+ end
4210
+
4211
+ def deserialize(params)
4212
+ @KeyVersion = params['KeyVersion']
4213
+ @KeyContent = params['KeyContent']
4214
+ @KeyId = params['KeyId']
4215
+ @KeyOpenStatus = params['KeyOpenStatus']
4216
+ @CreateTime = params['CreateTime']
4217
+ end
4218
+ end
4219
+
4220
+ # 水印配置相关信息
4221
+ class WaterPrintRelation < TencentCloud::Common::AbstractModel
4222
+ # @param WaterPrintConfig: 水印配置
4223
+ # @type WaterPrintConfig: :class:`Tencentcloud::Antiddos.v20200309.models.WaterPrintConfig`
4224
+ # @param InstanceDetailList: 水印配置所属的资源实例
4225
+ # @type InstanceDetailList: Array
4226
+
4227
+ attr_accessor :WaterPrintConfig, :InstanceDetailList
4228
+
4229
+ def initialize(waterprintconfig=nil, instancedetaillist=nil)
4230
+ @WaterPrintConfig = waterprintconfig
4231
+ @InstanceDetailList = instancedetaillist
4232
+ end
4233
+
4234
+ def deserialize(params)
4235
+ unless params['WaterPrintConfig'].nil?
4236
+ @WaterPrintConfig = WaterPrintConfig.new
4237
+ @WaterPrintConfig.deserialize(params['WaterPrintConfig'])
4238
+ end
4239
+ unless params['InstanceDetailList'].nil?
4240
+ @InstanceDetailList = []
4241
+ params['InstanceDetailList'].each do |i|
4242
+ instancerelation_tmp = InstanceRelation.new
4243
+ instancerelation_tmp.deserialize(i)
4244
+ @InstanceDetailList << instancerelation_tmp
4245
+ end
4246
+ end
4247
+ end
4248
+ end
4249
+
4250
+ end
4251
+ end
4252
+ end
4253
+