tencentcloud-sdk-ms 1.0.200

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,1782 @@
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 Ms
19
+ module V20180408
20
+ # 广告信息
21
+ class AdInfo < TencentCloud::Common::AbstractModel
22
+ # @param Spots: 插播广告列表
23
+ # @type Spots: Array
24
+ # @param BoutiqueRecommands: 精品推荐广告列表
25
+ # @type BoutiqueRecommands: Array
26
+ # @param FloatWindowses: 悬浮窗广告列表
27
+ # @type FloatWindowses: Array
28
+ # @param Banners: banner广告列表
29
+ # @type Banners: Array
30
+ # @param IntegralWalls: 积分墙广告列表
31
+ # @type IntegralWalls: Array
32
+ # @param NotifyBars: 通知栏广告列表
33
+ # @type NotifyBars: Array
34
+
35
+ attr_accessor :Spots, :BoutiqueRecommands, :FloatWindowses, :Banners, :IntegralWalls, :NotifyBars
36
+
37
+ def initialize(spots=nil, boutiquerecommands=nil, floatwindowses=nil, banners=nil, integralwalls=nil, notifybars=nil)
38
+ @Spots = spots
39
+ @BoutiqueRecommands = boutiquerecommands
40
+ @FloatWindowses = floatwindowses
41
+ @Banners = banners
42
+ @IntegralWalls = integralwalls
43
+ @NotifyBars = notifybars
44
+ end
45
+
46
+ def deserialize(params)
47
+ unless params['Spots'].nil?
48
+ @Spots = []
49
+ params['Spots'].each do |i|
50
+ plugininfo_tmp = PluginInfo.new
51
+ plugininfo_tmp.deserialize(i)
52
+ @Spots << plugininfo_tmp
53
+ end
54
+ end
55
+ unless params['BoutiqueRecommands'].nil?
56
+ @BoutiqueRecommands = []
57
+ params['BoutiqueRecommands'].each do |i|
58
+ plugininfo_tmp = PluginInfo.new
59
+ plugininfo_tmp.deserialize(i)
60
+ @BoutiqueRecommands << plugininfo_tmp
61
+ end
62
+ end
63
+ unless params['FloatWindowses'].nil?
64
+ @FloatWindowses = []
65
+ params['FloatWindowses'].each do |i|
66
+ plugininfo_tmp = PluginInfo.new
67
+ plugininfo_tmp.deserialize(i)
68
+ @FloatWindowses << plugininfo_tmp
69
+ end
70
+ end
71
+ unless params['Banners'].nil?
72
+ @Banners = []
73
+ params['Banners'].each do |i|
74
+ plugininfo_tmp = PluginInfo.new
75
+ plugininfo_tmp.deserialize(i)
76
+ @Banners << plugininfo_tmp
77
+ end
78
+ end
79
+ unless params['IntegralWalls'].nil?
80
+ @IntegralWalls = []
81
+ params['IntegralWalls'].each do |i|
82
+ plugininfo_tmp = PluginInfo.new
83
+ plugininfo_tmp.deserialize(i)
84
+ @IntegralWalls << plugininfo_tmp
85
+ end
86
+ end
87
+ unless params['NotifyBars'].nil?
88
+ @NotifyBars = []
89
+ params['NotifyBars'].each do |i|
90
+ plugininfo_tmp = PluginInfo.new
91
+ plugininfo_tmp.deserialize(i)
92
+ @NotifyBars << plugininfo_tmp
93
+ end
94
+ end
95
+ end
96
+ end
97
+
98
+ # app的详细基础信息
99
+ class AppDetailInfo < TencentCloud::Common::AbstractModel
100
+ # @param AppName: app的名称
101
+ # @type AppName: String
102
+ # @param AppPkgName: app的包名
103
+ # @type AppPkgName: String
104
+ # @param AppVersion: app的版本号
105
+ # @type AppVersion: String
106
+ # @param AppSize: app的大小
107
+ # @type AppSize: Integer
108
+ # @param AppMd5: app的md5
109
+ # @type AppMd5: String
110
+ # @param AppIconUrl: app的图标url
111
+ # @type AppIconUrl: String
112
+ # @param FileName: app的文件名称
113
+ # @type FileName: String
114
+
115
+ attr_accessor :AppName, :AppPkgName, :AppVersion, :AppSize, :AppMd5, :AppIconUrl, :FileName
116
+
117
+ def initialize(appname=nil, apppkgname=nil, appversion=nil, appsize=nil, appmd5=nil, appiconurl=nil, filename=nil)
118
+ @AppName = appname
119
+ @AppPkgName = apppkgname
120
+ @AppVersion = appversion
121
+ @AppSize = appsize
122
+ @AppMd5 = appmd5
123
+ @AppIconUrl = appiconurl
124
+ @FileName = filename
125
+ end
126
+
127
+ def deserialize(params)
128
+ @AppName = params['AppName']
129
+ @AppPkgName = params['AppPkgName']
130
+ @AppVersion = params['AppVersion']
131
+ @AppSize = params['AppSize']
132
+ @AppMd5 = params['AppMd5']
133
+ @AppIconUrl = params['AppIconUrl']
134
+ @FileName = params['FileName']
135
+ end
136
+ end
137
+
138
+ # 提交的app基本信息
139
+ class AppInfo < TencentCloud::Common::AbstractModel
140
+ # @param AppUrl: app的url,必须保证不用权限校验就可以下载
141
+ # @type AppUrl: String
142
+ # @param AppMd5: app的md5,需要正确传递
143
+ # @type AppMd5: String
144
+ # @param AppSize: app的大小
145
+ # @type AppSize: Integer
146
+ # @param FileName: app的文件名
147
+ # @type FileName: String
148
+ # @param AppPkgName: app的包名,需要正确的传递此字段
149
+ # @type AppPkgName: String
150
+ # @param AppVersion: app的版本号
151
+ # @type AppVersion: String
152
+ # @param AppIconUrl: app的图标url
153
+ # @type AppIconUrl: String
154
+ # @param AppName: app的名称
155
+ # @type AppName: String
156
+
157
+ attr_accessor :AppUrl, :AppMd5, :AppSize, :FileName, :AppPkgName, :AppVersion, :AppIconUrl, :AppName
158
+
159
+ def initialize(appurl=nil, appmd5=nil, appsize=nil, filename=nil, apppkgname=nil, appversion=nil, appiconurl=nil, appname=nil)
160
+ @AppUrl = appurl
161
+ @AppMd5 = appmd5
162
+ @AppSize = appsize
163
+ @FileName = filename
164
+ @AppPkgName = apppkgname
165
+ @AppVersion = appversion
166
+ @AppIconUrl = appiconurl
167
+ @AppName = appname
168
+ end
169
+
170
+ def deserialize(params)
171
+ @AppUrl = params['AppUrl']
172
+ @AppMd5 = params['AppMd5']
173
+ @AppSize = params['AppSize']
174
+ @FileName = params['FileName']
175
+ @AppPkgName = params['AppPkgName']
176
+ @AppVersion = params['AppVersion']
177
+ @AppIconUrl = params['AppIconUrl']
178
+ @AppName = params['AppName']
179
+ end
180
+ end
181
+
182
+ # 扫描后app的信息,包含基本信息和扫描状态信息
183
+ class AppScanSet < TencentCloud::Common::AbstractModel
184
+ # @param ItemId: 任务唯一标识
185
+ # @type ItemId: String
186
+ # @param AppName: app的名称
187
+ # @type AppName: String
188
+ # @param AppPkgName: app的包名
189
+ # @type AppPkgName: String
190
+ # @param AppVersion: app的版本号
191
+ # @type AppVersion: String
192
+ # @param AppMd5: app的md5
193
+ # @type AppMd5: String
194
+ # @param AppSize: app的大小
195
+ # @type AppSize: Integer
196
+ # @param ScanCode: 扫描结果返回码
197
+ # @type ScanCode: Integer
198
+ # @param TaskStatus: 任务状态: 1-已完成,2-处理中,3-处理出错,4-处理超时
199
+ # @type TaskStatus: Integer
200
+ # @param TaskTime: 提交扫描时间
201
+ # @type TaskTime: Integer
202
+ # @param AppIconUrl: app的图标url
203
+ # @type AppIconUrl: String
204
+ # @param AppSid: 标识唯一该app,主要用于删除
205
+ # @type AppSid: String
206
+ # @param SafeType: 安全类型:1-安全软件,2-风险软件,3病毒软件
207
+ # @type SafeType: Integer
208
+ # @param VulCount: 漏洞个数
209
+ # @type VulCount: Integer
210
+
211
+ attr_accessor :ItemId, :AppName, :AppPkgName, :AppVersion, :AppMd5, :AppSize, :ScanCode, :TaskStatus, :TaskTime, :AppIconUrl, :AppSid, :SafeType, :VulCount
212
+
213
+ def initialize(itemid=nil, appname=nil, apppkgname=nil, appversion=nil, appmd5=nil, appsize=nil, scancode=nil, taskstatus=nil, tasktime=nil, appiconurl=nil, appsid=nil, safetype=nil, vulcount=nil)
214
+ @ItemId = itemid
215
+ @AppName = appname
216
+ @AppPkgName = apppkgname
217
+ @AppVersion = appversion
218
+ @AppMd5 = appmd5
219
+ @AppSize = appsize
220
+ @ScanCode = scancode
221
+ @TaskStatus = taskstatus
222
+ @TaskTime = tasktime
223
+ @AppIconUrl = appiconurl
224
+ @AppSid = appsid
225
+ @SafeType = safetype
226
+ @VulCount = vulcount
227
+ end
228
+
229
+ def deserialize(params)
230
+ @ItemId = params['ItemId']
231
+ @AppName = params['AppName']
232
+ @AppPkgName = params['AppPkgName']
233
+ @AppVersion = params['AppVersion']
234
+ @AppMd5 = params['AppMd5']
235
+ @AppSize = params['AppSize']
236
+ @ScanCode = params['ScanCode']
237
+ @TaskStatus = params['TaskStatus']
238
+ @TaskTime = params['TaskTime']
239
+ @AppIconUrl = params['AppIconUrl']
240
+ @AppSid = params['AppSid']
241
+ @SafeType = params['SafeType']
242
+ @VulCount = params['VulCount']
243
+ end
244
+ end
245
+
246
+ # 加固后app的信息,包含基本信息和加固信息
247
+ class AppSetInfo < TencentCloud::Common::AbstractModel
248
+ # @param ItemId: 任务唯一标识
249
+ # @type ItemId: String
250
+ # @param AppName: app的名称
251
+ # @type AppName: String
252
+ # @param AppPkgName: app的包名
253
+ # @type AppPkgName: String
254
+ # @param AppVersion: app的版本号
255
+ # @type AppVersion: String
256
+ # @param AppMd5: app的md5
257
+ # @type AppMd5: String
258
+ # @param AppSize: app的大小
259
+ # @type AppSize: Integer
260
+ # @param ServiceEdition: 加固服务版本
261
+ # @type ServiceEdition: String
262
+ # @param ShieldCode: 加固结果返回码
263
+ # @type ShieldCode: Integer
264
+ # @param AppUrl: 加固后的APP下载地址
265
+ # @type AppUrl: String
266
+ # @param TaskStatus: 任务状态: 1-已完成,2-处理中,3-处理出错,4-处理超时
267
+ # @type TaskStatus: Integer
268
+ # @param ClientIp: 请求的客户端ip
269
+ # @type ClientIp: String
270
+ # @param TaskTime: 提交加固时间
271
+ # @type TaskTime: Integer
272
+ # @param AppIconUrl: app的图标url
273
+ # @type AppIconUrl: String
274
+ # @param ShieldMd5: 加固后app的md5
275
+ # @type ShieldMd5: String
276
+ # @param ShieldSize: 加固后app的大小
277
+ # @type ShieldSize: Integer
278
+
279
+ attr_accessor :ItemId, :AppName, :AppPkgName, :AppVersion, :AppMd5, :AppSize, :ServiceEdition, :ShieldCode, :AppUrl, :TaskStatus, :ClientIp, :TaskTime, :AppIconUrl, :ShieldMd5, :ShieldSize
280
+
281
+ def initialize(itemid=nil, appname=nil, apppkgname=nil, appversion=nil, appmd5=nil, appsize=nil, serviceedition=nil, shieldcode=nil, appurl=nil, taskstatus=nil, clientip=nil, tasktime=nil, appiconurl=nil, shieldmd5=nil, shieldsize=nil)
282
+ @ItemId = itemid
283
+ @AppName = appname
284
+ @AppPkgName = apppkgname
285
+ @AppVersion = appversion
286
+ @AppMd5 = appmd5
287
+ @AppSize = appsize
288
+ @ServiceEdition = serviceedition
289
+ @ShieldCode = shieldcode
290
+ @AppUrl = appurl
291
+ @TaskStatus = taskstatus
292
+ @ClientIp = clientip
293
+ @TaskTime = tasktime
294
+ @AppIconUrl = appiconurl
295
+ @ShieldMd5 = shieldmd5
296
+ @ShieldSize = shieldsize
297
+ end
298
+
299
+ def deserialize(params)
300
+ @ItemId = params['ItemId']
301
+ @AppName = params['AppName']
302
+ @AppPkgName = params['AppPkgName']
303
+ @AppVersion = params['AppVersion']
304
+ @AppMd5 = params['AppMd5']
305
+ @AppSize = params['AppSize']
306
+ @ServiceEdition = params['ServiceEdition']
307
+ @ShieldCode = params['ShieldCode']
308
+ @AppUrl = params['AppUrl']
309
+ @TaskStatus = params['TaskStatus']
310
+ @ClientIp = params['ClientIp']
311
+ @TaskTime = params['TaskTime']
312
+ @AppIconUrl = params['AppIconUrl']
313
+ @ShieldMd5 = params['ShieldMd5']
314
+ @ShieldSize = params['ShieldSize']
315
+ end
316
+ end
317
+
318
+ # 用户绑定app的基本信息
319
+ class BindInfo < TencentCloud::Common::AbstractModel
320
+ # @param AppIconUrl: app的icon的url
321
+ # @type AppIconUrl: String
322
+ # @param AppName: app的名称
323
+ # @type AppName: String
324
+ # @param AppPkgName: app的包名
325
+ # @type AppPkgName: String
326
+
327
+ attr_accessor :AppIconUrl, :AppName, :AppPkgName
328
+
329
+ def initialize(appiconurl=nil, appname=nil, apppkgname=nil)
330
+ @AppIconUrl = appiconurl
331
+ @AppName = appname
332
+ @AppPkgName = apppkgname
333
+ end
334
+
335
+ def deserialize(params)
336
+ @AppIconUrl = params['AppIconUrl']
337
+ @AppName = params['AppName']
338
+ @AppPkgName = params['AppPkgName']
339
+ end
340
+ end
341
+
342
+ # CreateBindInstance请求参数结构体
343
+ class CreateBindInstanceRequest < TencentCloud::Common::AbstractModel
344
+ # @param ResourceId: 资源id,全局唯一
345
+ # @type ResourceId: String
346
+ # @param AppIconUrl: app的icon的url
347
+ # @type AppIconUrl: String
348
+ # @param AppName: app的名称
349
+ # @type AppName: String
350
+ # @param AppPkgName: app的包名
351
+ # @type AppPkgName: String
352
+
353
+ attr_accessor :ResourceId, :AppIconUrl, :AppName, :AppPkgName
354
+
355
+ def initialize(resourceid=nil, appiconurl=nil, appname=nil, apppkgname=nil)
356
+ @ResourceId = resourceid
357
+ @AppIconUrl = appiconurl
358
+ @AppName = appname
359
+ @AppPkgName = apppkgname
360
+ end
361
+
362
+ def deserialize(params)
363
+ @ResourceId = params['ResourceId']
364
+ @AppIconUrl = params['AppIconUrl']
365
+ @AppName = params['AppName']
366
+ @AppPkgName = params['AppPkgName']
367
+ end
368
+ end
369
+
370
+ # CreateBindInstance返回参数结构体
371
+ class CreateBindInstanceResponse < TencentCloud::Common::AbstractModel
372
+ # @param Progress: 任务状态: 1-已完成,2-处理中,3-处理出错,4-处理超时
373
+ # @type Progress: Integer
374
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
375
+ # @type RequestId: String
376
+
377
+ attr_accessor :Progress, :RequestId
378
+
379
+ def initialize(progress=nil, requestid=nil)
380
+ @Progress = progress
381
+ @RequestId = requestid
382
+ end
383
+
384
+ def deserialize(params)
385
+ @Progress = params['Progress']
386
+ @RequestId = params['RequestId']
387
+ end
388
+ end
389
+
390
+ # CreateCosSecKeyInstance请求参数结构体
391
+ class CreateCosSecKeyInstanceRequest < TencentCloud::Common::AbstractModel
392
+ # @param CosRegion: 地域信息,例如广州:ap-guangzhou,上海:ap-shanghai,默认为广州。
393
+ # @type CosRegion: String
394
+ # @param Duration: 密钥有效时间,默认为1小时。
395
+ # @type Duration: Integer
396
+
397
+ attr_accessor :CosRegion, :Duration
398
+
399
+ def initialize(cosregion=nil, duration=nil)
400
+ @CosRegion = cosregion
401
+ @Duration = duration
402
+ end
403
+
404
+ def deserialize(params)
405
+ @CosRegion = params['CosRegion']
406
+ @Duration = params['Duration']
407
+ end
408
+ end
409
+
410
+ # CreateCosSecKeyInstance返回参数结构体
411
+ class CreateCosSecKeyInstanceResponse < TencentCloud::Common::AbstractModel
412
+ # @param CosAppid: COS密钥对应的AppId
413
+ # @type CosAppid: Integer
414
+ # @param CosBucket: COS密钥对应的存储桶名
415
+ # @type CosBucket: String
416
+ # @param CosRegion: 存储桶对应的地域
417
+ # @type CosRegion: String
418
+ # @param ExpireTime: 密钥过期时间
419
+ # @type ExpireTime: Integer
420
+ # @param CosId: 密钥ID信息
421
+ # @type CosId: String
422
+ # @param CosKey: 密钥KEY信息
423
+ # @type CosKey: String
424
+ # @param CosTocken: 密钥TOCKEN信息
425
+ # @type CosTocken: String
426
+ # @param CosPrefix: 密钥可访问的文件前缀人。例如:CosPrefix=test/123/666,则该密钥只能操作test/123/666为前缀的文件,例如test/123/666/1.txt
427
+ # @type CosPrefix: String
428
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
429
+ # @type RequestId: String
430
+
431
+ attr_accessor :CosAppid, :CosBucket, :CosRegion, :ExpireTime, :CosId, :CosKey, :CosTocken, :CosPrefix, :RequestId
432
+
433
+ def initialize(cosappid=nil, cosbucket=nil, cosregion=nil, expiretime=nil, cosid=nil, coskey=nil, costocken=nil, cosprefix=nil, requestid=nil)
434
+ @CosAppid = cosappid
435
+ @CosBucket = cosbucket
436
+ @CosRegion = cosregion
437
+ @ExpireTime = expiretime
438
+ @CosId = cosid
439
+ @CosKey = coskey
440
+ @CosTocken = costocken
441
+ @CosPrefix = cosprefix
442
+ @RequestId = requestid
443
+ end
444
+
445
+ def deserialize(params)
446
+ @CosAppid = params['CosAppid']
447
+ @CosBucket = params['CosBucket']
448
+ @CosRegion = params['CosRegion']
449
+ @ExpireTime = params['ExpireTime']
450
+ @CosId = params['CosId']
451
+ @CosKey = params['CosKey']
452
+ @CosTocken = params['CosTocken']
453
+ @CosPrefix = params['CosPrefix']
454
+ @RequestId = params['RequestId']
455
+ end
456
+ end
457
+
458
+ # CreateResourceInstances请求参数结构体
459
+ class CreateResourceInstancesRequest < TencentCloud::Common::AbstractModel
460
+ # @param Pid: 资源类型id。13624:加固专业版。
461
+ # @type Pid: Integer
462
+ # @param TimeUnit: 时间单位,取值为d,m,y,分别表示天,月,年。
463
+ # @type TimeUnit: String
464
+ # @param TimeSpan: 时间数量。
465
+ # @type TimeSpan: Integer
466
+ # @param ResourceNum: 资源数量。
467
+ # @type ResourceNum: Integer
468
+
469
+ attr_accessor :Pid, :TimeUnit, :TimeSpan, :ResourceNum
470
+
471
+ def initialize(pid=nil, timeunit=nil, timespan=nil, resourcenum=nil)
472
+ @Pid = pid
473
+ @TimeUnit = timeunit
474
+ @TimeSpan = timespan
475
+ @ResourceNum = resourcenum
476
+ end
477
+
478
+ def deserialize(params)
479
+ @Pid = params['Pid']
480
+ @TimeUnit = params['TimeUnit']
481
+ @TimeSpan = params['TimeSpan']
482
+ @ResourceNum = params['ResourceNum']
483
+ end
484
+ end
485
+
486
+ # CreateResourceInstances返回参数结构体
487
+ class CreateResourceInstancesResponse < TencentCloud::Common::AbstractModel
488
+ # @param ResourceSet: 新创建的资源列表。
489
+ # @type ResourceSet: Array
490
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
491
+ # @type RequestId: String
492
+
493
+ attr_accessor :ResourceSet, :RequestId
494
+
495
+ def initialize(resourceset=nil, requestid=nil)
496
+ @ResourceSet = resourceset
497
+ @RequestId = requestid
498
+ end
499
+
500
+ def deserialize(params)
501
+ @ResourceSet = params['ResourceSet']
502
+ @RequestId = params['RequestId']
503
+ end
504
+ end
505
+
506
+ # CreateScanInstances请求参数结构体
507
+ class CreateScanInstancesRequest < TencentCloud::Common::AbstractModel
508
+ # @param AppInfos: 待扫描的app信息列表,一次最多提交20个
509
+ # @type AppInfos: Array
510
+ # @param ScanInfo: 扫描信息
511
+ # @type ScanInfo: :class:`Tencentcloud::Ms.v20180408.models.ScanInfo`
512
+
513
+ attr_accessor :AppInfos, :ScanInfo
514
+
515
+ def initialize(appinfos=nil, scaninfo=nil)
516
+ @AppInfos = appinfos
517
+ @ScanInfo = scaninfo
518
+ end
519
+
520
+ def deserialize(params)
521
+ unless params['AppInfos'].nil?
522
+ @AppInfos = []
523
+ params['AppInfos'].each do |i|
524
+ appinfo_tmp = AppInfo.new
525
+ appinfo_tmp.deserialize(i)
526
+ @AppInfos << appinfo_tmp
527
+ end
528
+ end
529
+ unless params['ScanInfo'].nil?
530
+ @ScanInfo = ScanInfo.new
531
+ @ScanInfo.deserialize(params['ScanInfo'])
532
+ end
533
+ end
534
+ end
535
+
536
+ # CreateScanInstances返回参数结构体
537
+ class CreateScanInstancesResponse < TencentCloud::Common::AbstractModel
538
+ # @param ItemId: 任务唯一标识
539
+ # @type ItemId: String
540
+ # @param Progress: 任务状态: 1-已完成,2-处理中,3-处理出错,4-处理超时
541
+ # @type Progress: Integer
542
+ # @param AppMd5s: 提交成功的app的md5集合
543
+ # @type AppMd5s: Array
544
+ # @param LimitCount: 剩余可用次数
545
+ # @type LimitCount: Integer
546
+ # @param LimitTime: 到期时间
547
+ # @type LimitTime: Integer
548
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
549
+ # @type RequestId: String
550
+
551
+ attr_accessor :ItemId, :Progress, :AppMd5s, :LimitCount, :LimitTime, :RequestId
552
+
553
+ def initialize(itemid=nil, progress=nil, appmd5s=nil, limitcount=nil, limittime=nil, requestid=nil)
554
+ @ItemId = itemid
555
+ @Progress = progress
556
+ @AppMd5s = appmd5s
557
+ @LimitCount = limitcount
558
+ @LimitTime = limittime
559
+ @RequestId = requestid
560
+ end
561
+
562
+ def deserialize(params)
563
+ @ItemId = params['ItemId']
564
+ @Progress = params['Progress']
565
+ @AppMd5s = params['AppMd5s']
566
+ @LimitCount = params['LimitCount']
567
+ @LimitTime = params['LimitTime']
568
+ @RequestId = params['RequestId']
569
+ end
570
+ end
571
+
572
+ # CreateShieldInstance请求参数结构体
573
+ class CreateShieldInstanceRequest < TencentCloud::Common::AbstractModel
574
+ # @param AppInfo: 待加固的应用信息
575
+ # @type AppInfo: :class:`Tencentcloud::Ms.v20180408.models.AppInfo`
576
+ # @param ServiceInfo: 加固服务信息
577
+ # @type ServiceInfo: :class:`Tencentcloud::Ms.v20180408.models.ServiceInfo`
578
+
579
+ attr_accessor :AppInfo, :ServiceInfo
580
+
581
+ def initialize(appinfo=nil, serviceinfo=nil)
582
+ @AppInfo = appinfo
583
+ @ServiceInfo = serviceinfo
584
+ end
585
+
586
+ def deserialize(params)
587
+ unless params['AppInfo'].nil?
588
+ @AppInfo = AppInfo.new
589
+ @AppInfo.deserialize(params['AppInfo'])
590
+ end
591
+ unless params['ServiceInfo'].nil?
592
+ @ServiceInfo = ServiceInfo.new
593
+ @ServiceInfo.deserialize(params['ServiceInfo'])
594
+ end
595
+ end
596
+ end
597
+
598
+ # CreateShieldInstance返回参数结构体
599
+ class CreateShieldInstanceResponse < TencentCloud::Common::AbstractModel
600
+ # @param Progress: 任务状态: 1-已完成,2-处理中,3-处理出错,4-处理超时
601
+ # @type Progress: Integer
602
+ # @param ItemId: 任务唯一标识
603
+ # @type ItemId: String
604
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
605
+ # @type RequestId: String
606
+
607
+ attr_accessor :Progress, :ItemId, :RequestId
608
+
609
+ def initialize(progress=nil, itemid=nil, requestid=nil)
610
+ @Progress = progress
611
+ @ItemId = itemid
612
+ @RequestId = requestid
613
+ end
614
+
615
+ def deserialize(params)
616
+ @Progress = params['Progress']
617
+ @ItemId = params['ItemId']
618
+ @RequestId = params['RequestId']
619
+ end
620
+ end
621
+
622
+ # CreateShieldPlanInstance请求参数结构体
623
+ class CreateShieldPlanInstanceRequest < TencentCloud::Common::AbstractModel
624
+ # @param ResourceId: 资源id
625
+ # @type ResourceId: String
626
+ # @param PlanName: 策略名称
627
+ # @type PlanName: String
628
+ # @param PlanInfo: 策略具体信息
629
+ # @type PlanInfo: :class:`Tencentcloud::Ms.v20180408.models.PlanInfo`
630
+
631
+ attr_accessor :ResourceId, :PlanName, :PlanInfo
632
+
633
+ def initialize(resourceid=nil, planname=nil, planinfo=nil)
634
+ @ResourceId = resourceid
635
+ @PlanName = planname
636
+ @PlanInfo = planinfo
637
+ end
638
+
639
+ def deserialize(params)
640
+ @ResourceId = params['ResourceId']
641
+ @PlanName = params['PlanName']
642
+ unless params['PlanInfo'].nil?
643
+ @PlanInfo = PlanInfo.new
644
+ @PlanInfo.deserialize(params['PlanInfo'])
645
+ end
646
+ end
647
+ end
648
+
649
+ # CreateShieldPlanInstance返回参数结构体
650
+ class CreateShieldPlanInstanceResponse < TencentCloud::Common::AbstractModel
651
+ # @param PlanId: 策略id
652
+ # @type PlanId: Integer
653
+ # @param Progress: 任务状态: 1-已完成,2-处理中,3-处理出错,4-处理超时
654
+ # @type Progress: Integer
655
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
656
+ # @type RequestId: String
657
+
658
+ attr_accessor :PlanId, :Progress, :RequestId
659
+
660
+ def initialize(planid=nil, progress=nil, requestid=nil)
661
+ @PlanId = planid
662
+ @Progress = progress
663
+ @RequestId = requestid
664
+ end
665
+
666
+ def deserialize(params)
667
+ @PlanId = params['PlanId']
668
+ @Progress = params['Progress']
669
+ @RequestId = params['RequestId']
670
+ end
671
+ end
672
+
673
+ # DeleteScanInstances请求参数结构体
674
+ class DeleteScanInstancesRequest < TencentCloud::Common::AbstractModel
675
+ # @param AppSids: 删除一个或多个扫描的app,最大支持20个
676
+ # @type AppSids: Array
677
+
678
+ attr_accessor :AppSids
679
+
680
+ def initialize(appsids=nil)
681
+ @AppSids = appsids
682
+ end
683
+
684
+ def deserialize(params)
685
+ @AppSids = params['AppSids']
686
+ end
687
+ end
688
+
689
+ # DeleteScanInstances返回参数结构体
690
+ class DeleteScanInstancesResponse < TencentCloud::Common::AbstractModel
691
+ # @param Progress: 任务状态: 1-已完成,2-处理中,3-处理出错,4-处理超时
692
+ # @type Progress: Integer
693
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
694
+ # @type RequestId: String
695
+
696
+ attr_accessor :Progress, :RequestId
697
+
698
+ def initialize(progress=nil, requestid=nil)
699
+ @Progress = progress
700
+ @RequestId = requestid
701
+ end
702
+
703
+ def deserialize(params)
704
+ @Progress = params['Progress']
705
+ @RequestId = params['RequestId']
706
+ end
707
+ end
708
+
709
+ # DeleteShieldInstances请求参数结构体
710
+ class DeleteShieldInstancesRequest < TencentCloud::Common::AbstractModel
711
+ # @param ItemIds: 任务唯一标识ItemId的列表
712
+ # @type ItemIds: Array
713
+
714
+ attr_accessor :ItemIds
715
+
716
+ def initialize(itemids=nil)
717
+ @ItemIds = itemids
718
+ end
719
+
720
+ def deserialize(params)
721
+ @ItemIds = params['ItemIds']
722
+ end
723
+ end
724
+
725
+ # DeleteShieldInstances返回参数结构体
726
+ class DeleteShieldInstancesResponse < TencentCloud::Common::AbstractModel
727
+ # @param Progress: 任务状态: 1-已完成,2-处理中,3-处理出错,4-处理超时
728
+ # @type Progress: Integer
729
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
730
+ # @type RequestId: String
731
+
732
+ attr_accessor :Progress, :RequestId
733
+
734
+ def initialize(progress=nil, requestid=nil)
735
+ @Progress = progress
736
+ @RequestId = requestid
737
+ end
738
+
739
+ def deserialize(params)
740
+ @Progress = params['Progress']
741
+ @RequestId = params['RequestId']
742
+ end
743
+ end
744
+
745
+ # DescribeResourceInstances请求参数结构体
746
+ class DescribeResourceInstancesRequest < TencentCloud::Common::AbstractModel
747
+ # @param Pids: 资源类别id数组,13624:加固专业版,12750:企业版。空数组表示返回全部资源。
748
+ # @type Pids: Array
749
+ # @param Filters: 支持通过资源id,pid进行查询
750
+ # @type Filters: Array
751
+ # @param Offset: 偏移量,默认为0
752
+ # @type Offset: Integer
753
+ # @param Limit: 数量限制,默认为20,最大值为100。
754
+ # @type Limit: Integer
755
+ # @param OrderField: 按某个字段排序,目前支持CreateTime、ExpireTime其中的一个排序。
756
+ # @type OrderField: String
757
+ # @param OrderDirection: 升序(asc)还是降序(desc),默认:desc。
758
+ # @type OrderDirection: String
759
+
760
+ attr_accessor :Pids, :Filters, :Offset, :Limit, :OrderField, :OrderDirection
761
+
762
+ def initialize(pids=nil, filters=nil, offset=nil, limit=nil, orderfield=nil, orderdirection=nil)
763
+ @Pids = pids
764
+ @Filters = filters
765
+ @Offset = offset
766
+ @Limit = limit
767
+ @OrderField = orderfield
768
+ @OrderDirection = orderdirection
769
+ end
770
+
771
+ def deserialize(params)
772
+ @Pids = params['Pids']
773
+ unless params['Filters'].nil?
774
+ @Filters = []
775
+ params['Filters'].each do |i|
776
+ filter_tmp = Filter.new
777
+ filter_tmp.deserialize(i)
778
+ @Filters << filter_tmp
779
+ end
780
+ end
781
+ @Offset = params['Offset']
782
+ @Limit = params['Limit']
783
+ @OrderField = params['OrderField']
784
+ @OrderDirection = params['OrderDirection']
785
+ end
786
+ end
787
+
788
+ # DescribeResourceInstances返回参数结构体
789
+ class DescribeResourceInstancesResponse < TencentCloud::Common::AbstractModel
790
+ # @param TotalCount: 符合要求的资源数量
791
+ # @type TotalCount: Integer
792
+ # @param ResourceSet: 符合要求的资源数组
793
+ # @type ResourceSet: Array
794
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
795
+ # @type RequestId: String
796
+
797
+ attr_accessor :TotalCount, :ResourceSet, :RequestId
798
+
799
+ def initialize(totalcount=nil, resourceset=nil, requestid=nil)
800
+ @TotalCount = totalcount
801
+ @ResourceSet = resourceset
802
+ @RequestId = requestid
803
+ end
804
+
805
+ def deserialize(params)
806
+ @TotalCount = params['TotalCount']
807
+ unless params['ResourceSet'].nil?
808
+ @ResourceSet = []
809
+ params['ResourceSet'].each do |i|
810
+ resourceinfo_tmp = ResourceInfo.new
811
+ resourceinfo_tmp.deserialize(i)
812
+ @ResourceSet << resourceinfo_tmp
813
+ end
814
+ end
815
+ @RequestId = params['RequestId']
816
+ end
817
+ end
818
+
819
+ # DescribeScanInstances请求参数结构体
820
+ class DescribeScanInstancesRequest < TencentCloud::Common::AbstractModel
821
+ # @param Filters: 支持通过app名称,app包名进行筛选
822
+ # @type Filters: Array
823
+ # @param Offset: 偏移量,默认为0
824
+ # @type Offset: Integer
825
+ # @param Limit: 数量限制,默认为20,最大值为100。
826
+ # @type Limit: Integer
827
+ # @param ItemIds: 可以提供ItemId数组来查询一个或者多个结果。注意不可以同时指定ItemIds和Filters。
828
+ # @type ItemIds: Array
829
+ # @param OrderField: 按某个字段排序,目前仅支持TaskTime排序。
830
+ # @type OrderField: String
831
+ # @param OrderDirection: 升序(asc)还是降序(desc),默认:desc。
832
+ # @type OrderDirection: String
833
+
834
+ attr_accessor :Filters, :Offset, :Limit, :ItemIds, :OrderField, :OrderDirection
835
+
836
+ def initialize(filters=nil, offset=nil, limit=nil, itemids=nil, orderfield=nil, orderdirection=nil)
837
+ @Filters = filters
838
+ @Offset = offset
839
+ @Limit = limit
840
+ @ItemIds = itemids
841
+ @OrderField = orderfield
842
+ @OrderDirection = orderdirection
843
+ end
844
+
845
+ def deserialize(params)
846
+ unless params['Filters'].nil?
847
+ @Filters = []
848
+ params['Filters'].each do |i|
849
+ filter_tmp = Filter.new
850
+ filter_tmp.deserialize(i)
851
+ @Filters << filter_tmp
852
+ end
853
+ end
854
+ @Offset = params['Offset']
855
+ @Limit = params['Limit']
856
+ @ItemIds = params['ItemIds']
857
+ @OrderField = params['OrderField']
858
+ @OrderDirection = params['OrderDirection']
859
+ end
860
+ end
861
+
862
+ # DescribeScanInstances返回参数结构体
863
+ class DescribeScanInstancesResponse < TencentCloud::Common::AbstractModel
864
+ # @param TotalCount: 符合要求的app数量
865
+ # @type TotalCount: Integer
866
+ # @param ScanSet: 一个关于app详细信息的结构体,主要包括app的基本信息和扫描状态信息。
867
+ # @type ScanSet: Array
868
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
869
+ # @type RequestId: String
870
+
871
+ attr_accessor :TotalCount, :ScanSet, :RequestId
872
+
873
+ def initialize(totalcount=nil, scanset=nil, requestid=nil)
874
+ @TotalCount = totalcount
875
+ @ScanSet = scanset
876
+ @RequestId = requestid
877
+ end
878
+
879
+ def deserialize(params)
880
+ @TotalCount = params['TotalCount']
881
+ unless params['ScanSet'].nil?
882
+ @ScanSet = []
883
+ params['ScanSet'].each do |i|
884
+ appscanset_tmp = AppScanSet.new
885
+ appscanset_tmp.deserialize(i)
886
+ @ScanSet << appscanset_tmp
887
+ end
888
+ end
889
+ @RequestId = params['RequestId']
890
+ end
891
+ end
892
+
893
+ # DescribeScanResults请求参数结构体
894
+ class DescribeScanResultsRequest < TencentCloud::Common::AbstractModel
895
+ # @param ItemId: 任务唯一标识
896
+ # @type ItemId: String
897
+ # @param AppMd5s: 批量查询一个或者多个app的扫描结果,如果不传表示查询该任务下所提交的所有app
898
+ # @type AppMd5s: Array
899
+
900
+ attr_accessor :ItemId, :AppMd5s
901
+
902
+ def initialize(itemid=nil, appmd5s=nil)
903
+ @ItemId = itemid
904
+ @AppMd5s = appmd5s
905
+ end
906
+
907
+ def deserialize(params)
908
+ @ItemId = params['ItemId']
909
+ @AppMd5s = params['AppMd5s']
910
+ end
911
+ end
912
+
913
+ # DescribeScanResults返回参数结构体
914
+ class DescribeScanResultsResponse < TencentCloud::Common::AbstractModel
915
+ # @param ScanSet: 批量扫描的app结果集
916
+ # @type ScanSet: Array
917
+ # @param TotalCount: 批量扫描结果的个数
918
+ # @type TotalCount: Integer
919
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
920
+ # @type RequestId: String
921
+
922
+ attr_accessor :ScanSet, :TotalCount, :RequestId
923
+
924
+ def initialize(scanset=nil, totalcount=nil, requestid=nil)
925
+ @ScanSet = scanset
926
+ @TotalCount = totalcount
927
+ @RequestId = requestid
928
+ end
929
+
930
+ def deserialize(params)
931
+ unless params['ScanSet'].nil?
932
+ @ScanSet = []
933
+ params['ScanSet'].each do |i|
934
+ scansetinfo_tmp = ScanSetInfo.new
935
+ scansetinfo_tmp.deserialize(i)
936
+ @ScanSet << scansetinfo_tmp
937
+ end
938
+ end
939
+ @TotalCount = params['TotalCount']
940
+ @RequestId = params['RequestId']
941
+ end
942
+ end
943
+
944
+ # DescribeShieldInstances请求参数结构体
945
+ class DescribeShieldInstancesRequest < TencentCloud::Common::AbstractModel
946
+ # @param Filters: 支持通过app名称,app包名,加固的服务版本,提交的渠道进行筛选。
947
+ # @type Filters: Array
948
+ # @param Offset: 偏移量,默认为0。
949
+ # @type Offset: Integer
950
+ # @param Limit: 数量限制,默认为20,最大值为100。
951
+ # @type Limit: Integer
952
+ # @param ItemIds: 可以提供ItemId数组来查询一个或者多个结果。注意不可以同时指定ItemIds和Filters。
953
+ # @type ItemIds: Array
954
+ # @param OrderField: 按某个字段排序,目前仅支持TaskTime排序。
955
+ # @type OrderField: String
956
+ # @param OrderDirection: 升序(asc)还是降序(desc),默认:desc。
957
+ # @type OrderDirection: String
958
+
959
+ attr_accessor :Filters, :Offset, :Limit, :ItemIds, :OrderField, :OrderDirection
960
+
961
+ def initialize(filters=nil, offset=nil, limit=nil, itemids=nil, orderfield=nil, orderdirection=nil)
962
+ @Filters = filters
963
+ @Offset = offset
964
+ @Limit = limit
965
+ @ItemIds = itemids
966
+ @OrderField = orderfield
967
+ @OrderDirection = orderdirection
968
+ end
969
+
970
+ def deserialize(params)
971
+ unless params['Filters'].nil?
972
+ @Filters = []
973
+ params['Filters'].each do |i|
974
+ filter_tmp = Filter.new
975
+ filter_tmp.deserialize(i)
976
+ @Filters << filter_tmp
977
+ end
978
+ end
979
+ @Offset = params['Offset']
980
+ @Limit = params['Limit']
981
+ @ItemIds = params['ItemIds']
982
+ @OrderField = params['OrderField']
983
+ @OrderDirection = params['OrderDirection']
984
+ end
985
+ end
986
+
987
+ # DescribeShieldInstances返回参数结构体
988
+ class DescribeShieldInstancesResponse < TencentCloud::Common::AbstractModel
989
+ # @param TotalCount: 符合要求的app数量
990
+ # @type TotalCount: Integer
991
+ # @param AppSet: 一个关于app详细信息的结构体,主要包括app的基本信息和加固信息。
992
+ # @type AppSet: Array
993
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
994
+ # @type RequestId: String
995
+
996
+ attr_accessor :TotalCount, :AppSet, :RequestId
997
+
998
+ def initialize(totalcount=nil, appset=nil, requestid=nil)
999
+ @TotalCount = totalcount
1000
+ @AppSet = appset
1001
+ @RequestId = requestid
1002
+ end
1003
+
1004
+ def deserialize(params)
1005
+ @TotalCount = params['TotalCount']
1006
+ unless params['AppSet'].nil?
1007
+ @AppSet = []
1008
+ params['AppSet'].each do |i|
1009
+ appsetinfo_tmp = AppSetInfo.new
1010
+ appsetinfo_tmp.deserialize(i)
1011
+ @AppSet << appsetinfo_tmp
1012
+ end
1013
+ end
1014
+ @RequestId = params['RequestId']
1015
+ end
1016
+ end
1017
+
1018
+ # DescribeShieldPlanInstance请求参数结构体
1019
+ class DescribeShieldPlanInstanceRequest < TencentCloud::Common::AbstractModel
1020
+ # @param ResourceId: 资源id
1021
+ # @type ResourceId: String
1022
+ # @param Pid: 服务类别id
1023
+ # @type Pid: Integer
1024
+
1025
+ attr_accessor :ResourceId, :Pid
1026
+
1027
+ def initialize(resourceid=nil, pid=nil)
1028
+ @ResourceId = resourceid
1029
+ @Pid = pid
1030
+ end
1031
+
1032
+ def deserialize(params)
1033
+ @ResourceId = params['ResourceId']
1034
+ @Pid = params['Pid']
1035
+ end
1036
+ end
1037
+
1038
+ # DescribeShieldPlanInstance返回参数结构体
1039
+ class DescribeShieldPlanInstanceResponse < TencentCloud::Common::AbstractModel
1040
+ # @param BindInfo: 绑定资源信息
1041
+ # @type BindInfo: :class:`Tencentcloud::Ms.v20180408.models.BindInfo`
1042
+ # @param ShieldPlanInfo: 加固策略信息
1043
+ # @type ShieldPlanInfo: :class:`Tencentcloud::Ms.v20180408.models.ShieldPlanInfo`
1044
+ # @param ResourceServiceInfo: 加固资源信息
1045
+ # @type ResourceServiceInfo: :class:`Tencentcloud::Ms.v20180408.models.ResourceServiceInfo`
1046
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1047
+ # @type RequestId: String
1048
+
1049
+ attr_accessor :BindInfo, :ShieldPlanInfo, :ResourceServiceInfo, :RequestId
1050
+
1051
+ def initialize(bindinfo=nil, shieldplaninfo=nil, resourceserviceinfo=nil, requestid=nil)
1052
+ @BindInfo = bindinfo
1053
+ @ShieldPlanInfo = shieldplaninfo
1054
+ @ResourceServiceInfo = resourceserviceinfo
1055
+ @RequestId = requestid
1056
+ end
1057
+
1058
+ def deserialize(params)
1059
+ unless params['BindInfo'].nil?
1060
+ @BindInfo = BindInfo.new
1061
+ @BindInfo.deserialize(params['BindInfo'])
1062
+ end
1063
+ unless params['ShieldPlanInfo'].nil?
1064
+ @ShieldPlanInfo = ShieldPlanInfo.new
1065
+ @ShieldPlanInfo.deserialize(params['ShieldPlanInfo'])
1066
+ end
1067
+ unless params['ResourceServiceInfo'].nil?
1068
+ @ResourceServiceInfo = ResourceServiceInfo.new
1069
+ @ResourceServiceInfo.deserialize(params['ResourceServiceInfo'])
1070
+ end
1071
+ @RequestId = params['RequestId']
1072
+ end
1073
+ end
1074
+
1075
+ # DescribeShieldResult请求参数结构体
1076
+ class DescribeShieldResultRequest < TencentCloud::Common::AbstractModel
1077
+ # @param ItemId: 任务唯一标识
1078
+ # @type ItemId: String
1079
+
1080
+ attr_accessor :ItemId
1081
+
1082
+ def initialize(itemid=nil)
1083
+ @ItemId = itemid
1084
+ end
1085
+
1086
+ def deserialize(params)
1087
+ @ItemId = params['ItemId']
1088
+ end
1089
+ end
1090
+
1091
+ # DescribeShieldResult返回参数结构体
1092
+ class DescribeShieldResultResponse < TencentCloud::Common::AbstractModel
1093
+ # @param TaskStatus: 任务状态: 0-请返回,1-已完成,2-处理中,3-处理出错,4-处理超时
1094
+ # @type TaskStatus: Integer
1095
+ # @param AppDetailInfo: app加固前的详细信息
1096
+ # @type AppDetailInfo: :class:`Tencentcloud::Ms.v20180408.models.AppDetailInfo`
1097
+ # @param ShieldInfo: app加固后的详细信息
1098
+ # @type ShieldInfo: :class:`Tencentcloud::Ms.v20180408.models.ShieldInfo`
1099
+ # @param StatusDesc: 状态描述
1100
+ # @type StatusDesc: String
1101
+ # @param StatusRef: 状态指引
1102
+ # @type StatusRef: String
1103
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1104
+ # @type RequestId: String
1105
+
1106
+ attr_accessor :TaskStatus, :AppDetailInfo, :ShieldInfo, :StatusDesc, :StatusRef, :RequestId
1107
+
1108
+ def initialize(taskstatus=nil, appdetailinfo=nil, shieldinfo=nil, statusdesc=nil, statusref=nil, requestid=nil)
1109
+ @TaskStatus = taskstatus
1110
+ @AppDetailInfo = appdetailinfo
1111
+ @ShieldInfo = shieldinfo
1112
+ @StatusDesc = statusdesc
1113
+ @StatusRef = statusref
1114
+ @RequestId = requestid
1115
+ end
1116
+
1117
+ def deserialize(params)
1118
+ @TaskStatus = params['TaskStatus']
1119
+ unless params['AppDetailInfo'].nil?
1120
+ @AppDetailInfo = AppDetailInfo.new
1121
+ @AppDetailInfo.deserialize(params['AppDetailInfo'])
1122
+ end
1123
+ unless params['ShieldInfo'].nil?
1124
+ @ShieldInfo = ShieldInfo.new
1125
+ @ShieldInfo.deserialize(params['ShieldInfo'])
1126
+ end
1127
+ @StatusDesc = params['StatusDesc']
1128
+ @StatusRef = params['StatusRef']
1129
+ @RequestId = params['RequestId']
1130
+ end
1131
+ end
1132
+
1133
+ # DescribeUserBaseInfoInstance请求参数结构体
1134
+ class DescribeUserBaseInfoInstanceRequest < TencentCloud::Common::AbstractModel
1135
+
1136
+
1137
+ def initialize()
1138
+ end
1139
+
1140
+ def deserialize(params)
1141
+ end
1142
+ end
1143
+
1144
+ # DescribeUserBaseInfoInstance返回参数结构体
1145
+ class DescribeUserBaseInfoInstanceResponse < TencentCloud::Common::AbstractModel
1146
+ # @param UserUin: 用户uin信息
1147
+ # @type UserUin: Integer
1148
+ # @param UserAppid: 用户APPID信息
1149
+ # @type UserAppid: Integer
1150
+ # @param TimeStamp: 系统时间戳
1151
+ # @type TimeStamp: Integer
1152
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1153
+ # @type RequestId: String
1154
+
1155
+ attr_accessor :UserUin, :UserAppid, :TimeStamp, :RequestId
1156
+
1157
+ def initialize(useruin=nil, userappid=nil, timestamp=nil, requestid=nil)
1158
+ @UserUin = useruin
1159
+ @UserAppid = userappid
1160
+ @TimeStamp = timestamp
1161
+ @RequestId = requestid
1162
+ end
1163
+
1164
+ def deserialize(params)
1165
+ @UserUin = params['UserUin']
1166
+ @UserAppid = params['UserAppid']
1167
+ @TimeStamp = params['TimeStamp']
1168
+ @RequestId = params['RequestId']
1169
+ end
1170
+ end
1171
+
1172
+ # 筛选数据结构
1173
+ class Filter < TencentCloud::Common::AbstractModel
1174
+ # @param Name: 需要过滤的字段
1175
+ # @type Name: String
1176
+ # @param Value: 需要过滤字段的值
1177
+ # @type Value: String
1178
+
1179
+ attr_accessor :Name, :Value
1180
+
1181
+ def initialize(name=nil, value=nil)
1182
+ @Name = name
1183
+ @Value = value
1184
+ end
1185
+
1186
+ def deserialize(params)
1187
+ @Name = params['Name']
1188
+ @Value = params['Value']
1189
+ end
1190
+ end
1191
+
1192
+ # 加固策略具体信息
1193
+ class PlanDetailInfo < TencentCloud::Common::AbstractModel
1194
+ # @param IsDefault: 默认策略,1为默认,0为非默认
1195
+ # @type IsDefault: Integer
1196
+ # @param PlanId: 策略id
1197
+ # @type PlanId: Integer
1198
+ # @param PlanName: 策略名称
1199
+ # @type PlanName: String
1200
+ # @param PlanInfo: 策略信息
1201
+ # @type PlanInfo: :class:`Tencentcloud::Ms.v20180408.models.PlanInfo`
1202
+
1203
+ attr_accessor :IsDefault, :PlanId, :PlanName, :PlanInfo
1204
+
1205
+ def initialize(isdefault=nil, planid=nil, planname=nil, planinfo=nil)
1206
+ @IsDefault = isdefault
1207
+ @PlanId = planid
1208
+ @PlanName = planname
1209
+ @PlanInfo = planinfo
1210
+ end
1211
+
1212
+ def deserialize(params)
1213
+ @IsDefault = params['IsDefault']
1214
+ @PlanId = params['PlanId']
1215
+ @PlanName = params['PlanName']
1216
+ unless params['PlanInfo'].nil?
1217
+ @PlanInfo = PlanInfo.new
1218
+ @PlanInfo.deserialize(params['PlanInfo'])
1219
+ end
1220
+ end
1221
+ end
1222
+
1223
+ # 加固策略信息
1224
+ class PlanInfo < TencentCloud::Common::AbstractModel
1225
+ # @param ApkSizeOpt: apk大小优化,0关闭,1开启
1226
+ # @type ApkSizeOpt: Integer
1227
+ # @param Dex: Dex加固,0关闭,1开启
1228
+ # @type Dex: Integer
1229
+ # @param So: So加固,0关闭,1开启
1230
+ # @type So: Integer
1231
+ # @param Bugly: 数据收集,0关闭,1开启
1232
+ # @type Bugly: Integer
1233
+ # @param AntiRepack: 防止重打包,0关闭,1开启
1234
+ # @type AntiRepack: Integer
1235
+ # @param SeperateDex: Dex分离,0关闭,1开启
1236
+ # @type SeperateDex: Integer
1237
+ # @param Db: 内存保护,0关闭,1开启
1238
+ # @type Db: Integer
1239
+ # @param DexSig: Dex签名校验,0关闭,1开启
1240
+ # @type DexSig: Integer
1241
+ # @param SoInfo: So文件信息
1242
+ # @type SoInfo: :class:`Tencentcloud::Ms.v20180408.models.SoInfo`
1243
+ # @param AntiVMP: vmp,0关闭,1开启
1244
+ # @type AntiVMP: Integer
1245
+ # @param SoType: 保护so的强度,
1246
+ # @type SoType: Array
1247
+ # @param AntiLogLeak: 防日志泄漏,0关闭,1开启
1248
+ # @type AntiLogLeak: Integer
1249
+ # @param AntiQemuRoot: root检测,0关闭,1开启
1250
+ # @type AntiQemuRoot: Integer
1251
+ # @param AntiAssets: 资源防篡改,0关闭,1开启
1252
+ # @type AntiAssets: Integer
1253
+ # @param AntiScreenshot: 防止截屏,0关闭,1开启
1254
+ # @type AntiScreenshot: Integer
1255
+ # @param AntiSSL: SSL证书防窃取,0关闭,1开启
1256
+ # @type AntiSSL: Integer
1257
+
1258
+ attr_accessor :ApkSizeOpt, :Dex, :So, :Bugly, :AntiRepack, :SeperateDex, :Db, :DexSig, :SoInfo, :AntiVMP, :SoType, :AntiLogLeak, :AntiQemuRoot, :AntiAssets, :AntiScreenshot, :AntiSSL
1259
+
1260
+ def initialize(apksizeopt=nil, dex=nil, so=nil, bugly=nil, antirepack=nil, seperatedex=nil, db=nil, dexsig=nil, soinfo=nil, antivmp=nil, sotype=nil, antilogleak=nil, antiqemuroot=nil, antiassets=nil, antiscreenshot=nil, antissl=nil)
1261
+ @ApkSizeOpt = apksizeopt
1262
+ @Dex = dex
1263
+ @So = so
1264
+ @Bugly = bugly
1265
+ @AntiRepack = antirepack
1266
+ @SeperateDex = seperatedex
1267
+ @Db = db
1268
+ @DexSig = dexsig
1269
+ @SoInfo = soinfo
1270
+ @AntiVMP = antivmp
1271
+ @SoType = sotype
1272
+ @AntiLogLeak = antilogleak
1273
+ @AntiQemuRoot = antiqemuroot
1274
+ @AntiAssets = antiassets
1275
+ @AntiScreenshot = antiscreenshot
1276
+ @AntiSSL = antissl
1277
+ end
1278
+
1279
+ def deserialize(params)
1280
+ @ApkSizeOpt = params['ApkSizeOpt']
1281
+ @Dex = params['Dex']
1282
+ @So = params['So']
1283
+ @Bugly = params['Bugly']
1284
+ @AntiRepack = params['AntiRepack']
1285
+ @SeperateDex = params['SeperateDex']
1286
+ @Db = params['Db']
1287
+ @DexSig = params['DexSig']
1288
+ unless params['SoInfo'].nil?
1289
+ @SoInfo = SoInfo.new
1290
+ @SoInfo.deserialize(params['SoInfo'])
1291
+ end
1292
+ @AntiVMP = params['AntiVMP']
1293
+ @SoType = params['SoType']
1294
+ @AntiLogLeak = params['AntiLogLeak']
1295
+ @AntiQemuRoot = params['AntiQemuRoot']
1296
+ @AntiAssets = params['AntiAssets']
1297
+ @AntiScreenshot = params['AntiScreenshot']
1298
+ @AntiSSL = params['AntiSSL']
1299
+ end
1300
+ end
1301
+
1302
+ # 插件信息
1303
+ class PluginInfo < TencentCloud::Common::AbstractModel
1304
+ # @param PluginType: 插件类型,分别为 1-通知栏广告,2-积分墙广告,3-banner广告,4- 悬浮窗图标广告,5-精品推荐列表广告, 6-插播广告
1305
+ # @type PluginType: Integer
1306
+ # @param PluginName: 插件名称
1307
+ # @type PluginName: String
1308
+ # @param PluginDesc: 插件描述
1309
+ # @type PluginDesc: String
1310
+
1311
+ attr_accessor :PluginType, :PluginName, :PluginDesc
1312
+
1313
+ def initialize(plugintype=nil, pluginname=nil, plugindesc=nil)
1314
+ @PluginType = plugintype
1315
+ @PluginName = pluginname
1316
+ @PluginDesc = plugindesc
1317
+ end
1318
+
1319
+ def deserialize(params)
1320
+ @PluginType = params['PluginType']
1321
+ @PluginName = params['PluginName']
1322
+ @PluginDesc = params['PluginDesc']
1323
+ end
1324
+ end
1325
+
1326
+ # 拉取某个用户的所有资源信息
1327
+ class ResourceInfo < TencentCloud::Common::AbstractModel
1328
+ # @param ResourceId: 用户购买的资源id,全局唯一
1329
+ # @type ResourceId: String
1330
+ # @param Pid: 资源的pid,MTP加固-12767,应用加固-12750 MTP反作弊-12766 源代码混淆-12736
1331
+ # @type Pid: Integer
1332
+ # @param CreateTime: 购买时间戳
1333
+ # @type CreateTime: Integer
1334
+ # @param ExpireTime: 到期时间戳
1335
+ # @type ExpireTime: Integer
1336
+ # @param IsBind: 0-未绑定,1-已绑定
1337
+ # @type IsBind: Integer
1338
+ # @param BindInfo: 用户绑定app的基本信息
1339
+ # @type BindInfo: :class:`Tencentcloud::Ms.v20180408.models.BindInfo`
1340
+ # @param ResourceName: 资源名称,如应用加固,漏洞扫描
1341
+ # @type ResourceName: String
1342
+
1343
+ attr_accessor :ResourceId, :Pid, :CreateTime, :ExpireTime, :IsBind, :BindInfo, :ResourceName
1344
+
1345
+ def initialize(resourceid=nil, pid=nil, createtime=nil, expiretime=nil, isbind=nil, bindinfo=nil, resourcename=nil)
1346
+ @ResourceId = resourceid
1347
+ @Pid = pid
1348
+ @CreateTime = createtime
1349
+ @ExpireTime = expiretime
1350
+ @IsBind = isbind
1351
+ @BindInfo = bindinfo
1352
+ @ResourceName = resourcename
1353
+ end
1354
+
1355
+ def deserialize(params)
1356
+ @ResourceId = params['ResourceId']
1357
+ @Pid = params['Pid']
1358
+ @CreateTime = params['CreateTime']
1359
+ @ExpireTime = params['ExpireTime']
1360
+ @IsBind = params['IsBind']
1361
+ unless params['BindInfo'].nil?
1362
+ @BindInfo = BindInfo.new
1363
+ @BindInfo.deserialize(params['BindInfo'])
1364
+ end
1365
+ @ResourceName = params['ResourceName']
1366
+ end
1367
+ end
1368
+
1369
+ # 资源服务信息
1370
+ class ResourceServiceInfo < TencentCloud::Common::AbstractModel
1371
+ # @param CreateTime: 创建时间戳
1372
+ # @type CreateTime: Integer
1373
+ # @param ExpireTime: 到期时间戳
1374
+ # @type ExpireTime: Integer
1375
+ # @param ResourceName: 资源名称,如应用加固,源码混淆
1376
+ # @type ResourceName: String
1377
+
1378
+ attr_accessor :CreateTime, :ExpireTime, :ResourceName
1379
+
1380
+ def initialize(createtime=nil, expiretime=nil, resourcename=nil)
1381
+ @CreateTime = createtime
1382
+ @ExpireTime = expiretime
1383
+ @ResourceName = resourcename
1384
+ end
1385
+
1386
+ def deserialize(params)
1387
+ @CreateTime = params['CreateTime']
1388
+ @ExpireTime = params['ExpireTime']
1389
+ @ResourceName = params['ResourceName']
1390
+ end
1391
+ end
1392
+
1393
+ # 需要扫描的应用的服务信息
1394
+ class ScanInfo < TencentCloud::Common::AbstractModel
1395
+ # @param CallbackUrl: 任务处理完成后的反向通知回调地址,批量提交app每扫描完成一个会通知一次,通知为POST请求,post信息{ItemId:
1396
+ # @type CallbackUrl: String
1397
+ # @param ScanTypes: VULSCAN-漏洞扫描信息,VIRUSSCAN-返回病毒扫描信息, ADSCAN-广告扫描信息,PLUGINSCAN-插件扫描信息,PERMISSION-系统权限信息,SENSITIVE-敏感词信息,可以自由组合
1398
+ # @type ScanTypes: Array
1399
+
1400
+ attr_accessor :CallbackUrl, :ScanTypes
1401
+
1402
+ def initialize(callbackurl=nil, scantypes=nil)
1403
+ @CallbackUrl = callbackurl
1404
+ @ScanTypes = scantypes
1405
+ end
1406
+
1407
+ def deserialize(params)
1408
+ @CallbackUrl = params['CallbackUrl']
1409
+ @ScanTypes = params['ScanTypes']
1410
+ end
1411
+ end
1412
+
1413
+ # 安全扫描系统权限信息
1414
+ class ScanPermissionInfo < TencentCloud::Common::AbstractModel
1415
+ # @param Permission: 系统权限
1416
+ # @type Permission: String
1417
+
1418
+ attr_accessor :Permission
1419
+
1420
+ def initialize(permission=nil)
1421
+ @Permission = permission
1422
+ end
1423
+
1424
+ def deserialize(params)
1425
+ @Permission = params['Permission']
1426
+ end
1427
+ end
1428
+
1429
+ # 安全扫描系统权限信息
1430
+ class ScanPermissionList < TencentCloud::Common::AbstractModel
1431
+ # @param PermissionList: 系统权限信息
1432
+ # @type PermissionList: Array
1433
+
1434
+ attr_accessor :PermissionList
1435
+
1436
+ def initialize(permissionlist=nil)
1437
+ @PermissionList = permissionlist
1438
+ end
1439
+
1440
+ def deserialize(params)
1441
+ unless params['PermissionList'].nil?
1442
+ @PermissionList = []
1443
+ params['PermissionList'].each do |i|
1444
+ scanpermissioninfo_tmp = ScanPermissionInfo.new
1445
+ scanpermissioninfo_tmp.deserialize(i)
1446
+ @PermissionList << scanpermissioninfo_tmp
1447
+ end
1448
+ end
1449
+ end
1450
+ end
1451
+
1452
+ # 安全扫描敏感词
1453
+ class ScanSensitiveInfo < TencentCloud::Common::AbstractModel
1454
+ # @param WordList: 敏感词
1455
+ # @type WordList: Array
1456
+ # @param FilePath: 敏感词对应的文件信息
1457
+ # @type FilePath: String
1458
+ # @param FileSha: 文件sha1值
1459
+ # @type FileSha: String
1460
+
1461
+ attr_accessor :WordList, :FilePath, :FileSha
1462
+
1463
+ def initialize(wordlist=nil, filepath=nil, filesha=nil)
1464
+ @WordList = wordlist
1465
+ @FilePath = filepath
1466
+ @FileSha = filesha
1467
+ end
1468
+
1469
+ def deserialize(params)
1470
+ @WordList = params['WordList']
1471
+ @FilePath = params['FilePath']
1472
+ @FileSha = params['FileSha']
1473
+ end
1474
+ end
1475
+
1476
+ # 安全扫描敏感词列表
1477
+ class ScanSensitiveList < TencentCloud::Common::AbstractModel
1478
+ # @param SensitiveList: 敏感词列表
1479
+ # @type SensitiveList: Array
1480
+
1481
+ attr_accessor :SensitiveList
1482
+
1483
+ def initialize(sensitivelist=nil)
1484
+ @SensitiveList = sensitivelist
1485
+ end
1486
+
1487
+ def deserialize(params)
1488
+ unless params['SensitiveList'].nil?
1489
+ @SensitiveList = []
1490
+ params['SensitiveList'].each do |i|
1491
+ scansensitiveinfo_tmp = ScanSensitiveInfo.new
1492
+ scansensitiveinfo_tmp.deserialize(i)
1493
+ @SensitiveList << scansensitiveinfo_tmp
1494
+ end
1495
+ end
1496
+ end
1497
+ end
1498
+
1499
+ # app扫描结果集
1500
+ class ScanSetInfo < TencentCloud::Common::AbstractModel
1501
+ # @param TaskStatus: 任务状态: 1-已完成,2-处理中,3-处理出错,4-处理超时
1502
+ # @type TaskStatus: Integer
1503
+ # @param AppDetailInfo: app信息
1504
+ # @type AppDetailInfo: :class:`Tencentcloud::Ms.v20180408.models.AppDetailInfo`
1505
+ # @param VirusInfo: 病毒信息
1506
+ # @type VirusInfo: :class:`Tencentcloud::Ms.v20180408.models.VirusInfo`
1507
+ # @param VulInfo: 漏洞信息
1508
+ # @type VulInfo: :class:`Tencentcloud::Ms.v20180408.models.VulInfo`
1509
+ # @param AdInfo: 广告插件信息
1510
+ # @type AdInfo: :class:`Tencentcloud::Ms.v20180408.models.AdInfo`
1511
+ # @param TaskTime: 提交扫描的时间
1512
+ # @type TaskTime: Integer
1513
+ # @param StatusCode: 状态码,成功返回0,失败返回错误码
1514
+ # @type StatusCode: Integer
1515
+ # @param StatusDesc: 状态描述
1516
+ # @type StatusDesc: String
1517
+ # @param StatusRef: 状态操作指引
1518
+ # @type StatusRef: String
1519
+ # @param PermissionInfo: 系统权限信息
1520
+ # @type PermissionInfo: :class:`Tencentcloud::Ms.v20180408.models.ScanPermissionList`
1521
+ # @param SensitiveInfo: 敏感词列表
1522
+ # @type SensitiveInfo: :class:`Tencentcloud::Ms.v20180408.models.ScanSensitiveList`
1523
+
1524
+ attr_accessor :TaskStatus, :AppDetailInfo, :VirusInfo, :VulInfo, :AdInfo, :TaskTime, :StatusCode, :StatusDesc, :StatusRef, :PermissionInfo, :SensitiveInfo
1525
+
1526
+ def initialize(taskstatus=nil, appdetailinfo=nil, virusinfo=nil, vulinfo=nil, adinfo=nil, tasktime=nil, statuscode=nil, statusdesc=nil, statusref=nil, permissioninfo=nil, sensitiveinfo=nil)
1527
+ @TaskStatus = taskstatus
1528
+ @AppDetailInfo = appdetailinfo
1529
+ @VirusInfo = virusinfo
1530
+ @VulInfo = vulinfo
1531
+ @AdInfo = adinfo
1532
+ @TaskTime = tasktime
1533
+ @StatusCode = statuscode
1534
+ @StatusDesc = statusdesc
1535
+ @StatusRef = statusref
1536
+ @PermissionInfo = permissioninfo
1537
+ @SensitiveInfo = sensitiveinfo
1538
+ end
1539
+
1540
+ def deserialize(params)
1541
+ @TaskStatus = params['TaskStatus']
1542
+ unless params['AppDetailInfo'].nil?
1543
+ @AppDetailInfo = AppDetailInfo.new
1544
+ @AppDetailInfo.deserialize(params['AppDetailInfo'])
1545
+ end
1546
+ unless params['VirusInfo'].nil?
1547
+ @VirusInfo = VirusInfo.new
1548
+ @VirusInfo.deserialize(params['VirusInfo'])
1549
+ end
1550
+ unless params['VulInfo'].nil?
1551
+ @VulInfo = VulInfo.new
1552
+ @VulInfo.deserialize(params['VulInfo'])
1553
+ end
1554
+ unless params['AdInfo'].nil?
1555
+ @AdInfo = AdInfo.new
1556
+ @AdInfo.deserialize(params['AdInfo'])
1557
+ end
1558
+ @TaskTime = params['TaskTime']
1559
+ @StatusCode = params['StatusCode']
1560
+ @StatusDesc = params['StatusDesc']
1561
+ @StatusRef = params['StatusRef']
1562
+ unless params['PermissionInfo'].nil?
1563
+ @PermissionInfo = ScanPermissionList.new
1564
+ @PermissionInfo.deserialize(params['PermissionInfo'])
1565
+ end
1566
+ unless params['SensitiveInfo'].nil?
1567
+ @SensitiveInfo = ScanSensitiveList.new
1568
+ @SensitiveInfo.deserialize(params['SensitiveInfo'])
1569
+ end
1570
+ end
1571
+ end
1572
+
1573
+ # 提交app加固的服务信息
1574
+ class ServiceInfo < TencentCloud::Common::AbstractModel
1575
+ # @param ServiceEdition: 服务版本,基础版basic,专业版professional,企业版enterprise。
1576
+ # @type ServiceEdition: String
1577
+ # @param CallbackUrl: 任务处理完成后的反向通知回调地址,如果不需要通知请传递空字符串。通知为POST请求,post包体数据示例{"Response":{"ItemId":"4cdad8fb86f036b06bccb3f58971c306","ShieldCode":0,"ShieldMd5":"78701576793c4a5f04e1c9660de0aa0b","ShieldSize":11997354,"TaskStatus":1,"TaskTime":1539148141}},调用方需要返回如下信息,{"Result":"ok","Reason":"xxxxx"},如果Result字段值不等于ok会继续回调。
1578
+ # @type CallbackUrl: String
1579
+ # @param SubmitSource: 提交来源 YYB-应用宝 RDM-rdm MC-控制台 MAC_TOOL-mac工具 WIN_TOOL-window工具。
1580
+ # @type SubmitSource: String
1581
+ # @param PlanId: 加固策略编号,如果不传则使用系统默认加固策略。如果指定的plan不存在会返回错误。
1582
+ # @type PlanId: Integer
1583
+
1584
+ attr_accessor :ServiceEdition, :CallbackUrl, :SubmitSource, :PlanId
1585
+
1586
+ def initialize(serviceedition=nil, callbackurl=nil, submitsource=nil, planid=nil)
1587
+ @ServiceEdition = serviceedition
1588
+ @CallbackUrl = callbackurl
1589
+ @SubmitSource = submitsource
1590
+ @PlanId = planid
1591
+ end
1592
+
1593
+ def deserialize(params)
1594
+ @ServiceEdition = params['ServiceEdition']
1595
+ @CallbackUrl = params['CallbackUrl']
1596
+ @SubmitSource = params['SubmitSource']
1597
+ @PlanId = params['PlanId']
1598
+ end
1599
+ end
1600
+
1601
+ # 加固后app的信息
1602
+ class ShieldInfo < TencentCloud::Common::AbstractModel
1603
+ # @param ShieldCode: 加固结果的返回码
1604
+ # @type ShieldCode: Integer
1605
+ # @param ShieldSize: 加固后app的大小
1606
+ # @type ShieldSize: Integer
1607
+ # @param ShieldMd5: 加固后app的md5
1608
+ # @type ShieldMd5: String
1609
+ # @param AppUrl: 加固后的APP下载地址,该地址有效期为20分钟,请及时下载
1610
+ # @type AppUrl: String
1611
+ # @param TaskTime: 加固的提交时间
1612
+ # @type TaskTime: Integer
1613
+ # @param ItemId: 任务唯一标识
1614
+ # @type ItemId: String
1615
+ # @param ServiceEdition: 加固版本,basic基础版,professional专业版,enterprise企业版
1616
+ # @type ServiceEdition: String
1617
+
1618
+ attr_accessor :ShieldCode, :ShieldSize, :ShieldMd5, :AppUrl, :TaskTime, :ItemId, :ServiceEdition
1619
+
1620
+ def initialize(shieldcode=nil, shieldsize=nil, shieldmd5=nil, appurl=nil, tasktime=nil, itemid=nil, serviceedition=nil)
1621
+ @ShieldCode = shieldcode
1622
+ @ShieldSize = shieldsize
1623
+ @ShieldMd5 = shieldmd5
1624
+ @AppUrl = appurl
1625
+ @TaskTime = tasktime
1626
+ @ItemId = itemid
1627
+ @ServiceEdition = serviceedition
1628
+ end
1629
+
1630
+ def deserialize(params)
1631
+ @ShieldCode = params['ShieldCode']
1632
+ @ShieldSize = params['ShieldSize']
1633
+ @ShieldMd5 = params['ShieldMd5']
1634
+ @AppUrl = params['AppUrl']
1635
+ @TaskTime = params['TaskTime']
1636
+ @ItemId = params['ItemId']
1637
+ @ServiceEdition = params['ServiceEdition']
1638
+ end
1639
+ end
1640
+
1641
+ # 加固策略信息
1642
+ class ShieldPlanInfo < TencentCloud::Common::AbstractModel
1643
+ # @param TotalCount: 加固策略数量
1644
+ # @type TotalCount: Integer
1645
+ # @param PlanSet: 加固策略具体信息数组
1646
+ # @type PlanSet: Array
1647
+
1648
+ attr_accessor :TotalCount, :PlanSet
1649
+
1650
+ def initialize(totalcount=nil, planset=nil)
1651
+ @TotalCount = totalcount
1652
+ @PlanSet = planset
1653
+ end
1654
+
1655
+ def deserialize(params)
1656
+ @TotalCount = params['TotalCount']
1657
+ unless params['PlanSet'].nil?
1658
+ @PlanSet = []
1659
+ params['PlanSet'].each do |i|
1660
+ plandetailinfo_tmp = PlanDetailInfo.new
1661
+ plandetailinfo_tmp.deserialize(i)
1662
+ @PlanSet << plandetailinfo_tmp
1663
+ end
1664
+ end
1665
+ end
1666
+ end
1667
+
1668
+ # so加固信息
1669
+ class SoInfo < TencentCloud::Common::AbstractModel
1670
+ # @param SoFileNames: so文件列表
1671
+ # @type SoFileNames: Array
1672
+
1673
+ attr_accessor :SoFileNames
1674
+
1675
+ def initialize(sofilenames=nil)
1676
+ @SoFileNames = sofilenames
1677
+ end
1678
+
1679
+ def deserialize(params)
1680
+ @SoFileNames = params['SoFileNames']
1681
+ end
1682
+ end
1683
+
1684
+ # 病毒信息
1685
+ class VirusInfo < TencentCloud::Common::AbstractModel
1686
+ # @param SafeType: 软件安全类型,分别为0-未知、 1-安全软件、2-风险软件、3-病毒软件
1687
+ # @type SafeType: Integer
1688
+ # @param VirusName: 病毒名称, utf8编码,非病毒时值为空
1689
+ # @type VirusName: String
1690
+ # @param VirusDesc: 病毒描述,utf8编码,非病毒时值为空
1691
+ # @type VirusDesc: String
1692
+
1693
+ attr_accessor :SafeType, :VirusName, :VirusDesc
1694
+
1695
+ def initialize(safetype=nil, virusname=nil, virusdesc=nil)
1696
+ @SafeType = safetype
1697
+ @VirusName = virusname
1698
+ @VirusDesc = virusdesc
1699
+ end
1700
+
1701
+ def deserialize(params)
1702
+ @SafeType = params['SafeType']
1703
+ @VirusName = params['VirusName']
1704
+ @VirusDesc = params['VirusDesc']
1705
+ end
1706
+ end
1707
+
1708
+ # 漏洞信息
1709
+ class VulInfo < TencentCloud::Common::AbstractModel
1710
+ # @param VulList: 漏洞列表
1711
+ # @type VulList: Array
1712
+ # @param VulFileScore: 漏洞文件评分
1713
+ # @type VulFileScore: Integer
1714
+
1715
+ attr_accessor :VulList, :VulFileScore
1716
+
1717
+ def initialize(vullist=nil, vulfilescore=nil)
1718
+ @VulList = vullist
1719
+ @VulFileScore = vulfilescore
1720
+ end
1721
+
1722
+ def deserialize(params)
1723
+ unless params['VulList'].nil?
1724
+ @VulList = []
1725
+ params['VulList'].each do |i|
1726
+ vullist_tmp = VulList.new
1727
+ vullist_tmp.deserialize(i)
1728
+ @VulList << vullist_tmp
1729
+ end
1730
+ end
1731
+ @VulFileScore = params['VulFileScore']
1732
+ end
1733
+ end
1734
+
1735
+ # 漏洞信息
1736
+ class VulList < TencentCloud::Common::AbstractModel
1737
+ # @param VulId: 漏洞id
1738
+ # @type VulId: String
1739
+ # @param VulName: 漏洞名称
1740
+ # @type VulName: String
1741
+ # @param VulCode: 漏洞代码
1742
+ # @type VulCode: String
1743
+ # @param VulDesc: 漏洞描述
1744
+ # @type VulDesc: String
1745
+ # @param VulSolution: 漏洞解决方案
1746
+ # @type VulSolution: String
1747
+ # @param VulSrcType: 漏洞来源类别,0默认自身,1第三方插件
1748
+ # @type VulSrcType: Integer
1749
+ # @param VulFilepath: 漏洞位置
1750
+ # @type VulFilepath: String
1751
+ # @param RiskLevel: 风险级别:1 低风险 ;2中等风险;3 高风险
1752
+ # @type RiskLevel: Integer
1753
+
1754
+ attr_accessor :VulId, :VulName, :VulCode, :VulDesc, :VulSolution, :VulSrcType, :VulFilepath, :RiskLevel
1755
+
1756
+ def initialize(vulid=nil, vulname=nil, vulcode=nil, vuldesc=nil, vulsolution=nil, vulsrctype=nil, vulfilepath=nil, risklevel=nil)
1757
+ @VulId = vulid
1758
+ @VulName = vulname
1759
+ @VulCode = vulcode
1760
+ @VulDesc = vuldesc
1761
+ @VulSolution = vulsolution
1762
+ @VulSrcType = vulsrctype
1763
+ @VulFilepath = vulfilepath
1764
+ @RiskLevel = risklevel
1765
+ end
1766
+
1767
+ def deserialize(params)
1768
+ @VulId = params['VulId']
1769
+ @VulName = params['VulName']
1770
+ @VulCode = params['VulCode']
1771
+ @VulDesc = params['VulDesc']
1772
+ @VulSolution = params['VulSolution']
1773
+ @VulSrcType = params['VulSrcType']
1774
+ @VulFilepath = params['VulFilepath']
1775
+ @RiskLevel = params['RiskLevel']
1776
+ end
1777
+ end
1778
+
1779
+ end
1780
+ end
1781
+ end
1782
+