tencentcloud-sdk-cws 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,1508 @@
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 Cws
19
+ module V20180312
20
+ # CreateMonitors请求参数结构体
21
+ class CreateMonitorsRequest < TencentCloud::Common::AbstractModel
22
+ # @param Urls: 站点的url列表
23
+ # @type Urls: Array
24
+ # @param Name: 任务名称
25
+ # @type Name: String
26
+ # @param ScannerType: 扫描模式,normal-正常扫描;deep-深度扫描
27
+ # @type ScannerType: String
28
+ # @param Crontab: 扫描周期,单位小时,每X小时执行一次
29
+ # @type Crontab: Integer
30
+ # @param RateLimit: 扫描速率限制,每秒发送X个HTTP请求
31
+ # @type RateLimit: Integer
32
+ # @param FirstScanStartTime: 首次扫描开始时间
33
+ # @type FirstScanStartTime: String
34
+
35
+ attr_accessor :Urls, :Name, :ScannerType, :Crontab, :RateLimit, :FirstScanStartTime
36
+
37
+ def initialize(urls=nil, name=nil, scannertype=nil, crontab=nil, ratelimit=nil, firstscanstarttime=nil)
38
+ @Urls = urls
39
+ @Name = name
40
+ @ScannerType = scannertype
41
+ @Crontab = crontab
42
+ @RateLimit = ratelimit
43
+ @FirstScanStartTime = firstscanstarttime
44
+ end
45
+
46
+ def deserialize(params)
47
+ @Urls = params['Urls']
48
+ @Name = params['Name']
49
+ @ScannerType = params['ScannerType']
50
+ @Crontab = params['Crontab']
51
+ @RateLimit = params['RateLimit']
52
+ @FirstScanStartTime = params['FirstScanStartTime']
53
+ end
54
+ end
55
+
56
+ # CreateMonitors返回参数结构体
57
+ class CreateMonitorsResponse < TencentCloud::Common::AbstractModel
58
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
59
+ # @type RequestId: String
60
+
61
+ attr_accessor :RequestId
62
+
63
+ def initialize(requestid=nil)
64
+ @RequestId = requestid
65
+ end
66
+
67
+ def deserialize(params)
68
+ @RequestId = params['RequestId']
69
+ end
70
+ end
71
+
72
+ # CreateSites请求参数结构体
73
+ class CreateSitesRequest < TencentCloud::Common::AbstractModel
74
+ # @param Urls: 站点的url列表
75
+ # @type Urls: Array
76
+ # @param UserAgent: 访问网站的客户端标识
77
+ # @type UserAgent: String
78
+
79
+ attr_accessor :Urls, :UserAgent
80
+
81
+ def initialize(urls=nil, useragent=nil)
82
+ @Urls = urls
83
+ @UserAgent = useragent
84
+ end
85
+
86
+ def deserialize(params)
87
+ @Urls = params['Urls']
88
+ @UserAgent = params['UserAgent']
89
+ end
90
+ end
91
+
92
+ # CreateSites返回参数结构体
93
+ class CreateSitesResponse < TencentCloud::Common::AbstractModel
94
+ # @param Number: 新增站点数。
95
+ # @type Number: Integer
96
+ # @param Sites: 站点数组
97
+ # @type Sites: Array
98
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
99
+ # @type RequestId: String
100
+
101
+ attr_accessor :Number, :Sites, :RequestId
102
+
103
+ def initialize(number=nil, sites=nil, requestid=nil)
104
+ @Number = number
105
+ @Sites = sites
106
+ @RequestId = requestid
107
+ end
108
+
109
+ def deserialize(params)
110
+ @Number = params['Number']
111
+ unless params['Sites'].nil?
112
+ @Sites = []
113
+ params['Sites'].each do |i|
114
+ minisite_tmp = MiniSite.new
115
+ minisite_tmp.deserialize(i)
116
+ @Sites << minisite_tmp
117
+ end
118
+ end
119
+ @RequestId = params['RequestId']
120
+ end
121
+ end
122
+
123
+ # CreateSitesScans请求参数结构体
124
+ class CreateSitesScansRequest < TencentCloud::Common::AbstractModel
125
+ # @param SiteIds: 站点的ID列表
126
+ # @type SiteIds: Array
127
+ # @param ScannerType: 扫描模式,normal-正常扫描;deep-深度扫描
128
+ # @type ScannerType: String
129
+ # @param RateLimit: 扫描速率限制,每秒发送X个HTTP请求
130
+ # @type RateLimit: Integer
131
+
132
+ attr_accessor :SiteIds, :ScannerType, :RateLimit
133
+
134
+ def initialize(siteids=nil, scannertype=nil, ratelimit=nil)
135
+ @SiteIds = siteids
136
+ @ScannerType = scannertype
137
+ @RateLimit = ratelimit
138
+ end
139
+
140
+ def deserialize(params)
141
+ @SiteIds = params['SiteIds']
142
+ @ScannerType = params['ScannerType']
143
+ @RateLimit = params['RateLimit']
144
+ end
145
+ end
146
+
147
+ # CreateSitesScans返回参数结构体
148
+ class CreateSitesScansResponse < TencentCloud::Common::AbstractModel
149
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
150
+ # @type RequestId: String
151
+
152
+ attr_accessor :RequestId
153
+
154
+ def initialize(requestid=nil)
155
+ @RequestId = requestid
156
+ end
157
+
158
+ def deserialize(params)
159
+ @RequestId = params['RequestId']
160
+ end
161
+ end
162
+
163
+ # CreateVulsMisinformation请求参数结构体
164
+ class CreateVulsMisinformationRequest < TencentCloud::Common::AbstractModel
165
+ # @param VulIds: 漏洞ID列表
166
+ # @type VulIds: Array
167
+
168
+ attr_accessor :VulIds
169
+
170
+ def initialize(vulids=nil)
171
+ @VulIds = vulids
172
+ end
173
+
174
+ def deserialize(params)
175
+ @VulIds = params['VulIds']
176
+ end
177
+ end
178
+
179
+ # CreateVulsMisinformation返回参数结构体
180
+ class CreateVulsMisinformationResponse < TencentCloud::Common::AbstractModel
181
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
182
+ # @type RequestId: String
183
+
184
+ attr_accessor :RequestId
185
+
186
+ def initialize(requestid=nil)
187
+ @RequestId = requestid
188
+ end
189
+
190
+ def deserialize(params)
191
+ @RequestId = params['RequestId']
192
+ end
193
+ end
194
+
195
+ # CreateVulsReport请求参数结构体
196
+ class CreateVulsReportRequest < TencentCloud::Common::AbstractModel
197
+ # @param SiteId: 站点ID
198
+ # @type SiteId: Integer
199
+ # @param MonitorId: 监控任务ID
200
+ # @type MonitorId: Integer
201
+
202
+ attr_accessor :SiteId, :MonitorId
203
+
204
+ def initialize(siteid=nil, monitorid=nil)
205
+ @SiteId = siteid
206
+ @MonitorId = monitorid
207
+ end
208
+
209
+ def deserialize(params)
210
+ @SiteId = params['SiteId']
211
+ @MonitorId = params['MonitorId']
212
+ end
213
+ end
214
+
215
+ # CreateVulsReport返回参数结构体
216
+ class CreateVulsReportResponse < TencentCloud::Common::AbstractModel
217
+ # @param ReportFileUrl: 报告下载地址
218
+ # @type ReportFileUrl: String
219
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
220
+ # @type RequestId: String
221
+
222
+ attr_accessor :ReportFileUrl, :RequestId
223
+
224
+ def initialize(reportfileurl=nil, requestid=nil)
225
+ @ReportFileUrl = reportfileurl
226
+ @RequestId = requestid
227
+ end
228
+
229
+ def deserialize(params)
230
+ @ReportFileUrl = params['ReportFileUrl']
231
+ @RequestId = params['RequestId']
232
+ end
233
+ end
234
+
235
+ # DeleteMonitors请求参数结构体
236
+ class DeleteMonitorsRequest < TencentCloud::Common::AbstractModel
237
+ # @param MonitorIds: 监控任务ID列表
238
+ # @type MonitorIds: Array
239
+
240
+ attr_accessor :MonitorIds
241
+
242
+ def initialize(monitorids=nil)
243
+ @MonitorIds = monitorids
244
+ end
245
+
246
+ def deserialize(params)
247
+ @MonitorIds = params['MonitorIds']
248
+ end
249
+ end
250
+
251
+ # DeleteMonitors返回参数结构体
252
+ class DeleteMonitorsResponse < TencentCloud::Common::AbstractModel
253
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
254
+ # @type RequestId: String
255
+
256
+ attr_accessor :RequestId
257
+
258
+ def initialize(requestid=nil)
259
+ @RequestId = requestid
260
+ end
261
+
262
+ def deserialize(params)
263
+ @RequestId = params['RequestId']
264
+ end
265
+ end
266
+
267
+ # DeleteSites请求参数结构体
268
+ class DeleteSitesRequest < TencentCloud::Common::AbstractModel
269
+ # @param SiteIds: 站点ID列表
270
+ # @type SiteIds: Array
271
+
272
+ attr_accessor :SiteIds
273
+
274
+ def initialize(siteids=nil)
275
+ @SiteIds = siteids
276
+ end
277
+
278
+ def deserialize(params)
279
+ @SiteIds = params['SiteIds']
280
+ end
281
+ end
282
+
283
+ # DeleteSites返回参数结构体
284
+ class DeleteSitesResponse < TencentCloud::Common::AbstractModel
285
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
286
+ # @type RequestId: String
287
+
288
+ attr_accessor :RequestId
289
+
290
+ def initialize(requestid=nil)
291
+ @RequestId = requestid
292
+ end
293
+
294
+ def deserialize(params)
295
+ @RequestId = params['RequestId']
296
+ end
297
+ end
298
+
299
+ # DescribeConfig请求参数结构体
300
+ class DescribeConfigRequest < TencentCloud::Common::AbstractModel
301
+
302
+
303
+ def initialize()
304
+ end
305
+
306
+ def deserialize(params)
307
+ end
308
+ end
309
+
310
+ # DescribeConfig返回参数结构体
311
+ class DescribeConfigResponse < TencentCloud::Common::AbstractModel
312
+ # @param NoticeLevel: 漏洞告警通知等级,4位分别代表:高危、中危、低危、提示。
313
+ # @type NoticeLevel: String
314
+ # @param Id: 配置ID。
315
+ # @type Id: Integer
316
+ # @param CreatedAt: 记录创建时间。
317
+ # @type CreatedAt: String
318
+ # @param UpdatedAt: 记录更新新建。
319
+ # @type UpdatedAt: String
320
+ # @param Appid: 云用户appid。
321
+ # @type Appid: Integer
322
+ # @param ContentLevel: 内容检测通知等级-1:通知,0-不通知
323
+ # @type ContentLevel: Integer
324
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
325
+ # @type RequestId: String
326
+
327
+ attr_accessor :NoticeLevel, :Id, :CreatedAt, :UpdatedAt, :Appid, :ContentLevel, :RequestId
328
+
329
+ def initialize(noticelevel=nil, id=nil, createdat=nil, updatedat=nil, appid=nil, contentlevel=nil, requestid=nil)
330
+ @NoticeLevel = noticelevel
331
+ @Id = id
332
+ @CreatedAt = createdat
333
+ @UpdatedAt = updatedat
334
+ @Appid = appid
335
+ @ContentLevel = contentlevel
336
+ @RequestId = requestid
337
+ end
338
+
339
+ def deserialize(params)
340
+ @NoticeLevel = params['NoticeLevel']
341
+ @Id = params['Id']
342
+ @CreatedAt = params['CreatedAt']
343
+ @UpdatedAt = params['UpdatedAt']
344
+ @Appid = params['Appid']
345
+ @ContentLevel = params['ContentLevel']
346
+ @RequestId = params['RequestId']
347
+ end
348
+ end
349
+
350
+ # DescribeMonitors请求参数结构体
351
+ class DescribeMonitorsRequest < TencentCloud::Common::AbstractModel
352
+ # @param MonitorIds: 监控任务ID列表
353
+ # @type MonitorIds: Array
354
+ # @param Filters: 过滤条件
355
+ # @type Filters: Array
356
+ # @param Offset: 偏移量,默认为0
357
+ # @type Offset: Integer
358
+ # @param Limit: 返回数量,默认为10,最大值为100
359
+ # @type Limit: Integer
360
+
361
+ attr_accessor :MonitorIds, :Filters, :Offset, :Limit
362
+
363
+ def initialize(monitorids=nil, filters=nil, offset=nil, limit=nil)
364
+ @MonitorIds = monitorids
365
+ @Filters = filters
366
+ @Offset = offset
367
+ @Limit = limit
368
+ end
369
+
370
+ def deserialize(params)
371
+ @MonitorIds = params['MonitorIds']
372
+ unless params['Filters'].nil?
373
+ @Filters = []
374
+ params['Filters'].each do |i|
375
+ filter_tmp = Filter.new
376
+ filter_tmp.deserialize(i)
377
+ @Filters << filter_tmp
378
+ end
379
+ end
380
+ @Offset = params['Offset']
381
+ @Limit = params['Limit']
382
+ end
383
+ end
384
+
385
+ # DescribeMonitors返回参数结构体
386
+ class DescribeMonitorsResponse < TencentCloud::Common::AbstractModel
387
+ # @param Monitors: 监控任务列表。
388
+ # @type Monitors: Array
389
+ # @param TotalCount: 监控任务数量。
390
+ # @type TotalCount: Integer
391
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
392
+ # @type RequestId: String
393
+
394
+ attr_accessor :Monitors, :TotalCount, :RequestId
395
+
396
+ def initialize(monitors=nil, totalcount=nil, requestid=nil)
397
+ @Monitors = monitors
398
+ @TotalCount = totalcount
399
+ @RequestId = requestid
400
+ end
401
+
402
+ def deserialize(params)
403
+ unless params['Monitors'].nil?
404
+ @Monitors = []
405
+ params['Monitors'].each do |i|
406
+ monitorsdetail_tmp = MonitorsDetail.new
407
+ monitorsdetail_tmp.deserialize(i)
408
+ @Monitors << monitorsdetail_tmp
409
+ end
410
+ end
411
+ @TotalCount = params['TotalCount']
412
+ @RequestId = params['RequestId']
413
+ end
414
+ end
415
+
416
+ # DescribeSiteQuota请求参数结构体
417
+ class DescribeSiteQuotaRequest < TencentCloud::Common::AbstractModel
418
+
419
+
420
+ def initialize()
421
+ end
422
+
423
+ def deserialize(params)
424
+ end
425
+ end
426
+
427
+ # DescribeSiteQuota返回参数结构体
428
+ class DescribeSiteQuotaResponse < TencentCloud::Common::AbstractModel
429
+ # @param Total: 已购买的扫描次数。
430
+ # @type Total: Integer
431
+ # @param Used: 已使用的扫描次数。
432
+ # @type Used: Integer
433
+ # @param Available: 剩余可用的扫描次数。
434
+ # @type Available: Integer
435
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
436
+ # @type RequestId: String
437
+
438
+ attr_accessor :Total, :Used, :Available, :RequestId
439
+
440
+ def initialize(total=nil, used=nil, available=nil, requestid=nil)
441
+ @Total = total
442
+ @Used = used
443
+ @Available = available
444
+ @RequestId = requestid
445
+ end
446
+
447
+ def deserialize(params)
448
+ @Total = params['Total']
449
+ @Used = params['Used']
450
+ @Available = params['Available']
451
+ @RequestId = params['RequestId']
452
+ end
453
+ end
454
+
455
+ # DescribeSites请求参数结构体
456
+ class DescribeSitesRequest < TencentCloud::Common::AbstractModel
457
+ # @param SiteIds: 站点ID列表
458
+ # @type SiteIds: Array
459
+ # @param Filters: 过滤条件
460
+ # @type Filters: Array
461
+ # @param Offset: 偏移量,默认为0
462
+ # @type Offset: Integer
463
+ # @param Limit: 返回数量,默认为10,最大值为100
464
+ # @type Limit: Integer
465
+
466
+ attr_accessor :SiteIds, :Filters, :Offset, :Limit
467
+
468
+ def initialize(siteids=nil, filters=nil, offset=nil, limit=nil)
469
+ @SiteIds = siteids
470
+ @Filters = filters
471
+ @Offset = offset
472
+ @Limit = limit
473
+ end
474
+
475
+ def deserialize(params)
476
+ @SiteIds = params['SiteIds']
477
+ unless params['Filters'].nil?
478
+ @Filters = []
479
+ params['Filters'].each do |i|
480
+ filter_tmp = Filter.new
481
+ filter_tmp.deserialize(i)
482
+ @Filters << filter_tmp
483
+ end
484
+ end
485
+ @Offset = params['Offset']
486
+ @Limit = params['Limit']
487
+ end
488
+ end
489
+
490
+ # DescribeSites返回参数结构体
491
+ class DescribeSitesResponse < TencentCloud::Common::AbstractModel
492
+ # @param TotalCount: 站点数量。
493
+ # @type TotalCount: Integer
494
+ # @param Sites: 站点信息列表。
495
+ # @type Sites: Array
496
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
497
+ # @type RequestId: String
498
+
499
+ attr_accessor :TotalCount, :Sites, :RequestId
500
+
501
+ def initialize(totalcount=nil, sites=nil, requestid=nil)
502
+ @TotalCount = totalcount
503
+ @Sites = sites
504
+ @RequestId = requestid
505
+ end
506
+
507
+ def deserialize(params)
508
+ @TotalCount = params['TotalCount']
509
+ unless params['Sites'].nil?
510
+ @Sites = []
511
+ params['Sites'].each do |i|
512
+ site_tmp = Site.new
513
+ site_tmp.deserialize(i)
514
+ @Sites << site_tmp
515
+ end
516
+ end
517
+ @RequestId = params['RequestId']
518
+ end
519
+ end
520
+
521
+ # DescribeSitesVerification请求参数结构体
522
+ class DescribeSitesVerificationRequest < TencentCloud::Common::AbstractModel
523
+ # @param Urls: 站点的url列表
524
+ # @type Urls: Array
525
+
526
+ attr_accessor :Urls
527
+
528
+ def initialize(urls=nil)
529
+ @Urls = urls
530
+ end
531
+
532
+ def deserialize(params)
533
+ @Urls = params['Urls']
534
+ end
535
+ end
536
+
537
+ # DescribeSitesVerification返回参数结构体
538
+ class DescribeSitesVerificationResponse < TencentCloud::Common::AbstractModel
539
+ # @param TotalCount: 验证信息数量。
540
+ # @type TotalCount: Integer
541
+ # @param SitesVerification: 验证信息列表。
542
+ # @type SitesVerification: Array
543
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
544
+ # @type RequestId: String
545
+
546
+ attr_accessor :TotalCount, :SitesVerification, :RequestId
547
+
548
+ def initialize(totalcount=nil, sitesverification=nil, requestid=nil)
549
+ @TotalCount = totalcount
550
+ @SitesVerification = sitesverification
551
+ @RequestId = requestid
552
+ end
553
+
554
+ def deserialize(params)
555
+ @TotalCount = params['TotalCount']
556
+ unless params['SitesVerification'].nil?
557
+ @SitesVerification = []
558
+ params['SitesVerification'].each do |i|
559
+ sitesverification_tmp = SitesVerification.new
560
+ sitesverification_tmp.deserialize(i)
561
+ @SitesVerification << sitesverification_tmp
562
+ end
563
+ end
564
+ @RequestId = params['RequestId']
565
+ end
566
+ end
567
+
568
+ # DescribeVulsNumber请求参数结构体
569
+ class DescribeVulsNumberRequest < TencentCloud::Common::AbstractModel
570
+
571
+
572
+ def initialize()
573
+ end
574
+
575
+ def deserialize(params)
576
+ end
577
+ end
578
+
579
+ # DescribeVulsNumber返回参数结构体
580
+ class DescribeVulsNumberResponse < TencentCloud::Common::AbstractModel
581
+ # @param ImpactSiteNumber: 受影响的网站总数。
582
+ # @type ImpactSiteNumber: Integer
583
+ # @param SiteNumber: 已验证的网站总数。
584
+ # @type SiteNumber: Integer
585
+ # @param VulsHighNumber: 高风险漏洞总数。
586
+ # @type VulsHighNumber: Integer
587
+ # @param VulsMiddleNumber: 中风险漏洞总数。
588
+ # @type VulsMiddleNumber: Integer
589
+ # @param VulsLowNumber: 低高风险漏洞总数。
590
+ # @type VulsLowNumber: Integer
591
+ # @param VulsNoticeNumber: 风险提示总数。
592
+ # @type VulsNoticeNumber: Integer
593
+ # @param PageCount: 扫描页面总数。
594
+ # @type PageCount: Integer
595
+ # @param Sites: 已验证的网站列表。
596
+ # @type Sites: Array
597
+ # @param ImpactSites: 受影响的网站列表。
598
+ # @type ImpactSites: Array
599
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
600
+ # @type RequestId: String
601
+
602
+ attr_accessor :ImpactSiteNumber, :SiteNumber, :VulsHighNumber, :VulsMiddleNumber, :VulsLowNumber, :VulsNoticeNumber, :PageCount, :Sites, :ImpactSites, :RequestId
603
+
604
+ def initialize(impactsitenumber=nil, sitenumber=nil, vulshighnumber=nil, vulsmiddlenumber=nil, vulslownumber=nil, vulsnoticenumber=nil, pagecount=nil, sites=nil, impactsites=nil, requestid=nil)
605
+ @ImpactSiteNumber = impactsitenumber
606
+ @SiteNumber = sitenumber
607
+ @VulsHighNumber = vulshighnumber
608
+ @VulsMiddleNumber = vulsmiddlenumber
609
+ @VulsLowNumber = vulslownumber
610
+ @VulsNoticeNumber = vulsnoticenumber
611
+ @PageCount = pagecount
612
+ @Sites = sites
613
+ @ImpactSites = impactsites
614
+ @RequestId = requestid
615
+ end
616
+
617
+ def deserialize(params)
618
+ @ImpactSiteNumber = params['ImpactSiteNumber']
619
+ @SiteNumber = params['SiteNumber']
620
+ @VulsHighNumber = params['VulsHighNumber']
621
+ @VulsMiddleNumber = params['VulsMiddleNumber']
622
+ @VulsLowNumber = params['VulsLowNumber']
623
+ @VulsNoticeNumber = params['VulsNoticeNumber']
624
+ @PageCount = params['PageCount']
625
+ unless params['Sites'].nil?
626
+ @Sites = []
627
+ params['Sites'].each do |i|
628
+ monitorminisite_tmp = MonitorMiniSite.new
629
+ monitorminisite_tmp.deserialize(i)
630
+ @Sites << monitorminisite_tmp
631
+ end
632
+ end
633
+ unless params['ImpactSites'].nil?
634
+ @ImpactSites = []
635
+ params['ImpactSites'].each do |i|
636
+ monitorminisite_tmp = MonitorMiniSite.new
637
+ monitorminisite_tmp.deserialize(i)
638
+ @ImpactSites << monitorminisite_tmp
639
+ end
640
+ end
641
+ @RequestId = params['RequestId']
642
+ end
643
+ end
644
+
645
+ # DescribeVulsNumberTimeline请求参数结构体
646
+ class DescribeVulsNumberTimelineRequest < TencentCloud::Common::AbstractModel
647
+
648
+
649
+ def initialize()
650
+ end
651
+
652
+ def deserialize(params)
653
+ end
654
+ end
655
+
656
+ # DescribeVulsNumberTimeline返回参数结构体
657
+ class DescribeVulsNumberTimelineResponse < TencentCloud::Common::AbstractModel
658
+ # @param TotalCount: 统计数据记录数量。
659
+ # @type TotalCount: Integer
660
+ # @param VulsTimeline: 用户漏洞数随时间变化统计数据。
661
+ # @type VulsTimeline: Array
662
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
663
+ # @type RequestId: String
664
+
665
+ attr_accessor :TotalCount, :VulsTimeline, :RequestId
666
+
667
+ def initialize(totalcount=nil, vulstimeline=nil, requestid=nil)
668
+ @TotalCount = totalcount
669
+ @VulsTimeline = vulstimeline
670
+ @RequestId = requestid
671
+ end
672
+
673
+ def deserialize(params)
674
+ @TotalCount = params['TotalCount']
675
+ unless params['VulsTimeline'].nil?
676
+ @VulsTimeline = []
677
+ params['VulsTimeline'].each do |i|
678
+ vulstimeline_tmp = VulsTimeline.new
679
+ vulstimeline_tmp.deserialize(i)
680
+ @VulsTimeline << vulstimeline_tmp
681
+ end
682
+ end
683
+ @RequestId = params['RequestId']
684
+ end
685
+ end
686
+
687
+ # DescribeVuls请求参数结构体
688
+ class DescribeVulsRequest < TencentCloud::Common::AbstractModel
689
+ # @param SiteId: 站点ID
690
+ # @type SiteId: Integer
691
+ # @param MonitorId: 监控任务ID
692
+ # @type MonitorId: Integer
693
+ # @param Filters: 过滤条件
694
+ # @type Filters: Array
695
+ # @param Offset: 偏移量,默认为0
696
+ # @type Offset: Integer
697
+ # @param Limit: 返回数量,默认为10,最大值为100
698
+ # @type Limit: Integer
699
+
700
+ attr_accessor :SiteId, :MonitorId, :Filters, :Offset, :Limit
701
+
702
+ def initialize(siteid=nil, monitorid=nil, filters=nil, offset=nil, limit=nil)
703
+ @SiteId = siteid
704
+ @MonitorId = monitorid
705
+ @Filters = filters
706
+ @Offset = offset
707
+ @Limit = limit
708
+ end
709
+
710
+ def deserialize(params)
711
+ @SiteId = params['SiteId']
712
+ @MonitorId = params['MonitorId']
713
+ unless params['Filters'].nil?
714
+ @Filters = []
715
+ params['Filters'].each do |i|
716
+ filter_tmp = Filter.new
717
+ filter_tmp.deserialize(i)
718
+ @Filters << filter_tmp
719
+ end
720
+ end
721
+ @Offset = params['Offset']
722
+ @Limit = params['Limit']
723
+ end
724
+ end
725
+
726
+ # DescribeVuls返回参数结构体
727
+ class DescribeVulsResponse < TencentCloud::Common::AbstractModel
728
+ # @param TotalCount: 漏洞数量。
729
+ # @type TotalCount: Integer
730
+ # @param Vuls: 漏洞信息列表。
731
+ # @type Vuls: Array
732
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
733
+ # @type RequestId: String
734
+
735
+ attr_accessor :TotalCount, :Vuls, :RequestId
736
+
737
+ def initialize(totalcount=nil, vuls=nil, requestid=nil)
738
+ @TotalCount = totalcount
739
+ @Vuls = vuls
740
+ @RequestId = requestid
741
+ end
742
+
743
+ def deserialize(params)
744
+ @TotalCount = params['TotalCount']
745
+ unless params['Vuls'].nil?
746
+ @Vuls = []
747
+ params['Vuls'].each do |i|
748
+ vul_tmp = Vul.new
749
+ vul_tmp.deserialize(i)
750
+ @Vuls << vul_tmp
751
+ end
752
+ end
753
+ @RequestId = params['RequestId']
754
+ end
755
+ end
756
+
757
+ # 描述键值对过滤器,用于条件过滤查询。例如过滤ID、名称、状态等
758
+
759
+ # 若存在多个Filter时,Filter间的关系为逻辑与(AND)关系。
760
+ # 若同一个Filter存在多个Values,同一Filter下Values间的关系为逻辑或(OR)关系。
761
+ class Filter < TencentCloud::Common::AbstractModel
762
+ # @param Name: 过滤键的名称。
763
+ # @type Name: String
764
+ # @param Values: 一个或者多个过滤值。
765
+ # @type Values: Array
766
+
767
+ attr_accessor :Name, :Values
768
+
769
+ def initialize(name=nil, values=nil)
770
+ @Name = name
771
+ @Values = values
772
+ end
773
+
774
+ def deserialize(params)
775
+ @Name = params['Name']
776
+ @Values = params['Values']
777
+ end
778
+ end
779
+
780
+ # 站点信息。
781
+ class MiniSite < TencentCloud::Common::AbstractModel
782
+ # @param SiteId: 站点ID。
783
+ # @type SiteId: Integer
784
+ # @param Url: 站点Url。
785
+ # @type Url: String
786
+
787
+ attr_accessor :SiteId, :Url
788
+
789
+ def initialize(siteid=nil, url=nil)
790
+ @SiteId = siteid
791
+ @Url = url
792
+ end
793
+
794
+ def deserialize(params)
795
+ @SiteId = params['SiteId']
796
+ @Url = params['Url']
797
+ end
798
+ end
799
+
800
+ # ModifyConfigAttribute请求参数结构体
801
+ class ModifyConfigAttributeRequest < TencentCloud::Common::AbstractModel
802
+ # @param NoticeLevel: 漏洞告警通知等级,4位分别代表:高危、中危、低危、提示
803
+ # @type NoticeLevel: String
804
+
805
+ attr_accessor :NoticeLevel
806
+
807
+ def initialize(noticelevel=nil)
808
+ @NoticeLevel = noticelevel
809
+ end
810
+
811
+ def deserialize(params)
812
+ @NoticeLevel = params['NoticeLevel']
813
+ end
814
+ end
815
+
816
+ # ModifyConfigAttribute返回参数结构体
817
+ class ModifyConfigAttributeResponse < TencentCloud::Common::AbstractModel
818
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
819
+ # @type RequestId: String
820
+
821
+ attr_accessor :RequestId
822
+
823
+ def initialize(requestid=nil)
824
+ @RequestId = requestid
825
+ end
826
+
827
+ def deserialize(params)
828
+ @RequestId = params['RequestId']
829
+ end
830
+ end
831
+
832
+ # ModifyMonitorAttribute请求参数结构体
833
+ class ModifyMonitorAttributeRequest < TencentCloud::Common::AbstractModel
834
+ # @param MonitorId: 监测任务ID
835
+ # @type MonitorId: Integer
836
+ # @param Urls: 站点的url列表
837
+ # @type Urls: Array
838
+ # @param Name: 任务名称
839
+ # @type Name: String
840
+ # @param ScannerType: 扫描模式,normal-正常扫描;deep-深度扫描
841
+ # @type ScannerType: String
842
+ # @param Crontab: 扫描周期,单位小时,每X小时执行一次
843
+ # @type Crontab: Integer
844
+ # @param RateLimit: 扫描速率限制,每秒发送X个HTTP请求
845
+ # @type RateLimit: Integer
846
+ # @param FirstScanStartTime: 首次扫描开始时间
847
+ # @type FirstScanStartTime: String
848
+ # @param MonitorStatus: 监测状态:1-监测中;2-暂停监测
849
+ # @type MonitorStatus: Integer
850
+
851
+ attr_accessor :MonitorId, :Urls, :Name, :ScannerType, :Crontab, :RateLimit, :FirstScanStartTime, :MonitorStatus
852
+
853
+ def initialize(monitorid=nil, urls=nil, name=nil, scannertype=nil, crontab=nil, ratelimit=nil, firstscanstarttime=nil, monitorstatus=nil)
854
+ @MonitorId = monitorid
855
+ @Urls = urls
856
+ @Name = name
857
+ @ScannerType = scannertype
858
+ @Crontab = crontab
859
+ @RateLimit = ratelimit
860
+ @FirstScanStartTime = firstscanstarttime
861
+ @MonitorStatus = monitorstatus
862
+ end
863
+
864
+ def deserialize(params)
865
+ @MonitorId = params['MonitorId']
866
+ @Urls = params['Urls']
867
+ @Name = params['Name']
868
+ @ScannerType = params['ScannerType']
869
+ @Crontab = params['Crontab']
870
+ @RateLimit = params['RateLimit']
871
+ @FirstScanStartTime = params['FirstScanStartTime']
872
+ @MonitorStatus = params['MonitorStatus']
873
+ end
874
+ end
875
+
876
+ # ModifyMonitorAttribute返回参数结构体
877
+ class ModifyMonitorAttributeResponse < TencentCloud::Common::AbstractModel
878
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
879
+ # @type RequestId: String
880
+
881
+ attr_accessor :RequestId
882
+
883
+ def initialize(requestid=nil)
884
+ @RequestId = requestid
885
+ end
886
+
887
+ def deserialize(params)
888
+ @RequestId = params['RequestId']
889
+ end
890
+ end
891
+
892
+ # ModifySiteAttribute请求参数结构体
893
+ class ModifySiteAttributeRequest < TencentCloud::Common::AbstractModel
894
+ # @param SiteId: 站点ID
895
+ # @type SiteId: Integer
896
+ # @param Name: 站点名称
897
+ # @type Name: String
898
+ # @param NeedLogin: 网站是否需要登录扫描:0-未知;-1-不需要;1-需要
899
+ # @type NeedLogin: Integer
900
+ # @param LoginCookie: 登录后的cookie
901
+ # @type LoginCookie: String
902
+ # @param LoginCheckUrl: 用于测试cookie是否有效的URL
903
+ # @type LoginCheckUrl: String
904
+ # @param LoginCheckKw: 用于测试cookie是否有效的关键字
905
+ # @type LoginCheckKw: String
906
+ # @param ScanDisallow: 禁止扫描器扫描的目录关键字
907
+ # @type ScanDisallow: String
908
+
909
+ attr_accessor :SiteId, :Name, :NeedLogin, :LoginCookie, :LoginCheckUrl, :LoginCheckKw, :ScanDisallow
910
+
911
+ def initialize(siteid=nil, name=nil, needlogin=nil, logincookie=nil, logincheckurl=nil, logincheckkw=nil, scandisallow=nil)
912
+ @SiteId = siteid
913
+ @Name = name
914
+ @NeedLogin = needlogin
915
+ @LoginCookie = logincookie
916
+ @LoginCheckUrl = logincheckurl
917
+ @LoginCheckKw = logincheckkw
918
+ @ScanDisallow = scandisallow
919
+ end
920
+
921
+ def deserialize(params)
922
+ @SiteId = params['SiteId']
923
+ @Name = params['Name']
924
+ @NeedLogin = params['NeedLogin']
925
+ @LoginCookie = params['LoginCookie']
926
+ @LoginCheckUrl = params['LoginCheckUrl']
927
+ @LoginCheckKw = params['LoginCheckKw']
928
+ @ScanDisallow = params['ScanDisallow']
929
+ end
930
+ end
931
+
932
+ # ModifySiteAttribute返回参数结构体
933
+ class ModifySiteAttributeResponse < TencentCloud::Common::AbstractModel
934
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
935
+ # @type RequestId: String
936
+
937
+ attr_accessor :RequestId
938
+
939
+ def initialize(requestid=nil)
940
+ @RequestId = requestid
941
+ end
942
+
943
+ def deserialize(params)
944
+ @RequestId = params['RequestId']
945
+ end
946
+ end
947
+
948
+ # 监控任务基础数据
949
+ class Monitor < TencentCloud::Common::AbstractModel
950
+ # @param Id: 监控任务ID。
951
+ # @type Id: Integer
952
+ # @param Name: 监控名称。
953
+ # @type Name: String
954
+ # @param MonitorStatus: 监测状态:1-监测中;2-暂停监测。
955
+ # @type MonitorStatus: Integer
956
+ # @param ScannerType: 监测模式,normal-正常扫描;deep-深度扫描。
957
+ # @type ScannerType: String
958
+ # @param Crontab: 扫描周期,单位小时,每X小时执行一次。
959
+ # @type Crontab: Integer
960
+ # @param IncludedVulsTypes: 指定扫描类型,3位数每位依次表示:扫描Web漏洞、扫描系统漏洞、扫描系统端口。
961
+ # @type IncludedVulsTypes: String
962
+ # @param RateLimit: 速率限制,每秒发送X个HTTP请求。
963
+ # @type RateLimit: Integer
964
+ # @param FirstScanStartTime: 首次扫描开始时间。
965
+ # @type FirstScanStartTime: String
966
+ # @param ScanStatus: 扫描状态:0-待扫描(无任何扫描结果);1-扫描中(正在进行扫描);2-已扫描(有扫描结果且不正在扫描);3-扫描完成待同步结果。
967
+ # @type ScanStatus: Integer
968
+ # @param LastScanFinishTime: 上一次扫描完成时间。
969
+ # @type LastScanFinishTime: String
970
+ # @param CurrentScanStartTime: 当前扫描开始时间,如扫描完成则为上一次扫描的开始时间。
971
+ # @type CurrentScanStartTime: String
972
+ # @param CreatedAt: CreatedAt。
973
+ # @type CreatedAt: String
974
+ # @param UpdatedAt: UpdatedAt。
975
+ # @type UpdatedAt: String
976
+ # @param Appid: 云用户appid。
977
+ # @type Appid: Integer
978
+ # @param ContentScanStatus: 扫描状态:0-待检测;1-检测完成
979
+ # @type ContentScanStatus: Integer
980
+
981
+ attr_accessor :Id, :Name, :MonitorStatus, :ScannerType, :Crontab, :IncludedVulsTypes, :RateLimit, :FirstScanStartTime, :ScanStatus, :LastScanFinishTime, :CurrentScanStartTime, :CreatedAt, :UpdatedAt, :Appid, :ContentScanStatus
982
+
983
+ def initialize(id=nil, name=nil, monitorstatus=nil, scannertype=nil, crontab=nil, includedvulstypes=nil, ratelimit=nil, firstscanstarttime=nil, scanstatus=nil, lastscanfinishtime=nil, currentscanstarttime=nil, createdat=nil, updatedat=nil, appid=nil, contentscanstatus=nil)
984
+ @Id = id
985
+ @Name = name
986
+ @MonitorStatus = monitorstatus
987
+ @ScannerType = scannertype
988
+ @Crontab = crontab
989
+ @IncludedVulsTypes = includedvulstypes
990
+ @RateLimit = ratelimit
991
+ @FirstScanStartTime = firstscanstarttime
992
+ @ScanStatus = scanstatus
993
+ @LastScanFinishTime = lastscanfinishtime
994
+ @CurrentScanStartTime = currentscanstarttime
995
+ @CreatedAt = createdat
996
+ @UpdatedAt = updatedat
997
+ @Appid = appid
998
+ @ContentScanStatus = contentscanstatus
999
+ end
1000
+
1001
+ def deserialize(params)
1002
+ @Id = params['Id']
1003
+ @Name = params['Name']
1004
+ @MonitorStatus = params['MonitorStatus']
1005
+ @ScannerType = params['ScannerType']
1006
+ @Crontab = params['Crontab']
1007
+ @IncludedVulsTypes = params['IncludedVulsTypes']
1008
+ @RateLimit = params['RateLimit']
1009
+ @FirstScanStartTime = params['FirstScanStartTime']
1010
+ @ScanStatus = params['ScanStatus']
1011
+ @LastScanFinishTime = params['LastScanFinishTime']
1012
+ @CurrentScanStartTime = params['CurrentScanStartTime']
1013
+ @CreatedAt = params['CreatedAt']
1014
+ @UpdatedAt = params['UpdatedAt']
1015
+ @Appid = params['Appid']
1016
+ @ContentScanStatus = params['ContentScanStatus']
1017
+ end
1018
+ end
1019
+
1020
+ # 监控任务中的站点信息。
1021
+ class MonitorMiniSite < TencentCloud::Common::AbstractModel
1022
+ # @param SiteId: 站点ID。
1023
+ # @type SiteId: Integer
1024
+ # @param Url: 站点Url。
1025
+ # @type Url: String
1026
+
1027
+ attr_accessor :SiteId, :Url
1028
+
1029
+ def initialize(siteid=nil, url=nil)
1030
+ @SiteId = siteid
1031
+ @Url = url
1032
+ end
1033
+
1034
+ def deserialize(params)
1035
+ @SiteId = params['SiteId']
1036
+ @Url = params['Url']
1037
+ end
1038
+ end
1039
+
1040
+ # 监控任务详细数据
1041
+ class MonitorsDetail < TencentCloud::Common::AbstractModel
1042
+ # @param Basic: 监控任务基础信息。
1043
+ # @type Basic: :class:`Tencentcloud::Cws.v20180312.models.Monitor`
1044
+ # @param Sites: 监控任务包含的站点列表。
1045
+ # @type Sites: Array
1046
+ # @param SiteNumber: 监控任务包含的站点列表数量。
1047
+ # @type SiteNumber: Integer
1048
+ # @param ImpactSites: 监控任务包含的受漏洞威胁的站点列表。
1049
+ # @type ImpactSites: Array
1050
+ # @param ImpactSiteNumber: 监控任务包含的受漏洞威胁的站点列表数量。
1051
+ # @type ImpactSiteNumber: Integer
1052
+ # @param VulsHighNumber: 高风险漏洞数量。
1053
+ # @type VulsHighNumber: Integer
1054
+ # @param VulsMiddleNumber: 中风险漏洞数量。
1055
+ # @type VulsMiddleNumber: Integer
1056
+ # @param VulsLowNumber: 低风险漏洞数量。
1057
+ # @type VulsLowNumber: Integer
1058
+ # @param VulsNoticeNumber: 提示数量。
1059
+ # @type VulsNoticeNumber: Integer
1060
+ # @param Progress: 监控任务包含的站点列表的平均扫描进度。
1061
+ # @type Progress: Integer
1062
+ # @param PageCount: 扫描页面总数。
1063
+ # @type PageCount: Integer
1064
+ # @param ContentNumber: 内容检测数量。
1065
+ # @type ContentNumber: Integer
1066
+
1067
+ attr_accessor :Basic, :Sites, :SiteNumber, :ImpactSites, :ImpactSiteNumber, :VulsHighNumber, :VulsMiddleNumber, :VulsLowNumber, :VulsNoticeNumber, :Progress, :PageCount, :ContentNumber
1068
+
1069
+ def initialize(basic=nil, sites=nil, sitenumber=nil, impactsites=nil, impactsitenumber=nil, vulshighnumber=nil, vulsmiddlenumber=nil, vulslownumber=nil, vulsnoticenumber=nil, progress=nil, pagecount=nil, contentnumber=nil)
1070
+ @Basic = basic
1071
+ @Sites = sites
1072
+ @SiteNumber = sitenumber
1073
+ @ImpactSites = impactsites
1074
+ @ImpactSiteNumber = impactsitenumber
1075
+ @VulsHighNumber = vulshighnumber
1076
+ @VulsMiddleNumber = vulsmiddlenumber
1077
+ @VulsLowNumber = vulslownumber
1078
+ @VulsNoticeNumber = vulsnoticenumber
1079
+ @Progress = progress
1080
+ @PageCount = pagecount
1081
+ @ContentNumber = contentnumber
1082
+ end
1083
+
1084
+ def deserialize(params)
1085
+ unless params['Basic'].nil?
1086
+ @Basic = Monitor.new
1087
+ @Basic.deserialize(params['Basic'])
1088
+ end
1089
+ unless params['Sites'].nil?
1090
+ @Sites = []
1091
+ params['Sites'].each do |i|
1092
+ monitorminisite_tmp = MonitorMiniSite.new
1093
+ monitorminisite_tmp.deserialize(i)
1094
+ @Sites << monitorminisite_tmp
1095
+ end
1096
+ end
1097
+ @SiteNumber = params['SiteNumber']
1098
+ unless params['ImpactSites'].nil?
1099
+ @ImpactSites = []
1100
+ params['ImpactSites'].each do |i|
1101
+ monitorminisite_tmp = MonitorMiniSite.new
1102
+ monitorminisite_tmp.deserialize(i)
1103
+ @ImpactSites << monitorminisite_tmp
1104
+ end
1105
+ end
1106
+ @ImpactSiteNumber = params['ImpactSiteNumber']
1107
+ @VulsHighNumber = params['VulsHighNumber']
1108
+ @VulsMiddleNumber = params['VulsMiddleNumber']
1109
+ @VulsLowNumber = params['VulsLowNumber']
1110
+ @VulsNoticeNumber = params['VulsNoticeNumber']
1111
+ @Progress = params['Progress']
1112
+ @PageCount = params['PageCount']
1113
+ @ContentNumber = params['ContentNumber']
1114
+ end
1115
+ end
1116
+
1117
+ # 站点数据
1118
+ class Site < TencentCloud::Common::AbstractModel
1119
+ # @param Id: 站点ID。
1120
+ # @type Id: Integer
1121
+ # @param MonitorId: 监控任务ID,为0时表示未加入监控任务。
1122
+ # @type MonitorId: Integer
1123
+ # @param Url: 站点url。
1124
+ # @type Url: String
1125
+ # @param Name: 站点名称。
1126
+ # @type Name: String
1127
+ # @param VerifyStatus: 验证状态:0-未验证;1-已验证;2-验证失效,待重新验证。
1128
+ # @type VerifyStatus: Integer
1129
+ # @param MonitorStatus: 监测状态:0-未监测;1-监测中;2-暂停监测。
1130
+ # @type MonitorStatus: Integer
1131
+ # @param ScanStatus: 扫描状态:0-待扫描(无任何扫描结果);1-扫描中(正在进行扫描);2-已扫描(有扫描结果且不正在扫描);3-扫描完成待同步结果。
1132
+ # @type ScanStatus: Integer
1133
+ # @param LastScanTaskId: 最近一次的AIScanner的扫描任务id,注意取消的情况。
1134
+ # @type LastScanTaskId: Integer
1135
+ # @param LastScanStartTime: 最近一次扫描开始时间。
1136
+ # @type LastScanStartTime: String
1137
+ # @param LastScanFinishTime: 最近一次扫描完成时间。
1138
+ # @type LastScanFinishTime: String
1139
+ # @param LastScanCancelTime: 最近一次取消时间,取消即使用上一次扫描结果。
1140
+ # @type LastScanCancelTime: String
1141
+ # @param LastScanPageCount: 最近一次扫描扫描的页面数。
1142
+ # @type LastScanPageCount: Integer
1143
+ # @param LastScanScannerType: normal-正常扫描;deep-深度扫描。
1144
+ # @type LastScanScannerType: String
1145
+ # @param LastScanVulsHighNum: 最近一次扫描高风险漏洞数量。
1146
+ # @type LastScanVulsHighNum: Integer
1147
+ # @param LastScanVulsMiddleNum: 最近一次扫描中风险漏洞数量。
1148
+ # @type LastScanVulsMiddleNum: Integer
1149
+ # @param LastScanVulsLowNum: 最近一次扫描低风险漏洞数量。
1150
+ # @type LastScanVulsLowNum: Integer
1151
+ # @param LastScanVulsNoticeNum: 最近一次扫描提示信息数量。
1152
+ # @type LastScanVulsNoticeNum: Integer
1153
+ # @param CreatedAt: 记录添加时间。
1154
+ # @type CreatedAt: String
1155
+ # @param UpdatedAt: 记录最近修改时间。
1156
+ # @type UpdatedAt: String
1157
+ # @param LastScanRateLimit: 速率限制,每秒发送X个HTTP请求。
1158
+ # @type LastScanRateLimit: Integer
1159
+ # @param LastScanVulsNum: 最近一次扫描漏洞总数量。
1160
+ # @type LastScanVulsNum: Integer
1161
+ # @param LastScanNoticeNum: 最近一次扫描提示总数量
1162
+ # @type LastScanNoticeNum: Integer
1163
+ # @param Progress: 扫描进度,百分比整数
1164
+ # @type Progress: Integer
1165
+ # @param Appid: 云用户appid。
1166
+ # @type Appid: Integer
1167
+ # @param Uin: 云用户标识。
1168
+ # @type Uin: String
1169
+ # @param NeedLogin: 网站是否需要登录扫描:0-未知;-1-不需要;1-需要。
1170
+ # @type NeedLogin: Integer
1171
+ # @param LoginCookie: 登录后的cookie。
1172
+ # @type LoginCookie: String
1173
+ # @param LoginCookieValid: 登录后的cookie是否有效:0-无效;1-有效。
1174
+ # @type LoginCookieValid: Integer
1175
+ # @param LoginCheckUrl: 用于测试cookie是否有效的URL。
1176
+ # @type LoginCheckUrl: String
1177
+ # @param LoginCheckKw: 用于测试cookie是否有效的关键字。
1178
+ # @type LoginCheckKw: String
1179
+ # @param ScanDisallow: 禁止扫描器扫描的目录关键字。
1180
+ # @type ScanDisallow: String
1181
+ # @param UserAgent: 访问网站的客户端标识。
1182
+ # @type UserAgent: String
1183
+ # @param ContentStatus: 内容检测状态:0-未检测;1-已检测;
1184
+ # @type ContentStatus: Integer
1185
+ # @param LastScanContentNum: 最近一次扫描内容检测数量
1186
+ # @type LastScanContentNum: Integer
1187
+
1188
+ attr_accessor :Id, :MonitorId, :Url, :Name, :VerifyStatus, :MonitorStatus, :ScanStatus, :LastScanTaskId, :LastScanStartTime, :LastScanFinishTime, :LastScanCancelTime, :LastScanPageCount, :LastScanScannerType, :LastScanVulsHighNum, :LastScanVulsMiddleNum, :LastScanVulsLowNum, :LastScanVulsNoticeNum, :CreatedAt, :UpdatedAt, :LastScanRateLimit, :LastScanVulsNum, :LastScanNoticeNum, :Progress, :Appid, :Uin, :NeedLogin, :LoginCookie, :LoginCookieValid, :LoginCheckUrl, :LoginCheckKw, :ScanDisallow, :UserAgent, :ContentStatus, :LastScanContentNum
1189
+
1190
+ def initialize(id=nil, monitorid=nil, url=nil, name=nil, verifystatus=nil, monitorstatus=nil, scanstatus=nil, lastscantaskid=nil, lastscanstarttime=nil, lastscanfinishtime=nil, lastscancanceltime=nil, lastscanpagecount=nil, lastscanscannertype=nil, lastscanvulshighnum=nil, lastscanvulsmiddlenum=nil, lastscanvulslownum=nil, lastscanvulsnoticenum=nil, createdat=nil, updatedat=nil, lastscanratelimit=nil, lastscanvulsnum=nil, lastscannoticenum=nil, progress=nil, appid=nil, uin=nil, needlogin=nil, logincookie=nil, logincookievalid=nil, logincheckurl=nil, logincheckkw=nil, scandisallow=nil, useragent=nil, contentstatus=nil, lastscancontentnum=nil)
1191
+ @Id = id
1192
+ @MonitorId = monitorid
1193
+ @Url = url
1194
+ @Name = name
1195
+ @VerifyStatus = verifystatus
1196
+ @MonitorStatus = monitorstatus
1197
+ @ScanStatus = scanstatus
1198
+ @LastScanTaskId = lastscantaskid
1199
+ @LastScanStartTime = lastscanstarttime
1200
+ @LastScanFinishTime = lastscanfinishtime
1201
+ @LastScanCancelTime = lastscancanceltime
1202
+ @LastScanPageCount = lastscanpagecount
1203
+ @LastScanScannerType = lastscanscannertype
1204
+ @LastScanVulsHighNum = lastscanvulshighnum
1205
+ @LastScanVulsMiddleNum = lastscanvulsmiddlenum
1206
+ @LastScanVulsLowNum = lastscanvulslownum
1207
+ @LastScanVulsNoticeNum = lastscanvulsnoticenum
1208
+ @CreatedAt = createdat
1209
+ @UpdatedAt = updatedat
1210
+ @LastScanRateLimit = lastscanratelimit
1211
+ @LastScanVulsNum = lastscanvulsnum
1212
+ @LastScanNoticeNum = lastscannoticenum
1213
+ @Progress = progress
1214
+ @Appid = appid
1215
+ @Uin = uin
1216
+ @NeedLogin = needlogin
1217
+ @LoginCookie = logincookie
1218
+ @LoginCookieValid = logincookievalid
1219
+ @LoginCheckUrl = logincheckurl
1220
+ @LoginCheckKw = logincheckkw
1221
+ @ScanDisallow = scandisallow
1222
+ @UserAgent = useragent
1223
+ @ContentStatus = contentstatus
1224
+ @LastScanContentNum = lastscancontentnum
1225
+ end
1226
+
1227
+ def deserialize(params)
1228
+ @Id = params['Id']
1229
+ @MonitorId = params['MonitorId']
1230
+ @Url = params['Url']
1231
+ @Name = params['Name']
1232
+ @VerifyStatus = params['VerifyStatus']
1233
+ @MonitorStatus = params['MonitorStatus']
1234
+ @ScanStatus = params['ScanStatus']
1235
+ @LastScanTaskId = params['LastScanTaskId']
1236
+ @LastScanStartTime = params['LastScanStartTime']
1237
+ @LastScanFinishTime = params['LastScanFinishTime']
1238
+ @LastScanCancelTime = params['LastScanCancelTime']
1239
+ @LastScanPageCount = params['LastScanPageCount']
1240
+ @LastScanScannerType = params['LastScanScannerType']
1241
+ @LastScanVulsHighNum = params['LastScanVulsHighNum']
1242
+ @LastScanVulsMiddleNum = params['LastScanVulsMiddleNum']
1243
+ @LastScanVulsLowNum = params['LastScanVulsLowNum']
1244
+ @LastScanVulsNoticeNum = params['LastScanVulsNoticeNum']
1245
+ @CreatedAt = params['CreatedAt']
1246
+ @UpdatedAt = params['UpdatedAt']
1247
+ @LastScanRateLimit = params['LastScanRateLimit']
1248
+ @LastScanVulsNum = params['LastScanVulsNum']
1249
+ @LastScanNoticeNum = params['LastScanNoticeNum']
1250
+ @Progress = params['Progress']
1251
+ @Appid = params['Appid']
1252
+ @Uin = params['Uin']
1253
+ @NeedLogin = params['NeedLogin']
1254
+ @LoginCookie = params['LoginCookie']
1255
+ @LoginCookieValid = params['LoginCookieValid']
1256
+ @LoginCheckUrl = params['LoginCheckUrl']
1257
+ @LoginCheckKw = params['LoginCheckKw']
1258
+ @ScanDisallow = params['ScanDisallow']
1259
+ @UserAgent = params['UserAgent']
1260
+ @ContentStatus = params['ContentStatus']
1261
+ @LastScanContentNum = params['LastScanContentNum']
1262
+ end
1263
+ end
1264
+
1265
+ # 站点验证数据
1266
+ class SitesVerification < TencentCloud::Common::AbstractModel
1267
+ # @param Domain: 根域名。
1268
+ # @type Domain: String
1269
+ # @param TxtName: txt解析域名验证的name。
1270
+ # @type TxtName: String
1271
+ # @param TxtText: txt解析域名验证的text。
1272
+ # @type TxtText: String
1273
+ # @param ValidTo: 验证有效期,在此之前有效。
1274
+ # @type ValidTo: String
1275
+ # @param VerifyStatus: 验证状态:0-未验证;1-已验证;2-验证失效,待重新验证。
1276
+ # @type VerifyStatus: Integer
1277
+ # @param CreatedAt: CreatedAt。
1278
+ # @type CreatedAt: String
1279
+ # @param UpdatedAt: UpdatedAt。
1280
+ # @type UpdatedAt: String
1281
+ # @param Id: ID。
1282
+ # @type Id: Integer
1283
+ # @param Appid: 云用户appid
1284
+ # @type Appid: Integer
1285
+ # @param VerifyUrl: 用于验证站点的url,即访问该url获取验证数据。
1286
+ # @type VerifyUrl: String
1287
+ # @param VerifyFileUrl: 获取验证验证文件的url。
1288
+ # @type VerifyFileUrl: String
1289
+
1290
+ attr_accessor :Domain, :TxtName, :TxtText, :ValidTo, :VerifyStatus, :CreatedAt, :UpdatedAt, :Id, :Appid, :VerifyUrl, :VerifyFileUrl
1291
+
1292
+ def initialize(domain=nil, txtname=nil, txttext=nil, validto=nil, verifystatus=nil, createdat=nil, updatedat=nil, id=nil, appid=nil, verifyurl=nil, verifyfileurl=nil)
1293
+ @Domain = domain
1294
+ @TxtName = txtname
1295
+ @TxtText = txttext
1296
+ @ValidTo = validto
1297
+ @VerifyStatus = verifystatus
1298
+ @CreatedAt = createdat
1299
+ @UpdatedAt = updatedat
1300
+ @Id = id
1301
+ @Appid = appid
1302
+ @VerifyUrl = verifyurl
1303
+ @VerifyFileUrl = verifyfileurl
1304
+ end
1305
+
1306
+ def deserialize(params)
1307
+ @Domain = params['Domain']
1308
+ @TxtName = params['TxtName']
1309
+ @TxtText = params['TxtText']
1310
+ @ValidTo = params['ValidTo']
1311
+ @VerifyStatus = params['VerifyStatus']
1312
+ @CreatedAt = params['CreatedAt']
1313
+ @UpdatedAt = params['UpdatedAt']
1314
+ @Id = params['Id']
1315
+ @Appid = params['Appid']
1316
+ @VerifyUrl = params['VerifyUrl']
1317
+ @VerifyFileUrl = params['VerifyFileUrl']
1318
+ end
1319
+ end
1320
+
1321
+ # VerifySites请求参数结构体
1322
+ class VerifySitesRequest < TencentCloud::Common::AbstractModel
1323
+ # @param Urls: 站点的url列表
1324
+ # @type Urls: Array
1325
+
1326
+ attr_accessor :Urls
1327
+
1328
+ def initialize(urls=nil)
1329
+ @Urls = urls
1330
+ end
1331
+
1332
+ def deserialize(params)
1333
+ @Urls = params['Urls']
1334
+ end
1335
+ end
1336
+
1337
+ # VerifySites返回参数结构体
1338
+ class VerifySitesResponse < TencentCloud::Common::AbstractModel
1339
+ # @param SuccessNumber: 验证成功的根域名数量。
1340
+ # @type SuccessNumber: Integer
1341
+ # @param FailNumber: 验证失败的根域名数量。
1342
+ # @type FailNumber: Integer
1343
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1344
+ # @type RequestId: String
1345
+
1346
+ attr_accessor :SuccessNumber, :FailNumber, :RequestId
1347
+
1348
+ def initialize(successnumber=nil, failnumber=nil, requestid=nil)
1349
+ @SuccessNumber = successnumber
1350
+ @FailNumber = failnumber
1351
+ @RequestId = requestid
1352
+ end
1353
+
1354
+ def deserialize(params)
1355
+ @SuccessNumber = params['SuccessNumber']
1356
+ @FailNumber = params['FailNumber']
1357
+ @RequestId = params['RequestId']
1358
+ end
1359
+ end
1360
+
1361
+ # 漏洞数据
1362
+ class Vul < TencentCloud::Common::AbstractModel
1363
+ # @param Id: 漏洞ID。
1364
+ # @type Id: Integer
1365
+ # @param SiteId: 站点ID。
1366
+ # @type SiteId: Integer
1367
+ # @param TaskId: 扫描引擎的扫描任务ID。
1368
+ # @type TaskId: Integer
1369
+ # @param Level: 漏洞级别:high、middle、low、notice。
1370
+ # @type Level: String
1371
+ # @param Name: 漏洞名称。
1372
+ # @type Name: String
1373
+ # @param Url: 出现漏洞的url。
1374
+ # @type Url: String
1375
+ # @param Html: 网址/细节。
1376
+ # @type Html: String
1377
+ # @param Nickname: 漏洞类型。
1378
+ # @type Nickname: String
1379
+ # @param Harm: 危害说明。
1380
+ # @type Harm: String
1381
+ # @param Describe: 漏洞描述。
1382
+ # @type Describe: String
1383
+ # @param Solution: 解决方案。
1384
+ # @type Solution: String
1385
+ # @param From: 漏洞参考。
1386
+ # @type From: String
1387
+ # @param Parameter: 漏洞通过该参数攻击。
1388
+ # @type Parameter: String
1389
+ # @param CreatedAt: CreatedAt。
1390
+ # @type CreatedAt: String
1391
+ # @param UpdatedAt: UpdatedAt。
1392
+ # @type UpdatedAt: String
1393
+ # @param IsReported: 是否已经添加误报,0-否,1-是。
1394
+ # @type IsReported: Integer
1395
+ # @param Appid: 云用户appid。
1396
+ # @type Appid: Integer
1397
+ # @param Uin: 云用户标识。
1398
+ # @type Uin: String
1399
+
1400
+ attr_accessor :Id, :SiteId, :TaskId, :Level, :Name, :Url, :Html, :Nickname, :Harm, :Describe, :Solution, :From, :Parameter, :CreatedAt, :UpdatedAt, :IsReported, :Appid, :Uin
1401
+
1402
+ def initialize(id=nil, siteid=nil, taskid=nil, level=nil, name=nil, url=nil, html=nil, nickname=nil, harm=nil, describe=nil, solution=nil, from=nil, parameter=nil, createdat=nil, updatedat=nil, isreported=nil, appid=nil, uin=nil)
1403
+ @Id = id
1404
+ @SiteId = siteid
1405
+ @TaskId = taskid
1406
+ @Level = level
1407
+ @Name = name
1408
+ @Url = url
1409
+ @Html = html
1410
+ @Nickname = nickname
1411
+ @Harm = harm
1412
+ @Describe = describe
1413
+ @Solution = solution
1414
+ @From = from
1415
+ @Parameter = parameter
1416
+ @CreatedAt = createdat
1417
+ @UpdatedAt = updatedat
1418
+ @IsReported = isreported
1419
+ @Appid = appid
1420
+ @Uin = uin
1421
+ end
1422
+
1423
+ def deserialize(params)
1424
+ @Id = params['Id']
1425
+ @SiteId = params['SiteId']
1426
+ @TaskId = params['TaskId']
1427
+ @Level = params['Level']
1428
+ @Name = params['Name']
1429
+ @Url = params['Url']
1430
+ @Html = params['Html']
1431
+ @Nickname = params['Nickname']
1432
+ @Harm = params['Harm']
1433
+ @Describe = params['Describe']
1434
+ @Solution = params['Solution']
1435
+ @From = params['From']
1436
+ @Parameter = params['Parameter']
1437
+ @CreatedAt = params['CreatedAt']
1438
+ @UpdatedAt = params['UpdatedAt']
1439
+ @IsReported = params['IsReported']
1440
+ @Appid = params['Appid']
1441
+ @Uin = params['Uin']
1442
+ end
1443
+ end
1444
+
1445
+ # 用户漏洞数随时间变化统计数据
1446
+ class VulsTimeline < TencentCloud::Common::AbstractModel
1447
+ # @param Id: ID。
1448
+ # @type Id: Integer
1449
+ # @param Appid: 云用户appid。
1450
+ # @type Appid: Integer
1451
+ # @param Date: 日期。
1452
+ # @type Date: String
1453
+ # @param PageCount: 扫描页面总数量。
1454
+ # @type PageCount: Integer
1455
+ # @param SiteNum: 已验证网站总数量。
1456
+ # @type SiteNum: Integer
1457
+ # @param ImpactSiteNum: 受影响的网站总数量。
1458
+ # @type ImpactSiteNum: Integer
1459
+ # @param VulsHighNum: 高危漏洞总数量。
1460
+ # @type VulsHighNum: Integer
1461
+ # @param VulsMiddleNum: 中危漏洞总数量。
1462
+ # @type VulsMiddleNum: Integer
1463
+ # @param VulsLowNum: 低危漏洞总数量。
1464
+ # @type VulsLowNum: Integer
1465
+ # @param VulsNoticeNum: 风险提示总数量
1466
+ # @type VulsNoticeNum: Integer
1467
+ # @param CreatedAt: 记录添加时间。
1468
+ # @type CreatedAt: String
1469
+ # @param UpdatedAt: 记录最近修改时间。
1470
+ # @type UpdatedAt: String
1471
+
1472
+ attr_accessor :Id, :Appid, :Date, :PageCount, :SiteNum, :ImpactSiteNum, :VulsHighNum, :VulsMiddleNum, :VulsLowNum, :VulsNoticeNum, :CreatedAt, :UpdatedAt
1473
+
1474
+ def initialize(id=nil, appid=nil, date=nil, pagecount=nil, sitenum=nil, impactsitenum=nil, vulshighnum=nil, vulsmiddlenum=nil, vulslownum=nil, vulsnoticenum=nil, createdat=nil, updatedat=nil)
1475
+ @Id = id
1476
+ @Appid = appid
1477
+ @Date = date
1478
+ @PageCount = pagecount
1479
+ @SiteNum = sitenum
1480
+ @ImpactSiteNum = impactsitenum
1481
+ @VulsHighNum = vulshighnum
1482
+ @VulsMiddleNum = vulsmiddlenum
1483
+ @VulsLowNum = vulslownum
1484
+ @VulsNoticeNum = vulsnoticenum
1485
+ @CreatedAt = createdat
1486
+ @UpdatedAt = updatedat
1487
+ end
1488
+
1489
+ def deserialize(params)
1490
+ @Id = params['Id']
1491
+ @Appid = params['Appid']
1492
+ @Date = params['Date']
1493
+ @PageCount = params['PageCount']
1494
+ @SiteNum = params['SiteNum']
1495
+ @ImpactSiteNum = params['ImpactSiteNum']
1496
+ @VulsHighNum = params['VulsHighNum']
1497
+ @VulsMiddleNum = params['VulsMiddleNum']
1498
+ @VulsLowNum = params['VulsLowNum']
1499
+ @VulsNoticeNum = params['VulsNoticeNum']
1500
+ @CreatedAt = params['CreatedAt']
1501
+ @UpdatedAt = params['UpdatedAt']
1502
+ end
1503
+ end
1504
+
1505
+ end
1506
+ end
1507
+ end
1508
+