tencentcloud-sdk-cfw 1.0.200

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,4857 @@
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 Cfw
19
+ module V20190904
20
+ # 访问控制列表对象
21
+ class AcListsData < TencentCloud::Common::AbstractModel
22
+ # @param Id: 规则id
23
+ # @type Id: Integer
24
+ # @param SourceIp: 访问源
25
+ # 注意:此字段可能返回 null,表示取不到有效值。
26
+ # @type SourceIp: String
27
+ # @param TargetIp: 访问目的
28
+ # 注意:此字段可能返回 null,表示取不到有效值。
29
+ # @type TargetIp: String
30
+ # @param Protocol: 协议
31
+ # 注意:此字段可能返回 null,表示取不到有效值。
32
+ # @type Protocol: String
33
+ # @param Port: 端口
34
+ # 注意:此字段可能返回 null,表示取不到有效值。
35
+ # @type Port: String
36
+ # @param Strategy: 策略
37
+ # 注意:此字段可能返回 null,表示取不到有效值。
38
+ # @type Strategy: Integer
39
+ # @param Detail: 描述
40
+ # 注意:此字段可能返回 null,表示取不到有效值。
41
+ # @type Detail: String
42
+ # @param Count: 命中次数
43
+ # @type Count: Integer
44
+ # @param OrderIndex: 执行顺序
45
+ # @type OrderIndex: Integer
46
+ # @param LogId: 告警规则id
47
+ # 注意:此字段可能返回 null,表示取不到有效值。
48
+ # @type LogId: String
49
+
50
+ attr_accessor :Id, :SourceIp, :TargetIp, :Protocol, :Port, :Strategy, :Detail, :Count, :OrderIndex, :LogId
51
+
52
+ def initialize(id=nil, sourceip=nil, targetip=nil, protocol=nil, port=nil, strategy=nil, detail=nil, count=nil, orderindex=nil, logid=nil)
53
+ @Id = id
54
+ @SourceIp = sourceip
55
+ @TargetIp = targetip
56
+ @Protocol = protocol
57
+ @Port = port
58
+ @Strategy = strategy
59
+ @Detail = detail
60
+ @Count = count
61
+ @OrderIndex = orderindex
62
+ @LogId = logid
63
+ end
64
+
65
+ def deserialize(params)
66
+ @Id = params['Id']
67
+ @SourceIp = params['SourceIp']
68
+ @TargetIp = params['TargetIp']
69
+ @Protocol = params['Protocol']
70
+ @Port = params['Port']
71
+ @Strategy = params['Strategy']
72
+ @Detail = params['Detail']
73
+ @Count = params['Count']
74
+ @OrderIndex = params['OrderIndex']
75
+ @LogId = params['LogId']
76
+ end
77
+ end
78
+
79
+ # AddAcRule请求参数结构体
80
+ class AddAcRuleRequest < TencentCloud::Common::AbstractModel
81
+ # @param OrderIndex: -1表示优先级最低,1表示优先级最高
82
+ # @type OrderIndex: String
83
+ # @param RuleAction: 访问控制策略中设置的流量通过云防火墙的方式。取值:
84
+ # accept:放行
85
+ # drop:拒绝
86
+ # log:观察
87
+ # @type RuleAction: String
88
+ # @param Direction: 访问控制策略的流量方向。取值:
89
+ # in:外对内流量访问控制
90
+ # out:内对外流量访问控制
91
+ # @type Direction: String
92
+ # @param Description: 访问控制策略的描述信息
93
+ # @type Description: String
94
+ # @param SourceType: 访问控制策略中的源地址类型。取值:
95
+ # net:源IP或网段(IP或者CIDR)
96
+ # location:源区域
97
+ # template:云防火墙地址模板
98
+ # instance:实例id
99
+ # vendor:云厂商
100
+ # @type SourceType: String
101
+ # @param SourceContent: 访问控制策略中的源地址。取值:
102
+ # 当SourceType为net时,SourceContent为源IP地址或者CIDR地址。
103
+ # 例如:1.1.1.0/24
104
+
105
+ # 当SourceType为template时,SourceContent为源地址模板名称。
106
+
107
+ # 当SourceType为location时,SourceContent为源区域。
108
+ # 例如["BJ11", "ZB"]
109
+
110
+ # 当SourceType为instance时,SourceContent为该实例id对应的公网ip。
111
+ # 例如ins-xxxxx
112
+
113
+ # 当SourceType为vendor时,SourceContent为所选择厂商的公网ip列表。
114
+ # 例如:aws,huawei,tencent,aliyun,azure,all代表以上五个
115
+ # @type SourceContent: String
116
+ # @param DestType: 访问控制策略中的目的地址类型。取值:
117
+ # net:目的IP或者网段(IP或者CIDR)
118
+ # location:源区域
119
+ # template:云防火墙地址模板
120
+ # instance:实例id
121
+ # vendor:云厂商
122
+ # domain: 域名或者ip
123
+ # @type DestType: String
124
+ # @param DestContent: 访问控制策略中的目的地址。取值:
125
+ # 当DestType为net时,DestContent为源IP地址或者CIDR地址。
126
+ # 例如:1.1.1.0/24
127
+
128
+ # 当DestType为template时,DestContent为源地址模板名称。
129
+
130
+ # 当DestType为location时,DestContent为源区域。
131
+ # 例如["BJ11", "ZB"]
132
+
133
+ # 当DestType为instance时,DestContent为该实例id对应的公网ip。
134
+ # 例如ins-xxxxx
135
+
136
+ # 当DestType为domain时,DestContent为该实例id对应的域名规则。
137
+ # 例如*.qq.com
138
+
139
+ # 当DestType为vendor时,DestContent为所选择厂商的公网ip列表。
140
+ # 例如:aws,huawei,tencent,aliyun,azure,all代表以上五个
141
+ # @type DestContent: String
142
+ # @param Port: 访问控制策略的端口。取值:
143
+ # -1/-1:全部端口
144
+ # 80,443:80或者443
145
+ # @type Port: String
146
+ # @param Protocol: 访问控制策略中流量访问的协议类型。取值:TCP,目前互联网边界规则只能支持TCP,不传参数默认就是TCP
147
+ # @type Protocol: String
148
+ # @param ApplicationName: 七层协议,取值:
149
+ # HTTP/HTTPS
150
+ # TLS/SSL
151
+ # @type ApplicationName: String
152
+ # @param Enable: 是否启用规则,默认为启用,取值:
153
+ # true为启用,false为不启用
154
+ # @type Enable: String
155
+
156
+ attr_accessor :OrderIndex, :RuleAction, :Direction, :Description, :SourceType, :SourceContent, :DestType, :DestContent, :Port, :Protocol, :ApplicationName, :Enable
157
+
158
+ def initialize(orderindex=nil, ruleaction=nil, direction=nil, description=nil, sourcetype=nil, sourcecontent=nil, desttype=nil, destcontent=nil, port=nil, protocol=nil, applicationname=nil, enable=nil)
159
+ @OrderIndex = orderindex
160
+ @RuleAction = ruleaction
161
+ @Direction = direction
162
+ @Description = description
163
+ @SourceType = sourcetype
164
+ @SourceContent = sourcecontent
165
+ @DestType = desttype
166
+ @DestContent = destcontent
167
+ @Port = port
168
+ @Protocol = protocol
169
+ @ApplicationName = applicationname
170
+ @Enable = enable
171
+ end
172
+
173
+ def deserialize(params)
174
+ @OrderIndex = params['OrderIndex']
175
+ @RuleAction = params['RuleAction']
176
+ @Direction = params['Direction']
177
+ @Description = params['Description']
178
+ @SourceType = params['SourceType']
179
+ @SourceContent = params['SourceContent']
180
+ @DestType = params['DestType']
181
+ @DestContent = params['DestContent']
182
+ @Port = params['Port']
183
+ @Protocol = params['Protocol']
184
+ @ApplicationName = params['ApplicationName']
185
+ @Enable = params['Enable']
186
+ end
187
+ end
188
+
189
+ # AddAcRule返回参数结构体
190
+ class AddAcRuleResponse < TencentCloud::Common::AbstractModel
191
+ # @param RuleUuid: 创建成功后返回新策略的uuid
192
+ # @type RuleUuid: Integer
193
+ # @param ReturnCode: 0代表成功,-1代表失败
194
+ # @type ReturnCode: Integer
195
+ # @param ReturnMsg: success代表成功,failed代表失败
196
+ # @type ReturnMsg: String
197
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
198
+ # @type RequestId: String
199
+
200
+ attr_accessor :RuleUuid, :ReturnCode, :ReturnMsg, :RequestId
201
+
202
+ def initialize(ruleuuid=nil, returncode=nil, returnmsg=nil, requestid=nil)
203
+ @RuleUuid = ruleuuid
204
+ @ReturnCode = returncode
205
+ @ReturnMsg = returnmsg
206
+ @RequestId = requestid
207
+ end
208
+
209
+ def deserialize(params)
210
+ @RuleUuid = params['RuleUuid']
211
+ @ReturnCode = params['ReturnCode']
212
+ @ReturnMsg = params['ReturnMsg']
213
+ @RequestId = params['RequestId']
214
+ end
215
+ end
216
+
217
+ # AssetZone
218
+ class AssetZone < TencentCloud::Common::AbstractModel
219
+ # @param Zone: 地域
220
+ # @type Zone: String
221
+ # @param ZoneEng: 地域英文
222
+ # @type ZoneEng: String
223
+
224
+ attr_accessor :Zone, :ZoneEng
225
+
226
+ def initialize(zone=nil, zoneeng=nil)
227
+ @Zone = zone
228
+ @ZoneEng = zoneeng
229
+ end
230
+
231
+ def deserialize(params)
232
+ @Zone = params['Zone']
233
+ @ZoneEng = params['ZoneEng']
234
+ end
235
+ end
236
+
237
+ # 企业安全组关联实例信息
238
+ class AssociatedInstanceInfo < TencentCloud::Common::AbstractModel
239
+ # @param InstanceId: 实例ID
240
+ # 注意:此字段可能返回 null,表示取不到有效值。
241
+ # @type InstanceId: String
242
+ # @param InstanceName: 实例名称
243
+ # 注意:此字段可能返回 null,表示取不到有效值。
244
+ # @type InstanceName: String
245
+ # @param Type: 实例类型,3是cvm实例,4是clb实例,5是eni实例,6是云数据库
246
+ # 注意:此字段可能返回 null,表示取不到有效值。
247
+ # @type Type: Integer
248
+ # @param VpcId: 私有网络ID
249
+ # 注意:此字段可能返回 null,表示取不到有效值。
250
+ # @type VpcId: String
251
+ # @param VpcName: 私有网络名称
252
+ # 注意:此字段可能返回 null,表示取不到有效值。
253
+ # @type VpcName: String
254
+ # @param PublicIp: 公网IP
255
+ # 注意:此字段可能返回 null,表示取不到有效值。
256
+ # @type PublicIp: String
257
+ # @param Ip: 内网IP
258
+ # 注意:此字段可能返回 null,表示取不到有效值。
259
+ # @type Ip: String
260
+ # @param SecurityGroupCount: 关联安全组数量
261
+ # 注意:此字段可能返回 null,表示取不到有效值。
262
+ # @type SecurityGroupCount: Integer
263
+
264
+ attr_accessor :InstanceId, :InstanceName, :Type, :VpcId, :VpcName, :PublicIp, :Ip, :SecurityGroupCount
265
+
266
+ def initialize(instanceid=nil, instancename=nil, type=nil, vpcid=nil, vpcname=nil, publicip=nil, ip=nil, securitygroupcount=nil)
267
+ @InstanceId = instanceid
268
+ @InstanceName = instancename
269
+ @Type = type
270
+ @VpcId = vpcid
271
+ @VpcName = vpcname
272
+ @PublicIp = publicip
273
+ @Ip = ip
274
+ @SecurityGroupCount = securitygroupcount
275
+ end
276
+
277
+ def deserialize(params)
278
+ @InstanceId = params['InstanceId']
279
+ @InstanceName = params['InstanceName']
280
+ @Type = params['Type']
281
+ @VpcId = params['VpcId']
282
+ @VpcName = params['VpcName']
283
+ @PublicIp = params['PublicIp']
284
+ @Ip = params['Ip']
285
+ @SecurityGroupCount = params['SecurityGroupCount']
286
+ end
287
+ end
288
+
289
+ # NAT防火墙Dnat规则
290
+ class CfwNatDnatRule < TencentCloud::Common::AbstractModel
291
+ # @param IpProtocol: 网络协议,可选值:TCP、UDP。
292
+ # @type IpProtocol: String
293
+ # @param PublicIpAddress: 弹性IP。
294
+ # @type PublicIpAddress: String
295
+ # @param PublicPort: 公网端口。
296
+ # @type PublicPort: Integer
297
+ # @param PrivateIpAddress: 内网地址。
298
+ # @type PrivateIpAddress: String
299
+ # @param PrivatePort: 内网端口。
300
+ # @type PrivatePort: Integer
301
+ # @param Description: NAT防火墙转发规则描述。
302
+ # @type Description: String
303
+
304
+ attr_accessor :IpProtocol, :PublicIpAddress, :PublicPort, :PrivateIpAddress, :PrivatePort, :Description
305
+
306
+ def initialize(ipprotocol=nil, publicipaddress=nil, publicport=nil, privateipaddress=nil, privateport=nil, description=nil)
307
+ @IpProtocol = ipprotocol
308
+ @PublicIpAddress = publicipaddress
309
+ @PublicPort = publicport
310
+ @PrivateIpAddress = privateipaddress
311
+ @PrivatePort = privateport
312
+ @Description = description
313
+ end
314
+
315
+ def deserialize(params)
316
+ @IpProtocol = params['IpProtocol']
317
+ @PublicIpAddress = params['PublicIpAddress']
318
+ @PublicPort = params['PublicPort']
319
+ @PrivateIpAddress = params['PrivateIpAddress']
320
+ @PrivatePort = params['PrivatePort']
321
+ @Description = params['Description']
322
+ end
323
+ end
324
+
325
+ # CreateAcRules请求参数结构体
326
+ class CreateAcRulesRequest < TencentCloud::Common::AbstractModel
327
+ # @param Data: 创建规则数据
328
+ # @type Data: Array
329
+ # @param Type: 0:添加(默认),1:插入
330
+ # @type Type: Integer
331
+ # @param EdgeId: 边id
332
+ # @type EdgeId: String
333
+ # @param Enable: 访问控制规则状态
334
+ # @type Enable: Integer
335
+ # @param Overwrite: 0:添加,1:覆盖
336
+ # @type Overwrite: Integer
337
+ # @param InstanceId: NAT实例ID, 参数Area存在的时候这个必传
338
+ # @type InstanceId: String
339
+ # @param From: portScan: 来自于端口扫描, patchImport: 来自于批量导入
340
+ # @type From: String
341
+ # @param Area: NAT地域
342
+ # @type Area: String
343
+
344
+ attr_accessor :Data, :Type, :EdgeId, :Enable, :Overwrite, :InstanceId, :From, :Area
345
+
346
+ def initialize(data=nil, type=nil, edgeid=nil, enable=nil, overwrite=nil, instanceid=nil, from=nil, area=nil)
347
+ @Data = data
348
+ @Type = type
349
+ @EdgeId = edgeid
350
+ @Enable = enable
351
+ @Overwrite = overwrite
352
+ @InstanceId = instanceid
353
+ @From = from
354
+ @Area = area
355
+ end
356
+
357
+ def deserialize(params)
358
+ unless params['Data'].nil?
359
+ @Data = []
360
+ params['Data'].each do |i|
361
+ ruleinfodata_tmp = RuleInfoData.new
362
+ ruleinfodata_tmp.deserialize(i)
363
+ @Data << ruleinfodata_tmp
364
+ end
365
+ end
366
+ @Type = params['Type']
367
+ @EdgeId = params['EdgeId']
368
+ @Enable = params['Enable']
369
+ @Overwrite = params['Overwrite']
370
+ @InstanceId = params['InstanceId']
371
+ @From = params['From']
372
+ @Area = params['Area']
373
+ end
374
+ end
375
+
376
+ # CreateAcRules返回参数结构体
377
+ class CreateAcRulesResponse < TencentCloud::Common::AbstractModel
378
+ # @param Status: 状态值,0:操作成功
379
+ # @type Status: Integer
380
+ # @param Info: 返回多余的信息
381
+ # 注意:此字段可能返回 null,表示取不到有效值。
382
+ # @type Info: String
383
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
384
+ # @type RequestId: String
385
+
386
+ attr_accessor :Status, :Info, :RequestId
387
+
388
+ def initialize(status=nil, info=nil, requestid=nil)
389
+ @Status = status
390
+ @Info = info
391
+ @RequestId = requestid
392
+ end
393
+
394
+ def deserialize(params)
395
+ @Status = params['Status']
396
+ @Info = params['Info']
397
+ @RequestId = params['RequestId']
398
+ end
399
+ end
400
+
401
+ # CreateChooseVpcs请求参数结构体
402
+ class CreateChooseVpcsRequest < TencentCloud::Common::AbstractModel
403
+ # @param VpcList: vpc列表
404
+ # @type VpcList: Array
405
+ # @param AllZoneList: zone列表
406
+ # @type AllZoneList: Array
407
+
408
+ attr_accessor :VpcList, :AllZoneList
409
+
410
+ def initialize(vpclist=nil, allzonelist=nil)
411
+ @VpcList = vpclist
412
+ @AllZoneList = allzonelist
413
+ end
414
+
415
+ def deserialize(params)
416
+ @VpcList = params['VpcList']
417
+ unless params['AllZoneList'].nil?
418
+ @AllZoneList = []
419
+ params['AllZoneList'].each do |i|
420
+ vpczonedata_tmp = VpcZoneData.new
421
+ vpczonedata_tmp.deserialize(i)
422
+ @AllZoneList << vpczonedata_tmp
423
+ end
424
+ end
425
+ end
426
+ end
427
+
428
+ # CreateChooseVpcs返回参数结构体
429
+ class CreateChooseVpcsResponse < TencentCloud::Common::AbstractModel
430
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
431
+ # @type RequestId: String
432
+
433
+ attr_accessor :RequestId
434
+
435
+ def initialize(requestid=nil)
436
+ @RequestId = requestid
437
+ end
438
+
439
+ def deserialize(params)
440
+ @RequestId = params['RequestId']
441
+ end
442
+ end
443
+
444
+ # CreateDatabaseWhiteListRules请求参数结构体
445
+ class CreateDatabaseWhiteListRulesRequest < TencentCloud::Common::AbstractModel
446
+ # @param DatabaseWhiteListRuleData: 创建白名单数据
447
+ # @type DatabaseWhiteListRuleData: Array
448
+
449
+ attr_accessor :DatabaseWhiteListRuleData
450
+
451
+ def initialize(databasewhitelistruledata=nil)
452
+ @DatabaseWhiteListRuleData = databasewhitelistruledata
453
+ end
454
+
455
+ def deserialize(params)
456
+ unless params['DatabaseWhiteListRuleData'].nil?
457
+ @DatabaseWhiteListRuleData = []
458
+ params['DatabaseWhiteListRuleData'].each do |i|
459
+ databasewhitelistruledata_tmp = DatabaseWhiteListRuleData.new
460
+ databasewhitelistruledata_tmp.deserialize(i)
461
+ @DatabaseWhiteListRuleData << databasewhitelistruledata_tmp
462
+ end
463
+ end
464
+ end
465
+ end
466
+
467
+ # CreateDatabaseWhiteListRules返回参数结构体
468
+ class CreateDatabaseWhiteListRulesResponse < TencentCloud::Common::AbstractModel
469
+ # @param Status: 状态值,0:添加成功,非0:添加失败
470
+ # @type Status: Integer
471
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
472
+ # @type RequestId: String
473
+
474
+ attr_accessor :Status, :RequestId
475
+
476
+ def initialize(status=nil, requestid=nil)
477
+ @Status = status
478
+ @RequestId = requestid
479
+ end
480
+
481
+ def deserialize(params)
482
+ @Status = params['Status']
483
+ @RequestId = params['RequestId']
484
+ end
485
+ end
486
+
487
+ # CreateNatFwInstance请求参数结构体
488
+ class CreateNatFwInstanceRequest < TencentCloud::Common::AbstractModel
489
+ # @param Name: 防火墙实例名称
490
+ # @type Name: String
491
+ # @param Width: 带宽
492
+ # @type Width: Integer
493
+ # @param Mode: 模式 1:接入模式;0:新增模式
494
+ # @type Mode: Integer
495
+ # @param NewModeItems: 新增模式传递参数,其中NewModeItems和NatgwList至少传递一种。
496
+ # @type NewModeItems: :class:`Tencentcloud::Cfw.v20190904.models.NewModeItems`
497
+ # @param NatGwList: 接入模式接入的nat网关列表,其中NewModeItems和NatgwList至少传递一种。
498
+ # @type NatGwList: Array
499
+ # @param Zone: 主可用区,为空则选择默认可用区
500
+ # @type Zone: String
501
+ # @param ZoneBak: 备可用区,为空则选择默认可用区
502
+ # @type ZoneBak: String
503
+ # @param CrossAZone: 异地灾备 1:使用异地灾备;0:不使用异地灾备;为空则默认不使用异地灾备
504
+ # @type CrossAZone: Integer
505
+
506
+ attr_accessor :Name, :Width, :Mode, :NewModeItems, :NatGwList, :Zone, :ZoneBak, :CrossAZone
507
+
508
+ def initialize(name=nil, width=nil, mode=nil, newmodeitems=nil, natgwlist=nil, zone=nil, zonebak=nil, crossazone=nil)
509
+ @Name = name
510
+ @Width = width
511
+ @Mode = mode
512
+ @NewModeItems = newmodeitems
513
+ @NatGwList = natgwlist
514
+ @Zone = zone
515
+ @ZoneBak = zonebak
516
+ @CrossAZone = crossazone
517
+ end
518
+
519
+ def deserialize(params)
520
+ @Name = params['Name']
521
+ @Width = params['Width']
522
+ @Mode = params['Mode']
523
+ unless params['NewModeItems'].nil?
524
+ @NewModeItems = NewModeItems.new
525
+ @NewModeItems.deserialize(params['NewModeItems'])
526
+ end
527
+ @NatGwList = params['NatGwList']
528
+ @Zone = params['Zone']
529
+ @ZoneBak = params['ZoneBak']
530
+ @CrossAZone = params['CrossAZone']
531
+ end
532
+ end
533
+
534
+ # CreateNatFwInstance返回参数结构体
535
+ class CreateNatFwInstanceResponse < TencentCloud::Common::AbstractModel
536
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
537
+ # @type RequestId: String
538
+
539
+ attr_accessor :RequestId
540
+
541
+ def initialize(requestid=nil)
542
+ @RequestId = requestid
543
+ end
544
+
545
+ def deserialize(params)
546
+ @RequestId = params['RequestId']
547
+ end
548
+ end
549
+
550
+ # CreateNatFwInstanceWithDomain请求参数结构体
551
+ class CreateNatFwInstanceWithDomainRequest < TencentCloud::Common::AbstractModel
552
+ # @param Name: 防火墙实例名称
553
+ # @type Name: String
554
+ # @param Width: 带宽
555
+ # @type Width: Integer
556
+ # @param Mode: 模式 1:接入模式;0:新增模式
557
+ # @type Mode: Integer
558
+ # @param NewModeItems: 新增模式传递参数,其中NewModeItems和NatgwList至少传递一种。
559
+ # @type NewModeItems: :class:`Tencentcloud::Cfw.v20190904.models.NewModeItems`
560
+ # @param NatGwList: 接入模式接入的nat网关列表,其中NewModeItems和NatgwList至少传递一种。
561
+ # @type NatGwList: Array
562
+ # @param Zone: 主可用区,为空则选择默认可用区
563
+ # @type Zone: String
564
+ # @param ZoneBak: 备可用区,为空则选择默认可用区
565
+ # @type ZoneBak: String
566
+ # @param CrossAZone: 异地灾备 1:使用异地灾备;0:不使用异地灾备;为空则默认不使用异地灾备
567
+ # @type CrossAZone: Integer
568
+ # @param IsCreateDomain: 0不创建域名,1创建域名
569
+ # @type IsCreateDomain: Integer
570
+ # @param Domain: 如果要创建域名则必填
571
+ # @type Domain: String
572
+
573
+ attr_accessor :Name, :Width, :Mode, :NewModeItems, :NatGwList, :Zone, :ZoneBak, :CrossAZone, :IsCreateDomain, :Domain
574
+
575
+ def initialize(name=nil, width=nil, mode=nil, newmodeitems=nil, natgwlist=nil, zone=nil, zonebak=nil, crossazone=nil, iscreatedomain=nil, domain=nil)
576
+ @Name = name
577
+ @Width = width
578
+ @Mode = mode
579
+ @NewModeItems = newmodeitems
580
+ @NatGwList = natgwlist
581
+ @Zone = zone
582
+ @ZoneBak = zonebak
583
+ @CrossAZone = crossazone
584
+ @IsCreateDomain = iscreatedomain
585
+ @Domain = domain
586
+ end
587
+
588
+ def deserialize(params)
589
+ @Name = params['Name']
590
+ @Width = params['Width']
591
+ @Mode = params['Mode']
592
+ unless params['NewModeItems'].nil?
593
+ @NewModeItems = NewModeItems.new
594
+ @NewModeItems.deserialize(params['NewModeItems'])
595
+ end
596
+ @NatGwList = params['NatGwList']
597
+ @Zone = params['Zone']
598
+ @ZoneBak = params['ZoneBak']
599
+ @CrossAZone = params['CrossAZone']
600
+ @IsCreateDomain = params['IsCreateDomain']
601
+ @Domain = params['Domain']
602
+ end
603
+ end
604
+
605
+ # CreateNatFwInstanceWithDomain返回参数结构体
606
+ class CreateNatFwInstanceWithDomainResponse < TencentCloud::Common::AbstractModel
607
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
608
+ # @type RequestId: String
609
+
610
+ attr_accessor :RequestId
611
+
612
+ def initialize(requestid=nil)
613
+ @RequestId = requestid
614
+ end
615
+
616
+ def deserialize(params)
617
+ @RequestId = params['RequestId']
618
+ end
619
+ end
620
+
621
+ # CreateSecurityGroupApiRules请求参数结构体
622
+ class CreateSecurityGroupApiRulesRequest < TencentCloud::Common::AbstractModel
623
+ # @param Data: 创建规则数据
624
+ # @type Data: Array
625
+ # @param Direction: 方向,0:出站,1:入站
626
+ # @type Direction: Integer
627
+ # @param Type: 插入类型,0:后插,1:前插,2:中插
628
+ # @type Type: Integer
629
+ # @param Area: 腾讯云地域的英文简写
630
+ # @type Area: String
631
+
632
+ attr_accessor :Data, :Direction, :Type, :Area
633
+
634
+ def initialize(data=nil, direction=nil, type=nil, area=nil)
635
+ @Data = data
636
+ @Direction = direction
637
+ @Type = type
638
+ @Area = area
639
+ end
640
+
641
+ def deserialize(params)
642
+ unless params['Data'].nil?
643
+ @Data = []
644
+ params['Data'].each do |i|
645
+ securitygroupapiruledata_tmp = SecurityGroupApiRuleData.new
646
+ securitygroupapiruledata_tmp.deserialize(i)
647
+ @Data << securitygroupapiruledata_tmp
648
+ end
649
+ end
650
+ @Direction = params['Direction']
651
+ @Type = params['Type']
652
+ @Area = params['Area']
653
+ end
654
+ end
655
+
656
+ # CreateSecurityGroupApiRules返回参数结构体
657
+ class CreateSecurityGroupApiRulesResponse < TencentCloud::Common::AbstractModel
658
+ # @param Status: 状态值,0:添加成功,非0:添加失败
659
+ # @type Status: Integer
660
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
661
+ # @type RequestId: String
662
+
663
+ attr_accessor :Status, :RequestId
664
+
665
+ def initialize(status=nil, requestid=nil)
666
+ @Status = status
667
+ @RequestId = requestid
668
+ end
669
+
670
+ def deserialize(params)
671
+ @Status = params['Status']
672
+ @RequestId = params['RequestId']
673
+ end
674
+ end
675
+
676
+ # CreateSecurityGroupRules请求参数结构体
677
+ class CreateSecurityGroupRulesRequest < TencentCloud::Common::AbstractModel
678
+ # @param Data: 添加的企业安全组规则数据
679
+ # @type Data: Array
680
+ # @param Direction: 方向,0:出站,1:入站,默认1
681
+ # @type Direction: Integer
682
+ # @param Type: 0:后插,1:前插,2:中插,默认0
683
+ # @type Type: Integer
684
+ # @param Enable: 添加后是否启用规则,0:不启用,1:启用,默认1
685
+ # @type Enable: Integer
686
+
687
+ attr_accessor :Data, :Direction, :Type, :Enable
688
+
689
+ def initialize(data=nil, direction=nil, type=nil, enable=nil)
690
+ @Data = data
691
+ @Direction = direction
692
+ @Type = type
693
+ @Enable = enable
694
+ end
695
+
696
+ def deserialize(params)
697
+ unless params['Data'].nil?
698
+ @Data = []
699
+ params['Data'].each do |i|
700
+ securitygrouplistdata_tmp = SecurityGroupListData.new
701
+ securitygrouplistdata_tmp.deserialize(i)
702
+ @Data << securitygrouplistdata_tmp
703
+ end
704
+ end
705
+ @Direction = params['Direction']
706
+ @Type = params['Type']
707
+ @Enable = params['Enable']
708
+ end
709
+ end
710
+
711
+ # CreateSecurityGroupRules返回参数结构体
712
+ class CreateSecurityGroupRulesResponse < TencentCloud::Common::AbstractModel
713
+ # @param Status: 状态值,0:添加成功,非0:添加失败
714
+ # @type Status: Integer
715
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
716
+ # @type RequestId: String
717
+
718
+ attr_accessor :Status, :RequestId
719
+
720
+ def initialize(status=nil, requestid=nil)
721
+ @Status = status
722
+ @RequestId = requestid
723
+ end
724
+
725
+ def deserialize(params)
726
+ @Status = params['Status']
727
+ @RequestId = params['RequestId']
728
+ end
729
+ end
730
+
731
+ # 数据库白名单规则数据
732
+ class DatabaseWhiteListRuleData < TencentCloud::Common::AbstractModel
733
+ # @param SourceIp: 访问源
734
+ # @type SourceIp: String
735
+ # @param SourceType: 访问源类型,1 ip;6 实例;100 资源分组
736
+ # @type SourceType: Integer
737
+ # @param TargetIp: 访问目的
738
+ # @type TargetIp: String
739
+ # @param TargetType: 访问目的类型,1 ip;6 实例;100 资源分组
740
+ # @type TargetType: Integer
741
+ # @param Detail: 规则描述
742
+ # @type Detail: String
743
+ # @param IsRegionRule: 是否地域规则,0不是 1是
744
+ # @type IsRegionRule: Integer
745
+ # @param IsCloudRule: 是否云厂商规则,0不是 1 时
746
+ # @type IsCloudRule: Integer
747
+ # @param Enable: 是否启用,0 不启用,1启用
748
+ # @type Enable: Integer
749
+ # @param FirstLevelRegionCode: 地域码1
750
+ # @type FirstLevelRegionCode: Integer
751
+ # @param SecondLevelRegionCode: 地域码2
752
+ # @type SecondLevelRegionCode: Integer
753
+ # @param FirstLevelRegionName: 地域名称1
754
+ # @type FirstLevelRegionName: String
755
+ # @param SecondLevelRegionName: 地域名称2
756
+ # @type SecondLevelRegionName: String
757
+ # @param CloudCode: 云厂商码
758
+ # @type CloudCode: String
759
+
760
+ attr_accessor :SourceIp, :SourceType, :TargetIp, :TargetType, :Detail, :IsRegionRule, :IsCloudRule, :Enable, :FirstLevelRegionCode, :SecondLevelRegionCode, :FirstLevelRegionName, :SecondLevelRegionName, :CloudCode
761
+
762
+ def initialize(sourceip=nil, sourcetype=nil, targetip=nil, targettype=nil, detail=nil, isregionrule=nil, iscloudrule=nil, enable=nil, firstlevelregioncode=nil, secondlevelregioncode=nil, firstlevelregionname=nil, secondlevelregionname=nil, cloudcode=nil)
763
+ @SourceIp = sourceip
764
+ @SourceType = sourcetype
765
+ @TargetIp = targetip
766
+ @TargetType = targettype
767
+ @Detail = detail
768
+ @IsRegionRule = isregionrule
769
+ @IsCloudRule = iscloudrule
770
+ @Enable = enable
771
+ @FirstLevelRegionCode = firstlevelregioncode
772
+ @SecondLevelRegionCode = secondlevelregioncode
773
+ @FirstLevelRegionName = firstlevelregionname
774
+ @SecondLevelRegionName = secondlevelregionname
775
+ @CloudCode = cloudcode
776
+ end
777
+
778
+ def deserialize(params)
779
+ @SourceIp = params['SourceIp']
780
+ @SourceType = params['SourceType']
781
+ @TargetIp = params['TargetIp']
782
+ @TargetType = params['TargetType']
783
+ @Detail = params['Detail']
784
+ @IsRegionRule = params['IsRegionRule']
785
+ @IsCloudRule = params['IsCloudRule']
786
+ @Enable = params['Enable']
787
+ @FirstLevelRegionCode = params['FirstLevelRegionCode']
788
+ @SecondLevelRegionCode = params['SecondLevelRegionCode']
789
+ @FirstLevelRegionName = params['FirstLevelRegionName']
790
+ @SecondLevelRegionName = params['SecondLevelRegionName']
791
+ @CloudCode = params['CloudCode']
792
+ end
793
+ end
794
+
795
+ # DeleteAcRule请求参数结构体
796
+ class DeleteAcRuleRequest < TencentCloud::Common::AbstractModel
797
+ # @param Id: 删除规则对应的id值, 对应获取规则列表接口的Id 值
798
+ # @type Id: Integer
799
+ # @param Direction: 方向,0:出站,1:入站
800
+ # @type Direction: Integer
801
+ # @param EdgeId: EdgeId值两个vpc间的边id
802
+ # @type EdgeId: String
803
+ # @param Area: NAT地域, 如ap-shanghai/ap-guangzhou/ap-chongqing等
804
+ # @type Area: String
805
+
806
+ attr_accessor :Id, :Direction, :EdgeId, :Area
807
+
808
+ def initialize(id=nil, direction=nil, edgeid=nil, area=nil)
809
+ @Id = id
810
+ @Direction = direction
811
+ @EdgeId = edgeid
812
+ @Area = area
813
+ end
814
+
815
+ def deserialize(params)
816
+ @Id = params['Id']
817
+ @Direction = params['Direction']
818
+ @EdgeId = params['EdgeId']
819
+ @Area = params['Area']
820
+ end
821
+ end
822
+
823
+ # DeleteAcRule返回参数结构体
824
+ class DeleteAcRuleResponse < TencentCloud::Common::AbstractModel
825
+ # @param Status: 状态值 0: 删除成功, !0: 删除失败
826
+ # @type Status: Integer
827
+ # @param Info: 返回多余的信息
828
+ # 注意:此字段可能返回 null,表示取不到有效值。
829
+ # @type Info: String
830
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
831
+ # @type RequestId: String
832
+
833
+ attr_accessor :Status, :Info, :RequestId
834
+
835
+ def initialize(status=nil, info=nil, requestid=nil)
836
+ @Status = status
837
+ @Info = info
838
+ @RequestId = requestid
839
+ end
840
+
841
+ def deserialize(params)
842
+ @Status = params['Status']
843
+ @Info = params['Info']
844
+ @RequestId = params['RequestId']
845
+ end
846
+ end
847
+
848
+ # DeleteAllAccessControlRule请求参数结构体
849
+ class DeleteAllAccessControlRuleRequest < TencentCloud::Common::AbstractModel
850
+ # @param Direction: 方向,0:出站,1:入站 默认值是 0
851
+ # @type Direction: Integer
852
+ # @param EdgeId: VPC间防火墙开关ID 全部删除 EdgeId和Area只填写一个,不填写则不删除vpc间防火墙开关 ,默认值为‘’
853
+ # @type EdgeId: String
854
+ # @param Area: nat地域 全部删除 EdgeId和Area只填写一个,不填写则不删除nat防火墙开关 默认值为‘’
855
+ # @type Area: String
856
+
857
+ attr_accessor :Direction, :EdgeId, :Area
858
+
859
+ def initialize(direction=nil, edgeid=nil, area=nil)
860
+ @Direction = direction
861
+ @EdgeId = edgeid
862
+ @Area = area
863
+ end
864
+
865
+ def deserialize(params)
866
+ @Direction = params['Direction']
867
+ @EdgeId = params['EdgeId']
868
+ @Area = params['Area']
869
+ end
870
+ end
871
+
872
+ # DeleteAllAccessControlRule返回参数结构体
873
+ class DeleteAllAccessControlRuleResponse < TencentCloud::Common::AbstractModel
874
+ # @param Status: 状态值 0: 修改成功, !0: 修改失败
875
+ # @type Status: Integer
876
+ # @param Info: 删除了几条访问控制规则
877
+ # 注意:此字段可能返回 null,表示取不到有效值。
878
+ # @type Info: Integer
879
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
880
+ # @type RequestId: String
881
+
882
+ attr_accessor :Status, :Info, :RequestId
883
+
884
+ def initialize(status=nil, info=nil, requestid=nil)
885
+ @Status = status
886
+ @Info = info
887
+ @RequestId = requestid
888
+ end
889
+
890
+ def deserialize(params)
891
+ @Status = params['Status']
892
+ @Info = params['Info']
893
+ @RequestId = params['RequestId']
894
+ end
895
+ end
896
+
897
+ # DeleteNatFwInstance请求参数结构体
898
+ class DeleteNatFwInstanceRequest < TencentCloud::Common::AbstractModel
899
+ # @param CfwInstance: 防火墙实例id
900
+ # @type CfwInstance: String
901
+
902
+ attr_accessor :CfwInstance
903
+
904
+ def initialize(cfwinstance=nil)
905
+ @CfwInstance = cfwinstance
906
+ end
907
+
908
+ def deserialize(params)
909
+ @CfwInstance = params['CfwInstance']
910
+ end
911
+ end
912
+
913
+ # DeleteNatFwInstance返回参数结构体
914
+ class DeleteNatFwInstanceResponse < TencentCloud::Common::AbstractModel
915
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
916
+ # @type RequestId: String
917
+
918
+ attr_accessor :RequestId
919
+
920
+ def initialize(requestid=nil)
921
+ @RequestId = requestid
922
+ end
923
+
924
+ def deserialize(params)
925
+ @RequestId = params['RequestId']
926
+ end
927
+ end
928
+
929
+ # DeleteResourceGroup请求参数结构体
930
+ class DeleteResourceGroupRequest < TencentCloud::Common::AbstractModel
931
+ # @param GroupId: 组id
932
+ # @type GroupId: String
933
+
934
+ attr_accessor :GroupId
935
+
936
+ def initialize(groupid=nil)
937
+ @GroupId = groupid
938
+ end
939
+
940
+ def deserialize(params)
941
+ @GroupId = params['GroupId']
942
+ end
943
+ end
944
+
945
+ # DeleteResourceGroup返回参数结构体
946
+ class DeleteResourceGroupResponse < TencentCloud::Common::AbstractModel
947
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
948
+ # @type RequestId: String
949
+
950
+ attr_accessor :RequestId
951
+
952
+ def initialize(requestid=nil)
953
+ @RequestId = requestid
954
+ end
955
+
956
+ def deserialize(params)
957
+ @RequestId = params['RequestId']
958
+ end
959
+ end
960
+
961
+ # DeleteSecurityGroupAllRule请求参数结构体
962
+ class DeleteSecurityGroupAllRuleRequest < TencentCloud::Common::AbstractModel
963
+ # @param Direction: 方向,0:出站,1:入站
964
+ # @type Direction: Integer
965
+ # @param Area: 腾讯云地域的英文简写
966
+ # @type Area: String
967
+
968
+ attr_accessor :Direction, :Area
969
+
970
+ def initialize(direction=nil, area=nil)
971
+ @Direction = direction
972
+ @Area = area
973
+ end
974
+
975
+ def deserialize(params)
976
+ @Direction = params['Direction']
977
+ @Area = params['Area']
978
+ end
979
+ end
980
+
981
+ # DeleteSecurityGroupAllRule返回参数结构体
982
+ class DeleteSecurityGroupAllRuleResponse < TencentCloud::Common::AbstractModel
983
+ # @param Status: 0: 操作成功,非0:操作失败
984
+ # @type Status: Integer
985
+ # @param Info: 返回数据的json字符串
986
+ # 注意:此字段可能返回 null,表示取不到有效值。
987
+ # @type Info: Integer
988
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
989
+ # @type RequestId: String
990
+
991
+ attr_accessor :Status, :Info, :RequestId
992
+
993
+ def initialize(status=nil, info=nil, requestid=nil)
994
+ @Status = status
995
+ @Info = info
996
+ @RequestId = requestid
997
+ end
998
+
999
+ def deserialize(params)
1000
+ @Status = params['Status']
1001
+ @Info = params['Info']
1002
+ @RequestId = params['RequestId']
1003
+ end
1004
+ end
1005
+
1006
+ # DeleteSecurityGroupRule请求参数结构体
1007
+ class DeleteSecurityGroupRuleRequest < TencentCloud::Common::AbstractModel
1008
+ # @param Id: 所需要删除规则的ID
1009
+ # @type Id: Integer
1010
+ # @param Area: 腾讯云地域的英文简写
1011
+ # @type Area: String
1012
+ # @param Direction: 方向,0:出站,1:入站
1013
+ # @type Direction: Integer
1014
+ # @param IsDelReverse: 是否删除反向规则,0:否,1:是
1015
+ # @type IsDelReverse: Integer
1016
+
1017
+ attr_accessor :Id, :Area, :Direction, :IsDelReverse
1018
+
1019
+ def initialize(id=nil, area=nil, direction=nil, isdelreverse=nil)
1020
+ @Id = id
1021
+ @Area = area
1022
+ @Direction = direction
1023
+ @IsDelReverse = isdelreverse
1024
+ end
1025
+
1026
+ def deserialize(params)
1027
+ @Id = params['Id']
1028
+ @Area = params['Area']
1029
+ @Direction = params['Direction']
1030
+ @IsDelReverse = params['IsDelReverse']
1031
+ end
1032
+ end
1033
+
1034
+ # DeleteSecurityGroupRule返回参数结构体
1035
+ class DeleteSecurityGroupRuleResponse < TencentCloud::Common::AbstractModel
1036
+ # @param Status: 状态值,0:成功,非0:失败
1037
+ # @type Status: Integer
1038
+ # @param Info: 返回多余的信息
1039
+ # 注意:此字段可能返回 null,表示取不到有效值。
1040
+ # @type Info: String
1041
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1042
+ # @type RequestId: String
1043
+
1044
+ attr_accessor :Status, :Info, :RequestId
1045
+
1046
+ def initialize(status=nil, info=nil, requestid=nil)
1047
+ @Status = status
1048
+ @Info = info
1049
+ @RequestId = requestid
1050
+ end
1051
+
1052
+ def deserialize(params)
1053
+ @Status = params['Status']
1054
+ @Info = params['Info']
1055
+ @RequestId = params['RequestId']
1056
+ end
1057
+ end
1058
+
1059
+ # DeleteVpcInstance请求参数结构体
1060
+ class DeleteVpcInstanceRequest < TencentCloud::Common::AbstractModel
1061
+
1062
+
1063
+ def initialize()
1064
+ end
1065
+
1066
+ def deserialize(params)
1067
+ end
1068
+ end
1069
+
1070
+ # DeleteVpcInstance返回参数结构体
1071
+ class DeleteVpcInstanceResponse < TencentCloud::Common::AbstractModel
1072
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1073
+ # @type RequestId: String
1074
+
1075
+ attr_accessor :RequestId
1076
+
1077
+ def initialize(requestid=nil)
1078
+ @RequestId = requestid
1079
+ end
1080
+
1081
+ def deserialize(params)
1082
+ @RequestId = params['RequestId']
1083
+ end
1084
+ end
1085
+
1086
+ # DescribeAcLists请求参数结构体
1087
+ class DescribeAcListsRequest < TencentCloud::Common::AbstractModel
1088
+ # @param Protocol: 协议
1089
+ # @type Protocol: String
1090
+ # @param Strategy: 策略
1091
+ # @type Strategy: String
1092
+ # @param SearchValue: 搜索值
1093
+ # @type SearchValue: String
1094
+ # @param Limit: 每页条数
1095
+ # @type Limit: Integer
1096
+ # @param Offset: 偏移值
1097
+ # @type Offset: Integer
1098
+ # @param Direction: 出站还是入站,0:入站,1:出站
1099
+ # @type Direction: Integer
1100
+ # @param EdgeId: EdgeId值
1101
+ # @type EdgeId: String
1102
+ # @param Status: 规则是否开启,'0': 未开启,'1': 开启, 默认为'0'
1103
+ # @type Status: String
1104
+ # @param Area: 地域
1105
+ # @type Area: String
1106
+ # @param InstanceId: 实例ID
1107
+ # @type InstanceId: String
1108
+
1109
+ attr_accessor :Protocol, :Strategy, :SearchValue, :Limit, :Offset, :Direction, :EdgeId, :Status, :Area, :InstanceId
1110
+
1111
+ def initialize(protocol=nil, strategy=nil, searchvalue=nil, limit=nil, offset=nil, direction=nil, edgeid=nil, status=nil, area=nil, instanceid=nil)
1112
+ @Protocol = protocol
1113
+ @Strategy = strategy
1114
+ @SearchValue = searchvalue
1115
+ @Limit = limit
1116
+ @Offset = offset
1117
+ @Direction = direction
1118
+ @EdgeId = edgeid
1119
+ @Status = status
1120
+ @Area = area
1121
+ @InstanceId = instanceid
1122
+ end
1123
+
1124
+ def deserialize(params)
1125
+ @Protocol = params['Protocol']
1126
+ @Strategy = params['Strategy']
1127
+ @SearchValue = params['SearchValue']
1128
+ @Limit = params['Limit']
1129
+ @Offset = params['Offset']
1130
+ @Direction = params['Direction']
1131
+ @EdgeId = params['EdgeId']
1132
+ @Status = params['Status']
1133
+ @Area = params['Area']
1134
+ @InstanceId = params['InstanceId']
1135
+ end
1136
+ end
1137
+
1138
+ # DescribeAcLists返回参数结构体
1139
+ class DescribeAcListsResponse < TencentCloud::Common::AbstractModel
1140
+ # @param Total: 总条数
1141
+ # @type Total: Integer
1142
+ # @param Data: 访问控制列表数据
1143
+ # @type Data: Array
1144
+ # @param AllTotal: 不算筛选条数的总条数
1145
+ # @type AllTotal: Integer
1146
+ # @param Enable: 访问控制规则全部启用/全部停用
1147
+ # 注意:此字段可能返回 null,表示取不到有效值。
1148
+ # @type Enable: Integer
1149
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1150
+ # @type RequestId: String
1151
+
1152
+ attr_accessor :Total, :Data, :AllTotal, :Enable, :RequestId
1153
+
1154
+ def initialize(total=nil, data=nil, alltotal=nil, enable=nil, requestid=nil)
1155
+ @Total = total
1156
+ @Data = data
1157
+ @AllTotal = alltotal
1158
+ @Enable = enable
1159
+ @RequestId = requestid
1160
+ end
1161
+
1162
+ def deserialize(params)
1163
+ @Total = params['Total']
1164
+ unless params['Data'].nil?
1165
+ @Data = []
1166
+ params['Data'].each do |i|
1167
+ aclistsdata_tmp = AcListsData.new
1168
+ aclistsdata_tmp.deserialize(i)
1169
+ @Data << aclistsdata_tmp
1170
+ end
1171
+ end
1172
+ @AllTotal = params['AllTotal']
1173
+ @Enable = params['Enable']
1174
+ @RequestId = params['RequestId']
1175
+ end
1176
+ end
1177
+
1178
+ # DescribeAssociatedInstanceList请求参数结构体
1179
+ class DescribeAssociatedInstanceListRequest < TencentCloud::Common::AbstractModel
1180
+ # @param Offset: 列表偏移量
1181
+ # @type Offset: Integer
1182
+ # @param Limit: 每页记录条数
1183
+ # @type Limit: Integer
1184
+ # @param Area: 地域代码(例:ap-guangzhou),支持腾讯云全地域
1185
+ # @type Area: String
1186
+ # @param SearchValue: 额外检索条件(JSON字符串)
1187
+ # @type SearchValue: String
1188
+ # @param By: 排序字段
1189
+ # @type By: String
1190
+ # @param Order: 排序方式(asc:升序,desc:降序)
1191
+ # @type Order: String
1192
+ # @param SecurityGroupId: 安全组ID
1193
+ # @type SecurityGroupId: String
1194
+ # @param Type: 实例类型,'3'是cvm实例,'4'是clb实例,'5'是eni实例,'6'是云数据库
1195
+ # @type Type: String
1196
+
1197
+ attr_accessor :Offset, :Limit, :Area, :SearchValue, :By, :Order, :SecurityGroupId, :Type
1198
+
1199
+ def initialize(offset=nil, limit=nil, area=nil, searchvalue=nil, by=nil, order=nil, securitygroupid=nil, type=nil)
1200
+ @Offset = offset
1201
+ @Limit = limit
1202
+ @Area = area
1203
+ @SearchValue = searchvalue
1204
+ @By = by
1205
+ @Order = order
1206
+ @SecurityGroupId = securitygroupid
1207
+ @Type = type
1208
+ end
1209
+
1210
+ def deserialize(params)
1211
+ @Offset = params['Offset']
1212
+ @Limit = params['Limit']
1213
+ @Area = params['Area']
1214
+ @SearchValue = params['SearchValue']
1215
+ @By = params['By']
1216
+ @Order = params['Order']
1217
+ @SecurityGroupId = params['SecurityGroupId']
1218
+ @Type = params['Type']
1219
+ end
1220
+ end
1221
+
1222
+ # DescribeAssociatedInstanceList返回参数结构体
1223
+ class DescribeAssociatedInstanceListResponse < TencentCloud::Common::AbstractModel
1224
+ # @param Total: 实例数量
1225
+ # 注意:此字段可能返回 null,表示取不到有效值。
1226
+ # @type Total: Integer
1227
+ # @param Data: 实例列表
1228
+ # 注意:此字段可能返回 null,表示取不到有效值。
1229
+ # @type Data: Array
1230
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1231
+ # @type RequestId: String
1232
+
1233
+ attr_accessor :Total, :Data, :RequestId
1234
+
1235
+ def initialize(total=nil, data=nil, requestid=nil)
1236
+ @Total = total
1237
+ @Data = data
1238
+ @RequestId = requestid
1239
+ end
1240
+
1241
+ def deserialize(params)
1242
+ @Total = params['Total']
1243
+ unless params['Data'].nil?
1244
+ @Data = []
1245
+ params['Data'].each do |i|
1246
+ associatedinstanceinfo_tmp = AssociatedInstanceInfo.new
1247
+ associatedinstanceinfo_tmp.deserialize(i)
1248
+ @Data << associatedinstanceinfo_tmp
1249
+ end
1250
+ end
1251
+ @RequestId = params['RequestId']
1252
+ end
1253
+ end
1254
+
1255
+ # DescribeBlockByIpTimesList请求参数结构体
1256
+ class DescribeBlockByIpTimesListRequest < TencentCloud::Common::AbstractModel
1257
+ # @param StartTime: 开始时间
1258
+ # @type StartTime: String
1259
+ # @param EndTime: 结束时间
1260
+ # @type EndTime: String
1261
+ # @param Ip: ip查询条件
1262
+ # @type Ip: String
1263
+ # @param Zone: 地域
1264
+ # @type Zone: String
1265
+ # @param Direction: 方向
1266
+ # @type Direction: String
1267
+ # @param Source: 来源
1268
+ # @type Source: String
1269
+
1270
+ attr_accessor :StartTime, :EndTime, :Ip, :Zone, :Direction, :Source
1271
+
1272
+ def initialize(starttime=nil, endtime=nil, ip=nil, zone=nil, direction=nil, source=nil)
1273
+ @StartTime = starttime
1274
+ @EndTime = endtime
1275
+ @Ip = ip
1276
+ @Zone = zone
1277
+ @Direction = direction
1278
+ @Source = source
1279
+ end
1280
+
1281
+ def deserialize(params)
1282
+ @StartTime = params['StartTime']
1283
+ @EndTime = params['EndTime']
1284
+ @Ip = params['Ip']
1285
+ @Zone = params['Zone']
1286
+ @Direction = params['Direction']
1287
+ @Source = params['Source']
1288
+ end
1289
+ end
1290
+
1291
+ # DescribeBlockByIpTimesList返回参数结构体
1292
+ class DescribeBlockByIpTimesListResponse < TencentCloud::Common::AbstractModel
1293
+ # @param Data: 返回数据
1294
+ # @type Data: Array
1295
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1296
+ # @type RequestId: String
1297
+
1298
+ attr_accessor :Data, :RequestId
1299
+
1300
+ def initialize(data=nil, requestid=nil)
1301
+ @Data = data
1302
+ @RequestId = requestid
1303
+ end
1304
+
1305
+ def deserialize(params)
1306
+ unless params['Data'].nil?
1307
+ @Data = []
1308
+ params['Data'].each do |i|
1309
+ ipstatic_tmp = IpStatic.new
1310
+ ipstatic_tmp.deserialize(i)
1311
+ @Data << ipstatic_tmp
1312
+ end
1313
+ end
1314
+ @RequestId = params['RequestId']
1315
+ end
1316
+ end
1317
+
1318
+ # DescribeBlockStaticList请求参数结构体
1319
+ class DescribeBlockStaticListRequest < TencentCloud::Common::AbstractModel
1320
+ # @param StartTime: 开始时间
1321
+ # @type StartTime: String
1322
+ # @param EndTime: 结束时间
1323
+ # @type EndTime: String
1324
+ # @param QueryType: 类型
1325
+ # @type QueryType: String
1326
+ # @param Top: top数
1327
+ # @type Top: Integer
1328
+ # @param SearchValue: 查询条件
1329
+ # @type SearchValue: String
1330
+
1331
+ attr_accessor :StartTime, :EndTime, :QueryType, :Top, :SearchValue
1332
+
1333
+ def initialize(starttime=nil, endtime=nil, querytype=nil, top=nil, searchvalue=nil)
1334
+ @StartTime = starttime
1335
+ @EndTime = endtime
1336
+ @QueryType = querytype
1337
+ @Top = top
1338
+ @SearchValue = searchvalue
1339
+ end
1340
+
1341
+ def deserialize(params)
1342
+ @StartTime = params['StartTime']
1343
+ @EndTime = params['EndTime']
1344
+ @QueryType = params['QueryType']
1345
+ @Top = params['Top']
1346
+ @SearchValue = params['SearchValue']
1347
+ end
1348
+ end
1349
+
1350
+ # DescribeBlockStaticList返回参数结构体
1351
+ class DescribeBlockStaticListResponse < TencentCloud::Common::AbstractModel
1352
+ # @param Data: 无
1353
+ # @type Data: Array
1354
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1355
+ # @type RequestId: String
1356
+
1357
+ attr_accessor :Data, :RequestId
1358
+
1359
+ def initialize(data=nil, requestid=nil)
1360
+ @Data = data
1361
+ @RequestId = requestid
1362
+ end
1363
+
1364
+ def deserialize(params)
1365
+ unless params['Data'].nil?
1366
+ @Data = []
1367
+ params['Data'].each do |i|
1368
+ staticinfo_tmp = StaticInfo.new
1369
+ staticinfo_tmp.deserialize(i)
1370
+ @Data << staticinfo_tmp
1371
+ end
1372
+ end
1373
+ @RequestId = params['RequestId']
1374
+ end
1375
+ end
1376
+
1377
+ # DescribeCfwEips请求参数结构体
1378
+ class DescribeCfwEipsRequest < TencentCloud::Common::AbstractModel
1379
+ # @param Mode: 0:cfw新增模式,1:cfw接入模式
1380
+ # @type Mode: Integer
1381
+ # @param NatGatewayId: ALL:查询所有弹性公网ip; nat-xxxxx:接入模式场景指定网关的弹性公网ip
1382
+ # @type NatGatewayId: String
1383
+ # @param CfwInstance: 防火墙实例id
1384
+ # @type CfwInstance: String
1385
+
1386
+ attr_accessor :Mode, :NatGatewayId, :CfwInstance
1387
+
1388
+ def initialize(mode=nil, natgatewayid=nil, cfwinstance=nil)
1389
+ @Mode = mode
1390
+ @NatGatewayId = natgatewayid
1391
+ @CfwInstance = cfwinstance
1392
+ end
1393
+
1394
+ def deserialize(params)
1395
+ @Mode = params['Mode']
1396
+ @NatGatewayId = params['NatGatewayId']
1397
+ @CfwInstance = params['CfwInstance']
1398
+ end
1399
+ end
1400
+
1401
+ # DescribeCfwEips返回参数结构体
1402
+ class DescribeCfwEipsResponse < TencentCloud::Common::AbstractModel
1403
+ # @param NatFwEipList: 返回值信息
1404
+ # @type NatFwEipList: Array
1405
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1406
+ # @type RequestId: String
1407
+
1408
+ attr_accessor :NatFwEipList, :RequestId
1409
+
1410
+ def initialize(natfweiplist=nil, requestid=nil)
1411
+ @NatFwEipList = natfweiplist
1412
+ @RequestId = requestid
1413
+ end
1414
+
1415
+ def deserialize(params)
1416
+ unless params['NatFwEipList'].nil?
1417
+ @NatFwEipList = []
1418
+ params['NatFwEipList'].each do |i|
1419
+ natfweipsinfo_tmp = NatFwEipsInfo.new
1420
+ natfweipsinfo_tmp.deserialize(i)
1421
+ @NatFwEipList << natfweipsinfo_tmp
1422
+ end
1423
+ end
1424
+ @RequestId = params['RequestId']
1425
+ end
1426
+ end
1427
+
1428
+ # DescribeGuideScanInfo请求参数结构体
1429
+ class DescribeGuideScanInfoRequest < TencentCloud::Common::AbstractModel
1430
+
1431
+
1432
+ def initialize()
1433
+ end
1434
+
1435
+ def deserialize(params)
1436
+ end
1437
+ end
1438
+
1439
+ # DescribeGuideScanInfo返回参数结构体
1440
+ class DescribeGuideScanInfoResponse < TencentCloud::Common::AbstractModel
1441
+ # @param Data: 扫描信息
1442
+ # @type Data: :class:`Tencentcloud::Cfw.v20190904.models.ScanInfo`
1443
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1444
+ # @type RequestId: String
1445
+
1446
+ attr_accessor :Data, :RequestId
1447
+
1448
+ def initialize(data=nil, requestid=nil)
1449
+ @Data = data
1450
+ @RequestId = requestid
1451
+ end
1452
+
1453
+ def deserialize(params)
1454
+ unless params['Data'].nil?
1455
+ @Data = ScanInfo.new
1456
+ @Data.deserialize(params['Data'])
1457
+ end
1458
+ @RequestId = params['RequestId']
1459
+ end
1460
+ end
1461
+
1462
+ # DescribeNatFwInfoCount请求参数结构体
1463
+ class DescribeNatFwInfoCountRequest < TencentCloud::Common::AbstractModel
1464
+
1465
+
1466
+ def initialize()
1467
+ end
1468
+
1469
+ def deserialize(params)
1470
+ end
1471
+ end
1472
+
1473
+ # DescribeNatFwInfoCount返回参数结构体
1474
+ class DescribeNatFwInfoCountResponse < TencentCloud::Common::AbstractModel
1475
+ # @param ReturnMsg: 返回参数
1476
+ # 注意:此字段可能返回 null,表示取不到有效值。
1477
+ # @type ReturnMsg: String
1478
+ # @param NatFwInsCount: 当前租户的nat实例个数
1479
+ # 注意:此字段可能返回 null,表示取不到有效值。
1480
+ # @type NatFwInsCount: Integer
1481
+ # @param SubnetCount: 当前租户接入子网个数
1482
+ # 注意:此字段可能返回 null,表示取不到有效值。
1483
+ # @type SubnetCount: Integer
1484
+ # @param OpenSwitchCount: 打开开关个数
1485
+ # 注意:此字段可能返回 null,表示取不到有效值。
1486
+ # @type OpenSwitchCount: Integer
1487
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1488
+ # @type RequestId: String
1489
+
1490
+ attr_accessor :ReturnMsg, :NatFwInsCount, :SubnetCount, :OpenSwitchCount, :RequestId
1491
+
1492
+ def initialize(returnmsg=nil, natfwinscount=nil, subnetcount=nil, openswitchcount=nil, requestid=nil)
1493
+ @ReturnMsg = returnmsg
1494
+ @NatFwInsCount = natfwinscount
1495
+ @SubnetCount = subnetcount
1496
+ @OpenSwitchCount = openswitchcount
1497
+ @RequestId = requestid
1498
+ end
1499
+
1500
+ def deserialize(params)
1501
+ @ReturnMsg = params['ReturnMsg']
1502
+ @NatFwInsCount = params['NatFwInsCount']
1503
+ @SubnetCount = params['SubnetCount']
1504
+ @OpenSwitchCount = params['OpenSwitchCount']
1505
+ @RequestId = params['RequestId']
1506
+ end
1507
+ end
1508
+
1509
+ # DescribeNatFwInstance请求参数结构体
1510
+ class DescribeNatFwInstanceRequest < TencentCloud::Common::AbstractModel
1511
+
1512
+
1513
+ def initialize()
1514
+ end
1515
+
1516
+ def deserialize(params)
1517
+ end
1518
+ end
1519
+
1520
+ # DescribeNatFwInstance返回参数结构体
1521
+ class DescribeNatFwInstanceResponse < TencentCloud::Common::AbstractModel
1522
+ # @param NatinsLst: 实例数组
1523
+ # @type NatinsLst: Array
1524
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1525
+ # @type RequestId: String
1526
+
1527
+ attr_accessor :NatinsLst, :RequestId
1528
+
1529
+ def initialize(natinslst=nil, requestid=nil)
1530
+ @NatinsLst = natinslst
1531
+ @RequestId = requestid
1532
+ end
1533
+
1534
+ def deserialize(params)
1535
+ unless params['NatinsLst'].nil?
1536
+ @NatinsLst = []
1537
+ params['NatinsLst'].each do |i|
1538
+ natfwinstance_tmp = NatFwInstance.new
1539
+ natfwinstance_tmp.deserialize(i)
1540
+ @NatinsLst << natfwinstance_tmp
1541
+ end
1542
+ end
1543
+ @RequestId = params['RequestId']
1544
+ end
1545
+ end
1546
+
1547
+ # DescribeNatFwInstanceWithRegion请求参数结构体
1548
+ class DescribeNatFwInstanceWithRegionRequest < TencentCloud::Common::AbstractModel
1549
+
1550
+
1551
+ def initialize()
1552
+ end
1553
+
1554
+ def deserialize(params)
1555
+ end
1556
+ end
1557
+
1558
+ # DescribeNatFwInstanceWithRegion返回参数结构体
1559
+ class DescribeNatFwInstanceWithRegionResponse < TencentCloud::Common::AbstractModel
1560
+ # @param NatinsLst: 实例数组
1561
+ # 注意:此字段可能返回 null,表示取不到有效值。
1562
+ # @type NatinsLst: Array
1563
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1564
+ # @type RequestId: String
1565
+
1566
+ attr_accessor :NatinsLst, :RequestId
1567
+
1568
+ def initialize(natinslst=nil, requestid=nil)
1569
+ @NatinsLst = natinslst
1570
+ @RequestId = requestid
1571
+ end
1572
+
1573
+ def deserialize(params)
1574
+ unless params['NatinsLst'].nil?
1575
+ @NatinsLst = []
1576
+ params['NatinsLst'].each do |i|
1577
+ natfwinstance_tmp = NatFwInstance.new
1578
+ natfwinstance_tmp.deserialize(i)
1579
+ @NatinsLst << natfwinstance_tmp
1580
+ end
1581
+ end
1582
+ @RequestId = params['RequestId']
1583
+ end
1584
+ end
1585
+
1586
+ # DescribeNatFwInstancesInfo请求参数结构体
1587
+ class DescribeNatFwInstancesInfoRequest < TencentCloud::Common::AbstractModel
1588
+ # @param Filter: 获取实例列表过滤字段
1589
+ # @type Filter: Array
1590
+ # @param Offset: 第几页
1591
+ # @type Offset: Integer
1592
+ # @param Limit: 每页长度
1593
+ # @type Limit: Integer
1594
+
1595
+ attr_accessor :Filter, :Offset, :Limit
1596
+
1597
+ def initialize(filter=nil, offset=nil, limit=nil)
1598
+ @Filter = filter
1599
+ @Offset = offset
1600
+ @Limit = limit
1601
+ end
1602
+
1603
+ def deserialize(params)
1604
+ unless params['Filter'].nil?
1605
+ @Filter = []
1606
+ params['Filter'].each do |i|
1607
+ natfwfilter_tmp = NatFwFilter.new
1608
+ natfwfilter_tmp.deserialize(i)
1609
+ @Filter << natfwfilter_tmp
1610
+ end
1611
+ end
1612
+ @Offset = params['Offset']
1613
+ @Limit = params['Limit']
1614
+ end
1615
+ end
1616
+
1617
+ # DescribeNatFwInstancesInfo返回参数结构体
1618
+ class DescribeNatFwInstancesInfoResponse < TencentCloud::Common::AbstractModel
1619
+ # @param NatinsLst: 实例卡片信息数组
1620
+ # 注意:此字段可能返回 null,表示取不到有效值。
1621
+ # @type NatinsLst: Array
1622
+ # @param Total: nat 防火墙个数
1623
+ # 注意:此字段可能返回 null,表示取不到有效值。
1624
+ # @type Total: Integer
1625
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1626
+ # @type RequestId: String
1627
+
1628
+ attr_accessor :NatinsLst, :Total, :RequestId
1629
+
1630
+ def initialize(natinslst=nil, total=nil, requestid=nil)
1631
+ @NatinsLst = natinslst
1632
+ @Total = total
1633
+ @RequestId = requestid
1634
+ end
1635
+
1636
+ def deserialize(params)
1637
+ unless params['NatinsLst'].nil?
1638
+ @NatinsLst = []
1639
+ params['NatinsLst'].each do |i|
1640
+ natinstanceinfo_tmp = NatInstanceInfo.new
1641
+ natinstanceinfo_tmp.deserialize(i)
1642
+ @NatinsLst << natinstanceinfo_tmp
1643
+ end
1644
+ end
1645
+ @Total = params['Total']
1646
+ @RequestId = params['RequestId']
1647
+ end
1648
+ end
1649
+
1650
+ # DescribeNatFwVpcDnsLst请求参数结构体
1651
+ class DescribeNatFwVpcDnsLstRequest < TencentCloud::Common::AbstractModel
1652
+ # @param NatFwInsId: natfw 防火墙实例id
1653
+ # @type NatFwInsId: String
1654
+ # @param NatInsIdFilter: natfw 过滤,以','分隔
1655
+ # @type NatInsIdFilter: String
1656
+ # @param Offset: 分页页数
1657
+ # @type Offset: Integer
1658
+ # @param Limit: 每页最多个数
1659
+ # @type Limit: Integer
1660
+
1661
+ attr_accessor :NatFwInsId, :NatInsIdFilter, :Offset, :Limit
1662
+
1663
+ def initialize(natfwinsid=nil, natinsidfilter=nil, offset=nil, limit=nil)
1664
+ @NatFwInsId = natfwinsid
1665
+ @NatInsIdFilter = natinsidfilter
1666
+ @Offset = offset
1667
+ @Limit = limit
1668
+ end
1669
+
1670
+ def deserialize(params)
1671
+ @NatFwInsId = params['NatFwInsId']
1672
+ @NatInsIdFilter = params['NatInsIdFilter']
1673
+ @Offset = params['Offset']
1674
+ @Limit = params['Limit']
1675
+ end
1676
+ end
1677
+
1678
+ # DescribeNatFwVpcDnsLst返回参数结构体
1679
+ class DescribeNatFwVpcDnsLstResponse < TencentCloud::Common::AbstractModel
1680
+ # @param VpcDnsSwitchLst: nat防火墙vpc dns 信息数组
1681
+ # 注意:此字段可能返回 null,表示取不到有效值。
1682
+ # @type VpcDnsSwitchLst: Array
1683
+ # @param ReturnMsg: 返回参数
1684
+ # 注意:此字段可能返回 null,表示取不到有效值。
1685
+ # @type ReturnMsg: String
1686
+ # @param Total: 开关总条数
1687
+ # 注意:此字段可能返回 null,表示取不到有效值。
1688
+ # @type Total: Integer
1689
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1690
+ # @type RequestId: String
1691
+
1692
+ attr_accessor :VpcDnsSwitchLst, :ReturnMsg, :Total, :RequestId
1693
+
1694
+ def initialize(vpcdnsswitchlst=nil, returnmsg=nil, total=nil, requestid=nil)
1695
+ @VpcDnsSwitchLst = vpcdnsswitchlst
1696
+ @ReturnMsg = returnmsg
1697
+ @Total = total
1698
+ @RequestId = requestid
1699
+ end
1700
+
1701
+ def deserialize(params)
1702
+ unless params['VpcDnsSwitchLst'].nil?
1703
+ @VpcDnsSwitchLst = []
1704
+ params['VpcDnsSwitchLst'].each do |i|
1705
+ vpcdnsinfo_tmp = VpcDnsInfo.new
1706
+ vpcdnsinfo_tmp.deserialize(i)
1707
+ @VpcDnsSwitchLst << vpcdnsinfo_tmp
1708
+ end
1709
+ end
1710
+ @ReturnMsg = params['ReturnMsg']
1711
+ @Total = params['Total']
1712
+ @RequestId = params['RequestId']
1713
+ end
1714
+ end
1715
+
1716
+ # DescribeNatRuleOverview请求参数结构体
1717
+ class DescribeNatRuleOverviewRequest < TencentCloud::Common::AbstractModel
1718
+ # @param Direction: 方向,0:出站,1:入站 默认值:0
1719
+ # @type Direction: Integer
1720
+ # @param Area: NAT地域 这个是必填项,填入相关的英文,'ap-beijing-fsi': '北京金融',
1721
+ # 'ap-beijing': '北京',
1722
+ # 'ap-changsha-ec': '长沙EC',
1723
+ # 'ap-chengdu': '成都',
1724
+ # 'ap-chongqing': '重庆',
1725
+ # 'ap-fuzhou-ec': '福州EC',
1726
+ # 'ap-guangzhou-open': '广州Open',
1727
+ # 'ap-guangzhou': '广州',
1728
+ # 'ap-hangzhou-ec': '杭州EC',
1729
+ # 'ap-jinan-ec': '济南EC',
1730
+ # 'ap-nanjing': '南京',
1731
+ # 'ap-shanghai-fsi': '上海金融',
1732
+ # 'ap-shanghai': '上海',
1733
+ # 'ap-shenzhen-fsi': '深圳金融',
1734
+ # 'ap-shenzhen': '深圳',
1735
+ # 'ap-wuhan-ec': '武汉EC'
1736
+ # @type Area: String
1737
+
1738
+ attr_accessor :Direction, :Area
1739
+
1740
+ def initialize(direction=nil, area=nil)
1741
+ @Direction = direction
1742
+ @Area = area
1743
+ end
1744
+
1745
+ def deserialize(params)
1746
+ @Direction = params['Direction']
1747
+ @Area = params['Area']
1748
+ end
1749
+ end
1750
+
1751
+ # DescribeNatRuleOverview返回参数结构体
1752
+ class DescribeNatRuleOverviewResponse < TencentCloud::Common::AbstractModel
1753
+ # @param InstanceId: 实例ID
1754
+ # @type InstanceId: String
1755
+ # @param InstanceName: 实例名称
1756
+ # @type InstanceName: String
1757
+ # @param EipList: 弹性IP列表
1758
+ # @type EipList: Array
1759
+ # @param DnatNum: 端口转发规则数量
1760
+ # @type DnatNum: Integer
1761
+ # @param TotalNum: 访问控制规则总数
1762
+ # @type TotalNum: Integer
1763
+ # @param RemainNum: 访问控制规则剩余配额
1764
+ # @type RemainNum: Integer
1765
+ # @param BlockNum: 阻断规则条数
1766
+ # @type BlockNum: Integer
1767
+ # @param EnableNum: 启用规则条数
1768
+ # @type EnableNum: Integer
1769
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1770
+ # @type RequestId: String
1771
+
1772
+ attr_accessor :InstanceId, :InstanceName, :EipList, :DnatNum, :TotalNum, :RemainNum, :BlockNum, :EnableNum, :RequestId
1773
+
1774
+ def initialize(instanceid=nil, instancename=nil, eiplist=nil, dnatnum=nil, totalnum=nil, remainnum=nil, blocknum=nil, enablenum=nil, requestid=nil)
1775
+ @InstanceId = instanceid
1776
+ @InstanceName = instancename
1777
+ @EipList = eiplist
1778
+ @DnatNum = dnatnum
1779
+ @TotalNum = totalnum
1780
+ @RemainNum = remainnum
1781
+ @BlockNum = blocknum
1782
+ @EnableNum = enablenum
1783
+ @RequestId = requestid
1784
+ end
1785
+
1786
+ def deserialize(params)
1787
+ @InstanceId = params['InstanceId']
1788
+ @InstanceName = params['InstanceName']
1789
+ @EipList = params['EipList']
1790
+ @DnatNum = params['DnatNum']
1791
+ @TotalNum = params['TotalNum']
1792
+ @RemainNum = params['RemainNum']
1793
+ @BlockNum = params['BlockNum']
1794
+ @EnableNum = params['EnableNum']
1795
+ @RequestId = params['RequestId']
1796
+ end
1797
+ end
1798
+
1799
+ # DescribeResourceGroupNew请求参数结构体
1800
+ class DescribeResourceGroupNewRequest < TencentCloud::Common::AbstractModel
1801
+ # @param QueryType: 查询类型 网络结构-vpc,业务识别-resource ,资源标签-tag
1802
+ # @type QueryType: String
1803
+ # @param GroupId: 资产组id 全部传0
1804
+ # @type GroupId: String
1805
+ # @param ShowType: all 包含子组 own自己
1806
+ # @type ShowType: String
1807
+
1808
+ attr_accessor :QueryType, :GroupId, :ShowType
1809
+
1810
+ def initialize(querytype=nil, groupid=nil, showtype=nil)
1811
+ @QueryType = querytype
1812
+ @GroupId = groupid
1813
+ @ShowType = showtype
1814
+ end
1815
+
1816
+ def deserialize(params)
1817
+ @QueryType = params['QueryType']
1818
+ @GroupId = params['GroupId']
1819
+ @ShowType = params['ShowType']
1820
+ end
1821
+ end
1822
+
1823
+ # DescribeResourceGroupNew返回参数结构体
1824
+ class DescribeResourceGroupNewResponse < TencentCloud::Common::AbstractModel
1825
+ # @param Data: 返回树形结构
1826
+ # @type Data: String
1827
+ # @param UnResourceNum: 未分类实例数量
1828
+ # @type UnResourceNum: Integer
1829
+ # @param ReturnMsg: 接口返回消息
1830
+ # @type ReturnMsg: String
1831
+ # @param ReturnCode: 返回码;0为请求成功
1832
+ # @type ReturnCode: Integer
1833
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1834
+ # @type RequestId: String
1835
+
1836
+ attr_accessor :Data, :UnResourceNum, :ReturnMsg, :ReturnCode, :RequestId
1837
+
1838
+ def initialize(data=nil, unresourcenum=nil, returnmsg=nil, returncode=nil, requestid=nil)
1839
+ @Data = data
1840
+ @UnResourceNum = unresourcenum
1841
+ @ReturnMsg = returnmsg
1842
+ @ReturnCode = returncode
1843
+ @RequestId = requestid
1844
+ end
1845
+
1846
+ def deserialize(params)
1847
+ @Data = params['Data']
1848
+ @UnResourceNum = params['UnResourceNum']
1849
+ @ReturnMsg = params['ReturnMsg']
1850
+ @ReturnCode = params['ReturnCode']
1851
+ @RequestId = params['RequestId']
1852
+ end
1853
+ end
1854
+
1855
+ # DescribeResourceGroup请求参数结构体
1856
+ class DescribeResourceGroupRequest < TencentCloud::Common::AbstractModel
1857
+ # @param QueryType: 查询类型 网络结构 vpc,业务识别- resource ,资源标签-tag
1858
+ # @type QueryType: String
1859
+ # @param GroupId: 资产组id 全部传0
1860
+ # @type GroupId: String
1861
+
1862
+ attr_accessor :QueryType, :GroupId
1863
+
1864
+ def initialize(querytype=nil, groupid=nil)
1865
+ @QueryType = querytype
1866
+ @GroupId = groupid
1867
+ end
1868
+
1869
+ def deserialize(params)
1870
+ @QueryType = params['QueryType']
1871
+ @GroupId = params['GroupId']
1872
+ end
1873
+ end
1874
+
1875
+ # DescribeResourceGroup返回参数结构体
1876
+ class DescribeResourceGroupResponse < TencentCloud::Common::AbstractModel
1877
+ # @param Data: 返回树形结构
1878
+ # @type Data: String
1879
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1880
+ # @type RequestId: String
1881
+
1882
+ attr_accessor :Data, :RequestId
1883
+
1884
+ def initialize(data=nil, requestid=nil)
1885
+ @Data = data
1886
+ @RequestId = requestid
1887
+ end
1888
+
1889
+ def deserialize(params)
1890
+ @Data = params['Data']
1891
+ @RequestId = params['RequestId']
1892
+ end
1893
+ end
1894
+
1895
+ # DescribeRuleOverview请求参数结构体
1896
+ class DescribeRuleOverviewRequest < TencentCloud::Common::AbstractModel
1897
+ # @param Direction: 方向,0:出站,1:入站
1898
+ # @type Direction: Integer
1899
+
1900
+ attr_accessor :Direction
1901
+
1902
+ def initialize(direction=nil)
1903
+ @Direction = direction
1904
+ end
1905
+
1906
+ def deserialize(params)
1907
+ @Direction = params['Direction']
1908
+ end
1909
+ end
1910
+
1911
+ # DescribeRuleOverview返回参数结构体
1912
+ class DescribeRuleOverviewResponse < TencentCloud::Common::AbstractModel
1913
+ # @param AllTotal: 规则总数
1914
+ # 注意:此字段可能返回 null,表示取不到有效值。
1915
+ # @type AllTotal: Integer
1916
+ # @param StrategyNum: 阻断策略规则数量
1917
+ # 注意:此字段可能返回 null,表示取不到有效值。
1918
+ # @type StrategyNum: Integer
1919
+ # @param StartRuleNum: 启用规则数量
1920
+ # 注意:此字段可能返回 null,表示取不到有效值。
1921
+ # @type StartRuleNum: Integer
1922
+ # @param StopRuleNum: 停用规则数量
1923
+ # 注意:此字段可能返回 null,表示取不到有效值。
1924
+ # @type StopRuleNum: Integer
1925
+ # @param RemainingNum: 剩余配额
1926
+ # 注意:此字段可能返回 null,表示取不到有效值。
1927
+ # @type RemainingNum: Integer
1928
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1929
+ # @type RequestId: String
1930
+
1931
+ attr_accessor :AllTotal, :StrategyNum, :StartRuleNum, :StopRuleNum, :RemainingNum, :RequestId
1932
+
1933
+ def initialize(alltotal=nil, strategynum=nil, startrulenum=nil, stoprulenum=nil, remainingnum=nil, requestid=nil)
1934
+ @AllTotal = alltotal
1935
+ @StrategyNum = strategynum
1936
+ @StartRuleNum = startrulenum
1937
+ @StopRuleNum = stoprulenum
1938
+ @RemainingNum = remainingnum
1939
+ @RequestId = requestid
1940
+ end
1941
+
1942
+ def deserialize(params)
1943
+ @AllTotal = params['AllTotal']
1944
+ @StrategyNum = params['StrategyNum']
1945
+ @StartRuleNum = params['StartRuleNum']
1946
+ @StopRuleNum = params['StopRuleNum']
1947
+ @RemainingNum = params['RemainingNum']
1948
+ @RequestId = params['RequestId']
1949
+ end
1950
+ end
1951
+
1952
+ # DescribeSecurityGroupList请求参数结构体
1953
+ class DescribeSecurityGroupListRequest < TencentCloud::Common::AbstractModel
1954
+ # @param Direction: 0: 出站规则,1:入站规则
1955
+ # @type Direction: Integer
1956
+ # @param Area: 地域代码(例: ap-guangzhou),支持腾讯云全部地域
1957
+ # @type Area: String
1958
+ # @param SearchValue: 搜索值
1959
+ # @type SearchValue: String
1960
+ # @param Limit: 每页条数,默认为10
1961
+ # @type Limit: Integer
1962
+ # @param Offset: 偏移值,默认为0
1963
+ # @type Offset: Integer
1964
+ # @param Status: 状态,'': 全部,'0':筛选停用规则,'1':筛选启用规则
1965
+ # @type Status: String
1966
+ # @param Filter: 0: 不过滤,1:过滤掉正常规则,保留下发异常规则
1967
+ # @type Filter: Integer
1968
+
1969
+ attr_accessor :Direction, :Area, :SearchValue, :Limit, :Offset, :Status, :Filter
1970
+
1971
+ def initialize(direction=nil, area=nil, searchvalue=nil, limit=nil, offset=nil, status=nil, filter=nil)
1972
+ @Direction = direction
1973
+ @Area = area
1974
+ @SearchValue = searchvalue
1975
+ @Limit = limit
1976
+ @Offset = offset
1977
+ @Status = status
1978
+ @Filter = filter
1979
+ end
1980
+
1981
+ def deserialize(params)
1982
+ @Direction = params['Direction']
1983
+ @Area = params['Area']
1984
+ @SearchValue = params['SearchValue']
1985
+ @Limit = params['Limit']
1986
+ @Offset = params['Offset']
1987
+ @Status = params['Status']
1988
+ @Filter = params['Filter']
1989
+ end
1990
+ end
1991
+
1992
+ # DescribeSecurityGroupList返回参数结构体
1993
+ class DescribeSecurityGroupListResponse < TencentCloud::Common::AbstractModel
1994
+ # @param Total: 列表当前规则总条数
1995
+ # @type Total: Integer
1996
+ # @param Data: 安全组规则列表数据
1997
+ # @type Data: Array
1998
+ # @param AllTotal: 不算筛选条数的总条数
1999
+ # @type AllTotal: Integer
2000
+ # @param Enable: 访问控制规则全部启用/全部停用
2001
+ # 注意:此字段可能返回 null,表示取不到有效值。
2002
+ # @type Enable: Integer
2003
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2004
+ # @type RequestId: String
2005
+
2006
+ attr_accessor :Total, :Data, :AllTotal, :Enable, :RequestId
2007
+
2008
+ def initialize(total=nil, data=nil, alltotal=nil, enable=nil, requestid=nil)
2009
+ @Total = total
2010
+ @Data = data
2011
+ @AllTotal = alltotal
2012
+ @Enable = enable
2013
+ @RequestId = requestid
2014
+ end
2015
+
2016
+ def deserialize(params)
2017
+ @Total = params['Total']
2018
+ unless params['Data'].nil?
2019
+ @Data = []
2020
+ params['Data'].each do |i|
2021
+ securitygrouplistdata_tmp = SecurityGroupListData.new
2022
+ securitygrouplistdata_tmp.deserialize(i)
2023
+ @Data << securitygrouplistdata_tmp
2024
+ end
2025
+ end
2026
+ @AllTotal = params['AllTotal']
2027
+ @Enable = params['Enable']
2028
+ @RequestId = params['RequestId']
2029
+ end
2030
+ end
2031
+
2032
+ # DescribeSourceAsset请求参数结构体
2033
+ class DescribeSourceAssetRequest < TencentCloud::Common::AbstractModel
2034
+ # @param FuzzySearch: 模糊查询
2035
+ # @type FuzzySearch: String
2036
+ # @param InsType: 资产类型 1公网 2内网
2037
+ # @type InsType: String
2038
+ # @param ChooseType: ChooseType为1,查询已经分组的资产;ChooseType不为1查询没有分组的资产
2039
+ # @type ChooseType: String
2040
+ # @param Zone: 地域
2041
+ # @type Zone: String
2042
+ # @param Limit: 查询单页的最大值;eg:10;则最多返回10条结果
2043
+ # @type Limit: Integer
2044
+ # @param Offset: 查询结果的偏移量
2045
+ # @type Offset: Integer
2046
+
2047
+ attr_accessor :FuzzySearch, :InsType, :ChooseType, :Zone, :Limit, :Offset
2048
+
2049
+ def initialize(fuzzysearch=nil, instype=nil, choosetype=nil, zone=nil, limit=nil, offset=nil)
2050
+ @FuzzySearch = fuzzysearch
2051
+ @InsType = instype
2052
+ @ChooseType = choosetype
2053
+ @Zone = zone
2054
+ @Limit = limit
2055
+ @Offset = offset
2056
+ end
2057
+
2058
+ def deserialize(params)
2059
+ @FuzzySearch = params['FuzzySearch']
2060
+ @InsType = params['InsType']
2061
+ @ChooseType = params['ChooseType']
2062
+ @Zone = params['Zone']
2063
+ @Limit = params['Limit']
2064
+ @Offset = params['Offset']
2065
+ end
2066
+ end
2067
+
2068
+ # DescribeSourceAsset返回参数结构体
2069
+ class DescribeSourceAssetResponse < TencentCloud::Common::AbstractModel
2070
+ # @param ZoneList: 地域集合
2071
+ # @type ZoneList: Array
2072
+ # @param Data: 数据
2073
+ # @type Data: Array
2074
+ # @param Total: 返回数据总数
2075
+ # @type Total: Integer
2076
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2077
+ # @type RequestId: String
2078
+
2079
+ attr_accessor :ZoneList, :Data, :Total, :RequestId
2080
+
2081
+ def initialize(zonelist=nil, data=nil, total=nil, requestid=nil)
2082
+ @ZoneList = zonelist
2083
+ @Data = data
2084
+ @Total = total
2085
+ @RequestId = requestid
2086
+ end
2087
+
2088
+ def deserialize(params)
2089
+ unless params['ZoneList'].nil?
2090
+ @ZoneList = []
2091
+ params['ZoneList'].each do |i|
2092
+ assetzone_tmp = AssetZone.new
2093
+ assetzone_tmp.deserialize(i)
2094
+ @ZoneList << assetzone_tmp
2095
+ end
2096
+ end
2097
+ unless params['Data'].nil?
2098
+ @Data = []
2099
+ params['Data'].each do |i|
2100
+ instanceinfo_tmp = InstanceInfo.new
2101
+ instanceinfo_tmp.deserialize(i)
2102
+ @Data << instanceinfo_tmp
2103
+ end
2104
+ end
2105
+ @Total = params['Total']
2106
+ @RequestId = params['RequestId']
2107
+ end
2108
+ end
2109
+
2110
+ # DescribeSwitchLists请求参数结构体
2111
+ class DescribeSwitchListsRequest < TencentCloud::Common::AbstractModel
2112
+ # @param Status: 防火墙状态 0: 关闭,1:开启
2113
+ # @type Status: Integer
2114
+ # @param Type: 资产类型 CVM/NAT/VPN/CLB/其它
2115
+ # @type Type: String
2116
+ # @param Area: 地域 上海/重庆/广州,等等
2117
+ # @type Area: String
2118
+ # @param SearchValue: 搜索值 例子:"{"common":"106.54.189.45"}"
2119
+ # @type SearchValue: String
2120
+ # @param Limit: 条数 默认值:10
2121
+ # @type Limit: Integer
2122
+ # @param Offset: 偏移值 默认值: 0
2123
+ # @type Offset: Integer
2124
+ # @param Order: 排序,desc:降序,asc:升序
2125
+ # @type Order: String
2126
+ # @param By: 排序字段 PortTimes(风险端口数)
2127
+ # @type By: String
2128
+
2129
+ attr_accessor :Status, :Type, :Area, :SearchValue, :Limit, :Offset, :Order, :By
2130
+
2131
+ def initialize(status=nil, type=nil, area=nil, searchvalue=nil, limit=nil, offset=nil, order=nil, by=nil)
2132
+ @Status = status
2133
+ @Type = type
2134
+ @Area = area
2135
+ @SearchValue = searchvalue
2136
+ @Limit = limit
2137
+ @Offset = offset
2138
+ @Order = order
2139
+ @By = by
2140
+ end
2141
+
2142
+ def deserialize(params)
2143
+ @Status = params['Status']
2144
+ @Type = params['Type']
2145
+ @Area = params['Area']
2146
+ @SearchValue = params['SearchValue']
2147
+ @Limit = params['Limit']
2148
+ @Offset = params['Offset']
2149
+ @Order = params['Order']
2150
+ @By = params['By']
2151
+ end
2152
+ end
2153
+
2154
+ # DescribeSwitchLists返回参数结构体
2155
+ class DescribeSwitchListsResponse < TencentCloud::Common::AbstractModel
2156
+ # @param Total: 总条数
2157
+ # @type Total: Integer
2158
+ # @param Data: 列表数据
2159
+ # @type Data: Array
2160
+ # @param AreaLists: 区域列表
2161
+ # @type AreaLists: Array
2162
+ # @param OnNum: 打开个数
2163
+ # 注意:此字段可能返回 null,表示取不到有效值。
2164
+ # @type OnNum: Integer
2165
+ # @param OffNum: 关闭个数
2166
+ # 注意:此字段可能返回 null,表示取不到有效值。
2167
+ # @type OffNum: Integer
2168
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2169
+ # @type RequestId: String
2170
+
2171
+ attr_accessor :Total, :Data, :AreaLists, :OnNum, :OffNum, :RequestId
2172
+
2173
+ def initialize(total=nil, data=nil, arealists=nil, onnum=nil, offnum=nil, requestid=nil)
2174
+ @Total = total
2175
+ @Data = data
2176
+ @AreaLists = arealists
2177
+ @OnNum = onnum
2178
+ @OffNum = offnum
2179
+ @RequestId = requestid
2180
+ end
2181
+
2182
+ def deserialize(params)
2183
+ @Total = params['Total']
2184
+ unless params['Data'].nil?
2185
+ @Data = []
2186
+ params['Data'].each do |i|
2187
+ switchlistsdata_tmp = SwitchListsData.new
2188
+ switchlistsdata_tmp.deserialize(i)
2189
+ @Data << switchlistsdata_tmp
2190
+ end
2191
+ end
2192
+ @AreaLists = params['AreaLists']
2193
+ @OnNum = params['OnNum']
2194
+ @OffNum = params['OffNum']
2195
+ @RequestId = params['RequestId']
2196
+ end
2197
+ end
2198
+
2199
+ # DescribeSyncAssetStatus请求参数结构体
2200
+ class DescribeSyncAssetStatusRequest < TencentCloud::Common::AbstractModel
2201
+ # @param Type: 0: 互联网防火墙开关,1:vpc 防火墙开关
2202
+ # @type Type: Integer
2203
+
2204
+ attr_accessor :Type
2205
+
2206
+ def initialize(type=nil)
2207
+ @Type = type
2208
+ end
2209
+
2210
+ def deserialize(params)
2211
+ @Type = params['Type']
2212
+ end
2213
+ end
2214
+
2215
+ # DescribeSyncAssetStatus返回参数结构体
2216
+ class DescribeSyncAssetStatusResponse < TencentCloud::Common::AbstractModel
2217
+ # @param Status: 1-更新中 2-更新完成 3、4-更新失败
2218
+ # @type Status: Integer
2219
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2220
+ # @type RequestId: String
2221
+
2222
+ attr_accessor :Status, :RequestId
2223
+
2224
+ def initialize(status=nil, requestid=nil)
2225
+ @Status = status
2226
+ @RequestId = requestid
2227
+ end
2228
+
2229
+ def deserialize(params)
2230
+ @Status = params['Status']
2231
+ @RequestId = params['RequestId']
2232
+ end
2233
+ end
2234
+
2235
+ # DescribeTLogInfo请求参数结构体
2236
+ class DescribeTLogInfoRequest < TencentCloud::Common::AbstractModel
2237
+ # @param StartTime: 开始时间
2238
+ # @type StartTime: String
2239
+ # @param EndTime: 结束时间
2240
+ # @type EndTime: String
2241
+ # @param QueryType: 类型 1 告警 2阻断
2242
+ # @type QueryType: String
2243
+ # @param SearchValue: 查询条件
2244
+ # @type SearchValue: String
2245
+
2246
+ attr_accessor :StartTime, :EndTime, :QueryType, :SearchValue
2247
+
2248
+ def initialize(starttime=nil, endtime=nil, querytype=nil, searchvalue=nil)
2249
+ @StartTime = starttime
2250
+ @EndTime = endtime
2251
+ @QueryType = querytype
2252
+ @SearchValue = searchvalue
2253
+ end
2254
+
2255
+ def deserialize(params)
2256
+ @StartTime = params['StartTime']
2257
+ @EndTime = params['EndTime']
2258
+ @QueryType = params['QueryType']
2259
+ @SearchValue = params['SearchValue']
2260
+ end
2261
+ end
2262
+
2263
+ # DescribeTLogInfo返回参数结构体
2264
+ class DescribeTLogInfoResponse < TencentCloud::Common::AbstractModel
2265
+ # @param Data: 无
2266
+ # @type Data: :class:`Tencentcloud::Cfw.v20190904.models.TLogInfo`
2267
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2268
+ # @type RequestId: String
2269
+
2270
+ attr_accessor :Data, :RequestId
2271
+
2272
+ def initialize(data=nil, requestid=nil)
2273
+ @Data = data
2274
+ @RequestId = requestid
2275
+ end
2276
+
2277
+ def deserialize(params)
2278
+ unless params['Data'].nil?
2279
+ @Data = TLogInfo.new
2280
+ @Data.deserialize(params['Data'])
2281
+ end
2282
+ @RequestId = params['RequestId']
2283
+ end
2284
+ end
2285
+
2286
+ # DescribeTLogIpList请求参数结构体
2287
+ class DescribeTLogIpListRequest < TencentCloud::Common::AbstractModel
2288
+ # @param StartTime: 开始时间
2289
+ # @type StartTime: String
2290
+ # @param EndTime: 结束时间
2291
+ # @type EndTime: String
2292
+ # @param QueryType: 类型 1 告警 2阻断
2293
+ # @type QueryType: String
2294
+ # @param Top: top数
2295
+ # @type Top: Integer
2296
+ # @param SearchValue: 查询条件
2297
+ # @type SearchValue: String
2298
+
2299
+ attr_accessor :StartTime, :EndTime, :QueryType, :Top, :SearchValue
2300
+
2301
+ def initialize(starttime=nil, endtime=nil, querytype=nil, top=nil, searchvalue=nil)
2302
+ @StartTime = starttime
2303
+ @EndTime = endtime
2304
+ @QueryType = querytype
2305
+ @Top = top
2306
+ @SearchValue = searchvalue
2307
+ end
2308
+
2309
+ def deserialize(params)
2310
+ @StartTime = params['StartTime']
2311
+ @EndTime = params['EndTime']
2312
+ @QueryType = params['QueryType']
2313
+ @Top = params['Top']
2314
+ @SearchValue = params['SearchValue']
2315
+ end
2316
+ end
2317
+
2318
+ # DescribeTLogIpList返回参数结构体
2319
+ class DescribeTLogIpListResponse < TencentCloud::Common::AbstractModel
2320
+ # @param Data: 数据集合
2321
+ # @type Data: Array
2322
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2323
+ # @type RequestId: String
2324
+
2325
+ attr_accessor :Data, :RequestId
2326
+
2327
+ def initialize(data=nil, requestid=nil)
2328
+ @Data = data
2329
+ @RequestId = requestid
2330
+ end
2331
+
2332
+ def deserialize(params)
2333
+ unless params['Data'].nil?
2334
+ @Data = []
2335
+ params['Data'].each do |i|
2336
+ staticinfo_tmp = StaticInfo.new
2337
+ staticinfo_tmp.deserialize(i)
2338
+ @Data << staticinfo_tmp
2339
+ end
2340
+ end
2341
+ @RequestId = params['RequestId']
2342
+ end
2343
+ end
2344
+
2345
+ # DescribeTableStatus请求参数结构体
2346
+ class DescribeTableStatusRequest < TencentCloud::Common::AbstractModel
2347
+ # @param EdgeId: EdgeId值两个vpc间的边id vpc填Edgeid,不要填Area;
2348
+ # @type EdgeId: String
2349
+ # @param Status: 状态值,0:检查表的状态 确实只有一个默认值
2350
+ # @type Status: Integer
2351
+ # @param Area: Nat所在地域 NAT填Area,不要填Edgeid;
2352
+ # @type Area: String
2353
+ # @param Direction: 方向,0:出站,1:入站 默认值为 0
2354
+ # @type Direction: Integer
2355
+
2356
+ attr_accessor :EdgeId, :Status, :Area, :Direction
2357
+
2358
+ def initialize(edgeid=nil, status=nil, area=nil, direction=nil)
2359
+ @EdgeId = edgeid
2360
+ @Status = status
2361
+ @Area = area
2362
+ @Direction = direction
2363
+ end
2364
+
2365
+ def deserialize(params)
2366
+ @EdgeId = params['EdgeId']
2367
+ @Status = params['Status']
2368
+ @Area = params['Area']
2369
+ @Direction = params['Direction']
2370
+ end
2371
+ end
2372
+
2373
+ # DescribeTableStatus返回参数结构体
2374
+ class DescribeTableStatusResponse < TencentCloud::Common::AbstractModel
2375
+ # @param Status: 0:正常,其它:不正常
2376
+ # 注意:此字段可能返回 null,表示取不到有效值。
2377
+ # @type Status: Integer
2378
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2379
+ # @type RequestId: String
2380
+
2381
+ attr_accessor :Status, :RequestId
2382
+
2383
+ def initialize(status=nil, requestid=nil)
2384
+ @Status = status
2385
+ @RequestId = requestid
2386
+ end
2387
+
2388
+ def deserialize(params)
2389
+ @Status = params['Status']
2390
+ @RequestId = params['RequestId']
2391
+ end
2392
+ end
2393
+
2394
+ # DescribeUnHandleEventTabList请求参数结构体
2395
+ class DescribeUnHandleEventTabListRequest < TencentCloud::Common::AbstractModel
2396
+ # @param StartTime: 开始时间
2397
+ # @type StartTime: String
2398
+ # @param EndTime: 结束时间
2399
+ # @type EndTime: String
2400
+ # @param AssetID: 查询示例ID
2401
+ # @type AssetID: String
2402
+
2403
+ attr_accessor :StartTime, :EndTime, :AssetID
2404
+
2405
+ def initialize(starttime=nil, endtime=nil, assetid=nil)
2406
+ @StartTime = starttime
2407
+ @EndTime = endtime
2408
+ @AssetID = assetid
2409
+ end
2410
+
2411
+ def deserialize(params)
2412
+ @StartTime = params['StartTime']
2413
+ @EndTime = params['EndTime']
2414
+ @AssetID = params['AssetID']
2415
+ end
2416
+ end
2417
+
2418
+ # DescribeUnHandleEventTabList返回参数结构体
2419
+ class DescribeUnHandleEventTabListResponse < TencentCloud::Common::AbstractModel
2420
+ # @param Data: 租户伪攻击链未处置事件
2421
+ # 注意:此字段可能返回 null,表示取不到有效值。
2422
+ # @type Data: :class:`Tencentcloud::Cfw.v20190904.models.UnHandleEvent`
2423
+ # @param ReturnCode: 错误码,0成功 非0错误
2424
+ # @type ReturnCode: Integer
2425
+ # @param ReturnMsg: 返回信息 success成功
2426
+ # @type ReturnMsg: String
2427
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2428
+ # @type RequestId: String
2429
+
2430
+ attr_accessor :Data, :ReturnCode, :ReturnMsg, :RequestId
2431
+
2432
+ def initialize(data=nil, returncode=nil, returnmsg=nil, requestid=nil)
2433
+ @Data = data
2434
+ @ReturnCode = returncode
2435
+ @ReturnMsg = returnmsg
2436
+ @RequestId = requestid
2437
+ end
2438
+
2439
+ def deserialize(params)
2440
+ unless params['Data'].nil?
2441
+ @Data = UnHandleEvent.new
2442
+ @Data.deserialize(params['Data'])
2443
+ end
2444
+ @ReturnCode = params['ReturnCode']
2445
+ @ReturnMsg = params['ReturnMsg']
2446
+ @RequestId = params['RequestId']
2447
+ end
2448
+ end
2449
+
2450
+ # DescribeVpcRuleOverview请求参数结构体
2451
+ class DescribeVpcRuleOverviewRequest < TencentCloud::Common::AbstractModel
2452
+ # @param EdgeId: EdgeId值两个vpc间的边id 不是必填项可以为空,就是所有vpc间的访问控制规则
2453
+ # @type EdgeId: String
2454
+
2455
+ attr_accessor :EdgeId
2456
+
2457
+ def initialize(edgeid=nil)
2458
+ @EdgeId = edgeid
2459
+ end
2460
+
2461
+ def deserialize(params)
2462
+ @EdgeId = params['EdgeId']
2463
+ end
2464
+ end
2465
+
2466
+ # DescribeVpcRuleOverview返回参数结构体
2467
+ class DescribeVpcRuleOverviewResponse < TencentCloud::Common::AbstractModel
2468
+ # @param StrategyNum: 阻断策略规则数量
2469
+ # 注意:此字段可能返回 null,表示取不到有效值。
2470
+ # @type StrategyNum: Integer
2471
+ # @param StartRuleNum: 启用规则数量
2472
+ # 注意:此字段可能返回 null,表示取不到有效值。
2473
+ # @type StartRuleNum: Integer
2474
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2475
+ # @type RequestId: String
2476
+
2477
+ attr_accessor :StrategyNum, :StartRuleNum, :RequestId
2478
+
2479
+ def initialize(strategynum=nil, startrulenum=nil, requestid=nil)
2480
+ @StrategyNum = strategynum
2481
+ @StartRuleNum = startrulenum
2482
+ @RequestId = requestid
2483
+ end
2484
+
2485
+ def deserialize(params)
2486
+ @StrategyNum = params['StrategyNum']
2487
+ @StartRuleNum = params['StartRuleNum']
2488
+ @RequestId = params['RequestId']
2489
+ end
2490
+ end
2491
+
2492
+ # 设置nat防火墙的vpc dns 接入开关
2493
+ class DnsVpcSwitch < TencentCloud::Common::AbstractModel
2494
+ # @param VpcId: vpc id
2495
+ # @type VpcId: String
2496
+ # @param Status: 0:设置为关闭 1:设置为打开
2497
+ # @type Status: Integer
2498
+
2499
+ attr_accessor :VpcId, :Status
2500
+
2501
+ def initialize(vpcid=nil, status=nil)
2502
+ @VpcId = vpcid
2503
+ @Status = status
2504
+ end
2505
+
2506
+ def deserialize(params)
2507
+ @VpcId = params['VpcId']
2508
+ @Status = params['Status']
2509
+ end
2510
+ end
2511
+
2512
+ # ExpandCfwVertical请求参数结构体
2513
+ class ExpandCfwVerticalRequest < TencentCloud::Common::AbstractModel
2514
+ # @param FwType: nat:nat防火墙,ew:东西向防火墙
2515
+ # @type FwType: String
2516
+ # @param Width: 带宽值
2517
+ # @type Width: Integer
2518
+ # @param CfwInstance: 防火墙实例id
2519
+ # @type CfwInstance: String
2520
+
2521
+ attr_accessor :FwType, :Width, :CfwInstance
2522
+
2523
+ def initialize(fwtype=nil, width=nil, cfwinstance=nil)
2524
+ @FwType = fwtype
2525
+ @Width = width
2526
+ @CfwInstance = cfwinstance
2527
+ end
2528
+
2529
+ def deserialize(params)
2530
+ @FwType = params['FwType']
2531
+ @Width = params['Width']
2532
+ @CfwInstance = params['CfwInstance']
2533
+ end
2534
+ end
2535
+
2536
+ # ExpandCfwVertical返回参数结构体
2537
+ class ExpandCfwVerticalResponse < TencentCloud::Common::AbstractModel
2538
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2539
+ # @type RequestId: String
2540
+
2541
+ attr_accessor :RequestId
2542
+
2543
+ def initialize(requestid=nil)
2544
+ @RequestId = requestid
2545
+ end
2546
+
2547
+ def deserialize(params)
2548
+ @RequestId = params['RequestId']
2549
+ end
2550
+ end
2551
+
2552
+ # // InstanceInfo 实例详情结果
2553
+ # type InstanceInfo struct {
2554
+ # AppID string `json:"AppId" gorm:"column:appid"`
2555
+ # Region string `json:"Region" gorm:"column:region"`
2556
+ # VPCID string `json:"VpcId" gorm:"column:vpc_id"`
2557
+ # SubNetID string `json:"SubnetId" gorm:"column:subnet_id"`
2558
+ # InstanceID string `json:"InstanceId" gorm:"column:instance_id"`
2559
+ # InstanceName string `json:"InstanceName" gorm:"column:instance_name"`
2560
+ # //InsType common.CVM 3是cvm实例,4是clb实例,5是eni实例,6是mysql,7是redis,8是NAT,9是VPN,10是ES,11是MARIADB,12是KAFKA
2561
+ # InsType int `json:"InsType" gorm:"column:instance_type"`
2562
+ # PublicIP string `json:"PublicIp" gorm:"column:public_ip"`
2563
+ # PrivateIP string `json:"PrivateIp" gorm:"column:ip"`
2564
+
2565
+ # //规则下发无需管,前端展示用
2566
+ # PortNum string `json:"PortNum" gorm:"column:port_num"`
2567
+ # LeakNum string `json:"LeakNum" gorm:"column:leak_num"`
2568
+ # ResourceGroupNum int `json:"ResourceGroupNum"`
2569
+ # VPCName string `json:"VPCName" gorm:"column:VPCName"`
2570
+ # }
2571
+ class InstanceInfo < TencentCloud::Common::AbstractModel
2572
+ # @param AppId: appid信息
2573
+ # @type AppId: String
2574
+ # @param Region: 地域
2575
+ # @type Region: String
2576
+ # @param VpcId: vpcid信息
2577
+ # @type VpcId: String
2578
+ # @param VPCName: vpc名称
2579
+ # @type VPCName: String
2580
+ # @param SubnetId: 子网id
2581
+ # @type SubnetId: String
2582
+ # @param InstanceId: 资产id
2583
+ # @type InstanceId: String
2584
+ # @param InstanceName: 资产名
2585
+ # @type InstanceName: String
2586
+ # @param InsType: 资产类型
2587
+ # 3是cvm实例,4是clb实例,5是eni实例,6是mysql,7是redis,8是NAT,9是VPN,10是ES,11是MARIADB,12是KAFKA 13 NATFW
2588
+ # @type InsType: Integer
2589
+ # @param PublicIp: 公网ip
2590
+ # @type PublicIp: String
2591
+ # @param PrivateIp: 内网ip
2592
+ # @type PrivateIp: String
2593
+ # @param PortNum: 端口数
2594
+ # @type PortNum: String
2595
+ # @param LeakNum: 漏洞数
2596
+ # @type LeakNum: String
2597
+ # @param InsSource: 1,公网 2内网
2598
+ # @type InsSource: String
2599
+ # @param ResourcePath: [a,b]
2600
+ # 注意:此字段可能返回 null,表示取不到有效值。
2601
+ # @type ResourcePath: Array
2602
+
2603
+ attr_accessor :AppId, :Region, :VpcId, :VPCName, :SubnetId, :InstanceId, :InstanceName, :InsType, :PublicIp, :PrivateIp, :PortNum, :LeakNum, :InsSource, :ResourcePath
2604
+
2605
+ def initialize(appid=nil, region=nil, vpcid=nil, vpcname=nil, subnetid=nil, instanceid=nil, instancename=nil, instype=nil, publicip=nil, privateip=nil, portnum=nil, leaknum=nil, inssource=nil, resourcepath=nil)
2606
+ @AppId = appid
2607
+ @Region = region
2608
+ @VpcId = vpcid
2609
+ @VPCName = vpcname
2610
+ @SubnetId = subnetid
2611
+ @InstanceId = instanceid
2612
+ @InstanceName = instancename
2613
+ @InsType = instype
2614
+ @PublicIp = publicip
2615
+ @PrivateIp = privateip
2616
+ @PortNum = portnum
2617
+ @LeakNum = leaknum
2618
+ @InsSource = inssource
2619
+ @ResourcePath = resourcepath
2620
+ end
2621
+
2622
+ def deserialize(params)
2623
+ @AppId = params['AppId']
2624
+ @Region = params['Region']
2625
+ @VpcId = params['VpcId']
2626
+ @VPCName = params['VPCName']
2627
+ @SubnetId = params['SubnetId']
2628
+ @InstanceId = params['InstanceId']
2629
+ @InstanceName = params['InstanceName']
2630
+ @InsType = params['InsType']
2631
+ @PublicIp = params['PublicIp']
2632
+ @PrivateIp = params['PrivateIp']
2633
+ @PortNum = params['PortNum']
2634
+ @LeakNum = params['LeakNum']
2635
+ @InsSource = params['InsSource']
2636
+ @ResourcePath = params['ResourcePath']
2637
+ end
2638
+ end
2639
+
2640
+ # 黑白名单IOC列表
2641
+ class IocListData < TencentCloud::Common::AbstractModel
2642
+ # @param IP: 待处置IP地址,IP/Domain字段二选一
2643
+ # @type IP: String
2644
+ # @param Direction: 只能为0或者1 0代表出站 1代表入站
2645
+ # @type Direction: Integer
2646
+ # @param Domain: 待处置域名,IP/Domain字段二选一
2647
+ # @type Domain: String
2648
+
2649
+ attr_accessor :IP, :Direction, :Domain
2650
+
2651
+ def initialize(ip=nil, direction=nil, domain=nil)
2652
+ @IP = ip
2653
+ @Direction = direction
2654
+ @Domain = domain
2655
+ end
2656
+
2657
+ def deserialize(params)
2658
+ @IP = params['IP']
2659
+ @Direction = params['Direction']
2660
+ @Domain = params['Domain']
2661
+ end
2662
+ end
2663
+
2664
+ # 统计折线图通用结构体
2665
+ class IpStatic < TencentCloud::Common::AbstractModel
2666
+ # @param Num: 值
2667
+ # @type Num: Integer
2668
+ # @param StatTime: 折线图横坐标时间
2669
+ # @type StatTime: String
2670
+
2671
+ attr_accessor :Num, :StatTime
2672
+
2673
+ def initialize(num=nil, stattime=nil)
2674
+ @Num = num
2675
+ @StatTime = stattime
2676
+ end
2677
+
2678
+ def deserialize(params)
2679
+ @Num = params['Num']
2680
+ @StatTime = params['StatTime']
2681
+ end
2682
+ end
2683
+
2684
+ # ModifyAcRule请求参数结构体
2685
+ class ModifyAcRuleRequest < TencentCloud::Common::AbstractModel
2686
+ # @param Data: 规则数组
2687
+ # @type Data: Array
2688
+ # @param EdgeId: EdgeId值
2689
+ # @type EdgeId: String
2690
+ # @param Enable: 访问规则状态
2691
+ # @type Enable: Integer
2692
+ # @param Area: NAT地域
2693
+ # @type Area: String
2694
+
2695
+ attr_accessor :Data, :EdgeId, :Enable, :Area
2696
+
2697
+ def initialize(data=nil, edgeid=nil, enable=nil, area=nil)
2698
+ @Data = data
2699
+ @EdgeId = edgeid
2700
+ @Enable = enable
2701
+ @Area = area
2702
+ end
2703
+
2704
+ def deserialize(params)
2705
+ unless params['Data'].nil?
2706
+ @Data = []
2707
+ params['Data'].each do |i|
2708
+ ruleinfodata_tmp = RuleInfoData.new
2709
+ ruleinfodata_tmp.deserialize(i)
2710
+ @Data << ruleinfodata_tmp
2711
+ end
2712
+ end
2713
+ @EdgeId = params['EdgeId']
2714
+ @Enable = params['Enable']
2715
+ @Area = params['Area']
2716
+ end
2717
+ end
2718
+
2719
+ # ModifyAcRule返回参数结构体
2720
+ class ModifyAcRuleResponse < TencentCloud::Common::AbstractModel
2721
+ # @param Status: 状态值,0:操作成功,非0:操作失败
2722
+ # @type Status: Integer
2723
+ # @param Info: 返回多余的信息
2724
+ # 注意:此字段可能返回 null,表示取不到有效值。
2725
+ # @type Info: String
2726
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2727
+ # @type RequestId: String
2728
+
2729
+ attr_accessor :Status, :Info, :RequestId
2730
+
2731
+ def initialize(status=nil, info=nil, requestid=nil)
2732
+ @Status = status
2733
+ @Info = info
2734
+ @RequestId = requestid
2735
+ end
2736
+
2737
+ def deserialize(params)
2738
+ @Status = params['Status']
2739
+ @Info = params['Info']
2740
+ @RequestId = params['RequestId']
2741
+ end
2742
+ end
2743
+
2744
+ # ModifyAllPublicIPSwitchStatus请求参数结构体
2745
+ class ModifyAllPublicIPSwitchStatusRequest < TencentCloud::Common::AbstractModel
2746
+ # @param Status: 状态,0:关闭,1:开启
2747
+ # @type Status: Integer
2748
+ # @param FireWallPublicIPs: 选中的防火墙开关Id
2749
+ # @type FireWallPublicIPs: Array
2750
+
2751
+ attr_accessor :Status, :FireWallPublicIPs
2752
+
2753
+ def initialize(status=nil, firewallpublicips=nil)
2754
+ @Status = status
2755
+ @FireWallPublicIPs = firewallpublicips
2756
+ end
2757
+
2758
+ def deserialize(params)
2759
+ @Status = params['Status']
2760
+ @FireWallPublicIPs = params['FireWallPublicIPs']
2761
+ end
2762
+ end
2763
+
2764
+ # ModifyAllPublicIPSwitchStatus返回参数结构体
2765
+ class ModifyAllPublicIPSwitchStatusResponse < TencentCloud::Common::AbstractModel
2766
+ # @param ReturnMsg: 接口返回信息
2767
+ # 注意:此字段可能返回 null,表示取不到有效值。
2768
+ # @type ReturnMsg: String
2769
+ # @param ReturnCode: 接口返回错误码,0请求成功 非0失败
2770
+ # 注意:此字段可能返回 null,表示取不到有效值。
2771
+ # @type ReturnCode: Integer
2772
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2773
+ # @type RequestId: String
2774
+
2775
+ attr_accessor :ReturnMsg, :ReturnCode, :RequestId
2776
+
2777
+ def initialize(returnmsg=nil, returncode=nil, requestid=nil)
2778
+ @ReturnMsg = returnmsg
2779
+ @ReturnCode = returncode
2780
+ @RequestId = requestid
2781
+ end
2782
+
2783
+ def deserialize(params)
2784
+ @ReturnMsg = params['ReturnMsg']
2785
+ @ReturnCode = params['ReturnCode']
2786
+ @RequestId = params['RequestId']
2787
+ end
2788
+ end
2789
+
2790
+ # ModifyAllRuleStatus请求参数结构体
2791
+ class ModifyAllRuleStatusRequest < TencentCloud::Common::AbstractModel
2792
+ # @param Status: 状态,0:全部停用,1:全部启用
2793
+ # @type Status: Integer
2794
+ # @param Direction: 方向,0:出站,1:入站
2795
+ # @type Direction: Integer
2796
+ # @param EdgeId: Edge ID值
2797
+ # @type EdgeId: String
2798
+ # @param Area: NAT地域
2799
+ # @type Area: String
2800
+
2801
+ attr_accessor :Status, :Direction, :EdgeId, :Area
2802
+
2803
+ def initialize(status=nil, direction=nil, edgeid=nil, area=nil)
2804
+ @Status = status
2805
+ @Direction = direction
2806
+ @EdgeId = edgeid
2807
+ @Area = area
2808
+ end
2809
+
2810
+ def deserialize(params)
2811
+ @Status = params['Status']
2812
+ @Direction = params['Direction']
2813
+ @EdgeId = params['EdgeId']
2814
+ @Area = params['Area']
2815
+ end
2816
+ end
2817
+
2818
+ # ModifyAllRuleStatus返回参数结构体
2819
+ class ModifyAllRuleStatusResponse < TencentCloud::Common::AbstractModel
2820
+ # @param Status: 0: 修改成功, 其他: 修改失败
2821
+ # 注意:此字段可能返回 null,表示取不到有效值。
2822
+ # @type Status: Integer
2823
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2824
+ # @type RequestId: String
2825
+
2826
+ attr_accessor :Status, :RequestId
2827
+
2828
+ def initialize(status=nil, requestid=nil)
2829
+ @Status = status
2830
+ @RequestId = requestid
2831
+ end
2832
+
2833
+ def deserialize(params)
2834
+ @Status = params['Status']
2835
+ @RequestId = params['RequestId']
2836
+ end
2837
+ end
2838
+
2839
+ # ModifyAllSwitchStatus请求参数结构体
2840
+ class ModifyAllSwitchStatusRequest < TencentCloud::Common::AbstractModel
2841
+ # @param Status: 状态,0:关闭,1:开启
2842
+ # @type Status: Integer
2843
+ # @param Type: 0: 互联网边界防火墙开关,1:vpc防火墙开关
2844
+ # @type Type: Integer
2845
+ # @param Ids: 选中的防火墙开关Id
2846
+ # @type Ids: Array
2847
+ # @param ChangeType: NAT开关切换类型,1,单个子网,2,同开同关,3,全部
2848
+ # @type ChangeType: Integer
2849
+ # @param Area: NAT实例所在地域
2850
+ # @type Area: String
2851
+
2852
+ attr_accessor :Status, :Type, :Ids, :ChangeType, :Area
2853
+
2854
+ def initialize(status=nil, type=nil, ids=nil, changetype=nil, area=nil)
2855
+ @Status = status
2856
+ @Type = type
2857
+ @Ids = ids
2858
+ @ChangeType = changetype
2859
+ @Area = area
2860
+ end
2861
+
2862
+ def deserialize(params)
2863
+ @Status = params['Status']
2864
+ @Type = params['Type']
2865
+ @Ids = params['Ids']
2866
+ @ChangeType = params['ChangeType']
2867
+ @Area = params['Area']
2868
+ end
2869
+ end
2870
+
2871
+ # ModifyAllSwitchStatus返回参数结构体
2872
+ class ModifyAllSwitchStatusResponse < TencentCloud::Common::AbstractModel
2873
+ # @param Status: 修改成功与否的状态值 0:修改成功,非 0:修改失败
2874
+ # @type Status: Integer
2875
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2876
+ # @type RequestId: String
2877
+
2878
+ attr_accessor :Status, :RequestId
2879
+
2880
+ def initialize(status=nil, requestid=nil)
2881
+ @Status = status
2882
+ @RequestId = requestid
2883
+ end
2884
+
2885
+ def deserialize(params)
2886
+ @Status = params['Status']
2887
+ @RequestId = params['RequestId']
2888
+ end
2889
+ end
2890
+
2891
+ # ModifyAllVPCSwitchStatus请求参数结构体
2892
+ class ModifyAllVPCSwitchStatusRequest < TencentCloud::Common::AbstractModel
2893
+ # @param Status: 状态,0:关闭,1:开启
2894
+ # @type Status: Integer
2895
+ # @param FireWallVpcIds: 选中的防火墙开关Id
2896
+ # @type FireWallVpcIds: Array
2897
+
2898
+ attr_accessor :Status, :FireWallVpcIds
2899
+
2900
+ def initialize(status=nil, firewallvpcids=nil)
2901
+ @Status = status
2902
+ @FireWallVpcIds = firewallvpcids
2903
+ end
2904
+
2905
+ def deserialize(params)
2906
+ @Status = params['Status']
2907
+ @FireWallVpcIds = params['FireWallVpcIds']
2908
+ end
2909
+ end
2910
+
2911
+ # ModifyAllVPCSwitchStatus返回参数结构体
2912
+ class ModifyAllVPCSwitchStatusResponse < TencentCloud::Common::AbstractModel
2913
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2914
+ # @type RequestId: String
2915
+
2916
+ attr_accessor :RequestId
2917
+
2918
+ def initialize(requestid=nil)
2919
+ @RequestId = requestid
2920
+ end
2921
+
2922
+ def deserialize(params)
2923
+ @RequestId = params['RequestId']
2924
+ end
2925
+ end
2926
+
2927
+ # ModifyAssetScan请求参数结构体
2928
+ class ModifyAssetScanRequest < TencentCloud::Common::AbstractModel
2929
+ # @param ScanRange: 扫描范围:1端口, 2端口+漏扫
2930
+ # @type ScanRange: Integer
2931
+ # @param ScanDeep: 扫描深度:'heavy', 'medium', 'light'
2932
+ # @type ScanDeep: String
2933
+ # @param RangeType: 扫描类型:1立即扫描 2 周期任务
2934
+ # @type RangeType: Integer
2935
+ # @param ScanPeriod: RangeType为2 是必须添加,定时任务时间
2936
+ # @type ScanPeriod: String
2937
+ # @param ScanFilterIp: 立即扫描这个字段传过滤的扫描集合
2938
+ # @type ScanFilterIp: Array
2939
+ # @param ScanType: 1全量2单个
2940
+ # @type ScanType: Integer
2941
+
2942
+ attr_accessor :ScanRange, :ScanDeep, :RangeType, :ScanPeriod, :ScanFilterIp, :ScanType
2943
+
2944
+ def initialize(scanrange=nil, scandeep=nil, rangetype=nil, scanperiod=nil, scanfilterip=nil, scantype=nil)
2945
+ @ScanRange = scanrange
2946
+ @ScanDeep = scandeep
2947
+ @RangeType = rangetype
2948
+ @ScanPeriod = scanperiod
2949
+ @ScanFilterIp = scanfilterip
2950
+ @ScanType = scantype
2951
+ end
2952
+
2953
+ def deserialize(params)
2954
+ @ScanRange = params['ScanRange']
2955
+ @ScanDeep = params['ScanDeep']
2956
+ @RangeType = params['RangeType']
2957
+ @ScanPeriod = params['ScanPeriod']
2958
+ @ScanFilterIp = params['ScanFilterIp']
2959
+ @ScanType = params['ScanType']
2960
+ end
2961
+ end
2962
+
2963
+ # ModifyAssetScan返回参数结构体
2964
+ class ModifyAssetScanResponse < TencentCloud::Common::AbstractModel
2965
+ # @param ReturnMsg: 接口返回信息
2966
+ # 注意:此字段可能返回 null,表示取不到有效值。
2967
+ # @type ReturnMsg: String
2968
+ # @param ReturnCode: 接口返回错误码,0请求成功 非0失败
2969
+ # 注意:此字段可能返回 null,表示取不到有效值。
2970
+ # @type ReturnCode: Integer
2971
+ # @param Status: 状态值 0:成功,1 执行扫描中,其他:失败
2972
+ # @type Status: Integer
2973
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2974
+ # @type RequestId: String
2975
+
2976
+ attr_accessor :ReturnMsg, :ReturnCode, :Status, :RequestId
2977
+
2978
+ def initialize(returnmsg=nil, returncode=nil, status=nil, requestid=nil)
2979
+ @ReturnMsg = returnmsg
2980
+ @ReturnCode = returncode
2981
+ @Status = status
2982
+ @RequestId = requestid
2983
+ end
2984
+
2985
+ def deserialize(params)
2986
+ @ReturnMsg = params['ReturnMsg']
2987
+ @ReturnCode = params['ReturnCode']
2988
+ @Status = params['Status']
2989
+ @RequestId = params['RequestId']
2990
+ end
2991
+ end
2992
+
2993
+ # ModifyBlockIgnoreList请求参数结构体
2994
+ class ModifyBlockIgnoreListRequest < TencentCloud::Common::AbstractModel
2995
+ # @param RuleType: 1拦截列表 2 忽略列表
2996
+ # @type RuleType: Integer
2997
+ # @param IOC: IP、Domain二选一,不能同时为空
2998
+ # @type IOC: Array
2999
+ # @param IocAction: 可选值:delete(删除)、edit(编辑)、add(添加) 其他值无效
3000
+ # @type IocAction: String
3001
+ # @param StartTime: 时间格式:yyyy-MM-dd HH:mm:ss
3002
+ # @type StartTime: String
3003
+ # @param EndTime: 时间格式:yyyy-MM-dd HH:mm:ss
3004
+ # @type EndTime: String
3005
+
3006
+ attr_accessor :RuleType, :IOC, :IocAction, :StartTime, :EndTime
3007
+
3008
+ def initialize(ruletype=nil, ioc=nil, iocaction=nil, starttime=nil, endtime=nil)
3009
+ @RuleType = ruletype
3010
+ @IOC = ioc
3011
+ @IocAction = iocaction
3012
+ @StartTime = starttime
3013
+ @EndTime = endtime
3014
+ end
3015
+
3016
+ def deserialize(params)
3017
+ @RuleType = params['RuleType']
3018
+ unless params['IOC'].nil?
3019
+ @IOC = []
3020
+ params['IOC'].each do |i|
3021
+ ioclistdata_tmp = IocListData.new
3022
+ ioclistdata_tmp.deserialize(i)
3023
+ @IOC << ioclistdata_tmp
3024
+ end
3025
+ end
3026
+ @IocAction = params['IocAction']
3027
+ @StartTime = params['StartTime']
3028
+ @EndTime = params['EndTime']
3029
+ end
3030
+ end
3031
+
3032
+ # ModifyBlockIgnoreList返回参数结构体
3033
+ class ModifyBlockIgnoreListResponse < TencentCloud::Common::AbstractModel
3034
+ # @param ReturnMsg: 接口返回信息
3035
+ # @type ReturnMsg: String
3036
+ # @param ReturnCode: 接口返回错误码,0请求成功 非0失败
3037
+ # @type ReturnCode: Integer
3038
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3039
+ # @type RequestId: String
3040
+
3041
+ attr_accessor :ReturnMsg, :ReturnCode, :RequestId
3042
+
3043
+ def initialize(returnmsg=nil, returncode=nil, requestid=nil)
3044
+ @ReturnMsg = returnmsg
3045
+ @ReturnCode = returncode
3046
+ @RequestId = requestid
3047
+ end
3048
+
3049
+ def deserialize(params)
3050
+ @ReturnMsg = params['ReturnMsg']
3051
+ @ReturnCode = params['ReturnCode']
3052
+ @RequestId = params['RequestId']
3053
+ end
3054
+ end
3055
+
3056
+ # ModifyBlockTop请求参数结构体
3057
+ class ModifyBlockTopRequest < TencentCloud::Common::AbstractModel
3058
+ # @param UniqueId: 记录id
3059
+ # @type UniqueId: String
3060
+ # @param OpeType: 操作类型 1 置顶 0取消
3061
+ # @type OpeType: String
3062
+
3063
+ attr_accessor :UniqueId, :OpeType
3064
+
3065
+ def initialize(uniqueid=nil, opetype=nil)
3066
+ @UniqueId = uniqueid
3067
+ @OpeType = opetype
3068
+ end
3069
+
3070
+ def deserialize(params)
3071
+ @UniqueId = params['UniqueId']
3072
+ @OpeType = params['OpeType']
3073
+ end
3074
+ end
3075
+
3076
+ # ModifyBlockTop返回参数结构体
3077
+ class ModifyBlockTopResponse < TencentCloud::Common::AbstractModel
3078
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3079
+ # @type RequestId: String
3080
+
3081
+ attr_accessor :RequestId
3082
+
3083
+ def initialize(requestid=nil)
3084
+ @RequestId = requestid
3085
+ end
3086
+
3087
+ def deserialize(params)
3088
+ @RequestId = params['RequestId']
3089
+ end
3090
+ end
3091
+
3092
+ # ModifyItemSwitchStatus请求参数结构体
3093
+ class ModifyItemSwitchStatusRequest < TencentCloud::Common::AbstractModel
3094
+ # @param Id: id值
3095
+ # @type Id: Integer
3096
+ # @param Status: 状态值,0: 关闭 ,1:开启
3097
+ # @type Status: Integer
3098
+ # @param Type: 0: 互联网边界边界防火墙开关,1:vpc防火墙开关
3099
+ # @type Type: Integer
3100
+
3101
+ attr_accessor :Id, :Status, :Type
3102
+
3103
+ def initialize(id=nil, status=nil, type=nil)
3104
+ @Id = id
3105
+ @Status = status
3106
+ @Type = type
3107
+ end
3108
+
3109
+ def deserialize(params)
3110
+ @Id = params['Id']
3111
+ @Status = params['Status']
3112
+ @Type = params['Type']
3113
+ end
3114
+ end
3115
+
3116
+ # ModifyItemSwitchStatus返回参数结构体
3117
+ class ModifyItemSwitchStatusResponse < TencentCloud::Common::AbstractModel
3118
+ # @param Status: 修改成功与否状态值 0:修改成功,非 0:修改失败
3119
+ # @type Status: Integer
3120
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3121
+ # @type RequestId: String
3122
+
3123
+ attr_accessor :Status, :RequestId
3124
+
3125
+ def initialize(status=nil, requestid=nil)
3126
+ @Status = status
3127
+ @RequestId = requestid
3128
+ end
3129
+
3130
+ def deserialize(params)
3131
+ @Status = params['Status']
3132
+ @RequestId = params['RequestId']
3133
+ end
3134
+ end
3135
+
3136
+ # ModifyNatFwReSelect请求参数结构体
3137
+ class ModifyNatFwReSelectRequest < TencentCloud::Common::AbstractModel
3138
+ # @param Mode: 模式 1:接入模式;0:新增模式
3139
+ # @type Mode: Integer
3140
+ # @param CfwInstance: 防火墙实例id
3141
+ # @type CfwInstance: String
3142
+ # @param NatGwList: 接入模式重新接入的nat网关列表,其中NatGwList和VpcList只能传递一个。
3143
+ # @type NatGwList: Array
3144
+ # @param VpcList: 新增模式重新接入的vpc列表,其中NatGwList和NatgwList只能传递一个。
3145
+ # @type VpcList: Array
3146
+
3147
+ attr_accessor :Mode, :CfwInstance, :NatGwList, :VpcList
3148
+
3149
+ def initialize(mode=nil, cfwinstance=nil, natgwlist=nil, vpclist=nil)
3150
+ @Mode = mode
3151
+ @CfwInstance = cfwinstance
3152
+ @NatGwList = natgwlist
3153
+ @VpcList = vpclist
3154
+ end
3155
+
3156
+ def deserialize(params)
3157
+ @Mode = params['Mode']
3158
+ @CfwInstance = params['CfwInstance']
3159
+ @NatGwList = params['NatGwList']
3160
+ @VpcList = params['VpcList']
3161
+ end
3162
+ end
3163
+
3164
+ # ModifyNatFwReSelect返回参数结构体
3165
+ class ModifyNatFwReSelectResponse < TencentCloud::Common::AbstractModel
3166
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3167
+ # @type RequestId: String
3168
+
3169
+ attr_accessor :RequestId
3170
+
3171
+ def initialize(requestid=nil)
3172
+ @RequestId = requestid
3173
+ end
3174
+
3175
+ def deserialize(params)
3176
+ @RequestId = params['RequestId']
3177
+ end
3178
+ end
3179
+
3180
+ # ModifyNatFwSwitch请求参数结构体
3181
+ class ModifyNatFwSwitchRequest < TencentCloud::Common::AbstractModel
3182
+ # @param Enable: 开关,0:关闭,1:开启
3183
+ # @type Enable: Integer
3184
+ # @param CfwInsIdList: 防火墙实例id列表,其中CfwInsIdList,SubnetIdList和RouteTableIdList只能传递一种。
3185
+ # @type CfwInsIdList: Array
3186
+ # @param SubnetIdList: 子网id列表,其中CfwInsIdList,SubnetIdList和RouteTableIdList只能传递一种。
3187
+ # @type SubnetIdList: Array
3188
+ # @param RouteTableIdList: 路由表id列表,其中CfwInsIdList,SubnetIdList和RouteTableIdList只能传递一种。
3189
+ # @type RouteTableIdList: Array
3190
+
3191
+ attr_accessor :Enable, :CfwInsIdList, :SubnetIdList, :RouteTableIdList
3192
+
3193
+ def initialize(enable=nil, cfwinsidlist=nil, subnetidlist=nil, routetableidlist=nil)
3194
+ @Enable = enable
3195
+ @CfwInsIdList = cfwinsidlist
3196
+ @SubnetIdList = subnetidlist
3197
+ @RouteTableIdList = routetableidlist
3198
+ end
3199
+
3200
+ def deserialize(params)
3201
+ @Enable = params['Enable']
3202
+ @CfwInsIdList = params['CfwInsIdList']
3203
+ @SubnetIdList = params['SubnetIdList']
3204
+ @RouteTableIdList = params['RouteTableIdList']
3205
+ end
3206
+ end
3207
+
3208
+ # ModifyNatFwSwitch返回参数结构体
3209
+ class ModifyNatFwSwitchResponse < TencentCloud::Common::AbstractModel
3210
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3211
+ # @type RequestId: String
3212
+
3213
+ attr_accessor :RequestId
3214
+
3215
+ def initialize(requestid=nil)
3216
+ @RequestId = requestid
3217
+ end
3218
+
3219
+ def deserialize(params)
3220
+ @RequestId = params['RequestId']
3221
+ end
3222
+ end
3223
+
3224
+ # ModifyNatFwVpcDnsSwitch请求参数结构体
3225
+ class ModifyNatFwVpcDnsSwitchRequest < TencentCloud::Common::AbstractModel
3226
+ # @param NatFwInsId: nat 防火墙 id
3227
+ # @type NatFwInsId: String
3228
+ # @param DnsVpcSwitchLst: DNS 开关切换列表
3229
+ # @type DnsVpcSwitchLst: Array
3230
+
3231
+ attr_accessor :NatFwInsId, :DnsVpcSwitchLst
3232
+
3233
+ def initialize(natfwinsid=nil, dnsvpcswitchlst=nil)
3234
+ @NatFwInsId = natfwinsid
3235
+ @DnsVpcSwitchLst = dnsvpcswitchlst
3236
+ end
3237
+
3238
+ def deserialize(params)
3239
+ @NatFwInsId = params['NatFwInsId']
3240
+ unless params['DnsVpcSwitchLst'].nil?
3241
+ @DnsVpcSwitchLst = []
3242
+ params['DnsVpcSwitchLst'].each do |i|
3243
+ dnsvpcswitch_tmp = DnsVpcSwitch.new
3244
+ dnsvpcswitch_tmp.deserialize(i)
3245
+ @DnsVpcSwitchLst << dnsvpcswitch_tmp
3246
+ end
3247
+ end
3248
+ end
3249
+ end
3250
+
3251
+ # ModifyNatFwVpcDnsSwitch返回参数结构体
3252
+ class ModifyNatFwVpcDnsSwitchResponse < TencentCloud::Common::AbstractModel
3253
+ # @param ReturnMsg: 修改成功
3254
+ # 注意:此字段可能返回 null,表示取不到有效值。
3255
+ # @type ReturnMsg: String
3256
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3257
+ # @type RequestId: String
3258
+
3259
+ attr_accessor :ReturnMsg, :RequestId
3260
+
3261
+ def initialize(returnmsg=nil, requestid=nil)
3262
+ @ReturnMsg = returnmsg
3263
+ @RequestId = requestid
3264
+ end
3265
+
3266
+ def deserialize(params)
3267
+ @ReturnMsg = params['ReturnMsg']
3268
+ @RequestId = params['RequestId']
3269
+ end
3270
+ end
3271
+
3272
+ # ModifyPublicIPSwitchStatus请求参数结构体
3273
+ class ModifyPublicIPSwitchStatusRequest < TencentCloud::Common::AbstractModel
3274
+ # @param FireWallPublicIP: 公网IP
3275
+ # @type FireWallPublicIP: String
3276
+ # @param Status: 状态值,0: 关闭 ,1:开启
3277
+ # @type Status: Integer
3278
+
3279
+ attr_accessor :FireWallPublicIP, :Status
3280
+
3281
+ def initialize(firewallpublicip=nil, status=nil)
3282
+ @FireWallPublicIP = firewallpublicip
3283
+ @Status = status
3284
+ end
3285
+
3286
+ def deserialize(params)
3287
+ @FireWallPublicIP = params['FireWallPublicIP']
3288
+ @Status = params['Status']
3289
+ end
3290
+ end
3291
+
3292
+ # ModifyPublicIPSwitchStatus返回参数结构体
3293
+ class ModifyPublicIPSwitchStatusResponse < TencentCloud::Common::AbstractModel
3294
+ # @param ReturnMsg: 接口返回信息
3295
+ # 注意:此字段可能返回 null,表示取不到有效值。
3296
+ # @type ReturnMsg: String
3297
+ # @param ReturnCode: 接口返回错误码,0请求成功 非0失败
3298
+ # @type ReturnCode: Integer
3299
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3300
+ # @type RequestId: String
3301
+
3302
+ attr_accessor :ReturnMsg, :ReturnCode, :RequestId
3303
+
3304
+ def initialize(returnmsg=nil, returncode=nil, requestid=nil)
3305
+ @ReturnMsg = returnmsg
3306
+ @ReturnCode = returncode
3307
+ @RequestId = requestid
3308
+ end
3309
+
3310
+ def deserialize(params)
3311
+ @ReturnMsg = params['ReturnMsg']
3312
+ @ReturnCode = params['ReturnCode']
3313
+ @RequestId = params['RequestId']
3314
+ end
3315
+ end
3316
+
3317
+ # ModifyResourceGroup请求参数结构体
3318
+ class ModifyResourceGroupRequest < TencentCloud::Common::AbstractModel
3319
+ # @param GroupId: 组id
3320
+ # @type GroupId: String
3321
+ # @param GroupName: 组名称
3322
+ # @type GroupName: String
3323
+ # @param ParentId: 上级组id
3324
+ # @type ParentId: String
3325
+
3326
+ attr_accessor :GroupId, :GroupName, :ParentId
3327
+
3328
+ def initialize(groupid=nil, groupname=nil, parentid=nil)
3329
+ @GroupId = groupid
3330
+ @GroupName = groupname
3331
+ @ParentId = parentid
3332
+ end
3333
+
3334
+ def deserialize(params)
3335
+ @GroupId = params['GroupId']
3336
+ @GroupName = params['GroupName']
3337
+ @ParentId = params['ParentId']
3338
+ end
3339
+ end
3340
+
3341
+ # ModifyResourceGroup返回参数结构体
3342
+ class ModifyResourceGroupResponse < TencentCloud::Common::AbstractModel
3343
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3344
+ # @type RequestId: String
3345
+
3346
+ attr_accessor :RequestId
3347
+
3348
+ def initialize(requestid=nil)
3349
+ @RequestId = requestid
3350
+ end
3351
+
3352
+ def deserialize(params)
3353
+ @RequestId = params['RequestId']
3354
+ end
3355
+ end
3356
+
3357
+ # ModifySecurityGroupAllRuleStatus请求参数结构体
3358
+ class ModifySecurityGroupAllRuleStatusRequest < TencentCloud::Common::AbstractModel
3359
+ # @param Status: 列表规则状态,0:全部停用,1:全部启用
3360
+ # @type Status: Integer
3361
+ # @param Direction: 方向,0:出站,1:入站
3362
+ # @type Direction: Integer
3363
+ # @param EdgeId: Edge ID值
3364
+ # @type EdgeId: String
3365
+ # @param Area: NAT地域, 腾讯云地域的英文简写
3366
+ # @type Area: String
3367
+
3368
+ attr_accessor :Status, :Direction, :EdgeId, :Area
3369
+
3370
+ def initialize(status=nil, direction=nil, edgeid=nil, area=nil)
3371
+ @Status = status
3372
+ @Direction = direction
3373
+ @EdgeId = edgeid
3374
+ @Area = area
3375
+ end
3376
+
3377
+ def deserialize(params)
3378
+ @Status = params['Status']
3379
+ @Direction = params['Direction']
3380
+ @EdgeId = params['EdgeId']
3381
+ @Area = params['Area']
3382
+ end
3383
+ end
3384
+
3385
+ # ModifySecurityGroupAllRuleStatus返回参数结构体
3386
+ class ModifySecurityGroupAllRuleStatusResponse < TencentCloud::Common::AbstractModel
3387
+ # @param Status: 0: 修改成功, 其他: 修改失败
3388
+ # 注意:此字段可能返回 null,表示取不到有效值。
3389
+ # @type Status: Integer
3390
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3391
+ # @type RequestId: String
3392
+
3393
+ attr_accessor :Status, :RequestId
3394
+
3395
+ def initialize(status=nil, requestid=nil)
3396
+ @Status = status
3397
+ @RequestId = requestid
3398
+ end
3399
+
3400
+ def deserialize(params)
3401
+ @Status = params['Status']
3402
+ @RequestId = params['RequestId']
3403
+ end
3404
+ end
3405
+
3406
+ # ModifySecurityGroupItemRuleStatus请求参数结构体
3407
+ class ModifySecurityGroupItemRuleStatusRequest < TencentCloud::Common::AbstractModel
3408
+ # @param Direction: 方向,0:出站,1:入站,默认1
3409
+ # @type Direction: Integer
3410
+ # @param Status: 是否开关开启,0:未开启,1:开启
3411
+ # @type Status: Integer
3412
+ # @param RuleSequence: 更改的企业安全组规则的执行顺序
3413
+ # @type RuleSequence: Integer
3414
+
3415
+ attr_accessor :Direction, :Status, :RuleSequence
3416
+
3417
+ def initialize(direction=nil, status=nil, rulesequence=nil)
3418
+ @Direction = direction
3419
+ @Status = status
3420
+ @RuleSequence = rulesequence
3421
+ end
3422
+
3423
+ def deserialize(params)
3424
+ @Direction = params['Direction']
3425
+ @Status = params['Status']
3426
+ @RuleSequence = params['RuleSequence']
3427
+ end
3428
+ end
3429
+
3430
+ # ModifySecurityGroupItemRuleStatus返回参数结构体
3431
+ class ModifySecurityGroupItemRuleStatusResponse < TencentCloud::Common::AbstractModel
3432
+ # @param Status: 状态值,0:修改成功,非0:修改失败
3433
+ # @type Status: Integer
3434
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3435
+ # @type RequestId: String
3436
+
3437
+ attr_accessor :Status, :RequestId
3438
+
3439
+ def initialize(status=nil, requestid=nil)
3440
+ @Status = status
3441
+ @RequestId = requestid
3442
+ end
3443
+
3444
+ def deserialize(params)
3445
+ @Status = params['Status']
3446
+ @RequestId = params['RequestId']
3447
+ end
3448
+ end
3449
+
3450
+ # ModifySecurityGroupRule请求参数结构体
3451
+ class ModifySecurityGroupRuleRequest < TencentCloud::Common::AbstractModel
3452
+ # @param Direction: 方向,0:出站,1:入站,默认1
3453
+ # @type Direction: Integer
3454
+ # @param Enable: 编辑后是否启用规则,0:不启用,1:启用,默认1
3455
+ # @type Enable: Integer
3456
+ # @param Data: 编辑的企业安全组规则数据
3457
+ # @type Data: Array
3458
+ # @param SgRuleOriginSequence: 编辑的企业安全组规则的原始执行顺序
3459
+ # @type SgRuleOriginSequence: Integer
3460
+
3461
+ attr_accessor :Direction, :Enable, :Data, :SgRuleOriginSequence
3462
+
3463
+ def initialize(direction=nil, enable=nil, data=nil, sgruleoriginsequence=nil)
3464
+ @Direction = direction
3465
+ @Enable = enable
3466
+ @Data = data
3467
+ @SgRuleOriginSequence = sgruleoriginsequence
3468
+ end
3469
+
3470
+ def deserialize(params)
3471
+ @Direction = params['Direction']
3472
+ @Enable = params['Enable']
3473
+ unless params['Data'].nil?
3474
+ @Data = []
3475
+ params['Data'].each do |i|
3476
+ securitygrouplistdata_tmp = SecurityGroupListData.new
3477
+ securitygrouplistdata_tmp.deserialize(i)
3478
+ @Data << securitygrouplistdata_tmp
3479
+ end
3480
+ end
3481
+ @SgRuleOriginSequence = params['SgRuleOriginSequence']
3482
+ end
3483
+ end
3484
+
3485
+ # ModifySecurityGroupRule返回参数结构体
3486
+ class ModifySecurityGroupRuleResponse < TencentCloud::Common::AbstractModel
3487
+ # @param Status: 状态值,0:编辑成功,非0:编辑失败
3488
+ # @type Status: Integer
3489
+ # @param NewRuleId: 编辑后新生成规则的Id
3490
+ # @type NewRuleId: Integer
3491
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3492
+ # @type RequestId: String
3493
+
3494
+ attr_accessor :Status, :NewRuleId, :RequestId
3495
+
3496
+ def initialize(status=nil, newruleid=nil, requestid=nil)
3497
+ @Status = status
3498
+ @NewRuleId = newruleid
3499
+ @RequestId = requestid
3500
+ end
3501
+
3502
+ def deserialize(params)
3503
+ @Status = params['Status']
3504
+ @NewRuleId = params['NewRuleId']
3505
+ @RequestId = params['RequestId']
3506
+ end
3507
+ end
3508
+
3509
+ # ModifySecurityGroupSequenceRules请求参数结构体
3510
+ class ModifySecurityGroupSequenceRulesRequest < TencentCloud::Common::AbstractModel
3511
+ # @param Direction: 方向,0:出站,1:入站,默认1
3512
+ # @type Direction: Integer
3513
+ # @param Data: 企业安全组规则快速排序数据
3514
+ # @type Data: Array
3515
+
3516
+ attr_accessor :Direction, :Data
3517
+
3518
+ def initialize(direction=nil, data=nil)
3519
+ @Direction = direction
3520
+ @Data = data
3521
+ end
3522
+
3523
+ def deserialize(params)
3524
+ @Direction = params['Direction']
3525
+ unless params['Data'].nil?
3526
+ @Data = []
3527
+ params['Data'].each do |i|
3528
+ securitygrouporderindexdata_tmp = SecurityGroupOrderIndexData.new
3529
+ securitygrouporderindexdata_tmp.deserialize(i)
3530
+ @Data << securitygrouporderindexdata_tmp
3531
+ end
3532
+ end
3533
+ end
3534
+ end
3535
+
3536
+ # ModifySecurityGroupSequenceRules返回参数结构体
3537
+ class ModifySecurityGroupSequenceRulesResponse < TencentCloud::Common::AbstractModel
3538
+ # @param Status: 状态值,0:修改成功,非0:修改失败
3539
+ # @type Status: Integer
3540
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3541
+ # @type RequestId: String
3542
+
3543
+ attr_accessor :Status, :RequestId
3544
+
3545
+ def initialize(status=nil, requestid=nil)
3546
+ @Status = status
3547
+ @RequestId = requestid
3548
+ end
3549
+
3550
+ def deserialize(params)
3551
+ @Status = params['Status']
3552
+ @RequestId = params['RequestId']
3553
+ end
3554
+ end
3555
+
3556
+ # ModifySequenceRules请求参数结构体
3557
+ class ModifySequenceRulesRequest < TencentCloud::Common::AbstractModel
3558
+ # @param EdgeId: 边Id值
3559
+ # @type EdgeId: String
3560
+ # @param Data: 修改数据
3561
+ # @type Data: Array
3562
+ # @param Area: NAT地域
3563
+ # @type Area: String
3564
+ # @param Direction: 方向,0:出向,1:入向
3565
+ # @type Direction: Integer
3566
+
3567
+ attr_accessor :EdgeId, :Data, :Area, :Direction
3568
+
3569
+ def initialize(edgeid=nil, data=nil, area=nil, direction=nil)
3570
+ @EdgeId = edgeid
3571
+ @Data = data
3572
+ @Area = area
3573
+ @Direction = direction
3574
+ end
3575
+
3576
+ def deserialize(params)
3577
+ @EdgeId = params['EdgeId']
3578
+ unless params['Data'].nil?
3579
+ @Data = []
3580
+ params['Data'].each do |i|
3581
+ sequencedata_tmp = SequenceData.new
3582
+ sequencedata_tmp.deserialize(i)
3583
+ @Data << sequencedata_tmp
3584
+ end
3585
+ end
3586
+ @Area = params['Area']
3587
+ @Direction = params['Direction']
3588
+ end
3589
+ end
3590
+
3591
+ # ModifySequenceRules返回参数结构体
3592
+ class ModifySequenceRulesResponse < TencentCloud::Common::AbstractModel
3593
+ # @param Status: 0: 修改成功, 非0: 修改失败
3594
+ # 注意:此字段可能返回 null,表示取不到有效值。
3595
+ # @type Status: Integer
3596
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3597
+ # @type RequestId: String
3598
+
3599
+ attr_accessor :Status, :RequestId
3600
+
3601
+ def initialize(status=nil, requestid=nil)
3602
+ @Status = status
3603
+ @RequestId = requestid
3604
+ end
3605
+
3606
+ def deserialize(params)
3607
+ @Status = params['Status']
3608
+ @RequestId = params['RequestId']
3609
+ end
3610
+ end
3611
+
3612
+ # ModifyTableStatus请求参数结构体
3613
+ class ModifyTableStatusRequest < TencentCloud::Common::AbstractModel
3614
+ # @param EdgeId: EdgeId值两个vpc间的边id
3615
+ # @type EdgeId: String
3616
+ # @param Status: 状态值,1:锁表,2:解锁表
3617
+ # @type Status: Integer
3618
+ # @param Area: Nat所在地域
3619
+ # @type Area: String
3620
+ # @param Direction: 0: 出向,1:入向
3621
+ # @type Direction: Integer
3622
+
3623
+ attr_accessor :EdgeId, :Status, :Area, :Direction
3624
+
3625
+ def initialize(edgeid=nil, status=nil, area=nil, direction=nil)
3626
+ @EdgeId = edgeid
3627
+ @Status = status
3628
+ @Area = area
3629
+ @Direction = direction
3630
+ end
3631
+
3632
+ def deserialize(params)
3633
+ @EdgeId = params['EdgeId']
3634
+ @Status = params['Status']
3635
+ @Area = params['Area']
3636
+ @Direction = params['Direction']
3637
+ end
3638
+ end
3639
+
3640
+ # ModifyTableStatus返回参数结构体
3641
+ class ModifyTableStatusResponse < TencentCloud::Common::AbstractModel
3642
+ # @param Status: 0:正常,-1:不正常
3643
+ # 注意:此字段可能返回 null,表示取不到有效值。
3644
+ # @type Status: Integer
3645
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3646
+ # @type RequestId: String
3647
+
3648
+ attr_accessor :Status, :RequestId
3649
+
3650
+ def initialize(status=nil, requestid=nil)
3651
+ @Status = status
3652
+ @RequestId = requestid
3653
+ end
3654
+
3655
+ def deserialize(params)
3656
+ @Status = params['Status']
3657
+ @RequestId = params['RequestId']
3658
+ end
3659
+ end
3660
+
3661
+ # ModifyVPCSwitchStatus请求参数结构体
3662
+ class ModifyVPCSwitchStatusRequest < TencentCloud::Common::AbstractModel
3663
+ # @param FirewallVpcId: 公网IP
3664
+ # @type FirewallVpcId: String
3665
+ # @param Status: 状态值,0: 关闭 ,1:开启
3666
+ # @type Status: Integer
3667
+
3668
+ attr_accessor :FirewallVpcId, :Status
3669
+
3670
+ def initialize(firewallvpcid=nil, status=nil)
3671
+ @FirewallVpcId = firewallvpcid
3672
+ @Status = status
3673
+ end
3674
+
3675
+ def deserialize(params)
3676
+ @FirewallVpcId = params['FirewallVpcId']
3677
+ @Status = params['Status']
3678
+ end
3679
+ end
3680
+
3681
+ # ModifyVPCSwitchStatus返回参数结构体
3682
+ class ModifyVPCSwitchStatusResponse < TencentCloud::Common::AbstractModel
3683
+ # @param ReturnMsg: 接口返回信息
3684
+ # 注意:此字段可能返回 null,表示取不到有效值。
3685
+ # @type ReturnMsg: String
3686
+ # @param ReturnCode: 接口返回错误码,0请求成功 非0失败
3687
+ # @type ReturnCode: Integer
3688
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3689
+ # @type RequestId: String
3690
+
3691
+ attr_accessor :ReturnMsg, :ReturnCode, :RequestId
3692
+
3693
+ def initialize(returnmsg=nil, returncode=nil, requestid=nil)
3694
+ @ReturnMsg = returnmsg
3695
+ @ReturnCode = returncode
3696
+ @RequestId = requestid
3697
+ end
3698
+
3699
+ def deserialize(params)
3700
+ @ReturnMsg = params['ReturnMsg']
3701
+ @ReturnCode = params['ReturnCode']
3702
+ @RequestId = params['RequestId']
3703
+ end
3704
+ end
3705
+
3706
+ # Nat防火墙弹性公网ip列表
3707
+ class NatFwEipsInfo < TencentCloud::Common::AbstractModel
3708
+ # @param Eip: 弹性公网ip
3709
+ # @type Eip: String
3710
+ # @param NatGatewayId: 所属的Nat网关Id
3711
+ # 注意:此字段可能返回 null,表示取不到有效值。
3712
+ # @type NatGatewayId: String
3713
+ # @param NatGatewayName: Nat网关名称
3714
+ # 注意:此字段可能返回 null,表示取不到有效值。
3715
+ # @type NatGatewayName: String
3716
+
3717
+ attr_accessor :Eip, :NatGatewayId, :NatGatewayName
3718
+
3719
+ def initialize(eip=nil, natgatewayid=nil, natgatewayname=nil)
3720
+ @Eip = eip
3721
+ @NatGatewayId = natgatewayid
3722
+ @NatGatewayName = natgatewayname
3723
+ end
3724
+
3725
+ def deserialize(params)
3726
+ @Eip = params['Eip']
3727
+ @NatGatewayId = params['NatGatewayId']
3728
+ @NatGatewayName = params['NatGatewayName']
3729
+ end
3730
+ end
3731
+
3732
+ # nat fw 实例展示的过滤列表
3733
+ class NatFwFilter < TencentCloud::Common::AbstractModel
3734
+ # @param FilterType: 过滤的类型,例如实例id
3735
+ # @type FilterType: String
3736
+ # @param FilterContent: 过滤的内容,以',' 分隔
3737
+ # @type FilterContent: String
3738
+
3739
+ attr_accessor :FilterType, :FilterContent
3740
+
3741
+ def initialize(filtertype=nil, filtercontent=nil)
3742
+ @FilterType = filtertype
3743
+ @FilterContent = filtercontent
3744
+ end
3745
+
3746
+ def deserialize(params)
3747
+ @FilterType = params['FilterType']
3748
+ @FilterContent = params['FilterContent']
3749
+ end
3750
+ end
3751
+
3752
+ # Nat实例类型
3753
+ class NatFwInstance < TencentCloud::Common::AbstractModel
3754
+ # @param NatinsId: nat实例id
3755
+ # @type NatinsId: String
3756
+ # @param NatinsName: nat实例名称
3757
+ # @type NatinsName: String
3758
+ # @param Region: 实例所在地域
3759
+ # 注意:此字段可能返回 null,表示取不到有效值。
3760
+ # @type Region: String
3761
+ # @param FwMode: 0:新增模式,1:接入模式
3762
+ # 注意:此字段可能返回 null,表示取不到有效值。
3763
+ # @type FwMode: Integer
3764
+ # @param Status: 0:正常状态, 1: 正在创建
3765
+ # 注意:此字段可能返回 null,表示取不到有效值。
3766
+ # @type Status: Integer
3767
+ # @param NatIp: nat公网ip
3768
+ # 注意:此字段可能返回 null,表示取不到有效值。
3769
+ # @type NatIp: String
3770
+
3771
+ attr_accessor :NatinsId, :NatinsName, :Region, :FwMode, :Status, :NatIp
3772
+
3773
+ def initialize(natinsid=nil, natinsname=nil, region=nil, fwmode=nil, status=nil, natip=nil)
3774
+ @NatinsId = natinsid
3775
+ @NatinsName = natinsname
3776
+ @Region = region
3777
+ @FwMode = fwmode
3778
+ @Status = status
3779
+ @NatIp = natip
3780
+ end
3781
+
3782
+ def deserialize(params)
3783
+ @NatinsId = params['NatinsId']
3784
+ @NatinsName = params['NatinsName']
3785
+ @Region = params['Region']
3786
+ @FwMode = params['FwMode']
3787
+ @Status = params['Status']
3788
+ @NatIp = params['NatIp']
3789
+ end
3790
+ end
3791
+
3792
+ # Nat实例卡片详细信息
3793
+ class NatInstanceInfo < TencentCloud::Common::AbstractModel
3794
+ # @param NatinsId: nat实例id
3795
+ # @type NatinsId: String
3796
+ # @param NatinsName: nat实例名称
3797
+ # @type NatinsName: String
3798
+ # @param Region: 实例所在地域
3799
+ # @type Region: String
3800
+ # @param FwMode: 0: 新增模式,1:接入模式
3801
+ # @type FwMode: Integer
3802
+ # @param BandWidth: 实例带宽大小 Mbps
3803
+ # @type BandWidth: Integer
3804
+ # @param InFlowMax: 入向带宽峰值 bps
3805
+ # @type InFlowMax: Integer
3806
+ # @param OutFlowMax: 出向带宽峰值 bps
3807
+ # @type OutFlowMax: Integer
3808
+ # @param RegionZh: 地域中文信息
3809
+ # @type RegionZh: String
3810
+ # @param EipAddress: 公网ip数组
3811
+ # 注意:此字段可能返回 null,表示取不到有效值。
3812
+ # @type EipAddress: Array
3813
+ # @param VpcIp: 内外使用ip数组
3814
+ # 注意:此字段可能返回 null,表示取不到有效值。
3815
+ # @type VpcIp: Array
3816
+ # @param Subnets: 实例关联子网数组
3817
+ # 注意:此字段可能返回 null,表示取不到有效值。
3818
+ # @type Subnets: Array
3819
+ # @param Status: 0 :正常 1:正在初始化
3820
+ # 注意:此字段可能返回 null,表示取不到有效值。
3821
+ # @type Status: Integer
3822
+
3823
+ attr_accessor :NatinsId, :NatinsName, :Region, :FwMode, :BandWidth, :InFlowMax, :OutFlowMax, :RegionZh, :EipAddress, :VpcIp, :Subnets, :Status
3824
+
3825
+ def initialize(natinsid=nil, natinsname=nil, region=nil, fwmode=nil, bandwidth=nil, inflowmax=nil, outflowmax=nil, regionzh=nil, eipaddress=nil, vpcip=nil, subnets=nil, status=nil)
3826
+ @NatinsId = natinsid
3827
+ @NatinsName = natinsname
3828
+ @Region = region
3829
+ @FwMode = fwmode
3830
+ @BandWidth = bandwidth
3831
+ @InFlowMax = inflowmax
3832
+ @OutFlowMax = outflowmax
3833
+ @RegionZh = regionzh
3834
+ @EipAddress = eipaddress
3835
+ @VpcIp = vpcip
3836
+ @Subnets = subnets
3837
+ @Status = status
3838
+ end
3839
+
3840
+ def deserialize(params)
3841
+ @NatinsId = params['NatinsId']
3842
+ @NatinsName = params['NatinsName']
3843
+ @Region = params['Region']
3844
+ @FwMode = params['FwMode']
3845
+ @BandWidth = params['BandWidth']
3846
+ @InFlowMax = params['InFlowMax']
3847
+ @OutFlowMax = params['OutFlowMax']
3848
+ @RegionZh = params['RegionZh']
3849
+ @EipAddress = params['EipAddress']
3850
+ @VpcIp = params['VpcIp']
3851
+ @Subnets = params['Subnets']
3852
+ @Status = params['Status']
3853
+ end
3854
+ end
3855
+
3856
+ # 新增模式传递参数
3857
+ class NewModeItems < TencentCloud::Common::AbstractModel
3858
+ # @param VpcList: 新增模式下接入的vpc列表
3859
+ # @type VpcList: Array
3860
+ # @param Eips: 新增模式下绑定的出口弹性公网ip列表,其中Eips和AddCount至少传递一个。
3861
+ # @type Eips: Array
3862
+ # @param AddCount: 新增模式下新增绑定的出口弹性公网ip个数,其中Eips和AddCount至少传递一个。
3863
+ # @type AddCount: Integer
3864
+
3865
+ attr_accessor :VpcList, :Eips, :AddCount
3866
+
3867
+ def initialize(vpclist=nil, eips=nil, addcount=nil)
3868
+ @VpcList = vpclist
3869
+ @Eips = eips
3870
+ @AddCount = addcount
3871
+ end
3872
+
3873
+ def deserialize(params)
3874
+ @VpcList = params['VpcList']
3875
+ @Eips = params['Eips']
3876
+ @AddCount = params['AddCount']
3877
+ end
3878
+ end
3879
+
3880
+ # RemoveAcRule请求参数结构体
3881
+ class RemoveAcRuleRequest < TencentCloud::Common::AbstractModel
3882
+ # @param RuleUuid: 规则的uuid,可通过查询规则列表获取
3883
+ # @type RuleUuid: Integer
3884
+
3885
+ attr_accessor :RuleUuid
3886
+
3887
+ def initialize(ruleuuid=nil)
3888
+ @RuleUuid = ruleuuid
3889
+ end
3890
+
3891
+ def deserialize(params)
3892
+ @RuleUuid = params['RuleUuid']
3893
+ end
3894
+ end
3895
+
3896
+ # RemoveAcRule返回参数结构体
3897
+ class RemoveAcRuleResponse < TencentCloud::Common::AbstractModel
3898
+ # @param RuleUuid: 删除成功后返回被删除策略的uuid
3899
+ # @type RuleUuid: Integer
3900
+ # @param ReturnCode: 0代表成功,-1代表失败
3901
+ # 注意:此字段可能返回 null,表示取不到有效值。
3902
+ # @type ReturnCode: Integer
3903
+ # @param ReturnMsg: success代表成功,failed代表失败
3904
+ # 注意:此字段可能返回 null,表示取不到有效值。
3905
+ # @type ReturnMsg: String
3906
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3907
+ # @type RequestId: String
3908
+
3909
+ attr_accessor :RuleUuid, :ReturnCode, :ReturnMsg, :RequestId
3910
+
3911
+ def initialize(ruleuuid=nil, returncode=nil, returnmsg=nil, requestid=nil)
3912
+ @RuleUuid = ruleuuid
3913
+ @ReturnCode = returncode
3914
+ @ReturnMsg = returnmsg
3915
+ @RequestId = requestid
3916
+ end
3917
+
3918
+ def deserialize(params)
3919
+ @RuleUuid = params['RuleUuid']
3920
+ @ReturnCode = params['ReturnCode']
3921
+ @ReturnMsg = params['ReturnMsg']
3922
+ @RequestId = params['RequestId']
3923
+ end
3924
+ end
3925
+
3926
+ # 规则输入对象
3927
+ class RuleInfoData < TencentCloud::Common::AbstractModel
3928
+ # @param OrderIndex: 执行顺序
3929
+ # @type OrderIndex: Integer
3930
+ # @param SourceIp: 访问源
3931
+ # @type SourceIp: String
3932
+ # @param TargetIp: 访问目的
3933
+ # @type TargetIp: String
3934
+ # @param Protocol: 协议
3935
+ # @type Protocol: String
3936
+ # @param Strategy: 策略, 0:观察,1:阻断,2:放行
3937
+ # @type Strategy: String
3938
+ # @param SourceType: 访问源类型,1是IP,3是域名,4是IP地址模版,5是域名地址模版
3939
+ # @type SourceType: Integer
3940
+ # @param Direction: 方向,0:出站,1:入站
3941
+ # @type Direction: Integer
3942
+ # @param Detail: 描述
3943
+ # @type Detail: String
3944
+ # @param TargetType: 访问目的类型,1是IP,3是域名,4是IP地址模版,5是域名地址模版
3945
+ # @type TargetType: Integer
3946
+ # @param Port: 端口
3947
+ # @type Port: String
3948
+ # @param Id: id值
3949
+ # @type Id: Integer
3950
+ # @param LogId: 日志id,从告警处创建必传,其它为空
3951
+ # @type LogId: String
3952
+ # @param City: 城市Code
3953
+ # @type City: Integer
3954
+ # @param Country: 国家Code
3955
+ # @type Country: Integer
3956
+ # @param CloudCode: 云厂商,支持多个,以逗号分隔, 1:腾讯云(仅中国香港及海外),2:阿里云,3:亚马逊云,4:华为云,5:微软云
3957
+ # @type CloudCode: String
3958
+ # @param IsRegion: 是否为地域
3959
+ # @type IsRegion: Integer
3960
+ # @param CityName: 城市名
3961
+ # @type CityName: String
3962
+ # @param CountryName: 国家名
3963
+ # @type CountryName: String
3964
+
3965
+ attr_accessor :OrderIndex, :SourceIp, :TargetIp, :Protocol, :Strategy, :SourceType, :Direction, :Detail, :TargetType, :Port, :Id, :LogId, :City, :Country, :CloudCode, :IsRegion, :CityName, :CountryName
3966
+
3967
+ def initialize(orderindex=nil, sourceip=nil, targetip=nil, protocol=nil, strategy=nil, sourcetype=nil, direction=nil, detail=nil, targettype=nil, port=nil, id=nil, logid=nil, city=nil, country=nil, cloudcode=nil, isregion=nil, cityname=nil, countryname=nil)
3968
+ @OrderIndex = orderindex
3969
+ @SourceIp = sourceip
3970
+ @TargetIp = targetip
3971
+ @Protocol = protocol
3972
+ @Strategy = strategy
3973
+ @SourceType = sourcetype
3974
+ @Direction = direction
3975
+ @Detail = detail
3976
+ @TargetType = targettype
3977
+ @Port = port
3978
+ @Id = id
3979
+ @LogId = logid
3980
+ @City = city
3981
+ @Country = country
3982
+ @CloudCode = cloudcode
3983
+ @IsRegion = isregion
3984
+ @CityName = cityname
3985
+ @CountryName = countryname
3986
+ end
3987
+
3988
+ def deserialize(params)
3989
+ @OrderIndex = params['OrderIndex']
3990
+ @SourceIp = params['SourceIp']
3991
+ @TargetIp = params['TargetIp']
3992
+ @Protocol = params['Protocol']
3993
+ @Strategy = params['Strategy']
3994
+ @SourceType = params['SourceType']
3995
+ @Direction = params['Direction']
3996
+ @Detail = params['Detail']
3997
+ @TargetType = params['TargetType']
3998
+ @Port = params['Port']
3999
+ @Id = params['Id']
4000
+ @LogId = params['LogId']
4001
+ @City = params['City']
4002
+ @Country = params['Country']
4003
+ @CloudCode = params['CloudCode']
4004
+ @IsRegion = params['IsRegion']
4005
+ @CityName = params['CityName']
4006
+ @CountryName = params['CountryName']
4007
+ end
4008
+ end
4009
+
4010
+ # RunSyncAsset请求参数结构体
4011
+ class RunSyncAssetRequest < TencentCloud::Common::AbstractModel
4012
+ # @param Type: 0: 互联网防火墙开关,1:vpc 防火墙开关
4013
+ # @type Type: Integer
4014
+
4015
+ attr_accessor :Type
4016
+
4017
+ def initialize(type=nil)
4018
+ @Type = type
4019
+ end
4020
+
4021
+ def deserialize(params)
4022
+ @Type = params['Type']
4023
+ end
4024
+ end
4025
+
4026
+ # RunSyncAsset返回参数结构体
4027
+ class RunSyncAssetResponse < TencentCloud::Common::AbstractModel
4028
+ # @param Status: 0:同步成功,1:资产更新中,2:后台同步调用失败
4029
+ # @type Status: Integer
4030
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4031
+ # @type RequestId: String
4032
+
4033
+ attr_accessor :Status, :RequestId
4034
+
4035
+ def initialize(status=nil, requestid=nil)
4036
+ @Status = status
4037
+ @RequestId = requestid
4038
+ end
4039
+
4040
+ def deserialize(params)
4041
+ @Status = params['Status']
4042
+ @RequestId = params['RequestId']
4043
+ end
4044
+ end
4045
+
4046
+ # 新手引导扫描信息
4047
+ class ScanInfo < TencentCloud::Common::AbstractModel
4048
+ # @param ScanResultInfo: 扫描结果信息
4049
+ # @type ScanResultInfo: :class:`Tencentcloud::Cfw.v20190904.models.ScanResultInfo`
4050
+ # @param ScanStatus: 扫描状态 0扫描中 1完成 2没赠送过扫描显示开启界面
4051
+ # @type ScanStatus: Integer
4052
+ # @param ScanPercent: 进度
4053
+ # @type ScanPercent: Float
4054
+ # @param ScanTime: 预计完成时间
4055
+ # @type ScanTime: String
4056
+
4057
+ attr_accessor :ScanResultInfo, :ScanStatus, :ScanPercent, :ScanTime
4058
+
4059
+ def initialize(scanresultinfo=nil, scanstatus=nil, scanpercent=nil, scantime=nil)
4060
+ @ScanResultInfo = scanresultinfo
4061
+ @ScanStatus = scanstatus
4062
+ @ScanPercent = scanpercent
4063
+ @ScanTime = scantime
4064
+ end
4065
+
4066
+ def deserialize(params)
4067
+ unless params['ScanResultInfo'].nil?
4068
+ @ScanResultInfo = ScanResultInfo.new
4069
+ @ScanResultInfo.deserialize(params['ScanResultInfo'])
4070
+ end
4071
+ @ScanStatus = params['ScanStatus']
4072
+ @ScanPercent = params['ScanPercent']
4073
+ @ScanTime = params['ScanTime']
4074
+ end
4075
+ end
4076
+
4077
+ # 新手引导扫描结果信息PortNum int
4078
+ # LeakNum int
4079
+ # IPNum int
4080
+ # IPStatus bool
4081
+ # IdpStatus bool
4082
+ # BanStatus bool
4083
+ class ScanResultInfo < TencentCloud::Common::AbstractModel
4084
+ # @param LeakNum: 暴漏漏洞数量
4085
+ # @type LeakNum: Integer
4086
+ # @param IPNum: 防护ip数量
4087
+ # @type IPNum: Integer
4088
+ # @param PortNum: 暴漏端口数量
4089
+ # @type PortNum: Integer
4090
+ # @param IPStatus: 是否开启防护
4091
+ # @type IPStatus: Boolean
4092
+ # @param IdpStatus: 是否拦截攻击
4093
+ # @type IdpStatus: Boolean
4094
+ # @param BanStatus: 是否禁封端口
4095
+ # @type BanStatus: Boolean
4096
+
4097
+ attr_accessor :LeakNum, :IPNum, :PortNum, :IPStatus, :IdpStatus, :BanStatus
4098
+
4099
+ def initialize(leaknum=nil, ipnum=nil, portnum=nil, ipstatus=nil, idpstatus=nil, banstatus=nil)
4100
+ @LeakNum = leaknum
4101
+ @IPNum = ipnum
4102
+ @PortNum = portnum
4103
+ @IPStatus = ipstatus
4104
+ @IdpStatus = idpstatus
4105
+ @BanStatus = banstatus
4106
+ end
4107
+
4108
+ def deserialize(params)
4109
+ @LeakNum = params['LeakNum']
4110
+ @IPNum = params['IPNum']
4111
+ @PortNum = params['PortNum']
4112
+ @IPStatus = params['IPStatus']
4113
+ @IdpStatus = params['IdpStatus']
4114
+ @BanStatus = params['BanStatus']
4115
+ end
4116
+ end
4117
+
4118
+ # 添加安全组Api规则对象
4119
+ class SecurityGroupApiRuleData < TencentCloud::Common::AbstractModel
4120
+ # @param SourceId: 访问源,入站时为Ip/Cidr,默认为0.0.0.0/0; 出站时当RuleType为1时,支持内网Ip/Cidr, 当RuleType为2时,填实例ID
4121
+ # @type SourceId: String
4122
+ # @param TargetId: 访问目的,出站时为Ip/Cidr,默认为0.0.0.0/0;入站时当RuleType为1时,支持内网Ip/Cidr, 当RuleType为2时,填实例ID
4123
+ # @type TargetId: String
4124
+ # @param Protocol: 协议,支持ANY/TCP/UDP/ICMP
4125
+ # @type Protocol: String
4126
+ # @param Port: 端口, 当Protocol为ANY或ICMP时,Port为-1/-1
4127
+ # @type Port: String
4128
+ # @param Strategy: 策略, 1:阻断,2:放行
4129
+ # @type Strategy: String
4130
+ # @param Detail: 描述
4131
+ # @type Detail: String
4132
+ # @param RuleType: 规则类型,1:VpcId+Ip/Cidr, 2: 实例ID,入站时为访问目的类型,出站时为访问源类型
4133
+ # @type RuleType: Integer
4134
+ # @param OrderIndex: 执行顺序,中间插入必传,前插、后插非必传
4135
+ # @type OrderIndex: Integer
4136
+ # @param VpcId: 私有网络ID,当RuleType为1时必传
4137
+ # @type VpcId: String
4138
+
4139
+ attr_accessor :SourceId, :TargetId, :Protocol, :Port, :Strategy, :Detail, :RuleType, :OrderIndex, :VpcId
4140
+
4141
+ def initialize(sourceid=nil, targetid=nil, protocol=nil, port=nil, strategy=nil, detail=nil, ruletype=nil, orderindex=nil, vpcid=nil)
4142
+ @SourceId = sourceid
4143
+ @TargetId = targetid
4144
+ @Protocol = protocol
4145
+ @Port = port
4146
+ @Strategy = strategy
4147
+ @Detail = detail
4148
+ @RuleType = ruletype
4149
+ @OrderIndex = orderindex
4150
+ @VpcId = vpcid
4151
+ end
4152
+
4153
+ def deserialize(params)
4154
+ @SourceId = params['SourceId']
4155
+ @TargetId = params['TargetId']
4156
+ @Protocol = params['Protocol']
4157
+ @Port = params['Port']
4158
+ @Strategy = params['Strategy']
4159
+ @Detail = params['Detail']
4160
+ @RuleType = params['RuleType']
4161
+ @OrderIndex = params['OrderIndex']
4162
+ @VpcId = params['VpcId']
4163
+ end
4164
+ end
4165
+
4166
+ # 双向下发的企业安全组规则
4167
+ class SecurityGroupBothWayInfo < TencentCloud::Common::AbstractModel
4168
+ # @param OrderIndex: 执行顺序
4169
+ # 注意:此字段可能返回 null,表示取不到有效值。
4170
+ # @type OrderIndex: Integer
4171
+ # @param SourceId: 访问源
4172
+ # 注意:此字段可能返回 null,表示取不到有效值。
4173
+ # @type SourceId: String
4174
+ # @param SourceType: 访问源类型,默认为0,0: IP, 1: VPC, 2: SUBNET, 3: CVM, 4: CLB, 5: ENI, 6: CDB, 7: 参数模板, 100: 资产分组
4175
+ # 注意:此字段可能返回 null,表示取不到有效值。
4176
+ # @type SourceType: Integer
4177
+ # @param TargetId: 访问目的
4178
+ # 注意:此字段可能返回 null,表示取不到有效值。
4179
+ # @type TargetId: String
4180
+ # @param TargetType: 访问目的类型,默认为0,0: IP, 1: VPC, 2: SUBNET, 3: CVM, 4: CLB, 5: ENI, 6: CDB, 7: 参数模板, 100: 资产分组
4181
+ # 注意:此字段可能返回 null,表示取不到有效值。
4182
+ # @type TargetType: Integer
4183
+ # @param Protocol: 协议
4184
+ # 注意:此字段可能返回 null,表示取不到有效值。
4185
+ # @type Protocol: String
4186
+ # @param Port: 目的端口
4187
+ # 注意:此字段可能返回 null,表示取不到有效值。
4188
+ # @type Port: String
4189
+ # @param Strategy: 策略, 1:阻断,2:放行
4190
+ # 注意:此字段可能返回 null,表示取不到有效值。
4191
+ # @type Strategy: Integer
4192
+ # @param Direction: 方向,0:出站,1:入站,默认1
4193
+ # 注意:此字段可能返回 null,表示取不到有效值。
4194
+ # @type Direction: Integer
4195
+ # @param Region: 地域
4196
+ # @type Region: String
4197
+ # @param Detail: 描述
4198
+ # 注意:此字段可能返回 null,表示取不到有效值。
4199
+ # @type Detail: String
4200
+ # @param Status: 是否开关开启,0:未开启,1:开启
4201
+ # 注意:此字段可能返回 null,表示取不到有效值。
4202
+ # @type Status: Integer
4203
+ # @param IsNew: 是否是正常规则,0:正常,1:异常
4204
+ # 注意:此字段可能返回 null,表示取不到有效值。
4205
+ # @type IsNew: Integer
4206
+ # @param BothWay: 单/双向下发,0:单向下发,1:双向下发
4207
+ # 注意:此字段可能返回 null,表示取不到有效值。
4208
+ # @type BothWay: Integer
4209
+ # @param VpcId: 私有网络ID
4210
+ # 注意:此字段可能返回 null,表示取不到有效值。
4211
+ # @type VpcId: String
4212
+ # @param SubnetId: 子网ID
4213
+ # 注意:此字段可能返回 null,表示取不到有效值。
4214
+ # @type SubnetId: String
4215
+ # @param InstanceName: 实例名称
4216
+ # 注意:此字段可能返回 null,表示取不到有效值。
4217
+ # @type InstanceName: String
4218
+ # @param PublicIp: 公网IP,多个以英文逗号分隔
4219
+ # 注意:此字段可能返回 null,表示取不到有效值。
4220
+ # @type PublicIp: String
4221
+ # @param PrivateIp: 内网IP,多个以英文逗号分隔
4222
+ # 注意:此字段可能返回 null,表示取不到有效值。
4223
+ # @type PrivateIp: String
4224
+ # @param Cidr: 掩码地址,多个以英文逗号分隔
4225
+ # 注意:此字段可能返回 null,表示取不到有效值。
4226
+ # @type Cidr: String
4227
+ # @param ServiceTemplateId: 端口协议类型参数模板id
4228
+ # 注意:此字段可能返回 null,表示取不到有效值。
4229
+ # @type ServiceTemplateId: String
4230
+ # @param ProtocolPortType: 是否使用端口协议模板,0:否,1:是
4231
+ # @type ProtocolPortType: Integer
4232
+
4233
+ attr_accessor :OrderIndex, :SourceId, :SourceType, :TargetId, :TargetType, :Protocol, :Port, :Strategy, :Direction, :Region, :Detail, :Status, :IsNew, :BothWay, :VpcId, :SubnetId, :InstanceName, :PublicIp, :PrivateIp, :Cidr, :ServiceTemplateId, :ProtocolPortType
4234
+
4235
+ def initialize(orderindex=nil, sourceid=nil, sourcetype=nil, targetid=nil, targettype=nil, protocol=nil, port=nil, strategy=nil, direction=nil, region=nil, detail=nil, status=nil, isnew=nil, bothway=nil, vpcid=nil, subnetid=nil, instancename=nil, publicip=nil, privateip=nil, cidr=nil, servicetemplateid=nil, protocolporttype=nil)
4236
+ @OrderIndex = orderindex
4237
+ @SourceId = sourceid
4238
+ @SourceType = sourcetype
4239
+ @TargetId = targetid
4240
+ @TargetType = targettype
4241
+ @Protocol = protocol
4242
+ @Port = port
4243
+ @Strategy = strategy
4244
+ @Direction = direction
4245
+ @Region = region
4246
+ @Detail = detail
4247
+ @Status = status
4248
+ @IsNew = isnew
4249
+ @BothWay = bothway
4250
+ @VpcId = vpcid
4251
+ @SubnetId = subnetid
4252
+ @InstanceName = instancename
4253
+ @PublicIp = publicip
4254
+ @PrivateIp = privateip
4255
+ @Cidr = cidr
4256
+ @ServiceTemplateId = servicetemplateid
4257
+ @ProtocolPortType = protocolporttype
4258
+ end
4259
+
4260
+ def deserialize(params)
4261
+ @OrderIndex = params['OrderIndex']
4262
+ @SourceId = params['SourceId']
4263
+ @SourceType = params['SourceType']
4264
+ @TargetId = params['TargetId']
4265
+ @TargetType = params['TargetType']
4266
+ @Protocol = params['Protocol']
4267
+ @Port = params['Port']
4268
+ @Strategy = params['Strategy']
4269
+ @Direction = params['Direction']
4270
+ @Region = params['Region']
4271
+ @Detail = params['Detail']
4272
+ @Status = params['Status']
4273
+ @IsNew = params['IsNew']
4274
+ @BothWay = params['BothWay']
4275
+ @VpcId = params['VpcId']
4276
+ @SubnetId = params['SubnetId']
4277
+ @InstanceName = params['InstanceName']
4278
+ @PublicIp = params['PublicIp']
4279
+ @PrivateIp = params['PrivateIp']
4280
+ @Cidr = params['Cidr']
4281
+ @ServiceTemplateId = params['ServiceTemplateId']
4282
+ @ProtocolPortType = params['ProtocolPortType']
4283
+ end
4284
+ end
4285
+
4286
+ # 安全组列表数据
4287
+ class SecurityGroupListData < TencentCloud::Common::AbstractModel
4288
+ # @param OrderIndex: 执行顺序
4289
+ # @type OrderIndex: Integer
4290
+ # @param SourceId: 访问源
4291
+ # @type SourceId: String
4292
+ # @param SourceType: 访问源类型,默认为0,1: VPC, 2: SUBNET, 3: CVM, 4: CLB, 5: ENI, 6: CDB, 7: 参数模板, 100: 资源组
4293
+ # @type SourceType: Integer
4294
+ # @param TargetId: 访问目的
4295
+ # @type TargetId: String
4296
+ # @param TargetType: 访问目的类型,默认为0,1: VPC, 2: SUBNET, 3: CVM, 4: CLB, 5: ENI, 6: CDB, 7: 参数模板, 100:资源组
4297
+ # @type TargetType: Integer
4298
+ # @param Protocol: 协议
4299
+ # @type Protocol: String
4300
+ # @param Port: 目的端口
4301
+ # @type Port: String
4302
+ # @param Strategy: 策略, 1:阻断,2:放行
4303
+ # @type Strategy: Integer
4304
+ # @param Detail: 描述
4305
+ # @type Detail: String
4306
+ # @param BothWay: 单/双向下发,0:单向下发,1:双向下发
4307
+ # @type BothWay: Integer
4308
+ # @param Id: 规则ID
4309
+ # @type Id: Integer
4310
+ # @param Status: 是否开关开启,0:未开启,1:开启
4311
+ # @type Status: Integer
4312
+ # @param IsNew: 是否是正常规则,0:正常,1:异常
4313
+ # @type IsNew: Integer
4314
+ # @param VpcId: 私有网络ID
4315
+ # 注意:此字段可能返回 null,表示取不到有效值。
4316
+ # @type VpcId: String
4317
+ # @param SubnetId: 子网ID
4318
+ # 注意:此字段可能返回 null,表示取不到有效值。
4319
+ # @type SubnetId: String
4320
+ # @param InstanceName: 实例名称
4321
+ # 注意:此字段可能返回 null,表示取不到有效值。
4322
+ # @type InstanceName: String
4323
+ # @param PublicIp: 公网IP,多个以英文逗号分隔
4324
+ # 注意:此字段可能返回 null,表示取不到有效值。
4325
+ # @type PublicIp: String
4326
+ # @param PrivateIp: 内网IP,多个以英文逗号分隔
4327
+ # 注意:此字段可能返回 null,表示取不到有效值。
4328
+ # @type PrivateIp: String
4329
+ # @param Cidr: 掩码地址,多个以英文逗号分隔
4330
+ # 注意:此字段可能返回 null,表示取不到有效值。
4331
+ # @type Cidr: String
4332
+ # @param ServiceTemplateId: 端口协议类型参数模板id
4333
+ # 注意:此字段可能返回 null,表示取不到有效值。
4334
+ # @type ServiceTemplateId: String
4335
+ # @param BothWayInfo: 生成双向下发规则
4336
+ # 注意:此字段可能返回 null,表示取不到有效值。
4337
+ # @type BothWayInfo: Array
4338
+ # @param Direction: 方向,0:出站,1:入站,默认1
4339
+ # @type Direction: Integer
4340
+ # @param ProtocolPortType: 是否使用端口协议模板,0:否,1:是
4341
+ # @type ProtocolPortType: Integer
4342
+
4343
+ attr_accessor :OrderIndex, :SourceId, :SourceType, :TargetId, :TargetType, :Protocol, :Port, :Strategy, :Detail, :BothWay, :Id, :Status, :IsNew, :VpcId, :SubnetId, :InstanceName, :PublicIp, :PrivateIp, :Cidr, :ServiceTemplateId, :BothWayInfo, :Direction, :ProtocolPortType
4344
+
4345
+ def initialize(orderindex=nil, sourceid=nil, sourcetype=nil, targetid=nil, targettype=nil, protocol=nil, port=nil, strategy=nil, detail=nil, bothway=nil, id=nil, status=nil, isnew=nil, vpcid=nil, subnetid=nil, instancename=nil, publicip=nil, privateip=nil, cidr=nil, servicetemplateid=nil, bothwayinfo=nil, direction=nil, protocolporttype=nil)
4346
+ @OrderIndex = orderindex
4347
+ @SourceId = sourceid
4348
+ @SourceType = sourcetype
4349
+ @TargetId = targetid
4350
+ @TargetType = targettype
4351
+ @Protocol = protocol
4352
+ @Port = port
4353
+ @Strategy = strategy
4354
+ @Detail = detail
4355
+ @BothWay = bothway
4356
+ @Id = id
4357
+ @Status = status
4358
+ @IsNew = isnew
4359
+ @VpcId = vpcid
4360
+ @SubnetId = subnetid
4361
+ @InstanceName = instancename
4362
+ @PublicIp = publicip
4363
+ @PrivateIp = privateip
4364
+ @Cidr = cidr
4365
+ @ServiceTemplateId = servicetemplateid
4366
+ @BothWayInfo = bothwayinfo
4367
+ @Direction = direction
4368
+ @ProtocolPortType = protocolporttype
4369
+ end
4370
+
4371
+ def deserialize(params)
4372
+ @OrderIndex = params['OrderIndex']
4373
+ @SourceId = params['SourceId']
4374
+ @SourceType = params['SourceType']
4375
+ @TargetId = params['TargetId']
4376
+ @TargetType = params['TargetType']
4377
+ @Protocol = params['Protocol']
4378
+ @Port = params['Port']
4379
+ @Strategy = params['Strategy']
4380
+ @Detail = params['Detail']
4381
+ @BothWay = params['BothWay']
4382
+ @Id = params['Id']
4383
+ @Status = params['Status']
4384
+ @IsNew = params['IsNew']
4385
+ @VpcId = params['VpcId']
4386
+ @SubnetId = params['SubnetId']
4387
+ @InstanceName = params['InstanceName']
4388
+ @PublicIp = params['PublicIp']
4389
+ @PrivateIp = params['PrivateIp']
4390
+ @Cidr = params['Cidr']
4391
+ @ServiceTemplateId = params['ServiceTemplateId']
4392
+ unless params['BothWayInfo'].nil?
4393
+ @BothWayInfo = []
4394
+ params['BothWayInfo'].each do |i|
4395
+ securitygroupbothwayinfo_tmp = SecurityGroupBothWayInfo.new
4396
+ securitygroupbothwayinfo_tmp.deserialize(i)
4397
+ @BothWayInfo << securitygroupbothwayinfo_tmp
4398
+ end
4399
+ end
4400
+ @Direction = params['Direction']
4401
+ @ProtocolPortType = params['ProtocolPortType']
4402
+ end
4403
+ end
4404
+
4405
+ # 企业安全组规则执行顺序修改对象
4406
+ class SecurityGroupOrderIndexData < TencentCloud::Common::AbstractModel
4407
+ # @param OrderIndex: 企业安全组规则当前执行顺序
4408
+ # @type OrderIndex: Integer
4409
+ # @param NewOrderIndex: 企业安全组规则更新目标执行顺序
4410
+ # @type NewOrderIndex: Integer
4411
+
4412
+ attr_accessor :OrderIndex, :NewOrderIndex
4413
+
4414
+ def initialize(orderindex=nil, neworderindex=nil)
4415
+ @OrderIndex = orderindex
4416
+ @NewOrderIndex = neworderindex
4417
+ end
4418
+
4419
+ def deserialize(params)
4420
+ @OrderIndex = params['OrderIndex']
4421
+ @NewOrderIndex = params['NewOrderIndex']
4422
+ end
4423
+ end
4424
+
4425
+ # 执行顺序对象
4426
+ class SequenceData < TencentCloud::Common::AbstractModel
4427
+ # @param Id: 规则Id值
4428
+ # @type Id: Integer
4429
+ # @param OrderIndex: 修改前执行顺序
4430
+ # @type OrderIndex: Integer
4431
+ # @param NewOrderIndex: 修改后执行顺序
4432
+ # @type NewOrderIndex: Integer
4433
+
4434
+ attr_accessor :Id, :OrderIndex, :NewOrderIndex
4435
+
4436
+ def initialize(id=nil, orderindex=nil, neworderindex=nil)
4437
+ @Id = id
4438
+ @OrderIndex = orderindex
4439
+ @NewOrderIndex = neworderindex
4440
+ end
4441
+
4442
+ def deserialize(params)
4443
+ @Id = params['Id']
4444
+ @OrderIndex = params['OrderIndex']
4445
+ @NewOrderIndex = params['NewOrderIndex']
4446
+ end
4447
+ end
4448
+
4449
+ # SetNatFwDnatRule请求参数结构体
4450
+ class SetNatFwDnatRuleRequest < TencentCloud::Common::AbstractModel
4451
+ # @param Mode: 0:cfw新增模式,1:cfw接入模式。
4452
+ # @type Mode: Integer
4453
+ # @param OperationType: 操作类型,可选值:add,del,modify。
4454
+ # @type OperationType: String
4455
+ # @param CfwInstance: 防火墙实例id,该字段必须传递。
4456
+ # @type CfwInstance: String
4457
+ # @param AddOrDelDnatRules: 添加或删除操作的Dnat规则列表。
4458
+ # @type AddOrDelDnatRules: Array
4459
+ # @param OriginDnat: 修改操作的原始Dnat规则
4460
+ # @type OriginDnat: :class:`Tencentcloud::Cfw.v20190904.models.CfwNatDnatRule`
4461
+ # @param NewDnat: 修改操作的新的Dnat规则
4462
+ # @type NewDnat: :class:`Tencentcloud::Cfw.v20190904.models.CfwNatDnatRule`
4463
+
4464
+ attr_accessor :Mode, :OperationType, :CfwInstance, :AddOrDelDnatRules, :OriginDnat, :NewDnat
4465
+
4466
+ def initialize(mode=nil, operationtype=nil, cfwinstance=nil, addordeldnatrules=nil, origindnat=nil, newdnat=nil)
4467
+ @Mode = mode
4468
+ @OperationType = operationtype
4469
+ @CfwInstance = cfwinstance
4470
+ @AddOrDelDnatRules = addordeldnatrules
4471
+ @OriginDnat = origindnat
4472
+ @NewDnat = newdnat
4473
+ end
4474
+
4475
+ def deserialize(params)
4476
+ @Mode = params['Mode']
4477
+ @OperationType = params['OperationType']
4478
+ @CfwInstance = params['CfwInstance']
4479
+ unless params['AddOrDelDnatRules'].nil?
4480
+ @AddOrDelDnatRules = []
4481
+ params['AddOrDelDnatRules'].each do |i|
4482
+ cfwnatdnatrule_tmp = CfwNatDnatRule.new
4483
+ cfwnatdnatrule_tmp.deserialize(i)
4484
+ @AddOrDelDnatRules << cfwnatdnatrule_tmp
4485
+ end
4486
+ end
4487
+ unless params['OriginDnat'].nil?
4488
+ @OriginDnat = CfwNatDnatRule.new
4489
+ @OriginDnat.deserialize(params['OriginDnat'])
4490
+ end
4491
+ unless params['NewDnat'].nil?
4492
+ @NewDnat = CfwNatDnatRule.new
4493
+ @NewDnat.deserialize(params['NewDnat'])
4494
+ end
4495
+ end
4496
+ end
4497
+
4498
+ # SetNatFwDnatRule返回参数结构体
4499
+ class SetNatFwDnatRuleResponse < TencentCloud::Common::AbstractModel
4500
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4501
+ # @type RequestId: String
4502
+
4503
+ attr_accessor :RequestId
4504
+
4505
+ def initialize(requestid=nil)
4506
+ @RequestId = requestid
4507
+ end
4508
+
4509
+ def deserialize(params)
4510
+ @RequestId = params['RequestId']
4511
+ end
4512
+ end
4513
+
4514
+ # SetNatFwEip请求参数结构体
4515
+ class SetNatFwEipRequest < TencentCloud::Common::AbstractModel
4516
+ # @param OperationType: bind:绑定eip;unbind:解绑eip;newAdd:新增防火墙弹性公网ip
4517
+ # @type OperationType: String
4518
+ # @param CfwInstance: 防火墙实例id
4519
+ # @type CfwInstance: String
4520
+ # @param EipList: 当OperationType 为bind或unbind操作时,使用该字段。
4521
+ # @type EipList: Array
4522
+
4523
+ attr_accessor :OperationType, :CfwInstance, :EipList
4524
+
4525
+ def initialize(operationtype=nil, cfwinstance=nil, eiplist=nil)
4526
+ @OperationType = operationtype
4527
+ @CfwInstance = cfwinstance
4528
+ @EipList = eiplist
4529
+ end
4530
+
4531
+ def deserialize(params)
4532
+ @OperationType = params['OperationType']
4533
+ @CfwInstance = params['CfwInstance']
4534
+ @EipList = params['EipList']
4535
+ end
4536
+ end
4537
+
4538
+ # SetNatFwEip返回参数结构体
4539
+ class SetNatFwEipResponse < TencentCloud::Common::AbstractModel
4540
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4541
+ # @type RequestId: String
4542
+
4543
+ attr_accessor :RequestId
4544
+
4545
+ def initialize(requestid=nil)
4546
+ @RequestId = requestid
4547
+ end
4548
+
4549
+ def deserialize(params)
4550
+ @RequestId = params['RequestId']
4551
+ end
4552
+ end
4553
+
4554
+ # StaticInfo 告警柱形图统计信息
4555
+
4556
+ class StaticInfo < TencentCloud::Common::AbstractModel
4557
+ # @param Num: 数
4558
+ # @type Num: Integer
4559
+ # @param Port: 端口
4560
+ # @type Port: String
4561
+ # @param Ip: ip信息
4562
+ # @type Ip: String
4563
+ # @param Address: 地址
4564
+ # @type Address: String
4565
+ # @param InsID: 资产id
4566
+ # @type InsID: String
4567
+ # @param InsName: 资产名称
4568
+ # @type InsName: String
4569
+
4570
+ attr_accessor :Num, :Port, :Ip, :Address, :InsID, :InsName
4571
+
4572
+ def initialize(num=nil, port=nil, ip=nil, address=nil, insid=nil, insname=nil)
4573
+ @Num = num
4574
+ @Port = port
4575
+ @Ip = ip
4576
+ @Address = address
4577
+ @InsID = insid
4578
+ @InsName = insname
4579
+ end
4580
+
4581
+ def deserialize(params)
4582
+ @Num = params['Num']
4583
+ @Port = params['Port']
4584
+ @Ip = params['Ip']
4585
+ @Address = params['Address']
4586
+ @InsID = params['InsID']
4587
+ @InsName = params['InsName']
4588
+ end
4589
+ end
4590
+
4591
+ # StopSecurityGroupRuleDispatch请求参数结构体
4592
+ class StopSecurityGroupRuleDispatchRequest < TencentCloud::Common::AbstractModel
4593
+
4594
+
4595
+ def initialize()
4596
+ end
4597
+
4598
+ def deserialize(params)
4599
+ end
4600
+ end
4601
+
4602
+ # StopSecurityGroupRuleDispatch返回参数结构体
4603
+ class StopSecurityGroupRuleDispatchResponse < TencentCloud::Common::AbstractModel
4604
+ # @param Status: true代表成功,false代表错误
4605
+ # 注意:此字段可能返回 null,表示取不到有效值。
4606
+ # @type Status: Boolean
4607
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4608
+ # @type RequestId: String
4609
+
4610
+ attr_accessor :Status, :RequestId
4611
+
4612
+ def initialize(status=nil, requestid=nil)
4613
+ @Status = status
4614
+ @RequestId = requestid
4615
+ end
4616
+
4617
+ def deserialize(params)
4618
+ @Status = params['Status']
4619
+ @RequestId = params['RequestId']
4620
+ end
4621
+ end
4622
+
4623
+ # 防火墙开关列表对象
4624
+ class SwitchListsData < TencentCloud::Common::AbstractModel
4625
+ # @param PublicIp: 公网IP
4626
+ # 注意:此字段可能返回 null,表示取不到有效值。
4627
+ # @type PublicIp: String
4628
+ # @param IntranetIp: 内网IP
4629
+ # 注意:此字段可能返回 null,表示取不到有效值。
4630
+ # @type IntranetIp: String
4631
+ # @param InstanceName: 实例名
4632
+ # 注意:此字段可能返回 null,表示取不到有效值。
4633
+ # @type InstanceName: String
4634
+ # @param InstanceId: 实例ID
4635
+ # 注意:此字段可能返回 null,表示取不到有效值。
4636
+ # @type InstanceId: String
4637
+ # @param AssetType: 资产类型
4638
+ # @type AssetType: String
4639
+ # @param Area: 地域
4640
+ # 注意:此字段可能返回 null,表示取不到有效值。
4641
+ # @type Area: String
4642
+ # @param Switch: 防火墙开关
4643
+ # @type Switch: Integer
4644
+ # @param Id: id值
4645
+ # @type Id: Integer
4646
+ # @param PublicIpType: 公网 IP 类型
4647
+ # 注意:此字段可能返回 null,表示取不到有效值。
4648
+ # @type PublicIpType: Integer
4649
+ # @param PortTimes: 风险端口数
4650
+ # 注意:此字段可能返回 null,表示取不到有效值。
4651
+ # @type PortTimes: Integer
4652
+ # @param LastTime: 最近扫描时间
4653
+ # 注意:此字段可能返回 null,表示取不到有效值。
4654
+ # @type LastTime: String
4655
+ # @param ScanMode: 扫描深度
4656
+ # 注意:此字段可能返回 null,表示取不到有效值。
4657
+ # @type ScanMode: String
4658
+ # @param ScanStatus: 扫描状态
4659
+ # 注意:此字段可能返回 null,表示取不到有效值。
4660
+ # @type ScanStatus: Integer
4661
+
4662
+ attr_accessor :PublicIp, :IntranetIp, :InstanceName, :InstanceId, :AssetType, :Area, :Switch, :Id, :PublicIpType, :PortTimes, :LastTime, :ScanMode, :ScanStatus
4663
+
4664
+ def initialize(publicip=nil, intranetip=nil, instancename=nil, instanceid=nil, assettype=nil, area=nil, switch=nil, id=nil, publiciptype=nil, porttimes=nil, lasttime=nil, scanmode=nil, scanstatus=nil)
4665
+ @PublicIp = publicip
4666
+ @IntranetIp = intranetip
4667
+ @InstanceName = instancename
4668
+ @InstanceId = instanceid
4669
+ @AssetType = assettype
4670
+ @Area = area
4671
+ @Switch = switch
4672
+ @Id = id
4673
+ @PublicIpType = publiciptype
4674
+ @PortTimes = porttimes
4675
+ @LastTime = lasttime
4676
+ @ScanMode = scanmode
4677
+ @ScanStatus = scanstatus
4678
+ end
4679
+
4680
+ def deserialize(params)
4681
+ @PublicIp = params['PublicIp']
4682
+ @IntranetIp = params['IntranetIp']
4683
+ @InstanceName = params['InstanceName']
4684
+ @InstanceId = params['InstanceId']
4685
+ @AssetType = params['AssetType']
4686
+ @Area = params['Area']
4687
+ @Switch = params['Switch']
4688
+ @Id = params['Id']
4689
+ @PublicIpType = params['PublicIpType']
4690
+ @PortTimes = params['PortTimes']
4691
+ @LastTime = params['LastTime']
4692
+ @ScanMode = params['ScanMode']
4693
+ @ScanStatus = params['ScanStatus']
4694
+ end
4695
+ end
4696
+
4697
+ # 告警中心概览数据
4698
+ class TLogInfo < TencentCloud::Common::AbstractModel
4699
+ # @param OutNum: 失陷主机
4700
+ # @type OutNum: Integer
4701
+ # @param HandleNum: 待处置告警
4702
+ # @type HandleNum: Integer
4703
+ # @param VulNum: 漏洞攻击
4704
+ # @type VulNum: Integer
4705
+ # @param NetworkNum: 网络探测
4706
+ # @type NetworkNum: Integer
4707
+ # @param BanNum: 封禁列表
4708
+ # @type BanNum: Integer
4709
+ # @param BruteForceNum: 暴力破解
4710
+ # @type BruteForceNum: Integer
4711
+
4712
+ attr_accessor :OutNum, :HandleNum, :VulNum, :NetworkNum, :BanNum, :BruteForceNum
4713
+
4714
+ def initialize(outnum=nil, handlenum=nil, vulnum=nil, networknum=nil, bannum=nil, bruteforcenum=nil)
4715
+ @OutNum = outnum
4716
+ @HandleNum = handlenum
4717
+ @VulNum = vulnum
4718
+ @NetworkNum = networknum
4719
+ @BanNum = bannum
4720
+ @BruteForceNum = bruteforcenum
4721
+ end
4722
+
4723
+ def deserialize(params)
4724
+ @OutNum = params['OutNum']
4725
+ @HandleNum = params['HandleNum']
4726
+ @VulNum = params['VulNum']
4727
+ @NetworkNum = params['NetworkNum']
4728
+ @BanNum = params['BanNum']
4729
+ @BruteForceNum = params['BruteForceNum']
4730
+ end
4731
+ end
4732
+
4733
+ # 未处置事件详情
4734
+ class UnHandleEvent < TencentCloud::Common::AbstractModel
4735
+ # @param EventTableListStruct: 伪攻击链类型
4736
+ # @type EventTableListStruct: Array
4737
+ # @param BaseLineUser: 1 是 0否
4738
+ # @type BaseLineUser: Integer
4739
+ # @param BaseLineInSwitch: 1 打开 0 关闭
4740
+ # @type BaseLineInSwitch: Integer
4741
+ # @param BaseLineOutSwitch: 1 打开 0 关闭
4742
+ # @type BaseLineOutSwitch: Integer
4743
+
4744
+ attr_accessor :EventTableListStruct, :BaseLineUser, :BaseLineInSwitch, :BaseLineOutSwitch
4745
+
4746
+ def initialize(eventtableliststruct=nil, baselineuser=nil, baselineinswitch=nil, baselineoutswitch=nil)
4747
+ @EventTableListStruct = eventtableliststruct
4748
+ @BaseLineUser = baselineuser
4749
+ @BaseLineInSwitch = baselineinswitch
4750
+ @BaseLineOutSwitch = baselineoutswitch
4751
+ end
4752
+
4753
+ def deserialize(params)
4754
+ unless params['EventTableListStruct'].nil?
4755
+ @EventTableListStruct = []
4756
+ params['EventTableListStruct'].each do |i|
4757
+ unhandleeventdetail_tmp = UnHandleEventDetail.new
4758
+ unhandleeventdetail_tmp.deserialize(i)
4759
+ @EventTableListStruct << unhandleeventdetail_tmp
4760
+ end
4761
+ end
4762
+ @BaseLineUser = params['BaseLineUser']
4763
+ @BaseLineInSwitch = params['BaseLineInSwitch']
4764
+ @BaseLineOutSwitch = params['BaseLineOutSwitch']
4765
+ end
4766
+ end
4767
+
4768
+ # 未处置事件信息汇总
4769
+ class UnHandleEventDetail < TencentCloud::Common::AbstractModel
4770
+ # @param EventName: 安全事件名称
4771
+ # @type EventName: String
4772
+ # @param Total: 未处置事件数量
4773
+ # @type Total: Integer
4774
+
4775
+ attr_accessor :EventName, :Total
4776
+
4777
+ def initialize(eventname=nil, total=nil)
4778
+ @EventName = eventname
4779
+ @Total = total
4780
+ end
4781
+
4782
+ def deserialize(params)
4783
+ @EventName = params['EventName']
4784
+ @Total = params['Total']
4785
+ end
4786
+ end
4787
+
4788
+ # nat防火墙 vpc dns 开关信息
4789
+ class VpcDnsInfo < TencentCloud::Common::AbstractModel
4790
+ # @param VpcId: vpc id
4791
+ # @type VpcId: String
4792
+ # @param VpcName: vpc 名称
4793
+ # @type VpcName: String
4794
+ # @param FwMode: nat 防火墙模式 0:新增模式, 1: 接入模式
4795
+ # @type FwMode: Integer
4796
+ # @param VpcIpv4Cidr: vpc ipv4网段范围 CIDR(Classless Inter-Domain Routing,无类域间路由选择)
4797
+ # @type VpcIpv4Cidr: String
4798
+ # @param DNSEip: 外网弹性ip,防火墙 dns解析地址
4799
+ # @type DNSEip: String
4800
+ # @param NatInsId: nat网关id
4801
+ # 注意:此字段可能返回 null,表示取不到有效值。
4802
+ # @type NatInsId: String
4803
+ # @param NatInsName: nat网关名称
4804
+ # 注意:此字段可能返回 null,表示取不到有效值。
4805
+ # @type NatInsName: String
4806
+ # @param SwitchStatus: 0:开关关闭 , 1: 开关打开
4807
+ # @type SwitchStatus: Integer
4808
+
4809
+ attr_accessor :VpcId, :VpcName, :FwMode, :VpcIpv4Cidr, :DNSEip, :NatInsId, :NatInsName, :SwitchStatus
4810
+
4811
+ def initialize(vpcid=nil, vpcname=nil, fwmode=nil, vpcipv4cidr=nil, dnseip=nil, natinsid=nil, natinsname=nil, switchstatus=nil)
4812
+ @VpcId = vpcid
4813
+ @VpcName = vpcname
4814
+ @FwMode = fwmode
4815
+ @VpcIpv4Cidr = vpcipv4cidr
4816
+ @DNSEip = dnseip
4817
+ @NatInsId = natinsid
4818
+ @NatInsName = natinsname
4819
+ @SwitchStatus = switchstatus
4820
+ end
4821
+
4822
+ def deserialize(params)
4823
+ @VpcId = params['VpcId']
4824
+ @VpcName = params['VpcName']
4825
+ @FwMode = params['FwMode']
4826
+ @VpcIpv4Cidr = params['VpcIpv4Cidr']
4827
+ @DNSEip = params['DNSEip']
4828
+ @NatInsId = params['NatInsId']
4829
+ @NatInsName = params['NatInsName']
4830
+ @SwitchStatus = params['SwitchStatus']
4831
+ end
4832
+ end
4833
+
4834
+ # vpc区域数据详情
4835
+ class VpcZoneData < TencentCloud::Common::AbstractModel
4836
+ # @param Zone: 可用区
4837
+ # @type Zone: String
4838
+ # @param Region: vpc节点地域
4839
+ # @type Region: String
4840
+
4841
+ attr_accessor :Zone, :Region
4842
+
4843
+ def initialize(zone=nil, region=nil)
4844
+ @Zone = zone
4845
+ @Region = region
4846
+ end
4847
+
4848
+ def deserialize(params)
4849
+ @Zone = params['Zone']
4850
+ @Region = params['Region']
4851
+ end
4852
+ end
4853
+
4854
+ end
4855
+ end
4856
+ end
4857
+