tencentcloud-sdk-tms 3.0.683 → 3.0.685

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20201229/models.rb +75 -2
  4. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7c67802f2a61274cc036f8046a96571c207f4ced
4
- data.tar.gz: 5c2ab2815d2c69291ba591d2819260de8ef11f51
3
+ metadata.gz: baa8168789912772f0241758ef28815434b67f27
4
+ data.tar.gz: a378bc0bc14be2554a5a8875605c0314bdd2ed87
5
5
  SHA512:
6
- metadata.gz: 3a5f4f7405482498b906a1ee0ca1b5ac0528953d6ec24e25b24041b71e952fa3c15a69b0dea793f56320d51cec4052501e066bcd15b5d86fd45fa80889c3cc66
7
- data.tar.gz: 3cb60c2616737d2d649017572044cba64f29408bbfcbf5387f0587292049ec7e786ea6d8d1d6e72c37de85273a9b35338ad1ae76a72558f143b1bc70bbd262e3
6
+ metadata.gz: dd5fa525a5cf88bf395a6f23b885f4eb7dc4253d6bfa3d753c5fdf5be02864080d40ab873142a65d67375f95764555d5b05b153565656d3cdbac1587a7452070
7
+ data.tar.gz: 7ba96ff28ed341c6def4098e92c57f181a393971aaa65cf0bdf6f088dc930b5b454cf8d476653b289d7dd3108e3e7f85aec33c5bf09fa8f4bfa0f815f46bff3c
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.683
1
+ 3.0.685
@@ -45,10 +45,13 @@ module TencentCloud
45
45
  # @param Tags: 该字段用于返回当前一级标签(Label)下的关键词、子标签及分数。
46
46
  # 注意:此字段可能返回 null,表示取不到有效值。
47
47
  # @type Tags: Array
48
+ # @param HitInfos: 该字段用于返回违规文本命中信息
49
+ # 注意:此字段可能返回 null,表示取不到有效值。
50
+ # @type HitInfos: Array
48
51
 
49
- attr_accessor :Label, :Suggestion, :Keywords, :Score, :LibType, :LibId, :LibName, :SubLabel, :Tags
52
+ attr_accessor :Label, :Suggestion, :Keywords, :Score, :LibType, :LibId, :LibName, :SubLabel, :Tags, :HitInfos
50
53
 
51
- def initialize(label=nil, suggestion=nil, keywords=nil, score=nil, libtype=nil, libid=nil, libname=nil, sublabel=nil, tags=nil)
54
+ def initialize(label=nil, suggestion=nil, keywords=nil, score=nil, libtype=nil, libid=nil, libname=nil, sublabel=nil, tags=nil, hitinfos=nil)
52
55
  @Label = label
53
56
  @Suggestion = suggestion
54
57
  @Keywords = keywords
@@ -58,6 +61,7 @@ module TencentCloud
58
61
  @LibName = libname
59
62
  @SubLabel = sublabel
60
63
  @Tags = tags
64
+ @HitInfos = hitinfos
61
65
  end
62
66
 
63
67
  def deserialize(params)
@@ -77,6 +81,14 @@ module TencentCloud
77
81
  @Tags << tag_tmp
78
82
  end
79
83
  end
84
+ unless params['HitInfos'].nil?
85
+ @HitInfos = []
86
+ params['HitInfos'].each do |i|
87
+ hitinfo_tmp = HitInfo.new
88
+ hitinfo_tmp.deserialize(i)
89
+ @HitInfos << hitinfo_tmp
90
+ end
91
+ end
80
92
  end
81
93
  end
82
94
 
@@ -122,6 +134,67 @@ module TencentCloud
122
134
  end
123
135
  end
124
136
 
137
+ # 关键词命中位置信息
138
+ class HitInfo < TencentCloud::Common::AbstractModel
139
+ # @param Type: 标识模型命中还是关键词命中
140
+ # 注意:此字段可能返回 null,表示取不到有效值。
141
+ # @type Type: String
142
+ # @param Keyword: 命中关键词
143
+ # 注意:此字段可能返回 null,表示取不到有效值。
144
+ # @type Keyword: String
145
+ # @param LibName: 自定义词库名称
146
+ # 注意:此字段可能返回 null,表示取不到有效值。
147
+ # @type LibName: String
148
+ # @param Positions: 位置信息
149
+ # 注意:此字段可能返回 null,表示取不到有效值。
150
+ # @type Positions: Array
151
+
152
+ attr_accessor :Type, :Keyword, :LibName, :Positions
153
+
154
+ def initialize(type=nil, keyword=nil, libname=nil, positions=nil)
155
+ @Type = type
156
+ @Keyword = keyword
157
+ @LibName = libname
158
+ @Positions = positions
159
+ end
160
+
161
+ def deserialize(params)
162
+ @Type = params['Type']
163
+ @Keyword = params['Keyword']
164
+ @LibName = params['LibName']
165
+ unless params['Positions'].nil?
166
+ @Positions = []
167
+ params['Positions'].each do |i|
168
+ positions_tmp = Positions.new
169
+ positions_tmp.deserialize(i)
170
+ @Positions << positions_tmp
171
+ end
172
+ end
173
+ end
174
+ end
175
+
176
+ # 标识命中的违规关键词位置信息
177
+ class Positions < TencentCloud::Common::AbstractModel
178
+ # @param Start: 关键词起始位置
179
+ # 注意:此字段可能返回 null,表示取不到有效值。
180
+ # @type Start: Integer
181
+ # @param End: 关键词结束位置
182
+ # 注意:此字段可能返回 null,表示取不到有效值。
183
+ # @type End: Integer
184
+
185
+ attr_accessor :Start, :End
186
+
187
+ def initialize(start=nil, _end=nil)
188
+ @Start = start
189
+ @End = _end
190
+ end
191
+
192
+ def deserialize(params)
193
+ @Start = params['Start']
194
+ @End = params['End']
195
+ end
196
+ end
197
+
125
198
  # 账号风险检测结果
126
199
  class RiskDetails < TencentCloud::Common::AbstractModel
127
200
  # @param Label: 该字段用于返回账号信息检测对应的风险类别,取值为:**RiskAccount**(账号存在风险)、**RiskIP**(IP地址存在风险)、**RiskIMEI**(移动设备识别码存在风险)。
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-tms
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.683
4
+ version: 3.0.685
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-10-24 00:00:00.000000000 Z
11
+ date: 2023-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common
@@ -33,11 +33,11 @@ executables: []
33
33
  extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
+ - lib/v20201229/client.rb
37
+ - lib/v20201229/models.rb
36
38
  - lib/tencentcloud-sdk-tms.rb
37
- - lib/v20200713/models.rb
38
39
  - lib/v20200713/client.rb
39
- - lib/v20201229/models.rb
40
- - lib/v20201229/client.rb
40
+ - lib/v20200713/models.rb
41
41
  - lib/VERSION
42
42
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
43
43
  licenses: