tencentcloud-sdk-ims 1.0.200
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/lib/VERSION +1 -0
- data/lib/tencentcloud-sdk-ims.rb +14 -0
- data/lib/v20200713/client.rb +124 -0
- data/lib/v20200713/models.rb +993 -0
- data/lib/v20201229/client.rb +96 -0
- data/lib/v20201229/models.rb +647 -0
- metadata +68 -0
@@ -0,0 +1,993 @@
|
|
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 Ims
|
19
|
+
module V20200713
|
20
|
+
# DescribeImageStat请求参数结构体
|
21
|
+
class DescribeImageStatRequest < TencentCloud::Common::AbstractModel
|
22
|
+
# @param AuditType: 审核类型 1: 机器审核; 2: 人工审核
|
23
|
+
# @type AuditType: Integer
|
24
|
+
# @param Filters: 查询条件
|
25
|
+
# @type Filters: Array
|
26
|
+
|
27
|
+
attr_accessor :AuditType, :Filters
|
28
|
+
|
29
|
+
def initialize(audittype=nil, filters=nil)
|
30
|
+
@AuditType = audittype
|
31
|
+
@Filters = filters
|
32
|
+
end
|
33
|
+
|
34
|
+
def deserialize(params)
|
35
|
+
@AuditType = params['AuditType']
|
36
|
+
unless params['Filters'].nil?
|
37
|
+
@Filters = []
|
38
|
+
params['Filters'].each do |i|
|
39
|
+
filters_tmp = Filters.new
|
40
|
+
filters_tmp.deserialize(i)
|
41
|
+
@Filters << filters_tmp
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
# DescribeImageStat返回参数结构体
|
48
|
+
class DescribeImageStatResponse < TencentCloud::Common::AbstractModel
|
49
|
+
# @param Overview: 识别结果统计
|
50
|
+
# @type Overview: :class:`Tencentcloud::Ims.v20200713.models.Overview`
|
51
|
+
# @param TrendCount: 识别量统计
|
52
|
+
# @type TrendCount: Array
|
53
|
+
# @param EvilCount: 违规数据分布
|
54
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
55
|
+
# @type EvilCount: Array
|
56
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
57
|
+
# @type RequestId: String
|
58
|
+
|
59
|
+
attr_accessor :Overview, :TrendCount, :EvilCount, :RequestId
|
60
|
+
|
61
|
+
def initialize(overview=nil, trendcount=nil, evilcount=nil, requestid=nil)
|
62
|
+
@Overview = overview
|
63
|
+
@TrendCount = trendcount
|
64
|
+
@EvilCount = evilcount
|
65
|
+
@RequestId = requestid
|
66
|
+
end
|
67
|
+
|
68
|
+
def deserialize(params)
|
69
|
+
unless params['Overview'].nil?
|
70
|
+
@Overview = Overview.new
|
71
|
+
@Overview.deserialize(params['Overview'])
|
72
|
+
end
|
73
|
+
unless params['TrendCount'].nil?
|
74
|
+
@TrendCount = []
|
75
|
+
params['TrendCount'].each do |i|
|
76
|
+
trendcount_tmp = TrendCount.new
|
77
|
+
trendcount_tmp.deserialize(i)
|
78
|
+
@TrendCount << trendcount_tmp
|
79
|
+
end
|
80
|
+
end
|
81
|
+
unless params['EvilCount'].nil?
|
82
|
+
@EvilCount = []
|
83
|
+
params['EvilCount'].each do |i|
|
84
|
+
evilcount_tmp = EvilCount.new
|
85
|
+
evilcount_tmp.deserialize(i)
|
86
|
+
@EvilCount << evilcount_tmp
|
87
|
+
end
|
88
|
+
end
|
89
|
+
@RequestId = params['RequestId']
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
# DescribeImsList请求参数结构体
|
94
|
+
class DescribeImsListRequest < TencentCloud::Common::AbstractModel
|
95
|
+
# @param PageIndex: 分页 页索引
|
96
|
+
# @type PageIndex: Integer
|
97
|
+
# @param PageSize: 分页条数
|
98
|
+
# @type PageSize: Integer
|
99
|
+
# @param Filters: 过滤条件
|
100
|
+
# @type Filters: Array
|
101
|
+
|
102
|
+
attr_accessor :PageIndex, :PageSize, :Filters
|
103
|
+
|
104
|
+
def initialize(pageindex=nil, pagesize=nil, filters=nil)
|
105
|
+
@PageIndex = pageindex
|
106
|
+
@PageSize = pagesize
|
107
|
+
@Filters = filters
|
108
|
+
end
|
109
|
+
|
110
|
+
def deserialize(params)
|
111
|
+
@PageIndex = params['PageIndex']
|
112
|
+
@PageSize = params['PageSize']
|
113
|
+
unless params['Filters'].nil?
|
114
|
+
@Filters = []
|
115
|
+
params['Filters'].each do |i|
|
116
|
+
filter_tmp = Filter.new
|
117
|
+
filter_tmp.deserialize(i)
|
118
|
+
@Filters << filter_tmp
|
119
|
+
end
|
120
|
+
end
|
121
|
+
end
|
122
|
+
end
|
123
|
+
|
124
|
+
# DescribeImsList返回参数结构体
|
125
|
+
class DescribeImsListResponse < TencentCloud::Common::AbstractModel
|
126
|
+
# @param ImsDetailSet: 返回列表数据----非必选,该参数暂未对外开放
|
127
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
128
|
+
# @type ImsDetailSet: Array
|
129
|
+
# @param TotalCount: 总条数
|
130
|
+
# @type TotalCount: Integer
|
131
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
132
|
+
# @type RequestId: String
|
133
|
+
|
134
|
+
attr_accessor :ImsDetailSet, :TotalCount, :RequestId
|
135
|
+
|
136
|
+
def initialize(imsdetailset=nil, totalcount=nil, requestid=nil)
|
137
|
+
@ImsDetailSet = imsdetailset
|
138
|
+
@TotalCount = totalcount
|
139
|
+
@RequestId = requestid
|
140
|
+
end
|
141
|
+
|
142
|
+
def deserialize(params)
|
143
|
+
unless params['ImsDetailSet'].nil?
|
144
|
+
@ImsDetailSet = []
|
145
|
+
params['ImsDetailSet'].each do |i|
|
146
|
+
imsdetail_tmp = ImsDetail.new
|
147
|
+
imsdetail_tmp.deserialize(i)
|
148
|
+
@ImsDetailSet << imsdetail_tmp
|
149
|
+
end
|
150
|
+
end
|
151
|
+
@TotalCount = params['TotalCount']
|
152
|
+
@RequestId = params['RequestId']
|
153
|
+
end
|
154
|
+
end
|
155
|
+
|
156
|
+
# Device结果
|
157
|
+
class Device < TencentCloud::Common::AbstractModel
|
158
|
+
# @param Ip: 发表消息设备IP
|
159
|
+
# @type Ip: String
|
160
|
+
# @param Mac: Mac地址
|
161
|
+
# @type Mac: String
|
162
|
+
# @param TokenId: 设备指纹Token
|
163
|
+
# @type TokenId: String
|
164
|
+
# @param DeviceId: 设备指纹ID
|
165
|
+
# @type DeviceId: String
|
166
|
+
# @param IMEI: 设备序列号
|
167
|
+
# @type IMEI: String
|
168
|
+
# @param IDFA: IOS设备,Identifier For Advertising(广告标识符)
|
169
|
+
# @type IDFA: String
|
170
|
+
# @param IDFV: IOS设备,IDFV - Identifier For Vendor(应用开发商标识符)
|
171
|
+
# @type IDFV: String
|
172
|
+
# @param IpType: IP地址类型 0 代表ipv4 1 代表ipv6
|
173
|
+
# @type IpType: Integer
|
174
|
+
|
175
|
+
attr_accessor :Ip, :Mac, :TokenId, :DeviceId, :IMEI, :IDFA, :IDFV, :IpType
|
176
|
+
|
177
|
+
def initialize(ip=nil, mac=nil, tokenid=nil, deviceid=nil, imei=nil, idfa=nil, idfv=nil, iptype=nil)
|
178
|
+
@Ip = ip
|
179
|
+
@Mac = mac
|
180
|
+
@TokenId = tokenid
|
181
|
+
@DeviceId = deviceid
|
182
|
+
@IMEI = imei
|
183
|
+
@IDFA = idfa
|
184
|
+
@IDFV = idfv
|
185
|
+
@IpType = iptype
|
186
|
+
end
|
187
|
+
|
188
|
+
def deserialize(params)
|
189
|
+
@Ip = params['Ip']
|
190
|
+
@Mac = params['Mac']
|
191
|
+
@TokenId = params['TokenId']
|
192
|
+
@DeviceId = params['DeviceId']
|
193
|
+
@IMEI = params['IMEI']
|
194
|
+
@IDFA = params['IDFA']
|
195
|
+
@IDFV = params['IDFV']
|
196
|
+
@IpType = params['IpType']
|
197
|
+
end
|
198
|
+
end
|
199
|
+
|
200
|
+
# 违规数据分布
|
201
|
+
class EvilCount < TencentCloud::Common::AbstractModel
|
202
|
+
# @param EvilType: ----非必选,该参数功能暂未对外开放
|
203
|
+
# @type EvilType: String
|
204
|
+
# @param Count: 分布类型总量
|
205
|
+
# @type Count: Integer
|
206
|
+
|
207
|
+
attr_accessor :EvilType, :Count
|
208
|
+
|
209
|
+
def initialize(eviltype=nil, count=nil)
|
210
|
+
@EvilType = eviltype
|
211
|
+
@Count = count
|
212
|
+
end
|
213
|
+
|
214
|
+
def deserialize(params)
|
215
|
+
@EvilType = params['EvilType']
|
216
|
+
@Count = params['Count']
|
217
|
+
end
|
218
|
+
end
|
219
|
+
|
220
|
+
# 描述键值对过滤器,用于条件过滤查询。例如过滤ID、名称、状态等
|
221
|
+
class Filter < TencentCloud::Common::AbstractModel
|
222
|
+
# @param Name: 过滤键的名称。
|
223
|
+
# @type Name: String
|
224
|
+
# @param Values: 一个或者多个过滤值。
|
225
|
+
# @type Values: Array
|
226
|
+
|
227
|
+
attr_accessor :Name, :Values
|
228
|
+
|
229
|
+
def initialize(name=nil, values=nil)
|
230
|
+
@Name = name
|
231
|
+
@Values = values
|
232
|
+
end
|
233
|
+
|
234
|
+
def deserialize(params)
|
235
|
+
@Name = params['Name']
|
236
|
+
@Values = params['Values']
|
237
|
+
end
|
238
|
+
end
|
239
|
+
|
240
|
+
# 图片过滤条件
|
241
|
+
class Filters < TencentCloud::Common::AbstractModel
|
242
|
+
# @param Name: 查询字段:
|
243
|
+
# 策略BizType
|
244
|
+
# 子账号SubUin
|
245
|
+
# 日期区间DateRange
|
246
|
+
# @type Name: String
|
247
|
+
# @param Values: 查询值
|
248
|
+
# @type Values: Array
|
249
|
+
|
250
|
+
attr_accessor :Name, :Values
|
251
|
+
|
252
|
+
def initialize(name=nil, values=nil)
|
253
|
+
@Name = name
|
254
|
+
@Values = values
|
255
|
+
end
|
256
|
+
|
257
|
+
def deserialize(params)
|
258
|
+
@Name = params['Name']
|
259
|
+
@Values = params['Values']
|
260
|
+
end
|
261
|
+
end
|
262
|
+
|
263
|
+
# ImageModeration请求参数结构体
|
264
|
+
class ImageModerationRequest < TencentCloud::Common::AbstractModel
|
265
|
+
# @param BizType: 该字段用于标识业务场景。您可以在内容安全控制台创建对应的ID,配置不同的内容审核策略,通过接口调用,默认不填为0,后端使用默认策略。 -- 该字段暂未开放。
|
266
|
+
# @type BizType: String
|
267
|
+
# @param DataId: 数据ID,可以由英文字母、数字、下划线、-、@#组成,不超过64个字符
|
268
|
+
# @type DataId: String
|
269
|
+
# @param FileContent: 数据Base64编码,图片检测接口为图片文件内容,大小不能超过5M
|
270
|
+
# @type FileContent: String
|
271
|
+
# @param FileUrl: 图片资源访问链接,__与FileContent参数必须二选一输入__
|
272
|
+
# @type FileUrl: String
|
273
|
+
# @param Interval: 截帧频率,GIF图/长图检测专用,默认值为0,表示只会检测GIF图/长图的第一帧
|
274
|
+
# @type Interval: Integer
|
275
|
+
# @param MaxFrames: GIF图/长图检测专用,代表均匀最大截帧数量,默认值为1(即只取GIF第一张,或长图不做切分处理(可能会造成处理超时))。
|
276
|
+
# @type MaxFrames: Integer
|
277
|
+
# @param User: 账号相关信息字段,填入后可识别违规风险账号。
|
278
|
+
# @type User: :class:`Tencentcloud::Ims.v20200713.models.User`
|
279
|
+
# @param Device: 设备相关信息字段,填入后可识别违规风险设备。
|
280
|
+
# @type Device: :class:`Tencentcloud::Ims.v20200713.models.Device`
|
281
|
+
|
282
|
+
attr_accessor :BizType, :DataId, :FileContent, :FileUrl, :Interval, :MaxFrames, :User, :Device
|
283
|
+
|
284
|
+
def initialize(biztype=nil, dataid=nil, filecontent=nil, fileurl=nil, interval=nil, maxframes=nil, user=nil, device=nil)
|
285
|
+
@BizType = biztype
|
286
|
+
@DataId = dataid
|
287
|
+
@FileContent = filecontent
|
288
|
+
@FileUrl = fileurl
|
289
|
+
@Interval = interval
|
290
|
+
@MaxFrames = maxframes
|
291
|
+
@User = user
|
292
|
+
@Device = device
|
293
|
+
end
|
294
|
+
|
295
|
+
def deserialize(params)
|
296
|
+
@BizType = params['BizType']
|
297
|
+
@DataId = params['DataId']
|
298
|
+
@FileContent = params['FileContent']
|
299
|
+
@FileUrl = params['FileUrl']
|
300
|
+
@Interval = params['Interval']
|
301
|
+
@MaxFrames = params['MaxFrames']
|
302
|
+
unless params['User'].nil?
|
303
|
+
@User = User.new
|
304
|
+
@User.deserialize(params['User'])
|
305
|
+
end
|
306
|
+
unless params['Device'].nil?
|
307
|
+
@Device = Device.new
|
308
|
+
@Device.deserialize(params['Device'])
|
309
|
+
end
|
310
|
+
end
|
311
|
+
end
|
312
|
+
|
313
|
+
# ImageModeration返回参数结构体
|
314
|
+
class ImageModerationResponse < TencentCloud::Common::AbstractModel
|
315
|
+
# @param HitFlag: 数据是否属于恶意类型。
|
316
|
+
# 0:正常,1:可疑;
|
317
|
+
# @type HitFlag: Integer
|
318
|
+
# @param Suggestion: 建议您拿到判断结果后的执行操作。
|
319
|
+
# 建议值,Block:建议屏蔽,Review:建议复审,Pass:建议通过
|
320
|
+
# @type Suggestion: String
|
321
|
+
# @param Label: 恶意标签,Normal:正常,Porn:色情,Abuse:谩骂,Ad:广告,Custom:自定义图片。
|
322
|
+
# 以及令人反感、不安全或不适宜的内容类型。
|
323
|
+
# @type Label: String
|
324
|
+
# @param SubLabel: 子标签名称,如色情--性行为;当未命中子标签时,返回空字符串;
|
325
|
+
# @type SubLabel: String
|
326
|
+
# @param Score: 机器判断当前分类的置信度,取值范围:0.00~100.00。分数越高,表示越有可能属于当前分类。
|
327
|
+
# (如:色情 99.99,则该样本属于色情的置信度非常高。)
|
328
|
+
# @type Score: Integer
|
329
|
+
# @param LabelResults: 智能模型的识别结果,包括涉黄、广告等令人反感、不安全或不适宜的内容类型识别结果。
|
330
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
331
|
+
# @type LabelResults: Array
|
332
|
+
# @param ObjectResults: 物体检测模型的审核结果,包括实体、广告台标/二维码等物体坐标信息与内容审核信息。
|
333
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
334
|
+
# @type ObjectResults: Array
|
335
|
+
# @param OcrResults: OCR识别后的文本识别结果,包括文本所处图片的OCR坐标信息以及图片文本的识别结果。
|
336
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
337
|
+
# @type OcrResults: Array
|
338
|
+
# @param LibResults: 基于图片风险库识别的结果。
|
339
|
+
# 风险库包括不安全黑库与正常白库的结果。
|
340
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
341
|
+
# @type LibResults: Array
|
342
|
+
# @param DataId: 请求参数中的DataId。
|
343
|
+
# @type DataId: String
|
344
|
+
# @param BizType: 您在入参时所填入的Biztype参数。 -- 该字段暂未开放。
|
345
|
+
# @type BizType: String
|
346
|
+
# @param Extra: 扩展字段,用于特定信息返回,不同客户/Biztype下返回信息不同。
|
347
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
348
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
349
|
+
# @type Extra: String
|
350
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
351
|
+
# @type RequestId: String
|
352
|
+
|
353
|
+
attr_accessor :HitFlag, :Suggestion, :Label, :SubLabel, :Score, :LabelResults, :ObjectResults, :OcrResults, :LibResults, :DataId, :BizType, :Extra, :RequestId
|
354
|
+
|
355
|
+
def initialize(hitflag=nil, suggestion=nil, label=nil, sublabel=nil, score=nil, labelresults=nil, objectresults=nil, ocrresults=nil, libresults=nil, dataid=nil, biztype=nil, extra=nil, requestid=nil)
|
356
|
+
@HitFlag = hitflag
|
357
|
+
@Suggestion = suggestion
|
358
|
+
@Label = label
|
359
|
+
@SubLabel = sublabel
|
360
|
+
@Score = score
|
361
|
+
@LabelResults = labelresults
|
362
|
+
@ObjectResults = objectresults
|
363
|
+
@OcrResults = ocrresults
|
364
|
+
@LibResults = libresults
|
365
|
+
@DataId = dataid
|
366
|
+
@BizType = biztype
|
367
|
+
@Extra = extra
|
368
|
+
@RequestId = requestid
|
369
|
+
end
|
370
|
+
|
371
|
+
def deserialize(params)
|
372
|
+
@HitFlag = params['HitFlag']
|
373
|
+
@Suggestion = params['Suggestion']
|
374
|
+
@Label = params['Label']
|
375
|
+
@SubLabel = params['SubLabel']
|
376
|
+
@Score = params['Score']
|
377
|
+
unless params['LabelResults'].nil?
|
378
|
+
@LabelResults = []
|
379
|
+
params['LabelResults'].each do |i|
|
380
|
+
labelresult_tmp = LabelResult.new
|
381
|
+
labelresult_tmp.deserialize(i)
|
382
|
+
@LabelResults << labelresult_tmp
|
383
|
+
end
|
384
|
+
end
|
385
|
+
unless params['ObjectResults'].nil?
|
386
|
+
@ObjectResults = []
|
387
|
+
params['ObjectResults'].each do |i|
|
388
|
+
objectresult_tmp = ObjectResult.new
|
389
|
+
objectresult_tmp.deserialize(i)
|
390
|
+
@ObjectResults << objectresult_tmp
|
391
|
+
end
|
392
|
+
end
|
393
|
+
unless params['OcrResults'].nil?
|
394
|
+
@OcrResults = []
|
395
|
+
params['OcrResults'].each do |i|
|
396
|
+
ocrresult_tmp = OcrResult.new
|
397
|
+
ocrresult_tmp.deserialize(i)
|
398
|
+
@OcrResults << ocrresult_tmp
|
399
|
+
end
|
400
|
+
end
|
401
|
+
unless params['LibResults'].nil?
|
402
|
+
@LibResults = []
|
403
|
+
params['LibResults'].each do |i|
|
404
|
+
libresult_tmp = LibResult.new
|
405
|
+
libresult_tmp.deserialize(i)
|
406
|
+
@LibResults << libresult_tmp
|
407
|
+
end
|
408
|
+
end
|
409
|
+
@DataId = params['DataId']
|
410
|
+
@BizType = params['BizType']
|
411
|
+
@Extra = params['Extra']
|
412
|
+
@RequestId = params['RequestId']
|
413
|
+
end
|
414
|
+
end
|
415
|
+
|
416
|
+
# 机器审核详情列表数据项
|
417
|
+
class ImsDetail < TencentCloud::Common::AbstractModel
|
418
|
+
# @param Content: 文本内容
|
419
|
+
# @type Content: String
|
420
|
+
# @param DataSource: 数据方式, 0:我审,1:人审
|
421
|
+
# @type DataSource: Integer
|
422
|
+
# @param UpdateTime: 最后更新时间
|
423
|
+
# @type UpdateTime: String
|
424
|
+
# @param EvilType: ----非必选,该参数暂未对外开放
|
425
|
+
# @type EvilType: Integer
|
426
|
+
# @param ModerationTime: 机器审核时间
|
427
|
+
# @type ModerationTime: String
|
428
|
+
# @param UpdateUser: 最后更新人
|
429
|
+
# @type UpdateUser: String
|
430
|
+
# @param ContentId: 内容RequestId
|
431
|
+
# @type ContentId: String
|
432
|
+
# @param OperEvilType: 自主审核结果
|
433
|
+
# @type OperEvilType: Integer
|
434
|
+
|
435
|
+
attr_accessor :Content, :DataSource, :UpdateTime, :EvilType, :ModerationTime, :UpdateUser, :ContentId, :OperEvilType
|
436
|
+
|
437
|
+
def initialize(content=nil, datasource=nil, updatetime=nil, eviltype=nil, moderationtime=nil, updateuser=nil, contentid=nil, opereviltype=nil)
|
438
|
+
@Content = content
|
439
|
+
@DataSource = datasource
|
440
|
+
@UpdateTime = updatetime
|
441
|
+
@EvilType = eviltype
|
442
|
+
@ModerationTime = moderationtime
|
443
|
+
@UpdateUser = updateuser
|
444
|
+
@ContentId = contentid
|
445
|
+
@OperEvilType = opereviltype
|
446
|
+
end
|
447
|
+
|
448
|
+
def deserialize(params)
|
449
|
+
@Content = params['Content']
|
450
|
+
@DataSource = params['DataSource']
|
451
|
+
@UpdateTime = params['UpdateTime']
|
452
|
+
@EvilType = params['EvilType']
|
453
|
+
@ModerationTime = params['ModerationTime']
|
454
|
+
@UpdateUser = params['UpdateUser']
|
455
|
+
@ContentId = params['ContentId']
|
456
|
+
@OperEvilType = params['OperEvilType']
|
457
|
+
end
|
458
|
+
end
|
459
|
+
|
460
|
+
# 分类模型命中子标签结果
|
461
|
+
class LabelDetailItem < TencentCloud::Common::AbstractModel
|
462
|
+
# @param Id: 序号
|
463
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
464
|
+
# @type Id: Integer
|
465
|
+
# @param Name: 子标签名称
|
466
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
467
|
+
# @type Name: String
|
468
|
+
# @param Score: 子标签分数
|
469
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
470
|
+
# @type Score: Integer
|
471
|
+
|
472
|
+
attr_accessor :Id, :Name, :Score
|
473
|
+
|
474
|
+
def initialize(id=nil, name=nil, score=nil)
|
475
|
+
@Id = id
|
476
|
+
@Name = name
|
477
|
+
@Score = score
|
478
|
+
end
|
479
|
+
|
480
|
+
def deserialize(params)
|
481
|
+
@Id = params['Id']
|
482
|
+
@Name = params['Name']
|
483
|
+
@Score = params['Score']
|
484
|
+
end
|
485
|
+
end
|
486
|
+
|
487
|
+
# 分类模型命中结果
|
488
|
+
class LabelResult < TencentCloud::Common::AbstractModel
|
489
|
+
# @param Scene: 场景识别结果
|
490
|
+
# @type Scene: String
|
491
|
+
# @param Suggestion: 建议您拿到判断结果后的执行操作。
|
492
|
+
# 建议值,Block:建议屏蔽,Review:建议复审,Pass:建议通过
|
493
|
+
# @type Suggestion: String
|
494
|
+
# @param Label: 恶意标签,Normal:正常,Porn:色情,Abuse:谩骂,Ad:广告,Custom:自定义图片。
|
495
|
+
# 以及令人反感、不安全或不适宜的内容类型。
|
496
|
+
# @type Label: String
|
497
|
+
# @param SubLabel: 子标签检测结果
|
498
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
499
|
+
# @type SubLabel: String
|
500
|
+
# @param Score: 该标签模型命中的分值
|
501
|
+
# @type Score: Integer
|
502
|
+
# @param Details: 分类模型命中子标签结果
|
503
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
504
|
+
# @type Details: Array
|
505
|
+
|
506
|
+
attr_accessor :Scene, :Suggestion, :Label, :SubLabel, :Score, :Details
|
507
|
+
|
508
|
+
def initialize(scene=nil, suggestion=nil, label=nil, sublabel=nil, score=nil, details=nil)
|
509
|
+
@Scene = scene
|
510
|
+
@Suggestion = suggestion
|
511
|
+
@Label = label
|
512
|
+
@SubLabel = sublabel
|
513
|
+
@Score = score
|
514
|
+
@Details = details
|
515
|
+
end
|
516
|
+
|
517
|
+
def deserialize(params)
|
518
|
+
@Scene = params['Scene']
|
519
|
+
@Suggestion = params['Suggestion']
|
520
|
+
@Label = params['Label']
|
521
|
+
@SubLabel = params['SubLabel']
|
522
|
+
@Score = params['Score']
|
523
|
+
unless params['Details'].nil?
|
524
|
+
@Details = []
|
525
|
+
params['Details'].each do |i|
|
526
|
+
labeldetailitem_tmp = LabelDetailItem.new
|
527
|
+
labeldetailitem_tmp.deserialize(i)
|
528
|
+
@Details << labeldetailitem_tmp
|
529
|
+
end
|
530
|
+
end
|
531
|
+
end
|
532
|
+
end
|
533
|
+
|
534
|
+
# 自定义库/黑白库明细
|
535
|
+
class LibDetail < TencentCloud::Common::AbstractModel
|
536
|
+
# @param Id: 序号
|
537
|
+
# @type Id: Integer
|
538
|
+
# @param LibId: 仅当Label为Custom自定义关键词时有效,表示自定义库id
|
539
|
+
# @type LibId: String
|
540
|
+
# @param LibName: 仅当Label为Custom自定义关键词时有效,表示自定义库名称
|
541
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
542
|
+
# @type LibName: String
|
543
|
+
# @param ImageId: 图片ID
|
544
|
+
# @type ImageId: String
|
545
|
+
# @param Label: 恶意标签,Normal:正常,Porn:色情,Abuse:谩骂,Ad:广告,Custom:自定义词库。
|
546
|
+
# 以及其他令人反感、不安全或不适宜的内容类型。
|
547
|
+
# @type Label: String
|
548
|
+
# @param Tag: 自定义标签
|
549
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
550
|
+
# @type Tag: String
|
551
|
+
# @param Score: 命中的模型分值
|
552
|
+
# @type Score: Integer
|
553
|
+
|
554
|
+
attr_accessor :Id, :LibId, :LibName, :ImageId, :Label, :Tag, :Score
|
555
|
+
|
556
|
+
def initialize(id=nil, libid=nil, libname=nil, imageid=nil, label=nil, tag=nil, score=nil)
|
557
|
+
@Id = id
|
558
|
+
@LibId = libid
|
559
|
+
@LibName = libname
|
560
|
+
@ImageId = imageid
|
561
|
+
@Label = label
|
562
|
+
@Tag = tag
|
563
|
+
@Score = score
|
564
|
+
end
|
565
|
+
|
566
|
+
def deserialize(params)
|
567
|
+
@Id = params['Id']
|
568
|
+
@LibId = params['LibId']
|
569
|
+
@LibName = params['LibName']
|
570
|
+
@ImageId = params['ImageId']
|
571
|
+
@Label = params['Label']
|
572
|
+
@Tag = params['Tag']
|
573
|
+
@Score = params['Score']
|
574
|
+
end
|
575
|
+
end
|
576
|
+
|
577
|
+
# 黑白库结果明细
|
578
|
+
class LibResult < TencentCloud::Common::AbstractModel
|
579
|
+
# @param Scene: 场景识别结果
|
580
|
+
# @type Scene: String
|
581
|
+
# @param Suggestion: 建议您拿到判断结果后的执行操作。
|
582
|
+
# 建议值,Block:建议屏蔽,Review:建议复审,Pass:建议通过
|
583
|
+
# @type Suggestion: String
|
584
|
+
# @param Label: 恶意标签,Normal:正常,Porn:色情,Abuse:谩骂,Ad:广告,Custom:自定义词库。
|
585
|
+
# 以及令人反感、不安全或不适宜的内容类型。
|
586
|
+
# @type Label: String
|
587
|
+
# @param SubLabel: 子标签检测结果
|
588
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
589
|
+
# @type SubLabel: String
|
590
|
+
# @param Score: 该标签模型命中的分值
|
591
|
+
# @type Score: Integer
|
592
|
+
# @param Details: 黑白库结果明细
|
593
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
594
|
+
# @type Details: Array
|
595
|
+
|
596
|
+
attr_accessor :Scene, :Suggestion, :Label, :SubLabel, :Score, :Details
|
597
|
+
|
598
|
+
def initialize(scene=nil, suggestion=nil, label=nil, sublabel=nil, score=nil, details=nil)
|
599
|
+
@Scene = scene
|
600
|
+
@Suggestion = suggestion
|
601
|
+
@Label = label
|
602
|
+
@SubLabel = sublabel
|
603
|
+
@Score = score
|
604
|
+
@Details = details
|
605
|
+
end
|
606
|
+
|
607
|
+
def deserialize(params)
|
608
|
+
@Scene = params['Scene']
|
609
|
+
@Suggestion = params['Suggestion']
|
610
|
+
@Label = params['Label']
|
611
|
+
@SubLabel = params['SubLabel']
|
612
|
+
@Score = params['Score']
|
613
|
+
unless params['Details'].nil?
|
614
|
+
@Details = []
|
615
|
+
params['Details'].each do |i|
|
616
|
+
libdetail_tmp = LibDetail.new
|
617
|
+
libdetail_tmp.deserialize(i)
|
618
|
+
@Details << libdetail_tmp
|
619
|
+
end
|
620
|
+
end
|
621
|
+
end
|
622
|
+
end
|
623
|
+
|
624
|
+
# 坐标
|
625
|
+
class Location < TencentCloud::Common::AbstractModel
|
626
|
+
# @param X: 左上角横坐标
|
627
|
+
# @type X: Float
|
628
|
+
# @param Y: 左上角纵坐标
|
629
|
+
# @type Y: Float
|
630
|
+
# @param Width: 宽度
|
631
|
+
# @type Width: Float
|
632
|
+
# @param Height: 高度
|
633
|
+
# @type Height: Float
|
634
|
+
# @param Rotate: 检测框的旋转角度
|
635
|
+
# @type Rotate: Float
|
636
|
+
|
637
|
+
attr_accessor :X, :Y, :Width, :Height, :Rotate
|
638
|
+
|
639
|
+
def initialize(x=nil, y=nil, width=nil, height=nil, rotate=nil)
|
640
|
+
@X = x
|
641
|
+
@Y = y
|
642
|
+
@Width = width
|
643
|
+
@Height = height
|
644
|
+
@Rotate = rotate
|
645
|
+
end
|
646
|
+
|
647
|
+
def deserialize(params)
|
648
|
+
@X = params['X']
|
649
|
+
@Y = params['Y']
|
650
|
+
@Width = params['Width']
|
651
|
+
@Height = params['Height']
|
652
|
+
@Rotate = params['Rotate']
|
653
|
+
end
|
654
|
+
end
|
655
|
+
|
656
|
+
# 实体检测结果明细,当检测场景为实体、广告台标、二维码时表示模型检测目标框的标签名称、标签值、标签分数以及检测框的位置信息。
|
657
|
+
class ObjectDetail < TencentCloud::Common::AbstractModel
|
658
|
+
# @param Id: 序号
|
659
|
+
# @type Id: Integer
|
660
|
+
# @param Name: 标签名称
|
661
|
+
# @type Name: String
|
662
|
+
# @param Value: 标签值,
|
663
|
+
# 当标签为二维码时,表示URL地址,如Name为QrCode时,Value为"http//abc.com/aaa"
|
664
|
+
# @type Value: String
|
665
|
+
# @param Score: 分数
|
666
|
+
# @type Score: Integer
|
667
|
+
# @param Location: 检测框坐标
|
668
|
+
# @type Location: :class:`Tencentcloud::Ims.v20200713.models.Location`
|
669
|
+
|
670
|
+
attr_accessor :Id, :Name, :Value, :Score, :Location
|
671
|
+
|
672
|
+
def initialize(id=nil, name=nil, value=nil, score=nil, location=nil)
|
673
|
+
@Id = id
|
674
|
+
@Name = name
|
675
|
+
@Value = value
|
676
|
+
@Score = score
|
677
|
+
@Location = location
|
678
|
+
end
|
679
|
+
|
680
|
+
def deserialize(params)
|
681
|
+
@Id = params['Id']
|
682
|
+
@Name = params['Name']
|
683
|
+
@Value = params['Value']
|
684
|
+
@Score = params['Score']
|
685
|
+
unless params['Location'].nil?
|
686
|
+
@Location = Location.new
|
687
|
+
@Location.deserialize(params['Location'])
|
688
|
+
end
|
689
|
+
end
|
690
|
+
end
|
691
|
+
|
692
|
+
# 实体检测结果详情:实体、广告台标、二维码
|
693
|
+
class ObjectResult < TencentCloud::Common::AbstractModel
|
694
|
+
# @param Scene: 场景识别结果
|
695
|
+
# @type Scene: String
|
696
|
+
# @param Suggestion: 建议您拿到判断结果后的执行操作。
|
697
|
+
# 建议值,Block:建议屏蔽,Review:建议复审,Pass:建议通过
|
698
|
+
# @type Suggestion: String
|
699
|
+
# @param Label: 恶意标签,Normal:正常,Porn:色情,Abuse:谩骂,Ad:广告,Custom:自定义图片。
|
700
|
+
# 以及令人反感、不安全或不适宜的内容类型。
|
701
|
+
# @type Label: String
|
702
|
+
# @param SubLabel: 子标签检测结果
|
703
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
704
|
+
# @type SubLabel: String
|
705
|
+
# @param Score: 该标签模型命中的分值
|
706
|
+
# @type Score: Integer
|
707
|
+
# @param Names: 实体名称
|
708
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
709
|
+
# @type Names: Array
|
710
|
+
# @param Details: 实体检测结果明细
|
711
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
712
|
+
# @type Details: Array
|
713
|
+
|
714
|
+
attr_accessor :Scene, :Suggestion, :Label, :SubLabel, :Score, :Names, :Details
|
715
|
+
|
716
|
+
def initialize(scene=nil, suggestion=nil, label=nil, sublabel=nil, score=nil, names=nil, details=nil)
|
717
|
+
@Scene = scene
|
718
|
+
@Suggestion = suggestion
|
719
|
+
@Label = label
|
720
|
+
@SubLabel = sublabel
|
721
|
+
@Score = score
|
722
|
+
@Names = names
|
723
|
+
@Details = details
|
724
|
+
end
|
725
|
+
|
726
|
+
def deserialize(params)
|
727
|
+
@Scene = params['Scene']
|
728
|
+
@Suggestion = params['Suggestion']
|
729
|
+
@Label = params['Label']
|
730
|
+
@SubLabel = params['SubLabel']
|
731
|
+
@Score = params['Score']
|
732
|
+
@Names = params['Names']
|
733
|
+
unless params['Details'].nil?
|
734
|
+
@Details = []
|
735
|
+
params['Details'].each do |i|
|
736
|
+
objectdetail_tmp = ObjectDetail.new
|
737
|
+
objectdetail_tmp.deserialize(i)
|
738
|
+
@Details << objectdetail_tmp
|
739
|
+
end
|
740
|
+
end
|
741
|
+
end
|
742
|
+
end
|
743
|
+
|
744
|
+
# OCR结果检测详情
|
745
|
+
class OcrResult < TencentCloud::Common::AbstractModel
|
746
|
+
# @param Scene: 场景识别结果
|
747
|
+
# @type Scene: String
|
748
|
+
# @param Suggestion: 建议您拿到判断结果后的执行操作。
|
749
|
+
# 建议值,Block:建议屏蔽,Review:建议复审,Pass:建议通过
|
750
|
+
# @type Suggestion: String
|
751
|
+
# @param Label: 恶意标签,Normal:正常,Porn:色情,Abuse:谩骂,Ad:广告,Custom:自定义词库。
|
752
|
+
# 以及令人反感、不安全或不适宜的内容类型。
|
753
|
+
# @type Label: String
|
754
|
+
# @param SubLabel: 子标签检测结果
|
755
|
+
# @type SubLabel: String
|
756
|
+
# @param Score: 该标签模型命中的分值
|
757
|
+
# @type Score: Integer
|
758
|
+
# @param Details: ocr结果详情
|
759
|
+
# @type Details: Array
|
760
|
+
# @param Text: ocr识别出的文本结果
|
761
|
+
# @type Text: String
|
762
|
+
|
763
|
+
attr_accessor :Scene, :Suggestion, :Label, :SubLabel, :Score, :Details, :Text
|
764
|
+
|
765
|
+
def initialize(scene=nil, suggestion=nil, label=nil, sublabel=nil, score=nil, details=nil, text=nil)
|
766
|
+
@Scene = scene
|
767
|
+
@Suggestion = suggestion
|
768
|
+
@Label = label
|
769
|
+
@SubLabel = sublabel
|
770
|
+
@Score = score
|
771
|
+
@Details = details
|
772
|
+
@Text = text
|
773
|
+
end
|
774
|
+
|
775
|
+
def deserialize(params)
|
776
|
+
@Scene = params['Scene']
|
777
|
+
@Suggestion = params['Suggestion']
|
778
|
+
@Label = params['Label']
|
779
|
+
@SubLabel = params['SubLabel']
|
780
|
+
@Score = params['Score']
|
781
|
+
unless params['Details'].nil?
|
782
|
+
@Details = []
|
783
|
+
params['Details'].each do |i|
|
784
|
+
ocrtextdetail_tmp = OcrTextDetail.new
|
785
|
+
ocrtextdetail_tmp.deserialize(i)
|
786
|
+
@Details << ocrtextdetail_tmp
|
787
|
+
end
|
788
|
+
end
|
789
|
+
@Text = params['Text']
|
790
|
+
end
|
791
|
+
end
|
792
|
+
|
793
|
+
# OCR文本结果详情
|
794
|
+
class OcrTextDetail < TencentCloud::Common::AbstractModel
|
795
|
+
# @param Text: OCR文本内容
|
796
|
+
# @type Text: String
|
797
|
+
# @param Label: 恶意标签,Normal:正常,Porn:色情,Abuse:谩骂,Ad:广告,Custom:自定义词库。
|
798
|
+
# 以及令人反感、不安全或不适宜的内容类型。
|
799
|
+
# @type Label: String
|
800
|
+
# @param LibId: 仅当Label为Custom自定义关键词时有效,表示自定义库id
|
801
|
+
# @type LibId: String
|
802
|
+
# @param LibName: 仅当Label为Custom自定义关键词时有效,表示自定义库名称
|
803
|
+
# @type LibName: String
|
804
|
+
# @param Keywords: 该标签下命中的关键词
|
805
|
+
# @type Keywords: Array
|
806
|
+
# @param Score: 该标签模型命中的分值
|
807
|
+
# @type Score: Integer
|
808
|
+
# @param Location: OCR位置
|
809
|
+
# @type Location: :class:`Tencentcloud::Ims.v20200713.models.Location`
|
810
|
+
# @param Rate: OCR文本识别置信度
|
811
|
+
# @type Rate: Integer
|
812
|
+
|
813
|
+
attr_accessor :Text, :Label, :LibId, :LibName, :Keywords, :Score, :Location, :Rate
|
814
|
+
|
815
|
+
def initialize(text=nil, label=nil, libid=nil, libname=nil, keywords=nil, score=nil, location=nil, rate=nil)
|
816
|
+
@Text = text
|
817
|
+
@Label = label
|
818
|
+
@LibId = libid
|
819
|
+
@LibName = libname
|
820
|
+
@Keywords = keywords
|
821
|
+
@Score = score
|
822
|
+
@Location = location
|
823
|
+
@Rate = rate
|
824
|
+
end
|
825
|
+
|
826
|
+
def deserialize(params)
|
827
|
+
@Text = params['Text']
|
828
|
+
@Label = params['Label']
|
829
|
+
@LibId = params['LibId']
|
830
|
+
@LibName = params['LibName']
|
831
|
+
@Keywords = params['Keywords']
|
832
|
+
@Score = params['Score']
|
833
|
+
unless params['Location'].nil?
|
834
|
+
@Location = Location.new
|
835
|
+
@Location.deserialize(params['Location'])
|
836
|
+
end
|
837
|
+
@Rate = params['Rate']
|
838
|
+
end
|
839
|
+
end
|
840
|
+
|
841
|
+
# 识别结果统计
|
842
|
+
class Overview < TencentCloud::Common::AbstractModel
|
843
|
+
# @param TotalCount: 总调用量
|
844
|
+
# @type TotalCount: Integer
|
845
|
+
# @param TotalHour: 总调用时长
|
846
|
+
# @type TotalHour: Integer
|
847
|
+
# @param PassCount: 通过量
|
848
|
+
# @type PassCount: Integer
|
849
|
+
# @param PassHour: 通过时长
|
850
|
+
# @type PassHour: Integer
|
851
|
+
# @param EvilCount: 违规量
|
852
|
+
# @type EvilCount: Integer
|
853
|
+
# @param EvilHour: 违规时长
|
854
|
+
# @type EvilHour: Integer
|
855
|
+
# @param SuspectCount: 疑似违规量
|
856
|
+
# @type SuspectCount: Integer
|
857
|
+
# @param SuspectHour: 疑似违规时长
|
858
|
+
# @type SuspectHour: Integer
|
859
|
+
|
860
|
+
attr_accessor :TotalCount, :TotalHour, :PassCount, :PassHour, :EvilCount, :EvilHour, :SuspectCount, :SuspectHour
|
861
|
+
|
862
|
+
def initialize(totalcount=nil, totalhour=nil, passcount=nil, passhour=nil, evilcount=nil, evilhour=nil, suspectcount=nil, suspecthour=nil)
|
863
|
+
@TotalCount = totalcount
|
864
|
+
@TotalHour = totalhour
|
865
|
+
@PassCount = passcount
|
866
|
+
@PassHour = passhour
|
867
|
+
@EvilCount = evilcount
|
868
|
+
@EvilHour = evilhour
|
869
|
+
@SuspectCount = suspectcount
|
870
|
+
@SuspectHour = suspecthour
|
871
|
+
end
|
872
|
+
|
873
|
+
def deserialize(params)
|
874
|
+
@TotalCount = params['TotalCount']
|
875
|
+
@TotalHour = params['TotalHour']
|
876
|
+
@PassCount = params['PassCount']
|
877
|
+
@PassHour = params['PassHour']
|
878
|
+
@EvilCount = params['EvilCount']
|
879
|
+
@EvilHour = params['EvilHour']
|
880
|
+
@SuspectCount = params['SuspectCount']
|
881
|
+
@SuspectHour = params['SuspectHour']
|
882
|
+
end
|
883
|
+
end
|
884
|
+
|
885
|
+
# 识别量统计
|
886
|
+
class TrendCount < TencentCloud::Common::AbstractModel
|
887
|
+
# @param TotalCount: 总调用量
|
888
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
889
|
+
# @type TotalCount: Integer
|
890
|
+
# @param TotalHour: 总调用时长
|
891
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
892
|
+
# @type TotalHour: Integer
|
893
|
+
# @param PassCount: 通过量
|
894
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
895
|
+
# @type PassCount: Integer
|
896
|
+
# @param PassHour: 通过时长
|
897
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
898
|
+
# @type PassHour: Integer
|
899
|
+
# @param EvilCount: 违规量
|
900
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
901
|
+
# @type EvilCount: Integer
|
902
|
+
# @param EvilHour: 违规时长
|
903
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
904
|
+
# @type EvilHour: Integer
|
905
|
+
# @param SuspectCount: 疑似违规量
|
906
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
907
|
+
# @type SuspectCount: Integer
|
908
|
+
# @param SuspectHour: 疑似违规时长
|
909
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
910
|
+
# @type SuspectHour: Integer
|
911
|
+
# @param Date: 日期
|
912
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
913
|
+
# @type Date: String
|
914
|
+
|
915
|
+
attr_accessor :TotalCount, :TotalHour, :PassCount, :PassHour, :EvilCount, :EvilHour, :SuspectCount, :SuspectHour, :Date
|
916
|
+
|
917
|
+
def initialize(totalcount=nil, totalhour=nil, passcount=nil, passhour=nil, evilcount=nil, evilhour=nil, suspectcount=nil, suspecthour=nil, date=nil)
|
918
|
+
@TotalCount = totalcount
|
919
|
+
@TotalHour = totalhour
|
920
|
+
@PassCount = passcount
|
921
|
+
@PassHour = passhour
|
922
|
+
@EvilCount = evilcount
|
923
|
+
@EvilHour = evilhour
|
924
|
+
@SuspectCount = suspectcount
|
925
|
+
@SuspectHour = suspecthour
|
926
|
+
@Date = date
|
927
|
+
end
|
928
|
+
|
929
|
+
def deserialize(params)
|
930
|
+
@TotalCount = params['TotalCount']
|
931
|
+
@TotalHour = params['TotalHour']
|
932
|
+
@PassCount = params['PassCount']
|
933
|
+
@PassHour = params['PassHour']
|
934
|
+
@EvilCount = params['EvilCount']
|
935
|
+
@EvilHour = params['EvilHour']
|
936
|
+
@SuspectCount = params['SuspectCount']
|
937
|
+
@SuspectHour = params['SuspectHour']
|
938
|
+
@Date = params['Date']
|
939
|
+
end
|
940
|
+
end
|
941
|
+
|
942
|
+
# User结果
|
943
|
+
class User < TencentCloud::Common::AbstractModel
|
944
|
+
# @param UserId: 业务用户ID 如填写,会根据账号历史恶意情况,判定消息有害结果,特别是有利于可疑恶意情况下的辅助判断。账号可以填写微信uin、QQ号、微信openid、QQopenid、字符串等。该字段和账号类别确定唯一账号。
|
945
|
+
# @type UserId: String
|
946
|
+
# @param AccountType: 业务用户ID类型 "1-微信uin 2-QQ号 3-微信群uin 4-qq群号 5-微信openid 6-QQopenid 7-其它string"
|
947
|
+
# @type AccountType: String
|
948
|
+
# @param Nickname: 用户昵称
|
949
|
+
# @type Nickname: String
|
950
|
+
# @param Gender: 性别 默认0 未知 1 男性 2 女性
|
951
|
+
# @type Gender: Integer
|
952
|
+
# @param Age: 年龄 默认0 未知
|
953
|
+
# @type Age: Integer
|
954
|
+
# @param Level: 用户等级,默认0 未知 1 低 2 中 3 高
|
955
|
+
# @type Level: Integer
|
956
|
+
# @param Phone: 手机号
|
957
|
+
# @type Phone: String
|
958
|
+
# @param Desc: 用户简介,长度不超过5000字
|
959
|
+
# @type Desc: String
|
960
|
+
# @param HeadUrl: 用户头像图片链接
|
961
|
+
# @type HeadUrl: String
|
962
|
+
|
963
|
+
attr_accessor :UserId, :AccountType, :Nickname, :Gender, :Age, :Level, :Phone, :Desc, :HeadUrl
|
964
|
+
|
965
|
+
def initialize(userid=nil, accounttype=nil, nickname=nil, gender=nil, age=nil, level=nil, phone=nil, desc=nil, headurl=nil)
|
966
|
+
@UserId = userid
|
967
|
+
@AccountType = accounttype
|
968
|
+
@Nickname = nickname
|
969
|
+
@Gender = gender
|
970
|
+
@Age = age
|
971
|
+
@Level = level
|
972
|
+
@Phone = phone
|
973
|
+
@Desc = desc
|
974
|
+
@HeadUrl = headurl
|
975
|
+
end
|
976
|
+
|
977
|
+
def deserialize(params)
|
978
|
+
@UserId = params['UserId']
|
979
|
+
@AccountType = params['AccountType']
|
980
|
+
@Nickname = params['Nickname']
|
981
|
+
@Gender = params['Gender']
|
982
|
+
@Age = params['Age']
|
983
|
+
@Level = params['Level']
|
984
|
+
@Phone = params['Phone']
|
985
|
+
@Desc = params['Desc']
|
986
|
+
@HeadUrl = params['HeadUrl']
|
987
|
+
end
|
988
|
+
end
|
989
|
+
|
990
|
+
end
|
991
|
+
end
|
992
|
+
end
|
993
|
+
|