tencentcloud-sdk-ims 3.0.490 → 3.0.492

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bf9e217ffc68bc6fb6c80573cf5b2acaa40913fb
4
- data.tar.gz: 1b20afc354eb9ad05395c1c595d6659c88518f1b
3
+ metadata.gz: a17df133c90a83a470efbd77d9ac966398ab79ab
4
+ data.tar.gz: ab52632156ae99015e46982ed0334c6c99530328
5
5
  SHA512:
6
- metadata.gz: 258311152af02c23993f4c46bf05936a21014aa70023508797871196acb5723f352865310b2a28f83569717b2d3c3f4f273b3b231bbe530cbb44d75e9f436a67
7
- data.tar.gz: eaaf6685913d3efbfd723bebed26a7f213d6c3a5e39a47419ad35c69f09aae16fafae26e474d9a6d1ba3bbff42177ccfca5dc9ec4e5a683a412000e35e4d4d55
6
+ metadata.gz: 7327bc394cc9b56b173c7289b26f4987fd39221c37e3a8d4d1ee428dd57ae55da03c366963f6816430b42c1a9df0dac0801bec6570561bee8e8ae72e44dfc67c
7
+ data.tar.gz: 35a8af9db3dabff47f81bcb1ec5161165774ffc406603f7e6e7b757b3b8b9cd2ea2949479a421919d3b879cff80d4bf62d2dda889db394e21e9988a6d4958557
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.490
1
+ 3.0.492
@@ -29,54 +29,6 @@ module TencentCloud
29
29
  end
30
30
 
31
31
 
32
- # 控制台识别统计
33
-
34
- # @param request: Request instance for DescribeImageStat.
35
- # @type request: :class:`Tencentcloud::ims::V20200713::DescribeImageStatRequest`
36
- # @rtype: :class:`Tencentcloud::ims::V20200713::DescribeImageStatResponse`
37
- def DescribeImageStat(request)
38
- body = send_request('DescribeImageStat', request.serialize)
39
- response = JSON.parse(body)
40
- if response['Response'].key?('Error') == false
41
- model = DescribeImageStatResponse.new
42
- model.deserialize(response['Response'])
43
- model
44
- else
45
- code = response['Response']['Error']['Code']
46
- message = response['Response']['Error']['Message']
47
- reqid = response['Response']['RequestId']
48
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
49
- end
50
- rescue TencentCloud::Common::TencentCloudSDKException => e
51
- raise e
52
- rescue StandardError => e
53
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
- end
55
-
56
- # 图片机器审核明细
57
-
58
- # @param request: Request instance for DescribeImsList.
59
- # @type request: :class:`Tencentcloud::ims::V20200713::DescribeImsListRequest`
60
- # @rtype: :class:`Tencentcloud::ims::V20200713::DescribeImsListResponse`
61
- def DescribeImsList(request)
62
- body = send_request('DescribeImsList', request.serialize)
63
- response = JSON.parse(body)
64
- if response['Response'].key?('Error') == false
65
- model = DescribeImsListResponse.new
66
- model.deserialize(response['Response'])
67
- model
68
- else
69
- code = response['Response']['Error']['Code']
70
- message = response['Response']['Error']['Message']
71
- reqid = response['Response']['RequestId']
72
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
73
- end
74
- rescue TencentCloud::Common::TencentCloudSDKException => e
75
- raise e
76
- rescue StandardError => e
77
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
- end
79
-
80
32
  # 图片内容检测服务(Image Moderation, IM)能自动扫描图片,识别可能令人反感、不安全或不适宜的内容,同时支持用户配置图片黑名单,打击自定义识别类型的图片。
81
33
 
82
34
  # <div class="rno-api-explorer" style="margin-bottom:20px">
@@ -17,142 +17,6 @@
17
17
  module TencentCloud
18
18
  module Ims
19
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
20
  # Device结果
157
21
  class Device < TencentCloud::Common::AbstractModel
158
22
  # @param Ip: 发表消息设备IP
@@ -197,69 +61,6 @@ module TencentCloud
197
61
  end
198
62
  end
199
63
 
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
64
  # ImageModeration请求参数结构体
264
65
  class ImageModerationRequest < TencentCloud::Common::AbstractModel
265
66
  # @param BizType: 该字段用于标识业务场景。您可以在内容安全控制台创建对应的ID,配置不同的内容审核策略,通过接口调用,默认不填为0,后端使用默认策略。 -- 该字段暂未开放。
@@ -413,50 +214,6 @@ module TencentCloud
413
214
  end
414
215
  end
415
216
 
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
217
  # 分类模型命中子标签结果
461
218
  class LabelDetailItem < TencentCloud::Common::AbstractModel
462
219
  # @param Id: 序号
@@ -666,15 +423,18 @@ module TencentCloud
666
423
  # @type Score: Integer
667
424
  # @param Location: 检测框坐标
668
425
  # @type Location: :class:`Tencentcloud::Ims.v20200713.models.Location`
426
+ # @param SubLabel: 二级标签名称
427
+ # @type SubLabel: String
669
428
 
670
- attr_accessor :Id, :Name, :Value, :Score, :Location
429
+ attr_accessor :Id, :Name, :Value, :Score, :Location, :SubLabel
671
430
 
672
- def initialize(id=nil, name=nil, value=nil, score=nil, location=nil)
431
+ def initialize(id=nil, name=nil, value=nil, score=nil, location=nil, sublabel=nil)
673
432
  @Id = id
674
433
  @Name = name
675
434
  @Value = value
676
435
  @Score = score
677
436
  @Location = location
437
+ @SubLabel = sublabel
678
438
  end
679
439
 
680
440
  def deserialize(params)
@@ -686,6 +446,7 @@ module TencentCloud
686
446
  @Location = Location.new
687
447
  @Location.deserialize(params['Location'])
688
448
  end
449
+ @SubLabel = params['SubLabel']
689
450
  end
690
451
  end
691
452
 
@@ -759,10 +520,12 @@ module TencentCloud
759
520
  # @type Details: Array
760
521
  # @param Text: ocr识别出的文本结果
761
522
  # @type Text: String
523
+ # @param HitFlag: 是否命中结果,0 未命中 1命中
524
+ # @type HitFlag: Integer
762
525
 
763
- attr_accessor :Scene, :Suggestion, :Label, :SubLabel, :Score, :Details, :Text
526
+ attr_accessor :Scene, :Suggestion, :Label, :SubLabel, :Score, :Details, :Text, :HitFlag
764
527
 
765
- def initialize(scene=nil, suggestion=nil, label=nil, sublabel=nil, score=nil, details=nil, text=nil)
528
+ def initialize(scene=nil, suggestion=nil, label=nil, sublabel=nil, score=nil, details=nil, text=nil, hitflag=nil)
766
529
  @Scene = scene
767
530
  @Suggestion = suggestion
768
531
  @Label = label
@@ -770,6 +533,7 @@ module TencentCloud
770
533
  @Score = score
771
534
  @Details = details
772
535
  @Text = text
536
+ @HitFlag = hitflag
773
537
  end
774
538
 
775
539
  def deserialize(params)
@@ -787,6 +551,7 @@ module TencentCloud
787
551
  end
788
552
  end
789
553
  @Text = params['Text']
554
+ @HitFlag = params['HitFlag']
790
555
  end
791
556
  end
792
557
 
@@ -809,10 +574,12 @@ module TencentCloud
809
574
  # @type Location: :class:`Tencentcloud::Ims.v20200713.models.Location`
810
575
  # @param Rate: OCR文本识别置信度
811
576
  # @type Rate: Integer
577
+ # @param SubLabel: OCR文本命中的二级标签
578
+ # @type SubLabel: String
812
579
 
813
- attr_accessor :Text, :Label, :LibId, :LibName, :Keywords, :Score, :Location, :Rate
580
+ attr_accessor :Text, :Label, :LibId, :LibName, :Keywords, :Score, :Location, :Rate, :SubLabel
814
581
 
815
- def initialize(text=nil, label=nil, libid=nil, libname=nil, keywords=nil, score=nil, location=nil, rate=nil)
582
+ def initialize(text=nil, label=nil, libid=nil, libname=nil, keywords=nil, score=nil, location=nil, rate=nil, sublabel=nil)
816
583
  @Text = text
817
584
  @Label = label
818
585
  @LibId = libid
@@ -821,6 +588,7 @@ module TencentCloud
821
588
  @Score = score
822
589
  @Location = location
823
590
  @Rate = rate
591
+ @SubLabel = sublabel
824
592
  end
825
593
 
826
594
  def deserialize(params)
@@ -835,107 +603,7 @@ module TencentCloud
835
603
  @Location.deserialize(params['Location'])
836
604
  end
837
605
  @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']
606
+ @SubLabel = params['SubLabel']
939
607
  end
940
608
  end
941
609
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-ims
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.490
4
+ version: 3.0.492
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-10 00:00:00.000000000 Z
11
+ date: 2023-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common