tencentcloud-sdk-cms 1.0.200
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/VERSION +1 -0
- data/lib/tencentcloud-sdk-cms.rb +11 -0
- data/lib/v20190321/client.rb +264 -0
- data/lib/v20190321/models.rb +1743 -0
- metadata +66 -0
@@ -0,0 +1,1743 @@
|
|
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 Cms
|
19
|
+
module V20190321
|
20
|
+
# 从图片中检测到的二维码,可能为多个
|
21
|
+
class CodeDetail < TencentCloud::Common::AbstractModel
|
22
|
+
# @param CodePosition: 二维码在图片中的位置,由边界点的坐标表示
|
23
|
+
# @type CodePosition: Array
|
24
|
+
# @param CodeCharset: 二维码文本的编码格式
|
25
|
+
# @type CodeCharset: String
|
26
|
+
# @param CodeText: 二维码的文本内容
|
27
|
+
# @type CodeText: String
|
28
|
+
# @param CodeType: 二维码的类型:1:ONED_BARCODE,2:QRCOD,3:WXCODE,4:PDF417,5:DATAMATRIX
|
29
|
+
# @type CodeType: Integer
|
30
|
+
|
31
|
+
attr_accessor :CodePosition, :CodeCharset, :CodeText, :CodeType
|
32
|
+
|
33
|
+
def initialize(codeposition=nil, codecharset=nil, codetext=nil, codetype=nil)
|
34
|
+
@CodePosition = codeposition
|
35
|
+
@CodeCharset = codecharset
|
36
|
+
@CodeText = codetext
|
37
|
+
@CodeType = codetype
|
38
|
+
end
|
39
|
+
|
40
|
+
def deserialize(params)
|
41
|
+
unless params['CodePosition'].nil?
|
42
|
+
@CodePosition = []
|
43
|
+
params['CodePosition'].each do |i|
|
44
|
+
codeposition_tmp = CodePosition.new
|
45
|
+
codeposition_tmp.deserialize(i)
|
46
|
+
@CodePosition << codeposition_tmp
|
47
|
+
end
|
48
|
+
end
|
49
|
+
@CodeCharset = params['CodeCharset']
|
50
|
+
@CodeText = params['CodeText']
|
51
|
+
@CodeType = params['CodeType']
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
# 图片二维码详情
|
56
|
+
class CodeDetect < TencentCloud::Common::AbstractModel
|
57
|
+
# @param ModerationDetail: 从图片中检测到的二维码,可能为多个
|
58
|
+
# @type ModerationDetail: Array
|
59
|
+
# @param ModerationCode: 检测是否成功,0:成功,-1:出错
|
60
|
+
# @type ModerationCode: Integer
|
61
|
+
|
62
|
+
attr_accessor :ModerationDetail, :ModerationCode
|
63
|
+
|
64
|
+
def initialize(moderationdetail=nil, moderationcode=nil)
|
65
|
+
@ModerationDetail = moderationdetail
|
66
|
+
@ModerationCode = moderationcode
|
67
|
+
end
|
68
|
+
|
69
|
+
def deserialize(params)
|
70
|
+
unless params['ModerationDetail'].nil?
|
71
|
+
@ModerationDetail = []
|
72
|
+
params['ModerationDetail'].each do |i|
|
73
|
+
codedetail_tmp = CodeDetail.new
|
74
|
+
codedetail_tmp.deserialize(i)
|
75
|
+
@ModerationDetail << codedetail_tmp
|
76
|
+
end
|
77
|
+
end
|
78
|
+
@ModerationCode = params['ModerationCode']
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
# 二维码在图片中的位置,由边界点的坐标表示
|
83
|
+
class CodePosition < TencentCloud::Common::AbstractModel
|
84
|
+
# @param FloatX: 二维码边界点X轴坐标
|
85
|
+
# @type FloatX: Float
|
86
|
+
# @param FloatY: 二维码边界点Y轴坐标
|
87
|
+
# @type FloatY: Float
|
88
|
+
|
89
|
+
attr_accessor :FloatX, :FloatY
|
90
|
+
|
91
|
+
def initialize(floatx=nil, floaty=nil)
|
92
|
+
@FloatX = floatx
|
93
|
+
@FloatY = floaty
|
94
|
+
end
|
95
|
+
|
96
|
+
def deserialize(params)
|
97
|
+
@FloatX = params['FloatX']
|
98
|
+
@FloatY = params['FloatY']
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
# 坐标
|
103
|
+
class Coordinate < TencentCloud::Common::AbstractModel
|
104
|
+
# @param Cx: 左上角横坐标
|
105
|
+
# @type Cx: Integer
|
106
|
+
# @param Cy: 左上角纵坐标
|
107
|
+
# @type Cy: Integer
|
108
|
+
# @param Height: 高度
|
109
|
+
# @type Height: Integer
|
110
|
+
# @param Width: 宽度
|
111
|
+
# @type Width: Integer
|
112
|
+
|
113
|
+
attr_accessor :Cx, :Cy, :Height, :Width
|
114
|
+
|
115
|
+
def initialize(cx=nil, cy=nil, height=nil, width=nil)
|
116
|
+
@Cx = cx
|
117
|
+
@Cy = cy
|
118
|
+
@Height = height
|
119
|
+
@Width = width
|
120
|
+
end
|
121
|
+
|
122
|
+
def deserialize(params)
|
123
|
+
@Cx = params['Cx']
|
124
|
+
@Cy = params['Cy']
|
125
|
+
@Height = params['Height']
|
126
|
+
@Width = params['Width']
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
130
|
+
# CreateFileSample请求参数结构体
|
131
|
+
class CreateFileSampleRequest < TencentCloud::Common::AbstractModel
|
132
|
+
# @param Contents: 文件类型结构数组
|
133
|
+
# @type Contents: Array
|
134
|
+
# @param EvilType: 恶意类型
|
135
|
+
# 100:正常
|
136
|
+
# 20001:政治
|
137
|
+
# 20002:色情
|
138
|
+
# 20006:涉毒违法
|
139
|
+
# 20007:谩骂
|
140
|
+
# 24001:暴恐
|
141
|
+
# 20105:广告引流
|
142
|
+
# @type EvilType: Integer
|
143
|
+
# @param FileType: image:图片
|
144
|
+
# @type FileType: String
|
145
|
+
# @param Label: 样本类型
|
146
|
+
# 1:黑库
|
147
|
+
# 2:白库
|
148
|
+
# @type Label: Integer
|
149
|
+
|
150
|
+
attr_accessor :Contents, :EvilType, :FileType, :Label
|
151
|
+
|
152
|
+
def initialize(contents=nil, eviltype=nil, filetype=nil, label=nil)
|
153
|
+
@Contents = contents
|
154
|
+
@EvilType = eviltype
|
155
|
+
@FileType = filetype
|
156
|
+
@Label = label
|
157
|
+
end
|
158
|
+
|
159
|
+
def deserialize(params)
|
160
|
+
unless params['Contents'].nil?
|
161
|
+
@Contents = []
|
162
|
+
params['Contents'].each do |i|
|
163
|
+
filesample_tmp = FileSample.new
|
164
|
+
filesample_tmp.deserialize(i)
|
165
|
+
@Contents << filesample_tmp
|
166
|
+
end
|
167
|
+
end
|
168
|
+
@EvilType = params['EvilType']
|
169
|
+
@FileType = params['FileType']
|
170
|
+
@Label = params['Label']
|
171
|
+
end
|
172
|
+
end
|
173
|
+
|
174
|
+
# CreateFileSample返回参数结构体
|
175
|
+
class CreateFileSampleResponse < TencentCloud::Common::AbstractModel
|
176
|
+
# @param Progress: 任务状态
|
177
|
+
# 1:已完成
|
178
|
+
# 2:处理中
|
179
|
+
# @type Progress: Integer
|
180
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
181
|
+
# @type RequestId: String
|
182
|
+
|
183
|
+
attr_accessor :Progress, :RequestId
|
184
|
+
|
185
|
+
def initialize(progress=nil, requestid=nil)
|
186
|
+
@Progress = progress
|
187
|
+
@RequestId = requestid
|
188
|
+
end
|
189
|
+
|
190
|
+
def deserialize(params)
|
191
|
+
@Progress = params['Progress']
|
192
|
+
@RequestId = params['RequestId']
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
# CreateTextSample请求参数结构体
|
197
|
+
class CreateTextSampleRequest < TencentCloud::Common::AbstractModel
|
198
|
+
# @param Contents: 关键词数组
|
199
|
+
# @type Contents: Array
|
200
|
+
# @param EvilType: 恶意类型
|
201
|
+
# 100:正常
|
202
|
+
# 20001:政治
|
203
|
+
# 20002:色情
|
204
|
+
# 20006:涉毒违法
|
205
|
+
# 20007:谩骂
|
206
|
+
# 24001:暴恐
|
207
|
+
# 20105:广告引流
|
208
|
+
# @type EvilType: Integer
|
209
|
+
# @param Label: 样本类型
|
210
|
+
# 1:黑库
|
211
|
+
# 2:白库
|
212
|
+
# @type Label: Integer
|
213
|
+
# @param Test: 测试修改参数
|
214
|
+
# @type Test: String
|
215
|
+
|
216
|
+
attr_accessor :Contents, :EvilType, :Label, :Test
|
217
|
+
|
218
|
+
def initialize(contents=nil, eviltype=nil, label=nil, test=nil)
|
219
|
+
@Contents = contents
|
220
|
+
@EvilType = eviltype
|
221
|
+
@Label = label
|
222
|
+
@Test = test
|
223
|
+
end
|
224
|
+
|
225
|
+
def deserialize(params)
|
226
|
+
@Contents = params['Contents']
|
227
|
+
@EvilType = params['EvilType']
|
228
|
+
@Label = params['Label']
|
229
|
+
@Test = params['Test']
|
230
|
+
end
|
231
|
+
end
|
232
|
+
|
233
|
+
# CreateTextSample返回参数结构体
|
234
|
+
class CreateTextSampleResponse < TencentCloud::Common::AbstractModel
|
235
|
+
# @param ErrMsg: 操作样本失败时返回的错误信息示例: "样本1":错误码,"样本2":错误码
|
236
|
+
# @type ErrMsg: String
|
237
|
+
# @param Progress: 任务状态
|
238
|
+
# 1:已完成
|
239
|
+
# 2:处理中
|
240
|
+
# @type Progress: Integer
|
241
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
242
|
+
# @type RequestId: String
|
243
|
+
|
244
|
+
attr_accessor :ErrMsg, :Progress, :RequestId
|
245
|
+
|
246
|
+
def initialize(errmsg=nil, progress=nil, requestid=nil)
|
247
|
+
@ErrMsg = errmsg
|
248
|
+
@Progress = progress
|
249
|
+
@RequestId = requestid
|
250
|
+
end
|
251
|
+
|
252
|
+
def deserialize(params)
|
253
|
+
@ErrMsg = params['ErrMsg']
|
254
|
+
@Progress = params['Progress']
|
255
|
+
@RequestId = params['RequestId']
|
256
|
+
end
|
257
|
+
end
|
258
|
+
|
259
|
+
# 文本返回的自定义词库结果
|
260
|
+
class CustomResult < TencentCloud::Common::AbstractModel
|
261
|
+
# @param Keywords: 命中的自定义关键词
|
262
|
+
# @type Keywords: Array
|
263
|
+
# @param LibId: 自定义库id
|
264
|
+
# @type LibId: String
|
265
|
+
# @param LibName: 自定义词库名称
|
266
|
+
# @type LibName: String
|
267
|
+
# @param Type: 命中的自定义关键词的类型
|
268
|
+
# @type Type: String
|
269
|
+
|
270
|
+
attr_accessor :Keywords, :LibId, :LibName, :Type
|
271
|
+
|
272
|
+
def initialize(keywords=nil, libid=nil, libname=nil, type=nil)
|
273
|
+
@Keywords = keywords
|
274
|
+
@LibId = libid
|
275
|
+
@LibName = libname
|
276
|
+
@Type = type
|
277
|
+
end
|
278
|
+
|
279
|
+
def deserialize(params)
|
280
|
+
@Keywords = params['Keywords']
|
281
|
+
@LibId = params['LibId']
|
282
|
+
@LibName = params['LibName']
|
283
|
+
@Type = params['Type']
|
284
|
+
end
|
285
|
+
end
|
286
|
+
|
287
|
+
# DeleteFileSample请求参数结构体
|
288
|
+
class DeleteFileSampleRequest < TencentCloud::Common::AbstractModel
|
289
|
+
# @param Ids: 唯一标识数组
|
290
|
+
# @type Ids: Array
|
291
|
+
|
292
|
+
attr_accessor :Ids
|
293
|
+
|
294
|
+
def initialize(ids=nil)
|
295
|
+
@Ids = ids
|
296
|
+
end
|
297
|
+
|
298
|
+
def deserialize(params)
|
299
|
+
@Ids = params['Ids']
|
300
|
+
end
|
301
|
+
end
|
302
|
+
|
303
|
+
# DeleteFileSample返回参数结构体
|
304
|
+
class DeleteFileSampleResponse < TencentCloud::Common::AbstractModel
|
305
|
+
# @param Progress: 任务状态
|
306
|
+
# 1:已完成
|
307
|
+
# 2:处理中
|
308
|
+
# @type Progress: Integer
|
309
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
310
|
+
# @type RequestId: String
|
311
|
+
|
312
|
+
attr_accessor :Progress, :RequestId
|
313
|
+
|
314
|
+
def initialize(progress=nil, requestid=nil)
|
315
|
+
@Progress = progress
|
316
|
+
@RequestId = requestid
|
317
|
+
end
|
318
|
+
|
319
|
+
def deserialize(params)
|
320
|
+
@Progress = params['Progress']
|
321
|
+
@RequestId = params['RequestId']
|
322
|
+
end
|
323
|
+
end
|
324
|
+
|
325
|
+
# DeleteTextSample请求参数结构体
|
326
|
+
class DeleteTextSampleRequest < TencentCloud::Common::AbstractModel
|
327
|
+
# @param Ids: 唯一标识数组,目前暂时只支持单个删除
|
328
|
+
# @type Ids: Array
|
329
|
+
|
330
|
+
attr_accessor :Ids
|
331
|
+
|
332
|
+
def initialize(ids=nil)
|
333
|
+
@Ids = ids
|
334
|
+
end
|
335
|
+
|
336
|
+
def deserialize(params)
|
337
|
+
@Ids = params['Ids']
|
338
|
+
end
|
339
|
+
end
|
340
|
+
|
341
|
+
# DeleteTextSample返回参数结构体
|
342
|
+
class DeleteTextSampleResponse < TencentCloud::Common::AbstractModel
|
343
|
+
# @param Progress: 任务状态
|
344
|
+
# 1:已完成
|
345
|
+
# 2:处理中
|
346
|
+
# @type Progress: Integer
|
347
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
348
|
+
# @type RequestId: String
|
349
|
+
|
350
|
+
attr_accessor :Progress, :RequestId
|
351
|
+
|
352
|
+
def initialize(progress=nil, requestid=nil)
|
353
|
+
@Progress = progress
|
354
|
+
@RequestId = requestid
|
355
|
+
end
|
356
|
+
|
357
|
+
def deserialize(params)
|
358
|
+
@Progress = params['Progress']
|
359
|
+
@RequestId = params['RequestId']
|
360
|
+
end
|
361
|
+
end
|
362
|
+
|
363
|
+
# DescribeFileSample请求参数结构体
|
364
|
+
class DescribeFileSampleRequest < TencentCloud::Common::AbstractModel
|
365
|
+
# @param Filters: 支持通过标签值进行筛选
|
366
|
+
# @type Filters: Array
|
367
|
+
# @param Limit: 数量限制,默认为20,最大值为100
|
368
|
+
# @type Limit: Integer
|
369
|
+
# @param Offset: 偏移量,默认为0
|
370
|
+
# @type Offset: Integer
|
371
|
+
# @param OrderDirection: 升序(asc)还是降序(desc),默认:desc
|
372
|
+
# @type OrderDirection: String
|
373
|
+
# @param OrderField: 按某个字段排序,目前仅支持CreatedAt排序
|
374
|
+
# @type OrderField: String
|
375
|
+
|
376
|
+
attr_accessor :Filters, :Limit, :Offset, :OrderDirection, :OrderField
|
377
|
+
|
378
|
+
def initialize(filters=nil, limit=nil, offset=nil, orderdirection=nil, orderfield=nil)
|
379
|
+
@Filters = filters
|
380
|
+
@Limit = limit
|
381
|
+
@Offset = offset
|
382
|
+
@OrderDirection = orderdirection
|
383
|
+
@OrderField = orderfield
|
384
|
+
end
|
385
|
+
|
386
|
+
def deserialize(params)
|
387
|
+
unless params['Filters'].nil?
|
388
|
+
@Filters = []
|
389
|
+
params['Filters'].each do |i|
|
390
|
+
filter_tmp = Filter.new
|
391
|
+
filter_tmp.deserialize(i)
|
392
|
+
@Filters << filter_tmp
|
393
|
+
end
|
394
|
+
end
|
395
|
+
@Limit = params['Limit']
|
396
|
+
@Offset = params['Offset']
|
397
|
+
@OrderDirection = params['OrderDirection']
|
398
|
+
@OrderField = params['OrderField']
|
399
|
+
end
|
400
|
+
end
|
401
|
+
|
402
|
+
# DescribeFileSample返回参数结构体
|
403
|
+
class DescribeFileSampleResponse < TencentCloud::Common::AbstractModel
|
404
|
+
# @param FileSampleSet: 符合要求的样本的信息
|
405
|
+
# @type FileSampleSet: Array
|
406
|
+
# @param TotalCount: 符合要求的样本的数量
|
407
|
+
# @type TotalCount: Integer
|
408
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
409
|
+
# @type RequestId: String
|
410
|
+
|
411
|
+
attr_accessor :FileSampleSet, :TotalCount, :RequestId
|
412
|
+
|
413
|
+
def initialize(filesampleset=nil, totalcount=nil, requestid=nil)
|
414
|
+
@FileSampleSet = filesampleset
|
415
|
+
@TotalCount = totalcount
|
416
|
+
@RequestId = requestid
|
417
|
+
end
|
418
|
+
|
419
|
+
def deserialize(params)
|
420
|
+
unless params['FileSampleSet'].nil?
|
421
|
+
@FileSampleSet = []
|
422
|
+
params['FileSampleSet'].each do |i|
|
423
|
+
filesampleinfo_tmp = FileSampleInfo.new
|
424
|
+
filesampleinfo_tmp.deserialize(i)
|
425
|
+
@FileSampleSet << filesampleinfo_tmp
|
426
|
+
end
|
427
|
+
end
|
428
|
+
@TotalCount = params['TotalCount']
|
429
|
+
@RequestId = params['RequestId']
|
430
|
+
end
|
431
|
+
end
|
432
|
+
|
433
|
+
# DescribeTextSample请求参数结构体
|
434
|
+
class DescribeTextSampleRequest < TencentCloud::Common::AbstractModel
|
435
|
+
# @param Filters: 支持通过标签值进行筛选
|
436
|
+
# @type Filters: Array
|
437
|
+
# @param Limit: 数量限制,默认为20,最大值为100
|
438
|
+
# @type Limit: Integer
|
439
|
+
# @param Offset: 偏移量,默认为0
|
440
|
+
# @type Offset: Integer
|
441
|
+
# @param OrderDirection: 升序(asc)还是降序(desc),默认:desc
|
442
|
+
# @type OrderDirection: String
|
443
|
+
# @param OrderField: 按某个字段排序,目前仅支持CreatedAt排序
|
444
|
+
# @type OrderField: String
|
445
|
+
|
446
|
+
attr_accessor :Filters, :Limit, :Offset, :OrderDirection, :OrderField
|
447
|
+
|
448
|
+
def initialize(filters=nil, limit=nil, offset=nil, orderdirection=nil, orderfield=nil)
|
449
|
+
@Filters = filters
|
450
|
+
@Limit = limit
|
451
|
+
@Offset = offset
|
452
|
+
@OrderDirection = orderdirection
|
453
|
+
@OrderField = orderfield
|
454
|
+
end
|
455
|
+
|
456
|
+
def deserialize(params)
|
457
|
+
unless params['Filters'].nil?
|
458
|
+
@Filters = []
|
459
|
+
params['Filters'].each do |i|
|
460
|
+
filter_tmp = Filter.new
|
461
|
+
filter_tmp.deserialize(i)
|
462
|
+
@Filters << filter_tmp
|
463
|
+
end
|
464
|
+
end
|
465
|
+
@Limit = params['Limit']
|
466
|
+
@Offset = params['Offset']
|
467
|
+
@OrderDirection = params['OrderDirection']
|
468
|
+
@OrderField = params['OrderField']
|
469
|
+
end
|
470
|
+
end
|
471
|
+
|
472
|
+
# DescribeTextSample返回参数结构体
|
473
|
+
class DescribeTextSampleResponse < TencentCloud::Common::AbstractModel
|
474
|
+
# @param TextSampleSet: 符合要求的样本的信息
|
475
|
+
# @type TextSampleSet: Array
|
476
|
+
# @param TotalCount: 符合要求的样本的数量
|
477
|
+
# @type TotalCount: Integer
|
478
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
479
|
+
# @type RequestId: String
|
480
|
+
|
481
|
+
attr_accessor :TextSampleSet, :TotalCount, :RequestId
|
482
|
+
|
483
|
+
def initialize(textsampleset=nil, totalcount=nil, requestid=nil)
|
484
|
+
@TextSampleSet = textsampleset
|
485
|
+
@TotalCount = totalcount
|
486
|
+
@RequestId = requestid
|
487
|
+
end
|
488
|
+
|
489
|
+
def deserialize(params)
|
490
|
+
unless params['TextSampleSet'].nil?
|
491
|
+
@TextSampleSet = []
|
492
|
+
params['TextSampleSet'].each do |i|
|
493
|
+
textsample_tmp = TextSample.new
|
494
|
+
textsample_tmp.deserialize(i)
|
495
|
+
@TextSampleSet << textsample_tmp
|
496
|
+
end
|
497
|
+
end
|
498
|
+
@TotalCount = params['TotalCount']
|
499
|
+
@RequestId = params['RequestId']
|
500
|
+
end
|
501
|
+
end
|
502
|
+
|
503
|
+
# 文本返回的详细结果
|
504
|
+
class DetailResult < TencentCloud::Common::AbstractModel
|
505
|
+
# @param EvilLabel: 恶意标签,Normal:正常,Polity:涉政,Porn:色情,Illegal:违法,Abuse:谩骂,Terror:暴恐,Ad:广告,Custom:自定义关键词
|
506
|
+
# @type EvilLabel: String
|
507
|
+
# @param EvilType: 恶意类型
|
508
|
+
# 100:正常
|
509
|
+
# 20001:政治
|
510
|
+
# 20002:色情
|
511
|
+
# 20006:涉毒违法
|
512
|
+
# 20007:谩骂
|
513
|
+
# 20105:广告引流
|
514
|
+
# 24001:暴恐
|
515
|
+
# @type EvilType: Integer
|
516
|
+
# @param Keywords: 该标签下命中的关键词
|
517
|
+
# @type Keywords: Array
|
518
|
+
# @param Score: 该标签模型命中的分值
|
519
|
+
# @type Score: Integer
|
520
|
+
|
521
|
+
attr_accessor :EvilLabel, :EvilType, :Keywords, :Score
|
522
|
+
|
523
|
+
def initialize(evillabel=nil, eviltype=nil, keywords=nil, score=nil)
|
524
|
+
@EvilLabel = evillabel
|
525
|
+
@EvilType = eviltype
|
526
|
+
@Keywords = keywords
|
527
|
+
@Score = score
|
528
|
+
end
|
529
|
+
|
530
|
+
def deserialize(params)
|
531
|
+
@EvilLabel = params['EvilLabel']
|
532
|
+
@EvilType = params['EvilType']
|
533
|
+
@Keywords = params['Keywords']
|
534
|
+
@Score = params['Score']
|
535
|
+
end
|
536
|
+
end
|
537
|
+
|
538
|
+
# 设备信息
|
539
|
+
class Device < TencentCloud::Common::AbstractModel
|
540
|
+
# @param DeviceId: 设备指纹ID
|
541
|
+
# @type DeviceId: String
|
542
|
+
# @param IDFA: IOS设备,Identifier For Advertising(广告标识符)
|
543
|
+
# @type IDFA: String
|
544
|
+
# @param IDFV: IOS设备,IDFV - Identifier For Vendor(应用开发商标识符)
|
545
|
+
# @type IDFV: String
|
546
|
+
# @param IMEI: 设备序列号
|
547
|
+
# @type IMEI: String
|
548
|
+
# @param IP: 用户IP
|
549
|
+
# @type IP: String
|
550
|
+
# @param Mac: Mac地址
|
551
|
+
# @type Mac: String
|
552
|
+
# @param TokenId: 设备指纹Token
|
553
|
+
# @type TokenId: String
|
554
|
+
|
555
|
+
attr_accessor :DeviceId, :IDFA, :IDFV, :IMEI, :IP, :Mac, :TokenId
|
556
|
+
|
557
|
+
def initialize(deviceid=nil, idfa=nil, idfv=nil, imei=nil, ip=nil, mac=nil, tokenid=nil)
|
558
|
+
@DeviceId = deviceid
|
559
|
+
@IDFA = idfa
|
560
|
+
@IDFV = idfv
|
561
|
+
@IMEI = imei
|
562
|
+
@IP = ip
|
563
|
+
@Mac = mac
|
564
|
+
@TokenId = tokenid
|
565
|
+
end
|
566
|
+
|
567
|
+
def deserialize(params)
|
568
|
+
@DeviceId = params['DeviceId']
|
569
|
+
@IDFA = params['IDFA']
|
570
|
+
@IDFV = params['IDFV']
|
571
|
+
@IMEI = params['IMEI']
|
572
|
+
@IP = params['IP']
|
573
|
+
@Mac = params['Mac']
|
574
|
+
@TokenId = params['TokenId']
|
575
|
+
end
|
576
|
+
end
|
577
|
+
|
578
|
+
# 文件类型样本
|
579
|
+
class FileSample < TencentCloud::Common::AbstractModel
|
580
|
+
# @param FileMd5: 文件md5
|
581
|
+
# @type FileMd5: String
|
582
|
+
# @param FileName: 文件名称
|
583
|
+
# @type FileName: String
|
584
|
+
# @param FileUrl: 文件url
|
585
|
+
# @type FileUrl: String
|
586
|
+
# @param CompressFileUrl: 文件压缩后云url
|
587
|
+
# @type CompressFileUrl: String
|
588
|
+
|
589
|
+
attr_accessor :FileMd5, :FileName, :FileUrl, :CompressFileUrl
|
590
|
+
|
591
|
+
def initialize(filemd5=nil, filename=nil, fileurl=nil, compressfileurl=nil)
|
592
|
+
@FileMd5 = filemd5
|
593
|
+
@FileName = filename
|
594
|
+
@FileUrl = fileurl
|
595
|
+
@CompressFileUrl = compressfileurl
|
596
|
+
end
|
597
|
+
|
598
|
+
def deserialize(params)
|
599
|
+
@FileMd5 = params['FileMd5']
|
600
|
+
@FileName = params['FileName']
|
601
|
+
@FileUrl = params['FileUrl']
|
602
|
+
@CompressFileUrl = params['CompressFileUrl']
|
603
|
+
end
|
604
|
+
end
|
605
|
+
|
606
|
+
# 文件样本返回信息
|
607
|
+
class FileSampleInfo < TencentCloud::Common::AbstractModel
|
608
|
+
# @param Code: 处理错误码
|
609
|
+
# @type Code: Integer
|
610
|
+
# @param CreatedAt: 创建时间戳
|
611
|
+
# @type CreatedAt: Integer
|
612
|
+
# @param EvilType: 恶意类型
|
613
|
+
# 100:正常
|
614
|
+
# 20001:政治
|
615
|
+
# 20002:色情
|
616
|
+
# 20006:涉毒违法
|
617
|
+
# 20007:谩骂
|
618
|
+
# 24001:暴恐
|
619
|
+
# @type EvilType: Integer
|
620
|
+
# @param FileMd5: 文件的md5
|
621
|
+
# @type FileMd5: String
|
622
|
+
# @param FileName: 文件名称
|
623
|
+
# @type FileName: String
|
624
|
+
# @param FileType: 文件类型
|
625
|
+
# @type FileType: String
|
626
|
+
# @param Id: 唯一标识
|
627
|
+
# @type Id: String
|
628
|
+
# @param Label: 样本类型
|
629
|
+
# 1:黑库
|
630
|
+
# 2:白库
|
631
|
+
# @type Label: Integer
|
632
|
+
# @param Status: 任务状态
|
633
|
+
# 1:添加完成
|
634
|
+
# 2:添加处理中
|
635
|
+
# 3:下载中
|
636
|
+
# 4:下载完成
|
637
|
+
# 5:上传完成
|
638
|
+
# 6:步骤完成
|
639
|
+
# @type Status: Integer
|
640
|
+
# @param CompressFileUrl: 文件压缩后云url
|
641
|
+
# @type CompressFileUrl: String
|
642
|
+
# @param FileUrl: 文件的url
|
643
|
+
# @type FileUrl: String
|
644
|
+
|
645
|
+
attr_accessor :Code, :CreatedAt, :EvilType, :FileMd5, :FileName, :FileType, :Id, :Label, :Status, :CompressFileUrl, :FileUrl
|
646
|
+
|
647
|
+
def initialize(code=nil, createdat=nil, eviltype=nil, filemd5=nil, filename=nil, filetype=nil, id=nil, label=nil, status=nil, compressfileurl=nil, fileurl=nil)
|
648
|
+
@Code = code
|
649
|
+
@CreatedAt = createdat
|
650
|
+
@EvilType = eviltype
|
651
|
+
@FileMd5 = filemd5
|
652
|
+
@FileName = filename
|
653
|
+
@FileType = filetype
|
654
|
+
@Id = id
|
655
|
+
@Label = label
|
656
|
+
@Status = status
|
657
|
+
@CompressFileUrl = compressfileurl
|
658
|
+
@FileUrl = fileurl
|
659
|
+
end
|
660
|
+
|
661
|
+
def deserialize(params)
|
662
|
+
@Code = params['Code']
|
663
|
+
@CreatedAt = params['CreatedAt']
|
664
|
+
@EvilType = params['EvilType']
|
665
|
+
@FileMd5 = params['FileMd5']
|
666
|
+
@FileName = params['FileName']
|
667
|
+
@FileType = params['FileType']
|
668
|
+
@Id = params['Id']
|
669
|
+
@Label = params['Label']
|
670
|
+
@Status = params['Status']
|
671
|
+
@CompressFileUrl = params['CompressFileUrl']
|
672
|
+
@FileUrl = params['FileUrl']
|
673
|
+
end
|
674
|
+
end
|
675
|
+
|
676
|
+
# 筛选数据结构
|
677
|
+
class Filter < TencentCloud::Common::AbstractModel
|
678
|
+
# @param Name: 需要过滤的字段
|
679
|
+
# @type Name: String
|
680
|
+
# @param Value: 需要过滤字段的值
|
681
|
+
# @type Value: String
|
682
|
+
|
683
|
+
attr_accessor :Name, :Value
|
684
|
+
|
685
|
+
def initialize(name=nil, value=nil)
|
686
|
+
@Name = name
|
687
|
+
@Value = value
|
688
|
+
end
|
689
|
+
|
690
|
+
def deserialize(params)
|
691
|
+
@Name = params['Name']
|
692
|
+
@Value = params['Value']
|
693
|
+
end
|
694
|
+
end
|
695
|
+
|
696
|
+
# 图片识别结果详情
|
697
|
+
class ImageData < TencentCloud::Common::AbstractModel
|
698
|
+
# @param EvilFlag: 是否恶意 0:正常 1:可疑
|
699
|
+
# @type EvilFlag: Integer
|
700
|
+
# @param EvilType: 恶意类型
|
701
|
+
# 100:正常
|
702
|
+
# 20001:政治
|
703
|
+
# 20002:色情
|
704
|
+
# 20006:涉毒违法
|
705
|
+
# 20007:谩骂
|
706
|
+
# 20103:性感
|
707
|
+
# 24001:暴恐
|
708
|
+
# @type EvilType: Integer
|
709
|
+
# @param CodeDetect: 图片二维码详情
|
710
|
+
# @type CodeDetect: :class:`Tencentcloud::Cms.v20190321.models.CodeDetect`
|
711
|
+
# @param HotDetect: 图片性感详情
|
712
|
+
# @type HotDetect: :class:`Tencentcloud::Cms.v20190321.models.ImageHotDetect`
|
713
|
+
# @param IllegalDetect: 图片违法详情
|
714
|
+
# @type IllegalDetect: :class:`Tencentcloud::Cms.v20190321.models.ImageIllegalDetect`
|
715
|
+
# @param LogoDetect: logo详情
|
716
|
+
# @type LogoDetect: :class:`Tencentcloud::Cms.v20190321.models.LogoDetail`
|
717
|
+
# @param OCRDetect: 图片OCR详情
|
718
|
+
# @type OCRDetect: :class:`Tencentcloud::Cms.v20190321.models.OCRDetect`
|
719
|
+
# @param PhoneDetect: 手机检测详情
|
720
|
+
# @type PhoneDetect: :class:`Tencentcloud::Cms.v20190321.models.PhoneDetect`
|
721
|
+
# @param PolityDetect: 图片涉政详情
|
722
|
+
# @type PolityDetect: :class:`Tencentcloud::Cms.v20190321.models.ImagePolityDetect`
|
723
|
+
# @param PornDetect: 图片涉黄详情
|
724
|
+
# @type PornDetect: :class:`Tencentcloud::Cms.v20190321.models.ImagePornDetect`
|
725
|
+
# @param Similar: 图片相似度详情
|
726
|
+
# @type Similar: :class:`Tencentcloud::Cms.v20190321.models.Similar`
|
727
|
+
# @param TerrorDetect: 图片暴恐详情
|
728
|
+
# @type TerrorDetect: :class:`Tencentcloud::Cms.v20190321.models.ImageTerrorDetect`
|
729
|
+
|
730
|
+
attr_accessor :EvilFlag, :EvilType, :CodeDetect, :HotDetect, :IllegalDetect, :LogoDetect, :OCRDetect, :PhoneDetect, :PolityDetect, :PornDetect, :Similar, :TerrorDetect
|
731
|
+
|
732
|
+
def initialize(evilflag=nil, eviltype=nil, codedetect=nil, hotdetect=nil, illegaldetect=nil, logodetect=nil, ocrdetect=nil, phonedetect=nil, politydetect=nil, porndetect=nil, similar=nil, terrordetect=nil)
|
733
|
+
@EvilFlag = evilflag
|
734
|
+
@EvilType = eviltype
|
735
|
+
@CodeDetect = codedetect
|
736
|
+
@HotDetect = hotdetect
|
737
|
+
@IllegalDetect = illegaldetect
|
738
|
+
@LogoDetect = logodetect
|
739
|
+
@OCRDetect = ocrdetect
|
740
|
+
@PhoneDetect = phonedetect
|
741
|
+
@PolityDetect = politydetect
|
742
|
+
@PornDetect = porndetect
|
743
|
+
@Similar = similar
|
744
|
+
@TerrorDetect = terrordetect
|
745
|
+
end
|
746
|
+
|
747
|
+
def deserialize(params)
|
748
|
+
@EvilFlag = params['EvilFlag']
|
749
|
+
@EvilType = params['EvilType']
|
750
|
+
unless params['CodeDetect'].nil?
|
751
|
+
@CodeDetect = CodeDetect.new
|
752
|
+
@CodeDetect.deserialize(params['CodeDetect'])
|
753
|
+
end
|
754
|
+
unless params['HotDetect'].nil?
|
755
|
+
@HotDetect = ImageHotDetect.new
|
756
|
+
@HotDetect.deserialize(params['HotDetect'])
|
757
|
+
end
|
758
|
+
unless params['IllegalDetect'].nil?
|
759
|
+
@IllegalDetect = ImageIllegalDetect.new
|
760
|
+
@IllegalDetect.deserialize(params['IllegalDetect'])
|
761
|
+
end
|
762
|
+
unless params['LogoDetect'].nil?
|
763
|
+
@LogoDetect = LogoDetail.new
|
764
|
+
@LogoDetect.deserialize(params['LogoDetect'])
|
765
|
+
end
|
766
|
+
unless params['OCRDetect'].nil?
|
767
|
+
@OCRDetect = OCRDetect.new
|
768
|
+
@OCRDetect.deserialize(params['OCRDetect'])
|
769
|
+
end
|
770
|
+
unless params['PhoneDetect'].nil?
|
771
|
+
@PhoneDetect = PhoneDetect.new
|
772
|
+
@PhoneDetect.deserialize(params['PhoneDetect'])
|
773
|
+
end
|
774
|
+
unless params['PolityDetect'].nil?
|
775
|
+
@PolityDetect = ImagePolityDetect.new
|
776
|
+
@PolityDetect.deserialize(params['PolityDetect'])
|
777
|
+
end
|
778
|
+
unless params['PornDetect'].nil?
|
779
|
+
@PornDetect = ImagePornDetect.new
|
780
|
+
@PornDetect.deserialize(params['PornDetect'])
|
781
|
+
end
|
782
|
+
unless params['Similar'].nil?
|
783
|
+
@Similar = Similar.new
|
784
|
+
@Similar.deserialize(params['Similar'])
|
785
|
+
end
|
786
|
+
unless params['TerrorDetect'].nil?
|
787
|
+
@TerrorDetect = ImageTerrorDetect.new
|
788
|
+
@TerrorDetect.deserialize(params['TerrorDetect'])
|
789
|
+
end
|
790
|
+
end
|
791
|
+
end
|
792
|
+
|
793
|
+
# 图片性感详情
|
794
|
+
class ImageHotDetect < TencentCloud::Common::AbstractModel
|
795
|
+
# @param EvilType: 恶意类型
|
796
|
+
# 100:正常
|
797
|
+
# 20103:性感
|
798
|
+
# @type EvilType: Integer
|
799
|
+
# @param HitFlag: 处置判定 0:正常 1:可疑
|
800
|
+
# @type HitFlag: Integer
|
801
|
+
# @param Keywords: 关键词明细
|
802
|
+
# @type Keywords: Array
|
803
|
+
# @param Labels: 性感标签:性感特征中文描述
|
804
|
+
# @type Labels: Array
|
805
|
+
# @param Score: 性感分:分值范围 0-100,分数越高性感倾向越明显
|
806
|
+
# @type Score: Integer
|
807
|
+
|
808
|
+
attr_accessor :EvilType, :HitFlag, :Keywords, :Labels, :Score
|
809
|
+
|
810
|
+
def initialize(eviltype=nil, hitflag=nil, keywords=nil, labels=nil, score=nil)
|
811
|
+
@EvilType = eviltype
|
812
|
+
@HitFlag = hitflag
|
813
|
+
@Keywords = keywords
|
814
|
+
@Labels = labels
|
815
|
+
@Score = score
|
816
|
+
end
|
817
|
+
|
818
|
+
def deserialize(params)
|
819
|
+
@EvilType = params['EvilType']
|
820
|
+
@HitFlag = params['HitFlag']
|
821
|
+
@Keywords = params['Keywords']
|
822
|
+
@Labels = params['Labels']
|
823
|
+
@Score = params['Score']
|
824
|
+
end
|
825
|
+
end
|
826
|
+
|
827
|
+
# 图片违法详情
|
828
|
+
class ImageIllegalDetect < TencentCloud::Common::AbstractModel
|
829
|
+
# @param EvilType: 恶意类型
|
830
|
+
# 100:正常
|
831
|
+
# 20006:涉毒违法
|
832
|
+
# @type EvilType: Integer
|
833
|
+
# @param HitFlag: 处置判定 0:正常 1:可疑
|
834
|
+
# @type HitFlag: Integer
|
835
|
+
# @param Keywords: 关键词明细
|
836
|
+
# @type Keywords: Array
|
837
|
+
# @param Labels: 违法标签:返回违法特征中文描述,如赌桌,枪支
|
838
|
+
# @type Labels: Array
|
839
|
+
# @param Score: 违法分:分值范围 0-100,分数越高违法倾向越明显
|
840
|
+
# @type Score: Integer
|
841
|
+
|
842
|
+
attr_accessor :EvilType, :HitFlag, :Keywords, :Labels, :Score
|
843
|
+
|
844
|
+
def initialize(eviltype=nil, hitflag=nil, keywords=nil, labels=nil, score=nil)
|
845
|
+
@EvilType = eviltype
|
846
|
+
@HitFlag = hitflag
|
847
|
+
@Keywords = keywords
|
848
|
+
@Labels = labels
|
849
|
+
@Score = score
|
850
|
+
end
|
851
|
+
|
852
|
+
def deserialize(params)
|
853
|
+
@EvilType = params['EvilType']
|
854
|
+
@HitFlag = params['HitFlag']
|
855
|
+
@Keywords = params['Keywords']
|
856
|
+
@Labels = params['Labels']
|
857
|
+
@Score = params['Score']
|
858
|
+
end
|
859
|
+
end
|
860
|
+
|
861
|
+
# ImageModeration请求参数结构体
|
862
|
+
class ImageModerationRequest < TencentCloud::Common::AbstractModel
|
863
|
+
# @param FileContent: 文件内容 Base64,与FileUrl必须二填一
|
864
|
+
# @type FileContent: String
|
865
|
+
# @param FileMD5: 文件MD5值
|
866
|
+
# @type FileMD5: String
|
867
|
+
# @param FileUrl: 文件地址
|
868
|
+
# @type FileUrl: String
|
869
|
+
|
870
|
+
attr_accessor :FileContent, :FileMD5, :FileUrl
|
871
|
+
|
872
|
+
def initialize(filecontent=nil, filemd5=nil, fileurl=nil)
|
873
|
+
@FileContent = filecontent
|
874
|
+
@FileMD5 = filemd5
|
875
|
+
@FileUrl = fileurl
|
876
|
+
end
|
877
|
+
|
878
|
+
def deserialize(params)
|
879
|
+
@FileContent = params['FileContent']
|
880
|
+
@FileMD5 = params['FileMD5']
|
881
|
+
@FileUrl = params['FileUrl']
|
882
|
+
end
|
883
|
+
end
|
884
|
+
|
885
|
+
# ImageModeration返回参数结构体
|
886
|
+
class ImageModerationResponse < TencentCloud::Common::AbstractModel
|
887
|
+
# @param Data: 识别结果
|
888
|
+
# @type Data: :class:`Tencentcloud::Cms.v20190321.models.ImageData`
|
889
|
+
# @param BusinessCode: 业务返回码
|
890
|
+
# @type BusinessCode: Integer
|
891
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
892
|
+
# @type RequestId: String
|
893
|
+
|
894
|
+
attr_accessor :Data, :BusinessCode, :RequestId
|
895
|
+
|
896
|
+
def initialize(data=nil, businesscode=nil, requestid=nil)
|
897
|
+
@Data = data
|
898
|
+
@BusinessCode = businesscode
|
899
|
+
@RequestId = requestid
|
900
|
+
end
|
901
|
+
|
902
|
+
def deserialize(params)
|
903
|
+
unless params['Data'].nil?
|
904
|
+
@Data = ImageData.new
|
905
|
+
@Data.deserialize(params['Data'])
|
906
|
+
end
|
907
|
+
@BusinessCode = params['BusinessCode']
|
908
|
+
@RequestId = params['RequestId']
|
909
|
+
end
|
910
|
+
end
|
911
|
+
|
912
|
+
# 图片涉政详情
|
913
|
+
class ImagePolityDetect < TencentCloud::Common::AbstractModel
|
914
|
+
# @param EvilType: 恶意类型
|
915
|
+
# 100:正常
|
916
|
+
# 20001:政治
|
917
|
+
# @type EvilType: Integer
|
918
|
+
# @param HitFlag: 处置判定 0:正常 1:可疑
|
919
|
+
# @type HitFlag: Integer
|
920
|
+
# @param PolityLogoDetail: 命中的logo标签信息
|
921
|
+
# @type PolityLogoDetail: Array
|
922
|
+
# @param FaceNames: 命中的人脸名称
|
923
|
+
# @type FaceNames: Array
|
924
|
+
# @param Keywords: 关键词明细
|
925
|
+
# @type Keywords: Array
|
926
|
+
# @param PolityItems: 命中的政治物品名称
|
927
|
+
# @type PolityItems: Array
|
928
|
+
# @param Score: 政治(人脸)分:分值范围 0-100,分数越高可疑程度越高
|
929
|
+
# @type Score: Integer
|
930
|
+
|
931
|
+
attr_accessor :EvilType, :HitFlag, :PolityLogoDetail, :FaceNames, :Keywords, :PolityItems, :Score
|
932
|
+
|
933
|
+
def initialize(eviltype=nil, hitflag=nil, politylogodetail=nil, facenames=nil, keywords=nil, polityitems=nil, score=nil)
|
934
|
+
@EvilType = eviltype
|
935
|
+
@HitFlag = hitflag
|
936
|
+
@PolityLogoDetail = politylogodetail
|
937
|
+
@FaceNames = facenames
|
938
|
+
@Keywords = keywords
|
939
|
+
@PolityItems = polityitems
|
940
|
+
@Score = score
|
941
|
+
end
|
942
|
+
|
943
|
+
def deserialize(params)
|
944
|
+
@EvilType = params['EvilType']
|
945
|
+
@HitFlag = params['HitFlag']
|
946
|
+
unless params['PolityLogoDetail'].nil?
|
947
|
+
@PolityLogoDetail = []
|
948
|
+
params['PolityLogoDetail'].each do |i|
|
949
|
+
logo_tmp = Logo.new
|
950
|
+
logo_tmp.deserialize(i)
|
951
|
+
@PolityLogoDetail << logo_tmp
|
952
|
+
end
|
953
|
+
end
|
954
|
+
@FaceNames = params['FaceNames']
|
955
|
+
@Keywords = params['Keywords']
|
956
|
+
@PolityItems = params['PolityItems']
|
957
|
+
@Score = params['Score']
|
958
|
+
end
|
959
|
+
end
|
960
|
+
|
961
|
+
# 图片涉黄详情
|
962
|
+
class ImagePornDetect < TencentCloud::Common::AbstractModel
|
963
|
+
# @param EvilType: 恶意类型
|
964
|
+
# 100:正常
|
965
|
+
# 20002:色情
|
966
|
+
# @type EvilType: Integer
|
967
|
+
# @param HitFlag: 处置判定 0:正常 1:可疑
|
968
|
+
# @type HitFlag: Integer
|
969
|
+
# @param Keywords: 关键词明细
|
970
|
+
# @type Keywords: Array
|
971
|
+
# @param Labels: 色情标签:色情特征中文描述
|
972
|
+
# @type Labels: Array
|
973
|
+
# @param Score: 色情分:分值范围 0-100,分数越高色情倾向越明显
|
974
|
+
# @type Score: Integer
|
975
|
+
|
976
|
+
attr_accessor :EvilType, :HitFlag, :Keywords, :Labels, :Score
|
977
|
+
|
978
|
+
def initialize(eviltype=nil, hitflag=nil, keywords=nil, labels=nil, score=nil)
|
979
|
+
@EvilType = eviltype
|
980
|
+
@HitFlag = hitflag
|
981
|
+
@Keywords = keywords
|
982
|
+
@Labels = labels
|
983
|
+
@Score = score
|
984
|
+
end
|
985
|
+
|
986
|
+
def deserialize(params)
|
987
|
+
@EvilType = params['EvilType']
|
988
|
+
@HitFlag = params['HitFlag']
|
989
|
+
@Keywords = params['Keywords']
|
990
|
+
@Labels = params['Labels']
|
991
|
+
@Score = params['Score']
|
992
|
+
end
|
993
|
+
end
|
994
|
+
|
995
|
+
# 图片暴恐详情
|
996
|
+
class ImageTerrorDetect < TencentCloud::Common::AbstractModel
|
997
|
+
# @param EvilType: 恶意类型
|
998
|
+
# 100:正常
|
999
|
+
# 24001:暴恐
|
1000
|
+
# @type EvilType: Integer
|
1001
|
+
# @param HitFlag: 处置判定 0:正常 1:可疑
|
1002
|
+
# @type HitFlag: Integer
|
1003
|
+
# @param Keywords: 关键词明细
|
1004
|
+
# @type Keywords: Array
|
1005
|
+
# @param Labels: 暴恐标签:返回暴恐特征中文描述
|
1006
|
+
# @type Labels: Array
|
1007
|
+
# @param Score: 暴恐分:分值范围0--100,分数越高暴恐倾向越明显
|
1008
|
+
# @type Score: Integer
|
1009
|
+
|
1010
|
+
attr_accessor :EvilType, :HitFlag, :Keywords, :Labels, :Score
|
1011
|
+
|
1012
|
+
def initialize(eviltype=nil, hitflag=nil, keywords=nil, labels=nil, score=nil)
|
1013
|
+
@EvilType = eviltype
|
1014
|
+
@HitFlag = hitflag
|
1015
|
+
@Keywords = keywords
|
1016
|
+
@Labels = labels
|
1017
|
+
@Score = score
|
1018
|
+
end
|
1019
|
+
|
1020
|
+
def deserialize(params)
|
1021
|
+
@EvilType = params['EvilType']
|
1022
|
+
@HitFlag = params['HitFlag']
|
1023
|
+
@Keywords = params['Keywords']
|
1024
|
+
@Labels = params['Labels']
|
1025
|
+
@Score = params['Score']
|
1026
|
+
end
|
1027
|
+
end
|
1028
|
+
|
1029
|
+
# Logo
|
1030
|
+
class Logo < TencentCloud::Common::AbstractModel
|
1031
|
+
# @param RrectF: logo图标坐标信息
|
1032
|
+
# @type RrectF: :class:`Tencentcloud::Cms.v20190321.models.RrectF`
|
1033
|
+
# @param Confidence: logo图标置信度
|
1034
|
+
# @type Confidence: Float
|
1035
|
+
# @param Name: logo图标名称
|
1036
|
+
# @type Name: String
|
1037
|
+
|
1038
|
+
attr_accessor :RrectF, :Confidence, :Name
|
1039
|
+
|
1040
|
+
def initialize(rrectf=nil, confidence=nil, name=nil)
|
1041
|
+
@RrectF = rrectf
|
1042
|
+
@Confidence = confidence
|
1043
|
+
@Name = name
|
1044
|
+
end
|
1045
|
+
|
1046
|
+
def deserialize(params)
|
1047
|
+
unless params['RrectF'].nil?
|
1048
|
+
@RrectF = RrectF.new
|
1049
|
+
@RrectF.deserialize(params['RrectF'])
|
1050
|
+
end
|
1051
|
+
@Confidence = params['Confidence']
|
1052
|
+
@Name = params['Name']
|
1053
|
+
end
|
1054
|
+
end
|
1055
|
+
|
1056
|
+
# LogoDetail
|
1057
|
+
class LogoDetail < TencentCloud::Common::AbstractModel
|
1058
|
+
# @param AppLogoDetail: 命中的Applogo详情
|
1059
|
+
# @type AppLogoDetail: Array
|
1060
|
+
|
1061
|
+
attr_accessor :AppLogoDetail
|
1062
|
+
|
1063
|
+
def initialize(applogodetail=nil)
|
1064
|
+
@AppLogoDetail = applogodetail
|
1065
|
+
end
|
1066
|
+
|
1067
|
+
def deserialize(params)
|
1068
|
+
unless params['AppLogoDetail'].nil?
|
1069
|
+
@AppLogoDetail = []
|
1070
|
+
params['AppLogoDetail'].each do |i|
|
1071
|
+
logo_tmp = Logo.new
|
1072
|
+
logo_tmp.deserialize(i)
|
1073
|
+
@AppLogoDetail << logo_tmp
|
1074
|
+
end
|
1075
|
+
end
|
1076
|
+
end
|
1077
|
+
end
|
1078
|
+
|
1079
|
+
# 人审审核数据相关信息
|
1080
|
+
class ManualReviewContent < TencentCloud::Common::AbstractModel
|
1081
|
+
# @param BatchId: 审核批次号
|
1082
|
+
# @type BatchId: String
|
1083
|
+
# @param Content: 审核内容
|
1084
|
+
# @type Content: String
|
1085
|
+
# @param ContentId: 消息Id
|
1086
|
+
# @type ContentId: String
|
1087
|
+
# @param ContentType: 审核内容类型 1 图片 2 视频 3 文本 4 音频
|
1088
|
+
# @type ContentType: Integer
|
1089
|
+
# @param UserInfo: 用户信息
|
1090
|
+
# @type UserInfo: :class:`Tencentcloud::Cms.v20190321.models.User`
|
1091
|
+
# @param AutoDetailCode: 机器审核类型,与腾讯机器审核定义一致
|
1092
|
+
# 100 正常
|
1093
|
+
# 20001 政治
|
1094
|
+
# 20002 色情
|
1095
|
+
# 20006 违法
|
1096
|
+
# 20007 谩骂
|
1097
|
+
# 24001 暴恐
|
1098
|
+
# 20105 广告
|
1099
|
+
# 20103 性感
|
1100
|
+
# @type AutoDetailCode: Integer
|
1101
|
+
# @param AutoResult: 机器审核结果 0 放过 1 拦截
|
1102
|
+
# @type AutoResult: Integer
|
1103
|
+
# @param CallBackInfo: 回调信息标识,回传数据时原样返回
|
1104
|
+
# @type CallBackInfo: String
|
1105
|
+
# @param CreateTime: 创建时间 格式“2020-01-01 00:00:12”
|
1106
|
+
# @type CreateTime: String
|
1107
|
+
# @param Priority: 审核优先级,可选值 [1,2,3,4],其中 1 最高,4 最低
|
1108
|
+
# @type Priority: Integer
|
1109
|
+
# @param Title: 标题
|
1110
|
+
# @type Title: String
|
1111
|
+
|
1112
|
+
attr_accessor :BatchId, :Content, :ContentId, :ContentType, :UserInfo, :AutoDetailCode, :AutoResult, :CallBackInfo, :CreateTime, :Priority, :Title
|
1113
|
+
|
1114
|
+
def initialize(batchid=nil, content=nil, contentid=nil, contenttype=nil, userinfo=nil, autodetailcode=nil, autoresult=nil, callbackinfo=nil, createtime=nil, priority=nil, title=nil)
|
1115
|
+
@BatchId = batchid
|
1116
|
+
@Content = content
|
1117
|
+
@ContentId = contentid
|
1118
|
+
@ContentType = contenttype
|
1119
|
+
@UserInfo = userinfo
|
1120
|
+
@AutoDetailCode = autodetailcode
|
1121
|
+
@AutoResult = autoresult
|
1122
|
+
@CallBackInfo = callbackinfo
|
1123
|
+
@CreateTime = createtime
|
1124
|
+
@Priority = priority
|
1125
|
+
@Title = title
|
1126
|
+
end
|
1127
|
+
|
1128
|
+
def deserialize(params)
|
1129
|
+
@BatchId = params['BatchId']
|
1130
|
+
@Content = params['Content']
|
1131
|
+
@ContentId = params['ContentId']
|
1132
|
+
@ContentType = params['ContentType']
|
1133
|
+
unless params['UserInfo'].nil?
|
1134
|
+
@UserInfo = User.new
|
1135
|
+
@UserInfo.deserialize(params['UserInfo'])
|
1136
|
+
end
|
1137
|
+
@AutoDetailCode = params['AutoDetailCode']
|
1138
|
+
@AutoResult = params['AutoResult']
|
1139
|
+
@CallBackInfo = params['CallBackInfo']
|
1140
|
+
@CreateTime = params['CreateTime']
|
1141
|
+
@Priority = params['Priority']
|
1142
|
+
@Title = params['Title']
|
1143
|
+
end
|
1144
|
+
end
|
1145
|
+
|
1146
|
+
# 人工审核接口返回结果,由ContentId和BatchId组成
|
1147
|
+
class ManualReviewData < TencentCloud::Common::AbstractModel
|
1148
|
+
# @param BatchId: 人审内容批次号
|
1149
|
+
# @type BatchId: String
|
1150
|
+
# @param ContentId: 人审内容ID
|
1151
|
+
# @type ContentId: String
|
1152
|
+
|
1153
|
+
attr_accessor :BatchId, :ContentId
|
1154
|
+
|
1155
|
+
def initialize(batchid=nil, contentid=nil)
|
1156
|
+
@BatchId = batchid
|
1157
|
+
@ContentId = contentid
|
1158
|
+
end
|
1159
|
+
|
1160
|
+
def deserialize(params)
|
1161
|
+
@BatchId = params['BatchId']
|
1162
|
+
@ContentId = params['ContentId']
|
1163
|
+
end
|
1164
|
+
end
|
1165
|
+
|
1166
|
+
# ManualReview请求参数结构体
|
1167
|
+
class ManualReviewRequest < TencentCloud::Common::AbstractModel
|
1168
|
+
# @param ReviewContent: 人工审核信息
|
1169
|
+
# @type ReviewContent: :class:`Tencentcloud::Cms.v20190321.models.ManualReviewContent`
|
1170
|
+
|
1171
|
+
attr_accessor :ReviewContent
|
1172
|
+
|
1173
|
+
def initialize(reviewcontent=nil)
|
1174
|
+
@ReviewContent = reviewcontent
|
1175
|
+
end
|
1176
|
+
|
1177
|
+
def deserialize(params)
|
1178
|
+
unless params['ReviewContent'].nil?
|
1179
|
+
@ReviewContent = ManualReviewContent.new
|
1180
|
+
@ReviewContent.deserialize(params['ReviewContent'])
|
1181
|
+
end
|
1182
|
+
end
|
1183
|
+
end
|
1184
|
+
|
1185
|
+
# ManualReview返回参数结构体
|
1186
|
+
class ManualReviewResponse < TencentCloud::Common::AbstractModel
|
1187
|
+
# @param Data: 人审接口同步响应结果
|
1188
|
+
# @type Data: :class:`Tencentcloud::Cms.v20190321.models.ManualReviewData`
|
1189
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1190
|
+
# @type RequestId: String
|
1191
|
+
|
1192
|
+
attr_accessor :Data, :RequestId
|
1193
|
+
|
1194
|
+
def initialize(data=nil, requestid=nil)
|
1195
|
+
@Data = data
|
1196
|
+
@RequestId = requestid
|
1197
|
+
end
|
1198
|
+
|
1199
|
+
def deserialize(params)
|
1200
|
+
unless params['Data'].nil?
|
1201
|
+
@Data = ManualReviewData.new
|
1202
|
+
@Data.deserialize(params['Data'])
|
1203
|
+
end
|
1204
|
+
@RequestId = params['RequestId']
|
1205
|
+
end
|
1206
|
+
end
|
1207
|
+
|
1208
|
+
# OCR识别结果详情
|
1209
|
+
class OCRDetect < TencentCloud::Common::AbstractModel
|
1210
|
+
# @param Item: 识别到的详细信息
|
1211
|
+
# @type Item: Array
|
1212
|
+
# @param TextInfo: 识别到的文本信息
|
1213
|
+
# @type TextInfo: String
|
1214
|
+
|
1215
|
+
attr_accessor :Item, :TextInfo
|
1216
|
+
|
1217
|
+
def initialize(item=nil, textinfo=nil)
|
1218
|
+
@Item = item
|
1219
|
+
@TextInfo = textinfo
|
1220
|
+
end
|
1221
|
+
|
1222
|
+
def deserialize(params)
|
1223
|
+
unless params['Item'].nil?
|
1224
|
+
@Item = []
|
1225
|
+
params['Item'].each do |i|
|
1226
|
+
ocritem_tmp = OCRItem.new
|
1227
|
+
ocritem_tmp.deserialize(i)
|
1228
|
+
@Item << ocritem_tmp
|
1229
|
+
end
|
1230
|
+
end
|
1231
|
+
@TextInfo = params['TextInfo']
|
1232
|
+
end
|
1233
|
+
end
|
1234
|
+
|
1235
|
+
# OCR详情
|
1236
|
+
class OCRItem < TencentCloud::Common::AbstractModel
|
1237
|
+
# @param TextPosition: 检测到的文本坐标信息
|
1238
|
+
# @type TextPosition: :class:`Tencentcloud::Cms.v20190321.models.Coordinate`
|
1239
|
+
# @param EvilLabel: 文本命中具体标签
|
1240
|
+
# @type EvilLabel: String
|
1241
|
+
# @param EvilType: 文本命中恶意违规类型
|
1242
|
+
# @type EvilType: Integer
|
1243
|
+
# @param Keywords: 文本命中违规的关键词
|
1244
|
+
# @type Keywords: Array
|
1245
|
+
# @param Rate: 文本涉嫌违规分值
|
1246
|
+
# @type Rate: Integer
|
1247
|
+
# @param TextContent: 检测到的文本信息
|
1248
|
+
# @type TextContent: String
|
1249
|
+
|
1250
|
+
attr_accessor :TextPosition, :EvilLabel, :EvilType, :Keywords, :Rate, :TextContent
|
1251
|
+
|
1252
|
+
def initialize(textposition=nil, evillabel=nil, eviltype=nil, keywords=nil, rate=nil, textcontent=nil)
|
1253
|
+
@TextPosition = textposition
|
1254
|
+
@EvilLabel = evillabel
|
1255
|
+
@EvilType = eviltype
|
1256
|
+
@Keywords = keywords
|
1257
|
+
@Rate = rate
|
1258
|
+
@TextContent = textcontent
|
1259
|
+
end
|
1260
|
+
|
1261
|
+
def deserialize(params)
|
1262
|
+
unless params['TextPosition'].nil?
|
1263
|
+
@TextPosition = Coordinate.new
|
1264
|
+
@TextPosition.deserialize(params['TextPosition'])
|
1265
|
+
end
|
1266
|
+
@EvilLabel = params['EvilLabel']
|
1267
|
+
@EvilType = params['EvilType']
|
1268
|
+
@Keywords = params['Keywords']
|
1269
|
+
@Rate = params['Rate']
|
1270
|
+
@TextContent = params['TextContent']
|
1271
|
+
end
|
1272
|
+
end
|
1273
|
+
|
1274
|
+
# 手机模型识别检测
|
1275
|
+
class PhoneDetect < TencentCloud::Common::AbstractModel
|
1276
|
+
# @param EvilType: 恶意类型
|
1277
|
+
# 100:正常
|
1278
|
+
# 21000:综合
|
1279
|
+
# @type EvilType: Integer
|
1280
|
+
# @param HitFlag: 处置判定 0:正常 1:可疑
|
1281
|
+
# @type HitFlag: Integer
|
1282
|
+
# @param Labels: 特征中文描述
|
1283
|
+
# @type Labels: Array
|
1284
|
+
# @param Score: 分值范围 0-100,分数越高倾向越明显
|
1285
|
+
# @type Score: Integer
|
1286
|
+
|
1287
|
+
attr_accessor :EvilType, :HitFlag, :Labels, :Score
|
1288
|
+
|
1289
|
+
def initialize(eviltype=nil, hitflag=nil, labels=nil, score=nil)
|
1290
|
+
@EvilType = eviltype
|
1291
|
+
@HitFlag = hitflag
|
1292
|
+
@Labels = labels
|
1293
|
+
@Score = score
|
1294
|
+
end
|
1295
|
+
|
1296
|
+
def deserialize(params)
|
1297
|
+
@EvilType = params['EvilType']
|
1298
|
+
@HitFlag = params['HitFlag']
|
1299
|
+
@Labels = params['Labels']
|
1300
|
+
@Score = params['Score']
|
1301
|
+
end
|
1302
|
+
end
|
1303
|
+
|
1304
|
+
# 账号风险检测结果
|
1305
|
+
class RiskDetails < TencentCloud::Common::AbstractModel
|
1306
|
+
# @param Keywords: 预留字段,暂时不使用
|
1307
|
+
# @type Keywords: Array
|
1308
|
+
# @param Label: 风险类别,RiskAccount,RiskIP, RiskIMEI
|
1309
|
+
# @type Label: String
|
1310
|
+
# @param Lable: 预留字段,暂时不用
|
1311
|
+
# @type Lable: String
|
1312
|
+
# @param Level: 风险等级,1:疑似,2:恶意
|
1313
|
+
# @type Level: Integer
|
1314
|
+
|
1315
|
+
attr_accessor :Keywords, :Label, :Lable, :Level
|
1316
|
+
|
1317
|
+
def initialize(keywords=nil, label=nil, lable=nil, level=nil)
|
1318
|
+
@Keywords = keywords
|
1319
|
+
@Label = label
|
1320
|
+
@Lable = lable
|
1321
|
+
@Level = level
|
1322
|
+
end
|
1323
|
+
|
1324
|
+
def deserialize(params)
|
1325
|
+
@Keywords = params['Keywords']
|
1326
|
+
@Label = params['Label']
|
1327
|
+
@Lable = params['Lable']
|
1328
|
+
@Level = params['Level']
|
1329
|
+
end
|
1330
|
+
end
|
1331
|
+
|
1332
|
+
# logo位置信息
|
1333
|
+
class RrectF < TencentCloud::Common::AbstractModel
|
1334
|
+
# @param Cx: logo横坐标
|
1335
|
+
# @type Cx: Float
|
1336
|
+
# @param Cy: logo纵坐标
|
1337
|
+
# @type Cy: Float
|
1338
|
+
# @param Height: logo图标高度
|
1339
|
+
# @type Height: Float
|
1340
|
+
# @param Rotate: logo图标中心旋转度
|
1341
|
+
# @type Rotate: Float
|
1342
|
+
# @param Width: logo图标宽度
|
1343
|
+
# @type Width: Float
|
1344
|
+
|
1345
|
+
attr_accessor :Cx, :Cy, :Height, :Rotate, :Width
|
1346
|
+
|
1347
|
+
def initialize(cx=nil, cy=nil, height=nil, rotate=nil, width=nil)
|
1348
|
+
@Cx = cx
|
1349
|
+
@Cy = cy
|
1350
|
+
@Height = height
|
1351
|
+
@Rotate = rotate
|
1352
|
+
@Width = width
|
1353
|
+
end
|
1354
|
+
|
1355
|
+
def deserialize(params)
|
1356
|
+
@Cx = params['Cx']
|
1357
|
+
@Cy = params['Cy']
|
1358
|
+
@Height = params['Height']
|
1359
|
+
@Rotate = params['Rotate']
|
1360
|
+
@Width = params['Width']
|
1361
|
+
end
|
1362
|
+
end
|
1363
|
+
|
1364
|
+
# 相似度详情
|
1365
|
+
class Similar < TencentCloud::Common::AbstractModel
|
1366
|
+
# @param EvilType: 恶意类型
|
1367
|
+
# 100:正常
|
1368
|
+
# 20001:政治
|
1369
|
+
# 20002:色情
|
1370
|
+
# 20006:涉毒违法
|
1371
|
+
# 20007:谩骂
|
1372
|
+
# 24001:暴恐
|
1373
|
+
# @type EvilType: Integer
|
1374
|
+
# @param HitFlag: 处置判定 0:未匹配到 1:恶意 2:白样本
|
1375
|
+
# @type HitFlag: Integer
|
1376
|
+
# @param SeedUrl: 返回的种子url
|
1377
|
+
# @type SeedUrl: String
|
1378
|
+
|
1379
|
+
attr_accessor :EvilType, :HitFlag, :SeedUrl
|
1380
|
+
|
1381
|
+
def initialize(eviltype=nil, hitflag=nil, seedurl=nil)
|
1382
|
+
@EvilType = eviltype
|
1383
|
+
@HitFlag = hitflag
|
1384
|
+
@SeedUrl = seedurl
|
1385
|
+
end
|
1386
|
+
|
1387
|
+
def deserialize(params)
|
1388
|
+
@EvilType = params['EvilType']
|
1389
|
+
@HitFlag = params['HitFlag']
|
1390
|
+
@SeedUrl = params['SeedUrl']
|
1391
|
+
end
|
1392
|
+
end
|
1393
|
+
|
1394
|
+
# 文本识别结果详情
|
1395
|
+
class TextData < TencentCloud::Common::AbstractModel
|
1396
|
+
# @param EvilFlag: 是否恶意 0:正常 1:可疑
|
1397
|
+
# @type EvilFlag: Integer
|
1398
|
+
# @param EvilType: 恶意类型
|
1399
|
+
# 100:正常
|
1400
|
+
# 20001:政治
|
1401
|
+
# 20002:色情
|
1402
|
+
# 20006:涉毒违法
|
1403
|
+
# 20007:谩骂
|
1404
|
+
# 20105:广告引流
|
1405
|
+
# 24001:暴恐
|
1406
|
+
# @type EvilType: Integer
|
1407
|
+
# @param Common: 消息类公共相关参数
|
1408
|
+
# @type Common: :class:`Tencentcloud::Cms.v20190321.models.TextOutputComm`
|
1409
|
+
# @param CustomResult: 返回的自定义词库结果
|
1410
|
+
# @type CustomResult: Array
|
1411
|
+
# @param DetailResult: 返回的详细结果
|
1412
|
+
# @type DetailResult: Array
|
1413
|
+
# @param ID: 消息类ID信息
|
1414
|
+
# @type ID: :class:`Tencentcloud::Cms.v20190321.models.TextOutputID`
|
1415
|
+
# @param Res: 消息类输出结果
|
1416
|
+
# @type Res: :class:`Tencentcloud::Cms.v20190321.models.TextOutputRes`
|
1417
|
+
# @param RiskDetails: 账号风险检测结果
|
1418
|
+
# @type RiskDetails: Array
|
1419
|
+
# @param BizType: 最终使用的BizType
|
1420
|
+
# @type BizType: Integer
|
1421
|
+
# @param DataId: 和请求中的DataId一致,原样返回
|
1422
|
+
# @type DataId: String
|
1423
|
+
# @param EvilLabel: 恶意标签,Normal:正常,Polity:涉政,Porn:色情,Illegal:违法,Abuse:谩骂,Terror:暴恐,Ad:广告,Custom:自定义关键词
|
1424
|
+
# @type EvilLabel: String
|
1425
|
+
# @param Extra: 输出的其他信息,不同客户内容不同
|
1426
|
+
# @type Extra: String
|
1427
|
+
# @param Keywords: 命中的关键词
|
1428
|
+
# @type Keywords: Array
|
1429
|
+
# @param Score: 命中的模型分值
|
1430
|
+
# @type Score: Integer
|
1431
|
+
# @param Suggestion: 建议值,Block:打击,Review:待复审,Normal:正常
|
1432
|
+
# @type Suggestion: String
|
1433
|
+
|
1434
|
+
attr_accessor :EvilFlag, :EvilType, :Common, :CustomResult, :DetailResult, :ID, :Res, :RiskDetails, :BizType, :DataId, :EvilLabel, :Extra, :Keywords, :Score, :Suggestion
|
1435
|
+
|
1436
|
+
def initialize(evilflag=nil, eviltype=nil, common=nil, customresult=nil, detailresult=nil, id=nil, res=nil, riskdetails=nil, biztype=nil, dataid=nil, evillabel=nil, extra=nil, keywords=nil, score=nil, suggestion=nil)
|
1437
|
+
@EvilFlag = evilflag
|
1438
|
+
@EvilType = eviltype
|
1439
|
+
@Common = common
|
1440
|
+
@CustomResult = customresult
|
1441
|
+
@DetailResult = detailresult
|
1442
|
+
@ID = id
|
1443
|
+
@Res = res
|
1444
|
+
@RiskDetails = riskdetails
|
1445
|
+
@BizType = biztype
|
1446
|
+
@DataId = dataid
|
1447
|
+
@EvilLabel = evillabel
|
1448
|
+
@Extra = extra
|
1449
|
+
@Keywords = keywords
|
1450
|
+
@Score = score
|
1451
|
+
@Suggestion = suggestion
|
1452
|
+
end
|
1453
|
+
|
1454
|
+
def deserialize(params)
|
1455
|
+
@EvilFlag = params['EvilFlag']
|
1456
|
+
@EvilType = params['EvilType']
|
1457
|
+
unless params['Common'].nil?
|
1458
|
+
@Common = TextOutputComm.new
|
1459
|
+
@Common.deserialize(params['Common'])
|
1460
|
+
end
|
1461
|
+
unless params['CustomResult'].nil?
|
1462
|
+
@CustomResult = []
|
1463
|
+
params['CustomResult'].each do |i|
|
1464
|
+
customresult_tmp = CustomResult.new
|
1465
|
+
customresult_tmp.deserialize(i)
|
1466
|
+
@CustomResult << customresult_tmp
|
1467
|
+
end
|
1468
|
+
end
|
1469
|
+
unless params['DetailResult'].nil?
|
1470
|
+
@DetailResult = []
|
1471
|
+
params['DetailResult'].each do |i|
|
1472
|
+
detailresult_tmp = DetailResult.new
|
1473
|
+
detailresult_tmp.deserialize(i)
|
1474
|
+
@DetailResult << detailresult_tmp
|
1475
|
+
end
|
1476
|
+
end
|
1477
|
+
unless params['ID'].nil?
|
1478
|
+
@ID = TextOutputID.new
|
1479
|
+
@ID.deserialize(params['ID'])
|
1480
|
+
end
|
1481
|
+
unless params['Res'].nil?
|
1482
|
+
@Res = TextOutputRes.new
|
1483
|
+
@Res.deserialize(params['Res'])
|
1484
|
+
end
|
1485
|
+
unless params['RiskDetails'].nil?
|
1486
|
+
@RiskDetails = []
|
1487
|
+
params['RiskDetails'].each do |i|
|
1488
|
+
riskdetails_tmp = RiskDetails.new
|
1489
|
+
riskdetails_tmp.deserialize(i)
|
1490
|
+
@RiskDetails << riskdetails_tmp
|
1491
|
+
end
|
1492
|
+
end
|
1493
|
+
@BizType = params['BizType']
|
1494
|
+
@DataId = params['DataId']
|
1495
|
+
@EvilLabel = params['EvilLabel']
|
1496
|
+
@Extra = params['Extra']
|
1497
|
+
@Keywords = params['Keywords']
|
1498
|
+
@Score = params['Score']
|
1499
|
+
@Suggestion = params['Suggestion']
|
1500
|
+
end
|
1501
|
+
end
|
1502
|
+
|
1503
|
+
# TextModeration请求参数结构体
|
1504
|
+
class TextModerationRequest < TencentCloud::Common::AbstractModel
|
1505
|
+
# @param Content: 文本内容Base64编码。原文长度需小于15000字节,即5000个汉字以内。
|
1506
|
+
# @type Content: String
|
1507
|
+
# @param Device: 设备相关信息
|
1508
|
+
# @type Device: :class:`Tencentcloud::Cms.v20190321.models.Device`
|
1509
|
+
# @param User: 用户相关信息
|
1510
|
+
# @type User: :class:`Tencentcloud::Cms.v20190321.models.User`
|
1511
|
+
# @param BizType: 该字段用于标识业务场景。您可以在内容安全控制台创建对应的ID,配置不同的内容审核策略,通过接口调用,默认不填为0,后端使用默认策略
|
1512
|
+
# @type BizType: Integer
|
1513
|
+
# @param DataId: 数据ID,英文字母、下划线、-组成,不超过64个字符
|
1514
|
+
# @type DataId: String
|
1515
|
+
# @param SdkAppId: 业务应用ID
|
1516
|
+
# @type SdkAppId: Integer
|
1517
|
+
|
1518
|
+
attr_accessor :Content, :Device, :User, :BizType, :DataId, :SdkAppId
|
1519
|
+
|
1520
|
+
def initialize(content=nil, device=nil, user=nil, biztype=nil, dataid=nil, sdkappid=nil)
|
1521
|
+
@Content = content
|
1522
|
+
@Device = device
|
1523
|
+
@User = user
|
1524
|
+
@BizType = biztype
|
1525
|
+
@DataId = dataid
|
1526
|
+
@SdkAppId = sdkappid
|
1527
|
+
end
|
1528
|
+
|
1529
|
+
def deserialize(params)
|
1530
|
+
@Content = params['Content']
|
1531
|
+
unless params['Device'].nil?
|
1532
|
+
@Device = Device.new
|
1533
|
+
@Device.deserialize(params['Device'])
|
1534
|
+
end
|
1535
|
+
unless params['User'].nil?
|
1536
|
+
@User = User.new
|
1537
|
+
@User.deserialize(params['User'])
|
1538
|
+
end
|
1539
|
+
@BizType = params['BizType']
|
1540
|
+
@DataId = params['DataId']
|
1541
|
+
@SdkAppId = params['SdkAppId']
|
1542
|
+
end
|
1543
|
+
end
|
1544
|
+
|
1545
|
+
# TextModeration返回参数结构体
|
1546
|
+
class TextModerationResponse < TencentCloud::Common::AbstractModel
|
1547
|
+
# @param Data: 识别结果
|
1548
|
+
# @type Data: :class:`Tencentcloud::Cms.v20190321.models.TextData`
|
1549
|
+
# @param BusinessCode: 业务返回码
|
1550
|
+
# @type BusinessCode: Integer
|
1551
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1552
|
+
# @type RequestId: String
|
1553
|
+
|
1554
|
+
attr_accessor :Data, :BusinessCode, :RequestId
|
1555
|
+
|
1556
|
+
def initialize(data=nil, businesscode=nil, requestid=nil)
|
1557
|
+
@Data = data
|
1558
|
+
@BusinessCode = businesscode
|
1559
|
+
@RequestId = requestid
|
1560
|
+
end
|
1561
|
+
|
1562
|
+
def deserialize(params)
|
1563
|
+
unless params['Data'].nil?
|
1564
|
+
@Data = TextData.new
|
1565
|
+
@Data.deserialize(params['Data'])
|
1566
|
+
end
|
1567
|
+
@BusinessCode = params['BusinessCode']
|
1568
|
+
@RequestId = params['RequestId']
|
1569
|
+
end
|
1570
|
+
end
|
1571
|
+
|
1572
|
+
# 消息类输出公共参数
|
1573
|
+
class TextOutputComm < TencentCloud::Common::AbstractModel
|
1574
|
+
# @param AppID: 接入业务的唯一ID
|
1575
|
+
# @type AppID: Integer
|
1576
|
+
# @param BUCtrlID: 接口唯一ID,旁路调用接口返回有该字段,标识唯一接口
|
1577
|
+
# @type BUCtrlID: Integer
|
1578
|
+
# @param SendTime: 消息发送时间
|
1579
|
+
# @type SendTime: Integer
|
1580
|
+
# @param Uin: 请求字段里的Common.Uin
|
1581
|
+
# @type Uin: Integer
|
1582
|
+
|
1583
|
+
attr_accessor :AppID, :BUCtrlID, :SendTime, :Uin
|
1584
|
+
|
1585
|
+
def initialize(appid=nil, buctrlid=nil, sendtime=nil, uin=nil)
|
1586
|
+
@AppID = appid
|
1587
|
+
@BUCtrlID = buctrlid
|
1588
|
+
@SendTime = sendtime
|
1589
|
+
@Uin = uin
|
1590
|
+
end
|
1591
|
+
|
1592
|
+
def deserialize(params)
|
1593
|
+
@AppID = params['AppID']
|
1594
|
+
@BUCtrlID = params['BUCtrlID']
|
1595
|
+
@SendTime = params['SendTime']
|
1596
|
+
@Uin = params['Uin']
|
1597
|
+
end
|
1598
|
+
end
|
1599
|
+
|
1600
|
+
# 消息类输出ID参数
|
1601
|
+
class TextOutputID < TencentCloud::Common::AbstractModel
|
1602
|
+
# @param MsgID: 接入业务的唯一ID
|
1603
|
+
# @type MsgID: String
|
1604
|
+
# @param Uin: 用户账号uin,对应请求协议里的Content.User.Uin。旁路结果有回带,串联结果无该字段
|
1605
|
+
# @type Uin: String
|
1606
|
+
|
1607
|
+
attr_accessor :MsgID, :Uin
|
1608
|
+
|
1609
|
+
def initialize(msgid=nil, uin=nil)
|
1610
|
+
@MsgID = msgid
|
1611
|
+
@Uin = uin
|
1612
|
+
end
|
1613
|
+
|
1614
|
+
def deserialize(params)
|
1615
|
+
@MsgID = params['MsgID']
|
1616
|
+
@Uin = params['Uin']
|
1617
|
+
end
|
1618
|
+
end
|
1619
|
+
|
1620
|
+
# 消息类输出结果参数
|
1621
|
+
class TextOutputRes < TencentCloud::Common::AbstractModel
|
1622
|
+
# @param Operator: 操作人,信安处理人企业微信ID
|
1623
|
+
# @type Operator: String
|
1624
|
+
# @param ResultCode: 恶意操作码,
|
1625
|
+
# 删除(1), 通过(2), 先审后发(100012)
|
1626
|
+
# @type ResultCode: Integer
|
1627
|
+
# @param ResultMsg: 操作结果备注说明
|
1628
|
+
# @type ResultMsg: String
|
1629
|
+
# @param ResultType: 恶意类型,广告(10001), 政治(20001), 色情(20002), 社会事件(20004), 暴力(20011), 低俗(20012), 违法犯罪(20006), 欺诈(20008), 版权(20013), 谣言(20104), 其他(21000)
|
1630
|
+
# @type ResultType: Integer
|
1631
|
+
|
1632
|
+
attr_accessor :Operator, :ResultCode, :ResultMsg, :ResultType
|
1633
|
+
|
1634
|
+
def initialize(operator=nil, resultcode=nil, resultmsg=nil, resulttype=nil)
|
1635
|
+
@Operator = operator
|
1636
|
+
@ResultCode = resultcode
|
1637
|
+
@ResultMsg = resultmsg
|
1638
|
+
@ResultType = resulttype
|
1639
|
+
end
|
1640
|
+
|
1641
|
+
def deserialize(params)
|
1642
|
+
@Operator = params['Operator']
|
1643
|
+
@ResultCode = params['ResultCode']
|
1644
|
+
@ResultMsg = params['ResultMsg']
|
1645
|
+
@ResultType = params['ResultType']
|
1646
|
+
end
|
1647
|
+
end
|
1648
|
+
|
1649
|
+
# 文字样本信息
|
1650
|
+
class TextSample < TencentCloud::Common::AbstractModel
|
1651
|
+
# @param Code: 处理错误码
|
1652
|
+
# @type Code: Integer
|
1653
|
+
# @param Content: 关键词
|
1654
|
+
# @type Content: String
|
1655
|
+
# @param CreatedAt: 创建时间戳
|
1656
|
+
# @type CreatedAt: Integer
|
1657
|
+
# @param EvilType: 恶意类型
|
1658
|
+
# 100:正常
|
1659
|
+
# 20001:政治
|
1660
|
+
# 20002:色情
|
1661
|
+
# 20006:涉毒违法
|
1662
|
+
# 20007:谩骂
|
1663
|
+
# 20105:广告引流
|
1664
|
+
# 24001:暴恐
|
1665
|
+
# @type EvilType: Integer
|
1666
|
+
# @param Id: 唯一标识
|
1667
|
+
# @type Id: String
|
1668
|
+
# @param Label: 样本类型
|
1669
|
+
# 1:黑库
|
1670
|
+
# 2:白库
|
1671
|
+
# @type Label: Integer
|
1672
|
+
# @param Status: 任务状态
|
1673
|
+
# 1:已完成
|
1674
|
+
# 2:处理中
|
1675
|
+
# @type Status: Integer
|
1676
|
+
|
1677
|
+
attr_accessor :Code, :Content, :CreatedAt, :EvilType, :Id, :Label, :Status
|
1678
|
+
|
1679
|
+
def initialize(code=nil, content=nil, createdat=nil, eviltype=nil, id=nil, label=nil, status=nil)
|
1680
|
+
@Code = code
|
1681
|
+
@Content = content
|
1682
|
+
@CreatedAt = createdat
|
1683
|
+
@EvilType = eviltype
|
1684
|
+
@Id = id
|
1685
|
+
@Label = label
|
1686
|
+
@Status = status
|
1687
|
+
end
|
1688
|
+
|
1689
|
+
def deserialize(params)
|
1690
|
+
@Code = params['Code']
|
1691
|
+
@Content = params['Content']
|
1692
|
+
@CreatedAt = params['CreatedAt']
|
1693
|
+
@EvilType = params['EvilType']
|
1694
|
+
@Id = params['Id']
|
1695
|
+
@Label = params['Label']
|
1696
|
+
@Status = params['Status']
|
1697
|
+
end
|
1698
|
+
end
|
1699
|
+
|
1700
|
+
# 用户相关信息
|
1701
|
+
class User < TencentCloud::Common::AbstractModel
|
1702
|
+
# @param AccountType: 账号类别,"1-微信uin 2-QQ号 3-微信群uin 4-qq群号 5-微信openid 6-QQopenid 7-其它string"
|
1703
|
+
# @type AccountType: Integer
|
1704
|
+
# @param Age: 年龄 默认0 未知
|
1705
|
+
# @type Age: Integer
|
1706
|
+
# @param Gender: 性别 默认0 未知 1 男性 2 女性
|
1707
|
+
# @type Gender: Integer
|
1708
|
+
# @param Level: 用户等级,默认0 未知 1 低 2 中 3 高
|
1709
|
+
# @type Level: Integer
|
1710
|
+
# @param Nickname: 用户昵称
|
1711
|
+
# @type Nickname: String
|
1712
|
+
# @param Phone: 手机号
|
1713
|
+
# @type Phone: String
|
1714
|
+
# @param UserId: 用户账号ID,如填写,会根据账号历史恶意情况,判定消息有害结果,特别是有利于可疑恶意情况下的辅助判断。账号可以填写微信uin、QQ号、微信openid、QQopenid、字符串等。该字段和账号类别确定唯一账号。
|
1715
|
+
# @type UserId: String
|
1716
|
+
|
1717
|
+
attr_accessor :AccountType, :Age, :Gender, :Level, :Nickname, :Phone, :UserId
|
1718
|
+
|
1719
|
+
def initialize(accounttype=nil, age=nil, gender=nil, level=nil, nickname=nil, phone=nil, userid=nil)
|
1720
|
+
@AccountType = accounttype
|
1721
|
+
@Age = age
|
1722
|
+
@Gender = gender
|
1723
|
+
@Level = level
|
1724
|
+
@Nickname = nickname
|
1725
|
+
@Phone = phone
|
1726
|
+
@UserId = userid
|
1727
|
+
end
|
1728
|
+
|
1729
|
+
def deserialize(params)
|
1730
|
+
@AccountType = params['AccountType']
|
1731
|
+
@Age = params['Age']
|
1732
|
+
@Gender = params['Gender']
|
1733
|
+
@Level = params['Level']
|
1734
|
+
@Nickname = params['Nickname']
|
1735
|
+
@Phone = params['Phone']
|
1736
|
+
@UserId = params['UserId']
|
1737
|
+
end
|
1738
|
+
end
|
1739
|
+
|
1740
|
+
end
|
1741
|
+
end
|
1742
|
+
end
|
1743
|
+
|