tencentcloud-sdk-cms 3.0.581 → 3.0.582

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