tencentcloud-sdk-ams 3.0.1008 → 3.0.1009

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20201229/models.rb +70 -4
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8a61fdab4b842cb41a8e1728b28220180bc7e9a3
4
- data.tar.gz: 2d5f6a20f17628e408d93e4e2170a0b7e9f68f93
3
+ metadata.gz: a5981032bb1f6d9be7111a8b5afdd4d1f2a288f8
4
+ data.tar.gz: 578a2a349aaa03e2d1f051146e01264b49301e5e
5
5
  SHA512:
6
- metadata.gz: 9f39067287ce3bb7dc4d7cf6464e5cf06ad0f3a60fb950bc72fd3774ef7a34b4a41f5f5efc81470a8c94522c6df48eb71002c4a77671bddb14f7ac53268e7cac
7
- data.tar.gz: 8c297eb4c9acda8b900ad82bbe2b88d4cdf08603dcda5415f94b95dbe3ec1077559645c827b9dfc9d898790b46f962732795878444917bb4abb57b65ec03c7e1
6
+ metadata.gz: fb473a6d08129cf85209b362782185acc5e7422f3a04209b1d152a94c268fd3266be2255ed9e92c87b69eb52a7b92ea671294a2b5856e9e8d373068f57e490bd
7
+ data.tar.gz: 0754d275303701d0829966a80eaa473982dfd829ee28eecdb7d677d10418be4bcfb68cfa484ba12b3186ec2a5937877c09f1f580f44e72fc02f55600d4654297
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1008
1
+ 3.0.1009
@@ -209,8 +209,8 @@ module TencentCloud
209
209
 
210
210
  attr_accessor :Label, :Score, :StartTime, :EndTime, :SubLabelCode, :SubLabel, :Suggestion
211
211
  extend Gem::Deprecate
212
- deprecate :SubLabelCode, :none, 2025, 1
213
- deprecate :SubLabelCode=, :none, 2025, 1
212
+ deprecate :SubLabelCode, :none, 2025, 3
213
+ deprecate :SubLabelCode=, :none, 2025, 3
214
214
 
215
215
  def initialize(label=nil, score=nil, starttime=nil, endtime=nil, sublabelcode=nil, sublabel=nil, suggestion=nil)
216
216
  @Label = label
@@ -863,6 +863,41 @@ module TencentCloud
863
863
  end
864
864
  end
865
865
 
866
+ # 关键词命中位置信息
867
+ class HitInfo < TencentCloud::Common::AbstractModel
868
+ # @param Type: 标识模型命中还是关键词命中
869
+ # @type Type: String
870
+ # @param Keyword: 命中关键词
871
+ # @type Keyword: String
872
+ # @param LibName: 自定义词库名称
873
+ # @type LibName: String
874
+ # @param Positions: 位置信息
875
+ # @type Positions: Array
876
+
877
+ attr_accessor :Type, :Keyword, :LibName, :Positions
878
+
879
+ def initialize(type=nil, keyword=nil, libname=nil, positions=nil)
880
+ @Type = type
881
+ @Keyword = keyword
882
+ @LibName = libname
883
+ @Positions = positions
884
+ end
885
+
886
+ def deserialize(params)
887
+ @Type = params['Type']
888
+ @Keyword = params['Keyword']
889
+ @LibName = params['LibName']
890
+ unless params['Positions'].nil?
891
+ @Positions = []
892
+ params['Positions'].each do |i|
893
+ position_tmp = Position.new
894
+ position_tmp.deserialize(i)
895
+ @Positions << position_tmp
896
+ end
897
+ end
898
+ end
899
+ end
900
+
866
901
  # 输入信息详情
867
902
  class InputInfo < TencentCloud::Common::AbstractModel
868
903
  # @param Type: 该字段表示文件访问类型,取值为**URL**(资源链接)和**COS** (腾讯云对象存储)。
@@ -1013,6 +1048,26 @@ module TencentCloud
1013
1048
  end
1014
1049
  end
1015
1050
 
1051
+ # 标识命中的违规关键词位置信息
1052
+ class Position < TencentCloud::Common::AbstractModel
1053
+ # @param Start: 关键词起始位置
1054
+ # @type Start: Integer
1055
+ # @param End: 关键词结束位置
1056
+ # @type End: Integer
1057
+
1058
+ attr_accessor :Start, :End
1059
+
1060
+ def initialize(start=nil, _end=nil)
1061
+ @Start = start
1062
+ @End = _end
1063
+ end
1064
+
1065
+ def deserialize(params)
1066
+ @Start = params['Start']
1067
+ @End = params['End']
1068
+ end
1069
+ end
1070
+
1016
1071
  # 识别类标签结果信息
1017
1072
  class RecognitionResult < TencentCloud::Common::AbstractModel
1018
1073
  # @param Label: 可能的取值有:Teenager 、Gender
@@ -1372,10 +1427,12 @@ module TencentCloud
1372
1427
  # 注意:此字段可能返回null,表示取不到有效值。
1373
1428
  # 注意:此字段可能返回 null,表示取不到有效值。
1374
1429
  # @type SubLabel: String
1430
+ # @param HitInfos: 该字段用于返回违规文本命中信息
1431
+ # @type HitInfos: Array
1375
1432
 
1376
- attr_accessor :Label, :Keywords, :LibId, :LibName, :Score, :Suggestion, :LibType, :SubLabel
1433
+ attr_accessor :Label, :Keywords, :LibId, :LibName, :Score, :Suggestion, :LibType, :SubLabel, :HitInfos
1377
1434
 
1378
- def initialize(label=nil, keywords=nil, libid=nil, libname=nil, score=nil, suggestion=nil, libtype=nil, sublabel=nil)
1435
+ def initialize(label=nil, keywords=nil, libid=nil, libname=nil, score=nil, suggestion=nil, libtype=nil, sublabel=nil, hitinfos=nil)
1379
1436
  @Label = label
1380
1437
  @Keywords = keywords
1381
1438
  @LibId = libid
@@ -1384,6 +1441,7 @@ module TencentCloud
1384
1441
  @Suggestion = suggestion
1385
1442
  @LibType = libtype
1386
1443
  @SubLabel = sublabel
1444
+ @HitInfos = hitinfos
1387
1445
  end
1388
1446
 
1389
1447
  def deserialize(params)
@@ -1395,6 +1453,14 @@ module TencentCloud
1395
1453
  @Suggestion = params['Suggestion']
1396
1454
  @LibType = params['LibType']
1397
1455
  @SubLabel = params['SubLabel']
1456
+ unless params['HitInfos'].nil?
1457
+ @HitInfos = []
1458
+ params['HitInfos'].each do |i|
1459
+ hitinfo_tmp = HitInfo.new
1460
+ hitinfo_tmp.deserialize(i)
1461
+ @HitInfos << hitinfo_tmp
1462
+ end
1463
+ end
1398
1464
  end
1399
1465
  end
1400
1466
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-ams
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1008
4
+ version: 3.0.1009
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-02-27 00:00:00.000000000 Z
11
+ date: 2025-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common